@openclaw/discord 2026.5.18 → 2026.5.19-beta.2

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 (56) hide show
  1. package/dist/action-runtime-api.js +1 -1
  2. package/dist/api.js +12 -12
  3. package/dist/{approval-handler.runtime-CpNuGEHP.js → approval-handler.runtime-CRpNixJy.js} +3 -3
  4. package/dist/{audit-CniGmJUL.js → audit-DEF10R9j.js} +3 -3
  5. package/dist/{channel-n7fwA0Rx.js → channel-CR9HckAC.js} +14 -14
  6. package/dist/{channel-actions-DRqDFJUk.js → channel-actions-CpmPx9PW.js} +2 -2
  7. package/dist/{channel-actions.runtime-DVnGrlsm.js → channel-actions.runtime-Be5OvB1r.js} +5 -5
  8. package/dist/channel-plugin-api.js +1 -1
  9. package/dist/{channel.setup-D1j7U4B3.js → channel.setup-DR3-U0wF.js} +2 -2
  10. package/dist/{components-KsP3ijoj.js → components-q41bHoCx.js} +4 -1
  11. package/dist/contract-api.js +3 -3
  12. package/dist/{conversation-identity-CYgemFy7.js → conversation-identity-BY7sjUQh.js} +2 -2
  13. package/dist/{directory-config-B5jO6mjo.js → directory-config-x3YzNdoX.js} +1 -1
  14. package/dist/directory-contract-api.js +1 -1
  15. package/dist/{directory-live-D5VrQBC7.js → directory-live-CJiEWQwK.js} +1 -1
  16. package/dist/{handle-action.guild-admin-CqCngm8I.js → handle-action.guild-admin-kAzbjGMw.js} +1 -1
  17. package/dist/{manager.runtime-DigfejdS.js → manager.runtime-CGcJ0yjq.js} +3 -3
  18. package/dist/{message-handler-Jsc36DUW.js → message-handler-1NV0WiHC.js} +9 -9
  19. package/dist/{message-handler.preflight--cdiq4ck.js → message-handler.preflight-DQ-oPY7m.js} +10 -10
  20. package/dist/{message-handler.process-9JHT0Fok.js → message-handler.process-PpgZ0qC4.js} +12 -12
  21. package/dist/{message-utils-BZriBbcg.js → message-utils-BKrlzFtM.js} +1 -1
  22. package/dist/{outbound-adapter-C54-43UU.js → outbound-adapter-CaZzpMnE.js} +8 -7
  23. package/dist/{pluralkit-BHV93ojA.js → pluralkit-BnCH6cHK.js} +1 -1
  24. package/dist/{provider-BXK0P155.js → provider-BZtjA1y_.js} +20 -20
  25. package/dist/{provider-session.runtime-CMvHIMEE.js → provider-session.runtime-DVfzQxFH.js} +3 -3
  26. package/dist/provider.runtime-DlegJeN5.js +2 -0
  27. package/dist/{resolve-channels-AxDQ4jXh.js → resolve-channels-Czrd7fOv.js} +1 -1
  28. package/dist/{resolve-users-D7w0icpA.js → resolve-users-D7hQMaaq.js} +1 -1
  29. package/dist/{runtime-CqTcWrem.js → runtime-BJUWt4mA.js} +7 -7
  30. package/dist/runtime-api.actions.js +2 -2
  31. package/dist/runtime-api.js +19 -19
  32. package/dist/runtime-api.lookup.js +4 -4
  33. package/dist/runtime-api.monitor-BlxEnLN_.js +5 -0
  34. package/dist/runtime-api.monitor.js +4 -4
  35. package/dist/runtime-api.send.js +5 -5
  36. package/dist/runtime-api.threads.js +4 -4
  37. package/dist/{send-DuW4qqIK.js → send-BsBy21Te.js} +3 -3
  38. package/dist/{send.components-BjAjvjmT.js → send.components-BuZBJysI.js} +4 -4
  39. package/dist/{send.outbound-PAYV11wW.js → send.outbound-C0OzZAv_.js} +3 -3
  40. package/dist/{send.receipt-nKLxvA1s.js → send.receipt-Dhym-qOF.js} +37 -37
  41. package/dist/{send.shared-CJ6oJrVc.js → send.shared-C6JLgsbp.js} +2 -2
  42. package/dist/setup-plugin-api.js +1 -1
  43. package/dist/{subagent-hooks-CnPSppNz.js → subagent-hooks-DCIt8Gt7.js} +12 -5
  44. package/dist/subagent-hooks-api.js +1 -1
  45. package/dist/{system-events-CEehp53f.js → system-events-DEuiLTl9.js} +1 -1
  46. package/dist/{target-resolver-CgtNlbhO.js → target-resolver-C5tK3vit.js} +2 -2
  47. package/dist/targets-JvlTzyfK.js +3 -0
  48. package/dist/test-api.js +4 -4
  49. package/dist/{thread-bindings-CXZ2h9DB.js → thread-bindings-BcXgbZ3-.js} +5 -5
  50. package/dist/{thread-bindings.discord-api-_zMU4M2x.js → thread-bindings.discord-api-BzelVdsY.js} +4 -4
  51. package/dist/{thread-bindings.manager-XKdkYEit.js → thread-bindings.manager-CouT_qjE.js} +8 -7
  52. package/dist/{typing-DudlJ-Fv.js → typing-DtdZgo-g.js} +1 -1
  53. package/package.json +4 -4
  54. package/dist/provider.runtime-TGlvSd9K.js +0 -2
  55. package/dist/runtime-api.monitor-D97Sc6-n.js +0 -5
  56. package/dist/targets-Z4SW2zZs.js +0 -3
@@ -1,23 +1,23 @@
1
- import { $ as BaseMessageInteractiveComponent, A as Message, B as Container, C as RateLimitError, D as Command, F as Modal, J as Separator, K as Row, O as CommandWithSubcommands, R as Button, Wt as __exportAll, X as TextDisplay, Y as StringSelectMenu, b as Plugin, c as discord_exports, ct as createThread, d as MessageReactionAddListener, dt as editChannel, f as MessageReactionRemoveListener, g as ThreadUpdateListener, j as User, k as Guild, l as InteractionCreateListener, m as ReadyListener, mt as getChannelMessage, p as PresenceUpdateListener, s as chunkDiscordTextWithMode, u as MessageCreateListener, y as Client } from "./send.receipt-nKLxvA1s.js";
1
+ import { $ as BaseMessageInteractiveComponent, A as Message, B as Container, C as RateLimitError, D as Command, F as Modal, J as Separator, K as Row, O as CommandWithSubcommands, R as Button, Wt as __exportAll, X as TextDisplay, Y as StringSelectMenu, b as Plugin, c as discord_exports, ct as createThread, d as MessageReactionAddListener, dt as editChannel, f as MessageReactionRemoveListener, g as ThreadUpdateListener, j as User, k as Guild, l as InteractionCreateListener, m as ReadyListener, mt as getChannelMessage, p as PresenceUpdateListener, s as chunkDiscordTextWithMode, u as MessageCreateListener, y as Client } from "./send.receipt-Dhym-qOF.js";
2
2
  import { c as resolveDiscordAccountAllowFrom, d as resolveDiscordAccountDmPolicy, f as resolveDiscordMaxLinesPerMessage, p as normalizeDiscordToken, s as resolveDiscordAccount } from "./accounts-ltxKLzxN.js";
3
- import { _ as parseDiscordComponentCustomId, b as parseDiscordModalCustomIdForInteraction, v as parseDiscordComponentCustomIdForInteraction, y as parseDiscordModalCustomId } from "./components-KsP3ijoj.js";
4
- import { a as resolveDiscordComponentEntryWithPersistence, o as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-BjAjvjmT.js";
3
+ import { _ as parseDiscordComponentCustomId, b as parseDiscordModalCustomIdForInteraction, v as parseDiscordComponentCustomIdForInteraction, y as parseDiscordModalCustomId } from "./components-q41bHoCx.js";
4
+ import { a as resolveDiscordComponentEntryWithPersistence, o as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-BuZBJysI.js";
5
5
  import { c as setPresence, i as unregisterGateway, r as registerGateway } from "./gateway-registry-BKSpa4GB.js";
6
- import { L as DISCORD_REST_TIMEOUT_MS, N as createDiscordRestClient, R as validateDiscordProxyUrl, T as canViewDiscordGuildChannel, z as withValidatedDiscordProxy } from "./send.shared-CJ6oJrVc.js";
6
+ import { L as DISCORD_REST_TIMEOUT_MS, N as createDiscordRestClient, R as validateDiscordProxyUrl, T as canViewDiscordGuildChannel, z as withValidatedDiscordProxy } from "./send.shared-C6JLgsbp.js";
7
7
  import { a as summarizeDiscordResponseBody, i as isDiscordRateLimitResponseBody } from "./api-DgQLz1wq.js";
8
8
  import { S as resolveTimestampMs, _ as resolveGroupDmAllow, a as normalizeDiscordSlug, b as formatDiscordUserTag, c as resolveDiscordChannelConfigWithFallback, d as resolveDiscordGuildEntry, f as resolveDiscordMemberAccessState, i as normalizeDiscordDisplaySlug, l as resolveDiscordChannelPolicyCommandAuthorizer, m as resolveDiscordOwnerAccess, n as isDiscordGroupAllowedByPolicy, o as resolveDiscordAllowListMatch, r as normalizeDiscordAllowList, v as shouldEmitDiscordReactionNotification, y as formatDiscordReactionEmoji } from "./allow-list-CBI-M84K.js";
9
- import { s as sendVoiceMessageDiscord } from "./send-DuW4qqIK.js";
10
- import { i as formatMention, t as sendMessageDiscord } from "./send.outbound-PAYV11wW.js";
11
- import { a as getDiscordExecApprovalApprovers, s as isDiscordExecApprovalClientEnabled, t as resolveDiscordConversationIdentity } from "./conversation-identity-CYgemFy7.js";
12
- import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-AxDQ4jXh.js";
13
- import { t as resolveDiscordUserAllowlist } from "./resolve-users-D7w0icpA.js";
14
- import { _ as formatThreadBindingDurationLabel, a as isThreadArchived, d as resolveDiscordChannelNameSafe, f as resolveDiscordChannelParentIdSafe, l as resolveDiscordChannelIdSafe, m as resolveDiscordChannelTopicSafe, p as resolveDiscordChannelParentSafe, u as resolveDiscordChannelInfoSafe } from "./thread-bindings.discord-api-_zMU4M2x.js";
9
+ import { s as sendVoiceMessageDiscord } from "./send-BsBy21Te.js";
10
+ import { i as formatMention, t as sendMessageDiscord } from "./send.outbound-C0OzZAv_.js";
11
+ import { a as getDiscordExecApprovalApprovers, s as isDiscordExecApprovalClientEnabled, t as resolveDiscordConversationIdentity } from "./conversation-identity-BY7sjUQh.js";
12
+ import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-Czrd7fOv.js";
13
+ import { t as resolveDiscordUserAllowlist } from "./resolve-users-D7hQMaaq.js";
14
+ import { _ as formatThreadBindingDurationLabel, a as isThreadArchived, d as resolveDiscordChannelNameSafe, f as resolveDiscordChannelParentIdSafe, l as resolveDiscordChannelIdSafe, m as resolveDiscordChannelTopicSafe, p as resolveDiscordChannelParentSafe, u as resolveDiscordChannelInfoSafe } from "./thread-bindings.discord-api-BzelVdsY.js";
15
15
  import { r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-BLDNbk41.js";
16
16
  import { o as raceWithTimeout, s as withAbortTimeout } from "./timeouts-CEwuGaWT.js";
17
- import { d as resolveDiscordMessageChannelId, n as resolveDiscordForwardedMessagesTextFromSnapshots, t as resolveDiscordEmbedText, u as resolveDiscordChannelInfo } from "./message-utils-BZriBbcg.js";
17
+ import { d as resolveDiscordMessageChannelId, n as resolveDiscordForwardedMessagesTextFromSnapshots, t as resolveDiscordEmbedText, u as resolveDiscordChannelInfo } from "./message-utils-BKrlzFtM.js";
18
18
  import { t as resolveDiscordSenderIdentity } from "./sender-identity-DC0FdEcU.js";
19
19
  import { n as buildDiscordInboundAccessContext, t as buildDiscordGroupSystemPrompt } from "./inbound-context-CzEAvKgx.js";
20
- import "./approval-handler.runtime-CpNuGEHP.js";
20
+ import "./approval-handler.runtime-CRpNixJy.js";
21
21
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
22
22
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId, normalizeStringEntries, summarizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
23
23
  import { buildAgentSessionKey, deriveLastRoutePolicy, isAcpSessionKey, isSubagentSessionKey, parseAgentSessionKey, resolveAgentIdFromSessionKey, resolveAgentRoute } from "openclaw/plugin-sdk/routing";
@@ -415,7 +415,7 @@ function normalizeTitleContextField(raw, maxChars) {
415
415
  const DISCORD_THREAD_STARTER_CACHE_TTL_MS = 300 * 1e3;
416
416
  const DISCORD_THREAD_STARTER_CACHE_MAX = 500;
417
417
  const DISCORD_THREAD_STARTER_CACHE = /* @__PURE__ */ new Map();
418
- function __resetDiscordThreadStarterCacheForTest() {
418
+ function resetDiscordThreadStarterCacheForTest() {
419
419
  DISCORD_THREAD_STARTER_CACHE.clear();
420
420
  }
421
421
  function getCachedThreadStarter(key, now) {
@@ -751,8 +751,8 @@ async function maybeRenameDiscordAutoThread(params) {
751
751
  //#endregion
752
752
  //#region extensions/discord/src/monitor/threading.ts
753
753
  var threading_exports = /* @__PURE__ */ __exportAll({
754
- __resetDiscordThreadStarterCacheForTest: () => __resetDiscordThreadStarterCacheForTest,
755
754
  maybeCreateDiscordAutoThread: () => maybeCreateDiscordAutoThread,
755
+ resetDiscordThreadStarterCacheForTest: () => resetDiscordThreadStarterCacheForTest,
756
756
  resolveDiscordAutoThreadContext: () => resolveDiscordAutoThreadContext,
757
757
  resolveDiscordAutoThreadReplyPlan: () => resolveDiscordAutoThreadReplyPlan,
758
758
  resolveDiscordReplyDeliveryPlan: () => resolveDiscordReplyDeliveryPlan,
@@ -5308,7 +5308,7 @@ function createDiscordGatewayPlugin(params) {
5308
5308
  let wsAgent = new Agent({ lookup: discordDnsLookup$1 });
5309
5309
  if (proxy) try {
5310
5310
  validateDiscordProxyUrl(proxy);
5311
- wsAgent = new (params.__testing?.HttpsProxyAgentCtor ?? httpsProxyAgent.HttpsProxyAgent)(proxy);
5311
+ wsAgent = new (params.testing?.HttpsProxyAgentCtor ?? httpsProxyAgent.HttpsProxyAgent)(proxy);
5312
5312
  params.runtime.log?.("discord: gateway proxy enabled");
5313
5313
  } catch (err) {
5314
5314
  params.runtime.error?.(danger(`discord: invalid gateway proxy: ${String(err)}`));
@@ -5323,7 +5323,7 @@ function createDiscordGatewayPlugin(params) {
5323
5323
  gatewayInfoTimeoutMs,
5324
5324
  fetchImpl,
5325
5325
  runtime: params.runtime,
5326
- testing: params.__testing,
5326
+ testing: params.testing,
5327
5327
  ...wsAgent ? { wsAgent } : {}
5328
5328
  });
5329
5329
  }
@@ -7239,7 +7239,7 @@ async function loadConversationRuntime$1() {
7239
7239
  return await conversationRuntimePromise$1;
7240
7240
  }
7241
7241
  async function loadTypingRuntime() {
7242
- typingRuntimePromise ??= import("./typing-DudlJ-Fv.js").then((n) => n.n);
7242
+ typingRuntimePromise ??= import("./typing-DtdZgo-g.js").then((n) => n.n);
7243
7243
  return await typingRuntimePromise;
7244
7244
  }
7245
7245
  function buildDiscordComponentConversationLabel(params) {
@@ -7660,7 +7660,7 @@ async function dispatchPluginDiscordInteractiveEvent(params) {
7660
7660
  //#region extensions/discord/src/monitor/agent-components.handlers.ts
7661
7661
  let componentsRuntimePromise;
7662
7662
  async function loadComponentsRuntime() {
7663
- componentsRuntimePromise ??= import("./components-KsP3ijoj.js").then((n) => n.t);
7663
+ componentsRuntimePromise ??= import("./components-q41bHoCx.js").then((n) => n.t);
7664
7664
  return await componentsRuntimePromise;
7665
7665
  }
7666
7666
  async function handleDiscordComponentEvent(params) {
@@ -9182,7 +9182,7 @@ function logDiscordStartupPhase(params) {
9182
9182
  });
9183
9183
  }
9184
9184
  async function loadDiscordVoiceRuntime() {
9185
- const promise = discordVoiceRuntimePromise ?? import("./manager.runtime-DigfejdS.js");
9185
+ const promise = discordVoiceRuntimePromise ?? import("./manager.runtime-CGcJ0yjq.js");
9186
9186
  discordVoiceRuntimePromise = promise;
9187
9187
  try {
9188
9188
  return await promise;
@@ -9192,7 +9192,7 @@ async function loadDiscordVoiceRuntime() {
9192
9192
  }
9193
9193
  }
9194
9194
  async function loadDiscordProviderSessionRuntime() {
9195
- const promise = discordProviderSessionRuntimePromise ?? import("./provider-session.runtime-CMvHIMEE.js");
9195
+ const promise = discordProviderSessionRuntimePromise ?? import("./provider-session.runtime-DVfzQxFH.js");
9196
9196
  discordProviderSessionRuntimePromise = promise;
9197
9197
  try {
9198
9198
  return await promise;
@@ -1,6 +1,6 @@
1
- import { a as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-CXZ2h9DB.js";
2
- import { n as createNoopThreadBindingManager, r as createThreadBindingManager } from "./thread-bindings.manager-XKdkYEit.js";
3
- import { t as createDiscordMessageHandler } from "./message-handler-Jsc36DUW.js";
1
+ import { a as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-BcXgbZ3-.js";
2
+ import { n as createThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-CouT_qjE.js";
3
+ import { t as createDiscordMessageHandler } from "./message-handler-1NV0WiHC.js";
4
4
  import { resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled } from "openclaw/plugin-sdk/conversation-runtime";
5
5
  import { getAcpSessionManager, isAcpRuntimeError } from "openclaw/plugin-sdk/acp-runtime";
6
6
  export { createDiscordMessageHandler, createNoopThreadBindingManager, createThreadBindingManager, getAcpSessionManager, isAcpRuntimeError, reconcileAcpThreadBindingsOnStartup, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled };
@@ -0,0 +1,2 @@
1
+ import { t as monitorDiscordProvider } from "./provider-BZtjA1y_.js";
2
+ export { monitorDiscordProvider };
@@ -1,4 +1,4 @@
1
- import { Wt as __exportAll } from "./send.receipt-nKLxvA1s.js";
1
+ import { Wt as __exportAll } from "./send.receipt-Dhym-qOF.js";
2
2
  import { n as fetchDiscord, t as DiscordApiError } from "./api-DgQLz1wq.js";
3
3
  import { a as normalizeDiscordSlug } from "./allow-list-CBI-M84K.js";
4
4
  import { i as listGuilds, n as filterDiscordGuilds, r as resolveDiscordAllowlistToken, t as buildDiscordUnresolvedResults } from "./resolve-allowlist-common-C8L5MYFl.js";
@@ -1,4 +1,4 @@
1
- import { Wt as __exportAll } from "./send.receipt-nKLxvA1s.js";
1
+ import { Wt as __exportAll } from "./send.receipt-Dhym-qOF.js";
2
2
  import { n as fetchDiscord } from "./api-DgQLz1wq.js";
3
3
  import { i as listGuilds, n as filterDiscordGuilds, r as resolveDiscordAllowlistToken, t as buildDiscordUnresolvedResults } from "./resolve-allowlist-common-C8L5MYFl.js";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,12 +1,12 @@
1
- import { Ut as resolveDiscordChannelId } from "./send.receipt-nKLxvA1s.js";
1
+ import { Ut as resolveDiscordChannelId } from "./send.receipt-Dhym-qOF.js";
2
2
  import { o as resolveDefaultDiscordAccountId, t as createDiscordActionGate } from "./accounts-ltxKLzxN.js";
3
- import { d as readDiscordComponentSpec } from "./components-KsP3ijoj.js";
4
- import { c as jsonResult, d as readNumberParam, f as readReactionParams, g as withNormalizedTimestamp, h as resolvePollMaxSelections, l as parseAvailableTags, m as readStringParam, p as readStringArrayParam, r as sendDiscordComponentMessage, s as assertMediaNotDataUrl, u as readBooleanParam } from "./send.components-BjAjvjmT.js";
3
+ import { d as readDiscordComponentSpec } from "./components-q41bHoCx.js";
4
+ import { c as jsonResult, d as readNumberParam, f as readReactionParams, g as withNormalizedTimestamp, h as resolvePollMaxSelections, l as parseAvailableTags, m as readStringParam, p as readStringArrayParam, r as sendDiscordComponentMessage, s as assertMediaNotDataUrl, u as readBooleanParam } from "./send.components-BuZBJysI.js";
5
5
  import { n as getGateway, o as getPresence } from "./gateway-registry-BKSpa4GB.js";
6
- import { A as isThreadChannelType, E as fetchChannelPermissionsDiscord, P as createDiscordRuntimeAccountContext, d as resolveDiscordTargetChannelId, k as hasAnyGuildPermissionDiscord } from "./send.shared-CJ6oJrVc.js";
7
- import { A as removeRoleDiscord, B as removeChannelPermissionDiscord, C as fetchChannelInfoDiscord, D as kickMemberDiscord, E as fetchVoiceStatusDiscord, F as uploadStickerDiscord, I as createChannelDiscord, L as deleteChannelDiscord, M as timeoutMemberDiscord, N as listGuildEmojisDiscord, O as listGuildChannelsDiscord, P as uploadEmojiDiscord, R as editChannelDiscord, S as createScheduledEventDiscord, T as fetchRoleInfoDiscord, V as setChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as resolveEventCoverImage, k as listScheduledEventsDiscord, l as DiscordThreadInitialMessageError, m as listPinsDiscord, n as fetchReactionsDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchMemberInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as moveChannelDiscord } from "./send-DuW4qqIK.js";
8
- import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-PAYV11wW.js";
9
- import "./targets-Z4SW2zZs.js";
6
+ import { A as isThreadChannelType, E as fetchChannelPermissionsDiscord, P as createDiscordRuntimeAccountContext, d as resolveDiscordTargetChannelId, k as hasAnyGuildPermissionDiscord } from "./send.shared-C6JLgsbp.js";
7
+ import { A as removeRoleDiscord, B as removeChannelPermissionDiscord, C as fetchChannelInfoDiscord, D as kickMemberDiscord, E as fetchVoiceStatusDiscord, F as uploadStickerDiscord, I as createChannelDiscord, L as deleteChannelDiscord, M as timeoutMemberDiscord, N as listGuildEmojisDiscord, O as listGuildChannelsDiscord, P as uploadEmojiDiscord, R as editChannelDiscord, S as createScheduledEventDiscord, T as fetchRoleInfoDiscord, V as setChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as resolveEventCoverImage, k as listScheduledEventsDiscord, l as DiscordThreadInitialMessageError, m as listPinsDiscord, n as fetchReactionsDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchMemberInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as moveChannelDiscord } from "./send-BsBy21Te.js";
8
+ import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-C0OzZAv_.js";
9
+ import "./targets-JvlTzyfK.js";
10
10
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
11
11
  import { PermissionFlagsBits } from "discord-api-types/v10";
12
12
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -1,3 +1,3 @@
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-CqTcWrem.js";
2
- import { t as discordMessageActions } from "./channel-actions-DRqDFJUk.js";
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-BJUWt4mA.js";
2
+ import { t as discordMessageActions } from "./channel-actions-CpmPx9PW.js";
3
3
  export { discordMessageActions, handleDiscordAction, isDiscordModerationAction, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, requiredGuildPermissionForModerationAction };
@@ -1,30 +1,30 @@
1
- import { x as resolveDiscordOutboundSessionRoute } from "./components-KsP3ijoj.js";
2
- import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./send.components-BjAjvjmT.js";
1
+ import { x as resolveDiscordOutboundSessionRoute } from "./components-q41bHoCx.js";
2
+ import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./send.components-BuZBJysI.js";
3
3
  import { a as clearPresences, c as setPresence, i as unregisterGateway, n as getGateway, o as getPresence, r as registerGateway, s as presenceCacheSize, t as clearGateways } from "./gateway-registry-BKSpa4GB.js";
4
- import { D as fetchMemberGuildPermissionsDiscord, E as fetchChannelPermissionsDiscord, O as hasAllGuildPermissionsDiscord, k as hasAnyGuildPermissionDiscord, w as DiscordSendError } from "./send.shared-CJ6oJrVc.js";
5
- import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-D5VrQBC7.js";
4
+ import { D as fetchMemberGuildPermissionsDiscord, E as fetchChannelPermissionsDiscord, O as hasAllGuildPermissionsDiscord, k as hasAnyGuildPermissionDiscord, w as DiscordSendError } from "./send.shared-C6JLgsbp.js";
5
+ import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-CJiEWQwK.js";
6
6
  import { _ as resolveGroupDmAllow, a as normalizeDiscordSlug, c as resolveDiscordChannelConfigWithFallback, d as resolveDiscordGuildEntry, g as resolveDiscordShouldRequireMention, n as isDiscordGroupAllowedByPolicy, r as normalizeDiscordAllowList, s as resolveDiscordChannelConfig, t as allowListMatches, u as resolveDiscordCommandAuthorized, v as shouldEmitDiscordReactionNotification } from "./allow-list-CBI-M84K.js";
7
- import { A as removeRoleDiscord, B as removeChannelPermissionDiscord, C as fetchChannelInfoDiscord, D as kickMemberDiscord, E as fetchVoiceStatusDiscord, F as uploadStickerDiscord, I as createChannelDiscord, L as deleteChannelDiscord, M as timeoutMemberDiscord, N as listGuildEmojisDiscord, O as listGuildChannelsDiscord, P as uploadEmojiDiscord, R as editChannelDiscord, S as createScheduledEventDiscord, T as fetchRoleInfoDiscord, V as setChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as resolveEventCoverImage, k as listScheduledEventsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchMemberInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as moveChannelDiscord } from "./send-DuW4qqIK.js";
8
- import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-PAYV11wW.js";
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-CqTcWrem.js";
7
+ import { A as removeRoleDiscord, B as removeChannelPermissionDiscord, C as fetchChannelInfoDiscord, D as kickMemberDiscord, E as fetchVoiceStatusDiscord, F as uploadStickerDiscord, I as createChannelDiscord, L as deleteChannelDiscord, M as timeoutMemberDiscord, N as listGuildEmojisDiscord, O as listGuildChannelsDiscord, P as uploadEmojiDiscord, R as editChannelDiscord, S as createScheduledEventDiscord, T as fetchRoleInfoDiscord, V as setChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as resolveEventCoverImage, k as listScheduledEventsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchMemberInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as moveChannelDiscord } from "./send-BsBy21Te.js";
8
+ import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-C0OzZAv_.js";
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-BJUWt4mA.js";
10
10
  import { r as setDiscordRuntime } from "./runtime-Tqtvj5GX.js";
11
- import { t as discordMessageActions } from "./channel-actions-DRqDFJUk.js";
11
+ import { t as discordMessageActions } from "./channel-actions-CpmPx9PW.js";
12
12
  import { C as resolveThreadBindingMaxAgeMs, S as resolveThreadBindingMaxAgeExpiresAt, b as resolveThreadBindingIdleTimeoutMs, l as isRecentlyUnboundThreadWebhookMessage, x as resolveThreadBindingInactivityExpiresAt } from "./thread-bindings.state-CSphZOiL.js";
13
13
  import { n as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-CgOqEOPe.js";
14
- import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-AxDQ4jXh.js";
15
- import { t as resolveDiscordUserAllowlist } from "./resolve-users-D7w0icpA.js";
16
- import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-_zMU4M2x.js";
17
- import { a as reconcileAcpThreadBindingsOnStartup, c as resolveDiscordThreadBindingMaxAgeMs, i as listThreadBindingsForAccount, l as resolveThreadBindingsEnabled, n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey, s as resolveDiscordThreadBindingIdleTimeoutMs } from "./thread-bindings-CXZ2h9DB.js";
18
- import { i as getThreadBindingManager, n as createNoopThreadBindingManager, r as createThreadBindingManager, t as __testing } from "./thread-bindings.manager-XKdkYEit.js";
14
+ import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-Czrd7fOv.js";
15
+ import { t as resolveDiscordUserAllowlist } from "./resolve-users-D7hQMaaq.js";
16
+ import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-BzelVdsY.js";
17
+ import { a as reconcileAcpThreadBindingsOnStartup, c as resolveDiscordThreadBindingMaxAgeMs, i as listThreadBindingsForAccount, l as resolveThreadBindingsEnabled, n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey, s as resolveDiscordThreadBindingIdleTimeoutMs } from "./thread-bindings-BcXgbZ3-.js";
18
+ import { i as testing, n as createThreadBindingManager, r as getThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-CouT_qjE.js";
19
19
  import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-BLDNbk41.js";
20
20
  import { a as mergeAbortSignals, 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-CEwuGaWT.js";
21
21
  import "./runtime-api.actions.js";
22
- import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-CniGmJUL.js";
22
+ import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-DEF10R9j.js";
23
23
  import "./runtime-api.lookup.js";
24
- import { S as sanitizeDiscordThreadName, _ as registerDiscordListener, b as resolveDiscordReplyTarget, c as resolveDiscordGatewayIntents, d as createDiscordNativeCommand, l as waitForDiscordGatewayPluginRegistration, s as createDiscordGatewayPlugin, t as monitorDiscordProvider } from "./provider-BXK0P155.js";
25
- import { i as buildDiscordMediaPayload } from "./message-utils-BZriBbcg.js";
26
- import { t as createDiscordMessageHandler } from "./message-handler-Jsc36DUW.js";
27
- import "./runtime-api.monitor-D97Sc6-n.js";
24
+ import { S as sanitizeDiscordThreadName, _ as registerDiscordListener, b as resolveDiscordReplyTarget, c as resolveDiscordGatewayIntents, d as createDiscordNativeCommand, l as waitForDiscordGatewayPluginRegistration, s as createDiscordGatewayPlugin, t as monitorDiscordProvider } from "./provider-BZtjA1y_.js";
25
+ import { i as buildDiscordMediaPayload } from "./message-utils-BKrlzFtM.js";
26
+ import { t as createDiscordMessageHandler } from "./message-handler-1NV0WiHC.js";
27
+ import "./runtime-api.monitor-BlxEnLN_.js";
28
28
  import "./runtime-api.send.js";
29
29
  import "./runtime-api.threads.js";
30
- export { DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, DiscordSendError, __testing, addRoleDiscord, allowListMatches, auditDiscordChannelPermissions, autoBindSpawnedDiscordSubagent, banMemberDiscord, buildDiscordMediaPayload, clearGateways, clearPresences, collectDiscordAuditChannelIds, createChannelDiscord, createDiscordGatewayPlugin, createDiscordMessageHandler, createDiscordNativeCommand, createNoopThreadBindingManager, createScheduledEventDiscord, createThreadBindingManager, createThreadDiscord, deleteChannelDiscord, deleteMessageDiscord, discordMessageActions, editChannelDiscord, editDiscordComponentMessage, editMessageDiscord, fetchChannelInfoDiscord, fetchChannelPermissionsDiscord, fetchDiscordApplicationId, fetchDiscordApplicationSummary, fetchMemberGuildPermissionsDiscord, fetchMemberInfoDiscord, fetchMessageDiscord, fetchReactionsDiscord, fetchRoleInfoDiscord, fetchVoiceStatusDiscord, formatThreadBindingDurationLabel, getGateway, getPresence, getThreadBindingManager, handleDiscordAction, hasAllGuildPermissionsDiscord, hasAnyGuildPermissionDiscord, isDiscordGroupAllowedByPolicy, isDiscordModerationAction, isRecentlyUnboundThreadWebhookMessage, kickMemberDiscord, listDiscordDirectoryGroupsLive, listDiscordDirectoryPeersLive, listGuildChannelsDiscord, listGuildEmojisDiscord, listPinsDiscord, listScheduledEventsDiscord, listThreadBindingsBySessionKey, listThreadBindingsForAccount, listThreadsDiscord, mergeAbortSignals, monitorDiscordProvider, moveChannelDiscord, normalizeDiscordAllowList, normalizeDiscordSlug, parseApplicationIdFromToken, pinMessageDiscord, presenceCacheSize, probeDiscord, reactMessageDiscord, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, readMessagesDiscord, reconcileAcpThreadBindingsOnStartup, registerBuiltDiscordComponentMessage, registerDiscordListener, registerGateway, removeChannelPermissionDiscord, removeOwnReactionsDiscord, removeReactionDiscord, removeRoleDiscord, requiredGuildPermissionForModerationAction, resolveDiscordChannelAllowlist, resolveDiscordChannelConfig, resolveDiscordChannelConfigWithFallback, resolveDiscordCommandAuthorized, resolveDiscordGatewayIntents, resolveDiscordGuildEntry, resolveDiscordOutboundSessionRoute, resolveDiscordPrivilegedIntentsFromFlags, resolveDiscordReplyTarget, resolveDiscordShouldRequireMention, resolveDiscordThreadBindingIdleTimeoutMs, resolveDiscordThreadBindingMaxAgeMs, resolveDiscordUserAllowlist, resolveEventCoverImage, resolveGroupDmAllow, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingInactivityExpiresAt, resolveThreadBindingIntroText, resolveThreadBindingMaxAgeExpiresAt, resolveThreadBindingMaxAgeMs, resolveThreadBindingPersona, resolveThreadBindingPersonaFromRecord, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, sanitizeDiscordThreadName, searchMessagesDiscord, sendDiscordComponentMessage, sendMessageDiscord, sendPollDiscord, sendStickerDiscord, sendTypingDiscord, sendVoiceMessageDiscord, sendWebhookMessageDiscord, setChannelPermissionDiscord, setDiscordRuntime, setPresence, setThreadBindingIdleTimeoutBySessionKey, setThreadBindingMaxAgeBySessionKey, shouldEmitDiscordReactionNotification, timeoutMemberDiscord, unbindThreadBindingsBySessionKey, unpinMessageDiscord, unregisterGateway, uploadEmojiDiscord, uploadStickerDiscord, waitForDiscordGatewayPluginRegistration };
30
+ export { DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, DiscordSendError, testing as __testing, testing, addRoleDiscord, allowListMatches, auditDiscordChannelPermissions, autoBindSpawnedDiscordSubagent, banMemberDiscord, buildDiscordMediaPayload, clearGateways, clearPresences, collectDiscordAuditChannelIds, createChannelDiscord, createDiscordGatewayPlugin, createDiscordMessageHandler, createDiscordNativeCommand, createNoopThreadBindingManager, createScheduledEventDiscord, createThreadBindingManager, createThreadDiscord, deleteChannelDiscord, deleteMessageDiscord, discordMessageActions, editChannelDiscord, editDiscordComponentMessage, editMessageDiscord, fetchChannelInfoDiscord, fetchChannelPermissionsDiscord, fetchDiscordApplicationId, fetchDiscordApplicationSummary, fetchMemberGuildPermissionsDiscord, fetchMemberInfoDiscord, fetchMessageDiscord, fetchReactionsDiscord, fetchRoleInfoDiscord, fetchVoiceStatusDiscord, formatThreadBindingDurationLabel, getGateway, getPresence, getThreadBindingManager, handleDiscordAction, hasAllGuildPermissionsDiscord, hasAnyGuildPermissionDiscord, isDiscordGroupAllowedByPolicy, isDiscordModerationAction, isRecentlyUnboundThreadWebhookMessage, kickMemberDiscord, listDiscordDirectoryGroupsLive, listDiscordDirectoryPeersLive, listGuildChannelsDiscord, listGuildEmojisDiscord, listPinsDiscord, listScheduledEventsDiscord, listThreadBindingsBySessionKey, listThreadBindingsForAccount, listThreadsDiscord, mergeAbortSignals, monitorDiscordProvider, moveChannelDiscord, normalizeDiscordAllowList, normalizeDiscordSlug, parseApplicationIdFromToken, pinMessageDiscord, presenceCacheSize, probeDiscord, reactMessageDiscord, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, readMessagesDiscord, reconcileAcpThreadBindingsOnStartup, registerBuiltDiscordComponentMessage, registerDiscordListener, registerGateway, removeChannelPermissionDiscord, removeOwnReactionsDiscord, removeReactionDiscord, removeRoleDiscord, requiredGuildPermissionForModerationAction, resolveDiscordChannelAllowlist, resolveDiscordChannelConfig, resolveDiscordChannelConfigWithFallback, resolveDiscordCommandAuthorized, resolveDiscordGatewayIntents, resolveDiscordGuildEntry, resolveDiscordOutboundSessionRoute, resolveDiscordPrivilegedIntentsFromFlags, resolveDiscordReplyTarget, resolveDiscordShouldRequireMention, resolveDiscordThreadBindingIdleTimeoutMs, resolveDiscordThreadBindingMaxAgeMs, resolveDiscordUserAllowlist, resolveEventCoverImage, resolveGroupDmAllow, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingInactivityExpiresAt, resolveThreadBindingIntroText, resolveThreadBindingMaxAgeExpiresAt, resolveThreadBindingMaxAgeMs, resolveThreadBindingPersona, resolveThreadBindingPersonaFromRecord, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, sanitizeDiscordThreadName, searchMessagesDiscord, sendDiscordComponentMessage, sendMessageDiscord, sendPollDiscord, sendStickerDiscord, sendTypingDiscord, sendVoiceMessageDiscord, sendWebhookMessageDiscord, setChannelPermissionDiscord, setDiscordRuntime, setPresence, setThreadBindingIdleTimeoutBySessionKey, setThreadBindingMaxAgeBySessionKey, shouldEmitDiscordReactionNotification, timeoutMemberDiscord, unbindThreadBindingsBySessionKey, unpinMessageDiscord, unregisterGateway, uploadEmojiDiscord, uploadStickerDiscord, waitForDiscordGatewayPluginRegistration };
@@ -1,7 +1,7 @@
1
- import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-D5VrQBC7.js";
1
+ import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-CJiEWQwK.js";
2
2
  import { r as setDiscordRuntime } from "./runtime-Tqtvj5GX.js";
3
- import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-AxDQ4jXh.js";
4
- import { t as resolveDiscordUserAllowlist } from "./resolve-users-D7w0icpA.js";
3
+ import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-Czrd7fOv.js";
4
+ import { t as resolveDiscordUserAllowlist } from "./resolve-users-D7hQMaaq.js";
5
5
  import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-BLDNbk41.js";
6
- import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-CniGmJUL.js";
6
+ import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-DEF10R9j.js";
7
7
  export { auditDiscordChannelPermissions, collectDiscordAuditChannelIds, fetchDiscordApplicationId, fetchDiscordApplicationSummary, listDiscordDirectoryGroupsLive, listDiscordDirectoryPeersLive, parseApplicationIdFromToken, probeDiscord, resolveDiscordChannelAllowlist, resolveDiscordPrivilegedIntentsFromFlags, resolveDiscordUserAllowlist, setDiscordRuntime };
@@ -0,0 +1,5 @@
1
+ import "./allow-list-CBI-M84K.js";
2
+ import "./provider-BZtjA1y_.js";
3
+ import "./message-utils-BKrlzFtM.js";
4
+ import "./message-handler-1NV0WiHC.js";
5
+ export {};
@@ -1,8 +1,8 @@
1
1
  import { a as clearPresences, c as setPresence, i as unregisterGateway, n as getGateway, o as getPresence, r as registerGateway, s as presenceCacheSize, t as clearGateways } from "./gateway-registry-BKSpa4GB.js";
2
2
  import { _ as resolveGroupDmAllow, a as normalizeDiscordSlug, c as resolveDiscordChannelConfigWithFallback, d as resolveDiscordGuildEntry, g as resolveDiscordShouldRequireMention, n as isDiscordGroupAllowedByPolicy, r as normalizeDiscordAllowList, s as resolveDiscordChannelConfig, t as allowListMatches, u as resolveDiscordCommandAuthorized, v as shouldEmitDiscordReactionNotification } from "./allow-list-CBI-M84K.js";
3
3
  import { a as mergeAbortSignals, 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-CEwuGaWT.js";
4
- import { S as sanitizeDiscordThreadName, _ as registerDiscordListener, b as resolveDiscordReplyTarget, c as resolveDiscordGatewayIntents, d as createDiscordNativeCommand, l as waitForDiscordGatewayPluginRegistration, s as createDiscordGatewayPlugin, t as monitorDiscordProvider } from "./provider-BXK0P155.js";
5
- import { i as buildDiscordMediaPayload } from "./message-utils-BZriBbcg.js";
6
- import { t as createDiscordMessageHandler } from "./message-handler-Jsc36DUW.js";
7
- import "./runtime-api.monitor-D97Sc6-n.js";
4
+ import { S as sanitizeDiscordThreadName, _ as registerDiscordListener, b as resolveDiscordReplyTarget, c as resolveDiscordGatewayIntents, d as createDiscordNativeCommand, l as waitForDiscordGatewayPluginRegistration, s as createDiscordGatewayPlugin, t as monitorDiscordProvider } from "./provider-BZtjA1y_.js";
5
+ import { i as buildDiscordMediaPayload } from "./message-utils-BKrlzFtM.js";
6
+ import { t as createDiscordMessageHandler } from "./message-handler-1NV0WiHC.js";
7
+ import "./runtime-api.monitor-BlxEnLN_.js";
8
8
  export { DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, allowListMatches, buildDiscordMediaPayload, clearGateways, clearPresences, createDiscordGatewayPlugin, createDiscordMessageHandler, createDiscordNativeCommand, getGateway, getPresence, isDiscordGroupAllowedByPolicy, mergeAbortSignals, monitorDiscordProvider, normalizeDiscordAllowList, normalizeDiscordSlug, presenceCacheSize, registerDiscordListener, registerGateway, resolveDiscordChannelConfig, resolveDiscordChannelConfigWithFallback, resolveDiscordCommandAuthorized, resolveDiscordGatewayIntents, resolveDiscordGuildEntry, resolveDiscordReplyTarget, resolveDiscordShouldRequireMention, resolveGroupDmAllow, sanitizeDiscordThreadName, setPresence, shouldEmitDiscordReactionNotification, unregisterGateway, waitForDiscordGatewayPluginRegistration };
@@ -1,6 +1,6 @@
1
- import { x as resolveDiscordOutboundSessionRoute } from "./components-KsP3ijoj.js";
2
- import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./send.components-BjAjvjmT.js";
3
- import { D as fetchMemberGuildPermissionsDiscord, E as fetchChannelPermissionsDiscord, O as hasAllGuildPermissionsDiscord, k as hasAnyGuildPermissionDiscord, w as DiscordSendError } from "./send.shared-CJ6oJrVc.js";
4
- import { A as removeRoleDiscord, B as removeChannelPermissionDiscord, C as fetchChannelInfoDiscord, D as kickMemberDiscord, E as fetchVoiceStatusDiscord, F as uploadStickerDiscord, I as createChannelDiscord, L as deleteChannelDiscord, M as timeoutMemberDiscord, N as listGuildEmojisDiscord, O as listGuildChannelsDiscord, P as uploadEmojiDiscord, R as editChannelDiscord, S as createScheduledEventDiscord, T as fetchRoleInfoDiscord, V as setChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as resolveEventCoverImage, k as listScheduledEventsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchMemberInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as moveChannelDiscord } from "./send-DuW4qqIK.js";
5
- import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-PAYV11wW.js";
1
+ import { x as resolveDiscordOutboundSessionRoute } from "./components-q41bHoCx.js";
2
+ import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./send.components-BuZBJysI.js";
3
+ import { D as fetchMemberGuildPermissionsDiscord, E as fetchChannelPermissionsDiscord, O as hasAllGuildPermissionsDiscord, k as hasAnyGuildPermissionDiscord, w as DiscordSendError } from "./send.shared-C6JLgsbp.js";
4
+ import { A as removeRoleDiscord, B as removeChannelPermissionDiscord, C as fetchChannelInfoDiscord, D as kickMemberDiscord, E as fetchVoiceStatusDiscord, F as uploadStickerDiscord, I as createChannelDiscord, L as deleteChannelDiscord, M as timeoutMemberDiscord, N as listGuildEmojisDiscord, O as listGuildChannelsDiscord, P as uploadEmojiDiscord, R as editChannelDiscord, S as createScheduledEventDiscord, T as fetchRoleInfoDiscord, V as setChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as resolveEventCoverImage, k as listScheduledEventsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchMemberInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as moveChannelDiscord } from "./send-BsBy21Te.js";
5
+ import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-C0OzZAv_.js";
6
6
  export { DiscordSendError, addRoleDiscord, banMemberDiscord, createChannelDiscord, createScheduledEventDiscord, createThreadDiscord, deleteChannelDiscord, deleteMessageDiscord, editChannelDiscord, editDiscordComponentMessage, editMessageDiscord, fetchChannelInfoDiscord, fetchChannelPermissionsDiscord, fetchMemberGuildPermissionsDiscord, fetchMemberInfoDiscord, fetchMessageDiscord, fetchReactionsDiscord, fetchRoleInfoDiscord, fetchVoiceStatusDiscord, hasAllGuildPermissionsDiscord, hasAnyGuildPermissionDiscord, kickMemberDiscord, listGuildChannelsDiscord, listGuildEmojisDiscord, listPinsDiscord, listScheduledEventsDiscord, listThreadsDiscord, moveChannelDiscord, pinMessageDiscord, reactMessageDiscord, readMessagesDiscord, registerBuiltDiscordComponentMessage, removeChannelPermissionDiscord, removeOwnReactionsDiscord, removeReactionDiscord, removeRoleDiscord, resolveDiscordOutboundSessionRoute, resolveEventCoverImage, searchMessagesDiscord, sendDiscordComponentMessage, sendMessageDiscord, sendPollDiscord, sendStickerDiscord, sendTypingDiscord, sendVoiceMessageDiscord, sendWebhookMessageDiscord, setChannelPermissionDiscord, timeoutMemberDiscord, unpinMessageDiscord, uploadEmojiDiscord, uploadStickerDiscord };
@@ -1,6 +1,6 @@
1
1
  import { C as resolveThreadBindingMaxAgeMs, S as resolveThreadBindingMaxAgeExpiresAt, b as resolveThreadBindingIdleTimeoutMs, l as isRecentlyUnboundThreadWebhookMessage, x as resolveThreadBindingInactivityExpiresAt } from "./thread-bindings.state-CSphZOiL.js";
2
2
  import { n as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-CgOqEOPe.js";
3
- import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-_zMU4M2x.js";
4
- import { a as reconcileAcpThreadBindingsOnStartup, c as resolveDiscordThreadBindingMaxAgeMs, i as listThreadBindingsForAccount, l as resolveThreadBindingsEnabled, n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey, s as resolveDiscordThreadBindingIdleTimeoutMs } from "./thread-bindings-CXZ2h9DB.js";
5
- import { i as getThreadBindingManager, n as createNoopThreadBindingManager, r as createThreadBindingManager, t as __testing } from "./thread-bindings.manager-XKdkYEit.js";
6
- export { __testing, autoBindSpawnedDiscordSubagent, createNoopThreadBindingManager, createThreadBindingManager, formatThreadBindingDurationLabel, getThreadBindingManager, isRecentlyUnboundThreadWebhookMessage, listThreadBindingsBySessionKey, listThreadBindingsForAccount, reconcileAcpThreadBindingsOnStartup, resolveDiscordThreadBindingIdleTimeoutMs, resolveDiscordThreadBindingMaxAgeMs, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingInactivityExpiresAt, resolveThreadBindingIntroText, resolveThreadBindingMaxAgeExpiresAt, resolveThreadBindingMaxAgeMs, resolveThreadBindingPersona, resolveThreadBindingPersonaFromRecord, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, setThreadBindingIdleTimeoutBySessionKey, setThreadBindingMaxAgeBySessionKey, unbindThreadBindingsBySessionKey };
3
+ import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-BzelVdsY.js";
4
+ import { a as reconcileAcpThreadBindingsOnStartup, c as resolveDiscordThreadBindingMaxAgeMs, i as listThreadBindingsForAccount, l as resolveThreadBindingsEnabled, n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey, s as resolveDiscordThreadBindingIdleTimeoutMs } from "./thread-bindings-BcXgbZ3-.js";
5
+ import { i as testing, n as createThreadBindingManager, r as getThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-CouT_qjE.js";
6
+ export { testing as __testing, testing, autoBindSpawnedDiscordSubagent, createNoopThreadBindingManager, createThreadBindingManager, formatThreadBindingDurationLabel, getThreadBindingManager, isRecentlyUnboundThreadWebhookMessage, listThreadBindingsBySessionKey, listThreadBindingsForAccount, reconcileAcpThreadBindingsOnStartup, resolveDiscordThreadBindingIdleTimeoutMs, resolveDiscordThreadBindingMaxAgeMs, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingInactivityExpiresAt, resolveThreadBindingIntroText, resolveThreadBindingMaxAgeExpiresAt, resolveThreadBindingMaxAgeMs, resolveThreadBindingPersona, resolveThreadBindingPersonaFromRecord, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, setThreadBindingIdleTimeoutBySessionKey, setThreadBindingMaxAgeBySessionKey, unbindThreadBindingsBySessionKey };
@@ -1,7 +1,7 @@
1
- import { At as getGuildMember, Bt as removeGuildMemberRole, C as RateLimitError, Ct as createGuildBan, Dt as createGuildSticker, E as readRetryAfter, Et as createGuildScheduledEvent, Ft as listGuildRoles, It as listGuildScheduledEvents, Lt as moveGuildChannels, Mt as listGuildActiveThreads, Nt as listGuildChannels, Ot as deleteChannelPermission, Pt as listGuildEmojis, Rt as putChannelPermission, S as DiscordError, St as addGuildMemberRole, T as readDiscordMessage, Tt as createGuildEmoji, Vt as timeoutGuildMember, Wt as __exportAll, _t as listChannelPins, at as deleteOwnMessageReaction, bt as sendChannelTyping, ct as createThread, dt as editChannel, ft as editChannelMessage, gt as listChannelMessages, ht as listChannelArchivedThreads, it as createOwnMessageReaction, jt as getGuildVoiceState, lt as deleteChannel, mt as getChannelMessage, n as createDiscordSendResult, ot as listMessageReactionUsers, pt as getChannel, st as createChannelMessage, ut as deleteChannelMessage, vt as pinChannelMessage, w as readDiscordCode, wt as createGuildChannel, xt as unpinChannelMessage, yt as searchGuildMessages, zt as removeGuildMember } from "./send.receipt-nKLxvA1s.js";
1
+ import { At as getGuildMember, Bt as removeGuildMemberRole, C as RateLimitError, Ct as createGuildBan, Dt as createGuildSticker, E as readRetryAfter, Et as createGuildScheduledEvent, Ft as listGuildRoles, It as listGuildScheduledEvents, Lt as moveGuildChannels, Mt as listGuildActiveThreads, Nt as listGuildChannels, Ot as deleteChannelPermission, Pt as listGuildEmojis, Rt as putChannelPermission, S as DiscordError, St as addGuildMemberRole, T as readDiscordMessage, Tt as createGuildEmoji, Vt as timeoutGuildMember, Wt as __exportAll, _t as listChannelPins, at as deleteOwnMessageReaction, bt as sendChannelTyping, ct as createThread, dt as editChannel, ft as editChannelMessage, gt as listChannelMessages, ht as listChannelArchivedThreads, it as createOwnMessageReaction, jt as getGuildVoiceState, lt as deleteChannel, mt as getChannelMessage, n as createDiscordSendResult, ot as listMessageReactionUsers, pt as getChannel, st as createChannelMessage, ut as deleteChannelMessage, vt as pinChannelMessage, w as readDiscordCode, wt as createGuildChannel, xt as unpinChannelMessage, yt as searchGuildMessages, zt as removeGuildMember } from "./send.receipt-Dhym-qOF.js";
2
2
  import { s as resolveDiscordAccount } from "./accounts-ltxKLzxN.js";
3
- import { C as DISCORD_MAX_STICKER_BYTES, D as fetchMemberGuildPermissionsDiscord, E as fetchChannelPermissionsDiscord, F as resolveDiscordClientAccountContext, I as resolveDiscordRest, M as createDiscordClient, O as hasAllGuildPermissionsDiscord, S as DISCORD_MAX_EVENT_COVER_BYTES, T as canViewDiscordGuildChannel, i as formatReactionEmoji, j as parseAndResolveRecipient, k as hasAnyGuildPermissionDiscord, l as resolveChannelId, o as normalizeEmojiName, r as buildReactionIdentifier, s as normalizeReactionEmoji, t as buildDiscordSendError, w as DiscordSendError, x as DISCORD_MAX_EMOJI_BYTES } from "./send.shared-CJ6oJrVc.js";
4
- import { a as rewriteDiscordKnownMentions, n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-PAYV11wW.js";
3
+ import { C as DISCORD_MAX_STICKER_BYTES, D as fetchMemberGuildPermissionsDiscord, E as fetchChannelPermissionsDiscord, F as resolveDiscordClientAccountContext, I as resolveDiscordRest, M as createDiscordClient, O as hasAllGuildPermissionsDiscord, S as DISCORD_MAX_EVENT_COVER_BYTES, T as canViewDiscordGuildChannel, i as formatReactionEmoji, j as parseAndResolveRecipient, k as hasAnyGuildPermissionDiscord, l as resolveChannelId, o as normalizeEmojiName, r as buildReactionIdentifier, s as normalizeReactionEmoji, t as buildDiscordSendError, w as DiscordSendError, x as DISCORD_MAX_EMOJI_BYTES } from "./send.shared-C6JLgsbp.js";
4
+ import { a as rewriteDiscordKnownMentions, n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-C0OzZAv_.js";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { ChannelType } from "discord-api-types/v10";
7
7
  import crypto from "node:crypto";
@@ -1,10 +1,10 @@
1
- import { M as serializePayload, Wt as __exportAll, ft as editChannelMessage, n as createDiscordSendResult, st as createChannelMessage } from "./send.receipt-nKLxvA1s.js";
1
+ import { M as serializePayload, Wt as __exportAll, ft as editChannelMessage, n as createDiscordSendResult, st as createChannelMessage } from "./send.receipt-Dhym-qOF.js";
2
2
  import { s as resolveDiscordAccount } from "./accounts-ltxKLzxN.js";
3
3
  import "./config-api-oLS_52S7.js";
4
4
  import "./channel-api-JudoSiJv.js";
5
- import { c as buildDiscordComponentMessage, f as resolveDiscordComponentAttachmentName, l as buildDiscordComponentMessageFlags } from "./components-KsP3ijoj.js";
6
- import { M as createDiscordClient, b as stripUndefinedFields, h as SUPPRESS_NOTIFICATIONS_FLAG, j as parseAndResolveRecipient, l as resolveChannelId, m as toDiscordFileBlob, t as buildDiscordSendError, u as resolveDiscordChannelType } from "./send.shared-CJ6oJrVc.js";
7
- import { t as sendMessageDiscord } from "./send.outbound-PAYV11wW.js";
5
+ import { c as buildDiscordComponentMessage, f as resolveDiscordComponentAttachmentName, l as buildDiscordComponentMessageFlags } from "./components-q41bHoCx.js";
6
+ import { M as createDiscordClient, b as stripUndefinedFields, h as SUPPRESS_NOTIFICATIONS_FLAG, j as parseAndResolveRecipient, l as resolveChannelId, m as toDiscordFileBlob, t as buildDiscordSendError, u as resolveDiscordChannelType } from "./send.shared-C6JLgsbp.js";
7
+ import { t as sendMessageDiscord } from "./send.outbound-C0OzZAv_.js";
8
8
  import { n as getOptionalDiscordRuntime } from "./runtime-Tqtvj5GX.js";
9
9
  import "openclaw/plugin-sdk/account-id";
10
10
  import "openclaw/plugin-sdk/secret-input";
@@ -1,7 +1,7 @@
1
- import { ct as createThread, n as createDiscordSendResult, st as createChannelMessage } from "./send.receipt-nKLxvA1s.js";
1
+ import { ct as createThread, n as createDiscordSendResult, st as createChannelMessage } from "./send.receipt-Dhym-qOF.js";
2
2
  import { s as resolveDiscordAccount } from "./accounts-ltxKLzxN.js";
3
- import { M as createDiscordClient, _ as resolveDiscordMessageFlags, a as normalizeDiscordPollInput, c as normalizeStickerIds, f as sendDiscordMedia, g as buildDiscordMessageRequest, j as parseAndResolveRecipient, l as resolveChannelId, n as buildDiscordTextChunks, p as sendDiscordText, t as buildDiscordSendError, u as resolveDiscordChannelType, v as resolveDiscordSendComponents, y as resolveDiscordSendEmbeds } from "./send.shared-CJ6oJrVc.js";
4
- import { a as resolveDiscordDirectoryUserId } from "./directory-live-D5VrQBC7.js";
3
+ import { M as createDiscordClient, _ as resolveDiscordMessageFlags, a as normalizeDiscordPollInput, c as normalizeStickerIds, f as sendDiscordMedia, g as buildDiscordMessageRequest, j as parseAndResolveRecipient, l as resolveChannelId, n as buildDiscordTextChunks, p as sendDiscordText, t as buildDiscordSendError, u as resolveDiscordChannelType, v as resolveDiscordSendComponents, y as resolveDiscordSendEmbeds } from "./send.shared-C6JLgsbp.js";
4
+ import { a as resolveDiscordDirectoryUserId } from "./directory-live-CJiEWQwK.js";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { ChannelType } from "discord-api-types/v10";
7
7
  import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
@@ -873,30 +873,30 @@ var Base = class {
873
873
  var User = class extends Base {
874
874
  constructor(client, rawDataOrId) {
875
875
  super(client);
876
- this._rawData = typeof rawDataOrId === "string" ? null : rawDataOrId;
876
+ this.rawDataValue = typeof rawDataOrId === "string" ? null : rawDataOrId;
877
877
  this.id = typeof rawDataOrId === "string" ? rawDataOrId : rawDataOrId.id;
878
878
  }
879
879
  get rawData() {
880
- if (!this._rawData) throw new Error("Partial Discord user has no raw data");
881
- return this._rawData;
880
+ if (!this.rawDataValue) throw new Error("Partial Discord user has no raw data");
881
+ return this.rawDataValue;
882
882
  }
883
883
  get partial() {
884
- return this._rawData === null;
884
+ return this.rawDataValue === null;
885
885
  }
886
886
  get username() {
887
- return this._rawData?.username ?? "";
887
+ return this.rawDataValue?.username ?? "";
888
888
  }
889
889
  get globalName() {
890
- return this._rawData?.global_name;
890
+ return this.rawDataValue?.global_name;
891
891
  }
892
892
  get discriminator() {
893
- return this._rawData?.discriminator;
893
+ return this.rawDataValue?.discriminator;
894
894
  }
895
895
  get bot() {
896
- return this._rawData?.bot;
896
+ return this.rawDataValue?.bot;
897
897
  }
898
898
  get avatar() {
899
- return this._rawData?.avatar;
899
+ return this.rawDataValue?.avatar;
900
900
  }
901
901
  get avatarUrl() {
902
902
  return this.avatar ? `https://cdn.discordapp.com/avatars/${this.id}/${this.avatar}.png` : null;
@@ -919,21 +919,21 @@ var User = class extends Base {
919
919
  var Role = class extends Base {
920
920
  constructor(client, rawDataOrId) {
921
921
  super(client);
922
- this._rawData = typeof rawDataOrId === "string" ? null : rawDataOrId;
922
+ this.rawDataValue = typeof rawDataOrId === "string" ? null : rawDataOrId;
923
923
  this.id = typeof rawDataOrId === "string" ? rawDataOrId : rawDataOrId.id;
924
924
  }
925
925
  get name() {
926
- return this._rawData?.name ?? "";
926
+ return this.rawDataValue?.name ?? "";
927
927
  }
928
928
  };
929
929
  var Guild = class extends Base {
930
930
  constructor(client, rawDataOrId) {
931
931
  super(client);
932
- this._rawData = typeof rawDataOrId === "string" ? null : rawDataOrId;
932
+ this.rawDataValue = typeof rawDataOrId === "string" ? null : rawDataOrId;
933
933
  this.id = typeof rawDataOrId === "string" ? rawDataOrId : rawDataOrId.id;
934
934
  }
935
935
  get name() {
936
- return this._rawData?.name ?? "";
936
+ return this.rawDataValue?.name ?? "";
937
937
  }
938
938
  };
939
939
  var GuildMember = class extends Base {
@@ -954,16 +954,16 @@ var GuildMember = class extends Base {
954
954
  var Message = class Message extends Base {
955
955
  constructor(client, rawDataOrIds) {
956
956
  super(client);
957
- this._rawData = typeof rawDataOrIds === "string" || !("author" in rawDataOrIds) ? null : rawDataOrIds;
957
+ this.rawDataValue = typeof rawDataOrIds === "string" || !("author" in rawDataOrIds) ? null : rawDataOrIds;
958
958
  this.id = typeof rawDataOrIds === "string" ? rawDataOrIds : rawDataOrIds.id;
959
959
  this.channelId = typeof rawDataOrIds === "string" ? "" : "channel_id" in rawDataOrIds ? rawDataOrIds.channel_id : rawDataOrIds.channelId ?? "";
960
960
  }
961
961
  get rawData() {
962
- if (!this._rawData) throw new Error("Partial Discord message has no raw data");
963
- return this._rawData;
962
+ if (!this.rawDataValue) throw new Error("Partial Discord message has no raw data");
963
+ return this.rawDataValue;
964
964
  }
965
965
  get partial() {
966
- return this._rawData === null;
966
+ return this.rawDataValue === null;
967
967
  }
968
968
  get message() {
969
969
  return this;
@@ -972,7 +972,7 @@ var Message = class Message extends Base {
972
972
  return this.channelId;
973
973
  }
974
974
  get guild_id() {
975
- return this._rawData?.guild_id;
975
+ return this.rawDataValue?.guild_id;
976
976
  }
977
977
  get guild() {
978
978
  return this.guild_id ? new Guild(this.client, this.guild_id) : null;
@@ -981,53 +981,53 @@ var Message = class Message extends Base {
981
981
  return this.webhook_id;
982
982
  }
983
983
  get webhook_id() {
984
- return this._rawData?.webhook_id ?? null;
984
+ return this.rawDataValue?.webhook_id ?? null;
985
985
  }
986
986
  get member() {
987
- const member = this._rawData?.member;
987
+ const member = this.rawDataValue?.member;
988
988
  return member ? new GuildMember(this.client, member) : null;
989
989
  }
990
990
  get rawMember() {
991
- return this._rawData?.member;
991
+ return this.rawDataValue?.member;
992
992
  }
993
993
  get content() {
994
- return this._rawData?.content ?? "";
994
+ return this.rawDataValue?.content ?? "";
995
995
  }
996
996
  get author() {
997
- return this._rawData?.author ? new User(this.client, this._rawData.author) : null;
997
+ return this.rawDataValue?.author ? new User(this.client, this.rawDataValue.author) : null;
998
998
  }
999
999
  get embeds() {
1000
- return this._rawData?.embeds ?? [];
1000
+ return this.rawDataValue?.embeds ?? [];
1001
1001
  }
1002
1002
  get attachments() {
1003
- return this._rawData?.attachments ?? [];
1003
+ return this.rawDataValue?.attachments ?? [];
1004
1004
  }
1005
1005
  get stickers() {
1006
- return this._rawData?.sticker_items ?? [];
1006
+ return this.rawDataValue?.sticker_items ?? [];
1007
1007
  }
1008
1008
  get mentionedUsers() {
1009
- return (this._rawData?.mentions ?? []).map((user) => new User(this.client, user));
1009
+ return (this.rawDataValue?.mentions ?? []).map((user) => new User(this.client, user));
1010
1010
  }
1011
1011
  get mentionedRoles() {
1012
- return this._rawData?.mention_roles ?? [];
1012
+ return this.rawDataValue?.mention_roles ?? [];
1013
1013
  }
1014
1014
  get mentionedEveryone() {
1015
- return this._rawData?.mention_everyone ?? false;
1015
+ return this.rawDataValue?.mention_everyone ?? false;
1016
1016
  }
1017
1017
  get timestamp() {
1018
- return this._rawData?.timestamp;
1018
+ return this.rawDataValue?.timestamp;
1019
1019
  }
1020
1020
  get type() {
1021
- return this._rawData?.type;
1021
+ return this.rawDataValue?.type;
1022
1022
  }
1023
1023
  get messageReference() {
1024
- return this._rawData?.message_reference;
1024
+ return this.rawDataValue?.message_reference;
1025
1025
  }
1026
1026
  get referencedMessage() {
1027
- return this._rawData?.referenced_message ? new Message(this.client, this._rawData.referenced_message) : null;
1027
+ return this.rawDataValue?.referenced_message ? new Message(this.client, this.rawDataValue.referenced_message) : null;
1028
1028
  }
1029
1029
  get thread() {
1030
- return this._rawData?.thread ? channelFactory(this.client, this._rawData.thread) : null;
1030
+ return this.rawDataValue?.thread ? channelFactory(this.client, this.rawDataValue.thread) : null;
1031
1031
  }
1032
1032
  async fetch() {
1033
1033
  const raw = await getChannelMessage(this.client.rest, this.channelId, this.id);
@@ -1057,12 +1057,12 @@ var Message = class Message extends Base {
1057
1057
  await unpinChannelMessage(this.client.rest, this.channelId, this.id);
1058
1058
  }
1059
1059
  };
1060
- function channelFactory(_client, channelData, _partial) {
1060
+ function channelFactory(clientForTest, channelData, _partial) {
1061
1061
  return {
1062
1062
  ...channelData,
1063
1063
  rawData: channelData,
1064
1064
  guildId: "guild_id" in channelData ? channelData.guild_id : void 0,
1065
- guild: "guild_id" in channelData && typeof channelData.guild_id === "string" ? new Guild(_client, channelData.guild_id) : void 0,
1065
+ guild: "guild_id" in channelData && typeof channelData.guild_id === "string" ? new Guild(clientForTest, channelData.guild_id) : void 0,
1066
1066
  parentId: "parent_id" in channelData ? channelData.parent_id : void 0,
1067
1067
  ownerId: "owner_id" in channelData ? channelData.owner_id : void 0
1068
1068
  };
@@ -3011,7 +3011,7 @@ function chunkDiscordTextWithMode(text, opts) {
3011
3011
  }
3012
3012
  function rebalanceReasoningItalics(source, chunks) {
3013
3013
  if (chunks.length <= 1) return chunks;
3014
- if (!(source.startsWith("Reasoning:\n_") && source.trimEnd().endsWith("_"))) return chunks;
3014
+ if (!(/^(?:Reasoning:|Thinking\.{0,3})\n+_/u.test(source) && source.trimEnd().endsWith("_"))) return chunks;
3015
3015
  const adjusted = [...chunks];
3016
3016
  for (let i = 0; i < adjusted.length; i++) {
3017
3017
  const isLast = i === adjusted.length - 1;
@@ -1,6 +1,6 @@
1
- import { At as getGuildMember, C as RateLimitError, M as serializePayload, kt as getGuild, nt as createUserDmChannel, pt as getChannel, rt as getCurrentUser, s as chunkDiscordTextWithMode, st as createChannelMessage, v as Embed, x as RequestClient } from "./send.receipt-nKLxvA1s.js";
1
+ import { At as getGuildMember, C as RateLimitError, M as serializePayload, kt as getGuild, nt as createUserDmChannel, pt as getChannel, rt as getCurrentUser, s as chunkDiscordTextWithMode, st as createChannelMessage, v as Embed, x as RequestClient } from "./send.receipt-Dhym-qOF.js";
2
2
  import { a as mergeDiscordAccountConfig, p as normalizeDiscordToken, s as resolveDiscordAccount } from "./accounts-ltxKLzxN.js";
3
- import { t as parseAndResolveDiscordTarget } from "./target-resolver-CgtNlbhO.js";
3
+ import { t as parseAndResolveDiscordTarget } from "./target-resolver-C5tK3vit.js";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
6
6
  import { ChannelType, MessageFlags, PermissionFlagsBits } from "discord-api-types/v10";
@@ -1,2 +1,2 @@
1
- import { t as discordSetupPlugin } from "./channel.setup-D1j7U4B3.js";
1
+ import { t as discordSetupPlugin } from "./channel.setup-DR3-U0wF.js";
2
2
  export { discordSetupPlugin };