UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) • 1.4 kB
import { t as normalizeAnyChannelId } from "./registry-normalize-BnQO61Jh.mjs"; import { i as getLoadedChannelPluginForRead } from "./registry-loaded-CWeoGJWS.mjs"; import { i as enqueueSystemEvent } from "./system-events-BxmpB_BU.mjs"; import { t as buildOutboundSessionContext } from "./session-context-Sj2e-B_P.mjs"; import { n as sendDurableMessageBatchCore, t as durableMessageBatchMayHaveReachedRecipient } from "./send-Do63XxQr.mjs"; import "./runtime-DsYC3m9u.mjs"; import { r as createChannelReplyTransform } from "./reply-transform-Cog0xfyl.mjs"; import { n as resolveAgentOutboundIdentity } from "./identity-Ccy_uLJp.mjs"; import { t as createOutboundSendDepsFromCliSource } from "./outbound-send-mapping-B9jR7tfu.mjs"; //#region src/cron/isolated-agent/delivery-outbound.runtime.ts function resolveCronChannelReplyTransform(params) { const channelId = normalizeAnyChannelId(params.channel) ?? params.channel; const messaging = getLoadedChannelPluginForRead(channelId)?.messaging; const transform = createChannelReplyTransform({ ...params, messaging }); return transform ? { apply: transform } : void 0; } //#endregion export { buildOutboundSessionContext, createOutboundSendDepsFromCliSource as createOutboundSendDeps, durableMessageBatchMayHaveReachedRecipient, enqueueSystemEvent, resolveAgentOutboundIdentity, resolveCronChannelReplyTransform, sendDurableMessageBatchCore };