openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
22 lines (21 loc) • 1.34 kB
JavaScript
import { t as normalizeAnyChannelId } from "./registry-normalize-DKVgg-js.mjs";
import { i as getLoadedChannelPluginForRead } from "./registry-loaded-BXeI0CAQ.mjs";
import { s as enqueueSystemEvent } from "./system-events-GQMoAcQt.mjs";
import { t as buildOutboundSessionContext } from "./session-context-CJIY-7po.mjs";
import { n as sendDurableMessageBatchCore, t as durableMessageBatchMayHaveReachedRecipient } from "./send-pkDeJujE.mjs";
import "./runtime-JocY4hue.mjs";
import { r as createChannelReplyTransform } from "./reply-transform-D02pkEMa.mjs";
import { t as resolveAgentOutboundIdentity } from "./identity-qnB50_l4.mjs";
import { t as createOutboundSendDeps } from "./outbound-send-deps-CvOi7xsU.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, createOutboundSendDeps, durableMessageBatchMayHaveReachedRecipient, enqueueSystemEvent, resolveAgentOutboundIdentity, resolveCronChannelReplyTransform, sendDurableMessageBatchCore };