openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
124 lines (123 loc) • 4.75 kB
JavaScript
import { r as getRuntimeConfig } from "./io.runtime-FunTy0y1.mjs";
import { i as enqueueRoutedSystemEvent } from "./system-events-BkdW61X4.mjs";
import { n as deliverStructuredInboundReplyWithMessageSendContext } from "./channel-outbound-Dt78YwwU.mjs";
import { s as resolveInboundLastRouteSessionKey } from "./resolve-route-CjRxw_sT.mjs";
import { n as loadWebMedia } from "./web-media-Av3k1RzZ.mjs";
import "./routing-D93XBoA5.mjs";
import { t as buildChannelInboundEventContext } from "./context-DoI-twr3.mjs";
import { t as recordInboundSession } from "./session-BLJHMJ3b.mjs";
import { n as recordChannelActivity } from "./channel-activity-KGHrbxIK.mjs";
import { d as upsertChannelPairingRequest, s as readChannelAllowFromStore } from "./pairing-store-DKAYw0R1.mjs";
import { i as resolvePinnedMainDmOwnerFromAllowlist } from "./dm-policy-shared-B8LDOuKc.mjs";
import { n as resolveApprovalOverGateway } from "./approval-gateway-resolver-DOcjiejn.mjs";
import "./approval-gateway-runtime-BPjHYBqn.mjs";
import { n as resolveAmbientTranscriptWatermarkKey } from "./ambient-transcript-watermark-DTxZrpf1.mjs";
import { h as resolveStorePath, i as getSessionEntry, l as readAmbientTranscriptWatermark, u as readSessionUpdatedAt } from "./session-store-runtime-B4-uDJLY.mjs";
import { t as dispatchReplyWithBufferedBlockDispatcher } from "./reply-dispatch-runtime-DaHEmvAm.mjs";
import { t as createChannelReplyPipeline } from "./reply-pipeline-BgOuETYW.mjs";
import "./channel-inbound-88TEBbwh.mjs";
import "./web-media-ChKPhUUy.mjs";
import "./system-event-runtime-CPHJDxUK.mjs";
import "./runtime-config-snapshot-DPEZoubb.mjs";
import "./conversation-runtime-DxXESTtD.mjs";
import "./security-runtime-9ynw5sNI.mjs";
import { t as listSkillCommandsForAgents } from "./chat-commands-DQ5iJVMA.mjs";
import { a as buildPreparedModelsProviderData } from "./commands-models-NAOwuT55.mjs";
import "./models-provider-runtime-DLCg-3Px.mjs";
import "./skill-commands-runtime-CMgJdkW7.mjs";
import { J as wasSentByBot, Q as recordOutboundMessageForPromptContext, w as editMessageTelegram } from "./send-CsTFBaJo.mjs";
import { r as syncTelegramMenuCommands } from "./bot-native-command-menu-CCcWz4-z.mjs";
import { a as emitTelegramMessageSentHooks, n as deliverStructuredReplies, t as deliverReplies } from "./delivery-B5CLZMkI.mjs";
import { t as createTelegramDraftStream } from "./draft-stream-CnMGyOQJ.mjs";
//#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 enqueueRoutedSystemEvent() {
return enqueueRoutedSystemEvent;
},
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 deliverStructuredReplies() {
return deliverStructuredReplies;
},
get deliverStructuredInboundReplyWithMessageSendContext() {
return deliverStructuredInboundReplyWithMessageSendContext;
},
get emitTelegramMessageSentHooks() {
return emitTelegramMessageSentHooks;
},
get editMessageTelegram() {
return editMessageTelegram;
},
get recordOutboundMessageForPromptContext() {
return recordOutboundMessageForPromptContext;
},
get createChannelMessageReplyPipeline() {
return createChannelReplyPipeline;
}
};
//#endregion
export { defaultTelegramBotDeps as t };