UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

30 lines (29 loc) • 2.2 kB
import { r as createLazyRuntimeModule } from "./lazy-runtime-CJrzFzqU.mjs"; import { c as normalizeE164 } from "./utils-DgZn2dLu.mjs"; import { l as resolveSessionStorePathCore } from "./paths-dpReqUI8.mjs"; import { i as loadConfig } from "./io.runtime-BsUXSsD4.mjs"; import "./config-DLycWFvB.mjs"; import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-CJQmwij_.mjs"; import { n as resolveSessionKey, t as deriveSessionKey } from "./session-key-BZqQ7AHg.mjs"; import { t as applyTemplate } from "./templating-CdR59CXd.mjs"; import { t as createDefaultDeps } from "./deps-B554EEzz.mjs"; //#region src/cli/wait.ts function waitForever() { setInterval(() => {}, 1e6); return new Promise(() => {}); } //#endregion //#region src/library.ts const loadReplyRuntime = createLazyRuntimeModule(() => import("./reply.runtime.js")); const loadPromptRuntime = createLazyRuntimeModule(() => import("./prompt-D3uD5Oy0.mjs")); const loadBinariesRuntime = createLazyRuntimeModule(() => import("./binaries-CUC14KC0.mjs")); const loadExecRuntime = createLazyRuntimeModule(() => import("./exec-C6Hmo2Tw.mjs")); const loadWebChannelRuntime = createLazyRuntimeModule(() => import("./runtime-web-channel-plugin-DcF3J6Vs.mjs")); 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, monitorWebChannel, normalizeE164, promptYesNo, resolveSessionKey, resolveSessionStorePathCore as resolveStorePath, runCommandWithTimeout, runExec, waitForever };