diff --git a/src/config/zod-schema.providers-core.ts b/src/config/zod-schema.providers-core.ts index b39ccd2f1ac..4fe886330fe 100644 --- a/src/config/zod-schema.providers-core.ts +++ b/src/config/zod-schema.providers-core.ts @@ -1,11 +1,11 @@ import { z } from "zod"; +import { isSafeScpRemoteHost } from "../infra/scp-host.js"; +import { isValidInboundPathRootPattern } from "../media/inbound-path-policy.js"; import { normalizeTelegramCommandDescription, normalizeTelegramCommandName, resolveTelegramCustomCommands, -} from "../../extensions/telegram/config-api.js"; -import { isSafeScpRemoteHost } from "../infra/scp-host.js"; -import { isValidInboundPathRootPattern } from "../media/inbound-path-policy.js"; +} from "../plugin-sdk/telegram-command-config.js"; import { ToolPolicySchema } from "./zod-schema.agent-runtime.js"; import { ChannelHealthMonitorSchema, diff --git a/src/plugin-sdk/facade-runtime.ts b/src/plugin-sdk/facade-runtime.ts index 8c14a8cd02b..ea7526dad68 100644 --- a/src/plugin-sdk/facade-runtime.ts +++ b/src/plugin-sdk/facade-runtime.ts @@ -3,9 +3,9 @@ import path from "node:path"; import { fileURLToPath } from "node:url"; import { createJiti } from "jiti"; import JSON5 from "json5"; -import { getRuntimeConfigSnapshot } from "../config/config.js"; import { resolveConfigPath } from "../config/paths.js"; import { applyPluginAutoEnable } from "../config/plugin-auto-enable.js"; +import { getRuntimeConfigSnapshot } from "../config/runtime-snapshot.js"; import type { OpenClawConfig } from "../config/types.js"; import { openBoundaryFileSync } from "../infra/boundary-file-read.js"; import { resolveBundledPluginsDir } from "../plugins/bundled-dir.js";