@openclaw/discord 2026.5.3-beta.2 → 2026.5.3

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 (73) hide show
  1. package/dist/{account-inspect-C2UEUhbG.js → account-inspect-BcQAxhKY.js} +1 -1
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/{accounts-BKnkNaoA.js → accounts-CaHGiVB4.js} +7 -5
  4. package/dist/action-runtime-api.js +1 -1
  5. package/dist/api.js +13 -13
  6. package/dist/{approval-handler.runtime-v8nzQHlT.js → approval-handler.runtime-AZort68o.js} +4 -4
  7. package/dist/{approval-native-DqWGp0bM.js → approval-native-oN9__F3M.js} +3 -3
  8. package/dist/{approval-shared-DKnwwjZM.js → approval-shared-GfJeMdLu.js} +1 -1
  9. package/dist/{audit-CJ92YD6J.js → audit-DEbWTFTt.js} +3 -3
  10. package/dist/{channel-B3aTtBj1.js → channel-Nf20xyAS.js} +16 -16
  11. package/dist/{channel-actions-TNih7k3w.js → channel-actions-ChsoeB3T.js} +3 -3
  12. package/dist/{channel-actions.runtime-CaPytiY4.js → channel-actions.runtime-BxNUYqD-.js} +3 -3
  13. package/dist/channel-config-api.js +1 -1
  14. package/dist/channel-plugin-api.js +1 -1
  15. package/dist/{channel.setup-Dt4tIDrl.js → channel.setup-DHzAG9qO.js} +5 -5
  16. package/dist/{components-BapWDmDM.js → components-D5LnN7ZQ.js} +1 -1
  17. package/dist/{config-schema-DwFkL904.js → config-schema-BmGtnfiE.js} +18 -2
  18. package/dist/contract-api.js +3 -3
  19. package/dist/{directory-config-LyMP0sdv.js → directory-config-DElx_Gr4.js} +1 -1
  20. package/dist/directory-contract-api.js +1 -1
  21. package/dist/{directory-live-BQapdpkZ.js → directory-live-DJ0V5asB.js} +2 -2
  22. package/dist/{discord-D1kDh0X_.js → discord-eZlimVfW.js} +1 -1
  23. package/dist/{doctor-B2G7WqO0.js → doctor-Bgzf3Du2.js} +3 -3
  24. package/dist/{doctor-contract-D3pSutkb.js → doctor-contract-Dxq4VIkE.js} +1 -1
  25. package/dist/doctor-contract-api.js +1 -1
  26. package/dist/{handle-action.guild-admin-BuqsSVXu.js → handle-action.guild-admin-B2Zzo2HU.js} +1 -1
  27. package/dist/{manager.runtime-M2aAa7qA.js → manager.runtime-B0TEyget.js} +2 -2
  28. package/dist/{message-handler-D6JfFV3P.js → message-handler-TShaLWeQ.js} +4 -4
  29. package/dist/{message-handler.preflight-DqaF3vHm.js → message-handler.preflight-BsvNIDEw.js} +7 -7
  30. package/dist/{message-handler.process-tl3Nwnhr.js → message-handler.process-Be2HA9AV.js} +178 -78
  31. package/dist/{outbound-adapter-DJf9_sfH.js → outbound-adapter-B-mzejZP.js} +6 -6
  32. package/dist/preview-streaming-BzkA67Qa.js +7 -0
  33. package/dist/{probe-DcNEodPI.js → probe-DmHUl6wI.js} +1 -1
  34. package/dist/{probe.runtime-P-e4r1Hl.js → probe.runtime-ch3eJ1Ar.js} +1 -1
  35. package/dist/{provider-CMvXOp-3.js → provider-Cy1aml6b.js} +23 -56
  36. package/dist/{provider-session.runtime-JFemrDZT.js → provider-session.runtime-CD5RUyP3.js} +3 -3
  37. package/dist/provider.runtime-CbW_PYV-.js +2 -0
  38. package/dist/{reply-delivery-D9So77a6.js → reply-delivery-uCiWAyIt.js} +2 -2
  39. package/dist/{resolve-allowlist-common-DqqFY_qa.js → resolve-allowlist-common-Cl2N5YLW.js} +1 -1
  40. package/dist/{resolve-channels-CGPntufJ.js → resolve-channels-VAqom3Dn.js} +1 -1
  41. package/dist/{resolve-users-CDvSlW0V.js → resolve-users-DPJkRKx1.js} +1 -1
  42. package/dist/{route-resolution-BYiC-6Cc.js → route-resolution-Bx85WEpX.js} +1 -1
  43. package/dist/{runtime-n5xZHW55.js → runtime-SoSwefbS.js} +7 -7
  44. package/dist/runtime-api.actions.js +2 -2
  45. package/dist/runtime-api.js +18 -18
  46. package/dist/runtime-api.lookup.js +5 -5
  47. package/dist/runtime-api.monitor-srLSEVEX.js +6 -0
  48. package/dist/runtime-api.monitor.js +4 -4
  49. package/dist/runtime-api.send.js +4 -4
  50. package/dist/runtime-api.threads.js +3 -3
  51. package/dist/{send-B_frVn_Q.js → send-Dw6Da1m2.js} +4 -4
  52. package/dist/{send.components-B1EgHAds.js → send.components-CJ8gYK3s.js} +5 -5
  53. package/dist/{send.outbound-DlBAuW7y.js → send.outbound-6KbINW5h.js} +3 -3
  54. package/dist/{send.shared-Db0opnak.js → send.shared-e9Pd_Em0.js} +10 -5
  55. package/dist/setup-plugin-api.js +1 -1
  56. package/dist/{shared-CqlrJmSs.js → shared-C1EMtcxR.js} +9 -6
  57. package/dist/{subagent-hooks-mEK5ARfP.js → subagent-hooks-4TZ3SJrh.js} +2 -2
  58. package/dist/subagent-hooks-api.js +1 -1
  59. package/dist/{system-events-Bu9jmO4W.js → system-events-B-xNU7II.js} +1 -1
  60. package/dist/{targets-kKlbZ4ai.js → targets-B7OfGFt8.js} +1 -1
  61. package/dist/test-api.js +3 -3
  62. package/dist/{thread-bindings-Bj1R-6QH.js → thread-bindings-DLoian4S.js} +3 -3
  63. package/dist/{thread-bindings.discord-api-ClPMuIr8.js → thread-bindings.discord-api-BJF6acLK.js} +4 -4
  64. package/dist/{thread-bindings.manager-BaN0l4y8.js → thread-bindings.manager-CWG9Gd04.js} +4 -4
  65. package/dist/{threading-CWhdYHVx.js → threading-Bi95Nz8h.js} +1 -1
  66. package/dist/token-BZtonk7d.js +93 -0
  67. package/dist/{typing-CJiowRTZ.js → typing-BSi1dUHm.js} +1 -1
  68. package/openclaw.plugin.json +80 -2
  69. package/package.json +4 -4
  70. package/dist/preview-streaming-C0O92Qqz.js +0 -14
  71. package/dist/provider.runtime-BO007oR2.js +0 -2
  72. package/dist/runtime-api.monitor-BC-XN0tY.js +0 -6
  73. package/dist/token-D-w3Rigl.js +0 -42
@@ -312,6 +312,37 @@
312
312
  },
313
313
  "additionalProperties": false
314
314
  },
315
+ "progress": {
316
+ "type": "object",
317
+ "properties": {
318
+ "label": {
319
+ "anyOf": [
320
+ {
321
+ "type": "string"
322
+ },
323
+ {
324
+ "type": "boolean",
325
+ "const": false
326
+ }
327
+ ]
328
+ },
329
+ "labels": {
330
+ "type": "array",
331
+ "items": {
332
+ "type": "string"
333
+ }
334
+ },
335
+ "maxLines": {
336
+ "type": "integer",
337
+ "exclusiveMinimum": 0,
338
+ "maximum": 9007199254740991
339
+ },
340
+ "toolProgress": {
341
+ "type": "boolean"
342
+ }
343
+ },
344
+ "additionalProperties": false
345
+ },
315
346
  "block": {
316
347
  "type": "object",
317
348
  "properties": {
@@ -1837,6 +1868,37 @@
1837
1868
  },
1838
1869
  "additionalProperties": false
1839
1870
  },
1871
+ "progress": {
1872
+ "type": "object",
1873
+ "properties": {
1874
+ "label": {
1875
+ "anyOf": [
1876
+ {
1877
+ "type": "string"
1878
+ },
1879
+ {
1880
+ "type": "boolean",
1881
+ "const": false
1882
+ }
1883
+ ]
1884
+ },
1885
+ "labels": {
1886
+ "type": "array",
1887
+ "items": {
1888
+ "type": "string"
1889
+ }
1890
+ },
1891
+ "maxLines": {
1892
+ "type": "integer",
1893
+ "exclusiveMinimum": 0,
1894
+ "maximum": 9007199254740991
1895
+ },
1896
+ "toolProgress": {
1897
+ "type": "boolean"
1898
+ }
1899
+ },
1900
+ "additionalProperties": false
1901
+ },
1840
1902
  "block": {
1841
1903
  "type": "object",
1842
1904
  "properties": {
@@ -3113,11 +3175,11 @@
3113
3175
  },
3114
3176
  "streaming": {
3115
3177
  "label": "Discord Streaming Mode",
3116
- "help": "Unified Discord stream preview mode: \"off\" | \"partial\" | \"block\" | \"progress\". \"progress\" maps to \"partial\" on Discord. Legacy boolean/streamMode keys are auto-mapped."
3178
+ "help": "Unified Discord stream preview mode: \"off\" | \"partial\" | \"block\" | \"progress\". \"progress\" keeps a single editable progress draft until final delivery. Legacy boolean/streamMode keys are auto-mapped."
3117
3179
  },
3118
3180
  "streaming.mode": {
3119
3181
  "label": "Discord Streaming Mode",
3120
- "help": "Canonical Discord preview mode: \"off\" | \"partial\" | \"block\" | \"progress\". \"progress\" maps to \"partial\" on Discord."
3182
+ "help": "Canonical Discord preview mode: \"off\" | \"partial\" | \"block\" | \"progress\"."
3121
3183
  },
3122
3184
  "streaming.chunkMode": {
3123
3185
  "label": "Discord Chunk Mode",
@@ -3147,6 +3209,22 @@
3147
3209
  "label": "Discord Draft Tool Progress",
3148
3210
  "help": "Show tool/progress activity in the live draft preview message (default: true). Set false to keep tool updates as separate messages."
3149
3211
  },
3212
+ "streaming.progress.label": {
3213
+ "label": "Discord Progress Label",
3214
+ "help": "Initial progress draft title. Use \"auto\" for built-in single-word labels, a custom string, or false to hide the title."
3215
+ },
3216
+ "streaming.progress.labels": {
3217
+ "label": "Discord Progress Label Pool",
3218
+ "help": "Candidate labels for streaming.progress.label=\"auto\". Leave unset to use OpenClaw built-in progress labels."
3219
+ },
3220
+ "streaming.progress.maxLines": {
3221
+ "label": "Discord Progress Max Lines",
3222
+ "help": "Maximum number of compact progress lines to keep below the draft label (default: 8)."
3223
+ },
3224
+ "streaming.progress.toolProgress": {
3225
+ "label": "Discord Progress Tool Lines",
3226
+ "help": "Show compact tool/progress lines in progress draft mode (default: true). Set false to keep only the label until final delivery."
3227
+ },
3150
3228
  "retry.attempts": {
3151
3229
  "label": "Discord Retry Attempts",
3152
3230
  "help": "Max retry attempts for outbound Discord API calls (default: 3)."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.5.3-beta.2",
3
+ "version": "2026.5.3",
4
4
  "description": "OpenClaw Discord channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "openclaw": "workspace:*"
22
22
  },
23
23
  "peerDependencies": {
24
- "openclaw": ">=2026.5.3-beta.2"
24
+ "openclaw": ">=2026.5.3"
25
25
  },
26
26
  "peerDependenciesMeta": {
27
27
  "openclaw": {
@@ -65,10 +65,10 @@
65
65
  "allowInvalidConfigRecovery": true
66
66
  },
67
67
  "compat": {
68
- "pluginApi": ">=2026.5.3-beta.2"
68
+ "pluginApi": ">=2026.5.3"
69
69
  },
70
70
  "build": {
71
- "openclawVersion": "2026.5.3-beta.2"
71
+ "openclawVersion": "2026.5.3"
72
72
  },
73
73
  "release": {
74
74
  "publishToClawHub": true,
@@ -1,14 +0,0 @@
1
- //#region extensions/discord/src/preview-streaming.ts
2
- function parsePreviewStreamingMode(value) {
3
- return value === "off" || value === "partial" || value === "block" ? value : void 0;
4
- }
5
- function resolveDiscordPreviewStreamMode(params = {}) {
6
- const parsedStreaming = params.streaming && typeof params.streaming === "object" && !Array.isArray(params.streaming) ? parsePreviewStreamingMode(params.streaming.mode ?? params.streaming.streaming) : parsePreviewStreamingMode(params.streaming);
7
- if (parsedStreaming) return parsedStreaming;
8
- const legacy = parsePreviewStreamingMode(params.streamMode);
9
- if (legacy) return legacy;
10
- if (typeof params.streaming === "boolean") return params.streaming ? "partial" : "off";
11
- return "off";
12
- }
13
- //#endregion
14
- export { resolveDiscordPreviewStreamMode as t };
@@ -1,2 +0,0 @@
1
- import { t as monitorDiscordProvider } from "./provider-CMvXOp-3.js";
2
- export { monitorDiscordProvider };
@@ -1,6 +0,0 @@
1
- import "./allow-list-ek-1hMKN.js";
2
- import "./provider-CMvXOp-3.js";
3
- import "./message-utils-Dmgu-7fC.js";
4
- import "./threading-CWhdYHVx.js";
5
- import "./message-handler-D6JfFV3P.js";
6
- export {};
@@ -1,42 +0,0 @@
1
- import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
2
- import { DEFAULT_ACCOUNT_ID, normalizeAccountId, resolveAccountEntry } from "openclaw/plugin-sdk/routing";
3
- //#region extensions/discord/src/token.ts
4
- function normalizeDiscordToken(raw, path) {
5
- const trimmed = normalizeResolvedSecretInputString({
6
- value: raw,
7
- path
8
- });
9
- if (!trimmed) return;
10
- return trimmed.replace(/^Bot\s+/i, "");
11
- }
12
- function resolveDiscordToken(cfg, opts = {}) {
13
- const accountId = normalizeAccountId(opts.accountId);
14
- const discordCfg = cfg?.channels?.discord;
15
- const accountCfg = resolveAccountEntry(discordCfg?.accounts, accountId);
16
- const hasAccountToken = Boolean(accountCfg && Object.prototype.hasOwnProperty.call(accountCfg, "token"));
17
- const accountToken = normalizeDiscordToken(accountCfg?.token ?? void 0, `channels.discord.accounts.${accountId}.token`);
18
- if (accountToken) return {
19
- token: accountToken,
20
- source: "config"
21
- };
22
- if (hasAccountToken) return {
23
- token: "",
24
- source: "none"
25
- };
26
- const configToken = normalizeDiscordToken(discordCfg?.token ?? void 0, "channels.discord.token");
27
- if (configToken) return {
28
- token: configToken,
29
- source: "config"
30
- };
31
- const envToken = accountId === DEFAULT_ACCOUNT_ID ? normalizeDiscordToken(opts.envToken ?? process.env.DISCORD_BOT_TOKEN, "DISCORD_BOT_TOKEN") : void 0;
32
- if (envToken) return {
33
- token: envToken,
34
- source: "env"
35
- };
36
- return {
37
- token: "",
38
- source: "none"
39
- };
40
- }
41
- //#endregion
42
- export { resolveDiscordToken as n, normalizeDiscordToken as t };