openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 1.18 kB
JavaScript
import{i as normalizeChatChannelId}from"./ids-CXs0NhN-.mjs";import{n as createLazyPromise}from"./lazy-promise-CismJCQR.mjs";import"./registry-yecJKTDP.mjs";
//!src/cli/deps.ts
const loadSendRuntime=createLazyPromise(()=>import(`./channel-outbound-send-D9aqG8oQ.mjs`));const NON_CHANNEL_DEP_KEYS=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`cron`,`cronConfig`,`cronEnabled`,`captureSessionEventTarget`,`defaultAgentId`,`deferSessionEvent`,`enqueueSessionEvent`,`enqueueSystemEvent`,`getQueueSize`,`hasOwnProperty`,`inspect`,`isExecutionIdle`,`log`,`migrateOrphanedSessionKeys`,`nowMs`,`onEvent`,`resolveSessionEventTarget`,`resolveSessionStorePath`,`resolveUserTimezone`,`runIsolatedAgentJob`,`runSessionEvent`,`runtime`,`sendCronFailureAlert`,`sessionStorePath`,`storePath`,`then`,`toJSON`,`toString`,`valueOf`]);function createDefaultDeps(){return new Proxy({},{get(e,t,n){if(typeof t!==`string`)return Reflect.get(e,t,n);const r=Reflect.get(e,t,n);if(r!==void 0||NON_CHANNEL_DEP_KEYS.has(t))return r;const i=normalizeChatChannelId(t);if(!i)return r;return async(e,t,n)=>await(await loadSendRuntime()).sendChannelOutboundMessage(i,e,t,n)}})}export{createDefaultDeps as t};