UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

13 lines (12 loc) • 588 B
import { n as isTruthyEnvValue } from "./env-HehwidXj.mjs"; import { l as isRecord } from "./record-coerce-CVPuDqcc.mjs"; //#region src/canvas/config.ts /** Core Canvas host enablement from the shipped Canvas plugin configuration surface. */ /** Returns whether core-owned widget hosting and tools should be active. */ function isCoreCanvasHostEnabled(e) { if (isTruthyEnvValue(process.env.OPENCLAW_SKIP_CANVAS_HOST)) return false; const t = e?.plugins?.entries?.canvas?.config?.host; return !isRecord(t) || t.enabled !== false; } //#endregion export { isCoreCanvasHostEnabled as t };