@openclaw/discord 2026.11.3 → 2026.11.5-beta.2

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 (220) hide show
  1. package/dist/.setup/{account-inspect-8cCu6uPG.mjs → account-inspect-DGkdWwix.mjs} +1 -1
  2. package/dist/.setup/{accounts-ljrzXBJi.mjs → accounts-C_25wyxC.mjs} +9 -6
  3. package/dist/.setup/{active-turn-thread-route-C4tp9noA.mjs → active-turn-thread-route-KvRTAVE3.mjs} +1 -2
  4. package/dist/.setup/{allow-list-BKqOldGy.mjs → allow-list-BXrS8-R9.mjs} +4 -152
  5. package/dist/.setup/{api-DqmMUZau.mjs → api-BlBD4ism.mjs} +10 -20
  6. package/dist/.setup/{approval-handler.runtime-D0qu1um7.mjs → approval-handler.runtime-BGYjX1t9.mjs} +80 -61
  7. package/dist/.setup/{approval-message-updates-CdurC9Ej.mjs → approval-message-updates-DKsCfxSW.mjs} +2 -2
  8. package/dist/.setup/{audit-ChorIwio.mjs → audit-5b-FXj9R.mjs} +4 -4
  9. package/dist/.setup/{channel-ZilgdF5e.mjs → channel-CWwTHWFo.mjs} +134 -202
  10. package/dist/.setup/channel-access-9cyzozUP.mjs +24 -0
  11. package/dist/.setup/channel.setup-B3MtmBQG.mjs +238 -0
  12. package/dist/.setup/{components-Du9NhD8h.mjs → components-YCvQ6YLS.mjs} +209 -430
  13. package/dist/.setup/components.base-CiS0h_XP.mjs +32 -0
  14. package/dist/.setup/{config-schema-_uBILpQf.mjs → config-schema-BNKN1cu5.mjs} +6 -7
  15. package/dist/.setup/{conversation-binding-route-8Ul1KpGF.mjs → conversation-binding-route-kCTw8cij.mjs} +2 -2
  16. package/dist/.setup/{directory-config-3iVub-3m.mjs → directory-config-Ble81PWH.mjs} +1 -1
  17. package/dist/.setup/{directory-live-BDVl2DoC.mjs → directory-live-DH3tpS3x.mjs} +52 -57
  18. package/dist/.setup/{discord-BMD-JiVS.mjs → discord-DGVSguhx.mjs} +1124 -1710
  19. package/dist/.setup/{doctor-hQKbkNKq.mjs → doctor-eujgbnpZ.mjs} +3 -5
  20. package/dist/.setup/endpoint-runtime-lf4DeLas.mjs +139 -0
  21. package/dist/.setup/guilds-eDq22iSM.mjs +22 -0
  22. package/dist/.setup/{handle-action-B1lmt4ms.mjs → handle-action-CktwmzMz.mjs} +15 -15
  23. package/dist/.setup/{handle-action.guild-admin-B6g31cwt.mjs → handle-action.guild-admin-WLQ7fRqI.mjs} +5 -5
  24. package/dist/.setup/listeners-Df8lx3vK.mjs +47 -0
  25. package/dist/.setup/{live-policy-config-C_Q966Wh.mjs → live-policy-config-DiBVuaU6.mjs} +2 -3
  26. package/dist/.setup/{message-handler-CkI3yMjL.mjs → message-handler-hhNSioxo.mjs} +154 -115
  27. package/dist/.setup/{message-handler.preflight-CEfkFV9U.mjs → message-handler.preflight-BZcZE1o-.mjs} +30 -105
  28. package/dist/.setup/{message-handler.preflight-pluralkit-D5si80_L.mjs → message-handler.preflight-pluralkit-CYZfXXb6.mjs} +9 -22
  29. package/dist/.setup/{message-handler.process-DsMtetRf.mjs → message-handler.process-B0n-mQ99.mjs} +256 -373
  30. package/dist/.setup/outbound-payload-BaZmjewa.mjs +447 -0
  31. package/dist/.setup/{outbound-session-route-BtUpGBTb.mjs → outbound-session-route-Cgx4i9cS.mjs} +139 -86
  32. package/dist/.setup/{preflight-audio-wWgsZG5F.mjs → preflight-audio-C6QtD6HX.mjs} +1 -5
  33. package/dist/.setup/{presence-cache-DCeTsL73.mjs → presence-cache-Dq-3nH7R.mjs} +1 -6
  34. package/dist/.setup/{probe-CBaoCs-c.mjs → probe-DezB-6xz.mjs} +5 -9
  35. package/dist/.setup/{provider-CI_OLfvz.mjs → provider-BN2bCIUp.mjs} +3440 -4308
  36. package/dist/.setup/{provider-session.runtime-TWOo_JZx.mjs → provider-session.runtime-Dr_5X43t.mjs} +3 -3
  37. package/dist/.setup/provider.runtime-BuJpl0Pv.mjs +1 -0
  38. package/dist/.setup/proxy-fetch-BzXwBAXt.mjs +30 -0
  39. package/dist/.setup/{realtime-session.runtime-DvfS4vJj.mjs → realtime-session.runtime-BTDWsV4d.mjs} +44 -81
  40. package/dist/.setup/{receive-recovery-CKvaG2Hf.mjs → receive-recovery-C3Ks4wAQ.mjs} +13 -27
  41. package/dist/.setup/{resolve-allowlist-common-cIjtqh2F.mjs → resolve-allowlist-common-Bk8Fj6Ik.mjs} +3 -13
  42. package/dist/.setup/{resolve-channels-Cj5i7hzj.mjs → resolve-channels-Bp8frXvc.mjs} +7 -8
  43. package/dist/.setup/{resolve-users-BQLbysRB.mjs → resolve-users-Cvcj22sG.mjs} +4 -7
  44. package/dist/.setup/{runtime-RWnuJgWB.mjs → runtime-BJaCvlmq.mjs} +196 -239
  45. package/dist/.setup/{runtime-plifsKg9.mjs → runtime-BMgTyuwg.mjs} +6 -6
  46. package/dist/.setup/{secret-config-contract-z6FhbT8E.mjs → secret-config-contract-B1kE4sDv.mjs} +4 -9
  47. package/dist/.setup/{send-da6ENJ9f.mjs → send-CVW7V-VZ.mjs} +149 -175
  48. package/dist/.setup/{send.components-CWZUuGvA.mjs → send.components-C8YXdnO_.mjs} +59 -71
  49. package/dist/.setup/{send.outbound-qZ3iK3Vq.mjs → send.outbound-Uzcmh3Yd.mjs} +76 -129
  50. package/dist/.setup/{send.receipt-C18khRYH.mjs → send.receipt-NZDOTZBU.mjs} +30 -32
  51. package/dist/.setup/{send.shared-CnlMgoqQ.mjs → send.shared-a_6Oeyg1.mjs} +38 -115
  52. package/dist/.setup/{sender-identity-DgbJykq0.mjs → sender-identity-76HFb8eK.mjs} +3 -9
  53. package/dist/.setup/setup-plugin-api-BExhGEhL.mjs +2 -0
  54. package/dist/.setup/shared-interactive-DmzaoKOM.mjs +316 -0
  55. package/dist/.setup/{shared-CY5vJM48.mjs → shared-yDUSExm2.mjs} +8 -11
  56. package/dist/.setup/{subagent-hooks-CIu2TFz3.mjs → subagent-hooks-CDkdHQyy.mjs} +1 -1
  57. package/dist/.setup/{system-events-DCOLXkwS.mjs → system-events-yfWz150v.mjs} +2 -2
  58. package/dist/.setup/{target-resolver-CApivu3G.mjs → target-resolver-BOOzqxxM.mjs} +3 -3
  59. package/dist/.setup/{thread-bindings-DcvT_JgI.mjs → thread-bindings-zce4cpu_.mjs} +12 -20
  60. package/dist/.setup/{thread-bindings.manager-5Sh7yedN.mjs → thread-bindings.manager-NywKzUtc.mjs} +22 -42
  61. package/dist/.setup/{thread-bindings.session-updates-BMdJeJMc.mjs → thread-bindings.session-updates-D0j7oh8S.mjs} +11 -18
  62. package/dist/.setup/{threading-CzjFeUSe.mjs → threading-DodLYDt-.mjs} +68 -105
  63. package/dist/.setup/{timeouts-CuNARfyw.mjs → timeouts-cIxzatmv.mjs} +1 -1
  64. package/dist/.setup/{transcripts-source-8RDQrSVb.mjs → transcripts-source-ie9GBWaU.mjs} +110 -179
  65. package/dist/.setup/{voice-runtime-BsDILmAv.mjs → voice-runtime-B7V_LTdX.mjs} +231 -452
  66. package/dist/.source-module-urls/d6c089460280c5a04184542d6712e04545caeb1ebb290d3504377b4cc5e22fea.json +1 -0
  67. package/dist/account-inspect-api.js +1 -1
  68. package/dist/action-runtime-api.js +1 -2
  69. package/dist/activities-api.js +286 -341
  70. package/dist/api.js +16 -16
  71. package/dist/channel-config-api.js +1 -2
  72. package/dist/channel-plugin-api.js +1 -2
  73. package/dist/contract-api.js +1 -2
  74. package/dist/directory-contract-api.js +1 -1
  75. package/dist/runtime-api.js +22 -22
  76. package/dist/runtime-setter-api.js +1 -2
  77. package/dist/secret-contract-api.js +1 -2
  78. package/dist/security-audit-contract-api.js +1 -2
  79. package/dist/security-contract-api.js +1 -2
  80. package/dist/session-key-api.js +1 -2
  81. package/dist/setup-entry.js +1 -1
  82. package/dist/setup-plugin-api.js +1 -2
  83. package/dist/src/voice/audio-worker.runtime.js +56 -68
  84. package/dist/subagent-hooks-api.js +1 -1
  85. package/dist/thread-binding-api.js +1 -2
  86. package/dist/transcripts-source-api.js +1 -1
  87. package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +3339 -4021
  88. package/node_modules/@napi-rs/wasm-runtime/package.json +1 -1
  89. package/node_modules/@types/lodash/README.md +1 -1
  90. package/node_modules/@types/lodash/common/function.d.ts +2 -2
  91. package/node_modules/@types/lodash/package.json +2 -2
  92. package/node_modules/@types/node/README.md +1 -1
  93. package/node_modules/@types/node/package.json +2 -2
  94. package/node_modules/@types/node/util.d.ts +6 -3
  95. package/node_modules/discord-api-types/package.json +4 -4
  96. package/node_modules/discord-api-types/rest/v10/index.d.ts +8 -0
  97. package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -1
  98. package/node_modules/discord-api-types/rest/v10/index.js +8 -0
  99. package/node_modules/discord-api-types/rest/v10/index.js.map +1 -1
  100. package/node_modules/discord-api-types/rest/v10/oauth2.d.ts +26 -2
  101. package/node_modules/discord-api-types/rest/v10/oauth2.d.ts.map +1 -1
  102. package/node_modules/discord-api-types/rest/v9/index.d.ts +8 -0
  103. package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -1
  104. package/node_modules/discord-api-types/rest/v9/index.js +8 -0
  105. package/node_modules/discord-api-types/rest/v9/index.js.map +1 -1
  106. package/node_modules/discord-api-types/rest/v9/oauth2.d.ts +26 -2
  107. package/node_modules/discord-api-types/rest/v9/oauth2.d.ts.map +1 -1
  108. package/node_modules/typebox/build/format/duration.d.mts +2 -2
  109. package/node_modules/typebox/build/format/duration.mjs +2 -2
  110. package/node_modules/typebox/build/format/idn_email.d.mts +1 -0
  111. package/node_modules/typebox/build/format/idn_email.mjs +1 -0
  112. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
  113. package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
  114. package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
  115. package/node_modules/typebox/build/format/ipv4.mjs +2 -2
  116. package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
  117. package/node_modules/typebox/build/format/ipv6.mjs +1 -1
  118. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  119. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  120. package/node_modules/typebox/build/schema/build.mjs +1 -0
  121. package/node_modules/typebox/build/schema/engine/_unique.d.mts +4 -2
  122. package/node_modules/typebox/build/schema/engine/_unique.mjs +7 -3
  123. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
  124. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -3
  125. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +15 -17
  126. package/node_modules/typebox/build/schema/engine/contains.mjs +3 -3
  127. package/node_modules/typebox/build/schema/engine/index.d.mts +1 -0
  128. package/node_modules/typebox/build/schema/engine/index.mjs +1 -0
  129. package/node_modules/typebox/build/schema/engine/items.mjs +7 -4
  130. package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -2
  131. package/node_modules/typebox/build/schema/engine/minContains.mjs +3 -3
  132. package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
  133. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +2 -2
  134. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -2
  135. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  136. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  137. package/node_modules/typebox/build/system/hashing/hash.mjs +63 -34
  138. package/node_modules/typebox/build/system/locale/en_US.mjs +2 -1
  139. package/node_modules/typebox/build/system/memory/assign.d.mts +2 -8
  140. package/node_modules/typebox/build/system/memory/assign.mjs +13 -6
  141. package/node_modules/typebox/build/system/memory/clone.d.mts +4 -5
  142. package/node_modules/typebox/build/system/memory/clone.mjs +8 -96
  143. package/node_modules/typebox/build/system/memory/create.d.mts +1 -5
  144. package/node_modules/typebox/build/system/memory/create.mjs +18 -13
  145. package/node_modules/typebox/build/system/memory/deep.d.mts +2 -0
  146. package/node_modules/typebox/build/system/memory/deep.mjs +108 -0
  147. package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
  148. package/node_modules/typebox/build/system/memory/discard.mjs +9 -8
  149. package/node_modules/typebox/build/system/memory/finalize.d.mts +4 -0
  150. package/node_modules/typebox/build/system/memory/finalize.mjs +30 -0
  151. package/node_modules/typebox/build/system/memory/keys.d.mts +2 -0
  152. package/node_modules/typebox/build/system/memory/keys.mjs +8 -0
  153. package/node_modules/typebox/build/system/memory/update.d.mts +1 -4
  154. package/node_modules/typebox/build/system/memory/update.mjs +43 -16
  155. package/node_modules/typebox/build/type/engine/call/index.d.mts +1 -0
  156. package/node_modules/typebox/build/type/engine/call/index.mjs +1 -0
  157. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +2 -24
  158. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +2 -29
  159. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +1 -0
  160. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +1 -0
  161. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -1
  162. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +6 -1
  163. package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +30 -0
  164. package/node_modules/typebox/build/type/engine/evaluate/property.mjs +29 -0
  165. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +1 -3
  166. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +1 -4
  167. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
  168. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
  169. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
  170. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  171. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +1 -3
  172. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +1 -4
  173. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +1 -3
  174. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +1 -4
  175. package/node_modules/typebox/build/type/engine/this/index.d.mts +1 -0
  176. package/node_modules/typebox/build/type/engine/this/index.mjs +1 -0
  177. package/node_modules/typebox/build/value/clone/clone.d.mts +4 -3
  178. package/node_modules/typebox/build/value/clone/clone.mjs +5 -7
  179. package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +2 -0
  180. package/node_modules/typebox/build/value/repair/from_cyclic.mjs +6 -0
  181. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +25 -14
  182. package/node_modules/typebox/package.json +1 -1
  183. package/node_modules/typebox/readme.md +1 -1
  184. package/node_modules/undici/docs/docs/api/Interceptors.md +15 -2
  185. package/node_modules/undici/lib/dispatcher/client-h2.js +78 -3
  186. package/node_modules/undici/lib/dispatcher/pool-base.js +20 -3
  187. package/node_modules/undici/package.json +3 -3
  188. package/node_modules/undici/types/api.d.ts +1 -1
  189. package/node_modules/undici/types/utility.d.ts +4 -4
  190. package/node_modules/uuid/package.json +17 -17
  191. package/node_modules/zod/package.json +1 -1
  192. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  193. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  194. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  195. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  196. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  197. package/node_modules/zod/src/v4/core/util.ts +13 -0
  198. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  199. package/node_modules/zod/v4/core/compile.cjs +8 -0
  200. package/node_modules/zod/v4/core/compile.js +8 -0
  201. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  202. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  203. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  204. package/node_modules/zod/v4/core/schemas.js +30 -0
  205. package/node_modules/zod/v4/core/util.cjs +15 -0
  206. package/node_modules/zod/v4/core/util.d.cts +2 -0
  207. package/node_modules/zod/v4/core/util.d.ts +2 -0
  208. package/node_modules/zod/v4/core/util.js +14 -0
  209. package/node_modules/zod/v4/core/versions.cjs +1 -1
  210. package/node_modules/zod/v4/core/versions.js +1 -1
  211. package/openclaw.plugin.json +1 -31
  212. package/package.json +8 -8
  213. package/dist/.setup/channel-access-DasWY_OV.mjs +0 -48
  214. package/dist/.setup/channel.setup-DaDQdctj.mjs +0 -249
  215. package/dist/.setup/outbound-adapter-DfAanoCO.mjs +0 -543
  216. package/dist/.setup/provider.runtime-DnionCyo.mjs +0 -2
  217. package/dist/.setup/setup-plugin-api-D1QuM187.mjs +0 -3
  218. package/dist/.setup/targets-UWWZ6gF7.mjs +0 -3
  219. package/node_modules/typebox/build/system/memory/freeze.d.mts +0 -4
  220. package/node_modules/typebox/build/system/memory/freeze.mjs +0 -6
@@ -1,18 +1,18 @@
1
- import { c as resolveDefaultDiscordAccountId } from "./accounts-ljrzXBJi.mjs";
2
- import { C as resolveDiscordSystemLocation, S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, w as resolveTimestampMs } from "./allow-list-BKqOldGy.mjs";
3
- import { Q as Message, pt as getChannelMessage, t as discord_exports } from "./discord-BMD-JiVS.mjs";
4
- import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-CuNARfyw.mjs";
5
- import { b as resolveDiscordRuntimeBindingConversationId, g as resolveDiscordEffectiveRoute, h as resolveDiscordConversationRoute, p as buildDiscordRoutePeer, v as resolveDiscordConversationIdentity } from "./outbound-session-route-BtUpGBTb.mjs";
6
- import { n as resolveDiscordConversationBindingRouteAsync } from "./conversation-binding-route-8Ul1KpGF.mjs";
7
- import { n as resolveDiscordChannelInfoSafe, r as resolveDiscordChannelNameSafe } from "./channel-access-DasWY_OV.mjs";
8
- import { A as resolveDiscordDmCommandAccess, E as handleDiscordDmCommandDecision, j as resolveDiscordTextCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-CI_OLfvz.mjs";
9
- import { A as resolveDiscordChannelInfo, C as resolveMediaList, D as resolveDiscordMessageStickers, O as resolveDiscordReferencedReplyMessage, S as resolveForwardedMediaList, _ as resolveDiscordMessageBatch, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, v as resolveDiscordMessageHistoryText, y as resolveDiscordMessageMentionDocuments } from "./transcripts-source-8RDQrSVb.mjs";
10
- import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-DgbJykq0.mjs";
11
- import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, m as shouldIgnoreBoundThreadWebhookMessage, n as loadDiscordThreadingRuntime, p as resolveInjectedBoundThreadLookupRecord, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-D5si80_L.mjs";
1
+ import { c as resolveDefaultDiscordAccountId } from "./accounts-C_25wyxC.mjs";
2
+ import { h as Message, k as getChannelMessage, t as discord_exports } from "./discord-DGVSguhx.mjs";
3
+ import { S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState } from "./allow-list-BXrS8-R9.mjs";
4
+ import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-cIxzatmv.mjs";
5
+ import { _ as resolveDiscordConversationIdentity, h as resolveDiscordEffectiveRoute, m as resolveDiscordConversationRoute, p as buildDiscordRoutePeer, y as resolveDiscordRuntimeBindingConversationId } from "./outbound-session-route-Cgx4i9cS.mjs";
6
+ import { n as resolveDiscordConversationBindingRouteAsync } from "./conversation-binding-route-kCTw8cij.mjs";
7
+ import { n as resolveDiscordChannelNameSafe } from "./channel-access-9cyzozUP.mjs";
8
+ import { A as resolveDiscordTextCommandAccess, T as handleDiscordDmCommandDecision, k as resolveDiscordDmCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-BN2bCIUp.mjs";
9
+ import { A as resolveDiscordChannelInfo, C as resolveMediaList, D as resolveDiscordMessageStickers, O as resolveDiscordReferencedReplyMessage, S as resolveForwardedMediaList, _ as resolveDiscordMessageBatch, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, v as resolveDiscordMessageHistoryText, y as resolveDiscordMessageMentionDocuments } from "./transcripts-source-ie9GBWaU.mjs";
10
+ import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-76HFb8eK.mjs";
11
+ import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, n as loadDiscordThreadingRuntime, p as shouldIgnoreBoundThreadWebhookMessage, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-CYZfXXb6.mjs";
12
12
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
13
- import { getChildLogger, logVerbose, shouldLogVerbose } from "openclaw/plugin-sdk/runtime-env";
13
+ import { getChildLogger, logVerbose } from "openclaw/plugin-sdk/runtime-env";
14
14
  import { MessageReferenceType, MessageType } from "discord-api-types/v10";
15
- import { logDebug } from "openclaw/plugin-sdk/logging-core";
15
+ import { parseDateStringTimestampMs } from "openclaw/plugin-sdk/number-runtime";
16
16
  import { formatAllowlistMatchMeta } from "openclaw/plugin-sdk/allow-from";
17
17
  import { recordChannelActivity } from "openclaw/plugin-sdk/channel-activity-runtime";
18
18
  import { isRecentOutboundMessageIdentity } from "openclaw/plugin-sdk/channel-outbound";
@@ -26,7 +26,7 @@ import { shouldHandleTextCommands } from "openclaw/plugin-sdk/command-surface";
26
26
  import { createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
27
27
  //#region extensions/discord/src/monitor/message-handler.dm-preflight.ts
28
28
  const loadConversationRuntime$1 = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/conversation-binding-runtime"));
29
- const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-da6ENJ9f.mjs").then((n) => n.t));
29
+ const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-CVW7V-VZ.mjs").then((n) => n.t));
30
30
  async function resolveDiscordDmPreflightAccess(params) {
31
31
  if (params.dmPolicy === "disabled") {
32
32
  logVerbose("discord: drop dm (dmPolicy: disabled)");
@@ -160,7 +160,6 @@ async function hydrateDiscordMessageIfNeeded(params) {
160
160
  let hydrated = params.message;
161
161
  if (shouldHydrateDiscordMessagePayload(params.message)) try {
162
162
  const fetched = await getChannelMessage(params.client.rest, params.messageChannelId, params.message.id);
163
- logVerbose(`discord: hydrated inbound payload via REST for ${params.message.id}`);
164
163
  hydrated = new Message(params.client, {
165
164
  ...params.message.partial ? {} : params.message.rawData,
166
165
  ...fetched
@@ -212,24 +211,13 @@ function buildDiscordPreflightHistoryEntry(params) {
212
211
  return params.isGuildMessage && params.historyLimit > 0 && textForHistory ? {
213
212
  sender: params.senderLabel,
214
213
  body: textForHistory,
215
- timestamp: resolveTimestampMs(params.message.timestamp),
214
+ timestamp: parseDateStringTimestampMs(params.message.timestamp),
216
215
  messageId: params.message.id,
217
216
  mediaIds: resolveDiscordHistoryMediaIds(params.message),
218
217
  senderProvenance: createDiscordHistorySenderProvenance(params)
219
218
  } : void 0;
220
219
  }
221
220
  //#endregion
222
- //#region extensions/discord/src/monitor/message-handler.preflight-logging.ts
223
- function logDiscordPreflightChannelConfig(params) {
224
- if (!shouldLogVerbose()) return;
225
- const channelConfigSummary = params.channelConfig ? `allowed=${params.channelConfig.allowed} enabled=${params.channelConfig.enabled ?? "unset"} requireMention=${params.channelConfig.requireMention ?? "unset"} ignoreOtherMentions=${params.channelConfig.ignoreOtherMentions ?? "unset"} matchKey=${params.channelConfig.matchKey ?? "none"} matchSource=${params.channelConfig.matchSource ?? "none"} users=${params.channelConfig.users?.length ?? 0} roles=${params.channelConfig.roles?.length ?? 0} skills=${params.channelConfig.skills?.length ?? 0}` : "none";
226
- logDebug(`[discord-preflight] channelConfig=${channelConfigSummary} channelMatchMeta=${params.channelMatchMeta} channelId=${params.channelId}`);
227
- }
228
- function logDiscordPreflightInboundSummary(params) {
229
- if (!shouldLogVerbose()) return;
230
- logVerbose(`discord: inbound id=${params.messageId} guild=${params.guildId ?? "dm"} channel=${params.channelId} mention=${params.wasMentioned ? "yes" : "no"} type=${params.isDirectMessage ? "dm" : params.isGroupDm ? "group-dm" : "guild"} content=${params.hasContent ? "yes" : "no"}`);
231
- }
232
- //#endregion
233
221
  //#region extensions/discord/src/monitor/message-handler.preflight-thread.ts
234
222
  async function resolveDiscordPreflightThreadContext(params) {
235
223
  const { resolveDiscordThreadChannel, resolveDiscordThreadParentInfo } = await loadDiscordThreadingRuntime();
@@ -279,8 +267,7 @@ async function resolveDiscordPreflightRoute(params) {
279
267
  accountId: params.preflight.accountId,
280
268
  runtimeConversationId: bindingConversationId,
281
269
  configuredConversationId: params.messageChannelId,
282
- parentConversationId: params.earlyThreadParentId,
283
- touchBinding: false
270
+ parentConversationId: params.earlyThreadParentId
284
271
  });
285
272
  const configuredBinding = configuredRoute?.bindingResolution ?? null;
286
273
  const threadBinding = runtimeRoute.bindingRecord ?? configuredBinding?.record;
@@ -297,7 +284,6 @@ async function resolveDiscordPreflightRoute(params) {
297
284
  configuredBinding,
298
285
  boundSessionKey,
299
286
  effectiveRoute,
300
- boundAgentId: boundSessionKey ? effectiveRoute.agentId : void 0,
301
287
  baseSessionKey: effectiveRoute.sessionKey
302
288
  };
303
289
  }
@@ -315,43 +301,17 @@ async function resolveDiscordHistoryMediaForPendingRecord(params) {
315
301
  const imageAttachments = (params.message.attachments ?? []).filter(isDiscordImageAttachmentCandidate).slice(0, DISCORD_HISTORY_MEDIA_MAX_ATTACHMENTS);
316
302
  const stickers = resolveDiscordMessageStickers(params.message).slice(0, Math.max(0, DISCORD_HISTORY_MEDIA_MAX_ATTACHMENTS - imageAttachments.length));
317
303
  if (imageAttachments.length === 0 && stickers.length === 0) return [];
318
- const rawData = (() => {
319
- try {
320
- return params.message.rawData;
321
- } catch {
322
- return {};
323
- }
324
- })();
325
- const mediaMessage = Object.assign(Object.create(Object.getPrototypeOf(params.message)), params.message);
326
- Object.defineProperties(mediaMessage, {
327
- attachments: { value: imageAttachments },
328
- rawData: { value: {
329
- ...rawData,
330
- attachments: imageAttachments,
331
- sticker_items: stickers,
332
- stickers
333
- } },
334
- stickers: { value: stickers }
335
- });
336
- const mediaList = await resolveMediaList(mediaMessage, Math.min(params.preflight.mediaMaxBytes, DISCORD_HISTORY_MEDIA_MAX_BYTES), {
304
+ const mediaList = await resolveMediaList({
305
+ attachments: imageAttachments,
306
+ stickers
307
+ }, Math.min(params.preflight.mediaMaxBytes, DISCORD_HISTORY_MEDIA_MAX_BYTES), {
337
308
  fetchImpl: params.preflight.discordRestFetch,
338
309
  ssrfPolicy: params.preflight.cfg.browser?.ssrfPolicy,
339
310
  readIdleTimeoutMs: DISCORD_HISTORY_MEDIA_IDLE_TIMEOUT_MS,
340
311
  totalTimeoutMs: DISCORD_HISTORY_MEDIA_TOTAL_TIMEOUT_MS,
341
312
  abortSignal: params.preflight.abortSignal
342
313
  });
343
- const stickerStartIndex = Math.max(0, mediaList.length - stickers.length);
344
- return (await toInboundMediaFactsWithMetadata(mediaList, { messageId: params.message.id })).map((media, index) => ({
345
- path: media.path,
346
- url: media.url,
347
- contentType: media.contentType,
348
- kind: index >= stickerStartIndex ? "sticker" : media.kind ?? "image",
349
- durationMs: media.durationMs,
350
- width: media.width,
351
- height: media.height,
352
- transcribed: media.transcribed,
353
- messageId: media.messageId
354
- }));
314
+ return (await toInboundMediaFactsWithMetadata(mediaList, { messageId: params.message.id })).map((media) => Object.assign({}, media, { kind: media.kind ?? "image" }));
355
315
  }
356
316
  async function preflightDiscordMessage(params) {
357
317
  if (params.abortSignal?.aborted || params.isPolicyCurrent?.() === false) return null;
@@ -398,10 +358,7 @@ async function preflightDiscordMessage(params) {
398
358
  const isGroupDm = channelInfo?.type === discord_exports.ChannelType.GroupDM;
399
359
  const isDirectMessage = channelInfo?.type === discord_exports.ChannelType.DM || !isGuildMessage && !isGroupDm && channelInfo?.type == null;
400
360
  const messageText = resolveDiscordMessageText(message, { includeForwarded: true });
401
- const injectedBoundThreadBinding = !isDirectMessage && !isGroupDm && (webhookId || author.bot) ? resolveInjectedBoundThreadLookupRecord({
402
- threadBindings: params.threadBindings,
403
- threadId: messageChannelId
404
- }) : void 0;
361
+ const injectedBoundThreadBinding = !isDirectMessage && !isGroupDm && (webhookId || author.bot) ? params.threadBindings.getByThreadId?.(messageChannelId) : void 0;
405
362
  const ignoreBoundThreadMessage = (threadBinding, isBoundThreadSession) => {
406
363
  let reason;
407
364
  if (shouldIgnoreBoundThreadWebhookMessage({
@@ -420,7 +377,6 @@ async function preflightDiscordMessage(params) {
420
377
  };
421
378
  if (ignoreBoundThreadMessage(injectedBoundThreadBinding, () => Boolean(injectedBoundThreadBinding) && isDiscordThreadChannelMessage({
422
379
  isGuildMessage,
423
- message,
424
380
  channelInfo
425
381
  }))) return null;
426
382
  const pluralkitInfo = await resolveDiscordPreflightPluralKitInfo({
@@ -443,7 +399,6 @@ async function preflightDiscordMessage(params) {
443
399
  ...params.data,
444
400
  message
445
401
  };
446
- logDebug(`[discord-preflight] channelId=${messageChannelId} guild_id=${params.data.guild_id} channelType=${channelInfo?.type} isGuild=${isGuildMessage} isDM=${isDirectMessage} isGroupDm=${isGroupDm}`);
447
402
  if (isGroupDm && !params.groupDmEnabled) {
448
403
  logVerbose("discord: drop group dm (group dms disabled)");
449
404
  return null;
@@ -501,7 +456,7 @@ async function preflightDiscordMessage(params) {
501
456
  earlyThreadParentId: threadParentId
502
457
  });
503
458
  if (params.isPolicyCurrent?.() === false) return null;
504
- const { conversationRuntime, threadBinding, configuredBinding, boundSessionKey, effectiveRoute, boundAgentId, baseSessionKey } = routeState;
459
+ const { conversationRuntime, threadBinding, configuredBinding, boundSessionKey, effectiveRoute, baseSessionKey } = routeState;
505
460
  const isBoundThreadSession = Boolean(threadBinding && threadChannel);
506
461
  if (ignoreBoundThreadMessage(threadBinding, () => isBoundThreadSession)) return null;
507
462
  const mentionRegexes = buildMentionRegexes(params.cfg, effectiveRoute.agentId, {
@@ -532,9 +487,7 @@ async function preflightDiscordMessage(params) {
532
487
  guildId: params.data.guild_id ?? void 0,
533
488
  guildEntries: params.guildEntries
534
489
  }) : null;
535
- logDebug(`[discord-preflight] guild_id=${params.data.guild_id} guild_obj=${Boolean(params.data.guild)} guild_obj_id=${params.data.guild?.id} guildInfo=${Boolean(guildInfo)} guildEntries=${params.guildEntries ? Object.keys(params.guildEntries).join(",") : "none"}`);
536
490
  if (isGuildMessage && params.guildEntries && Object.keys(params.guildEntries).length > 0 && !guildInfo) {
537
- logDebug(`[discord-preflight] guild blocked: guild_id=${params.data.guild_id} guildEntries keys=${Object.keys(params.guildEntries).join(",")}`);
538
491
  logVerbose(`Blocked discord guild ${params.data.guild_id ?? "unknown"} (not in discord.guilds)`);
539
492
  return null;
540
493
  }
@@ -549,11 +502,6 @@ async function preflightDiscordMessage(params) {
549
502
  threadParentName
550
503
  });
551
504
  const channelMatchMeta = formatAllowlistMatchMeta(channelConfig);
552
- logDiscordPreflightChannelConfig({
553
- channelConfig,
554
- channelMatchMeta,
555
- channelId: messageChannelId
556
- });
557
505
  if (!resolveDiscordPreflightChannelAccess({
558
506
  isGuildMessage,
559
507
  isGroupDm,
@@ -593,7 +541,7 @@ async function preflightDiscordMessage(params) {
593
541
  isGuildMessage,
594
542
  isThread: Boolean(threadChannel),
595
543
  botId,
596
- threadOwnerId: threadChannel ? resolveDiscordChannelInfoSafe(threadChannel).ownerId ?? channelInfo?.ownerId : void 0,
544
+ threadOwnerId: threadChannel ? threadChannel.ownerId ?? channelInfo?.ownerId : void 0,
597
545
  channelConfig,
598
546
  guildInfo
599
547
  });
@@ -607,7 +555,6 @@ async function preflightDiscordMessage(params) {
607
555
  allowNameMatching
608
556
  });
609
557
  if (isGuildMessage && hasAccessRestrictions && !memberAllowed) {
610
- logDebug(`[discord-preflight] drop: member not allowed`);
611
558
  logVerbose("Blocked discord guild sender (not in users/roles allowlist)");
612
559
  return null;
613
560
  }
@@ -650,15 +597,6 @@ async function preflightDiscordMessage(params) {
650
597
  acpBinding: Boolean(configuredBinding)
651
598
  });
652
599
  const wasMentioned = wasNormallyMentioned || hasActiveBotMention || Boolean(groupThread?.mentionedAgentIds.length);
653
- logDiscordPreflightInboundSummary({
654
- messageId: message.id,
655
- guildId: params.data.guild_id ?? void 0,
656
- channelId: messageChannelId,
657
- wasMentioned,
658
- isDirectMessage,
659
- isGroupDm,
660
- hasContent: Boolean(messageText)
661
- });
662
600
  const allowTextCommands = shouldHandleTextCommands({
663
601
  cfg: params.cfg,
664
602
  surface: "discord"
@@ -729,10 +667,7 @@ async function preflightDiscordMessage(params) {
729
667
  hasControlCommand: hasControlCommandInMessage,
730
668
  hasAbortRequest
731
669
  });
732
- logDebug(`[discord-preflight] shouldRequireMention=${shouldRequireMention} baseRequireMention=${shouldRequireMentionByConfig} boundThreadSession=${isBoundThreadSession} mentionDecision.shouldSkip=${mentionDecision.shouldSkip} wasMentioned=${wasMentioned}`);
733
670
  if (isGuildMessage && shouldRequireMention && mentionDecision.shouldSkip) {
734
- logDebug(`[discord-preflight] drop: no-mention`);
735
- logVerbose(`discord: drop guild message (mention required, botId=${botId ?? "<missing>"})`);
736
671
  logger.info({
737
672
  channelId: messageChannelId,
738
673
  reason: "no-mention"
@@ -742,7 +677,6 @@ async function preflightDiscordMessage(params) {
742
677
  }
743
678
  if (requiresActiveBotMention) {
744
679
  if (!(isDirectMessage || hasActiveBotMention || mentionDecision.matchedImplicitMentionKinds.some((kind) => kind !== "reply_to_bot"))) {
745
- logDebug(`[discord-preflight] drop: bot message missing mention (allowBots=mentions)`);
746
680
  logVerbose("discord: drop bot message (allowBots=mentions, missing mention)");
747
681
  return null;
748
682
  }
@@ -753,28 +687,22 @@ async function preflightDiscordMessage(params) {
753
687
  const referencedAuthor = referencedReply?.author;
754
688
  const replyTargetsOtherBot = Boolean(botId) && Boolean(referencedAuthor?.bot) && referencedAuthor?.id !== botId && !referencedWebhookId;
755
689
  if (isGuildMessage && ignoreOtherMentions && (hasUserOrRoleMention || replyTargetsOtherBot) && !wasMentioned && !mentionDecision.implicitMention) {
756
- logDebug(`[discord-preflight] drop: addressed-to-other`);
757
690
  logVerbose(`discord: drop guild message (addressed to another identity, ignoreOtherMentions=true, botId=${botId})`);
758
691
  await recordPendingHistoryEntry();
759
692
  return null;
760
693
  }
761
- const systemLocation = resolveDiscordSystemLocation({
762
- isDirectMessage,
763
- isGroupDm,
764
- guild: params.data.guild ?? void 0,
765
- channelName: channelName ?? messageChannelId
766
- });
694
+ const systemGuild = params.data.guild;
695
+ const systemChannelName = channelName ?? messageChannelId;
696
+ const systemLocation = isDirectMessage ? "DM" : isGroupDm ? `Group DM #${systemChannelName}` : systemGuild?.name ? `${systemGuild.name} #${systemChannelName}` : `#${systemChannelName}`;
767
697
  const { resolveDiscordSystemEvent } = await loadSystemEventsRuntime();
768
698
  if (params.isPolicyCurrent?.() === false) return null;
769
699
  const systemText = resolveDiscordSystemEvent(message, systemLocation);
770
700
  if (systemText) {
771
- logDebug(`[discord-preflight] drop: system event`);
772
701
  enqueueRoutedSystemEvent(systemText, effectiveRoute, { contextKey: `discord:system:${messageChannelId}:${message.id}` });
773
702
  return null;
774
703
  }
775
704
  const hasNativeMedia = (message.attachments?.length ?? 0) > 0 || resolveDiscordMessageStickers(message).length > 0;
776
705
  if (!messageText && !hasNativeMedia) {
777
- logDebug(`[discord-preflight] drop: empty content`);
778
706
  logVerbose(`discord: drop message ${message.id} (empty content)`);
779
707
  return null;
780
708
  }
@@ -789,7 +717,7 @@ async function preflightDiscordMessage(params) {
789
717
  return null;
790
718
  }
791
719
  }
792
- if (author.bot && !sender.isPluralKit && allowBotsMode !== "off" && params.botUserId && author.id !== params.botUserId) {
720
+ if (author.bot && !sender.isPluralKit && params.botUserId) {
793
721
  const botLoopResult = recordChannelBotPairLoopAndCheckSuppression({
794
722
  scopeId: params.accountId,
795
723
  conversationId: messageChannelId,
@@ -798,7 +726,7 @@ async function preflightDiscordMessage(params) {
798
726
  config: params.discordConfig?.botLoopProtection,
799
727
  defaultsConfig: params.cfg.channels?.defaults?.botLoopProtection,
800
728
  defaultEnabled: true,
801
- nowMs: resolveTimestampMs(message.timestamp)
729
+ nowMs: parseDateStringTimestampMs(message.timestamp)
802
730
  });
803
731
  if (botLoopResult.suppressed) {
804
732
  logVerbose(`discord: bot-to-bot loop detected before media download, suppressing for ${Math.max(0, Math.ceil((botLoopResult.cooldownUntilMs - Date.now()) / 1e3))}s`);
@@ -824,7 +752,6 @@ async function preflightDiscordMessage(params) {
824
752
  const forwardedMedia = await resolveForwardedMediaList(message, params.mediaMaxBytes, mediaResolveOptions);
825
753
  if (params.abortSignal?.aborted) return null;
826
754
  preparedMedia.push(...forwardedMedia);
827
- logDebug(`[discord-preflight] success: route=${effectiveRoute.agentId} sessionKey=${effectiveRoute.sessionKey}`);
828
755
  return {
829
756
  cfg: params.cfg,
830
757
  client: params.client,
@@ -866,12 +793,10 @@ async function preflightDiscordMessage(params) {
866
793
  messageText,
867
794
  ...preflightTranscript !== void 0 ? { preflightAudioTranscript: preflightTranscript } : {},
868
795
  preparedMedia,
869
- wasMentioned,
870
796
  conversationAvatar,
871
797
  route: effectiveRoute,
872
798
  threadBinding,
873
799
  boundSessionKey: boundSessionKey || void 0,
874
- boundAgentId,
875
800
  guildInfo,
876
801
  guildSlug,
877
802
  threadChannel,
@@ -893,4 +818,4 @@ async function preflightDiscordMessage(params) {
893
818
  };
894
819
  }
895
820
  //#endregion
896
- export { preflightDiscordMessage, shouldIgnoreBoundThreadWebhookMessage };
821
+ export { preflightDiscordMessage };
@@ -1,5 +1,5 @@
1
- import { A as isDiscordThreadChannelType } from "./allow-list-BKqOldGy.mjs";
2
- import { D as resolveDiscordMessageStickers } from "./transcripts-source-8RDQrSVb.mjs";
1
+ import { w as isDiscordThreadChannelType } from "./allow-list-BXrS8-R9.mjs";
2
+ import { D as resolveDiscordMessageStickers } from "./transcripts-source-ie9GBWaU.mjs";
3
3
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -21,12 +21,6 @@ function isBoundThreadBotSystemMessage(params) {
21
21
  function isDiscordThreadChannelMessage(params) {
22
22
  return params.isGuildMessage && isDiscordThreadChannelType(params.channelInfo?.type);
23
23
  }
24
- function resolveInjectedBoundThreadLookupRecord(params) {
25
- const getByThreadId = params.threadBindings.getByThreadId;
26
- if (typeof getByThreadId !== "function") return;
27
- const binding = getByThreadId(params.threadId);
28
- return binding && typeof binding === "object" ? binding : void 0;
29
- }
30
24
  function resolveDiscordMentionState(params) {
31
25
  if (params.isDirectMessage) return {
32
26
  implicitMentionKinds: [],
@@ -91,20 +85,13 @@ function createDiscordHistorySenderProvenance(params) {
91
85
  });
92
86
  }
93
87
  function filterDiscordHistoryEntriesForContext(params) {
94
- if (params.mode === "all") return {
95
- entries: [...params.entries],
96
- omitted: 0
97
- };
98
- const filtered = filterSupplementalContextItems({
88
+ if (params.mode === "all") return [...params.entries];
89
+ return filterSupplementalContextItems({
99
90
  items: params.entries,
100
91
  mode: params.mode,
101
92
  kind: "history",
102
93
  isSenderAllowed: (entry) => Boolean(entry.senderProvenance) && params.isSenderAllowed(entry.senderProvenance)
103
- });
104
- return {
105
- entries: filtered.items,
106
- omitted: filtered.omitted
107
- };
94
+ }).items;
108
95
  }
109
96
  function resolveDiscordHistoryMediaIds(message) {
110
97
  return [...(message.attachments ?? []).map((attachment) => `attachment:${attachment.id}`), ...resolveDiscordMessageStickers(message).map((sticker) => `sticker:${sticker.id}`)];
@@ -112,9 +99,9 @@ function resolveDiscordHistoryMediaIds(message) {
112
99
  //#endregion
113
100
  //#region extensions/discord/src/monitor/message-handler.preflight-runtime.ts
114
101
  const loadPluralKitRuntime = createLazyRuntimeModule(() => import("./pluralkit-B64dfq_j.mjs").then((n) => n.n));
115
- const loadPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio-wWgsZG5F.mjs"));
116
- const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-DCOLXkwS.mjs"));
117
- const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-CzjFeUSe.mjs").then((n) => n.t));
102
+ const loadPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio-C6QtD6HX.mjs"));
103
+ const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-yfWz150v.mjs"));
104
+ const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-DodLYDt-.mjs").then((n) => n.t));
118
105
  //#endregion
119
106
  //#region extensions/discord/src/monitor/message-handler.preflight-pluralkit.ts
120
107
  async function resolveDiscordPreflightPluralKitInfo(params) {
@@ -133,4 +120,4 @@ async function resolveDiscordPreflightPluralKitInfo(params) {
133
120
  }
134
121
  }
135
122
  //#endregion
136
- export { createDiscordHistorySenderProvenance as a, hasRawDiscordUserMention as c, matchesActiveDiscordMentionPatterns as d, resolveDiscordMentionState as f, loadSystemEventsRuntime as i, isBoundThreadBotSystemMessage as l, shouldIgnoreBoundThreadWebhookMessage as m, loadDiscordThreadingRuntime as n, filterDiscordHistoryEntriesForContext as o, resolveInjectedBoundThreadLookupRecord as p, loadPreflightAudioRuntime as r, resolveDiscordHistoryMediaIds as s, resolveDiscordPreflightPluralKitInfo as t, isDiscordThreadChannelMessage as u };
123
+ export { createDiscordHistorySenderProvenance as a, hasRawDiscordUserMention as c, matchesActiveDiscordMentionPatterns as d, resolveDiscordMentionState as f, loadSystemEventsRuntime as i, isBoundThreadBotSystemMessage as l, loadDiscordThreadingRuntime as n, filterDiscordHistoryEntriesForContext as o, shouldIgnoreBoundThreadWebhookMessage as p, loadPreflightAudioRuntime as r, resolveDiscordHistoryMediaIds as s, resolveDiscordPreflightPluralKitInfo as t, isDiscordThreadChannelMessage as u };