openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 790 B
JavaScript
import { D as setRuntimeConfigSnapshot } from "./runtime-snapshot-DYptB0Cf.mjs";
import { c as readConfigFileSnapshot } from "./io.runtime-BsUXSsD4.mjs";
import "./health-1IF6M90P.mjs";
import "./runtime-config-snapshot-A-BTduWa.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 };