UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

19 lines (18 loc) • 790 B
import { D as setRuntimeConfigSnapshot } from "./runtime-snapshot-De_QxZI9.mjs"; import { c as readConfigFileSnapshot } from "./io.runtime-B134MOMz.mjs"; import "./health-z0EzzE-W.mjs"; import "./runtime-config-snapshot--IkldAgP.mjs"; //#region extensions/browser/src/browser/extension-host-config.ts /** Standalone browser helpers must not observe, repair, or migrate Gateway state. */ async function readBrowserHostConfig() { const snapshot = await readConfigFileSnapshot({ observe: false, pluginValidation: "core-only" }); if (!snapshot.valid) throw new Error("Browser host configuration is invalid"); const cfg = snapshot.runtimeConfig ?? snapshot.config; setRuntimeConfigSnapshot(cfg, snapshot.sourceConfig); return cfg; } //#endregion export { readBrowserHostConfig as t };