@openclaw/discord 2026.11.7 → 2026.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/.setup/{account-inspect-DGkdWwix.mjs → account-inspect-CSz5Qodj.mjs} +2 -3
  2. package/dist/.setup/{accounts-C_25wyxC.mjs → accounts-DtjvhJUj.mjs} +4 -8
  3. package/dist/.setup/{active-turn-thread-route-KvRTAVE3.mjs → active-turn-thread-route-DkPnk2x8.mjs} +1 -2
  4. package/dist/.setup/{allow-list-C3j0qLDp.mjs → allow-list-CkqpzPvP.mjs} +4 -8
  5. package/dist/.setup/{api-DYRggUgK.mjs → api-C4j_kC-2.mjs} +4 -6
  6. package/dist/.setup/{approval-handler.runtime-BN4W1r0o.mjs → approval-handler.runtime-bB4eKcGl.mjs} +9 -10
  7. package/dist/.setup/{approval-message-updates-DKsCfxSW.mjs → approval-message-updates-DqOXxPss.mjs} +3 -4
  8. package/dist/.setup/{audit-BL6EoUun.mjs → audit-D1UISAXW.mjs} +6 -7
  9. package/dist/.setup/{channel-access-9cyzozUP.mjs → channel-access-DhJhVrdZ.mjs} +1 -2
  10. package/dist/.setup/{channel-DdI2l55_.mjs → channel-i4V5w1Nh.mjs} +35 -41
  11. package/dist/.setup/{channel.setup-kNWMxlgu.mjs → channel.setup-BrGEJ0Ia.mjs} +7 -10
  12. package/dist/.setup/{command-deploy-store-DFkBTViB.mjs → command-deploy-store-DPWiBMks.mjs} +1 -2
  13. package/dist/.setup/{command-owners-C7rUdqUX.mjs → command-owners-BzlhNBxA.mjs} +1 -2
  14. package/dist/.setup/{components-C1Phe3uw.mjs → components-DeCLO9w0.mjs} +10 -16
  15. package/dist/.setup/{components.base-CiS0h_XP.mjs → components.base-C5sAPHe4.mjs} +1 -2
  16. package/dist/.setup/{config-schema-BNKN1cu5.mjs → config-schema-GX2yDgIH.mjs} +3 -5
  17. package/dist/.setup/{conversation-binding-route-K_jFbvi5.mjs → conversation-binding-route-CHCfhsCl.mjs} +2 -3
  18. package/dist/.setup/{directory-config-Ble81PWH.mjs → directory-config-BXJuh9-J.mjs} +3 -4
  19. package/dist/.setup/{directory-live-CY2-qrHI.mjs → directory-live-dzJ14-DT.mjs} +9 -64
  20. package/dist/.setup/{discord-BRVFhk09.mjs → discord-BGkLzt2b.mjs} +93 -72
  21. package/dist/.setup/{doctor-RqH-6JB0.mjs → doctor-DBBXoP9w.mjs} +7 -8
  22. package/dist/.setup/{doctor-contract-Bwv8EuQ_.mjs → doctor-contract-Dstl3cMg.mjs} +2 -3
  23. package/dist/.setup/{endpoint-runtime-lf4DeLas.mjs → endpoint-runtime-BM3x-m6O.mjs} +1 -2
  24. package/dist/.setup/{guilds-BSnrns-F.mjs → guilds-DYBhgnfq.mjs} +3 -4
  25. package/dist/.setup/{handle-action-uD87h2FK.mjs → handle-action-Dx2N-4A6.mjs} +11 -11
  26. package/dist/.setup/{handle-action.guild-admin-CqBx_3mG.mjs → handle-action.guild-admin-CGzsE3bM.mjs} +7 -5
  27. package/dist/.setup/{listeners-DnHLrLIN.mjs → listeners-DHjDOlXW.mjs} +2 -3
  28. package/dist/.setup/{live-policy-config-y0Qy36X3.mjs → live-policy-config-DjIHWFla.mjs} +3 -5
  29. package/dist/.setup/{message-handler-CWL_u0X8.mjs → message-handler-OqhwO2Il.mjs} +11 -15
  30. package/dist/.setup/{message-handler.preflight-83tpEdBG.mjs → message-handler.preflight-DaqozzfW.mjs} +20 -43
  31. package/dist/.setup/{message-handler.preflight-pluralkit-Dhcx7Ifz.mjs → message-handler.preflight-pluralkit-CPWdqrEU.mjs} +10 -14
  32. package/dist/.setup/{message-handler.process-BC-wNZwK.mjs → message-handler.process-C6ETXKq2.mjs} +26 -34
  33. package/dist/.setup/{outbound-payload-CK3_bDvK.mjs → outbound-payload-DOFjmMNE.mjs} +9 -11
  34. package/dist/.setup/{outbound-session-route-Ay_DnOOl.mjs → outbound-session-route-CzL157kC.mjs} +22 -34
  35. package/dist/.setup/{output-activity-uBpMSX75.mjs → output-activity-CDgs2s3O.mjs} +1 -2
  36. package/dist/.setup/{pluralkit-B64dfq_j.mjs → pluralkit-DcXbHTpQ.mjs} +2 -3
  37. package/dist/.setup/{preflight-audio-C6QtD6HX.mjs → preflight-audio-r4BbaJxh.mjs} +1 -2
  38. package/dist/.setup/{presence-cache-Dq-3nH7R.mjs → presence-cache-B3xj3b0l.mjs} +1 -2
  39. package/dist/.setup/{probe-CbDJojNV.mjs → probe-CfGMZwFD.mjs} +5 -6
  40. package/dist/.setup/{provider-CRb3Myky.mjs → provider-BcSZ6vqo.mjs} +110 -186
  41. package/dist/.setup/{provider-session.runtime-3cZpps3H.mjs → provider-session.runtime-CxGNqH7Q.mjs} +3 -3
  42. package/dist/.setup/provider.runtime-DPhNybGw.mjs +1 -0
  43. package/dist/.setup/{proxy-fetch-BzXwBAXt.mjs → proxy-fetch-B8cK6FLQ.mjs} +1 -2
  44. package/dist/.setup/{realtime-session.runtime-BRYpjS9P.mjs → realtime-session.runtime-Carw2Z1J.mjs} +15 -25
  45. package/dist/.setup/{receive-recovery-C3Ks4wAQ.mjs → receive-recovery-DV_v5ROf.mjs} +3 -6
  46. package/dist/.setup/{resolve-allowlist-common-B-S0wRIw.mjs → resolve-allowlist-common-CYdqBUgV.mjs} +3 -4
  47. package/dist/.setup/{resolve-channels-g16NM6Ho.mjs → resolve-channels-BNnyfCR8.mjs} +6 -7
  48. package/dist/.setup/{resolve-users-DAfOOXdy.mjs → resolve-users-CDMAGrzv.mjs} +5 -6
  49. package/dist/.setup/{rolldown-runtime-B4FMCO8f.mjs → rolldown-runtime-nwUcYXjP.mjs} +1 -2
  50. package/dist/.setup/{runtime-BMgTyuwg.mjs → runtime-B-PgPsGR.mjs} +4 -6
  51. package/dist/.setup/{runtime--HZ9r3tF.mjs → runtime-BJxDx_zr.mjs} +49 -47
  52. package/dist/.setup/{runtime-DgnVQ7zW.mjs → runtime-DcBvHOm1.mjs} +1 -2
  53. package/dist/.setup/{runtime-doctor-migrations-BPV-R4G9.mjs → runtime-doctor-migrations-BpV1jKk0.mjs} +5 -9
  54. package/dist/.setup/{secret-config-contract-B1kE4sDv.mjs → secret-config-contract-CP6teHec.mjs} +1 -2
  55. package/dist/.setup/{security-audit-BFT84Uny.mjs → security-audit-CTwisG7c.mjs} +3 -4
  56. package/dist/.setup/{security-contract-DNyyjTZZ.mjs → security-contract-D-o0iWDk.mjs} +1 -2
  57. package/dist/.setup/{security-doctor-nGgPm65L.mjs → security-doctor-4s7omTZd.mjs} +1 -2
  58. package/dist/.setup/{send-CtvwfZQ2.mjs → send-BQtMCED2.mjs} +19 -28
  59. package/dist/.setup/{send.components-CtLtE0yD.mjs → send.components-BTjOU5BX.mjs} +11 -14
  60. package/dist/.setup/{send.outbound-D58xXPgs.mjs → send.outbound-izfb48w-.mjs} +10 -16
  61. package/dist/.setup/{send.receipt-DLOV4qx6.mjs → send.receipt-D0vpuJMr.mjs} +64 -17
  62. package/dist/.setup/{send.shared-B_KKRrD7.mjs → send.shared-BVJkIe93.mjs} +15 -20
  63. package/dist/.setup/{sender-identity-BbA7FNbr.mjs → sender-identity-Dt5ELjRN.mjs} +2 -3
  64. package/dist/.setup/{session-contract-BO5tlIdl.mjs → session-contract-Bq71MS78.mjs} +1 -2
  65. package/dist/.setup/{session-key-normalization-CCHGNSQw.mjs → session-key-normalization-Cfvze5hd.mjs} +1 -2
  66. package/dist/.setup/setup-plugin-api-DCiNtEra.mjs +2 -0
  67. package/dist/.setup/{shared-Dv2DamaK.mjs → shared-djlPz0hY.mjs} +14 -17
  68. package/dist/.setup/{shared-interactive-DmzaoKOM.mjs → shared-interactive-DKBw4SNV.mjs} +7 -12
  69. package/dist/.setup/{subagent-hooks-yT45eTyz.mjs → subagent-hooks-BTmMGFYh.mjs} +3 -4
  70. package/dist/.setup/{system-events-Dlzp9Jcj.mjs → system-events-LN3PXCia.mjs} +3 -4
  71. package/dist/.setup/{target-parsing-C-HyNxcE.mjs → target-parsing-BiuhcK9Q.mjs} +1 -2
  72. package/dist/.setup/{target-resolver-BzaZPBm9.mjs → target-resolver-C98DQ-sp.mjs} +6 -7
  73. package/dist/.setup/{thread-binding-api-BDZJD4na.mjs → thread-binding-api-Drd4Zu-5.mjs} +1 -2
  74. package/dist/.setup/{thread-bindings-DRWhgKCc.mjs → thread-bindings-ESkVljSW.mjs} +7 -10
  75. package/dist/.setup/{thread-bindings.manager-CWJKirn1.mjs → thread-bindings.manager-BG7MMT7H.mjs} +15 -20
  76. package/dist/.setup/{thread-bindings.session-updates-DzJrXc4w.mjs → thread-bindings.session-updates-Ddn14oJa.mjs} +6 -10
  77. package/dist/.setup/{threading-BbsPuT5G.mjs → threading-BzxVQcv8.mjs} +5 -7
  78. package/dist/.setup/{timeouts-cIxzatmv.mjs → timeouts-CT9hnmo4.mjs} +1 -2
  79. package/dist/.setup/{transcripts-source-DIW1fU_P.mjs → transcripts-source-a1btN-pC.mjs} +20 -33
  80. package/dist/.setup/{typing-CNlSKY5S.mjs → typing-DAv4S2fI.mjs} +2 -3
  81. package/dist/.setup/{voice-runtime-oJ6BZs5D.mjs → voice-runtime-BI76hQQH.mjs} +28 -46
  82. package/dist/.source-module-urls/d6c089460280c5a04184542d6712e04545caeb1ebb290d3504377b4cc5e22fea.json +1 -1
  83. package/dist/account-inspect-api.js +2 -3
  84. package/dist/action-runtime-api.js +1 -1
  85. package/dist/activities-api.js +9 -13
  86. package/dist/api.js +21 -22
  87. package/dist/channel-config-api.js +1 -1
  88. package/dist/channel-plugin-api.js +1 -1
  89. package/dist/contract-api.js +1 -1
  90. package/dist/directory-contract-api.js +2 -3
  91. package/dist/doctor-contract-api.js +5 -7
  92. package/dist/index.js +1 -2
  93. package/dist/runtime-api.js +22 -22
  94. package/dist/runtime-setter-api.js +1 -1
  95. package/dist/secret-contract-api.js +1 -1
  96. package/dist/security-audit-contract-api.js +1 -1
  97. package/dist/security-contract-api.js +1 -1
  98. package/dist/session-key-api.js +1 -1
  99. package/dist/setup-entry.js +2 -3
  100. package/dist/setup-plugin-api.js +1 -1
  101. package/dist/src/voice/audio-worker.runtime.js +8 -14
  102. package/dist/subagent-hooks-api.js +2 -3
  103. package/dist/thread-binding-api.js +1 -1
  104. package/dist/transcripts-source-api.js +2 -3
  105. package/package.json +4 -4
  106. package/dist/.setup/provider.runtime-tmkt3QOg.mjs +0 -1
  107. package/dist/.setup/setup-plugin-api-ty5RJrMy.mjs +0 -2
@@ -1,31 +1,31 @@
1
- import { g as resolveDiscordToken, h as normalizeDiscordToken, l as resolveDiscordAccount, m as resolveDiscordMaxLinesPerMessage, p as resolveDiscordAccountDmPolicy, s as mergeDiscordAccountConfig, u as resolveDiscordAccountAllowFrom } from "./accounts-C_25wyxC.mjs";
2
- import { B as unregisterGateway, C as hasAnyChannelPermissionDiscord, N as createDiscordRestClient, y as canViewDiscordGuildChannel, z as registerGateway } from "./send.shared-B_KKRrD7.mjs";
3
- import { B as RateLimitError, J as stripUndefinedFields, L as DISCORD_REST_TIMEOUT_MS, _ as Command, d as hasDiscordV2Components, g as User, h as Message, l as Client, m as Guild, n as GuildCreateListener, o as Modal, r as ReadyListener, t as discord_exports, u as asSerializableComponent, v as CommandWithSubcommands, z as DiscordError } from "./discord-BRVFhk09.mjs";
4
- import { S as formatDiscordUserTag, _ as resolveDiscordOwnerAllowFrom, a as normalizeDiscordDisplaySlug, b as shouldEmitDiscordReactionNotification, c as resolveDiscordChannelConfig, f as resolveDiscordGuildEntry, g as resolveDiscordOwnerAccess, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, m as resolveDiscordMemberAllowed, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, r as isDiscordGroupAllowedByPolicy, s as resolveDiscordAllowListMatch, u as resolveDiscordChannelPolicyCommandAuthorizer, w as isDiscordThreadChannelType, x as formatDiscordReactionEmoji, y as resolveGroupDmAllow } from "./allow-list-C3j0qLDp.mjs";
5
- import { v as chunkDiscordTextWithMode } from "./send.receipt-DLOV4qx6.mjs";
6
- import { n as getDiscordEndpointRuntime, t as assertDiscordEndpointGatewayUrl } from "./endpoint-runtime-lf4DeLas.mjs";
7
- import { n as validateDiscordProxyUrl, r as withValidatedDiscordProxy } from "./proxy-fetch-BzXwBAXt.mjs";
8
- import { a as isDiscordRateLimitResponseBody, s as summarizeDiscordResponseBody } from "./api-DYRggUgK.mjs";
9
- import { _ as readMessagesDiscord, s as sendVoiceMessageDiscord } from "./send-CtvwfZQ2.mjs";
10
- import { s as formatMention, t as sendMessageDiscord } from "./send.outbound-D58xXPgs.mjs";
11
- import { l as withAbortTimeout } from "./timeouts-cIxzatmv.mjs";
12
- import { r as setPresence, t as clearPresences } from "./presence-cache-Dq-3nH7R.mjs";
13
- import { _ as parseDiscordModalCustomId, a as DISCORD_APPROVAL_DECISIONS, b as encodeCustomIdComponent, g as parseDiscordComponentCustomIdForInteraction, h as parseDiscordComponentCustomId, i as parseDiscordQuestionData, m as parseDiscordActivityCustomIdForInteraction, s as parseExecApprovalData, u as buildDiscordActivityCustomId, v as parseDiscordModalCustomIdForInteraction, y as decodeCustomIdComponent } from "./shared-interactive-DmzaoKOM.mjs";
14
- import { a as buildDiscordComponentMessage } from "./components-C1Phe3uw.mjs";
15
- import { a as registerDiscordComponentEntries, o as resolveDiscordComponentEntryWithPersistence, s as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-CtLtE0yD.mjs";
16
- import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
17
- import { n as getDiscordActivitiesRuntime } from "./runtime-BMgTyuwg.mjs";
18
- import { t as resolveDiscordCommandOwnerAllowFrom } from "./command-owners-C7rUdqUX.mjs";
19
- import { D as getDiscordExecApprovalApprovers, _ as resolveDiscordConversationIdentity, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, d as setDiscordPolicyBindings, f as buildDiscordConversationRouteContext, h as resolveDiscordEffectiveRoute, k as isDiscordExecApprovalClientEnabled, m as resolveDiscordConversationRoute, n as DISCORD_PRESENTATION_CAPABILITIES, p as buildDiscordRoutePeer, r as buildDiscordPresentationPayload, s as DISCORD_APPROVAL_ALLOWED_MENTIONS, u as resolveDiscordGroupToolPolicy } from "./outbound-session-route-Ay_DnOOl.mjs";
20
- import { n as discordIngressIdentity, t as selectDiscordLivePolicyConfig } from "./live-policy-config-y0Qy36X3.mjs";
21
- import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-g16NM6Ho.mjs";
22
- import { t as resolveDiscordUserAllowlist } from "./resolve-users-DAfOOXdy.mjs";
23
- import { a as isThreadArchived, n as getThreadBindingManager } from "./thread-bindings.manager-CWJKirn1.mjs";
24
- import { n as resolveDiscordChannelNameSafe, r as resolveDiscordChannelTopicSafe, t as resolveDiscordChannelInfoSafe } from "./channel-access-9cyzozUP.mjs";
25
- import { a as probeDiscordApplicationId, r as parseApplicationIdFromToken } from "./probe-CbDJojNV.mjs";
26
- import { O as resolveDiscordReferencedReplyMessage, a as resolveDiscordVoiceEnabled, i as setDiscordTranscriptsVoiceManager, k as resolveDiscordReferencedReplyMessageId, l as resolveDiscordThreadLikeChannelContext, o as authorizeDiscordVoiceIngress, s as resolveDiscordVoiceAccess, u as resolveFetchedDiscordThreadLikeChannelContext } from "./transcripts-source-DIW1fU_P.mjs";
27
- import { t as resolveDiscordSenderIdentity } from "./sender-identity-BbA7FNbr.mjs";
28
- import { n as hasDiscordApprovalControl, t as discordApprovalMessageUpdates } from "./approval-message-updates-DKsCfxSW.mjs";
1
+ import { g as resolveDiscordToken, h as normalizeDiscordToken, l as resolveDiscordAccount, m as resolveDiscordMaxLinesPerMessage, p as resolveDiscordAccountDmPolicy, s as mergeDiscordAccountConfig, u as resolveDiscordAccountAllowFrom } from "./accounts-DtjvhJUj.mjs";
2
+ import { B as unregisterGateway, C as hasAnyChannelPermissionDiscord, N as createDiscordRestClient, y as canViewDiscordGuildChannel, z as registerGateway } from "./send.shared-BVJkIe93.mjs";
3
+ import { B as RateLimitError, J as stripUndefinedFields, L as DISCORD_REST_TIMEOUT_MS, _ as Command, d as hasDiscordV2Components, g as User, h as Message, l as Client, m as Guild, n as GuildCreateListener, o as Modal, r as ReadyListener, t as discord_exports, u as asSerializableComponent, v as CommandWithSubcommands, z as DiscordError } from "./discord-BGkLzt2b.mjs";
4
+ import { S as formatDiscordUserTag, _ as resolveDiscordOwnerAllowFrom, a as normalizeDiscordDisplaySlug, b as shouldEmitDiscordReactionNotification, c as resolveDiscordChannelConfig, f as resolveDiscordGuildEntry, g as resolveDiscordOwnerAccess, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, m as resolveDiscordMemberAllowed, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, r as isDiscordGroupAllowedByPolicy, s as resolveDiscordAllowListMatch, u as resolveDiscordChannelPolicyCommandAuthorizer, w as isDiscordThreadChannelType, x as formatDiscordReactionEmoji, y as resolveGroupDmAllow } from "./allow-list-CkqpzPvP.mjs";
5
+ import { S as chunkDiscordTextWithMode } from "./send.receipt-D0vpuJMr.mjs";
6
+ import { n as getDiscordEndpointRuntime, t as assertDiscordEndpointGatewayUrl } from "./endpoint-runtime-BM3x-m6O.mjs";
7
+ import { n as validateDiscordProxyUrl, r as withValidatedDiscordProxy } from "./proxy-fetch-B8cK6FLQ.mjs";
8
+ import { a as isDiscordRateLimitResponseBody, s as summarizeDiscordResponseBody } from "./api-C4j_kC-2.mjs";
9
+ import { _ as readMessagesDiscord, s as sendVoiceMessageDiscord } from "./send-BQtMCED2.mjs";
10
+ import { s as formatMention, t as sendMessageDiscord } from "./send.outbound-izfb48w-.mjs";
11
+ import { l as withAbortTimeout } from "./timeouts-CT9hnmo4.mjs";
12
+ import { r as setPresence, t as clearPresences } from "./presence-cache-B3xj3b0l.mjs";
13
+ import { _ as parseDiscordModalCustomId, a as DISCORD_APPROVAL_DECISIONS, b as encodeCustomIdComponent, g as parseDiscordComponentCustomIdForInteraction, h as parseDiscordComponentCustomId, i as parseDiscordQuestionData, m as parseDiscordActivityCustomIdForInteraction, s as parseExecApprovalData, u as buildDiscordActivityCustomId, v as parseDiscordModalCustomIdForInteraction, y as decodeCustomIdComponent } from "./shared-interactive-DKBw4SNV.mjs";
14
+ import { a as buildDiscordComponentMessage } from "./components-DeCLO9w0.mjs";
15
+ import { a as registerDiscordComponentEntries, o as resolveDiscordComponentEntryWithPersistence, s as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-BTjOU5BX.mjs";
16
+ import { t as getDiscordRuntime } from "./runtime-DcBvHOm1.mjs";
17
+ import { n as getDiscordActivitiesRuntime } from "./runtime-B-PgPsGR.mjs";
18
+ import { t as resolveDiscordCommandOwnerAllowFrom } from "./command-owners-BzlhNBxA.mjs";
19
+ import { D as getDiscordExecApprovalApprovers, _ as resolveDiscordConversationIdentity, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, d as setDiscordPolicyBindings, f as buildDiscordConversationRouteContext, h as resolveDiscordEffectiveRoute, k as isDiscordExecApprovalClientEnabled, m as resolveDiscordConversationRoute, n as DISCORD_PRESENTATION_CAPABILITIES, p as buildDiscordRoutePeer, r as buildDiscordPresentationPayload, s as DISCORD_APPROVAL_ALLOWED_MENTIONS, u as resolveDiscordGroupToolPolicy } from "./outbound-session-route-CzL157kC.mjs";
20
+ import { n as discordIngressIdentity, t as selectDiscordLivePolicyConfig } from "./live-policy-config-DjIHWFla.mjs";
21
+ import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-BNnyfCR8.mjs";
22
+ import { t as resolveDiscordUserAllowlist } from "./resolve-users-CDMAGrzv.mjs";
23
+ import { a as isThreadArchived, n as getThreadBindingManager } from "./thread-bindings.manager-BG7MMT7H.mjs";
24
+ import { n as resolveDiscordChannelNameSafe, r as resolveDiscordChannelTopicSafe, t as resolveDiscordChannelInfoSafe } from "./channel-access-DhJhVrdZ.mjs";
25
+ import { a as probeDiscordApplicationId, r as parseApplicationIdFromToken } from "./probe-CfGMZwFD.mjs";
26
+ import { O as resolveDiscordReferencedReplyMessage, a as resolveDiscordVoiceEnabled, i as setDiscordTranscriptsVoiceManager, k as resolveDiscordReferencedReplyMessageId, l as resolveDiscordThreadLikeChannelContext, o as authorizeDiscordVoiceIngress, s as resolveDiscordVoiceAccess, u as resolveFetchedDiscordThreadLikeChannelContext } from "./transcripts-source-a1btN-pC.mjs";
27
+ import { t as resolveDiscordSenderIdentity } from "./sender-identity-Dt5ELjRN.mjs";
28
+ import { n as hasDiscordApprovalControl, t as discordApprovalMessageUpdates } from "./approval-message-updates-DqOXxPss.mjs";
29
29
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
30
30
  import { PlatformMessageNotDispatchedError, formatErrorMessage, toErrorObject } from "openclaw/plugin-sdk/error-runtime";
31
31
  import { createNonExitingRuntime, createSubsystemLogger, danger, formatDurationSeconds, logVerbose, shouldLogVerbose, sleepWithAbort, warn } from "openclaw/plugin-sdk/runtime-env";
@@ -95,7 +95,7 @@ import { inspect } from "node:util";
95
95
  import { channelReadyPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
96
96
  import { Agent } from "node:https";
97
97
  import { reportChannelRoomJoin } from "openclaw/plugin-sdk/channel-join-intro-runtime";
98
- //#region extensions/discord/src/monitor/listeners.queue.ts
98
+ // extensions/discord/src/monitor/listeners.queue.ts
99
99
  const DISCORD_SLOW_LISTENER_THRESHOLD_MS = 3e4;
100
100
  const discordEventQueueLog = createSubsystemLogger("discord/event-queue");
101
101
  async function runDiscordListenerWithSlowLog(params) {
@@ -127,8 +127,7 @@ async function runDiscordListenerWithSlowLog(params) {
127
127
  }
128
128
  }
129
129
  }
130
- //#endregion
131
- //#region extensions/discord/src/monitor/presence-events.ts
130
+ // extensions/discord/src/monitor/presence-events.ts
132
131
  const DISCORD_PRESENCE_GREETING_COOLDOWN_MS = 288e5;
133
132
  function isDiscordOnlineStatus(status) {
134
133
  return status === "online" || status === "idle" || status === "dnd";
@@ -155,8 +154,7 @@ function resolveDiscordOnlinePresenceEvent(params) {
155
154
  text: lines.join("\n")
156
155
  };
157
156
  }
158
- //#endregion
159
- //#region extensions/discord/src/monitor/presence-cooldown-store.ts
157
+ // extensions/discord/src/monitor/presence-cooldown-store.ts
160
158
  const DISCORD_PRESENCE_COOLDOWN_MAX_ENTRIES = 25e3;
161
159
  function openDiscordPresenceCooldownStore() {
162
160
  return getDiscordRuntime().state.openKeyedStore({
@@ -166,8 +164,7 @@ function openDiscordPresenceCooldownStore() {
166
164
  defaultTtlMs: DISCORD_PRESENCE_GREETING_COOLDOWN_MS
167
165
  });
168
166
  }
169
- //#endregion
170
- //#region extensions/discord/src/monitor/presence-emission-gate.ts
167
+ // extensions/discord/src/monitor/presence-emission-gate.ts
171
168
  const DISCORD_PRESENCE_RECONNECT_SUPPRESS_MS = 3e5;
172
169
  const DISCORD_PRESENCE_BURST_LIMIT = 8;
173
170
  const DISCORD_PRESENCE_BURST_WINDOW_MS = 6e4;
@@ -241,8 +238,7 @@ var DiscordPresenceEmissionGate = class {
241
238
  if (state.reservations.length === 0 && !state.logged) this.burstByGuild.delete(guildId);
242
239
  }
243
240
  };
244
- //#endregion
245
- //#region extensions/discord/src/monitor/presence-transition-cache.ts
241
+ // extensions/discord/src/monitor/presence-transition-cache.ts
246
242
  const DEFAULT_PRESENCE_BASELINE_MAX_ENTRIES = 75e3;
247
243
  var DiscordPresenceBaselineCache = class {
248
244
  constructor(maxEntries = DEFAULT_PRESENCE_BASELINE_MAX_ENTRIES) {
@@ -284,8 +280,7 @@ var DiscordPresenceBaselineCache = class {
284
280
  return evictedScope;
285
281
  }
286
282
  };
287
- //#endregion
288
- //#region extensions/discord/src/monitor/thread-session-close.ts
283
+ // extensions/discord/src/monitor/thread-session-close.ts
289
284
  /**
290
285
  * Closes every session entry in the store whose key contains {@link threadId}.
291
286
  * The explicit lifecycle deletion archives the old transcript and guarantees
@@ -315,8 +310,7 @@ async function closeDiscordThreadSessions(params) {
315
310
  }
316
311
  return resetCount;
317
312
  }
318
- //#endregion
319
- //#region extensions/discord/src/monitor/dm-command-auth.ts
313
+ // extensions/discord/src/monitor/dm-command-auth.ts
320
314
  const DISCORD_CHANNEL_ID = "discord";
321
315
  function createDiscordDmIngressSubject(sender) {
322
316
  return {
@@ -418,8 +412,7 @@ async function resolveDiscordTextCommandAccess(params) {
418
412
  }
419
413
  });
420
414
  }
421
- //#endregion
422
- //#region extensions/discord/src/monitor/listeners.reactions.ts
415
+ // extensions/discord/src/monitor/listeners.reactions.ts
423
416
  var DiscordReactionListener = class {
424
417
  constructor(params) {
425
418
  this.params = params;
@@ -650,8 +643,7 @@ async function runDiscordReactionHandler(params) {
650
643
  eventParams.logger.error(danger(`discord reaction handler failed: ${String(err)}`));
651
644
  }
652
645
  }
653
- //#endregion
654
- //#region extensions/discord/src/monitor/listeners.ts
646
+ // extensions/discord/src/monitor/listeners.ts
655
647
  function registerDiscordListener(listeners, listener) {
656
648
  if (listeners.some((existing) => existing.constructor === listener.constructor)) return false;
657
649
  listeners.push(listener);
@@ -1075,8 +1067,7 @@ var DiscordThreadDeleteListener = class {
1075
1067
  });
1076
1068
  }
1077
1069
  };
1078
- //#endregion
1079
- //#region extensions/discord/src/internal/gateway-dispatch.ts
1070
+ // extensions/discord/src/internal/gateway-dispatch.ts
1080
1071
  function mapGatewayDispatchData(client, type, data) {
1081
1072
  if (type === GatewayDispatchEvents.MessageCreate) return createMessageDispatchData(client, data);
1082
1073
  if (type === GatewayDispatchEvents.MessageReactionAdd || type === GatewayDispatchEvents.MessageReactionRemove) return createReactionDispatchData(client, data);
@@ -1116,8 +1107,7 @@ function createReactionDispatchData(client, data) {
1116
1107
  })
1117
1108
  };
1118
1109
  }
1119
- //#endregion
1120
- //#region extensions/discord/src/monitor/provider.allowlist.ts
1110
+ // extensions/discord/src/monitor/provider.allowlist.ts
1121
1111
  function formatResolutionLogDetails(base, details) {
1122
1112
  const nonEmpty = details.map((value) => value?.trim()).filter((value) => Boolean(value));
1123
1113
  return nonEmpty.length > 0 ? `${base} (${nonEmpty.join("; ")})` : base;
@@ -1316,8 +1306,7 @@ async function resolveDiscordAllowlistConfig(params) {
1316
1306
  allowFrom
1317
1307
  };
1318
1308
  }
1319
- //#endregion
1320
- //#region extensions/discord/src/network-config.ts
1309
+ // extensions/discord/src/network-config.ts
1321
1310
  const DISCORD_DNS_HOSTS = [
1322
1311
  "discord.com",
1323
1312
  "discord.gg",
@@ -1367,8 +1356,7 @@ function createDiscordEndpointDnsLookup(endpointHostname) {
1367
1356
  });
1368
1357
  };
1369
1358
  }
1370
- //#endregion
1371
- //#region extensions/discord/src/monitor/rest-fetch.ts
1359
+ // extensions/discord/src/monitor/rest-fetch.ts
1372
1360
  const discordDnsLookup$1 = createDiscordDnsLookup();
1373
1361
  function createDiscordRestFetchWithDispatcher(dispatcher) {
1374
1362
  return wrapFetchWithAbortSignal(((input, init) => fetchWithRuntimeDispatcher(input, {
@@ -1407,8 +1395,7 @@ function resolveDiscordRestFetch(proxyUrl, runtime) {
1407
1395
  }
1408
1396
  return createDiscordRestFetchWithDispatcher(dispatcher ?? createHttp1Agent({ connect: { lookup: discordDnsLookup$1 } }));
1409
1397
  }
1410
- //#endregion
1411
- //#region extensions/discord/src/monitor/live-policy.ts
1398
+ // extensions/discord/src/monitor/live-policy.ts
1412
1399
  /** One reader belongs to one admitted account; transport and lifetime remain its startup owners. */
1413
1400
  function createDiscordLivePolicyReader(params) {
1414
1401
  const readConfig = params.readConfig ?? createRuntimeConfigReader(params.cfg);
@@ -1506,8 +1493,7 @@ function createDiscordLivePolicyReader(params) {
1506
1493
  }
1507
1494
  };
1508
1495
  }
1509
- //#endregion
1510
- //#region extensions/discord/src/monitor/dm-command-decision.ts
1496
+ // extensions/discord/src/monitor/dm-command-decision.ts
1511
1497
  async function handleDiscordDmCommandDecision(params) {
1512
1498
  if (params.senderAccess.decision === "pairing") {
1513
1499
  const result = await createChannelPairingChallengeIssuer({
@@ -1533,8 +1519,7 @@ async function handleDiscordDmCommandDecision(params) {
1533
1519
  }
1534
1520
  await params.onUnauthorized();
1535
1521
  }
1536
- //#endregion
1537
- //#region extensions/discord/src/monitor/live-policy-interaction.ts
1522
+ // extensions/discord/src/monitor/live-policy-interaction.ts
1538
1523
  const INTERACTION_POLICY_WAIT_MS = 1e3;
1539
1524
  async function readDiscordInteractionPolicy(readPolicy) {
1540
1525
  const timeout = /* @__PURE__ */ new Error("Discord interaction access policy resolution timed out");
@@ -1545,8 +1530,7 @@ async function readDiscordInteractionPolicy(readPolicy) {
1545
1530
  return null;
1546
1531
  }
1547
1532
  }
1548
- //#endregion
1549
- //#region extensions/discord/src/monitor/native-command-reply.ts
1533
+ // extensions/discord/src/monitor/native-command-reply.ts
1550
1534
  const DISCORD_EMPTY_VISIBLE_REPLY_WARNING = "⚠️ Command produced no visible reply.";
1551
1535
  /** Retain visible component text, not interaction IDs or option values. */
1552
1536
  function formatDiscordCommandComponents(components) {
@@ -1691,8 +1675,7 @@ async function deliverDiscordInteractionReply(params) {
1691
1675
  if (payloadDelivered && params.onDelivered) await params.onDelivered(deliveredText?.filter(Boolean).join("\n") ?? "");
1692
1676
  return payloadDelivered;
1693
1677
  }
1694
- //#endregion
1695
- //#region extensions/discord/src/monitor/native-command-agent-reply.ts
1678
+ // extensions/discord/src/monitor/native-command-agent-reply.ts
1696
1679
  async function dispatchDiscordNativeAgentReply(params) {
1697
1680
  const blockStreamingEnabled = resolveChannelStreamingBlockEnabled(params.discordConfig);
1698
1681
  let didReply = false;
@@ -1768,13 +1751,11 @@ async function dispatchDiscordNativeAgentReply(params) {
1768
1751
  }));
1769
1752
  return dispatchResult;
1770
1753
  }
1771
- //#endregion
1772
- //#region extensions/discord/src/monitor/commands.ts
1754
+ // extensions/discord/src/monitor/commands.ts
1773
1755
  function resolveDiscordSlashCommandConfig(raw) {
1774
1756
  return { ephemeral: raw?.ephemeral !== false };
1775
1757
  }
1776
- //#endregion
1777
- //#region extensions/discord/src/monitor/native-command-arg-ui.ts
1758
+ // extensions/discord/src/monitor/native-command-arg-ui.ts
1778
1759
  const DISCORD_COMMAND_ARG_CUSTOM_ID_KEY = "cmdarg";
1779
1760
  function parseDiscordCommandArgData(data) {
1780
1761
  if (!data || typeof data !== "object") return null;
@@ -1867,8 +1848,7 @@ function createDiscordCommandArgFallbackButton$1(params) {
1867
1848
  }
1868
1849
  };
1869
1850
  }
1870
- //#endregion
1871
- //#region extensions/discord/src/monitor/inbound-context.ts
1851
+ // extensions/discord/src/monitor/inbound-context.ts
1872
1852
  function createDiscordSupplementalContextAccessChecker(params) {
1873
1853
  const userAllowList = params.channelConfig?.users ?? params.guildInfo?.users ?? [];
1874
1854
  const roleAllowList = params.channelConfig?.roles ?? params.guildInfo?.roles ?? [];
@@ -1917,8 +1897,7 @@ function buildDiscordInboundAccessContext(params) {
1917
1897
  ownerAllowFrom: resolveDiscordOwnerAllowFrom(params)
1918
1898
  };
1919
1899
  }
1920
- //#endregion
1921
- //#region extensions/discord/src/monitor/native-command-context.ts
1900
+ // extensions/discord/src/monitor/native-command-context.ts
1922
1901
  async function buildDiscordNativeInteractionContext(params) {
1923
1902
  const { interaction, route, boundSessionKey, sessionPrefix, channelContext, ...context } = params;
1924
1903
  const targets = resolveNativeCommandSessionTargets({
@@ -2055,8 +2034,7 @@ async function buildDiscordNativeInteractionContext(params) {
2055
2034
  ...targets
2056
2035
  };
2057
2036
  }
2058
- //#endregion
2059
- //#region extensions/discord/src/monitor/native-command-route.ts
2037
+ // extensions/discord/src/monitor/native-command-route.ts
2060
2038
  function resolveDiscordNativeInteractionRouteState(params) {
2061
2039
  const { channelContext, interaction } = params;
2062
2040
  const conversationId = params.conversationId ?? channelContext.rawChannelId;
@@ -2098,8 +2076,7 @@ function resolveDiscordNativeInteractionRouteState(params) {
2098
2076
  configuredBinding
2099
2077
  };
2100
2078
  }
2101
- //#endregion
2102
- //#region extensions/discord/src/monitor/native-interaction-channel-context.ts
2079
+ // extensions/discord/src/monitor/native-interaction-channel-context.ts
2103
2080
  async function resolveDiscordNativeInteractionChannelContext(interaction, channelIdFallback) {
2104
2081
  const { channel, client, guild, rawData } = interaction;
2105
2082
  const hasGuild = Boolean(guild);
@@ -2122,8 +2099,7 @@ async function resolveDiscordNativeInteractionChannelContext(interaction, channe
2122
2099
  threadParentSlug: hasGuild ? channelContext.threadParentSlug : ""
2123
2100
  };
2124
2101
  }
2125
- //#endregion
2126
- //#region extensions/discord/src/monitor/native-command-auth.ts
2102
+ // extensions/discord/src/monitor/native-command-auth.ts
2127
2103
  function resolveDiscordNativePolicyReader(params) {
2128
2104
  return params.readPolicy ?? createDiscordLivePolicyReader({
2129
2105
  ...params,
@@ -2404,8 +2380,7 @@ async function resolveDiscordNativeAutocompleteAuthorized(params) {
2404
2380
  }
2405
2381
  return params.isPolicyCurrent?.() !== false;
2406
2382
  }
2407
- //#endregion
2408
- //#region extensions/discord/src/monitor/native-command-bypass.ts
2383
+ // extensions/discord/src/monitor/native-command-bypass.ts
2409
2384
  function shouldBypassConfiguredAcpEnsure(commandName) {
2410
2385
  const command = commandName.trim().toLowerCase();
2411
2386
  return command === "acp" || command === "status";
@@ -2414,8 +2389,7 @@ function shouldBypassConfiguredAcpGuildGuards(commandName) {
2414
2389
  const command = commandName.trim().toLowerCase();
2415
2390
  return command === "new" || command === "reset";
2416
2391
  }
2417
- //#endregion
2418
- //#region extensions/discord/src/monitor/model-picker-preference-primitives.ts
2392
+ // extensions/discord/src/monitor/model-picker-preference-primitives.ts
2419
2393
  function splitDiscordModelRef(modelRef) {
2420
2394
  const trimmed = modelRef.trim();
2421
2395
  const slashIndex = trimmed.indexOf("/");
@@ -2443,8 +2417,7 @@ function preferenceTimestampMs(value) {
2443
2417
  const parsed = typeof value === "string" ? Date.parse(value) : NaN;
2444
2418
  return Number.isFinite(parsed) ? parsed : 0;
2445
2419
  }
2446
- //#endregion
2447
- //#region extensions/discord/src/monitor/model-picker-preferences.ts
2420
+ // extensions/discord/src/monitor/model-picker-preferences.ts
2448
2421
  const RECENT_LIMIT = 5;
2449
2422
  const PREFERENCE_MAX_ENTRIES = 2e3;
2450
2423
  let lastPreferenceTimestampMs = 0;
@@ -2523,8 +2496,7 @@ async function recordDiscordModelPickerRecentModel(params) {
2523
2496
  await Promise.all(expired.map((entry) => store.delete(entry.key)));
2524
2497
  } catch {}
2525
2498
  }
2526
- //#endregion
2527
- //#region extensions/discord/src/monitor/model-picker.state.ts
2499
+ // extensions/discord/src/monitor/model-picker.state.ts
2528
2500
  const DISCORD_MODEL_PICKER_CUSTOM_ID_KEY = "mdlpk";
2529
2501
  const DISCORD_CUSTOM_ID_MAX_CHARS = 100;
2530
2502
  const DISCORD_COMPONENT_MAX_SELECT_OPTIONS = 25;
@@ -2774,8 +2746,7 @@ function getDiscordModelPickerRecentModelRefs(data, quickModels) {
2774
2746
  const defaultModelRef = `${data.resolvedDefault.provider}/${data.resolvedDefault.model}`;
2775
2747
  return [defaultModelRef, ...quickModels.filter((modelRef) => modelRef !== defaultModelRef)];
2776
2748
  }
2777
- //#endregion
2778
- //#region extensions/discord/src/monitor/model-picker.view.ts
2749
+ // extensions/discord/src/monitor/model-picker.view.ts
2779
2750
  const DISCORD_MODEL_PICKER_PAGE_INDICATOR_CUSTOM_ID = "mdlpk:nav-indicator";
2780
2751
  function parseCurrentModelRef(raw) {
2781
2752
  const match = raw?.trim().match(/^([^/]+)\/(.+)$/u);
@@ -3162,8 +3133,7 @@ function renderDiscordModelPickerRecentsView(params) {
3162
3133
  trailingRows: [backRow]
3163
3134
  });
3164
3135
  }
3165
- //#endregion
3166
- //#region extensions/discord/src/monitor/native-command-model-picker-ui.ts
3136
+ // extensions/discord/src/monitor/native-command-model-picker-ui.ts
3167
3137
  function createDiscordModelPickerSessionReader(params, readConsistency) {
3168
3138
  const storePath = resolveStorePath(params.cfg.session?.store, { agentId: params.route.agentId });
3169
3139
  return (sessionKey = params.route.sessionKey) => getSessionEntryAsync({
@@ -3324,8 +3294,7 @@ async function replyWithDiscordModelPickerProviders(params) {
3324
3294
  replyText: formatDiscordCommandComponents(rendered.components)
3325
3295
  });
3326
3296
  }
3327
- //#endregion
3328
- //#region extensions/discord/src/monitor/native-command-model-picker-interaction.ts
3297
+ // extensions/discord/src/monitor/native-command-model-picker-interaction.ts
3329
3298
  function resolveModelPickerSelectionValue(interaction) {
3330
3299
  return normalizeOptionalString(interaction.values?.[0]) ?? null;
3331
3300
  }
@@ -3688,8 +3657,7 @@ function createDiscordModelPickerFallbackSelect$1(params) {
3688
3657
  }
3689
3658
  };
3690
3659
  }
3691
- //#endregion
3692
- //#region extensions/discord/src/monitor/native-command.options.ts
3660
+ // extensions/discord/src/monitor/native-command.options.ts
3693
3661
  const DISCORD_COMMAND_DESCRIPTION_MAX = 100;
3694
3662
  function truncateDiscordCommandDescription(params) {
3695
3663
  return truncateUtf16Safe(params.value, DISCORD_COMMAND_DESCRIPTION_MAX);
@@ -3755,8 +3723,7 @@ function buildDiscordCommandOptions(params) {
3755
3723
  });
3756
3724
  });
3757
3725
  }
3758
- //#endregion
3759
- //#region extensions/discord/src/monitor/native-command.ts
3726
+ // extensions/discord/src/monitor/native-command.ts
3760
3727
  const log = createSubsystemLogger("discord/native-command");
3761
3728
  const NON_PLUGIN_COMMAND_DISPATCH = Object.freeze({ kind: "non-plugin" });
3762
3729
  function createNativeCommandDefinition(command) {
@@ -4216,17 +4183,15 @@ function bindDiscordCommandControl(createControl) {
4216
4183
  const createDiscordCommandArgFallbackButton = bindDiscordCommandControl(createDiscordCommandArgFallbackButton$1);
4217
4184
  const createDiscordModelPickerFallbackButton = bindDiscordCommandControl(createDiscordModelPickerFallbackButton$1);
4218
4185
  const createDiscordModelPickerFallbackSelect = bindDiscordCommandControl(createDiscordModelPickerFallbackSelect$1);
4219
- //#endregion
4220
- //#region extensions/discord/src/monitor/agent-components-reply.ts
4186
+ // extensions/discord/src/monitor/agent-components-reply.ts
4221
4187
  async function replySilently(interaction, params, onError) {
4222
4188
  try {
4223
- await interaction.reply(params);
4189
+ await interaction[interaction.responseState === "deferred-update" ? "followUp" : "reply"](params);
4224
4190
  } catch (error) {
4225
4191
  onError?.(error);
4226
4192
  }
4227
4193
  }
4228
- //#endregion
4229
- //#region extensions/discord/src/activities/interaction.ts
4194
+ // extensions/discord/src/activities/interaction.ts
4230
4195
  const REGISTRATION_WIDGET_ID = "AAAAAAAAAAAAAAAAAAAAAA";
4231
4196
  const PENDING_LAUNCH_WRITE_BUDGET_MS = 250;
4232
4197
  function createActivityButton(ctx) {
@@ -4276,8 +4241,7 @@ function createDiscordActivityButton(ctx, applicationId) {
4276
4241
  if (!runtime.resolveAccount(ctx.accountId, ctx.cfg)) return null;
4277
4242
  return createActivityButton(ctx);
4278
4243
  }
4279
- //#endregion
4280
- //#region extensions/discord/src/internal/gateway-close-codes.ts
4244
+ // extensions/discord/src/internal/gateway-close-codes.ts
4281
4245
  const fatalGatewayCloseCodes = /* @__PURE__ */ new Set([
4282
4246
  GatewayCloseCodes.AuthenticationFailed,
4283
4247
  GatewayCloseCodes.InvalidShard,
@@ -4298,8 +4262,7 @@ function isFatalGatewayCloseCode(code) {
4298
4262
  function canResumeAfterGatewayClose(code) {
4299
4263
  return !nonResumableGatewayCloseCodes.has(code);
4300
4264
  }
4301
- //#endregion
4302
- //#region extensions/discord/src/internal/gateway-identify-limiter.ts
4265
+ // extensions/discord/src/internal/gateway-identify-limiter.ts
4303
4266
  const IDENTIFY_WINDOW_MS = 5e3;
4304
4267
  var GatewayIdentifyLimiter = class {
4305
4268
  constructor() {
@@ -4320,8 +4283,7 @@ var GatewayIdentifyLimiter = class {
4320
4283
  }
4321
4284
  };
4322
4285
  const sharedGatewayIdentifyLimiter = new GatewayIdentifyLimiter();
4323
- //#endregion
4324
- //#region extensions/discord/src/internal/gateway-payload.ts
4286
+ // extensions/discord/src/internal/gateway-payload.ts
4325
4287
  function ensureGatewayParams(url) {
4326
4288
  const parsed = new URL(url);
4327
4289
  parsed.searchParams.set("v", parsed.searchParams.get("v") ?? "10");
@@ -4336,8 +4298,7 @@ function decodeGatewayMessage(incoming) {
4336
4298
  return null;
4337
4299
  }
4338
4300
  }
4339
- //#endregion
4340
- //#region extensions/discord/src/internal/gateway-rate-limit.ts
4301
+ // extensions/discord/src/internal/gateway-rate-limit.ts
4341
4302
  const GATEWAY_SEND_LIMIT = 120;
4342
4303
  const GATEWAY_SEND_WINDOW_MS = 6e4;
4343
4304
  const GATEWAY_SEND_QUEUE_LIMIT = GATEWAY_SEND_LIMIT;
@@ -4423,8 +4384,7 @@ var GatewaySendLimiter = class {
4423
4384
  this.scheduleFlush();
4424
4385
  }
4425
4386
  };
4426
- //#endregion
4427
- //#region extensions/discord/src/internal/gateway-voice-state-cache.ts
4387
+ // extensions/discord/src/internal/gateway-voice-state-cache.ts
4428
4388
  var DiscordGatewayVoiceStateCache = class {
4429
4389
  constructor() {
4430
4390
  this.statesByGuild = /* @__PURE__ */ new Map();
@@ -4497,8 +4457,7 @@ var DiscordGatewayVoiceStateCache = class {
4497
4457
  }
4498
4458
  }
4499
4459
  };
4500
- //#endregion
4501
- //#region extensions/discord/src/internal/gateway.ts
4460
+ // extensions/discord/src/internal/gateway.ts
4502
4461
  const GatewayIntents = GatewayIntentBits;
4503
4462
  const READY_STATE_OPEN = 1;
4504
4463
  const DEFAULT_GATEWAY_URL = "wss://gateway.discord.gg/";
@@ -4817,8 +4776,7 @@ var GatewayPlugin = class {
4817
4776
  }, true);
4818
4777
  }
4819
4778
  };
4820
- //#endregion
4821
- //#region extensions/discord/src/voice/session.ts
4779
+ // extensions/discord/src/voice/session.ts
4822
4780
  const MIN_SEGMENT_SECONDS = .35;
4823
4781
  const CAPTURE_FINALIZE_GRACE_MS = 2e3;
4824
4782
  const VOICE_CONNECT_READY_TIMEOUT_MS = 3e4;
@@ -4835,8 +4793,7 @@ function logVoiceVerbose(message) {
4835
4793
  function isVoiceChannel(type) {
4836
4794
  return type === discord_exports.ChannelType.GuildVoice || type === discord_exports.ChannelType.GuildStageVoice;
4837
4795
  }
4838
- //#endregion
4839
- //#region extensions/discord/src/voice/command.ts
4796
+ // extensions/discord/src/voice/command.ts
4840
4797
  const VOICE_CHANNEL_TYPES = [ChannelType.GuildVoice, ChannelType.GuildStageVoice];
4841
4798
  const DISCORD_VOICE_COMMAND_SPEC = {
4842
4799
  name: "vc",
@@ -5001,8 +4958,7 @@ function createDiscordVoiceCommand(startupParams) {
5001
4958
  }
5002
4959
  }();
5003
4960
  }
5004
- //#endregion
5005
- //#region extensions/discord/src/monitor/agent-components-context.ts
4961
+ // extensions/discord/src/monitor/agent-components-context.ts
5006
4962
  function resolveAgentComponentRoute(params) {
5007
4963
  return resolveAgentRoute({
5008
4964
  cfg: params.ctx.cfg,
@@ -5083,8 +5039,7 @@ async function resolveComponentInteractionContext(params) {
5083
5039
  memberRoleIds: Array.isArray(interaction.rawData.member?.roles) ? interaction.rawData.member.roles.slice() : []
5084
5040
  };
5085
5041
  }
5086
- //#endregion
5087
- //#region extensions/discord/src/monitor/agent-components-data.ts
5042
+ // extensions/discord/src/monitor/agent-components-data.ts
5088
5043
  function readParsedId(data, key) {
5089
5044
  if (!data || typeof data !== "object") return;
5090
5045
  return key in data ? data[key] : data[key === "cid" ? "componentId" : "modalId"];
@@ -5171,8 +5126,7 @@ function formatModalSubmissionText(entry, interaction) {
5171
5126
  });
5172
5127
  return [title, ...lines.length > 0 ? lines : ["- (no values)"]].join("\n");
5173
5128
  }
5174
- //#endregion
5175
- //#region extensions/discord/src/monitor/agent-components-live-policy.ts
5129
+ // extensions/discord/src/monitor/agent-components-live-policy.ts
5176
5130
  async function resolveAgentComponentPolicyContext(params) {
5177
5131
  if (!params.ctx.readPolicy) return params.ctx;
5178
5132
  try {
@@ -5192,8 +5146,7 @@ async function resolveAgentComponentPolicyContext(params) {
5192
5146
  throw error;
5193
5147
  }
5194
5148
  }
5195
- //#endregion
5196
- //#region extensions/discord/src/monitor/agent-components-dm-auth.ts
5149
+ // extensions/discord/src/monitor/agent-components-dm-auth.ts
5197
5150
  async function ensureDmComponentAuthorized(params) {
5198
5151
  const { ctx, interaction, user, componentLabel } = params;
5199
5152
  const dmPolicy = ctx.dmPolicy ?? "pairing";
@@ -5294,8 +5247,7 @@ async function resolveInteractionContextWithDmAuth(params) {
5294
5247
  })) return null;
5295
5248
  return interactionCtx;
5296
5249
  }
5297
- //#endregion
5298
- //#region extensions/discord/src/monitor/agent-components-guild-auth.ts
5250
+ // extensions/discord/src/monitor/agent-components-guild-auth.ts
5299
5251
  function resolveComponentGuildContext(params) {
5300
5252
  const guildInfo = resolveDiscordGuildEntry({
5301
5253
  guild: params.interaction.guild ?? void 0,
@@ -5463,8 +5415,7 @@ async function resolveAuthorizedComponentInteraction(params) {
5463
5415
  commandAuthorized
5464
5416
  };
5465
5417
  }
5466
- //#endregion
5467
- //#region extensions/discord/src/monitor/reply-context.ts
5418
+ // extensions/discord/src/monitor/reply-context.ts
5468
5419
  function resolveReplyContext(message, resolveDiscordMessageText) {
5469
5420
  const id = resolveDiscordReferencedReplyMessageId(message);
5470
5421
  if (!id) return null;
@@ -5495,8 +5446,7 @@ function buildGuildLabel(params) {
5495
5446
  const { guild, channelName, channelId } = params;
5496
5447
  return `${guild?.name ?? "Guild"} #${channelName} channel id:${channelId}`;
5497
5448
  }
5498
- //#endregion
5499
- //#region extensions/discord/src/monitor/reply-safety.ts
5449
+ // extensions/discord/src/monitor/reply-safety.ts
5500
5450
  const DISCORD_INTERNAL_CHANNEL_LINE_RE = /^(?:>\s*)?(?:analysis|commentary|thinking|reasoning)\s*[:=]/i;
5501
5451
  function hasNonEmptyRecord(value) {
5502
5452
  return Boolean(value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length > 0);
@@ -5543,8 +5493,7 @@ function sanitizeDiscordFrontChannelReplyPayloads(payloads, options = {}) {
5543
5493
  }
5544
5494
  return safePayloads;
5545
5495
  }
5546
- //#endregion
5547
- //#region extensions/discord/src/monitor/reply-delivery.ts
5496
+ // extensions/discord/src/monitor/reply-delivery.ts
5548
5497
  function formatDiscordReplyContext(target, sessionKey) {
5549
5498
  return `target=${target}${sessionKey ? ` session=${sessionKey}` : ""}`;
5550
5499
  }
@@ -5654,10 +5603,9 @@ async function deliverDiscordReply(params) {
5654
5603
  if (send.status === "partial_failed") throw createChannelPartialDeliveryError(send.error, deliveryResult);
5655
5604
  return deliveryResult;
5656
5605
  }
5657
- //#endregion
5658
- //#region extensions/discord/src/monitor/agent-components.dispatch.ts
5606
+ // extensions/discord/src/monitor/agent-components.dispatch.ts
5659
5607
  const loadReplyRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/reply-runtime"));
5660
- const loadTypingRuntime = createLazyRuntimeModule(() => import("./typing-CNlSKY5S.mjs").then((n) => n.n));
5608
+ const loadTypingRuntime = createLazyRuntimeModule(() => import("./typing-DAv4S2fI.mjs").then((n) => n.n));
5661
5609
  function buildDiscordComponentConversationLabel(params) {
5662
5610
  if (params.interactionCtx.isDirectMessage) return buildDirectLabel(params.interactionCtx.user);
5663
5611
  if (params.interactionCtx.isGroupDm) return `Group DM #${params.channelCtx.channelName ?? params.interactionCtx.channelId} channel id:${params.interactionCtx.channelId}`;
@@ -5891,8 +5839,7 @@ async function dispatchDiscordComponentEvent(params) {
5891
5839
  }
5892
5840
  });
5893
5841
  }
5894
- //#endregion
5895
- //#region extensions/discord/src/interactive-dispatch.ts
5842
+ // extensions/discord/src/interactive-dispatch.ts
5896
5843
  const dispatchDiscordInteractive = createChannelInteractiveDispatcher({
5897
5844
  channel: "discord",
5898
5845
  interactiveKey: "interaction"
@@ -5903,8 +5850,7 @@ async function dispatchDiscordPluginInteractiveHandler(params) {
5903
5850
  dedupeId: params.interactionId
5904
5851
  });
5905
5852
  }
5906
- //#endregion
5907
- //#region extensions/discord/src/monitor/agent-components.plugin-interactive.ts
5853
+ // extensions/discord/src/monitor/agent-components.plugin-interactive.ts
5908
5854
  const loadConversationRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/conversation-runtime"));
5909
5855
  async function dispatchPluginDiscordInteractiveEvent(params) {
5910
5856
  const normalizedConversationId = params.interactionCtx.rawGuildId || params.channelCtx.channelType === ChannelType.GroupDM ? `channel:${params.interactionCtx.channelId}` : `user:${params.interactionCtx.userId}`;
@@ -6016,8 +5962,7 @@ async function dispatchPluginDiscordInteractiveEvent(params) {
6016
5962
  }
6017
5963
  return "unmatched";
6018
5964
  }
6019
- //#endregion
6020
- //#region extensions/discord/src/monitor/agent-components.system-controls.ts
5965
+ // extensions/discord/src/monitor/agent-components.system-controls.ts
6021
5966
  const AGENT_BUTTON_KEY = "agent";
6022
5967
  const AGENT_SELECT_KEY = "agentsel";
6023
5968
  async function runAgentSystemControlInteraction(params) {
@@ -6097,9 +6042,8 @@ function createAgentSelectMenu(ctx) {
6097
6042
  }
6098
6043
  };
6099
6044
  }
6100
- //#endregion
6101
- //#region extensions/discord/src/monitor/agent-components.ts
6102
- const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-C1Phe3uw.mjs").then((n) => n.t));
6045
+ // extensions/discord/src/monitor/agent-components.ts
6046
+ const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-DeCLO9w0.mjs").then((n) => n.t));
6103
6047
  async function resolveAuthorizedComponentEntry(params) {
6104
6048
  const entry = params.entry ?? await params.resolve(false);
6105
6049
  if (!entry) {
@@ -6353,8 +6297,7 @@ function createDiscordComponentButton(ctx) {
6353
6297
  }
6354
6298
  const createAgentComponentControls = [createAgentComponentButton, createAgentSelectMenu];
6355
6299
  const createDiscordComponentControls = [createDiscordComponentButton, ...SELECT_CONTROLS.map((spec) => (ctx) => createDiscordComponentSelectControl(spec, ctx))];
6356
- //#endregion
6357
- //#region extensions/discord/src/monitor/exec-approvals.ts
6300
+ // extensions/discord/src/monitor/exec-approvals.ts
6358
6301
  function resolveTerminalLabel(approval) {
6359
6302
  if (approval.status === "allowed" || approval.status === "denied") return formatApprovalDecisionLabel(approval.decision);
6360
6303
  return approval.status === "expired" ? "Expired" : "Cancelled";
@@ -6483,8 +6426,7 @@ function createDiscordExecApprovalButtonContext(params) {
6483
6426
  }
6484
6427
  };
6485
6428
  }
6486
- //#endregion
6487
- //#region extensions/discord/src/monitor/gateway-supervisor.ts
6429
+ // extensions/discord/src/monitor/gateway-supervisor.ts
6488
6430
  var DiscordGatewayLifecycleError = class extends Error {
6489
6431
  constructor(event) {
6490
6432
  super(`discord gateway ${event.type}: ${event.message}`, { cause: event.err instanceof Error ? event.err : void 0 });
@@ -6590,8 +6532,7 @@ function createDiscordGatewaySupervisor(params) {
6590
6532
  }
6591
6533
  };
6592
6534
  }
6593
- //#endregion
6594
- //#region extensions/discord/src/monitor/provider.commands.ts
6535
+ // extensions/discord/src/monitor/provider.commands.ts
6595
6536
  const loadPluginCommandRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/plugin-command-runtime"));
6596
6537
  async function resolveDiscordProviderCommandSpecs(params) {
6597
6538
  const maxDiscordCommands = 100;
@@ -6637,8 +6578,7 @@ async function resolveDiscordProviderCommandSpecs(params) {
6637
6578
  if (params.nativeEnabled && commandSpecs.length > maxDiscordCommands) params.runtime.log?.(warn(`${commandSpecs.length} commands exceed the ${maxDiscordCommands}-command Discord limit; some commands may fail to deploy.`));
6638
6579
  return { commandSpecs };
6639
6580
  }
6640
- //#endregion
6641
- //#region extensions/discord/src/monitor/provider.deploy-errors.ts
6581
+ // extensions/discord/src/monitor/provider.deploy-errors.ts
6642
6582
  const DISCORD_DEPLOY_REJECTED_ENTRY_LIMIT = 3;
6643
6583
  function stringifyDiscordDeployField(value, depth = 2) {
6644
6584
  try {
@@ -6747,8 +6687,7 @@ function formatDiscordDeployErrorDetails(err) {
6747
6687
  function isDiscordDeployDailyCreateLimit(err) {
6748
6688
  return err instanceof DiscordError && err.discordCode === 30034 && /daily application command creates/i.test(err.message);
6749
6689
  }
6750
- //#endregion
6751
- //#region extensions/discord/src/monitor/provider.deploy.ts
6690
+ // extensions/discord/src/monitor/provider.deploy.ts
6752
6691
  function runDiscordCommandDeployInBackground(params) {
6753
6692
  if (!params.enabled) return;
6754
6693
  async function deployDiscordCommands() {
@@ -6772,11 +6711,9 @@ function runDiscordCommandDeployInBackground(params) {
6772
6711
  params.runtime.log?.(warn(`[${params.accountId}] slash command deploy failed in background (message send/receive unaffected): ${formatErrorMessage$1(err)}`));
6773
6712
  });
6774
6713
  }
6775
- //#endregion
6776
- //#region extensions/discord/src/monitor/gateway-handle.ts
6714
+ // extensions/discord/src/monitor/gateway-handle.ts
6777
6715
  const DISCORD_GATEWAY_TRANSPORT_ACTIVITY_EVENT = "openclaw:discord-gateway-transport-activity";
6778
- //#endregion
6779
- //#region extensions/discord/src/monitor/status.ts
6716
+ // extensions/discord/src/monitor/status.ts
6780
6717
  /** READY proves a prior terminal failure was repaired, so the account is restartable again. */
6781
6718
  function createDiscordReadyStatusPatch(at = Date.now()) {
6782
6719
  return channelReadyPatch({
@@ -6785,8 +6722,7 @@ function createDiscordReadyStatusPatch(at = Date.now()) {
6785
6722
  lastDisconnect: null
6786
6723
  });
6787
6724
  }
6788
- //#endregion
6789
- //#region extensions/discord/src/monitor/provider.lifecycle.ts
6725
+ // extensions/discord/src/monitor/provider.lifecycle.ts
6790
6726
  const DEFAULT_DISCORD_GATEWAY_READY_TIMEOUT_MS = 15e3;
6791
6727
  const DEFAULT_DISCORD_GATEWAY_RUNTIME_READY_TIMEOUT_MS = 3e4;
6792
6728
  const MAX_DISCORD_GATEWAY_READY_TIMEOUT_MS = 12e4;
@@ -7075,8 +7011,7 @@ async function runDiscordGatewayLifecycle(params) {
7075
7011
  }
7076
7012
  }
7077
7013
  }
7078
- //#endregion
7079
- //#region extensions/discord/src/internal/voice.ts
7014
+ // extensions/discord/src/internal/voice.ts
7080
7015
  var VoicePlugin = class {
7081
7016
  constructor() {
7082
7017
  this.id = "voice";
@@ -7110,8 +7045,7 @@ var VoicePlugin = class {
7110
7045
  };
7111
7046
  }
7112
7047
  };
7113
- //#endregion
7114
- //#region extensions/discord/src/monitor/presence.ts
7048
+ // extensions/discord/src/monitor/presence.ts
7115
7049
  const DEFAULT_CUSTOM_ACTIVITY_TYPE = 4;
7116
7050
  const CUSTOM_STATUS_NAME = "Custom Status";
7117
7051
  function resolveDiscordPresenceUpdate(config) {
@@ -7140,8 +7074,7 @@ function resolveDiscordPresenceUpdate(config) {
7140
7074
  afk: false
7141
7075
  };
7142
7076
  }
7143
- //#endregion
7144
- //#region extensions/discord/src/monitor/auto-presence.ts
7077
+ // extensions/discord/src/monitor/auto-presence.ts
7145
7078
  const DEFAULT_INTERVAL_MS = 3e4;
7146
7079
  const DEFAULT_MIN_UPDATE_INTERVAL_MS = 15e3;
7147
7080
  const MIN_INTERVAL_MS = 5e3;
@@ -7234,8 +7167,7 @@ function createDiscordAutoPresenceController(params) {
7234
7167
  stop: () => scheduler.stop()
7235
7168
  };
7236
7169
  }
7237
- //#endregion
7238
- //#region extensions/discord/src/monitor/gateway-metadata.ts
7170
+ // extensions/discord/src/monitor/gateway-metadata.ts
7239
7171
  const DISCORD_GATEWAY_BOT_URL = "https://discord.com/api/v10/gateway/bot";
7240
7172
  const DISCORD_API_HOST = "discord.com";
7241
7173
  const DEFAULT_DISCORD_GATEWAY_URL = "wss://gateway.discord.gg/";
@@ -7388,8 +7320,7 @@ async function fetchDiscordGatewayMetadataGuarded(input, init, options) {
7388
7320
  }).catch(() => {});
7389
7321
  return response;
7390
7322
  }
7391
- //#endregion
7392
- //#region extensions/discord/src/monitor/gateway-plugin.ts
7323
+ // extensions/discord/src/monitor/gateway-plugin.ts
7393
7324
  const DISCORD_GATEWAY_POLICY_VIOLATION_CLOSE_CODE = 1008;
7394
7325
  const DISCORD_GATEWAY_WS_RECEIVER_LIMIT_CODE = "WS_ERR_TOO_MANY_BUFFERED_PARTS";
7395
7326
  const DISCORD_GATEWAY_CLOSE_REASON_LOG_MAX_CHARS = 240;
@@ -7594,8 +7525,7 @@ function waitForDiscordGatewayPluginRegistration(plugin) {
7594
7525
  if (typeof plugin !== "object" || plugin === null) return;
7595
7526
  return registrationPromises.get(plugin);
7596
7527
  }
7597
- //#endregion
7598
- //#region extensions/discord/src/monitor/message-handler.preflight-channel-access.ts
7528
+ // extensions/discord/src/monitor/message-handler.preflight-channel-access.ts
7599
7529
  function resolveDiscordPreflightChannelAccess(params) {
7600
7530
  if (params.isGuildMessage && params.channelConfig?.enabled === false) {
7601
7531
  logVerbose(`Blocked discord channel ${params.messageChannelId} (channel disabled, ${params.channelMatchMeta})`);
@@ -7627,8 +7557,7 @@ function resolveDiscordPreflightChannelAccess(params) {
7627
7557
  }
7628
7558
  return true;
7629
7559
  }
7630
- //#endregion
7631
- //#region extensions/discord/src/monitor/listeners.guild-join.ts
7560
+ // extensions/discord/src/monitor/listeners.guild-join.ts
7632
7561
  const DISCORD_GUILD_JOIN_INTRO_MAX_AGE_MS = 3e5;
7633
7562
  var DiscordGuildJoinIntroductionListener = class extends GuildCreateListener {
7634
7563
  constructor(params) {
@@ -7752,8 +7681,7 @@ var DiscordGuildJoinIntroductionListener = class extends GuildCreateListener {
7752
7681
  await Promise.allSettled(this.pendingReports);
7753
7682
  }
7754
7683
  };
7755
- //#endregion
7756
- //#region extensions/discord/src/monitor/provider.startup.ts
7684
+ // extensions/discord/src/monitor/provider.startup.ts
7757
7685
  async function createDiscordMonitorClient(params) {
7758
7686
  let autoPresenceController = null;
7759
7687
  const gateway = createDiscordGatewayPlugin(params);
@@ -7895,8 +7823,7 @@ function registerDiscordMonitorListeners(params) {
7895
7823
  }
7896
7824
  };
7897
7825
  }
7898
- //#endregion
7899
- //#region extensions/discord/src/monitor/questions.ts
7826
+ // extensions/discord/src/monitor/questions.ts
7900
7827
  function createDiscordQuestionButton(params) {
7901
7828
  const authContext = params.authContext ?? {
7902
7829
  cfg: params.cfg,
@@ -7946,15 +7873,13 @@ function createDiscordQuestionButton(params) {
7946
7873
  }
7947
7874
  };
7948
7875
  }
7949
- //#endregion
7950
- //#region extensions/discord/src/monitor/startup-status.ts
7876
+ // extensions/discord/src/monitor/startup-status.ts
7951
7877
  function formatDiscordStartupStatusMessage(params) {
7952
7878
  const identitySuffix = params.botIdentity ? ` as ${params.botIdentity}` : "";
7953
7879
  if (params.gatewayReady) return `logged in to discord${identitySuffix}`;
7954
7880
  return `discord client initialized${identitySuffix}; awaiting gateway readiness`;
7955
7881
  }
7956
- //#endregion
7957
- //#region extensions/discord/src/monitor/provider.ts
7882
+ // extensions/discord/src/monitor/provider.ts
7958
7883
  const DEFAULT_DISCORD_MEDIA_MAX_MB = 100;
7959
7884
  const DISCORD_ACP_STATUS_PROBE_TIMEOUT_MS = 8e3;
7960
7885
  const DISCORD_ACP_STALE_RUNNING_ACTIVITY_MS = 12e4;
@@ -8015,7 +7940,7 @@ async function monitorDiscordProvider(opts) {
8015
7940
  cfg,
8016
7941
  accountId: account.accountId
8017
7942
  }) ?? "pairing";
8018
- const discordProviderSessionRuntime = await import("./provider-session.runtime-3cZpps3H.mjs");
7943
+ const discordProviderSessionRuntime = await import("./provider-session.runtime-CxGNqH7Q.mjs");
8019
7944
  const threadBindingIdleTimeoutMs = discordProviderSessionRuntime.resolveThreadBindingIdleTimeoutMs({
8020
7945
  channelIdleHoursRaw: discordCfg.threadBindings?.idleHours,
8021
7946
  sessionIdleHoursRaw: cfg.session?.threadBindings?.idleHours
@@ -8326,8 +8251,8 @@ async function monitorDiscordProvider(opts) {
8326
8251
  };
8327
8252
  let voiceManager = null;
8328
8253
  if (voiceEnabled) {
8329
- const { DiscordVoiceManager } = await import("./voice-runtime-oJ6BZs5D.mjs");
8330
- const { DiscordVoiceGuildCreateListener, DiscordVoiceReadyListener, DiscordVoiceResumedListener, DiscordVoiceStateUpdateListener } = await import("./listeners-DnHLrLIN.mjs");
8254
+ const { DiscordVoiceManager } = await import("./voice-runtime-BI76hQQH.mjs");
8255
+ const { DiscordVoiceGuildCreateListener, DiscordVoiceReadyListener, DiscordVoiceResumedListener, DiscordVoiceStateUpdateListener } = await import("./listeners-DHjDOlXW.mjs");
8331
8256
  voiceManager = new DiscordVoiceManager({
8332
8257
  ...monitorOptions,
8333
8258
  scheduler
@@ -8423,5 +8348,4 @@ async function monitorDiscordProvider(opts) {
8423
8348
  }
8424
8349
  }
8425
8350
  }
8426
- //#endregion
8427
8351
  export { resolveDiscordTextCommandAccess as A, buildDiscordInboundAccessContext as C, createMessageDispatchData as D, createDiscordLivePolicyReader as E, registerDiscordListener as O, buildDiscordGroupSystemPrompt as S, handleDiscordDmCommandDecision as T, isDiscordRealtimeVoiceMode as _, waitForDiscordGatewayPluginRegistration as a, resolveDiscordVoiceMode as b, formatDiscordReplySkip as c, buildGuildLabel as d, resolveReplyContext as f, VOICE_RECONNECT_GRACE_MS as g, VOICE_CONNECT_READY_TIMEOUT_MS as h, resolveDiscordGatewayIntents as i, resolveDiscordDmCommandAccess as k, sanitizeDiscordFrontChannelReplyPayloads as l, MIN_SEGMENT_SECONDS as m, resolveDiscordPreflightChannelAccess as n, deliverDiscordReply as o, CAPTURE_FINALIZE_GRACE_MS as p, createDiscordGatewayPlugin as r, formatDiscordReplyDeliveryFailure as s, monitorDiscordProvider as t, buildDirectLabel as u, isVoiceChannel as v, createDiscordSupplementalContextAccessChecker as w, createDiscordNativeCommand as x, logVoiceVerbose as y };