@openclaw/discord 2026.10.10-beta.4 → 2026.10.10

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 (166) hide show
  1. package/dist/.setup/{account-inspect-8cCu6uPG.mjs → account-inspect-X_Xlr42B.mjs} +2 -3
  2. package/dist/.setup/{accounts-ljrzXBJi.mjs → accounts-C18HNgge.mjs} +4 -8
  3. package/dist/.setup/{active-turn-thread-route-C4tp9noA.mjs → active-turn-thread-route-BAc_Xik-.mjs} +1 -2
  4. package/dist/.setup/{allow-list-B_ToXtew.mjs → allow-list-D1ZGfhXh.mjs} +5 -10
  5. package/dist/.setup/{api-CtmE1OUN.mjs → api-Bth1wKF9.mjs} +3 -5
  6. package/dist/.setup/{approval-handler.runtime-BvF8oUpa.mjs → approval-handler.runtime-BAoEELJJ.mjs} +8 -9
  7. package/dist/.setup/{approval-message-updates-wbUqLtLI.mjs → approval-message-updates-Cks-MSCJ.mjs} +3 -4
  8. package/dist/.setup/{audit-UwzCdDJk.mjs → audit-Dw_rAZIz.mjs} +6 -7
  9. package/dist/.setup/{channel-BlvyeRAu.mjs → channel-BMpMAeQL.mjs} +33 -41
  10. package/dist/.setup/{channel-access-DasWY_OV.mjs → channel-access-BPrWoEXM.mjs} +1 -2
  11. package/dist/.setup/{channel.setup-By7wNopw.mjs → channel.setup-DVe7Y3Jf.mjs} +8 -12
  12. package/dist/.setup/{command-deploy-store-DFkBTViB.mjs → command-deploy-store-DPWiBMks.mjs} +1 -2
  13. package/dist/.setup/{command-owners-D78sAoOz.mjs → command-owners-BzlhNBxA.mjs} +2 -3
  14. package/dist/.setup/{components-C_cuoW1q.mjs → components-BvOWSPxr.mjs} +11 -20
  15. package/dist/.setup/{config-schema-_uBILpQf.mjs → config-schema-Coyq5wOr.mjs} +3 -5
  16. package/dist/.setup/{conversation-binding-route-fdYsXexV.mjs → conversation-binding-route-DOPUZNYo.mjs} +2 -3
  17. package/dist/.setup/{directory-config-3iVub-3m.mjs → directory-config-CIqVnQtn.mjs} +3 -4
  18. package/dist/.setup/{directory-live-DLygQVtW.mjs → directory-live-DUuPEWub.mjs} +7 -10
  19. package/dist/.setup/{discord-Cl2OPTZ6.mjs → discord-eFlHX1Gn.mjs} +35 -68
  20. package/dist/.setup/{doctor-94GSI6lY.mjs → doctor-Dty_Ossy.mjs} +8 -9
  21. package/dist/.setup/{doctor-contract-Bwv8EuQ_.mjs → doctor-contract-Dstl3cMg.mjs} +2 -3
  22. package/dist/.setup/{handle-action-0-FZD3Am.mjs → handle-action-DXY91jF-.mjs} +10 -11
  23. package/dist/.setup/{handle-action.guild-admin-DfAWANBE.mjs → handle-action.guild-admin-BvBCfhXF.mjs} +3 -4
  24. package/dist/.setup/{live-policy-config-BPoB3eQi.mjs → live-policy-config-DO1Fk2hp.mjs} +3 -5
  25. package/dist/.setup/{message-handler-CtR2w7W_.mjs → message-handler-fL1j1NiR.mjs} +11 -16
  26. package/dist/.setup/{message-handler.preflight-BqUw7LWb.mjs → message-handler.preflight-DkjwNZAd.mjs} +20 -28
  27. package/dist/.setup/{message-handler.preflight-pluralkit-BU9I_X-b.mjs → message-handler.preflight-pluralkit-DR4BnvMU.mjs} +10 -14
  28. package/dist/.setup/{message-handler.process-BZeWmSNC.mjs → message-handler.process-ClOwIPDK.mjs} +33 -47
  29. package/dist/.setup/{outbound-adapter-DBwgKemw.mjs → outbound-adapter-DWyAWBFh.mjs} +13 -19
  30. package/dist/.setup/{outbound-session-route-CsHHPxsQ.mjs → outbound-session-route-TFBPPkoz.mjs} +21 -32
  31. package/dist/.setup/{output-activity-uBpMSX75.mjs → output-activity-CDgs2s3O.mjs} +1 -2
  32. package/dist/.setup/{pluralkit-B64dfq_j.mjs → pluralkit-DcXbHTpQ.mjs} +2 -3
  33. package/dist/.setup/{preflight-audio-wWgsZG5F.mjs → preflight-audio-CwtPIsvk.mjs} +1 -2
  34. package/dist/.setup/{presence-cache-DCeTsL73.mjs → presence-cache-CgutE4NN.mjs} +1 -2
  35. package/dist/.setup/{probe-D3P1x4aN.mjs → probe-DNge7OEP.mjs} +5 -6
  36. package/dist/.setup/{provider-DUTsZJHz.mjs → provider-BBDuE14w.mjs} +165 -227
  37. package/dist/.setup/{provider-session.runtime-Ucr3XodI.mjs → provider-session.runtime-D8hMXXqJ.mjs} +3 -3
  38. package/dist/.setup/provider.runtime-BQ1z4Aq1.mjs +1 -0
  39. package/dist/.setup/{realtime-session.runtime-bNnPOKP_.mjs → realtime-session.runtime-cetognkp.mjs} +14 -23
  40. package/dist/.setup/{receive-recovery-CKvaG2Hf.mjs → receive-recovery-C77CVdGM.mjs} +3 -6
  41. package/dist/.setup/{resolve-allowlist-common-DNSsUQRF.mjs → resolve-allowlist-common-CI77288n.mjs} +5 -7
  42. package/dist/.setup/{resolve-channels-UdT38DzU.mjs → resolve-channels-DYc6-xgV.mjs} +5 -6
  43. package/dist/.setup/{resolve-users-DnCsrXZ_.mjs → resolve-users-BQT7XWF2.mjs} +4 -5
  44. package/dist/.setup/{rolldown-runtime-B4FMCO8f.mjs → rolldown-runtime-nwUcYXjP.mjs} +1 -2
  45. package/dist/.setup/{runtime-DE6W14G3.mjs → runtime-CI0UJqeS.mjs} +23 -35
  46. package/dist/.setup/{runtime-Cg5pIBm_.mjs → runtime-CcijhTJT.mjs} +4 -6
  47. package/dist/.setup/{runtime-DgnVQ7zW.mjs → runtime-DcBvHOm1.mjs} +1 -2
  48. package/dist/.setup/{runtime-doctor-migrations-BPV-R4G9.mjs → runtime-doctor-migrations-BpV1jKk0.mjs} +5 -9
  49. package/dist/.setup/{secret-config-contract-CIsH7R3B.mjs → secret-config-contract-BdbCvqnM.mjs} +1 -2
  50. package/dist/.setup/{security-audit-BFT84Uny.mjs → security-audit-CTwisG7c.mjs} +3 -4
  51. package/dist/.setup/{security-contract-DNyyjTZZ.mjs → security-contract-D-o0iWDk.mjs} +1 -2
  52. package/dist/.setup/{security-doctor-nGgPm65L.mjs → security-doctor-4s7omTZd.mjs} +1 -2
  53. package/dist/.setup/{send-yR1hfybW.mjs → send-Cbq-IVsS.mjs} +18 -28
  54. package/dist/.setup/{send.components--dxMjc2O.mjs → send.components-BV6ucNpJ.mjs} +10 -13
  55. package/dist/.setup/{send.outbound-B5vQwgUK.mjs → send.outbound-CGhBhzjQ.mjs} +9 -13
  56. package/dist/.setup/{send.receipt-eE3zLTDH.mjs → send.receipt-Dw-_r5Bx.mjs} +17 -19
  57. package/dist/.setup/{send.shared-iGf1rqAm.mjs → send.shared-D4MioxW_.mjs} +14 -23
  58. package/dist/.setup/{sender-identity-BNBvGt1l.mjs → sender-identity-DrN5c4ec.mjs} +2 -3
  59. package/dist/.setup/{session-contract-BO5tlIdl.mjs → session-contract-Bq71MS78.mjs} +1 -2
  60. package/dist/.setup/{session-key-normalization-CCHGNSQw.mjs → session-key-normalization-Cfvze5hd.mjs} +1 -2
  61. package/dist/.setup/setup-plugin-api-B4J6wmL1.mjs +2 -0
  62. package/dist/.setup/{shared-DgzLizSt.mjs → shared-Bp0sxD5R.mjs} +15 -19
  63. package/dist/.setup/{subagent-hooks-tBtaqWkD.mjs → subagent-hooks-mQbDkvuD.mjs} +3 -4
  64. package/dist/.setup/{system-events-DGsxf-l9.mjs → system-events-2zc2eGfF.mjs} +3 -4
  65. package/dist/.setup/{target-parsing-C-HyNxcE.mjs → target-parsing-BiuhcK9Q.mjs} +1 -2
  66. package/dist/.setup/{target-resolver-BFOKmBni.mjs → target-resolver-CAHeVfmZ.mjs} +6 -7
  67. package/dist/.setup/targets-BaklhOqq.mjs +3 -0
  68. package/dist/.setup/{thread-binding-api-BDZJD4na.mjs → thread-binding-api-Drd4Zu-5.mjs} +1 -2
  69. package/dist/.setup/{thread-bindings-Dsc3zsrI.mjs → thread-bindings-Dg7X_ZXP.mjs} +8 -11
  70. package/dist/.setup/{thread-bindings.manager-BMpmKLQh.mjs → thread-bindings.manager-DCDYksah.mjs} +15 -20
  71. package/dist/.setup/{thread-bindings.session-updates-BMdJeJMc.mjs → thread-bindings.session-updates-C76plLS3.mjs} +5 -9
  72. package/dist/.setup/{threading-Cg_QRc8s.mjs → threading-l0UfrE6x.mjs} +6 -9
  73. package/dist/.setup/{timeouts-CuNARfyw.mjs → timeouts-DTrUsJ_W.mjs} +1 -2
  74. package/dist/.setup/{transcripts-source-fRvFsZng.mjs → transcripts-source-CGgOaWcu.mjs} +19 -32
  75. package/dist/.setup/{typing-CNlSKY5S.mjs → typing-DAv4S2fI.mjs} +2 -3
  76. package/dist/.setup/{voice-runtime-DHDNu0fz.mjs → voice-runtime-DY1EwDfi.mjs} +33 -55
  77. package/dist/.source-module-urls/d6c089460280c5a04184542d6712e04545caeb1ebb290d3504377b4cc5e22fea.json +1 -1
  78. package/dist/account-inspect-api.js +2 -3
  79. package/dist/action-runtime-api.js +1 -1
  80. package/dist/activities-api.js +13 -20
  81. package/dist/api.js +21 -22
  82. package/dist/assets/embedded-app-sdk.mjs +1 -1
  83. package/dist/channel-config-api.js +1 -1
  84. package/dist/channel-plugin-api.js +1 -1
  85. package/dist/contract-api.js +1 -1
  86. package/dist/directory-contract-api.js +2 -3
  87. package/dist/doctor-contract-api.js +5 -7
  88. package/dist/index.js +1 -2
  89. package/dist/runtime-api.js +22 -22
  90. package/dist/runtime-setter-api.js +1 -1
  91. package/dist/secret-contract-api.js +1 -1
  92. package/dist/security-audit-contract-api.js +1 -1
  93. package/dist/security-contract-api.js +1 -1
  94. package/dist/session-key-api.js +1 -1
  95. package/dist/setup-entry.js +2 -3
  96. package/dist/setup-plugin-api.js +1 -1
  97. package/dist/src/voice/audio-worker.runtime.js +8 -14
  98. package/dist/subagent-hooks-api.js +2 -3
  99. package/dist/thread-binding-api.js +1 -1
  100. package/dist/transcripts-source-api.js +2 -3
  101. package/node_modules/@discord/embedded-app-sdk/output/lib/zod/lib/index.cjs +3 -2
  102. package/node_modules/@discord/embedded-app-sdk/output/lib/zod/lib/index.mjs +3 -2
  103. package/node_modules/undici/README.md +25 -3
  104. package/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  105. package/node_modules/undici/docs/docs/api/Client.md +11 -6
  106. package/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
  107. package/node_modules/undici/docs/docs/api/Errors.md +76 -1
  108. package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  109. package/node_modules/undici/docs/docs/api/Interceptors.md +13 -6
  110. package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  111. package/node_modules/undici/docs/docs/index.md +12 -12
  112. package/node_modules/undici/docs/docs/type-map.json +66 -66
  113. package/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  114. package/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  115. package/node_modules/undici/lib/core/connect.js +10 -4
  116. package/node_modules/undici/lib/core/constants.js +12 -1
  117. package/node_modules/undici/lib/core/errors.js +38 -1
  118. package/node_modules/undici/lib/core/request.js +16 -1
  119. package/node_modules/undici/lib/core/symbols.js +2 -0
  120. package/node_modules/undici/lib/core/util.js +26 -1
  121. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  122. package/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
  123. package/node_modules/undici/lib/dispatcher/client-h2.js +46 -14
  124. package/node_modules/undici/lib/dispatcher/client.js +4 -1
  125. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  126. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  127. package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  128. package/node_modules/undici/lib/dispatcher/pool-base.js +65 -28
  129. package/node_modules/undici/lib/dispatcher/pool.js +11 -8
  130. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
  131. package/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  132. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  133. package/node_modules/undici/lib/handler/cache-handler.js +153 -15
  134. package/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
  135. package/node_modules/undici/lib/handler/redirect-handler.js +28 -8
  136. package/node_modules/undici/lib/handler/retry-handler.js +44 -11
  137. package/node_modules/undici/lib/interceptor/cache.js +11 -3
  138. package/node_modules/undici/lib/interceptor/decompress.js +22 -9
  139. package/node_modules/undici/lib/interceptor/dns.js +11 -0
  140. package/node_modules/undici/lib/interceptor/response-error.js +72 -28
  141. package/node_modules/undici/lib/milo/LICENSE.md +7 -0
  142. package/node_modules/undici/lib/milo/no-simd.js +1002 -0
  143. package/node_modules/undici/lib/milo/simd.js +1002 -0
  144. package/node_modules/undici/lib/mock/mock-agent.js +11 -0
  145. package/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  146. package/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  147. package/node_modules/undici/lib/util/cache.js +11 -5
  148. package/node_modules/undici/lib/web/cookies/util.js +19 -2
  149. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  150. package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
  151. package/node_modules/undici/lib/web/fetch/body.js +47 -38
  152. package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  153. package/node_modules/undici/lib/web/fetch/headers.js +2 -2
  154. package/node_modules/undici/lib/web/fetch/index.js +8 -4
  155. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  156. package/node_modules/undici/lib/web/websocket/receiver.js +25 -4
  157. package/node_modules/undici/package.json +7 -5
  158. package/node_modules/undici/types/cache-interceptor.d.ts +10 -0
  159. package/node_modules/undici/types/client.d.ts +10 -4
  160. package/node_modules/undici/types/errors.d.ts +16 -1
  161. package/node_modules/undici/types/h2c-client.d.ts +1 -1
  162. package/node_modules/undici/types/interceptors.d.ts +6 -1
  163. package/package.json +5 -5
  164. package/dist/.setup/provider.runtime-J8NuMCNs.mjs +0 -1
  165. package/dist/.setup/setup-plugin-api-DVpA_yqS.mjs +0 -2
  166. package/dist/.setup/targets-UbCpek5o.mjs +0 -3
@@ -1 +1 @@
1
- export { t as DiscordChannelConfigSchema } from "./.setup/config-schema-_uBILpQf.mjs";
1
+ export { t as DiscordChannelConfigSchema } from "./.setup/config-schema-Coyq5wOr.mjs";
@@ -1 +1 @@
1
- export { t as discordPlugin } from "./.setup/channel-BlvyeRAu.mjs";
1
+ export { t as discordPlugin } from "./.setup/channel-BMpMAeQL.mjs";
@@ -1 +1 @@
1
- export { t as deriveLegacySessionChatType } from "./.setup/session-contract-BO5tlIdl.mjs";
1
+ export { t as deriveLegacySessionChatType } from "./.setup/session-contract-Bq71MS78.mjs";
@@ -1,5 +1,5 @@
1
- import { n as listDiscordDirectoryGroupsFromConfig, r as listDiscordDirectoryPeersFromConfig } from "./.setup/directory-config-3iVub-3m.mjs";
2
- //#region extensions/discord/directory-contract-api.ts
1
+ import { n as listDiscordDirectoryGroupsFromConfig, r as listDiscordDirectoryPeersFromConfig } from "./.setup/directory-config-CIqVnQtn.mjs";
2
+ // extensions/discord/directory-contract-api.ts
3
3
  const discordDirectoryContractPlugin = {
4
4
  id: "discord",
5
5
  directory: {
@@ -7,5 +7,4 @@ const discordDirectoryContractPlugin = {
7
7
  listGroups: listDiscordDirectoryGroupsFromConfig
8
8
  }
9
9
  };
10
- //#endregion
11
10
  export { discordDirectoryContractPlugin, listDiscordDirectoryGroupsFromConfig, listDiscordDirectoryPeersFromConfig };
@@ -1,9 +1,9 @@
1
- import { n as DISCORD_COMMAND_DEPLOY_HASH_NAMESPACE, t as DISCORD_COMMAND_DEPLOY_HASH_MAX_ENTRIES } from "./.setup/command-deploy-store-DFkBTViB.mjs";
2
- import { t as runtime_doctor_migrations_exports } from "./.setup/runtime-doctor-migrations-BPV-R4G9.mjs";
3
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-Bwv8EuQ_.mjs";
1
+ import { n as DISCORD_COMMAND_DEPLOY_HASH_NAMESPACE, t as DISCORD_COMMAND_DEPLOY_HASH_MAX_ENTRIES } from "./.setup/command-deploy-store-DPWiBMks.mjs";
2
+ import { t as runtime_doctor_migrations_exports } from "./.setup/runtime-doctor-migrations-BpV1jKk0.mjs";
3
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-Dstl3cMg.mjs";
4
4
  import fs from "node:fs/promises";
5
5
  import path from "node:path";
6
- //#region extensions/discord/src/monitor/command-deploy-migration.ts
6
+ // extensions/discord/src/monitor/command-deploy-migration.ts
7
7
  const detectDiscordCommandDeployCacheMigration = async ({ stateDir }) => {
8
8
  const sourcePath = path.join(stateDir, "discord", "command-deploy-cache.json");
9
9
  try {
@@ -26,8 +26,7 @@ const detectDiscordCommandDeployCacheMigration = async ({ stateDir }) => {
26
26
  readEntries: () => []
27
27
  }];
28
28
  };
29
- //#endregion
30
- //#region extensions/discord/doctor-contract-api.ts
29
+ // extensions/discord/doctor-contract-api.ts
31
30
  const stateMigrations = [(0, runtime_doctor_migrations_exports.defineRetiredPluginStateMigration)({
32
31
  id: "discord-retired-state",
33
32
  label: "Discord retired model preferences and thread bindings",
@@ -38,5 +37,4 @@ const stateMigrations = [(0, runtime_doctor_migrations_exports.defineRetiredPlug
38
37
  label: "Discord command deployment cache",
39
38
  resolvePlans: detectDiscordCommandDeployCacheMigration
40
39
  })];
41
- //#endregion
42
40
  export { legacyConfigRules, normalizeCompatibilityConfig, stateMigrations };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { registerDiscordSubagentHooks } from "./subagent-hooks-api.js";
2
2
  import { defineBundledChannelEntry, loadBundledEntryExportSync } from "openclaw/plugin-sdk/channel-entry-contract";
3
- //#region extensions/discord/index.ts
3
+ // extensions/discord/index.ts
4
4
  var discord_default = defineBundledChannelEntry({
5
5
  id: "discord",
6
6
  name: "Discord",
@@ -32,5 +32,4 @@ var discord_default = defineBundledChannelEntry({
32
32
  })(api);
33
33
  }
34
34
  });
35
- //#endregion
36
35
  export { discord_default as default };
@@ -1,23 +1,23 @@
1
- import { b as shouldEmitDiscordReactionNotification, c as resolveDiscordChannelConfig, d as resolveDiscordCommandAuthorized, f as resolveDiscordGuildEntry, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, r as isDiscordGroupAllowedByPolicy, t as allowListMatches, v as resolveDiscordShouldRequireMention, y as resolveGroupDmAllow } from "./.setup/allow-list-B_ToXtew.mjs";
2
- import { G as unregisterGateway, H as clearGateways, S as hasAllGuildPermissionsDiscord, U as getGateway, W as registerGateway, b as fetchChannelPermissionsDiscord, g as DiscordSendError, w as hasAnyGuildPermissionDiscord, x as fetchMemberGuildPermissionsDiscord } from "./.setup/send.shared-iGf1rqAm.mjs";
3
- import { i as setPresence, n as getPresence, r as presenceCacheSize, t as clearPresences } from "./.setup/presence-cache-DCeTsL73.mjs";
4
- import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./.setup/directory-live-DLygQVtW.mjs";
5
- import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchChannelInfoDiscord, D as fetchVoiceStatusDiscord, E as fetchRoleInfoDiscord, F as uploadEmojiDiscord, H as setChannelPermissionDiscord, I as uploadStickerDiscord, L as createChannelDiscord, M as resolveEventCoverImage, N as timeoutMemberDiscord, O as kickMemberDiscord, P as listGuildEmojisDiscord, R as deleteChannelDiscord, S as createScheduledEventDiscord, T as fetchMemberInfoDiscord, V as removeChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./.setup/send-yR1hfybW.mjs";
6
- import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./.setup/send.outbound-B5vQwgUK.mjs";
7
- import { a as isAbortError, c as runDiscordTaskWithTimeout, i as DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, o as normalizeDiscordInboundWorkerTimeoutMs, r as DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, s as normalizeDiscordListenerTimeoutMs, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./.setup/timeouts-CuNARfyw.mjs";
8
- import { c as readDiscordChannelMoveParams, i as requiredGuildPermissionForModerationAction, l as readDiscordParentIdParam, n as isDiscordModerationAction, o as readDiscordChannelCreateParams, r as readDiscordModerationCommand, s as readDiscordChannelEditParams, t as handleDiscordAction } from "./.setup/runtime-DE6W14G3.mjs";
9
- import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./.setup/send.components--dxMjc2O.mjs";
10
- import { r as setDiscordRuntime } from "./.setup/runtime-DgnVQ7zW.mjs";
11
- import { t as resolveDiscordOutboundSessionRoute, x as discordMessageActions } from "./.setup/outbound-session-route-CsHHPxsQ.mjs";
12
- import { F as resolveThreadBindingMaxAgeExpiresAt, I as resolveThreadBindingMaxAgeMs, N as resolveThreadBindingIdleTimeoutMs, P as resolveThreadBindingInactivityExpiresAt, i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./.setup/thread-bindings.session-updates-BMdJeJMc.mjs";
13
- import { t as resolveDiscordChannelAllowlist } from "./.setup/resolve-channels-UdT38DzU.mjs";
14
- import { t as resolveDiscordUserAllowlist } from "./.setup/resolve-users-DnCsrXZ_.mjs";
15
- import { c as resolveThreadBindingPersonaFromRecord, i as createNoopThreadBindingManager, n as getThreadBindingManager, s as resolveThreadBindingPersona, t as createThreadBindingManager } from "./.setup/thread-bindings.manager-BMpmKLQh.mjs";
16
- import { a as autoBindSpawnedDiscordSubagent, c as listThreadBindingsForAccount, d as unbindThreadBindingsBySessionKeyAsync, f as resolveDiscordThreadBindingIdleTimeoutMs, l as reconcileAcpThreadBindingsOnStartup, m as resolveThreadBindingsEnabled, n as resolveThreadBindingIntroText, o as listThreadBindingsBySessionKey, p as resolveDiscordThreadBindingMaxAgeMs, r as resolveThreadBindingThreadName, s as listThreadBindingsBySessionKeyAsync, t as formatThreadBindingDurationLabel, u as unbindThreadBindingsBySessionKey } from "./.setup/thread-bindings-Dsc3zsrI.mjs";
17
- import { i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, s as resolveDiscordPrivilegedIntentsFromFlags, t as fetchDiscordApplicationId } from "./.setup/probe-D3P1x4aN.mjs";
18
- import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./.setup/audit-UwzCdDJk.mjs";
19
- import { S as createDiscordNativeCommand, a as waitForDiscordGatewayPluginRegistration, i as resolveDiscordGatewayIntents, k as registerDiscordListener, r as createDiscordGatewayPlugin, t as monitorDiscordProvider } from "./.setup/provider-DUTsZJHz.mjs";
20
- import { f as resolveDiscordReplyTarget, g as sanitizeDiscordThreadName } from "./.setup/transcripts-source-fRvFsZng.mjs";
21
- import { t as createDiscordMessageHandler } from "./.setup/message-handler-CtR2w7W_.mjs";
22
- import "./.setup/threading-Cg_QRc8s.mjs";
1
+ import { b as shouldEmitDiscordReactionNotification, c as resolveDiscordChannelConfig, d as resolveDiscordCommandAuthorized, f as resolveDiscordGuildEntry, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, r as isDiscordGroupAllowedByPolicy, t as allowListMatches, v as resolveDiscordShouldRequireMention, y as resolveGroupDmAllow } from "./.setup/allow-list-D1ZGfhXh.mjs";
2
+ import { G as unregisterGateway, H as clearGateways, S as hasAllGuildPermissionsDiscord, U as getGateway, W as registerGateway, b as fetchChannelPermissionsDiscord, g as DiscordSendError, w as hasAnyGuildPermissionDiscord, x as fetchMemberGuildPermissionsDiscord } from "./.setup/send.shared-D4MioxW_.mjs";
3
+ import { i as setPresence, n as getPresence, r as presenceCacheSize, t as clearPresences } from "./.setup/presence-cache-CgutE4NN.mjs";
4
+ import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./.setup/directory-live-DUuPEWub.mjs";
5
+ import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchChannelInfoDiscord, D as fetchVoiceStatusDiscord, E as fetchRoleInfoDiscord, F as uploadEmojiDiscord, H as setChannelPermissionDiscord, I as uploadStickerDiscord, L as createChannelDiscord, M as resolveEventCoverImage, N as timeoutMemberDiscord, O as kickMemberDiscord, P as listGuildEmojisDiscord, R as deleteChannelDiscord, S as createScheduledEventDiscord, T as fetchMemberInfoDiscord, V as removeChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./.setup/send-Cbq-IVsS.mjs";
6
+ import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./.setup/send.outbound-CGhBhzjQ.mjs";
7
+ import { a as isAbortError, c as runDiscordTaskWithTimeout, i as DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, o as normalizeDiscordInboundWorkerTimeoutMs, r as DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, s as normalizeDiscordListenerTimeoutMs, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./.setup/timeouts-DTrUsJ_W.mjs";
8
+ import { c as readDiscordChannelMoveParams, i as requiredGuildPermissionForModerationAction, l as readDiscordParentIdParam, n as isDiscordModerationAction, o as readDiscordChannelCreateParams, r as readDiscordModerationCommand, s as readDiscordChannelEditParams, t as handleDiscordAction } from "./.setup/runtime-CI0UJqeS.mjs";
9
+ import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./.setup/send.components-BV6ucNpJ.mjs";
10
+ import { r as setDiscordRuntime } from "./.setup/runtime-DcBvHOm1.mjs";
11
+ import { t as resolveDiscordOutboundSessionRoute, x as discordMessageActions } from "./.setup/outbound-session-route-TFBPPkoz.mjs";
12
+ import { F as resolveThreadBindingMaxAgeExpiresAt, I as resolveThreadBindingMaxAgeMs, N as resolveThreadBindingIdleTimeoutMs, P as resolveThreadBindingInactivityExpiresAt, i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./.setup/thread-bindings.session-updates-C76plLS3.mjs";
13
+ import { t as resolveDiscordChannelAllowlist } from "./.setup/resolve-channels-DYc6-xgV.mjs";
14
+ import { t as resolveDiscordUserAllowlist } from "./.setup/resolve-users-BQT7XWF2.mjs";
15
+ import { c as resolveThreadBindingPersonaFromRecord, i as createNoopThreadBindingManager, n as getThreadBindingManager, s as resolveThreadBindingPersona, t as createThreadBindingManager } from "./.setup/thread-bindings.manager-DCDYksah.mjs";
16
+ import { a as autoBindSpawnedDiscordSubagent, c as listThreadBindingsForAccount, d as unbindThreadBindingsBySessionKeyAsync, f as resolveDiscordThreadBindingIdleTimeoutMs, l as reconcileAcpThreadBindingsOnStartup, m as resolveThreadBindingsEnabled, n as resolveThreadBindingIntroText, o as listThreadBindingsBySessionKey, p as resolveDiscordThreadBindingMaxAgeMs, r as resolveThreadBindingThreadName, s as listThreadBindingsBySessionKeyAsync, t as formatThreadBindingDurationLabel, u as unbindThreadBindingsBySessionKey } from "./.setup/thread-bindings-Dg7X_ZXP.mjs";
17
+ import { i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, s as resolveDiscordPrivilegedIntentsFromFlags, t as fetchDiscordApplicationId } from "./.setup/probe-DNge7OEP.mjs";
18
+ import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./.setup/audit-Dw_rAZIz.mjs";
19
+ import { S as createDiscordNativeCommand, a as waitForDiscordGatewayPluginRegistration, i as resolveDiscordGatewayIntents, k as registerDiscordListener, r as createDiscordGatewayPlugin, t as monitorDiscordProvider } from "./.setup/provider-BBDuE14w.mjs";
20
+ import { f as resolveDiscordReplyTarget, g as sanitizeDiscordThreadName } from "./.setup/transcripts-source-CGgOaWcu.mjs";
21
+ import { t as createDiscordMessageHandler } from "./.setup/message-handler-fL1j1NiR.mjs";
22
+ import "./.setup/threading-l0UfrE6x.mjs";
23
23
  export { DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, DiscordSendError, addRoleDiscord, allowListMatches, auditDiscordChannelPermissions, autoBindSpawnedDiscordSubagent, banMemberDiscord, clearGateways, clearPresences, collectDiscordAuditChannelIds, createChannelDiscord, createDiscordGatewayPlugin, createDiscordMessageHandler, createDiscordNativeCommand, createNoopThreadBindingManager, createScheduledEventDiscord, createThreadBindingManager, createThreadDiscord, deleteChannelDiscord, deleteMessageDiscord, discordMessageActions, editChannelDiscord, editDiscordComponentMessage, editMessageDiscord, fetchChannelInfoDiscord, fetchChannelPermissionsDiscord, fetchDiscordApplicationId, fetchDiscordApplicationSummary, fetchMemberGuildPermissionsDiscord, fetchMemberInfoDiscord, fetchMessageDiscord, fetchReactionsDiscord, fetchRoleInfoDiscord, fetchVoiceStatusDiscord, formatThreadBindingDurationLabel, getGateway, getPresence, getThreadBindingManager, handleDiscordAction, hasAllGuildPermissionsDiscord, hasAnyGuildPermissionDiscord, isAbortError, isDiscordGroupAllowedByPolicy, isDiscordModerationAction, kickMemberDiscord, listDiscordDirectoryGroupsLive, listDiscordDirectoryPeersLive, listGuildChannelsDiscord, listGuildEmojisDiscord, listPinsDiscord, listScheduledEventsDiscord, listThreadBindingsBySessionKey, listThreadBindingsBySessionKeyAsync, listThreadBindingsForAccount, listThreadsDiscord, monitorDiscordProvider, moveChannelDiscord, normalizeDiscordAllowList, normalizeDiscordInboundWorkerTimeoutMs, normalizeDiscordListenerTimeoutMs, normalizeDiscordSlug, parseApplicationIdFromToken, pinMessageDiscord, presenceCacheSize, probeDiscord, reactMessageDiscord, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, readMessagesDiscord, reconcileAcpThreadBindingsOnStartup, registerBuiltDiscordComponentMessage, registerDiscordListener, registerGateway, removeChannelPermissionDiscord, removeOwnReactionsDiscord, removeReactionDiscord, removeRoleDiscord, requiredGuildPermissionForModerationAction, resolveDiscordChannelAllowlist, resolveDiscordChannelConfig, resolveDiscordChannelConfigWithFallback, resolveDiscordCommandAuthorized, resolveDiscordGatewayIntents, resolveDiscordGuildEntry, resolveDiscordOutboundSessionRoute, resolveDiscordPrivilegedIntentsFromFlags, resolveDiscordReplyTarget, resolveDiscordShouldRequireMention, resolveDiscordThreadBindingIdleTimeoutMs, resolveDiscordThreadBindingMaxAgeMs, resolveDiscordUserAllowlist, resolveEventCoverImage, resolveGroupDmAllow, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingInactivityExpiresAt, resolveThreadBindingIntroText, resolveThreadBindingMaxAgeExpiresAt, resolveThreadBindingMaxAgeMs, resolveThreadBindingPersona, resolveThreadBindingPersonaFromRecord, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, runDiscordTaskWithTimeout, sanitizeDiscordThreadName, searchMessagesDiscord, sendDiscordComponentMessage, sendMessageDiscord, sendPollDiscord, sendStickerDiscord, sendTypingDiscord, sendVoiceMessageDiscord, sendWebhookMessageDiscord, setChannelPermissionDiscord, setDiscordRuntime, setPresence, setThreadBindingIdleTimeoutBySessionKey, setThreadBindingIdleTimeoutBySessionKeyAsync, setThreadBindingMaxAgeBySessionKey, setThreadBindingMaxAgeBySessionKeyAsync, shouldEmitDiscordReactionNotification, timeoutMemberDiscord, unbindThreadBindingsBySessionKey, unbindThreadBindingsBySessionKeyAsync, unpinMessageDiscord, unregisterGateway, uploadEmojiDiscord, uploadStickerDiscord, waitForDiscordGatewayPluginRegistration };
@@ -1 +1 @@
1
- export { r as setDiscordRuntime } from "./.setup/runtime-DgnVQ7zW.mjs";
1
+ export { r as setDiscordRuntime } from "./.setup/runtime-DcBvHOm1.mjs";
@@ -1 +1 @@
1
- export { t as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-config-contract-CIsH7R3B.mjs";
1
+ export { t as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-config-contract-BdbCvqnM.mjs";
@@ -1 +1 @@
1
- export { t as collectDiscordSecurityAuditFindings } from "./.setup/security-audit-BFT84Uny.mjs";
1
+ export { t as collectDiscordSecurityAuditFindings } from "./.setup/security-audit-CTwisG7c.mjs";
@@ -1 +1 @@
1
- export { t as collectUnsupportedSecretRefConfigCandidates, n as unsupportedSecretRefSurfacePatterns } from "./.setup/security-contract-DNyyjTZZ.mjs";
1
+ export { t as collectUnsupportedSecretRefConfigCandidates, n as unsupportedSecretRefSurfacePatterns } from "./.setup/security-contract-D-o0iWDk.mjs";
@@ -1 +1 @@
1
- export { t as normalizeExplicitDiscordSessionKey } from "./.setup/session-key-normalization-CCHGNSQw.mjs";
1
+ export { t as normalizeExplicitDiscordSessionKey } from "./.setup/session-key-normalization-Cfvze5hd.mjs";
@@ -1,12 +1,11 @@
1
1
  import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region extensions/discord/setup-entry.ts
3
+ // extensions/discord/setup-entry.ts
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/setup-plugin-api-DVpA_yqS.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/setup-plugin-api-B4J6wmL1.mjs", import.meta.url).href),
8
8
  exportName: "discordSetupPlugin"
9
9
  }
10
10
  });
11
- //#endregion
12
11
  export { setup_entry_default as default };
@@ -1 +1 @@
1
- export { t as discordSetupPlugin } from "./.setup/channel.setup-By7wNopw.mjs";
1
+ export { t as discordSetupPlugin } from "./.setup/channel.setup-DVe7Y3Jf.mjs";
@@ -1,5 +1,5 @@
1
- import { _ as setDiscordAudioOutputStatus, a as recoverDaveZeroTransition, c as createDiscordOpusPlaybackStream, d as decodeOpusStreamChunks, g as serializeDiscordAudioError, m as getDiscordAudioOutputStatus, n as analyzeVoiceReceiveError, p as DiscordAudioOutputStatus, r as enableDaveReceivePassthrough, s as DiscordOpusEncodeStream, u as createRealtimePcmToDiscordConverter } from "../../.setup/receive-recovery-CKvaG2Hf.mjs";
2
- import { t as resolveDiscordOutputAudioDelta } from "../../.setup/output-activity-uBpMSX75.mjs";
1
+ import { _ as setDiscordAudioOutputStatus, a as recoverDaveZeroTransition, c as createDiscordOpusPlaybackStream, d as decodeOpusStreamChunks, g as serializeDiscordAudioError, m as getDiscordAudioOutputStatus, n as analyzeVoiceReceiveError, p as DiscordAudioOutputStatus, r as enableDaveReceivePassthrough, s as DiscordOpusEncodeStream, u as createRealtimePcmToDiscordConverter } from "../../.setup/receive-recovery-C77CVdGM.mjs";
2
+ import { t as resolveDiscordOutputAudioDelta } from "../../.setup/output-activity-CDgs2s3O.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
  import { PassThrough, pipeline } from "node:stream";
@@ -7,13 +7,12 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { REALTIME_VOICE_AUDIO_FORMAT_PCM16_24KHZ } from "openclaw/plugin-sdk/realtime-voice-provider";
8
8
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
9
9
  import { createRealtimeVoiceOutputActivityTracker, isRealtimeVoiceAudioAudible } from "openclaw/plugin-sdk/realtime-voice";
10
- //#region extensions/discord/src/voice/sdk-runtime.ts
10
+ // extensions/discord/src/voice/sdk-runtime.ts
11
11
  let cachedDiscordVoiceSdk = null;
12
12
  function loadDiscordVoiceSdk() {
13
13
  return cachedDiscordVoiceSdk ||= createRequire(import.meta.url)("@discordjs/voice");
14
14
  }
15
- //#endregion
16
- //#region extensions/discord/src/voice/realtime-player.runtime.ts
15
+ // extensions/discord/src/voice/realtime-player.runtime.ts
17
16
  const DISCORD_REALTIME_PLAYBACK_IDLE_MS = 2e3;
18
17
  /** One physical player serves every speaker lane in the room. */
19
18
  var DiscordRealtimePlayer = class {
@@ -96,8 +95,7 @@ var DiscordRealtimePlayer = class {
96
95
  });
97
96
  }
98
97
  };
99
- //#endregion
100
- //#region extensions/discord/src/voice/realtime-output.runtime.ts
98
+ // extensions/discord/src/voice/realtime-output.runtime.ts
101
99
  const logger = createSubsystemLogger("discord/voice");
102
100
  const DISCORD_RAW_PCM_FRAME_BYTES = 3840;
103
101
  const DISCORD_REALTIME_OUTPUT_PREROLL_FRAMES = 25;
@@ -361,8 +359,7 @@ var DiscordRealtimeOutput = class {
361
359
  }, timeoutMs);
362
360
  }
363
361
  };
364
- //#endregion
365
- //#region extensions/discord/src/voice/continuous-output.runtime.ts
362
+ // extensions/discord/src/voice/continuous-output.runtime.ts
366
363
  /** A transferred endpoint is owned by one already-admitted provider generation.
367
364
  * No socket, response policy, credential, or speaker admission crosses this port. */
368
365
  var DiscordContinuousOutput = class {
@@ -478,8 +475,7 @@ var DiscordContinuousOutput = class {
478
475
  this.close();
479
476
  }
480
477
  };
481
- //#endregion
482
- //#region extensions/discord/src/voice/audio-worker.ts
478
+ // extensions/discord/src/voice/audio-worker.ts
483
479
  const PLAYBACK_READY_TIMEOUT_MS = 6e4;
484
480
  const MAX_CAPTURE_PACKETS = 1e3;
485
481
  const MAX_CAPTURE_BYTES = 1048576;
@@ -1002,8 +998,7 @@ var DiscordAudioWorker = class {
1002
998
  this.post({ type: "stopped" });
1003
999
  }
1004
1000
  };
1005
- //#endregion
1006
- //#region extensions/discord/src/voice/audio-worker.runtime.ts
1001
+ // extensions/discord/src/voice/audio-worker.runtime.ts
1007
1002
  const port = parentPort;
1008
1003
  if (!port) throw new Error("Discord audio runtime requires a worker MessagePort.");
1009
1004
  const media = new DiscordAudioWorker(workerData, (event) => {
@@ -1028,5 +1023,4 @@ port.on("close", () => {
1028
1023
  media.stop();
1029
1024
  });
1030
1025
  media.connect().catch(fail);
1031
- //#endregion
1032
1026
  export {};
@@ -1,6 +1,6 @@
1
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
- //#region extensions/discord/subagent-hooks-api.ts
3
- const loadDiscordSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-tBtaqWkD.mjs").then((n) => n.i));
2
+ // extensions/discord/subagent-hooks-api.ts
3
+ const loadDiscordSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-mQbDkvuD.mjs").then((n) => n.i));
4
4
  function registerDiscordSubagentHooks(api) {
5
5
  api.on("subagent_ended", async (event) => {
6
6
  const { handleDiscordSubagentEnded } = await loadDiscordSubagentHooksModule();
@@ -11,5 +11,4 @@ function registerDiscordSubagentHooks(api) {
11
11
  return await handleDiscordSubagentDeliveryTargetAsync(event);
12
12
  });
13
13
  }
14
- //#endregion
15
14
  export { registerDiscordSubagentHooks };
@@ -1 +1 @@
1
- export { t as defaultTopLevelPlacement } from "./.setup/thread-binding-api-BDZJD4na.mjs";
1
+ export { t as defaultTopLevelPlacement } from "./.setup/thread-binding-api-Drd4Zu-5.mjs";
@@ -1,7 +1,6 @@
1
- import { n as discordVoiceTranscriptsSourceProvider } from "./.setup/transcripts-source-fRvFsZng.mjs";
2
- //#region extensions/discord/transcripts-source-api.ts
1
+ import { n as discordVoiceTranscriptsSourceProvider } from "./.setup/transcripts-source-CGgOaWcu.mjs";
2
+ // extensions/discord/transcripts-source-api.ts
3
3
  function registerDiscordTranscriptSourceProvider(api) {
4
4
  api.registerTranscriptSourceProvider(discordVoiceTranscriptsSourceProvider);
5
5
  }
6
- //#endregion
7
6
  export { registerDiscordTranscriptSourceProvider };
@@ -2188,6 +2188,7 @@ class ZodArray extends ZodType {
2188
2188
  exact: true,
2189
2189
  message: def.exactLength.message,
2190
2190
  });
2191
+ if (tooBig) return INVALID;
2191
2192
  status.dirty();
2192
2193
  }
2193
2194
  }
@@ -2214,7 +2215,7 @@ class ZodArray extends ZodType {
2214
2215
  exact: false,
2215
2216
  message: def.maxLength.message,
2216
2217
  });
2217
- status.dirty();
2218
+ return INVALID;
2218
2219
  }
2219
2220
  }
2220
2221
  if (ctx.common.async) {
@@ -3236,7 +3237,7 @@ class ZodSet extends ZodType {
3236
3237
  exact: false,
3237
3238
  message: def.maxSize.message,
3238
3239
  });
3239
- status.dirty();
3240
+ return INVALID;
3240
3241
  }
3241
3242
  }
3242
3243
  const valueType = this._def.valueType;
@@ -2184,6 +2184,7 @@ class ZodArray extends ZodType {
2184
2184
  exact: true,
2185
2185
  message: def.exactLength.message,
2186
2186
  });
2187
+ if (tooBig) return INVALID;
2187
2188
  status.dirty();
2188
2189
  }
2189
2190
  }
@@ -2210,7 +2211,7 @@ class ZodArray extends ZodType {
2210
2211
  exact: false,
2211
2212
  message: def.maxLength.message,
2212
2213
  });
2213
- status.dirty();
2214
+ return INVALID;
2214
2215
  }
2215
2216
  }
2216
2217
  if (ctx.common.async) {
@@ -3232,7 +3233,7 @@ class ZodSet extends ZodType {
3232
3233
  exact: false,
3233
3234
  message: def.maxSize.message,
3234
3235
  });
3235
- status.dirty();
3236
+ return INVALID;
3236
3237
  }
3237
3238
  }
3238
3239
  const valueType = this._def.valueType;
@@ -86,6 +86,24 @@ Using [benchmark-http2.js](https://github.com/nodejs/undici/blob/main/benchmarks
86
86
 
87
87
  Node.js includes a built-in `fetch()` implementation powered by undici starting from Node.js v18. However, there are important differences between using the built-in fetch and installing undici as a separate module.
88
88
 
89
+ ### WebAssembly requirement
90
+
91
+ Undici's HTTP/1 parser requires WebAssembly. There is no alternative parser when
92
+ WebAssembly is unavailable, for example in Node.js configurations where
93
+ `--jitless` disables it. The existence of `fetch` does not imply that it can make
94
+ HTTP/1 requests in that environment.
95
+
96
+ When the HTTP/1 parser is needed without WebAssembly, Client and dispatcher
97
+ requests fail with an `Error` whose code is `ERR_WEBASSEMBLY_NOT_SUPPORTED`.
98
+ `fetch` rejects with a `TypeError` carrying that error in `error.cause`. Importing
99
+ Undici, accessing `fetch`, and using `Headers`, `FormData`, `Request`, or `Response`
100
+ do not themselves require the HTTP/1 parser.
101
+
102
+ The error is defined locally in Undici and does not depend on Node.js providing
103
+ that error code. For built-in fetch, this behavior depends on the bundled Undici
104
+ version. Node.js receives upstream fixes through its normal vendored Undici
105
+ update, rather than changes to the generated bundle alone.
106
+
89
107
  ### Built-in Fetch (Node.js v18+)
90
108
 
91
109
  Node.js's built-in fetch is powered by a bundled version of undici:
@@ -773,14 +791,18 @@ and `undici.Agent`) which will enable the family autoselection algorithm when es
773
791
 
774
792
  ## Collaborators
775
793
 
776
- * [__Daniele Belardi__](https://github.com/dnlup), <https://www.npmjs.com/~dnlup>
777
- * [__Ethan Arrowood__](https://github.com/ethan-arrowood), <https://www.npmjs.com/~ethan_arrowood>
794
+ * [__Aras Abbasi__](https://github.com/Uzlopak)
795
+ * [__Carlos Fuentes__](https://github.com/metcoder95), <https://www.npmjs.com/~metcoder95>
796
+ * [__Ethan Arrowood__](https://github.com/Ethan-Arrowood), <https://www.npmjs.com/~ethan_arrowood>
778
797
  * [__Matteo Collina__](https://github.com/mcollina), <https://www.npmjs.com/~matteo.collina>
779
798
  * [__Matthew Aitken__](https://github.com/KhafraDev), <https://www.npmjs.com/~khaf>
799
+ * [__Mert Can Altin__](https://github.com/mertcanaltin), <https://www.npmjs.com/~mertcanaltin>
780
800
  * [__Robert Nagy__](https://github.com/ronag), <https://www.npmjs.com/~ronag>
781
- * [__Szymon Marczak__](https://github.com/szmarczak), <https://www.npmjs.com/~szmarczak>
801
+ * [__Trivikram Kamat__](https://github.com/trivikr), <https://www.npmjs.com/~trivikr>
802
+ * [__tsctx__](https://github.com/tsctx)
782
803
 
783
804
  ## Past Collaborators
805
+ * [__Szymon Marczak__](https://github.com/szmarczak), <https://www.npmjs.com/~szmarczak>
784
806
  * [__Tomas Della Vedova__](https://github.com/delvedor), <https://www.npmjs.com/~delvedor>
785
807
 
786
808
  ### Releasers
@@ -42,7 +42,8 @@ added: v7.0.0
42
42
  Stores cached responses in memory. The store enforces upper bounds on the total
43
43
  number of responses, the total size of all responses, and the size of any single
44
44
  response. When a limit is exceeded, the store evicts approximately half of its
45
- entries and emits a [`'maxSizeExceeded'`](#event-maxsizeexceeded) event.
45
+ entries, least recently used first, and emits a
46
+ [`'maxSizeExceeded'`](#event-maxsizeexceeded) event.
46
47
 
47
48
  ```mjs
48
49
  import { interceptors, cacheStores, Agent, setGlobalDispatcher } from 'undici'
@@ -163,7 +164,9 @@ added: v7.0.0
163
164
  -->
164
165
 
165
166
  Stores cached responses in a SQLite database using the [`node:sqlite`][] API.
166
- The constructor throws when [`node:sqlite`][] is not available.
167
+ The constructor throws when [`node:sqlite`][] is not available. Response bodies
168
+ larger than `compressThreshold` are stored compressed with zstd and
169
+ decompressed when read back, saving database space.
167
170
 
168
171
  ```mjs
169
172
  import { interceptors, cacheStores, Agent, setGlobalDispatcher } from 'undici'
@@ -189,9 +192,16 @@ added: v7.0.0
189
192
  * `maxEntrySize` {number} The maximum size, in bytes, of a single response
190
193
  body. Responses whose body exceeds this value are not cached. Must not
191
194
  exceed `2000000000` (2 GB). **Default:** `2000000000` (2 GB).
195
+ * `compressThreshold` {number} The size, in bytes, above which a response
196
+ body is stored compressed with zstd. Responses with an easily compressible
197
+ Content-Type (e.g. json, xml, plain text) are compressed regardless of
198
+ size. Requires a Node version with zstd
199
+ support (22.19+); when unavailable, bodies are stored uncompressed.
200
+ **Default:** `1048576` (1 MiB).
192
201
 
193
- `maxCount` and `maxEntrySize` must be non-negative integers; a `TypeError` is
194
- thrown otherwise, or if `maxEntrySize` is greater than 2 GB.
202
+ `maxCount`, `maxEntrySize`, and `compressThreshold` must be non-negative
203
+ integers; a `TypeError` is thrown otherwise, or if `maxEntrySize` is greater
204
+ than 2 GB.
195
205
 
196
206
  ### `sqliteCacheStore.close()`
197
207
 
@@ -225,7 +235,8 @@ added: v7.0.0
225
235
  See [`GetResult`](#getresult).
226
236
 
227
237
  Looks up a cached response for `key`, comparing the request method and every
228
- header named in the stored `vary` map.
238
+ header named in the stored `vary` map. A body that was stored compressed is
239
+ decompressed before being returned.
229
240
 
230
241
  ### `sqliteCacheStore.set(key, value)`
231
242
 
@@ -240,9 +251,11 @@ added: v7.0.0
240
251
  * Returns: {undefined}
241
252
 
242
253
  Writes a response into the database directly, without going through a stream. If
243
- the body exceeds `maxEntrySize`, nothing is stored. When an entry already exists
244
- for `key` it is overwritten; otherwise a new row is inserted and old entries are
245
- pruned to honour `maxCount`. This method is used internally by
254
+ the body exceeds `maxEntrySize`, nothing is stored. A body larger than
255
+ `compressThreshold`, or with an easily compressible Content-Type (e.g. json,
256
+ xml, plain text), is compressed with zstd before being written. When an entry
257
+ already exists for `key` it is overwritten; otherwise a new row is inserted and
258
+ old entries are pruned to honour `maxCount`. This method is used internally by
246
259
  [`sqliteCacheStore.createWriteStream()`](#sqlitecachestorecreatewritestreamkey-value).
247
260
 
248
261
  ### `sqliteCacheStore.createWriteStream(key, value)`
@@ -260,7 +273,9 @@ added: v7.0.0
260
273
 
261
274
  Returns a {Writable} stream used to write the response body into the store. When
262
275
  the stream finishes, the buffered body is committed via
263
- [`sqliteCacheStore.set()`](#sqlitecachestoresetkey-value). If the body exceeds
276
+ [`sqliteCacheStore.set()`](#sqlitecachestoresetkey-value), where bodies larger
277
+ than `compressThreshold` or with an easily compressible Content-Type are
278
+ compressed with zstd. If the body exceeds
264
279
  `maxEntrySize`, the stream is destroyed and nothing is stored.
265
280
 
266
281
  ### `sqliteCacheStore.delete(key)`
@@ -116,8 +116,8 @@ added: v1.0.0
116
116
  * `maxConcurrentStreams` {number} _Deprecated: use h2Options.useH2c instead_ The maximum number of concurrent HTTP/2
117
117
  streams for a single session. Once h2 is negotiated this — not `pipelining`,
118
118
  which is HTTP/1.1 only — is the ceiling used to dispatch in-flight requests.
119
- It may be overridden by the server's `SETTINGS_MAX_CONCURRENT_STREAMS`
120
- frame. **Default:** `100`.
119
+ The server's `SETTINGS_MAX_CONCURRENT_STREAMS` can lower this limit, but
120
+ not raise it. **Default:** `100`.
121
121
  * `connectionWindowSize` {number} _Deprecated: use h2Options.connectionWindowSize instead_ The HTTP/2 connection-level flow-control
122
122
  window size set via `ClientHttp2Session.setLocalWindowSize()`. Must be a
123
123
  positive integer. **Default:** `524288`.
@@ -130,8 +130,8 @@ added: v1.0.0
130
130
  * `maxConcurrentStreams` {number} The maximum number of concurrent HTTP/2
131
131
  streams for a single session. Once h2 is negotiated this — not `pipelining`,
132
132
  which is HTTP/1.1 only — is the ceiling used to dispatch in-flight requests.
133
- It may be overridden by the server's `SETTINGS_MAX_CONCURRENT_STREAMS`
134
- frame. **Default:** `100`.
133
+ The server's `SETTINGS_MAX_CONCURRENT_STREAMS` can lower this limit, but
134
+ not raise it. **Default:** `100`.
135
135
  * `connectionWindowSize` {number} The HTTP/2 connection-level flow-control
136
136
  window size set via `ClientHttp2Session.setLocalWindowSize()`. Must be a
137
137
  positive integer. **Default:** `524288`.
@@ -148,8 +148,13 @@ added: v1.0.0
148
148
  payloads, and decompressed (`permessage-deflate`) messages. Set to `0` to
149
149
  disable the limit. **Default:** `134217728`.
150
150
  * `eventSource` {Object} (optional) EventSource-specific configuration.
151
- * `maxEventSize` {number} The maximum allowed event size, in bytes, for
152
- EventSource messages. Set to `0` to disable the limit.
151
+ * `maxEventSize` {number} The maximum total bytes of data and metadata
152
+ field values retained for a pending EventSource event. Each unfinished
153
+ line is separately limited to this value plus seven syntax bytes, before
154
+ its line ending arrives. The number of `data:` lines per event and input
155
+ chunks buffered for an unfinished line are each limited to
156
+ `min(131072, max(1024, floor(maxEventSize / 128)))` to bound object overhead.
157
+ Set to `0` to disable these limits.
153
158
  **Default:** `buffer.kStringMaxLength`.
154
159
  * Returns: {Client}
155
160
 
@@ -209,6 +209,9 @@ added: v4.0.0
209
209
  * `path` {string} The request path.
210
210
  * `method` {string} The HTTP method, e.g. `'GET'` or `'POST'`.
211
211
  * `body` {string|Buffer|Uint8Array|Readable|FormData|null} The request body.
212
+ Undici's network clients require a `FormData` body created by the same
213
+ undici package instance. A body from another source, including Node.js's
214
+ built-in `FormData`, is rejected with an `InvalidArgumentError`.
212
215
  **Default:** `null`.
213
216
  * `headers` {UndiciHeaders} Request headers. **Default:** `null`.
214
217
  * `query` {Object} Query string parameters embedded into the request URL. Both
@@ -18,7 +18,7 @@ if (err instanceof errors.ConnectTimeoutError) {
18
18
  }
19
19
  ```
20
20
 
21
- All errors, except [`HTTPParserError`][], extend [`UndiciError`][]. Each error
21
+ All errors, except [`HTTPParserError`][] and `WebAssemblyNotSupportedError`, extend [`UndiciError`][]. Each error
22
22
  carries a stable `code` string (for example `UND_ERR_CONNECT_TIMEOUT`) and a
23
23
  `name`.
24
24
 
@@ -32,6 +32,37 @@ if (err.code === 'UND_ERR_CONNECT_TIMEOUT') {
32
32
  }
33
33
  ```
34
34
 
35
+ ## Timeout-related errors
36
+
37
+ The timeout errors below are controlled by dispatcher/client options:
38
+
39
+ | Error code | When it is thrown | Related option |
40
+ | ---------- | ----------------- | -------------- |
41
+ | `UND_ERR_CONNECT_TIMEOUT` | A connection could not be established before the connection timeout elapsed. | [`connect.timeout`](Client.md) |
42
+ | `UND_ERR_HEADERS_TIMEOUT` | The full response headers were not received before the headers timeout elapsed. | [`headersTimeout`](Client.md) |
43
+ | `UND_ERR_BODY_TIMEOUT` | While reading the response body, no new data arrived before the body timeout elapsed. | [`bodyTimeout`](Client.md) |
44
+ | `UND_ERR_SOCKET` | A generic socket-level failure happened. | Inspect `error.socket` for connection details. |
45
+
46
+ ### Configuring timeouts for `fetch`
47
+
48
+ If you are using `fetch` (including Node.js built-in `fetch`), configure timeouts
49
+ through the global dispatcher:
50
+
51
+ ```js
52
+ import { Agent, setGlobalDispatcher, fetch } from 'undici'
53
+
54
+ setGlobalDispatcher(new Agent({
55
+ connect: { timeout: 10_000 }, // connection phase
56
+ headersTimeout: 15_000, // wait for response headers
57
+ bodyTimeout: 30_000 // wait between response body chunks
58
+ }))
59
+
60
+ await fetch('https://example.com/data')
61
+ ```
62
+
63
+ You can inspect timeout error codes from `error.code` or (for wrapped fetch
64
+ errors) from `error.cause?.code`.
65
+
35
66
  ## Class: `UndiciError`
36
67
 
37
68
  <!-- YAML
@@ -52,6 +83,35 @@ on a well-known symbol rather than the prototype chain.
52
83
  * `name` {string} Always `'UndiciError'`.
53
84
  * `code` {string} Always `'UND_ERR'`.
54
85
 
86
+ ## Class: `WebAssemblyNotSupportedError`
87
+
88
+ * Extends: {Error}
89
+
90
+ WebAssembly is unavailable when Undici initializes its HTTP/1 parser. Undici does
91
+ not provide an alternative parser for environments without WebAssembly, including
92
+ Node.js configurations where `--jitless` disables it. The check is performed when
93
+ the parser is needed, not when importing Undici or accessing `fetch`.
94
+
95
+ * `name` {string} Always `'Error'`.
96
+ * `code` {string} Always `'ERR_WEBASSEMBLY_NOT_SUPPORTED'`.
97
+ * `message` {string} By default `'WebAssembly is not supported in this environment, but is required for HTTP/1 parsing'`.
98
+
99
+ Client and dispatcher requests report this error directly. `fetch` rejects with
100
+ a `TypeError` whose `cause` is this error:
101
+
102
+ ```js
103
+ try {
104
+ await fetch('http://localhost:3000')
105
+ } catch (error) {
106
+ if (error.cause?.code === 'ERR_WEBASSEMBLY_NOT_SUPPORTED') {
107
+ // HTTP/1 parsing requires WebAssembly in this environment.
108
+ }
109
+ }
110
+ ```
111
+
112
+ `Headers`, `FormData`, `Request`, `Response`, and other operations that do not need
113
+ the HTTP/1 parser remain usable without WebAssembly.
114
+
55
115
  ## Class: `ConnectTimeoutError`
56
116
 
57
117
  <!-- YAML
@@ -436,6 +496,7 @@ The response returned an error status code. This is raised, for example, when th
436
496
  * `code` {string} Always `'UND_ERR_RESPONSE'`.
437
497
  * `statusCode` {number} The HTTP status code of the response.
438
498
  * `body` {Object|string|null} The response body.
499
+ * `bodyTruncated` {boolean} Whether `body` was truncated by a configured limit.
439
500
  * `headers` {Object|string[]|null} The response headers.
440
501
 
441
502
  ### `new ResponseError(message, code, options)`
@@ -445,6 +506,7 @@ The response returned an error status code. This is raised, for example, when th
445
506
  * `options` {Object}
446
507
  * `headers` {Object|string[]|null} The response headers. (optional)
447
508
  * `body` {Object|string|null} The response body. (optional)
509
+ * `bodyTruncated` {boolean} Whether `body` was truncated. **Default:** `false`.
448
510
 
449
511
  ## Class: `ProxyConnectionError`
450
512
 
@@ -512,6 +574,19 @@ The maximum number of allowed origins has been reached.
512
574
  * `name` {string} Always `'MaxOriginsReachedError'`.
513
575
  * `code` {string} Always `'UND_ERR_MAX_ORIGINS_REACHED'`.
514
576
 
577
+ ## Class: `MaxRedirectsError`
578
+
579
+ <!-- YAML
580
+ added: v8.12.0
581
+ -->
582
+
583
+ * Extends: {UndiciError}
584
+
585
+ The maximum number of redirects has been reached.
586
+
587
+ * `name` {string} Always `'MaxRedirectsError'`.
588
+ * `code` {string} Always `'UND_ERR_REDIRECT_MAX'`.
589
+
515
590
  ## Class: `Socks5ProxyError`
516
591
 
517
592
  <!-- YAML