@openclaw/discord 2026.9.1 → 2026.9.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 (138) hide show
  1. package/dist/action-runtime-api.js +1 -1
  2. package/dist/{activities-api-E-segZn6.js → activities-api-CTcGq3Hf.js} +4 -4
  3. package/dist/activities-api.js +1 -1
  4. package/dist/{allow-list-C2JuH-R0.js → allow-list-DBTtR2dz.js} +3 -29
  5. package/dist/api.js +12 -12
  6. package/dist/{approval-handler.runtime-CW5k3mSa.js → approval-handler.runtime-DUSe5fyH.js} +5 -5
  7. package/dist/{audit-B9rydv5a.js → audit-DpPfwoJM.js} +4 -4
  8. package/dist/{channel-D93LnbTE.js → channel-BHajPgwR.js} +16 -16
  9. package/dist/{channel-actions.runtime-DMFv4doE.js → channel-actions.runtime-DS8pXo0S.js} +29 -32
  10. package/dist/channel-plugin-api.js +1 -1
  11. package/dist/{channel.setup-DTL7kPOM.js → channel.setup-BWmMe1tT.js} +3 -3
  12. package/dist/command-owners-D78sAoOz.js +10 -0
  13. package/dist/{components-DmXYIQ26.js → components-BimX47Mq.js} +1 -1
  14. package/dist/{conversation-binding-route-24afmvEC.js → conversation-binding-route-DuR5NGIx.js} +1 -1
  15. package/dist/{directory-config-BD4YL7wT.js → directory-config-CD2v2Szs.js} +1 -1
  16. package/dist/directory-contract-api.js +1 -1
  17. package/dist/{directory-live-BrFVc1Ds.js → directory-live-DaJzWJ2N.js} +2 -2
  18. package/dist/{doctor-BUB41_lr.js → doctor-D4HH1inA.js} +6 -3
  19. package/dist/doctor-contract-api.js +28 -26
  20. package/dist/{handle-action.guild-admin-B0egstYq.js → handle-action.guild-admin-4We6wWQU.js} +6 -3
  21. package/dist/index.js +1 -1
  22. package/dist/{ingress-identity-BCzfPPYM.js → ingress-identity-XNmW-mZS.js} +1 -1
  23. package/dist/{message-handler-Qdw9c0j4.js → message-handler-DhgBabyU.js} +52 -65
  24. package/dist/{message-handler.preflight-Dxi2yBfR.js → message-handler.preflight-oZ7dQCd0.js} +12 -12
  25. package/dist/{message-handler.process-BYDjtxZJ.js → message-handler.process-BzCYf1pa.js} +14 -14
  26. package/dist/{message-text-BRVqYm-t.js → message-text-DK4NnBg-.js} +1 -1
  27. package/dist/{outbound-adapter-DEhthWTk.js → outbound-adapter-CtggmGh9.js} +6 -6
  28. package/dist/{outbound-components-DehyxvA4.js → outbound-components-Dn8SJWMS.js} +3 -3
  29. package/dist/{outbound-session-route-BFGRF9fE.js → outbound-session-route-Q_HEusBQ.js} +5 -6
  30. package/dist/{owner-access-yc1sX7Gx.js → owner-access-Cp8r6Ipf.js} +3 -2
  31. package/dist/{pluralkit-XmmAHoV6.js → pluralkit-BY75YcK0.js} +1 -1
  32. package/dist/{provider-session.runtime-BA2BPyZ4.js → provider-session.runtime-BL2lHBH7.js} +3 -3
  33. package/dist/{provider-DuDtKbF8.js → provider-uKmmrDM4.js} +28 -28
  34. package/dist/provider.runtime-C-IkWF2w.js +2 -0
  35. package/dist/{realtime-session.runtime-DgSbX6ay.js → realtime-session.runtime-CGYm1t_0.js} +705 -295
  36. package/dist/{resolve-allowlist-common-BJ5UZNNT.js → resolve-allowlist-common-sKIKy-cF.js} +1 -1
  37. package/dist/{resolve-channels-CYseD5Uw.js → resolve-channels-CoiMlWy0.js} +3 -3
  38. package/dist/{resolve-users-DrmhDrqm.js → resolve-users-DJpiokfW.js} +2 -2
  39. package/dist/{retry-BNCxiyyR.js → retry-DQt1zDgH.js} +238 -184
  40. package/dist/{runtime-DB7Fb6AU.js → runtime-BHsdEdr5.js} +1 -1
  41. package/dist/{runtime-BbWNtfyq.js → runtime-Ghtfh5ZA.js} +32 -24
  42. package/dist/runtime-api.js +18 -18
  43. package/dist/{send-BnTEIeLE.js → send-CZeWKUiA.js} +3 -3
  44. package/dist/{send.components-BWVEcjRP.js → send.components-BG5IDABj.js} +4 -4
  45. package/dist/{send.outbound-b5xwHTlL.js → send.outbound-DHuFUL6W.js} +10 -44
  46. package/dist/{send.shared-5vxBTagO.js → send.shared-B0n_fWzu.js} +62 -141
  47. package/dist/{sender-identity-Dt0imZyY.js → sender-identity-B8Ncfi63.js} +1 -1
  48. package/dist/setup-plugin-api.js +1 -1
  49. package/dist/{shared-BSJWHEMA.js → shared-C3dKun_X.js} +6 -3
  50. package/dist/{subagent-hooks-IzQKX4RQ.js → subagent-hooks-ZoQXEI1E.js} +2 -2
  51. package/dist/subagent-hooks-api.js +1 -1
  52. package/dist/{system-events-BOiDS8b3.js → system-events-DFF_awl7.js} +2 -2
  53. package/dist/{target-resolver-BVI8xSSC.js → target-resolver-DLtHDwMK.js} +2 -2
  54. package/dist/targets-BObRyaKX.js +3 -0
  55. package/dist/{thread-bindings-D7mcaXQC.js → thread-bindings-DKvsNjQR.js} +5 -5
  56. package/dist/{thread-bindings.manager-B1oySiVc.js → thread-bindings.manager-pbbRT5gb.js} +5 -5
  57. package/dist/{thread-bindings.session-updates-CC7HoQvt.js → thread-bindings.session-updates-t6jeFB1-.js} +1 -1
  58. package/dist/{thread-bindings.state-D8OMdk4O.js → thread-bindings.state-DtgOqsbX.js} +34 -1
  59. package/dist/{threading-OQnL-0Zx.js → threading-BCx49X-6.js} +3 -3
  60. package/dist/{transcripts-source-D8lH7AkN.js → transcripts-source-Dc6Nnli5.js} +48 -5
  61. package/dist/transcripts-source-api.js +1 -1
  62. package/dist/{typing-C9q0AQMb.js → typing-CuopV-Hi.js} +1 -1
  63. package/dist/{voice-runtime-Dfhjh1tV.js → voice-runtime-BQnILUbG.js} +82 -35
  64. package/node_modules/@discordjs/voice/node_modules/@types/node/README.md +1 -1
  65. package/node_modules/@discordjs/voice/node_modules/@types/node/buffer.buffer.d.ts +5 -5
  66. package/node_modules/@discordjs/voice/node_modules/@types/node/crypto.d.ts +2 -2
  67. package/node_modules/@discordjs/voice/node_modules/@types/node/http.d.ts +16 -0
  68. package/node_modules/@discordjs/voice/node_modules/@types/node/http2.d.ts +10 -2
  69. package/node_modules/@discordjs/voice/node_modules/@types/node/package.json +2 -2
  70. package/node_modules/@discordjs/voice/node_modules/@types/node/process.d.ts +52 -0
  71. package/node_modules/@discordjs/voice/node_modules/@types/node/quic.d.ts +210 -28
  72. package/node_modules/@discordjs/voice/node_modules/@types/node/sqlite.d.ts +6 -2
  73. package/node_modules/@discordjs/voice/node_modules/@types/node/test.d.ts +36 -0
  74. package/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
  75. package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
  76. package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
  77. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
  78. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  79. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  80. package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
  81. package/node_modules/typebox/build/system/memory/create.mjs +3 -4
  82. package/node_modules/typebox/build/system/memory/discard.mjs +2 -2
  83. package/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
  84. package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
  85. package/node_modules/typebox/build/system/memory/update.mjs +3 -2
  86. package/node_modules/typebox/package.json +1 -1
  87. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  88. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  89. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  90. package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  91. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  92. package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  93. package/node_modules/undici/lib/core/symbols.js +2 -0
  94. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  95. package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  96. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  97. package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  98. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  99. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  100. package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  101. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  102. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  103. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  104. package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  105. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  106. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  107. package/node_modules/undici/lib/handler/cache-handler.js +29 -5
  108. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  109. package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  110. package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  111. package/node_modules/undici/lib/handler/retry-handler.js +148 -30
  112. package/node_modules/undici/lib/interceptor/cache.js +65 -12
  113. package/node_modules/undici/lib/interceptor/decompress.js +115 -13
  114. package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  115. package/node_modules/undici/lib/interceptor/dns.js +7 -0
  116. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  117. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  118. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  119. package/node_modules/undici/lib/util/cache.js +45 -3
  120. package/node_modules/undici/lib/web/cookies/parse.js +150 -147
  121. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  122. package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  123. package/node_modules/undici/lib/web/fetch/index.js +6 -0
  124. package/node_modules/undici/lib/web/fetch/request.js +2 -3
  125. package/node_modules/undici/lib/web/fetch/util.js +6 -1
  126. package/node_modules/undici/lib/web/webidl/index.js +3 -3
  127. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  128. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  129. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  130. package/node_modules/undici/package.json +3 -3
  131. package/node_modules/undici/types/client.d.ts +10 -0
  132. package/node_modules/undici/types/interceptors.d.ts +2 -0
  133. package/node_modules/undici/types/mock-agent.d.ts +11 -10
  134. package/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -0
  135. package/openclaw.plugin.json +1 -2
  136. package/package.json +6 -6
  137. package/dist/provider.runtime-Db8YwZBv.js +0 -2
  138. package/dist/targets-DbxVbq8k.js +0 -3
@@ -34,9 +34,9 @@ class WebSocketStream {
34
34
  /** @type {ReadableStreamDefaultController} */
35
35
  #readableStreamController
36
36
 
37
- // Each WebSocketStream object has an associated writable stream , which is a WritableStream .
38
- /** @type {WritableStream} */
39
- #writableStream
37
+ // Retain the controller so the writable stream can be errored while locked.
38
+ /** @type {WritableStreamDefaultController} */
39
+ #writableStreamController
40
40
 
41
41
  // Each WebSocketStream object has an associated boolean handshake aborted , which is initially false.
42
42
  #handshakeAborted = false
@@ -300,6 +300,9 @@ class WebSocketStream {
300
300
  // 12. Let writable be a new WritableStream .
301
301
  // 13. Set up writable with writeAlgorithm , closeAlgorithm , and abortAlgorithm .
302
302
  const writable = new WritableStream({
303
+ start: (controller) => {
304
+ this.#writableStreamController = controller
305
+ },
303
306
  write: (chunk) => this.#write(chunk),
304
307
  close: () => closeWebSocketConnection(this.#handler, null, null),
305
308
  abort: (reason) => this.#closeUsingReason(reason)
@@ -308,9 +311,6 @@ class WebSocketStream {
308
311
  // Set stream ’s readable stream to readable .
309
312
  this.#readableStream = readable
310
313
 
311
- // Set stream ’s writable stream to writable .
312
- this.#writableStream = writable
313
-
314
314
  // Resolve stream ’s opened promise with WebSocketOpenInfo «[ " extensions " → extensions , " protocol " → protocol , " readable " → readable , " writable " → writable ]».
315
315
  this.#openedPromise.resolve({
316
316
  extensions,
@@ -396,9 +396,7 @@ class WebSocketStream {
396
396
  readableStreamClose(this.#readableStreamController)
397
397
 
398
398
  // 6.2. Error stream ’s writable stream with an " InvalidStateError " DOMException indicating that a closed WebSocketStream cannot be written to.
399
- if (!this.#writableStream.locked) {
400
- this.#writableStream.abort(new DOMException('A closed WebSocketStream cannot be written to', 'InvalidStateError'))
401
- }
399
+ this.#writableStreamController.error(new DOMException('A closed WebSocketStream cannot be written to', 'InvalidStateError'))
402
400
 
403
401
  // 6.3. Resolve stream ’s closed promise with WebSocketCloseInfo «[ " closeCode " → code , " reason " → reason ]».
404
402
  this.#closedPromise.resolve({
@@ -415,7 +413,7 @@ class WebSocketStream {
415
413
  this.#readableStreamController?.error(error)
416
414
 
417
415
  // 7.3. Error stream ’s writable stream with error .
418
- this.#writableStream?.abort(error)
416
+ this.#writableStreamController?.error(error)
419
417
 
420
418
  // 7.4. Reject stream ’s closed promise with error .
421
419
  this.#closedPromise.reject(error)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici",
3
- "version": "8.10.0",
3
+ "version": "8.10.2",
4
4
  "description": "An HTTP/1.1 client, written from scratch for Node.js",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -97,7 +97,7 @@
97
97
  "test:websocket:autobahn": "node test/autobahn/client.js",
98
98
  "test:websocket:autobahn:report": "node test/autobahn/report.js",
99
99
  "test:wpt:setup": "node test/web-platform-tests/wpt-runner.mjs setup",
100
- "test:wpt": "npm run test:wpt:setup && node test/web-platform-tests/wpt-runner.mjs run /fetch /mimesniff /websockets /serviceWorkers /eventsource",
100
+ "test:wpt": "npm run test:wpt:setup && node test/web-platform-tests/wpt-runner.mjs run /fetch /mimesniff /xhr /websockets /eventsource",
101
101
  "test:cache-tests": "node test/cache-interceptor/cache-tests.mjs --ci",
102
102
  "coverage": "npm run coverage:clean && cross-env NODE_V8_COVERAGE=./coverage/tmp npm run test:javascript && npm run coverage:report",
103
103
  "coverage:ci": "npm run coverage:clean && cross-env NODE_V8_COVERAGE=./coverage/tmp npm run test:javascript && npm run coverage:report:ci",
@@ -109,7 +109,7 @@
109
109
  "prepare": "husky && node ./scripts/platform-shell.js"
110
110
  },
111
111
  "devDependencies": {
112
- "@fastify/busboy": "3.2.0",
112
+ "@fastify/busboy": "3.2.2",
113
113
  "@matteo.collina/tspl": "^0.2.0",
114
114
  "@metcoder95/https-pem": "^1.0.0",
115
115
  "@sinonjs/fake-timers": "^12.0.0",
@@ -80,6 +80,8 @@ export declare namespace Client {
80
80
  maxResponseSize?: number;
81
81
  /** WebSocket-specific options */
82
82
  webSocket?: Client.WebSocketOptions;
83
+ /** EventSource-specific options */
84
+ eventSource?: Client.EventSourceOptions;
83
85
  /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
84
86
  autoSelectFamily?: boolean;
85
87
  /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
@@ -169,6 +171,14 @@ export declare namespace Client {
169
171
  */
170
172
  settings?: Omit<SessionOptions['settings'], 'enablePush' | 'maxConcurrentStreams' | 'enableConnectProtocol'>
171
173
  }
174
+ export interface EventSourceOptions {
175
+ /**
176
+ * Maximum allowed event size in bytes for EventSource messages.
177
+ * Set to 0 to disable the limit.
178
+ * @default buffer.kStringMaxLength
179
+ */
180
+ maxEventSize?: number;
181
+ }
172
182
  }
173
183
 
174
184
  export default Client
@@ -12,6 +12,8 @@ declare namespace Interceptors {
12
12
  export type DecompressInterceptorOpts = {
13
13
  skipErrorResponses?: boolean
14
14
  skipStatusCodes?: number[]
15
+ /** Maximum decompressed response size in bytes. @default 67108864 */
16
+ maxSize?: number
15
17
  }
16
18
 
17
19
  export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
@@ -6,10 +6,6 @@ import { MockCallHistory } from './mock-call-history'
6
6
 
7
7
  export default MockAgent
8
8
 
9
- interface PendingInterceptor extends MockDispatch {
10
- origin: string;
11
- }
12
-
13
9
  /** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
14
10
  declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
15
11
  constructor (options?: TMockAgentOptions)
@@ -40,17 +36,22 @@ declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.
40
36
  enableCallHistory (): this
41
37
  /** Disable call history. Any subsequence calls will then not be registered. */
42
38
  disableCallHistory (): this
43
- pendingInterceptors (): PendingInterceptor[]
39
+ pendingInterceptors (): MockAgent.PendingInterceptor[]
44
40
  assertNoPendingInterceptors (options?: {
45
- pendingInterceptorsFormatter?: PendingInterceptorsFormatter;
41
+ pendingInterceptorsFormatter?: MockAgent.PendingInterceptorsFormatter;
46
42
  }): void
47
43
  }
48
44
 
49
- interface PendingInterceptorsFormatter {
50
- format(pendingInterceptors: readonly PendingInterceptor[]): string;
51
- }
52
-
53
45
  declare namespace MockAgent {
46
+ /** An interceptor that was registered on a mock dispatcher and has not been consumed yet. */
47
+ export interface PendingInterceptor extends MockDispatch {
48
+ origin: string;
49
+ }
50
+
51
+ export interface PendingInterceptorsFormatter {
52
+ format(pendingInterceptors: readonly PendingInterceptor[]): string;
53
+ }
54
+
54
55
  /** MockAgent options. */
55
56
  export interface Options extends Agent.Options {
56
57
  /** A custom agent to be encapsulated by the MockAgent. */
@@ -21,5 +21,7 @@ declare namespace Socks5ProxyAgent {
21
21
  connect?: buildConnector.connector;
22
22
  /** TLS options for the proxy connection (for SOCKS5 over TLS) */
23
23
  proxyTls?: buildConnector.BuildOptions;
24
+ /** TLS options for the end-to-end connection to the target */
25
+ requestTls?: buildConnector.BuildOptions;
24
26
  }
25
27
  }
@@ -6,7 +6,6 @@
6
6
  },
7
7
  "name": "Discord",
8
8
  "description": "OpenClaw Discord channel plugin for channels, DMs, commands, and app events.",
9
- "icon": "https://cdn.simpleicons.org/discord",
10
9
  "skills": [
11
10
  "./skills"
12
11
  ],
@@ -3763,7 +3762,7 @@
3763
3762
  },
3764
3763
  "streaming.progress.toolProgress": {
3765
3764
  "label": "Discord Progress Tool Lines",
3766
- "help": "Show compact tool/progress lines in progress draft mode (default: true). Set false to keep only the label until final delivery."
3765
+ "help": "Show individual tool activity in progress drafts (default: false). Quiet drafts retain plans, approval requests, failures, and authored progress text."
3767
3766
  },
3768
3767
  "streaming.progress.commentary": {
3769
3768
  "label": "Discord Progress Commentary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.9.1",
3
+ "version": "2026.9.2",
4
4
  "description": "OpenClaw Discord channel plugin for channels, DMs, commands, and app events.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,13 +13,13 @@
13
13
  "discord-api-types": "0.38.53",
14
14
  "libopus-wasm": "0.2.0",
15
15
  "mdast-util-from-markdown": "2.0.3",
16
- "typebox": "1.3.17",
17
- "undici": "8.10.0",
16
+ "typebox": "1.3.18",
17
+ "undici": "8.10.2",
18
18
  "ws": "8.21.3",
19
19
  "zod": "4.4.3"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.9.1"
22
+ "openclaw": ">=2026.9.2"
23
23
  },
24
24
  "peerDependenciesMeta": {
25
25
  "openclaw": {
@@ -94,11 +94,11 @@
94
94
  "allowInvalidConfigRecovery": true
95
95
  },
96
96
  "compat": {
97
- "pluginApi": ">=2026.9.1"
97
+ "pluginApi": ">=2026.9.2"
98
98
  },
99
99
  "build": {
100
100
  "bundledDist": false,
101
- "openclawVersion": "2026.9.1",
101
+ "openclawVersion": "2026.9.2",
102
102
  "staticAssets": [
103
103
  {
104
104
  "source": "./assets/embedded-app-sdk.mjs",
@@ -1,2 +0,0 @@
1
- import { t as monitorDiscordProvider } from "./provider-DuDtKbF8.js";
2
- export { monitorDiscordProvider };
@@ -1,3 +0,0 @@
1
- import "./retry-BNCxiyyR.js";
2
- import "./target-resolver-BVI8xSSC.js";
3
- export {};