UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

30 lines (29 loc) • 2.17 kB
import { c as normalizeE164 } from "./utils-C8YECn2Q.mjs"; import { l as resolveSessionStorePathCore } from "./paths-DvQ5AJvD.mjs"; import { r as createLazyRuntimeModule } from "./lazy-runtime-zGjszCtt.mjs"; import { r as loadConfig } from "./io.runtime-DsJ2dLCQ.mjs"; import "./config-CMA-J084.mjs"; import { n as resolveSessionKey, t as deriveSessionKey } from "./session-key-oH67puaB.mjs"; import { t as createDefaultDeps } from "./deps-CeXkTZma.mjs"; import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-VdrN6cKU.mjs"; import { t as applyTemplate } from "./templating-C8TE1xGN.mjs"; //#region src/cli/wait.ts function waitForever() { setInterval(() => {}, 1e6); return new Promise(() => {}); } //#endregion //#region src/library.ts const loadReplyRuntime = createLazyRuntimeModule(() => import("./get-reply-CQ87lMSC.mjs")); const loadPromptRuntime = createLazyRuntimeModule(() => import("./prompt-D5h12jkR.mjs")); const loadBinariesRuntime = createLazyRuntimeModule(() => import("./binaries-BXS-eIoo.mjs")); const loadExecRuntime = createLazyRuntimeModule(() => import("./exec-Df6gUJ1h.mjs")); const loadWebChannelRuntime = createLazyRuntimeModule(() => import("./runtime-web-channel-plugin-DI0pBe_8.mjs")); const getReplyFromConfig = async (...e) => (await loadReplyRuntime()).getReplyFromConfig(...e); const promptYesNo = async (...e) => (await loadPromptRuntime()).promptYesNo(...e); const ensureBinary = async (...e) => (await loadBinariesRuntime()).ensureBinary(...e); const runExec = async (...e) => (await loadExecRuntime()).runExec(...e); const runCommandWithTimeout = async (...e) => (await loadExecRuntime()).runCommandWithTimeout(...e); const monitorWebChannel = async (...e) => (await loadWebChannelRuntime()).monitorWebChannel(...e); //#endregion export { PortInUseError, applyTemplate, createDefaultDeps, deriveSessionKey, describePortOwner, ensureBinary, ensurePortAvailable, getReplyFromConfig, handlePortError, loadConfig, monitorWebChannel, normalizeE164, promptYesNo, resolveSessionKey, resolveSessionStorePathCore as resolveStorePath, runCommandWithTimeout, runExec, waitForever };