UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 882 B
import { a as asOptionalRecord } from "./record-coerce-CVPuDqcc.mjs"; import { t as collectConfiguredAgentHarnessRuntimes } from "./harness-runtimes-BJ7G_AOQ.mjs"; //#region src/commands/doctor/shared/configured-runtime-plugin-installs.ts function acpxRuntimeIsConfigured(e) { const t = asOptionalRecord(e.acp); const n = typeof t?.backend === "string" ? t.backend.trim().toLowerCase() : ""; return n ? n === "acpx" : t?.enabled === true || asOptionalRecord(t?.dispatch)?.enabled === true; } /** Collect runtime ids without loading plugin metadata during startup planning. */ function collectConfiguredRuntimeIds(e, t) { const n = new Set(collectConfiguredAgentHarnessRuntimes(e, t)); if (acpxRuntimeIsConfigured(e)) n.add("acpx"); return [...n].toSorted((e, t) => e.localeCompare(t)); } //#endregion export { collectConfiguredRuntimeIds as n, acpxRuntimeIsConfigured as t };