openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 526 B
JavaScript
import { n as isAcpEnabledByPolicy } from "./policy-De5rDLTI.mjs";
import { n as isAcpRuntimeBackendHealthy, t as getAcpRuntimeBackend } from "./registry-C2WH06NS.mjs";
//#region src/acp/runtime/availability.ts
function isAcpRuntimeSpawnAvailable(e) {
if (e.sandboxed === true) return false;
if (e.config && !isAcpEnabledByPolicy(e.config)) return false;
const t = getAcpRuntimeBackend(e.config?.acp?.backend);
return t !== null && isAcpRuntimeBackendHealthy(t);
}
//#endregion
export { isAcpRuntimeSpawnAvailable as t };