UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

121 lines (120 loc) 4.57 kB
import { n as getRuntimeConfig } from "./io.runtime-B9iJRs3w.js"; import { a as enqueueSystemEvent } from "./system-events-C03jsM0j.js"; import { t as deliverInboundReplyWithMessageSendContext } from "./channel-outbound-Dw9bfhFK.js"; import { c as resolveInboundLastRouteSessionKey } from "./resolve-route-BRXfbiKP.js"; import { o as resolvePinnedMainDmOwnerFromAllowlist } from "./dm-policy-shared-BrXqldwA.js"; import { n as loadWebMedia } from "./web-media-C9Ri3Aft.js"; import "./routing-adlWg0R3.js"; import { r as buildChannelInboundEventContext } from "./run-channel-turn-g-1d9x-q.js"; import { t as recordInboundSession } from "./session-CGo-oQbb.js"; import { t as createChannelReplyPipeline } from "./reply-pipeline-_oYGH8-B.js"; import { n as recordChannelActivity } from "./channel-activity-KGHrbxIK.js"; import { d as upsertChannelPairingRequest, s as readChannelAllowFromStore } from "./pairing-store-CxXcVQPq.js"; import { t as resolveApprovalOverGateway } from "./approval-gateway-resolver-PqvGdq98.js"; import "./approval-gateway-runtime-Dq_qSpK7.js"; import { n as resolveAmbientTranscriptWatermarkKey } from "./ambient-transcript-watermark-nuSuKQGa.js"; import { h as resolveStorePath, i as getSessionEntry, l as readAmbientTranscriptWatermark, u as readSessionUpdatedAt } from "./session-store-runtime-Btld46Zi.js"; import { t as dispatchReplyWithBufferedBlockDispatcher } from "./reply-dispatch-runtime-4hztr4MP.js"; import "./channel-inbound-DreWTphY.js"; import "./web-media-CbeT3HsJ.js"; import "./system-event-runtime-CZ2hxQ9w.js"; import "./runtime-config-snapshot-u1Kj68kx.js"; import "./conversation-runtime-xcCOAINs.js"; import "./security-runtime-Ckf0kc0h.js"; import { n as listSkillCommandsForAgents } from "./chat-commands-DMxLWfLz.js"; import { t as buildPreparedModelsProviderData } from "./commands-models-BlJRzrxq.js"; import "./models-provider-runtime-8fnZpTD5.js"; import "./skill-commands-runtime-BF2r0u98.js"; import { B as recordOutboundMessageForPromptContext, b as editMessageTelegram, z as wasSentByBot } from "./send-BXHKghr-.js"; import { r as syncTelegramMenuCommands } from "./bot-native-command-menu-CD00X_dv.js"; import { n as emitTelegramMessageSentHooks, t as deliverReplies } from "./delivery-DF7Z8M36.js"; import { t as createTelegramDraftStream } from "./draft-stream-Bn4ycaEm.js"; //#region extensions/telegram/src/bot-deps.ts const defaultTelegramBotDeps = { get getRuntimeConfig() { return getRuntimeConfig; }, get resolveStorePath() { return resolveStorePath; }, get getSessionEntry() { return getSessionEntry; }, get readChannelAllowFromStore() { return readChannelAllowFromStore; }, get readSessionUpdatedAt() { return readSessionUpdatedAt; }, get readAmbientTranscriptWatermark() { return readAmbientTranscriptWatermark; }, get resolveAmbientTranscriptWatermarkKey() { return resolveAmbientTranscriptWatermarkKey; }, get recordInboundSession() { return recordInboundSession; }, get recordChannelActivity() { return recordChannelActivity; }, get resolveInboundLastRouteSessionKey() { return resolveInboundLastRouteSessionKey; }, get resolvePinnedMainDmOwnerFromAllowlist() { return resolvePinnedMainDmOwnerFromAllowlist; }, get buildChannelInboundEventContext() { return buildChannelInboundEventContext; }, get upsertChannelPairingRequest() { return upsertChannelPairingRequest; }, get enqueueSystemEvent() { return enqueueSystemEvent; }, get dispatchReplyWithBufferedBlockDispatcher() { return dispatchReplyWithBufferedBlockDispatcher; }, get loadWebMedia() { return loadWebMedia; }, get buildModelsProviderData() { return buildPreparedModelsProviderData; }, get listSkillCommandsForAgents() { return listSkillCommandsForAgents; }, get syncTelegramMenuCommands() { return syncTelegramMenuCommands; }, get wasSentByBot() { return wasSentByBot; }, get resolveApproval() { return resolveApprovalOverGateway; }, get createTelegramDraftStream() { return createTelegramDraftStream; }, get deliverReplies() { return deliverReplies; }, get deliverInboundReplyWithMessageSendContext() { return deliverInboundReplyWithMessageSendContext; }, get emitTelegramMessageSentHooks() { return emitTelegramMessageSentHooks; }, get editMessageTelegram() { return editMessageTelegram; }, get recordOutboundMessageForPromptContext() { return recordOutboundMessageForPromptContext; }, get createChannelMessageReplyPipeline() { return createChannelReplyPipeline; } }; //#endregion export { defaultTelegramBotDeps as t };