openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 507 B
JavaScript
import{t as AsyncContext}from"./async-context-D4i8WbBE.mjs";
//!src/process/spawn-broker/context-state.ts
const context=new AsyncContext(Symbol(`spawnBroker`));const gatewaySpawnBrokerState={startupDisabled:false};function runWithSpawnBroker(e,t){return context.run(e??null,t)}function getSpawnBroker(){const e=context.getStore();return gatewaySpawnBrokerState.startupDisabled||e===null?void 0:e??gatewaySpawnBrokerState.host}export{getSpawnBroker as n,runWithSpawnBroker as r,gatewaySpawnBrokerState as t};