UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

34 lines (33 loc) • 3.54 kB
import { n as HEARTBEAT_TOKEN, r as SILENT_REPLY_TOKEN, s as isSilentReplyText } from "../tokens-Ljy0DfNV.mjs"; import { c as resolveHeartbeatPromptCore, n as HEARTBEAT_PROMPT, t as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, u as stripHeartbeatToken } from "../heartbeat-nZ1C5oCa.mjs"; import { n as resolveInboundDebounceMs, t as createInboundDebouncer } from "../inbound-debounce-D_uzsHO6.mjs"; import { n as finalizeInboundContextForSdk } from "../inbound-context-CRxwq3D_.mjs"; import { a as createReplyDispatcherWithTyping, i as createReplyDispatcher } from "../reply-dispatcher-gTTFXVZE.mjs"; import { t as createReplyReferencePlanner } from "../reply-reference-CLjC4hNl.mjs"; import { n as parseActivationCommand, t as normalizeGroupActivation } from "../group-activation-D-hOhHZQ.mjs"; import { n as settleReplyDispatcher } from "../dispatch-dispatcher-BKxE1A-W.mjs"; import { n as dispatchInboundMessageWithBufferedDispatcher, r as dispatchInboundMessageWithDispatcher, t as dispatchInboundMessage } from "../dispatch-24DdbDip.mjs"; import { i as resetInboundDedupe } from "../dispatch-from-config-D0ByBFxM.mjs"; import { a as chunkText, c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, o as chunkTextWithMode, r as chunkMarkdownText, s as resolveChunkMode } from "../chunk-DRxifHKN.mjs"; import { r as publicReplyOptions, t as publicChannelTurn } from "../reply-options-vskFqRCa.mjs"; import { t as getReplyFromConfig } from "../get-reply-XXltnwYw.mjs"; import { n as isAbortRequestText } from "../abort-primitives-BWGbzk7d.mjs"; import { t as resolveHeartbeatReplyPayload } from "../heartbeat-reply-payload-CL5O03bf.mjs"; import { n as isBtwRequestText } from "../btw-command-COac47pT.mjs"; import { t as generateConversationLabel } from "../conversation-label-generator-le5V7-E4.mjs"; import { n as dispatchReplyWithDispatcher, t as dispatchReplyWithBufferedBlockDispatcher } from "../reply-dispatch-runtime-BV9g0pHK.mjs"; //#region src/plugin-sdk/reply-runtime-adapters.ts function dispatchInboundMessageForSdk(params) { return dispatchInboundMessage(publicChannelTurn(params)); } function dispatchInboundMessageWithBufferedDispatcherForSdk(params) { return dispatchInboundMessageWithBufferedDispatcher(publicChannelTurn(params)); } function dispatchInboundMessageWithDispatcherForSdk(params) { return dispatchInboundMessageWithDispatcher(publicChannelTurn(params)); } function getReplyFromConfigForSdk(ctx, opts, config) { return getReplyFromConfig(ctx, publicReplyOptions(opts), config); } //#endregion export { DEFAULT_HEARTBEAT_ACK_MAX_CHARS, HEARTBEAT_PROMPT, HEARTBEAT_TOKEN, SILENT_REPLY_TOKEN, chunkMarkdownText, chunkMarkdownTextWithMode, chunkText, chunkTextWithMode, createInboundDebouncer, createReplyDispatcher, createReplyDispatcherWithTyping, createReplyReferencePlanner, dispatchInboundMessageForSdk as dispatchInboundMessage, dispatchInboundMessageWithBufferedDispatcherForSdk as dispatchInboundMessageWithBufferedDispatcher, dispatchInboundMessageWithDispatcherForSdk as dispatchInboundMessageWithDispatcher, dispatchReplyWithBufferedBlockDispatcher, dispatchReplyWithDispatcher, finalizeInboundContextForSdk as finalizeInboundContext, generateConversationLabel, getReplyFromConfigForSdk as getReplyFromConfig, isAbortRequestText, isBtwRequestText, isSilentReplyText, normalizeGroupActivation, parseActivationCommand, resetInboundDedupe, resolveChunkMode, resolveHeartbeatPromptCore, resolveHeartbeatReplyPayload, resolveInboundDebounceMs, resolveTextChunkLimit, settleReplyDispatcher, stripHeartbeatToken };