UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

46 lines (45 loc) 2.49 kB
import { l as normalizeE164 } from "./utils-CCC-BEJH.js"; import { a as loadConfig } from "./io-Gi7-pyU-.js"; import "./config-C9RxTsn1.js"; import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-CoxQQbiY.js"; import { u as resolveStorePath } from "./paths-NEwU8m3X.js"; import { t as loadSessionStore } from "./store-load-C4uq6Lrq.js"; import { l as saveSessionStore } from "./store-Qsgtu-0y.js"; import { n as resolveSessionKey, t as deriveSessionKey } from "./session-key-DNlvhlw9.js"; import { t as applyTemplate } from "./templating-CLmjS51i.js"; import { t as waitForever } from "./wait-DkbQDWtA.js"; import { t as createDefaultDeps } from "./deps-CWqGdIJS.js"; //#region src/library.ts let replyRuntimePromise = null; let promptRuntimePromise = null; let binariesRuntimePromise = null; let execRuntimePromise = null; let webChannelRuntimePromise = null; function loadReplyRuntime() { replyRuntimePromise ??= import("./reply.runtime.js"); return replyRuntimePromise; } function loadPromptRuntime() { promptRuntimePromise ??= import("./prompt-DBwU7FXk.js"); return promptRuntimePromise; } function loadBinariesRuntime() { binariesRuntimePromise ??= import("./binaries-DkBQ7scl.js"); return binariesRuntimePromise; } function loadExecRuntime() { execRuntimePromise ??= import("./exec-gg-jIFV0.js"); return execRuntimePromise; } function loadWebChannelRuntime() { webChannelRuntimePromise ??= import("./runtime-web-channel-plugin-SyxH0pvi.js"); return webChannelRuntimePromise; } const getReplyFromConfig = async (...args) => (await loadReplyRuntime()).getReplyFromConfig(...args); const promptYesNo = async (...args) => (await loadPromptRuntime()).promptYesNo(...args); const ensureBinary = async (...args) => (await loadBinariesRuntime()).ensureBinary(...args); const runExec = async (...args) => (await loadExecRuntime()).runExec(...args); const runCommandWithTimeout = async (...args) => (await loadExecRuntime()).runCommandWithTimeout(...args); const monitorWebChannel = async (...args) => (await loadWebChannelRuntime()).monitorWebChannel(...args); //#endregion export { PortInUseError, applyTemplate, createDefaultDeps, deriveSessionKey, describePortOwner, ensureBinary, ensurePortAvailable, getReplyFromConfig, handlePortError, loadConfig, loadSessionStore, monitorWebChannel, normalizeE164, promptYesNo, resolveSessionKey, resolveStorePath, runCommandWithTimeout, runExec, saveSessionStore, waitForever };