fix: add missing re-exports in extension runtime-api barrel files

After upstream API boundary refactor, several runtime-api.ts barrel
files were missing re-exports causing runtime SyntaxError on startup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
wenmengzhou 2026-03-18 23:27:50 +08:00
parent 468a62679a
commit 9da7c35804
5 changed files with 47 additions and 1 deletions

View File

@ -33,6 +33,14 @@ export {
setAccountEnabledInConfigSection,
setTopLevelChannelAllowFrom,
setTopLevelChannelDmPolicyWithAllowFrom,
BlockStreamingCoalesceSchema,
DEFAULT_ACCOUNT_ID,
DmConfigSchema,
DmPolicySchema,
GroupPolicySchema,
MarkdownConfigSchema,
ReplyRuntimeConfigSchemaShape,
requireOpenAllowFrom,
ToolPolicySchema,
warnMissingProviderGroupPolicyFallbackOnce,
type BaseProbeResult,

View File

@ -47,3 +47,29 @@ export {
} from "../../src/channels/account-snapshot-fields.js";
export { resolveTelegramPollVisibility } from "../../src/poll-params.js";
export { PAIRING_APPROVED_MESSAGE } from "../../src/channels/plugins/pairing-message.js";
// Send / message action helpers
export {
createForumTopicTelegram,
deleteMessageTelegram,
editForumTopicTelegram,
editMessageReplyMarkupTelegram,
editMessageTelegram,
pinMessageTelegram,
reactMessageTelegram,
renameForumTopicTelegram,
sendMessageTelegram,
sendPollTelegram,
sendStickerTelegram,
sendTypingTelegram,
unpinMessageTelegram,
} from "./src/send.js";
export { resolveTelegramToken } from "./src/token.js";
export { telegramMessageActions } from "./src/channel-actions.js";
export { collectTelegramUnmentionedGroupIds, auditTelegramGroupMembership } from "./src/audit.js";
export {
setTelegramThreadBindingIdleTimeoutBySessionKey,
setTelegramThreadBindingMaxAgeBySessionKey,
} from "./src/thread-bindings.js";
export { monitorTelegramProvider } from "./src/monitor.js";
export { probeTelegram } from "./src/probe.js";

View File

@ -1,17 +1,22 @@
export {
buildChannelConfigSchema,
createActionGate,
createWhatsAppOutboundBase,
DEFAULT_ACCOUNT_ID,
formatWhatsAppConfigAllowFromEntries,
getChatChannelMeta,
isWhatsAppGroupJid,
jsonResult,
normalizeE164,
normalizeWhatsAppTarget,
readReactionParams,
readStringParam,
resolveWhatsAppGroupIntroHint,
resolveWhatsAppHeartbeatRecipients,
resolveWhatsAppMentionStripRegexes,
resolveWhatsAppOutboundTarget,
ToolAuthorizationError,
WhatsAppConfigSchema,
type ChannelPlugin,
type ChannelMessageActionName,
type DmPolicy,

View File

@ -35,6 +35,7 @@ export * from "../channels/plugins/config-writes.js";
export * from "../channels/plugins/media-payload.js";
export * from "../channels/plugins/message-tool-schema.js";
export * from "../channels/plugins/normalize/signal.js";
export * from "../channels/plugins/normalize/slack.js";
export * from "../channels/plugins/normalize/whatsapp.js";
export * from "../channels/plugins/outbound/direct-text-media.js";
export * from "../channels/plugins/outbound/interactive.js";

View File

@ -61,7 +61,13 @@ export {
export { resolveWhatsAppHeartbeatRecipients } from "../channels/plugins/whatsapp-heartbeat.js";
export { WhatsAppConfigSchema } from "../config/zod-schema.providers-whatsapp.js";
export { createActionGate, readStringParam } from "../agents/tools/common.js";
export {
createActionGate,
jsonResult,
readReactionParams,
readStringParam,
ToolAuthorizationError,
} from "../agents/tools/common.js";
export { createPluginRuntimeStore } from "./runtime-store.js";
export { normalizeE164 } from "../utils.js";