@openclaw/discord 2026.11.5 → 2026.11.7

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 (61) hide show
  1. package/dist/.setup/{allow-list-BXrS8-R9.mjs → allow-list-C3j0qLDp.mjs} +1 -1
  2. package/dist/.setup/{api-BlBD4ism.mjs → api-DYRggUgK.mjs} +1 -1
  3. package/dist/.setup/{approval-handler.runtime-o2N6GRFH.mjs → approval-handler.runtime-BN4W1r0o.mjs} +5 -5
  4. package/dist/.setup/{audit-5b-FXj9R.mjs → audit-BL6EoUun.mjs} +3 -3
  5. package/dist/.setup/{channel-CplVDtyZ.mjs → channel-DdI2l55_.mjs} +21 -17
  6. package/dist/.setup/{channel.setup-B3MtmBQG.mjs → channel.setup-kNWMxlgu.mjs} +3 -3
  7. package/dist/.setup/{components-YCvQ6YLS.mjs → components-C1Phe3uw.mjs} +1 -1
  8. package/dist/.setup/{conversation-binding-route-kCTw8cij.mjs → conversation-binding-route-K_jFbvi5.mjs} +1 -1
  9. package/dist/.setup/{directory-live-DH3tpS3x.mjs → directory-live-CY2-qrHI.mjs} +5 -4
  10. package/dist/.setup/{discord-DGVSguhx.mjs → discord-BRVFhk09.mjs} +1 -1
  11. package/dist/.setup/{doctor-eujgbnpZ.mjs → doctor-RqH-6JB0.mjs} +1 -1
  12. package/dist/.setup/{guilds-eDq22iSM.mjs → guilds-BSnrns-F.mjs} +2 -2
  13. package/dist/.setup/{handle-action-CktwmzMz.mjs → handle-action-uD87h2FK.mjs} +6 -6
  14. package/dist/.setup/{handle-action.guild-admin-WLQ7fRqI.mjs → handle-action.guild-admin-CqBx_3mG.mjs} +2 -2
  15. package/dist/.setup/{listeners-Df8lx3vK.mjs → listeners-DnHLrLIN.mjs} +1 -1
  16. package/dist/.setup/{live-policy-config-DiBVuaU6.mjs → live-policy-config-y0Qy36X3.mjs} +1 -1
  17. package/dist/.setup/{message-handler-DeoWTD-4.mjs → message-handler-CWL_u0X8.mjs} +5 -5
  18. package/dist/.setup/{message-handler.preflight-DKOjgF0z.mjs → message-handler.preflight-83tpEdBG.mjs} +10 -10
  19. package/dist/.setup/{message-handler.preflight-pluralkit-CYZfXXb6.mjs → message-handler.preflight-pluralkit-Dhcx7Ifz.mjs} +4 -4
  20. package/dist/.setup/{message-handler.process-RKRgMCJy.mjs → message-handler.process-BC-wNZwK.mjs} +16 -17
  21. package/dist/.setup/{outbound-payload-BaZmjewa.mjs → outbound-payload-CK3_bDvK.mjs} +5 -5
  22. package/dist/.setup/{outbound-session-route-Cgx4i9cS.mjs → outbound-session-route-Ay_DnOOl.mjs} +5 -5
  23. package/dist/.setup/{probe-DezB-6xz.mjs → probe-CbDJojNV.mjs} +1 -1
  24. package/dist/.setup/{provider-D63dgDSw.mjs → provider-CRb3Myky.mjs} +131 -74
  25. package/dist/.setup/{provider-session.runtime-ePktW62k.mjs → provider-session.runtime-3cZpps3H.mjs} +3 -3
  26. package/dist/.setup/provider.runtime-tmkt3QOg.mjs +1 -0
  27. package/dist/.setup/{realtime-session.runtime-rlZ3WzwC.mjs → realtime-session.runtime-BRYpjS9P.mjs} +5 -3
  28. package/dist/.setup/{resolve-allowlist-common-Bk8Fj6Ik.mjs → resolve-allowlist-common-B-S0wRIw.mjs} +1 -1
  29. package/dist/.setup/{resolve-channels-Bp8frXvc.mjs → resolve-channels-g16NM6Ho.mjs} +8 -6
  30. package/dist/.setup/{resolve-users-Cvcj22sG.mjs → resolve-users-DAfOOXdy.mjs} +3 -3
  31. package/dist/.setup/{runtime-BJaCvlmq.mjs → runtime--HZ9r3tF.mjs} +10 -8
  32. package/dist/.setup/{send-CVW7V-VZ.mjs → send-CtvwfZQ2.mjs} +9 -8
  33. package/dist/.setup/{send.components-C8YXdnO_.mjs → send.components-CtLtE0yD.mjs} +6 -6
  34. package/dist/.setup/{send.outbound-Uzcmh3Yd.mjs → send.outbound-D58xXPgs.mjs} +5 -5
  35. package/dist/.setup/{send.receipt-NZDOTZBU.mjs → send.receipt-DLOV4qx6.mjs} +1 -1
  36. package/dist/.setup/{send.shared-a_6Oeyg1.mjs → send.shared-B_KKRrD7.mjs} +4 -4
  37. package/dist/.setup/{sender-identity-76HFb8eK.mjs → sender-identity-BbA7FNbr.mjs} +1 -1
  38. package/dist/.setup/setup-plugin-api-ty5RJrMy.mjs +2 -0
  39. package/dist/.setup/{shared-yDUSExm2.mjs → shared-Dv2DamaK.mjs} +2 -2
  40. package/dist/.setup/{subagent-hooks-CDkdHQyy.mjs → subagent-hooks-yT45eTyz.mjs} +1 -1
  41. package/dist/.setup/{system-events-yfWz150v.mjs → system-events-Dlzp9Jcj.mjs} +2 -2
  42. package/dist/.setup/{target-resolver-BOOzqxxM.mjs → target-resolver-BzaZPBm9.mjs} +2 -2
  43. package/dist/.setup/{thread-bindings-zce4cpu_.mjs → thread-bindings-DRWhgKCc.mjs} +2 -2
  44. package/dist/.setup/{thread-bindings.manager-NywKzUtc.mjs → thread-bindings.manager-CWJKirn1.mjs} +7 -7
  45. package/dist/.setup/{thread-bindings.session-updates-D0j7oh8S.mjs → thread-bindings.session-updates-DzJrXc4w.mjs} +1 -1
  46. package/dist/.setup/{threading-DodLYDt-.mjs → threading-BbsPuT5G.mjs} +2 -2
  47. package/dist/.setup/{transcripts-source-ie9GBWaU.mjs → transcripts-source-DIW1fU_P.mjs} +15 -15
  48. package/dist/.setup/{voice-runtime-Dc8Su9Cm.mjs → voice-runtime-oJ6BZs5D.mjs} +10 -9
  49. package/dist/.source-module-urls/d6c089460280c5a04184542d6712e04545caeb1ebb290d3504377b4cc5e22fea.json +1 -1
  50. package/dist/action-runtime-api.js +1 -1
  51. package/dist/activities-api.js +1 -1
  52. package/dist/api.js +11 -11
  53. package/dist/channel-plugin-api.js +1 -1
  54. package/dist/runtime-api.js +19 -19
  55. package/dist/setup-entry.js +1 -1
  56. package/dist/setup-plugin-api.js +1 -1
  57. package/dist/subagent-hooks-api.js +1 -1
  58. package/dist/transcripts-source-api.js +1 -1
  59. package/package.json +4 -4
  60. package/dist/.setup/provider.runtime-DcNkwhPW.mjs +0 -1
  61. package/dist/.setup/setup-plugin-api-BExhGEhL.mjs +0 -2
@@ -69,7 +69,7 @@ function normalizeDiscordSlug(value) {
69
69
  return normalizeChannelSlug(value);
70
70
  }
71
71
  function normalizeDiscordDisplaySlug(value) {
72
- return normalizeLowercaseStringOrEmpty(value).normalize("NFC").replace(/^#/, "").replace(/[\s_]+/g, "-").replace(/[^\p{L}\p{M}\p{N}-]+/gu, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "");
72
+ return normalizeLowercaseStringOrEmpty(value).normalize("NFC").replace(/[\uFE0E\uFE0F\u20E3]/g, "").replace(/^#/, "").replace(/[\s_]+/g, "-").replace(/[^\p{L}\p{M}\p{N}-]+/gu, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "");
73
73
  }
74
74
  function allowListMatches(list, candidate, params) {
75
75
  return resolveDiscordAllowListMatch({
@@ -1,4 +1,4 @@
1
- import { C as parseDiscordRetryAfterBodySeconds } from "./allow-list-BXrS8-R9.mjs";
1
+ import { C as parseDiscordRetryAfterBodySeconds } from "./allow-list-C3j0qLDp.mjs";
2
2
  import { n as getDiscordEndpointRuntime } from "./endpoint-runtime-lf4DeLas.mjs";
3
3
  import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
4
4
  import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
@@ -1,10 +1,10 @@
1
- import { D as createDiscordMessageNonce, M as createDiscordClient } from "./send.shared-a_6Oeyg1.mjs";
2
- import { D as editChannelMessage, E as deleteChannelMessage, J as stripUndefinedFields, f as serializePayload, w as createChannelMessage, y as createUserDmChannel } from "./discord-DGVSguhx.mjs";
3
- import { y as findGraphemeChunkEnd } from "./send.receipt-NZDOTZBU.mjs";
1
+ import { D as createDiscordMessageNonce, M as createDiscordClient } from "./send.shared-B_KKRrD7.mjs";
2
+ import { D as editChannelMessage, E as deleteChannelMessage, J as stripUndefinedFields, f as serializePayload, w as createChannelMessage, y as createUserDmChannel } from "./discord-BRVFhk09.mjs";
3
+ import { y as findGraphemeChunkEnd } from "./send.receipt-DLOV4qx6.mjs";
4
4
  import { r as colorToNumber } from "./components.base-CiS0h_XP.mjs";
5
5
  import { a as DISCORD_APPROVAL_DECISIONS, o as buildExecApprovalCustomId } from "./shared-interactive-DmzaoKOM.mjs";
6
- import { c as formatDiscordApprovalDisplayValue, k as isDiscordExecApprovalClientEnabled, s as DISCORD_APPROVAL_ALLOWED_MENTIONS } from "./outbound-session-route-Cgx4i9cS.mjs";
7
- import { r as shouldHandleDiscordApprovalRequest } from "./channel-CplVDtyZ.mjs";
6
+ import { c as formatDiscordApprovalDisplayValue, k as isDiscordExecApprovalClientEnabled, s as DISCORD_APPROVAL_ALLOWED_MENTIONS } from "./outbound-session-route-Ay_DnOOl.mjs";
7
+ import { r as shouldHandleDiscordApprovalRequest } from "./channel-DdI2l55_.mjs";
8
8
  import { t as discordApprovalMessageUpdates } from "./approval-message-updates-DKsCfxSW.mjs";
9
9
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { ButtonStyle, ComponentType } from "discord-api-types/v10";
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
2
  import { t as inspectDiscordAccount } from "./account-inspect-DGkdWwix.mjs";
3
- import { b as fetchChannelPermissionsDiscord } from "./send.shared-a_6Oeyg1.mjs";
4
- import "./send-CVW7V-VZ.mjs";
5
- import { T as collectDiscordAuditChannelIdsForAccount, w as auditDiscordChannelPermissionsWithFetcher } from "./outbound-session-route-Cgx4i9cS.mjs";
3
+ import { b as fetchChannelPermissionsDiscord } from "./send.shared-B_KKRrD7.mjs";
4
+ import "./send-CtvwfZQ2.mjs";
5
+ import { T as collectDiscordAuditChannelIdsForAccount, w as auditDiscordChannelPermissionsWithFetcher } from "./outbound-session-route-Ay_DnOOl.mjs";
6
6
  //#region extensions/discord/src/audit.ts
7
7
  var audit_exports = /* @__PURE__ */ __exportAll({
8
8
  auditDiscordChannelPermissions: () => auditDiscordChannelPermissions,
@@ -1,16 +1,16 @@
1
1
  import { a as listDiscordStartupAccountIds, c as resolveDefaultDiscordAccountId, d as resolveDiscordAccountConfig, i as listDiscordAccountIds, l as resolveDiscordAccount, u as resolveDiscordAccountAllowFrom } from "./accounts-C_25wyxC.mjs";
2
- import { q as withDiscordRequestAuthority } from "./discord-DGVSguhx.mjs";
3
- import { c as normalizeDiscordMessagingTarget, o as looksLikeDiscordTargetId, s as matchesDiscordToolContextTarget } from "./send.receipt-NZDOTZBU.mjs";
2
+ import { q as withDiscordRequestAuthority } from "./discord-BRVFhk09.mjs";
3
+ import { c as normalizeDiscordMessagingTarget, o as looksLikeDiscordTargetId, s as matchesDiscordToolContextTarget } from "./send.receipt-DLOV4qx6.mjs";
4
4
  import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
5
5
  import { l as withAbortTimeout } from "./timeouts-cIxzatmv.mjs";
6
6
  import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
7
- import { A as shouldSuppressLocalDiscordExecApprovalPrompt, D as getDiscordExecApprovalApprovers, E as resolveRequiredDiscordChannelPermissions, O as isDiscordExecApprovalApprover, b as discordMessageActions, k as isDiscordExecApprovalClientEnabled, l as resolveDiscordGroupRequireMention, m as resolveDiscordConversationRoute, t as resolveDiscordOutboundSessionRoute, u as resolveDiscordGroupToolPolicy, y as resolveDiscordRuntimeBindingConversationId } from "./outbound-session-route-Cgx4i9cS.mjs";
8
- import { a as resolveDiscordInboundConversation, i as resolveDiscordCommandConversation, n as discordOutbound, r as resolveDiscordAttachedOutboundTarget } from "./outbound-payload-BaZmjewa.mjs";
7
+ import { A as shouldSuppressLocalDiscordExecApprovalPrompt, D as getDiscordExecApprovalApprovers, E as resolveRequiredDiscordChannelPermissions, O as isDiscordExecApprovalApprover, b as discordMessageActions, k as isDiscordExecApprovalClientEnabled, l as resolveDiscordGroupRequireMention, m as resolveDiscordConversationRoute, t as resolveDiscordOutboundSessionRoute, u as resolveDiscordGroupToolPolicy, y as resolveDiscordRuntimeBindingConversationId } from "./outbound-session-route-Ay_DnOOl.mjs";
8
+ import { a as resolveDiscordInboundConversation, i as resolveDiscordCommandConversation, n as discordOutbound, r as resolveDiscordAttachedOutboundTarget } from "./outbound-payload-CK3_bDvK.mjs";
9
9
  import { r as openDiscordCommandDeployHashStore } from "./command-deploy-store-DFkBTViB.mjs";
10
- import { t as resolveDiscordConversationBindingRoute } from "./conversation-binding-route-kCTw8cij.mjs";
11
- import { i as discordSecurityAdapter, n as discordConfigAdapter, r as discordSetupContract, t as createDiscordPluginBase } from "./shared-yDUSExm2.mjs";
10
+ import { t as resolveDiscordConversationBindingRoute } from "./conversation-binding-route-K_jFbvi5.mjs";
11
+ import { i as discordSecurityAdapter, n as discordConfigAdapter, r as discordSetupContract, t as createDiscordPluginBase } from "./shared-Dv2DamaK.mjs";
12
12
  import { t as normalizeExplicitDiscordSessionKey } from "./session-key-normalization-CCHGNSQw.mjs";
13
- import { i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-D0j7oh8S.mjs";
13
+ import { i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-DzJrXc4w.mjs";
14
14
  import { t as defaultTopLevelPlacement } from "./thread-binding-api-BDZJD4na.mjs";
15
15
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
16
16
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -162,28 +162,28 @@ function getDiscordApprovalCapability() {
162
162
  accountId
163
163
  }),
164
164
  shouldHandle: shouldHandleDiscordApprovalRequest,
165
- load: async () => (await import("./approval-handler.runtime-o2N6GRFH.mjs")).discordApprovalNativeRuntime
165
+ load: async () => (await import("./approval-handler.runtime-BN4W1r0o.mjs")).discordApprovalNativeRuntime
166
166
  })
167
167
  });
168
168
  }
169
169
  //#endregion
170
170
  //#region extensions/discord/src/channel.loaders.ts
171
171
  const loadDiscordDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-Ble81PWH.mjs").then((n) => n.t));
172
- const loadDiscordResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-Bp8frXvc.mjs").then((n) => n.n));
173
- const loadDiscordResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-Cvcj22sG.mjs").then((n) => n.n));
174
- const loadDiscordThreadBindingsManagerModule = createLazyRuntimeModule(() => import("./thread-bindings.manager-NywKzUtc.mjs").then((n) => n.r));
175
- const loadDiscordTargetResolverModule = createLazyRuntimeModule(() => import("./target-resolver-BOOzqxxM.mjs").then((n) => n.r));
176
- const loadDiscordProviderRuntime = createLazyRuntimeModule(() => import("./provider.runtime-DcNkwhPW.mjs"));
177
- const loadDiscordProbeRuntime = createLazyRuntimeModule(() => import("./probe-DezB-6xz.mjs").then((n) => n.o));
172
+ const loadDiscordResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-g16NM6Ho.mjs").then((n) => n.n));
173
+ const loadDiscordResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-DAfOOXdy.mjs").then((n) => n.n));
174
+ const loadDiscordThreadBindingsManagerModule = createLazyRuntimeModule(() => import("./thread-bindings.manager-CWJKirn1.mjs").then((n) => n.r));
175
+ const loadDiscordTargetResolverModule = createLazyRuntimeModule(() => import("./target-resolver-BzaZPBm9.mjs").then((n) => n.r));
176
+ const loadDiscordProviderRuntime = createLazyRuntimeModule(() => import("./provider.runtime-tmkt3QOg.mjs"));
177
+ const loadDiscordProbeRuntime = createLazyRuntimeModule(() => import("./probe-CbDJojNV.mjs").then((n) => n.o));
178
178
  async function probeDiscordStatusAccount(params) {
179
179
  const startedAtMs = Date.now();
180
180
  const runtime = await loadDiscordProbeRuntime();
181
181
  const remainingMs = Math.max(1, params.timeoutMs - Math.max(0, Date.now() - startedAtMs));
182
182
  return await runtime.probeDiscord(params.token, remainingMs, { includeApplication: true });
183
183
  }
184
- const loadDiscordAuditModule = createLazyRuntimeModule(() => import("./audit-5b-FXj9R.mjs").then((n) => n.n));
185
- const loadDiscordSendModule = createLazyRuntimeModule(() => import("./send-CVW7V-VZ.mjs").then((n) => n.t));
186
- const loadDiscordDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-DH3tpS3x.mjs").then((n) => n.t));
184
+ const loadDiscordAuditModule = createLazyRuntimeModule(() => import("./audit-BL6EoUun.mjs").then((n) => n.n));
185
+ const loadDiscordSendModule = createLazyRuntimeModule(() => import("./send-CtvwfZQ2.mjs").then((n) => n.t));
186
+ const loadDiscordDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-CY2-qrHI.mjs").then((n) => n.t));
187
187
  //#endregion
188
188
  //#region extensions/discord/src/conversation-route-owner.ts
189
189
  async function prepareDiscordConversationRouteOwnersAsync(inputs, inspectBindings) {
@@ -792,6 +792,10 @@ const discordPlugin = createChatChannelPlugin({
792
792
  security: discordSecurityAdapter,
793
793
  threading: {
794
794
  matchesToolContextTarget: matchesDiscordToolContextTarget,
795
+ isThreadAddressedByTarget: ({ to, threadId }) => /^\d+$/.test(String(threadId)) && to === resolveDiscordAttachedOutboundTarget({
796
+ to,
797
+ threadId
798
+ }),
795
799
  resolveAutoThreadId: ({ to, toolContext }) => {
796
800
  const threadId = normalizeOptionalString(toolContext?.currentThreadTs);
797
801
  if (!threadId) return;
@@ -1,7 +1,7 @@
1
1
  import { c as resolveDefaultDiscordAccountId, g as resolveDiscordToken, n as inspectDiscordAccountConfig, s as mergeDiscordAccountConfig, u as resolveDiscordAccountAllowFrom } from "./accounts-C_25wyxC.mjs";
2
- import { r as discordSetupContract, t as createDiscordPluginBase } from "./shared-yDUSExm2.mjs";
3
- import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-Bp8frXvc.mjs";
4
- import { t as resolveDiscordUserAllowlist } from "./resolve-users-Cvcj22sG.mjs";
2
+ import { r as discordSetupContract, t as createDiscordPluginBase } from "./shared-Dv2DamaK.mjs";
3
+ import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-g16NM6Ho.mjs";
4
+ import { t as resolveDiscordUserAllowlist } from "./resolve-users-DAfOOXdy.mjs";
5
5
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { resolveBasicAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
- import { J as stripUndefinedFields, a as Label, c as TextInput, i as CheckboxGroup, o as Modal, s as RadioGroup, u as asSerializableComponent } from "./discord-DGVSguhx.mjs";
2
+ import { J as stripUndefinedFields, a as Label, c as TextInput, i as CheckboxGroup, o as Modal, s as RadioGroup, u as asSerializableComponent } from "./discord-BRVFhk09.mjs";
3
3
  import { i as parseCustomId, r as colorToNumber, t as BaseMessageInteractiveComponent } from "./components.base-CiS0h_XP.mjs";
4
4
  import { _ as parseDiscordModalCustomId, c as DISCORD_COMPONENT_CUSTOM_ID_KEY, d as buildDiscordComponentCustomId, f as buildDiscordModalCustomId, g as parseDiscordComponentCustomIdForInteraction, h as parseDiscordComponentCustomId, l as DISCORD_MODAL_CUSTOM_ID_KEY, t as buildDiscordInteractiveComponents, v as parseDiscordModalCustomIdForInteraction } from "./shared-interactive-DmzaoKOM.mjs";
5
5
  import { asBoolean, asOptionalRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString, readNonBlankString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,4 +1,4 @@
1
- import { g as shouldIgnoreStaleDiscordRouteBinding } from "./outbound-session-route-Cgx4i9cS.mjs";
1
+ import { g as shouldIgnoreStaleDiscordRouteBinding } from "./outbound-session-route-Ay_DnOOl.mjs";
2
2
  import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
3
3
  import { inspectRuntimeConversationBindingRoute, resolveConfiguredBindingRoute, resolveRuntimeConversationBindingRouteAsync } from "openclaw/plugin-sdk/conversation-binding-runtime";
4
4
  //#region extensions/discord/src/monitor/conversation-binding-route.ts
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
2
  import { h as normalizeDiscordToken, l as resolveDiscordAccount } from "./accounts-C_25wyxC.mjs";
3
- import { o as normalizeDiscordSlug } from "./allow-list-BXrS8-R9.mjs";
4
- import { t as DISCORD_DIRECTORY_LOOKUP_TIMEOUT_MS } from "./api-BlBD4ism.mjs";
5
- import { n as listGuilds, r as searchDiscordGuildMembers, t as listDiscordGuildChannels } from "./guilds-eDq22iSM.mjs";
3
+ import { a as normalizeDiscordDisplaySlug } from "./allow-list-C3j0qLDp.mjs";
4
+ import { t as DISCORD_DIRECTORY_LOOKUP_TIMEOUT_MS } from "./api-DYRggUgK.mjs";
5
+ import { n as listGuilds, r as searchDiscordGuildMembers, t as listDiscordGuildChannels } from "./guilds-BSnrns-F.mjs";
6
6
  import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
7
7
  import { normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
@@ -81,6 +81,7 @@ async function listDiscordDirectoryLive(params, kind) {
81
81
  const access = resolveDiscordDirectoryAccess(params);
82
82
  if (!access || kind === "user" && !access.query) return [];
83
83
  const { token, query, accountId } = access;
84
+ const channelQuery = normalizeDiscordDisplaySlug(query);
84
85
  const guilds = await listGuilds(token, fetch, { timeoutMs: DISCORD_DIRECTORY_LOOKUP_TIMEOUT_MS });
85
86
  const rows = [];
86
87
  const seenUserIds = /* @__PURE__ */ new Set();
@@ -92,7 +93,7 @@ async function listDiscordDirectoryLive(params, kind) {
92
93
  for (const channel of channels) {
93
94
  const name = channel.name?.trim();
94
95
  if (!name) continue;
95
- if (query && !normalizeDiscordSlug(name).includes(normalizeDiscordSlug(query))) continue;
96
+ if (channelQuery && !normalizeDiscordDisplaySlug(name).includes(channelQuery)) continue;
96
97
  rows.push({
97
98
  kind: "group",
98
99
  id: `channel:${channel.id}`,
@@ -1,5 +1,5 @@
1
1
  import { n as __reExport, t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
- import { C as parseDiscordRetryAfterBodySeconds } from "./allow-list-BXrS8-R9.mjs";
2
+ import { C as parseDiscordRetryAfterBodySeconds } from "./allow-list-C3j0qLDp.mjs";
3
3
  import { n as getDiscordEndpointRuntime } from "./endpoint-runtime-lf4DeLas.mjs";
4
4
  import { i as parseCustomId, n as BaseModalComponent, t as BaseMessageInteractiveComponent } from "./components.base-CiS0h_XP.mjs";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -3,7 +3,7 @@ import { t as inspectDiscordAccount } from "./account-inspect-DGkdWwix.mjs";
3
3
  import { t as runtime_doctor_migrations_exports } from "./runtime-doctor-migrations-BPV-R4G9.mjs";
4
4
  import { n as normalizeCompatibilityConfig } from "./doctor-contract-Bwv8EuQ_.mjs";
5
5
  import { t as isDiscordMutableAllowEntry } from "./security-doctor-nGgPm65L.mjs";
6
- import { n as discordVoiceTranscriptsSourceProvider } from "./transcripts-source-ie9GBWaU.mjs";
6
+ import { n as discordVoiceTranscriptsSourceProvider } from "./transcripts-source-DIW1fU_P.mjs";
7
7
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
9
9
  //#region extensions/discord/src/doctor.ts
@@ -1,5 +1,5 @@
1
- import { o as normalizeDiscordSlug } from "./allow-list-BXrS8-R9.mjs";
2
- import { r as fetchDiscord, t as DISCORD_DIRECTORY_LOOKUP_TIMEOUT_MS } from "./api-BlBD4ism.mjs";
1
+ import { o as normalizeDiscordSlug } from "./allow-list-C3j0qLDp.mjs";
2
+ import { r as fetchDiscord, t as DISCORD_DIRECTORY_LOOKUP_TIMEOUT_MS } from "./api-DYRggUgK.mjs";
3
3
  //#region extensions/discord/src/guilds.ts
4
4
  function listDiscordGuildChannels(token, fetcher, guildId) {
5
5
  return fetchDiscord(`/guilds/${guildId}/channels`, token, fetcher, { timeoutMs: DISCORD_DIRECTORY_LOOKUP_TIMEOUT_MS });
@@ -1,12 +1,12 @@
1
- import { q as withDiscordRequestAuthority } from "./discord-DGVSguhx.mjs";
2
- import { s as matchesDiscordToolContextTarget } from "./send.receipt-NZDOTZBU.mjs";
1
+ import { q as withDiscordRequestAuthority } from "./discord-BRVFhk09.mjs";
2
+ import { s as matchesDiscordToolContextTarget } from "./send.receipt-DLOV4qx6.mjs";
3
3
  import { n as resolveDiscordChannelId, t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
4
- import { a as readDiscordAutoArchiveDurationParam, t as handleDiscordAction } from "./runtime-BJaCvlmq.mjs";
4
+ import { a as readDiscordAutoArchiveDurationParam, t as handleDiscordAction } from "./runtime--HZ9r3tF.mjs";
5
5
  import { n as buildDiscordPresentationComponents, t as buildDiscordInteractiveComponents } from "./shared-interactive-DmzaoKOM.mjs";
6
- import { c as coerceDiscordComponentParam } from "./components-YCvQ6YLS.mjs";
6
+ import { c as coerceDiscordComponentParam } from "./components-C1Phe3uw.mjs";
7
7
  import "../action-runtime-api.js";
8
- import { S as discordInboundEventDelivery, i as isDiscordComponentSpecWithinMessageLimit, n as DISCORD_PRESENTATION_CAPABILITIES } from "./outbound-session-route-Cgx4i9cS.mjs";
9
- import { t as tryHandleDiscordMessageActionGuildAdmin } from "./handle-action.guild-admin-WLQ7fRqI.mjs";
8
+ import { S as discordInboundEventDelivery, i as isDiscordComponentSpecWithinMessageLimit, n as DISCORD_PRESENTATION_CAPABILITIES } from "./outbound-session-route-Ay_DnOOl.mjs";
9
+ import { t as tryHandleDiscordMessageActionGuildAdmin } from "./handle-action.guild-admin-CqBx_3mG.mjs";
10
10
  import { n as notifyDiscordActiveTurnThreadCreated, r as notifyDiscordActiveTurnThreadReplyDelivered } from "./active-turn-thread-route-KvRTAVE3.mjs";
11
11
  import { asOptionalRecord, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
12
12
  import { resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
@@ -1,6 +1,6 @@
1
- import { c as readDiscordChannelMoveParams, n as isDiscordModerationAction, o as readDiscordChannelCreateParams, r as readDiscordModerationCommand, s as readDiscordChannelEditParams, t as handleDiscordAction } from "./runtime-BJaCvlmq.mjs";
1
+ import { c as readDiscordChannelMoveParams, n as isDiscordModerationAction, o as readDiscordChannelCreateParams, r as readDiscordModerationCommand, s as readDiscordChannelEditParams, t as handleDiscordAction } from "./runtime--HZ9r3tF.mjs";
2
2
  import "../action-runtime-api.js";
3
- import { x as isTrustedRequesterGuildAdminAction } from "./outbound-session-route-Cgx4i9cS.mjs";
3
+ import { x as isTrustedRequesterGuildAdminAction } from "./outbound-session-route-Ay_DnOOl.mjs";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
6
6
  import { readNonNegativeIntegerParam, readPositiveIntegerParam, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/param-readers";
@@ -1,4 +1,4 @@
1
- import { t as discord_exports } from "./discord-DGVSguhx.mjs";
1
+ import { t as discord_exports } from "./discord-BRVFhk09.mjs";
2
2
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/ssrf-runtime";
4
4
  //#region extensions/discord/src/voice/listeners.ts
@@ -1,4 +1,4 @@
1
- import { i as normalizeDiscordAllowList } from "./allow-list-BXrS8-R9.mjs";
1
+ import { i as normalizeDiscordAllowList } from "./allow-list-C3j0qLDp.mjs";
2
2
  import { defineStableChannelIngressIdentity } from "openclaw/plugin-sdk/channel-ingress-runtime";
3
3
  //#region extensions/discord/src/monitor/ingress-identity.ts
4
4
  const DISCORD_ALLOW_LIST_PREFIXES = [
@@ -1,8 +1,8 @@
1
- import { q as withDiscordRequestAuthority } from "./discord-DGVSguhx.mjs";
1
+ import { q as withDiscordRequestAuthority } from "./discord-BRVFhk09.mjs";
2
2
  import { i as resolveDiscordEndpointMediaGuard, n as getDiscordEndpointRuntime } from "./endpoint-runtime-lf4DeLas.mjs";
3
3
  import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
4
- import { D as createMessageDispatchData, E as createDiscordLivePolicyReader } from "./provider-D63dgDSw.mjs";
5
- import { E as hasDiscordMessageStickers, T as resolveDiscordCdnPolicy, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, k as resolveDiscordReferencedReplyMessageId } from "./transcripts-source-ie9GBWaU.mjs";
4
+ import { D as createMessageDispatchData, E as createDiscordLivePolicyReader } from "./provider-CRb3Myky.mjs";
5
+ import { E as hasDiscordMessageStickers, T as resolveDiscordCdnPolicy, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, k as resolveDiscordReferencedReplyMessageId } from "./transcripts-source-DIW1fU_P.mjs";
6
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
8
8
  import { danger } from "openclaw/plugin-sdk/runtime-env";
@@ -217,8 +217,8 @@ function createDiscordAvatarResolver() {
217
217
  }
218
218
  //#endregion
219
219
  //#region extensions/discord/src/monitor/message-dispatcher.ts
220
- const loadMessagePreflightRuntime = createLazyRuntimeModule(() => import("./message-handler.preflight-DKOjgF0z.mjs"));
221
- const loadMessageProcessRuntime = createLazyRuntimeModule(() => import("./message-handler.process-RKRgMCJy.mjs"));
220
+ const loadMessagePreflightRuntime = createLazyRuntimeModule(() => import("./message-handler.preflight-83tpEdBG.mjs"));
221
+ const loadMessageProcessRuntime = createLazyRuntimeModule(() => import("./message-handler.process-BC-wNZwK.mjs"));
222
222
  function createDiscordMessageDispatcher(params) {
223
223
  const readPolicy = params.readPolicy ?? createDiscordLivePolicyReader({
224
224
  ...params,
@@ -1,14 +1,14 @@
1
1
  import { c as resolveDefaultDiscordAccountId } from "./accounts-C_25wyxC.mjs";
2
- import { h as Message, k as getChannelMessage, t as discord_exports } from "./discord-DGVSguhx.mjs";
3
- import { S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState } from "./allow-list-BXrS8-R9.mjs";
2
+ import { h as Message, k as getChannelMessage, t as discord_exports } from "./discord-BRVFhk09.mjs";
3
+ import { S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState } from "./allow-list-C3j0qLDp.mjs";
4
4
  import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-cIxzatmv.mjs";
5
- import { _ as resolveDiscordConversationIdentity, h as resolveDiscordEffectiveRoute, m as resolveDiscordConversationRoute, p as buildDiscordRoutePeer, y as resolveDiscordRuntimeBindingConversationId } from "./outbound-session-route-Cgx4i9cS.mjs";
6
- import { n as resolveDiscordConversationBindingRouteAsync } from "./conversation-binding-route-kCTw8cij.mjs";
5
+ import { _ as resolveDiscordConversationIdentity, h as resolveDiscordEffectiveRoute, m as resolveDiscordConversationRoute, p as buildDiscordRoutePeer, y as resolveDiscordRuntimeBindingConversationId } from "./outbound-session-route-Ay_DnOOl.mjs";
6
+ import { n as resolveDiscordConversationBindingRouteAsync } from "./conversation-binding-route-K_jFbvi5.mjs";
7
7
  import { n as resolveDiscordChannelNameSafe } from "./channel-access-9cyzozUP.mjs";
8
- import { A as resolveDiscordTextCommandAccess, T as handleDiscordDmCommandDecision, k as resolveDiscordDmCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-D63dgDSw.mjs";
9
- import { A as resolveDiscordChannelInfo, C as resolveMediaList, D as resolveDiscordMessageStickers, O as resolveDiscordReferencedReplyMessage, S as resolveForwardedMediaList, _ as resolveDiscordMessageBatch, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, v as resolveDiscordMessageHistoryText, y as resolveDiscordMessageMentionDocuments } from "./transcripts-source-ie9GBWaU.mjs";
10
- import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-76HFb8eK.mjs";
11
- import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, n as loadDiscordThreadingRuntime, p as shouldIgnoreBoundThreadWebhookMessage, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-CYZfXXb6.mjs";
8
+ import { A as resolveDiscordTextCommandAccess, T as handleDiscordDmCommandDecision, k as resolveDiscordDmCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-CRb3Myky.mjs";
9
+ import { A as resolveDiscordChannelInfo, C as resolveMediaList, D as resolveDiscordMessageStickers, O as resolveDiscordReferencedReplyMessage, S as resolveForwardedMediaList, _ as resolveDiscordMessageBatch, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, v as resolveDiscordMessageHistoryText, y as resolveDiscordMessageMentionDocuments } from "./transcripts-source-DIW1fU_P.mjs";
10
+ import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-BbA7FNbr.mjs";
11
+ import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, n as loadDiscordThreadingRuntime, p as shouldIgnoreBoundThreadWebhookMessage, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-Dhcx7Ifz.mjs";
12
12
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
13
13
  import { getChildLogger, logVerbose } from "openclaw/plugin-sdk/runtime-env";
14
14
  import { MessageReferenceType, MessageType } from "discord-api-types/v10";
@@ -18,15 +18,15 @@ import { recordChannelActivity } from "openclaw/plugin-sdk/channel-activity-runt
18
18
  import { isRecentOutboundMessageIdentity } from "openclaw/plugin-sdk/channel-outbound";
19
19
  import { mimeTypeFromFilePath } from "openclaw/plugin-sdk/media-mime";
20
20
  import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-name-runtime";
21
- import { enqueueRoutedSystemEvent } from "openclaw/plugin-sdk/system-event-runtime";
22
21
  import { buildMentionRegexes, classifyChannelInboundEvent, logInboundDrop, recordChannelBotPairLoopAndCheckSuppression, resolveGroupThreadMentionFacts, resolveInboundMentionDecision, resolveUnmentionedGroupInboundPolicy, toHistoryMediaEntries, toInboundMediaFactsWithMetadata } from "openclaw/plugin-sdk/channel-inbound";
22
+ import { enqueueRoutedSystemEvent } from "openclaw/plugin-sdk/system-event-runtime";
23
23
  import { hasControlCommand } from "openclaw/plugin-sdk/command-detection";
24
24
  import { isAbortRequestText } from "openclaw/plugin-sdk/command-primitives-runtime";
25
25
  import { shouldHandleTextCommands } from "openclaw/plugin-sdk/command-surface";
26
26
  import { createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
27
27
  //#region extensions/discord/src/monitor/message-handler.dm-preflight.ts
28
28
  const loadConversationRuntime$1 = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/conversation-binding-runtime"));
29
- const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-CVW7V-VZ.mjs").then((n) => n.t));
29
+ const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-CtvwfZQ2.mjs").then((n) => n.t));
30
30
  async function resolveDiscordDmPreflightAccess(params) {
31
31
  if (params.dmPolicy === "disabled") {
32
32
  logVerbose("discord: drop dm (dmPolicy: disabled)");
@@ -1,5 +1,5 @@
1
- import { w as isDiscordThreadChannelType } from "./allow-list-BXrS8-R9.mjs";
2
- import { D as resolveDiscordMessageStickers } from "./transcripts-source-ie9GBWaU.mjs";
1
+ import { w as isDiscordThreadChannelType } from "./allow-list-C3j0qLDp.mjs";
2
+ import { D as resolveDiscordMessageStickers } from "./transcripts-source-DIW1fU_P.mjs";
3
3
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -100,8 +100,8 @@ function resolveDiscordHistoryMediaIds(message) {
100
100
  //#region extensions/discord/src/monitor/message-handler.preflight-runtime.ts
101
101
  const loadPluralKitRuntime = createLazyRuntimeModule(() => import("./pluralkit-B64dfq_j.mjs").then((n) => n.n));
102
102
  const loadPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio-C6QtD6HX.mjs"));
103
- const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-yfWz150v.mjs"));
104
- const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-DodLYDt-.mjs").then((n) => n.t));
103
+ const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-Dlzp9Jcj.mjs"));
104
+ const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-BbsPuT5G.mjs").then((n) => n.t));
105
105
  //#endregion
106
106
  //#region extensions/discord/src/monitor/message-handler.preflight-pluralkit.ts
107
107
  async function resolveDiscordPreflightPluralKitInfo(params) {
@@ -1,20 +1,20 @@
1
1
  import { m as resolveDiscordMaxLinesPerMessage } from "./accounts-C_25wyxC.mjs";
2
- import { N as createDiscordRestClient, O as resolveDiscordMessageFlags, P as createDiscordRuntimeAccountContext, u as resolveDiscordTargetChannelId } from "./send.shared-a_6Oeyg1.mjs";
3
- import { D as editChannelMessage, E as deleteChannelMessage, K as captureDiscordRequestAuthority, P as getGuildMember, h as Message, q as withDiscordRequestAuthority, t as discord_exports } from "./discord-DGVSguhx.mjs";
4
- import { i as normalizeDiscordAllowList, o as normalizeDiscordSlug } from "./allow-list-BXrS8-R9.mjs";
5
- import { h as createDiscordRetryRunner, v as chunkDiscordTextWithMode } from "./send.receipt-NZDOTZBU.mjs";
2
+ import { N as createDiscordRestClient, O as resolveDiscordMessageFlags, P as createDiscordRuntimeAccountContext, u as resolveDiscordTargetChannelId } from "./send.shared-B_KKRrD7.mjs";
3
+ import { D as editChannelMessage, E as deleteChannelMessage, K as captureDiscordRequestAuthority, P as getGuildMember, h as Message, q as withDiscordRequestAuthority, t as discord_exports } from "./discord-BRVFhk09.mjs";
4
+ import { i as normalizeDiscordAllowList, o as normalizeDiscordSlug } from "./allow-list-C3j0qLDp.mjs";
5
+ import { h as createDiscordRetryRunner, v as chunkDiscordTextWithMode } from "./send.receipt-DLOV4qx6.mjs";
6
6
  import { n as resolveDiscordChannelId } from "./target-parsing-C-HyNxcE.mjs";
7
- import { a as removeReactionDiscord, r as reactMessageDiscord } from "./send-CVW7V-VZ.mjs";
8
- import { o as discordTextHasBroadcastMention } from "./send.outbound-Uzcmh3Yd.mjs";
7
+ import { a as removeReactionDiscord, r as reactMessageDiscord } from "./send-CtvwfZQ2.mjs";
8
+ import { o as discordTextHasBroadcastMention } from "./send.outbound-D58xXPgs.mjs";
9
9
  import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-cIxzatmv.mjs";
10
- import { S as discordInboundEventDelivery, _ as resolveDiscordConversationIdentity, p as buildDiscordRoutePeer } from "./outbound-session-route-Cgx4i9cS.mjs";
11
- import { t as DISCORD_TEXT_CHUNK_LIMIT } from "./outbound-payload-BaZmjewa.mjs";
12
- import { C as buildDiscordInboundAccessContext, c as formatDiscordReplySkip, d as buildGuildLabel, f as resolveReplyContext, l as sanitizeDiscordFrontChannelReplyPayloads, o as deliverDiscordReply, s as formatDiscordReplyDeliveryFailure, u as buildDirectLabel, w as createDiscordSupplementalContextAccessChecker } from "./provider-D63dgDSw.mjs";
13
- import { D as resolveDiscordMessageStickers, b as resolveDiscordMessageText, h as resolveDiscordThreadStarter, k as resolveDiscordReferencedReplyMessageId, v as resolveDiscordMessageHistoryText, w as resolveReferencedReplyMediaList, x as formatDiscordMediaText } from "./transcripts-source-ie9GBWaU.mjs";
14
- import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-76HFb8eK.mjs";
15
- import { n as resolveDiscordAutoThreadReplyPlan } from "./threading-DodLYDt-.mjs";
10
+ import { S as discordInboundEventDelivery, _ as resolveDiscordConversationIdentity, p as buildDiscordRoutePeer } from "./outbound-session-route-Ay_DnOOl.mjs";
11
+ import { t as DISCORD_TEXT_CHUNK_LIMIT } from "./outbound-payload-CK3_bDvK.mjs";
12
+ import { C as buildDiscordInboundAccessContext, c as formatDiscordReplySkip, d as buildGuildLabel, f as resolveReplyContext, l as sanitizeDiscordFrontChannelReplyPayloads, o as deliverDiscordReply, s as formatDiscordReplyDeliveryFailure, u as buildDirectLabel, w as createDiscordSupplementalContextAccessChecker } from "./provider-CRb3Myky.mjs";
13
+ import { D as resolveDiscordMessageStickers, b as resolveDiscordMessageText, h as resolveDiscordThreadStarter, k as resolveDiscordReferencedReplyMessageId, v as resolveDiscordMessageHistoryText, w as resolveReferencedReplyMediaList, x as formatDiscordMediaText } from "./transcripts-source-DIW1fU_P.mjs";
14
+ import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-BbA7FNbr.mjs";
15
+ import { n as resolveDiscordAutoThreadReplyPlan } from "./threading-BbsPuT5G.mjs";
16
16
  import { t as beginDiscordActiveTurnThreadRoute } from "./active-turn-thread-route-KvRTAVE3.mjs";
17
- import { a as createDiscordHistorySenderProvenance, l as isBoundThreadBotSystemMessage, o as filterDiscordHistoryEntriesForContext, p as shouldIgnoreBoundThreadWebhookMessage, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo } from "./message-handler.preflight-pluralkit-CYZfXXb6.mjs";
17
+ import { a as createDiscordHistorySenderProvenance, l as isBoundThreadBotSystemMessage, o as filterDiscordHistoryEntriesForContext, p as shouldIgnoreBoundThreadWebhookMessage, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo } from "./message-handler.preflight-pluralkit-Dhcx7Ifz.mjs";
18
18
  import { t as sendTyping } from "./typing-CNlSKY5S.mjs";
19
19
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
20
20
  import { danger, logVerbose, sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
@@ -33,14 +33,15 @@ import { bindIngressLifecycleToReplyOptions, createChannelMessageReplyPipeline,
33
33
  import { evaluateSupplementalContextVisibility } from "openclaw/plugin-sdk/security-runtime";
34
34
  import { resolvePinnedMainDmOwnerFromAllowlist as resolvePinnedMainDmOwnerFromAllowlist$1 } from "openclaw/plugin-sdk/conversation-runtime";
35
35
  import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-name-runtime";
36
+ import { buildChannelInboundEventContext, createCommandTurnContext, dispatchChannelInboundTurn, formatInboundEnvelope, formatInboundMediaUnavailableText, getGroupThreadDeliverySession, readAgentRunTerminalOutcome, resolveEnvelopeFormatOptions, toHistoryMediaEntries, toInboundMediaFactsWithMetadata } from "openclaw/plugin-sdk/channel-inbound";
36
37
  import { EmbeddedBlockChunker, resolveAckReaction, resolveAgentConfig, resolveHumanDelayConfig } from "openclaw/plugin-sdk/agent-runtime";
37
38
  import { getSessionEntryAsync, readSessionUpdatedAtAsync, resolveStorePath } from "openclaw/plugin-sdk/session-store-runtime";
38
- import { buildChannelInboundEventContext, createCommandTurnContext, dispatchChannelInboundTurn, formatInboundEnvelope, formatInboundMediaUnavailableText, getGroupThreadDeliverySession, readAgentRunTerminalOutcome, resolveEnvelopeFormatOptions, toHistoryMediaEntries, toInboundMediaFactsWithMetadata } from "openclaw/plugin-sdk/channel-inbound";
39
39
  import { readLatestAssistantTextByIdentity } from "openclaw/plugin-sdk/session-transcript-runtime";
40
40
  import { getGlobalHookRunner } from "openclaw/plugin-sdk/plugin-runtime";
41
41
  import { buildHistoryContextFromEntries, buildInboundHistoryFromEntries, createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
42
42
  import { resolveChannelContextVisibilityMode } from "openclaw/plugin-sdk/context-visibility-runtime";
43
43
  import { formatAudioTranscriptForAgent } from "openclaw/plugin-sdk/media-understanding-runtime";
44
+ import { isReplySessionInitConflictError } from "openclaw/plugin-sdk/reply-runtime";
44
45
  import { createStatusReactionController, logAckFailure, logTypingFailure, shouldAckReaction } from "openclaw/plugin-sdk/channel-feedback";
45
46
  //#region extensions/discord/src/monitor/message-handler.recent-history.ts
46
47
  /** Fetch a physical recent window, never walking older pages to refill filtered rows. */
@@ -151,11 +152,9 @@ async function recoverDiscordChannelHistory(params) {
151
152
  }
152
153
  //#endregion
153
154
  //#region extensions/discord/src/monitor/message-handler.retry.ts
154
- const REPLY_SESSION_INIT_CONFLICT_MESSAGE_RE = /^reply session initialization conflicted for \S+$/u;
155
155
  const DISCORD_SESSION_CONFLICT_FAILURE_TEXT = "⚠️ Couldn't process this message because the session stayed busy. Please try again in a moment.";
156
156
  async function completeDiscordSessionConflict(error, sourceReplyDeliveryMode, deliver, onDeliveryError) {
157
- const message = error instanceof Error ? error.message : String(error);
158
- if (!REPLY_SESSION_INIT_CONFLICT_MESSAGE_RE.test(message)) return;
157
+ if (!isReplySessionInitConflictError(error)) return;
159
158
  if (sourceReplyDeliveryMode === "message_tool_only") return "suppressed";
160
159
  try {
161
160
  return (await deliver({
@@ -1,7 +1,7 @@
1
1
  import { t as createDiscordActionGate } from "./accounts-C_25wyxC.mjs";
2
- import { c as normalizeDiscordMessagingTarget, f as resolveDiscordReplyReference, g as hasDiscordMessageCreateAmbiguity, i as toDiscordOutboundDeliveryResult, l as normalizeDiscordOutboundTarget, n as createDiscordSendReceiptFromResults, p as canFallbackDiscordWebhookSend, t as createDiscordSendReceipt, v as chunkDiscordTextWithMode } from "./send.receipt-NZDOTZBU.mjs";
2
+ import { c as normalizeDiscordMessagingTarget, f as resolveDiscordReplyReference, g as hasDiscordMessageCreateAmbiguity, i as toDiscordOutboundDeliveryResult, l as normalizeDiscordOutboundTarget, n as createDiscordSendReceiptFromResults, p as canFallbackDiscordWebhookSend, t as createDiscordSendReceipt, v as chunkDiscordTextWithMode } from "./send.receipt-DLOV4qx6.mjs";
3
3
  import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
4
- import { C as notifyDiscordInboundEventOutboundPayloadSuccess, S as discordInboundEventDelivery, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, n as DISCORD_PRESENTATION_CAPABILITIES, o as sendDiscordComponentMessageLazy, r as buildDiscordPresentationPayload, v as resolveDiscordCurrentConversationIdentity } from "./outbound-session-route-Cgx4i9cS.mjs";
4
+ import { C as notifyDiscordInboundEventOutboundPayloadSuccess, S as discordInboundEventDelivery, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, n as DISCORD_PRESENTATION_CAPABILITIES, o as sendDiscordComponentMessageLazy, r as buildDiscordPresentationPayload, v as resolveDiscordCurrentConversationIdentity } from "./outbound-session-route-Ay_DnOOl.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
7
7
  import { asOptionalRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -74,7 +74,7 @@ function resolveDiscordInboundConversation(params) {
74
74
  }
75
75
  //#endregion
76
76
  //#region extensions/discord/src/outbound-payload.ts
77
- const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-CVW7V-VZ.mjs").then((n) => n.t));
77
+ const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-CtvwfZQ2.mjs").then((n) => n.t));
78
78
  function resolveDiscordDeliveryOptions(ctx) {
79
79
  return {
80
80
  onPlatformSendDispatch: ctx.onPlatformSendDispatch,
@@ -162,8 +162,8 @@ const DISCORD_VIDEO_MEDIA_EXTENSIONS = [
162
162
  ".webm"
163
163
  ];
164
164
  const log = createSubsystemLogger("discord/outbound");
165
- const loadDiscordThreadBindings = createLazyRuntimeModule(() => import("./thread-bindings-zce4cpu_.mjs").then((n) => n.i));
166
- const loadDiscordComponentSendRuntime = createLazyRuntimeModule(() => import("./send.components-C8YXdnO_.mjs").then((n) => n.i));
165
+ const loadDiscordThreadBindings = createLazyRuntimeModule(() => import("./thread-bindings-DRWhgKCc.mjs").then((n) => n.i));
166
+ const loadDiscordComponentSendRuntime = createLazyRuntimeModule(() => import("./send.components-CtLtE0yD.mjs").then((n) => n.i));
167
167
  const discordOutbound = {
168
168
  deliveryMode: "direct",
169
169
  chunker: (text, limit, ctx) => chunkDiscordTextWithMode(text, {
@@ -1,9 +1,9 @@
1
1
  import { d as resolveDiscordAccountConfig, i as listDiscordAccountIds, l as resolveDiscordAccount, t as createDiscordActionGate } from "./accounts-C_25wyxC.mjs";
2
2
  import { t as inspectDiscordAccount } from "./account-inspect-DGkdWwix.mjs";
3
- import { w as isDiscordThreadChannelType } from "./allow-list-BXrS8-R9.mjs";
4
- import { c as normalizeDiscordMessagingTarget, s as matchesDiscordToolContextTarget } from "./send.receipt-NZDOTZBU.mjs";
3
+ import { w as isDiscordThreadChannelType } from "./allow-list-C3j0qLDp.mjs";
4
+ import { c as normalizeDiscordMessagingTarget, s as matchesDiscordToolContextTarget } from "./send.receipt-DLOV4qx6.mjs";
5
5
  import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
6
- import { c as coerceDiscordComponentParam, l as readDiscordComponentSpec } from "./components-YCvQ6YLS.mjs";
6
+ import { c as coerceDiscordComponentParam, l as readDiscordComponentSpec } from "./components-C1Phe3uw.mjs";
7
7
  import { n as resolveDiscordCommandOwnerEntries } from "./command-owners-C7rUdqUX.mjs";
8
8
  import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
9
9
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -215,7 +215,7 @@ const localExecutionActions = /* @__PURE__ */ new Set([
215
215
  "sticker-upload",
216
216
  "event-create"
217
217
  ]);
218
- const loadDiscordChannelActionsRuntime = createLazyRuntimeModule(() => import("./handle-action-CktwmzMz.mjs"));
218
+ const loadDiscordChannelActionsRuntime = createLazyRuntimeModule(() => import("./handle-action-uD87h2FK.mjs"));
219
219
  const discordActionGroups = [
220
220
  {
221
221
  gate: "polls",
@@ -712,7 +712,7 @@ const DISCORD_PRESENTATION_CAPABILITIES = {
712
712
  }
713
713
  }
714
714
  };
715
- const sendDiscordComponentMessageLazy = createLazyRuntimeMethod(createLazyRuntimeModule(() => import("./send.components-C8YXdnO_.mjs").then((n) => n.i)), (runtime) => runtime.sendDiscordComponentMessage);
715
+ const sendDiscordComponentMessageLazy = createLazyRuntimeMethod(createLazyRuntimeModule(() => import("./send.components-CtLtE0yD.mjs").then((n) => n.i)), (runtime) => runtime.sendDiscordComponentMessage);
716
716
  const loadDiscordSharedInteractive = createLazyRuntimeModule(() => import("./shared-interactive-DmzaoKOM.mjs").then((n) => n.r));
717
717
  function addPayloadTextFallback(spec, payload) {
718
718
  return spec.text ? spec : {
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
2
  import { h as normalizeDiscordToken } from "./accounts-C_25wyxC.mjs";
3
3
  import { n as getDiscordEndpointRuntime } from "./endpoint-runtime-lf4DeLas.mjs";
4
- import { n as DiscordApiError, r as fetchDiscord } from "./api-BlBD4ism.mjs";
4
+ import { n as DiscordApiError, r as fetchDiscord } from "./api-DYRggUgK.mjs";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
6
  import { ApplicationFlags } from "discord-api-types/v10";
7
7
  import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";