openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
5 lines • 2.2 kB
JavaScript
import{n as createLazyPromise}from"./lazy-promise-CismJCQR.mjs";import{n as createLazyRuntimeMethodBinder,r as createLazyRuntimeModule,t as createLazyRuntimeMethod}from"./lazy-runtime-Ds6M7vp4.mjs";import{r as getBoundLegacyPluginSdkResourceHost}from"./legacy-sdk-resource-host-9HMZFK01.mjs";
//!src/auto-reply/public-reply-options.ts
function publicReplyOptions(e){if(!e)return;const t={...e};Reflect.deleteProperty(t,`replyExpectation`);Reflect.deleteProperty(t,`internalEventExecution`);Reflect.deleteProperty(t,`onReplyOperationAdmitted`);Reflect.deleteProperty(t,`onReplyOperationOwned`);return t}function publicChannelTurn(e){return{...e,replyOptions:publicReplyOptions(e.replyOptions)}}
//!src/plugins/legacy-sdk-reply-dispatch.ts
function createLegacyPluginSdkReplyDispatch(){const e=createLazyRuntimeMethodBinder(createLazyPromise(()=>import(`./provider-dispatcher.runtime.js`),{cacheRejections:true}));return Object.freeze({tryDispatchAcpReplyHook:createLazyRuntimeMethod(createLazyRuntimeModule(()=>import(`./dispatch-acp-sdk-CSv9-jef.mjs`)),e=>e.tryDispatchAcpReplyHookCore),dispatchReplyWithBufferedBlockDispatcher:e(e=>e.dispatchReplyWithBufferedBlockDispatcherCore),dispatchReplyWithDispatcher:e(e=>e.dispatchReplyWithDispatcherCore)})}const bindStandaloneProvider=createLazyRuntimeMethodBinder(createLazyPromise(()=>import(`./provider-dispatcher.runtime.js`),{cacheRejections:true}));const dispatchBuffered=bindStandaloneProvider(e=>e.dispatchReplyWithBufferedBlockDispatcherCore);const dispatch=bindStandaloneProvider(e=>e.dispatchReplyWithDispatcherCore);async function dispatchReplyWithBufferedBlockDispatcher(e){const t=getBoundLegacyPluginSdkResourceHost();return t?t.invokeReplyDispatch(t=>t.dispatchReplyWithBufferedBlockDispatcher(publicChannelTurn(e))):dispatchBuffered(publicChannelTurn(e))}async function dispatchReplyWithDispatcher(e){const t=getBoundLegacyPluginSdkResourceHost();return t?t.invokeReplyDispatch(t=>t.dispatchReplyWithDispatcher(publicChannelTurn(e))):dispatch(publicChannelTurn(e))}export{publicReplyOptions as a,publicChannelTurn as i,dispatchReplyWithBufferedBlockDispatcher as n,dispatchReplyWithDispatcher as r,createLegacyPluginSdkReplyDispatch as t};