From ccc7549afe2a831fa462d33a979fd1e85360cb2c Mon Sep 17 00:00:00 2001 From: Altay Date: Sun, 5 Apr 2026 01:31:59 +0300 Subject: [PATCH] fix(ci): break facade runtime init cycle (#61053) * fix(ci): break facade runtime init cycle * style(config): normalize provider schema imports --- src/config/zod-schema.providers-core.ts | 6 +++--- src/plugin-sdk/facade-runtime.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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";