fix(runtime): guard import-time side effects

This commit is contained in:
Vincent Koc
2026-04-05 13:19:57 +01:00
parent aca488d5be
commit 7343d1b2ad
8 changed files with 185 additions and 46 deletions

View File

@@ -8,7 +8,7 @@ import type {
import { resolvePluginWebFetchProviders } from "../plugins/web-fetch-providers.runtime.js";
import { sortWebFetchProvidersForAutoDetect } from "../plugins/web-fetch-providers.shared.js";
import type { RuntimeWebFetchMetadata } from "../secrets/runtime-web-tools.types.js";
import { getActiveRuntimeWebToolsMetadata } from "../secrets/runtime.js";
import { getActiveRuntimeWebToolsMetadata } from "../secrets/runtime-web-tools-state.js";
import { normalizeSecretInput } from "../utils/normalize-secret-input.js";
type WebFetchConfig = NonNullable<OpenClawConfig["tools"]>["web"] extends infer Web