@openclaw/discord 2026.5.28-beta.4 → 2026.5.28

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.
package/dist/api.js CHANGED
@@ -6,7 +6,7 @@ import { n as fetchDiscord, r as requestDiscord, t as DiscordApiError } from "./
6
6
  import { i as parseDiscordSendTarget, n as resolveDiscordTarget } from "./target-resolver-jjQzAS6T.js";
7
7
  import "./targets-BVKF5wbg.js";
8
8
  import { a as getDiscordExecApprovalApprovers, c as shouldSuppressLocalDiscordExecApprovalPrompt, o as isDiscordExecApprovalApprover, s as isDiscordExecApprovalClientEnabled } from "./conversation-identity-CsPV1Gjx.js";
9
- import { i as resolveDiscordGroupToolPolicy, n as collectDiscordStatusIssues, r as resolveDiscordGroupRequireMention, t as discordPlugin } from "./channel-BYmr1mf7.js";
9
+ import { i as resolveDiscordGroupToolPolicy, n as collectDiscordStatusIssues, r as resolveDiscordGroupRequireMention, t as discordPlugin } from "./channel-COXb22wL.js";
10
10
  import { t as normalizeExplicitDiscordSessionKey } from "./session-key-normalization-wJgsKPNF.js";
11
11
  import { t as discordSetupPlugin } from "./channel.setup-BsrP5-hv.js";
12
12
  import { n as handleDiscordSubagentEnded, r as handleDiscordSubagentSpawning, t as handleDiscordSubagentDeliveryTarget } from "./subagent-hooks-BacIbIBD.js";
@@ -5,7 +5,7 @@ import { x as resolveDiscordOutboundSessionRoute } from "./components-CjQujWa1.j
5
5
  import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.js";
6
6
  import { c as shouldSuppressLocalDiscordExecApprovalPrompt, n as resolveDiscordCurrentConversationIdentity, r as getDiscordApprovalCapability } from "./conversation-identity-CsPV1Gjx.js";
7
7
  import { r as resolveRequiredDiscordChannelPermissions } from "./audit-core-xwjIczO0.js";
8
- import { t as discordMessageActions$1 } from "./channel-actions-BcCh_k4K.js";
8
+ import { t as discordMessageActions$1 } from "./channel-actions-C2g9OmnG.js";
9
9
  import { n as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-D5gY2ZTE.js";
10
10
  import { n as discordOutbound } from "./outbound-adapter-DfY2Dtf3.js";
11
11
  import { a as discordSecurityAdapter, i as discordSetupAdapter, n as discordConfigAdapter, t as createDiscordPluginBase } from "./shared-D3NkInmq.js";
@@ -20,6 +20,18 @@ const trustedRequesterGuildAdminActions = new Set([
20
20
  "category-delete",
21
21
  "event-create"
22
22
  ]);
23
+ const localExecutionActions = new Set([
24
+ "send",
25
+ "upload-file",
26
+ "thread-reply",
27
+ "sticker",
28
+ "emoji-upload",
29
+ "sticker-upload",
30
+ "event-create"
31
+ ]);
32
+ function resolveDiscordActionExecutionMode({ action }) {
33
+ return localExecutionActions.has(action) ? "local" : "gateway";
34
+ }
23
35
  let discordChannelActionsRuntimePromise;
24
36
  async function loadDiscordChannelActionsRuntime() {
25
37
  discordChannelActionsRuntimePromise ??= import("./channel-actions.runtime-drnbrgpt.js");
@@ -127,7 +139,7 @@ function describeDiscordMessageTool({ cfg, accountId }) {
127
139
  };
128
140
  }
129
141
  const discordMessageActions = {
130
- resolveExecutionMode: ({ action }) => action === "read" || action === "search" ? "gateway" : "local",
142
+ resolveExecutionMode: resolveDiscordActionExecutionMode,
131
143
  describeMessageTool: describeDiscordMessageTool,
132
144
  requiresTrustedRequesterSender: ({ action, toolContext }) => normalizeOptionalString(toolContext?.currentChannelProvider)?.toLowerCase() === "discord" && trustedRequesterGuildAdminActions.has(action),
133
145
  extractToolSend: ({ args }) => {
@@ -1,2 +1,2 @@
1
- import { t as discordPlugin } from "./channel-BYmr1mf7.js";
1
+ import { t as discordPlugin } from "./channel-COXb22wL.js";
2
2
  export { discordPlugin };
@@ -1,3 +1,3 @@
1
1
  import { a as readDiscordChannelCreateParams, c as readDiscordParentIdParam, i as requiredGuildPermissionForModerationAction, n as isDiscordModerationAction, o as readDiscordChannelEditParams, r as readDiscordModerationCommand, s as readDiscordChannelMoveParams, t as handleDiscordAction } from "./runtime-gaB5-Wsj.js";
2
- import { t as discordMessageActions } from "./channel-actions-BcCh_k4K.js";
2
+ import { t as discordMessageActions } from "./channel-actions-C2g9OmnG.js";
3
3
  export { discordMessageActions, handleDiscordAction, isDiscordModerationAction, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, requiredGuildPermissionForModerationAction };
@@ -8,7 +8,7 @@ import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchCha
8
8
  import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-DZHJYmNF.js";
9
9
  import { a as readDiscordChannelCreateParams, c as readDiscordParentIdParam, i as requiredGuildPermissionForModerationAction, n as isDiscordModerationAction, o as readDiscordChannelEditParams, r as readDiscordModerationCommand, s as readDiscordChannelMoveParams, t as handleDiscordAction } from "./runtime-gaB5-Wsj.js";
10
10
  import { r as setDiscordRuntime } from "./runtime-DgnVQ7zW.js";
11
- import { t as discordMessageActions } from "./channel-actions-BcCh_k4K.js";
11
+ import { t as discordMessageActions } from "./channel-actions-C2g9OmnG.js";
12
12
  import { C as resolveThreadBindingMaxAgeMs, S as resolveThreadBindingMaxAgeExpiresAt, b as resolveThreadBindingIdleTimeoutMs, l as isRecentlyUnboundThreadWebhookMessage, x as resolveThreadBindingInactivityExpiresAt } from "./thread-bindings.state-BsOnj5NX.js";
13
13
  import { n as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-D5gY2ZTE.js";
14
14
  import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-D1zgoxnw.js";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.5.28-beta.4",
3
+ "version": "2026.5.28",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/discord",
9
- "version": "2026.5.28-beta.4",
9
+ "version": "2026.5.28",
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-beta.4"
19
+ "openclaw": ">=2026.5.28"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.5.28-beta.4",
3
+ "version": "2026.5.28",
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-beta.4"
19
+ "openclaw": ">=2026.5.28"
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-beta.4"
66
+ "pluginApi": ">=2026.5.28"
67
67
  },
68
68
  "build": {
69
- "openclawVersion": "2026.5.28-beta.4"
69
+ "openclawVersion": "2026.5.28"
70
70
  },
71
71
  "release": {
72
72
  "publishToClawHub": true,