@openclaw/twitch 2026.7.1-beta.1 → 2026.7.1-beta.4

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 (74) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/channel-plugin-api.js +1 -1
  3. package/dist/{monitor-DJiQpKig.js → monitor-DuF1m2_8.js} +1 -1
  4. package/dist/{plugin-yFCGGYcm.js → plugin-C5o3rImF.js} +42 -5
  5. package/node_modules/@types/node/README.md +1 -1
  6. package/node_modules/@types/node/http2.d.ts +1 -0
  7. package/node_modules/@types/node/package.json +2 -2
  8. package/node_modules/@types/ws/node_modules/@types/node/README.md +1 -1
  9. package/node_modules/@types/ws/node_modules/@types/node/assert/strict.d.ts +10 -1
  10. package/node_modules/@types/ws/node_modules/@types/node/assert.d.ts +144 -17
  11. package/node_modules/@types/ws/node_modules/@types/node/async_hooks.d.ts +9 -9
  12. package/node_modules/@types/ws/node_modules/@types/node/buffer.d.ts +64 -30
  13. package/node_modules/@types/ws/node_modules/@types/node/child_process.d.ts +17 -21
  14. package/node_modules/@types/ws/node_modules/@types/node/cluster.d.ts +13 -13
  15. package/node_modules/@types/ws/node_modules/@types/node/console.d.ts +1 -1
  16. package/node_modules/@types/ws/node_modules/@types/node/crypto.d.ts +471 -575
  17. package/node_modules/@types/ws/node_modules/@types/node/diagnostics_channel.d.ts +274 -32
  18. package/node_modules/@types/ws/node_modules/@types/node/dns.d.ts +15 -15
  19. package/node_modules/@types/ws/node_modules/@types/node/events.d.ts +3 -3
  20. package/node_modules/@types/ws/node_modules/@types/node/ffi.d.ts +486 -0
  21. package/node_modules/@types/ws/node_modules/@types/node/fs/promises.d.ts +7 -4
  22. package/node_modules/@types/ws/node_modules/@types/node/fs.d.ts +24 -18
  23. package/node_modules/@types/ws/node_modules/@types/node/globals.d.ts +4 -4
  24. package/node_modules/@types/ws/node_modules/@types/node/http.d.ts +30 -5
  25. package/node_modules/@types/ws/node_modules/@types/node/http2.d.ts +5 -1
  26. package/node_modules/@types/ws/node_modules/@types/node/index.d.ts +1 -3
  27. package/node_modules/@types/ws/node_modules/@types/node/inspector.d.ts +1 -1
  28. package/node_modules/@types/ws/node_modules/@types/node/module.d.ts +16 -45
  29. package/node_modules/@types/ws/node_modules/@types/node/net.d.ts +1 -1
  30. package/node_modules/@types/ws/node_modules/@types/node/os.d.ts +2 -2
  31. package/node_modules/@types/ws/node_modules/@types/node/package.json +4 -4
  32. package/node_modules/@types/ws/node_modules/@types/node/perf_hooks.d.ts +1 -9
  33. package/node_modules/@types/ws/node_modules/@types/node/process.d.ts +25 -12
  34. package/node_modules/@types/ws/node_modules/@types/node/quic.d.ts +92 -11
  35. package/node_modules/@types/ws/node_modules/@types/node/readline.d.ts +12 -11
  36. package/node_modules/@types/ws/node_modules/@types/node/repl.d.ts +10 -10
  37. package/node_modules/@types/ws/node_modules/@types/node/sqlite.d.ts +56 -1
  38. package/node_modules/@types/ws/node_modules/@types/node/stream/iter.d.ts +150 -0
  39. package/node_modules/@types/ws/node_modules/@types/node/stream/promises.d.ts +2 -2
  40. package/node_modules/@types/ws/node_modules/@types/node/stream/web.d.ts +1 -1
  41. package/node_modules/@types/ws/node_modules/@types/node/stream.d.ts +37 -5
  42. package/node_modules/@types/ws/node_modules/@types/node/test/reporters.d.ts +1 -1
  43. package/node_modules/@types/ws/node_modules/@types/node/test.d.ts +120 -10
  44. package/node_modules/@types/ws/node_modules/@types/node/tls.d.ts +1 -1
  45. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/index.d.ts +2 -4
  46. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/index.d.ts +1 -3
  47. package/node_modules/@types/ws/node_modules/@types/node/url.d.ts +3 -3
  48. package/node_modules/@types/ws/node_modules/@types/node/util/types.d.ts +1 -1
  49. package/node_modules/@types/ws/node_modules/@types/node/util.d.ts +22 -22
  50. package/node_modules/@types/ws/node_modules/@types/node/v8.d.ts +85 -3
  51. package/node_modules/@types/ws/node_modules/@types/node/vm.d.ts +9 -9
  52. package/node_modules/@types/ws/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
  53. package/node_modules/@types/ws/node_modules/@types/node/worker_threads.d.ts +10 -12
  54. package/node_modules/@types/ws/node_modules/@types/node/zlib.d.ts +3 -3
  55. package/node_modules/@types/ws/node_modules/undici-types/agent.d.ts +0 -2
  56. package/node_modules/@types/ws/node_modules/undici-types/client.d.ts +25 -19
  57. package/node_modules/@types/ws/node_modules/undici-types/dispatcher.d.ts +7 -33
  58. package/node_modules/@types/ws/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  59. package/node_modules/@types/ws/node_modules/undici-types/fetch.d.ts +24 -4
  60. package/node_modules/@types/ws/node_modules/undici-types/h2c-client.d.ts +6 -6
  61. package/node_modules/@types/ws/node_modules/undici-types/handlers.d.ts +1 -2
  62. package/node_modules/@types/ws/node_modules/undici-types/header.d.ts +5 -0
  63. package/node_modules/@types/ws/node_modules/undici-types/index.d.ts +3 -1
  64. package/node_modules/@types/ws/node_modules/undici-types/interceptors.d.ts +1 -1
  65. package/node_modules/@types/ws/node_modules/undici-types/package.json +1 -1
  66. package/node_modules/@types/ws/node_modules/undici-types/pool.d.ts +0 -2
  67. package/node_modules/@types/ws/node_modules/undici-types/proxy-agent.d.ts +2 -2
  68. package/node_modules/@types/ws/node_modules/undici-types/round-robin-pool.d.ts +0 -2
  69. package/node_modules/@types/ws/node_modules/undici-types/snapshot-agent.d.ts +4 -0
  70. package/node_modules/@types/ws/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
  71. package/node_modules/@types/ws/node_modules/undici-types/webidl.d.ts +0 -1
  72. package/npm-shrinkwrap.json +12 -12
  73. package/package.json +4 -4
  74. package/node_modules/@types/ws/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as twitchPlugin } from "./plugin-yFCGGYcm.js";
1
+ import { t as twitchPlugin } from "./plugin-C5o3rImF.js";
2
2
  import { n as setTwitchRuntime } from "./runtime-B5If4b0g.js";
3
3
  export { setTwitchRuntime, twitchPlugin };
@@ -1,2 +1,2 @@
1
- import { t as twitchPlugin } from "./plugin-yFCGGYcm.js";
1
+ import { t as twitchPlugin } from "./plugin-C5o3rImF.js";
2
2
  export { twitchPlugin };
@@ -1,4 +1,4 @@
1
- import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-yFCGGYcm.js";
1
+ import { n as stripMarkdownForTwitch, r as getOrCreateClientManager } from "./plugin-C5o3rImF.js";
2
2
  import { t as getTwitchRuntime } from "./runtime-B5If4b0g.js";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,7 +1,7 @@
1
1
  import { a as getAccountConfig, c as resolveTwitchAccountContext, d as isAccountConfigured, f as missingTargetError, h as resolveTwitchToken, i as DEFAULT_ACCOUNT_ID, l as resolveTwitchSnapshotAccountId, m as normalizeTwitchChannel, o as listAccountIds, p as normalizeToken, r as twitchSetupWizard, s as resolveDefaultTwitchAccountId, t as twitchSetupAdapter, u as generateMessageId } from "./setup-surface-CSxU-v0y.js";
2
2
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
3
3
  import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
4
- import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
4
+ import { buildChannelOutboundSessionRoute, createChatChannelPlugin, stripChannelTargetPrefix } from "openclaw/plugin-sdk/channel-core";
5
5
  import { createLoggedPairingApprovalNotifier, createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
6
6
  import { buildPassiveProbedChannelStatusSummary, runStoppablePassiveMonitor } from "openclaw/plugin-sdk/extension-shared";
7
7
  import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
@@ -701,11 +701,23 @@ const twitchMessageAdapter = defineChannelMessageAdapter({
701
701
  send: {
702
702
  text: async (ctx) => {
703
703
  if (!twitchOutbound.sendText) throw new Error("Twitch text sending is not available.");
704
- return toTwitchMessageSendResult(await twitchOutbound.sendText(ctx), "text");
704
+ const { onDeliveryResult, ...outboundCtx } = ctx;
705
+ return toTwitchMessageSendResult(await twitchOutbound.sendText({
706
+ ...outboundCtx,
707
+ ...onDeliveryResult ? { onDeliveryResult: async (progress) => {
708
+ await onDeliveryResult(toTwitchMessageSendResult(progress, "text"));
709
+ } } : {}
710
+ }), "text");
705
711
  },
706
712
  media: async (ctx) => {
707
713
  if (!twitchOutbound.sendMedia) throw new Error("Twitch media sending is not available.");
708
- return toTwitchMessageSendResult(await twitchOutbound.sendMedia(ctx), "media");
714
+ const { onDeliveryResult, ...outboundCtx } = ctx;
715
+ return toTwitchMessageSendResult(await twitchOutbound.sendMedia({
716
+ ...outboundCtx,
717
+ ...onDeliveryResult ? { onDeliveryResult: async (progress) => {
718
+ await onDeliveryResult(toTwitchMessageSendResult(progress, "media"));
719
+ } } : {}
720
+ }), "media");
709
721
  }
710
722
  }
711
723
  });
@@ -753,7 +765,7 @@ function readStringParam(args, key, options = {}) {
753
765
  throw new Error(`Parameter ${key} must be a string, number, or boolean`);
754
766
  }
755
767
  /** Supported Twitch actions */
756
- const TWITCH_ACTIONS = new Set(["send"]);
768
+ const TWITCH_ACTIONS = /* @__PURE__ */ new Set(["send"]);
757
769
  /**
758
770
  * Twitch message actions adapter.
759
771
  */
@@ -1242,6 +1254,13 @@ function collectTwitchStatusIssues(accounts, getCfg) {
1242
1254
  * Main plugin export combining all adapters (outbound, actions, status, gateway).
1243
1255
  * This is the primary entry point for the Twitch channel integration.
1244
1256
  */
1257
+ function normalizeTwitchMessagingTarget(target) {
1258
+ const providerTarget = stripChannelTargetPrefix(target, "twitch", "twitch-chat");
1259
+ const kindMatch = /^(user|dm|channel|group|conversation|room):/i.exec(providerTarget);
1260
+ const kind = kindMatch?.[1]?.toLowerCase();
1261
+ if (kind === "user" || kind === "dm") return "";
1262
+ return normalizeTwitchChannel(kindMatch ? providerTarget.slice(kindMatch[0].length) : providerTarget);
1263
+ }
1245
1264
  /**
1246
1265
  * Twitch channel plugin.
1247
1266
  *
@@ -1269,6 +1288,24 @@ const twitchPlugin = createChatChannelPlugin({
1269
1288
  setup: twitchSetupAdapter,
1270
1289
  setupWizard: twitchSetupWizard,
1271
1290
  capabilities: { chatTypes: ["group"] },
1291
+ messaging: { resolveOutboundSessionRoute: ({ cfg, agentId, accountId, target }) => {
1292
+ const channel = normalizeTwitchMessagingTarget(target);
1293
+ if (!channel) return null;
1294
+ return buildChannelOutboundSessionRoute({
1295
+ cfg,
1296
+ agentId,
1297
+ channel: "twitch",
1298
+ accountId,
1299
+ recipientSessionExact: true,
1300
+ peer: {
1301
+ kind: "group",
1302
+ id: channel
1303
+ },
1304
+ chatType: "group",
1305
+ from: `twitch:channel:${channel}`,
1306
+ to: channel
1307
+ });
1308
+ } },
1272
1309
  message: twitchMessageAdapter,
1273
1310
  configSchema: buildChannelConfigSchema(TwitchConfigSchema),
1274
1311
  config: {
@@ -1346,7 +1383,7 @@ const twitchPlugin = createChatChannelPlugin({
1346
1383
  await runStoppablePassiveMonitor({
1347
1384
  abortSignal: ctx.abortSignal,
1348
1385
  start: async () => {
1349
- const { monitorTwitchProvider } = await import("./monitor-DJiQpKig.js");
1386
+ const { monitorTwitchProvider } = await import("./monitor-DuF1m2_8.js");
1350
1387
  return monitorTwitchProvider({
1351
1388
  account,
1352
1389
  accountId,
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 05 Jun 2026 22:33:07 GMT
11
+ * Last updated: Wed, 10 Jun 2026 22:15:09 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -31,6 +31,7 @@ declare module "http2" {
31
31
  ":method"?: string | undefined;
32
32
  ":authority"?: string | undefined;
33
33
  ":scheme"?: string | undefined;
34
+ ":protocol"?: string | undefined;
34
35
  }
35
36
  // Http2Stream
36
37
  export interface StreamPriorityOptions {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.19.42",
3
+ "version": "20.19.43",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -135,6 +135,6 @@
135
135
  "undici-types": "~6.21.0"
136
136
  },
137
137
  "peerDependencies": {},
138
- "typesPublisherContentHash": "ada232ae4b945d559a12c6e845140613a8d767a88147aafe0ab24b837048ff04",
138
+ "typesPublisherContentHash": "9383e1448aa72b7492595f9fe7058fc6124379f3a2d8644b925ee087befa8865",
139
139
  "typeScriptVersion": "5.3"
140
140
  }
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 19 May 2026 17:48:56 GMT
11
+ * Last updated: Wed, 01 Jul 2026 11:03:38 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -3,6 +3,7 @@ declare module "node:assert/strict" {
3
3
  Assert,
4
4
  AssertionError,
5
5
  AssertionErrorOptions,
6
+ AssertMessageFunction,
6
7
  AssertOptions,
7
8
  AssertPredicate,
8
9
  AssertStrict,
@@ -21,7 +22,15 @@ declare module "node:assert/strict" {
21
22
  strictEqual,
22
23
  throws,
23
24
  } from "node:assert";
24
- function strict(value: unknown, message?: string | Error): asserts value;
25
+ function strict(
26
+ value: unknown,
27
+ message?: Error | AssertMessageFunction,
28
+ ): asserts value;
29
+ function strict(
30
+ value: unknown,
31
+ message: string,
32
+ ...args: unknown[]
33
+ ): asserts value;
25
34
  namespace strict {
26
35
  export {
27
36
  Assert,
@@ -5,7 +5,15 @@ declare module "node:assert" {
5
5
  * @since v0.5.9
6
6
  * @param value The input that is checked for being truthy.
7
7
  */
8
- function assert(value: unknown, message?: string | Error): asserts value;
8
+ function assert(
9
+ value: unknown,
10
+ message?: Error | assert.AssertMessageFunction,
11
+ ): asserts value;
12
+ function assert(
13
+ value: unknown,
14
+ message: string,
15
+ ...args: unknown[]
16
+ ): asserts value;
9
17
  const kOptions: unique symbol;
10
18
  namespace assert {
11
19
  type AssertMethodNames =
@@ -177,6 +185,7 @@ declare module "node:assert" {
177
185
  */
178
186
  operator: string;
179
187
  }
188
+ type AssertMessageFunction = (actual: unknown, expected: unknown) => string;
180
189
  type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
181
190
  /**
182
191
  * Throws an `AssertionError` with the provided error message or a default
@@ -255,7 +264,15 @@ declare module "node:assert" {
255
264
  * ```
256
265
  * @since v0.1.21
257
266
  */
258
- function ok(value: unknown, message?: string | Error): asserts value;
267
+ function ok(
268
+ value: unknown,
269
+ message?: Error | AssertMessageFunction,
270
+ ): asserts value;
271
+ function ok(
272
+ value: unknown,
273
+ message: string,
274
+ ...args: unknown[]
275
+ ): asserts value;
259
276
  /**
260
277
  * **Strict assertion mode**
261
278
  *
@@ -289,7 +306,17 @@ declare module "node:assert" {
289
306
  * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
290
307
  * @since v0.1.21
291
308
  */
292
- function equal(actual: unknown, expected: unknown, message?: string | Error): void;
309
+ function equal(
310
+ actual: unknown,
311
+ expected: unknown,
312
+ message?: Error | AssertMessageFunction,
313
+ ): void;
314
+ function equal(
315
+ actual: unknown,
316
+ expected: unknown,
317
+ message: string,
318
+ ...args: unknown[]
319
+ ): void;
293
320
  /**
294
321
  * **Strict assertion mode**
295
322
  *
@@ -319,7 +346,17 @@ declare module "node:assert" {
319
346
  * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
320
347
  * @since v0.1.21
321
348
  */
322
- function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
349
+ function notEqual(
350
+ actual: unknown,
351
+ expected: unknown,
352
+ message?: Error | AssertMessageFunction,
353
+ ): void;
354
+ function notEqual(
355
+ actual: unknown,
356
+ expected: unknown,
357
+ message: string,
358
+ ...args: unknown[]
359
+ ): void;
323
360
  /**
324
361
  * **Strict assertion mode**
325
362
  *
@@ -337,7 +374,17 @@ declare module "node:assert" {
337
374
  * are also recursively evaluated by the following rules.
338
375
  * @since v0.1.21
339
376
  */
340
- function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
377
+ function deepEqual(
378
+ actual: unknown,
379
+ expected: unknown,
380
+ message?: Error | AssertMessageFunction,
381
+ ): void;
382
+ function deepEqual(
383
+ actual: unknown,
384
+ expected: unknown,
385
+ message: string,
386
+ ...args: unknown[]
387
+ ): void;
341
388
  /**
342
389
  * **Strict assertion mode**
343
390
  *
@@ -387,7 +434,17 @@ declare module "node:assert" {
387
434
  * instead of the `AssertionError`.
388
435
  * @since v0.1.21
389
436
  */
390
- function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
437
+ function notDeepEqual(
438
+ actual: unknown,
439
+ expected: unknown,
440
+ message?: Error | AssertMessageFunction,
441
+ ): void;
442
+ function notDeepEqual(
443
+ actual: unknown,
444
+ expected: unknown,
445
+ message: string,
446
+ ...args: unknown[]
447
+ ): void;
391
448
  /**
392
449
  * Tests strict equality between the `actual` and `expected` parameters as
393
450
  * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
@@ -425,7 +482,17 @@ declare module "node:assert" {
425
482
  * instead of the `AssertionError`.
426
483
  * @since v0.1.21
427
484
  */
428
- function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
485
+ function strictEqual<T>(
486
+ actual: unknown,
487
+ expected: T,
488
+ message?: Error | AssertMessageFunction,
489
+ ): asserts actual is T;
490
+ function strictEqual<T>(
491
+ actual: unknown,
492
+ expected: T,
493
+ message: string,
494
+ ...args: unknown[]
495
+ ): asserts actual is T;
429
496
  /**
430
497
  * Tests strict inequality between the `actual` and `expected` parameters as
431
498
  * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
@@ -450,14 +517,34 @@ declare module "node:assert" {
450
517
  * instead of the `AssertionError`.
451
518
  * @since v0.1.21
452
519
  */
453
- function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
520
+ function notStrictEqual(
521
+ actual: unknown,
522
+ expected: unknown,
523
+ message?: Error | AssertMessageFunction,
524
+ ): void;
525
+ function notStrictEqual(
526
+ actual: unknown,
527
+ expected: unknown,
528
+ message: string,
529
+ ...args: unknown[]
530
+ ): void;
454
531
  /**
455
532
  * Tests for deep equality between the `actual` and `expected` parameters.
456
533
  * "Deep" equality means that the enumerable "own" properties of child objects
457
534
  * are recursively evaluated also by the following rules.
458
535
  * @since v1.2.0
459
536
  */
460
- function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
537
+ function deepStrictEqual<T>(
538
+ actual: unknown,
539
+ expected: T,
540
+ message?: Error | AssertMessageFunction,
541
+ ): asserts actual is T;
542
+ function deepStrictEqual<T>(
543
+ actual: unknown,
544
+ expected: T,
545
+ message: string,
546
+ ...args: unknown[]
547
+ ): asserts actual is T;
461
548
  /**
462
549
  * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
463
550
  *
@@ -475,7 +562,17 @@ declare module "node:assert" {
475
562
  * instead of the `AssertionError`.
476
563
  * @since v1.2.0
477
564
  */
478
- function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
565
+ function notDeepStrictEqual(
566
+ actual: unknown,
567
+ expected: unknown,
568
+ message?: Error | AssertMessageFunction,
569
+ ): void;
570
+ function notDeepStrictEqual(
571
+ actual: unknown,
572
+ expected: unknown,
573
+ message: string,
574
+ ...args: unknown[]
575
+ ): void;
479
576
  /**
480
577
  * Expects the function `fn` to throw an error.
481
578
  *
@@ -766,7 +863,7 @@ declare module "node:assert" {
766
863
  * check that the promise is rejected.
767
864
  *
768
865
  * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
769
- * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value)
866
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v26.x/api/errors.html#err_invalid_return_value)
770
867
  * error. In both cases the error handler is skipped.
771
868
  *
772
869
  * Besides the async nature to await the completion behaves identically to {@link throws}.
@@ -836,7 +933,7 @@ declare module "node:assert" {
836
933
  *
837
934
  * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
838
935
  * the function does not return a promise, `assert.doesNotReject()` will return a
839
- * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value) error. In both cases
936
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v26.x/api/errors.html#err_invalid_return_value) error. In both cases
840
937
  * the error handler is skipped.
841
938
  *
842
939
  * Using `assert.doesNotReject()` is actually not useful because there is little
@@ -899,10 +996,20 @@ declare module "node:assert" {
899
996
  * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
900
997
  * to the value of the `message` parameter. If the `message` parameter is
901
998
  * undefined, a default error message is assigned. If the `message` parameter is an
902
- * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
999
+ * instance of an [Error](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
903
1000
  * @since v13.6.0, v12.16.0
904
1001
  */
905
- function match(value: string, regExp: RegExp, message?: string | Error): void;
1002
+ function match(
1003
+ value: string,
1004
+ regExp: RegExp,
1005
+ message?: Error | AssertMessageFunction,
1006
+ ): void;
1007
+ function match(
1008
+ value: string,
1009
+ regExp: RegExp,
1010
+ message: string,
1011
+ ...args: unknown[]
1012
+ ): void;
906
1013
  /**
907
1014
  * Expects the `string` input not to match the regular expression.
908
1015
  *
@@ -922,10 +1029,20 @@ declare module "node:assert" {
922
1029
  * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
923
1030
  * to the value of the `message` parameter. If the `message` parameter is
924
1031
  * undefined, a default error message is assigned. If the `message` parameter is an
925
- * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
1032
+ * instance of an [Error](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
926
1033
  * @since v13.6.0, v12.16.0
927
1034
  */
928
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
1035
+ function doesNotMatch(
1036
+ value: string,
1037
+ regExp: RegExp,
1038
+ message?: Error | AssertMessageFunction,
1039
+ ): void;
1040
+ function doesNotMatch(
1041
+ value: string,
1042
+ regExp: RegExp,
1043
+ message: string,
1044
+ ...args: unknown[]
1045
+ ): void;
929
1046
  /**
930
1047
  * Tests for partial deep equality between the `actual` and `expected` parameters.
931
1048
  * "Deep" equality means that the enumerable "own" properties of child objects
@@ -937,7 +1054,17 @@ declare module "node:assert" {
937
1054
  * behaving as a super set of it.
938
1055
  * @since v22.13.0
939
1056
  */
940
- function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
1057
+ function partialDeepStrictEqual(
1058
+ actual: unknown,
1059
+ expected: unknown,
1060
+ message?: Error | AssertMessageFunction,
1061
+ ): void;
1062
+ function partialDeepStrictEqual(
1063
+ actual: unknown,
1064
+ expected: unknown,
1065
+ message: string,
1066
+ ...args: unknown[]
1067
+ ): void;
941
1068
  }
942
1069
  namespace assert {
943
1070
  export { strict };
@@ -28,7 +28,7 @@ declare module "node:async_hooks" {
28
28
  * ```
29
29
  *
30
30
  * Promise contexts may not get precise `executionAsyncIds` by default.
31
- * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking).
31
+ * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promise-execution-tracking).
32
32
  * @since v8.1.0
33
33
  * @return The `asyncId` of the current execution context. Useful to track when something calls.
34
34
  */
@@ -101,29 +101,29 @@ declare module "node:async_hooks" {
101
101
  * ```
102
102
  *
103
103
  * Promise contexts may not get valid `triggerAsyncId`s by default. See
104
- * the section on [promise execution tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking).
104
+ * the section on [promise execution tracking](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promise-execution-tracking).
105
105
  * @return The ID of the resource responsible for calling the callback that is currently being executed.
106
106
  */
107
107
  function triggerAsyncId(): number;
108
108
  interface HookCallbacks {
109
109
  /**
110
- * The [`init` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource).
110
+ * The [`init` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource).
111
111
  */
112
112
  init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
113
113
  /**
114
- * The [`before` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#beforeasyncid).
114
+ * The [`before` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#beforeasyncid).
115
115
  */
116
116
  before?(asyncId: number): void;
117
117
  /**
118
- * The [`after` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#afterasyncid).
118
+ * The [`after` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#afterasyncid).
119
119
  */
120
120
  after?(asyncId: number): void;
121
121
  /**
122
- * The [`promiseResolve` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promiseresolveasyncid).
122
+ * The [`promiseResolve` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promiseresolveasyncid).
123
123
  */
124
124
  promiseResolve?(asyncId: number): void;
125
125
  /**
126
- * The [`destroy` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#destroyasyncid).
126
+ * The [`destroy` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#destroyasyncid).
127
127
  */
128
128
  destroy?(asyncId: number): void;
129
129
  /**
@@ -153,7 +153,7 @@ declare module "node:async_hooks" {
153
153
  * All callbacks are optional. For example, if only resource cleanup needs to
154
154
  * be tracked, then only the `destroy` callback needs to be passed. The
155
155
  * specifics of all functions that can be passed to `callbacks` is in the
156
- * [Hook Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks) section.
156
+ * [Hook Callbacks](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#hook-callbacks) section.
157
157
  *
158
158
  * ```js
159
159
  * import { createHook } from 'node:async_hooks';
@@ -184,7 +184,7 @@ declare module "node:async_hooks" {
184
184
  * via the async hooks mechanism, the `init()`, `before()`, `after()`, and
185
185
  * `destroy()` callbacks _must not_ be async functions that return promises.
186
186
  * @since v8.1.0
187
- * @param options The [Hook Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks) to register
187
+ * @param options The [Hook Callbacks](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#hook-callbacks) to register
188
188
  * @returns Instance used for disabling and enabling hooks
189
189
  */
190
190
  function createHook(options: HookCallbacks): AsyncHook;