mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:50:44 +00:00
refactor: trim config helper exports
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
} from "openclaw/plugin-sdk/extension-shared";
|
||||
import { z } from "openclaw/plugin-sdk/zod";
|
||||
|
||||
export type OpenShellPluginConfig = {
|
||||
type OpenShellPluginConfig = {
|
||||
mode?: "mirror" | "remote";
|
||||
command?: string;
|
||||
gateway?: string;
|
||||
@@ -101,7 +101,7 @@ function isManagedOpenShellRemotePath(value: string): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
export function normalizeOpenShellRemotePath(
|
||||
function normalizeOpenShellRemotePath(
|
||||
value: string | undefined,
|
||||
fallback: string,
|
||||
fieldName = "remote path",
|
||||
|
||||
@@ -48,7 +48,7 @@ function normalizeBaseUrl(value: string | undefined): string | undefined {
|
||||
return value?.replace(/\/+$/u, "") || undefined;
|
||||
}
|
||||
|
||||
export function resolveSearxngWebSearchConfig(
|
||||
function resolveSearxngWebSearchConfig(
|
||||
config?: OpenClawConfig,
|
||||
): SearxngPluginConfig["webSearch"] | undefined {
|
||||
const pluginConfig = config?.plugins?.entries?.searxng?.config as SearxngPluginConfig | undefined;
|
||||
|
||||
Reference in New Issue
Block a user