@openclaw/discord 2026.5.28 → 2026.5.30-beta.1

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 (71) hide show
  1. package/dist/{account-inspect-C4sJZNbI.js → account-inspect-BkL-fm-M.js} +7 -5
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/action-runtime-api.js +1 -1
  4. package/dist/api.js +14 -14
  5. package/dist/{approval-handler.runtime-CN_E7nkQ.js → approval-handler.runtime-BFLqemq4.js} +4 -4
  6. package/dist/{audit-BFCBp74H.js → audit-CKzCd_nb.js} +4 -4
  7. package/dist/{channel-COXb22wL.js → channel-DnUKVkVn.js} +16 -16
  8. package/dist/{channel-actions-C2g9OmnG.js → channel-actions-D60aLg8q.js} +3 -3
  9. package/dist/{channel-actions.runtime-drnbrgpt.js → channel-actions.runtime-D6awrVWB.js} +5 -5
  10. package/dist/channel-config-api.js +1 -1
  11. package/dist/channel-plugin-api.js +1 -1
  12. package/dist/{channel.setup-BsrP5-hv.js → channel.setup-Cqfoar5h.js} +6 -20
  13. package/dist/{components-CjQujWa1.js → components-CWgTTA0J.js} +1 -1
  14. package/dist/{config-schema-3tZYNVTM.js → config-schema-C1lzB2Ld.js} +1 -1
  15. package/dist/contract-api.js +2 -2
  16. package/dist/{conversation-identity-CsPV1Gjx.js → conversation-identity-Dvi-8LyR.js} +2 -2
  17. package/dist/{directory-config-BqPvRoDv.js → directory-config-B-i4XzWZ.js} +1 -1
  18. package/dist/directory-contract-api.js +1 -1
  19. package/dist/{directory-live-CCI0IMZq.js → directory-live-B5E-IbgC.js} +1 -1
  20. package/dist/{doctor-Dy7sI1sL.js → doctor-DT41iqQA.js} +2 -2
  21. package/dist/{handle-action.guild-admin-BmjclQbR.js → handle-action.guild-admin-B39nAL5c.js} +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/legacy-state-migrations-api.js +3 -1
  24. package/dist/{manager.runtime-ClhnLsZf.js → manager.runtime-ClHe315Q.js} +16 -8
  25. package/dist/{message-handler-BnhAHqem.js → message-handler-Deidymb-.js} +182 -29
  26. package/dist/{message-handler.preflight-B1RTQ6ZO.js → message-handler.preflight-DeTwc2nk.js} +11 -11
  27. package/dist/{message-handler.process-B1ODKav3.js → message-handler.process-DJkFWirK.js} +30 -28
  28. package/dist/{message-utils-CmB03FoF.js → message-utils-C4OlktSy.js} +19 -15
  29. package/dist/{outbound-adapter-DfY2Dtf3.js → outbound-adapter-DCC3zPuC.js} +51 -86
  30. package/dist/{pluralkit-DAZN3ZMK.js → pluralkit-Dhad974D.js} +1 -1
  31. package/dist/{provider-DCcqVFp-.js → provider-SeIwaTTJ.js} +127 -133
  32. package/dist/{provider-session.runtime-mKSG07RE.js → provider-session.runtime-B5aLy8NA.js} +3 -3
  33. package/dist/provider.runtime-DVHYE9ZI.js +2 -0
  34. package/dist/{resolve-channels-D1zgoxnw.js → resolve-channels-LMOlvXSw.js} +1 -1
  35. package/dist/{resolve-users-wPAvLk_8.js → resolve-users-WNAKeCd_.js} +1 -1
  36. package/dist/{runtime-gaB5-Wsj.js → runtime-Dg0INaGm.js} +7 -7
  37. package/dist/runtime-api.actions.js +2 -2
  38. package/dist/runtime-api.js +21 -21
  39. package/dist/runtime-api.lookup.js +4 -4
  40. package/dist/runtime-api.monitor-C56AP2ZG.js +6 -0
  41. package/dist/runtime-api.monitor.js +5 -5
  42. package/dist/runtime-api.send.js +5 -5
  43. package/dist/runtime-api.threads.js +5 -5
  44. package/dist/{send-CBxhnbKU.js → send-DwUf-fzH.js} +6 -6
  45. package/dist/{send.components-uuQuHL3t.js → send.components-BVfuI0-G.js} +25 -11
  46. package/dist/{send.outbound-DZHJYmNF.js → send.outbound-4IJRwYbJ.js} +3 -3
  47. package/dist/{send.receipt-3y2lVFRf.js → send.receipt-CxFJX9o3.js} +22 -10
  48. package/dist/{send.shared-Ddl21-Gt.js → send.shared-DQwyGjXe.js} +2 -2
  49. package/dist/setup-plugin-api.js +1 -1
  50. package/dist/{shared-D3NkInmq.js → shared-D-ePFtjZ.js} +3 -3
  51. package/dist/{subagent-hooks-BacIbIBD.js → subagent-hooks-CqhiwYpb.js} +2 -2
  52. package/dist/subagent-hooks-api.js +1 -5
  53. package/dist/{system-events-Cw6Hp8RF.js → system-events-DZdHRt2j.js} +1 -1
  54. package/dist/{target-resolver-jjQzAS6T.js → target-resolver-DTD90GqZ.js} +2 -2
  55. package/dist/targets-xBATI2q7.js +3 -0
  56. package/dist/{thread-bindings-BBq-yzq2.js → thread-bindings-VrlFUPDW.js} +6 -6
  57. package/dist/{thread-bindings.discord-api-5QgEd_dW.js → thread-bindings.discord-api-CItgvv24.js} +5 -5
  58. package/dist/{thread-bindings.manager-COkxjwR9.js → thread-bindings.manager-hhqHJlGr.js} +4 -4
  59. package/dist/{thread-bindings.session-updates-D5gY2ZTE.js → thread-bindings.session-updates-0BaqAU8S.js} +1 -1
  60. package/dist/{thread-bindings.state-BsOnj5NX.js → thread-bindings.state-B-iprgEM.js} +8 -2
  61. package/dist/{timeouts-l_PsHQvX.js → timeouts-CEJ3--Uw.js} +5 -2
  62. package/dist/timeouts.js +1 -1
  63. package/dist/{transcripts-source-DDrS8HrV.js → transcripts-source-CFsqnHc4.js} +1 -1
  64. package/dist/transcripts-source-api.js +1 -1
  65. package/dist/{typing-B7bCMPJJ.js → typing-Bfns8H17.js} +2 -2
  66. package/npm-shrinkwrap.json +3 -3
  67. package/openclaw.plugin.json +1 -1
  68. package/package.json +4 -4
  69. package/dist/provider.runtime-BmpunJHX.js +0 -2
  70. package/dist/runtime-api.monitor-B38upMUK.js +0 -5
  71. package/dist/targets-BVKF5wbg.js +0 -3
@@ -1,3 +1,4 @@
1
+ import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
1
2
  //#region extensions/discord/src/monitor/timeouts.ts
2
3
  const DISCORD_DEFAULT_LISTENER_TIMEOUT_MS = 12e4;
3
4
  const DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS = 30 * 6e4;
@@ -21,9 +22,10 @@ function mergeAbortSignals(signals) {
21
22
  return fallbackController.signal;
22
23
  }
23
24
  async function raceWithTimeout(params) {
25
+ const timeoutMs = resolveTimerTimeoutMs(params.timeoutMs, 1);
24
26
  let timeoutTimer;
25
27
  const timeoutPromise = new Promise((resolve) => {
26
- timeoutTimer = setTimeout(() => resolve(params.onTimeout()), Math.max(1, params.timeoutMs));
28
+ timeoutTimer = setTimeout(() => resolve(params.onTimeout()), timeoutMs);
27
29
  timeoutTimer.unref?.();
28
30
  });
29
31
  try {
@@ -33,13 +35,14 @@ async function raceWithTimeout(params) {
33
35
  }
34
36
  }
35
37
  async function withAbortTimeout(params) {
38
+ const timeoutMs = resolveTimerTimeoutMs(params.timeoutMs, 1);
36
39
  const controller = new AbortController();
37
40
  let timeoutTimer;
38
41
  const timeoutPromise = new Promise((_, reject) => {
39
42
  timeoutTimer = setTimeout(() => {
40
43
  controller.abort();
41
44
  reject(params.createTimeoutError());
42
- }, Math.max(1, params.timeoutMs));
45
+ }, timeoutMs);
43
46
  timeoutTimer.unref?.();
44
47
  });
45
48
  try {
package/dist/timeouts.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, r as DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-l_PsHQvX.js";
1
+ import { i as DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, r as DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-CEJ3--Uw.js";
2
2
  export { DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS };
@@ -1,4 +1,4 @@
1
- import { Wt as __exportAll } from "./send.receipt-3y2lVFRf.js";
1
+ import { Wt as __exportAll } from "./send.receipt-CxFJX9o3.js";
2
2
  //#region extensions/discord/src/voice/transcripts-source.ts
3
3
  var transcripts_source_exports = /* @__PURE__ */ __exportAll({
4
4
  discordVoiceTranscriptsSourceProvider: () => discordVoiceTranscriptsSourceProvider,
@@ -1,2 +1,2 @@
1
- import { t as discordVoiceTranscriptsSourceProvider } from "./transcripts-source-DDrS8HrV.js";
1
+ import { t as discordVoiceTranscriptsSourceProvider } from "./transcripts-source-CFsqnHc4.js";
2
2
  export { discordVoiceTranscriptsSourceProvider };
@@ -1,5 +1,5 @@
1
- import { Wt as __exportAll, bt as sendChannelTyping } from "./send.receipt-3y2lVFRf.js";
2
- import { o as raceWithTimeout } from "./timeouts-l_PsHQvX.js";
1
+ import { Wt as __exportAll, bt as sendChannelTyping } from "./send.receipt-CxFJX9o3.js";
2
+ import { o as raceWithTimeout } from "./timeouts-CEJ3--Uw.js";
3
3
  //#region extensions/discord/src/monitor/typing.ts
4
4
  var typing_exports = /* @__PURE__ */ __exportAll({ sendTyping: () => sendTyping });
5
5
  const DISCORD_TYPING_START_TIMEOUT_MS = 5e3;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.5.28",
3
+ "version": "2026.5.30-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/discord",
9
- "version": "2026.5.28",
9
+ "version": "2026.5.30-beta.1",
10
10
  "dependencies": {
11
11
  "@discordjs/voice": "0.19.2",
12
12
  "discord-api-types": "0.38.48",
@@ -16,7 +16,7 @@
16
16
  "ws": "8.21.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "openclaw": ">=2026.5.28"
19
+ "openclaw": ">=2026.5.30-beta.1"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "openclaw": {
@@ -3794,7 +3794,7 @@
3794
3794
  },
3795
3795
  "voice.model": {
3796
3796
  "label": "Discord Voice Model",
3797
- "help": "Optional LLM model override for Discord voice channel responses and realtime agent consults (for example openai-codex/gpt-5.5). Leave unset to inherit the routed agent model."
3797
+ "help": "Optional LLM model override for Discord voice channel responses and realtime agent consults (for example openai/gpt-5.5). Leave unset to inherit the routed agent model."
3798
3798
  },
3799
3799
  "voice.mode": {
3800
3800
  "label": "Discord Voice Mode",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.5.28",
3
+ "version": "2026.5.30-beta.1",
4
4
  "description": "OpenClaw Discord channel plugin for channels, DMs, commands, and app events.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "ws": "8.21.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "openclaw": ">=2026.5.28"
19
+ "openclaw": ">=2026.5.30-beta.1"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "openclaw": {
@@ -63,10 +63,10 @@
63
63
  "allowInvalidConfigRecovery": true
64
64
  },
65
65
  "compat": {
66
- "pluginApi": ">=2026.5.28"
66
+ "pluginApi": ">=2026.5.30-beta.1"
67
67
  },
68
68
  "build": {
69
- "openclawVersion": "2026.5.28"
69
+ "openclawVersion": "2026.5.30-beta.1"
70
70
  },
71
71
  "release": {
72
72
  "publishToClawHub": true,
@@ -1,2 +0,0 @@
1
- import { t as monitorDiscordProvider } from "./provider-DCcqVFp-.js";
2
- export { monitorDiscordProvider };
@@ -1,5 +0,0 @@
1
- import "./allow-list-BnkWtVpA.js";
2
- import "./provider-DCcqVFp-.js";
3
- import "./message-utils-CmB03FoF.js";
4
- import "./message-handler-BnhAHqem.js";
5
- export {};
@@ -1,3 +0,0 @@
1
- import "./send.receipt-3y2lVFRf.js";
2
- import "./target-resolver-jjQzAS6T.js";
3
- export {};