UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

19 lines (18 loc) 1.08 kB
import { n as createLazyPromise } from "./lazy-promise-DGqyc4Y4.js"; import "./inbound-context-BJXKd4x8.js"; import "./chunk-DqjJztIp.js"; import "./conversation-label-generator-CrCENK4e.js"; //#region src/plugin-sdk/reply-dispatch-runtime.ts const loadProviderDispatcherRuntimeModule = createLazyPromise(() => import("./provider-dispatcher.runtime.js"), { cacheRejections: true }); /** Dispatches a reply with buffered block support after lazy-loading the runtime dispatcher. */ const dispatchReplyWithBufferedBlockDispatcher = async (params) => { const { dispatchReplyWithBufferedBlockDispatcherCore: dispatch } = await loadProviderDispatcherRuntimeModule(); return await dispatch(params); }; /** Dispatches a reply through the provider dispatcher after lazy-loading runtime code. */ const dispatchReplyWithDispatcher = async (params) => { const { dispatchReplyWithDispatcherCore: dispatch } = await loadProviderDispatcherRuntimeModule(); return await dispatch(params); }; //#endregion export { dispatchReplyWithDispatcher as n, dispatchReplyWithBufferedBlockDispatcher as t };