UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

51 lines (50 loc) • 1.35 kB
import { n as createLazyPromise } from "./lazy-promise-DiCvjz9w.mjs"; import { i as normalizeChatChannelId } from "./ids-BRSWrLzE.mjs"; import "./registry-BB86xKJa.mjs"; //#region src/cli/deps.ts const loadSendRuntime = createLazyPromise(() => import("./channel-outbound-send-2xn9YyTZ.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); } }); } //#endregion export { createDefaultDeps as t };