@openclaw/discord 2026.5.10-beta.5 → 2026.5.12-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.
package/dist/api.js CHANGED
@@ -8,7 +8,7 @@ import { _ as parseDiscordModalCustomIdForInteraction, a as buildDiscordComponen
8
8
  import { t as buildDiscordInteractiveComponents } from "./shared-interactive-DavY6jYt.js";
9
9
  import "./targets-DToZUkgV.js";
10
10
  import { a as shouldSuppressLocalDiscordExecApprovalPrompt, i as isDiscordExecApprovalClientEnabled, n as getDiscordExecApprovalApprovers, r as isDiscordExecApprovalApprover } from "./approval-shared-BFnWKSQD.js";
11
- import { i as resolveDiscordGroupToolPolicy, n as collectDiscordStatusIssues, r as resolveDiscordGroupRequireMention, t as discordPlugin } from "./channel-Cg-h13vl.js";
11
+ import { i as resolveDiscordGroupToolPolicy, n as collectDiscordStatusIssues, r as resolveDiscordGroupRequireMention, t as discordPlugin } from "./channel-Bliqi-Qi.js";
12
12
  import { t as normalizeExplicitDiscordSessionKey } from "./session-key-normalization-BV82IME9.js";
13
13
  import { t as discordSetupPlugin } from "./channel.setup-DR-xVYso.js";
14
14
  import { n as handleDiscordSubagentEnded, r as handleDiscordSubagentSpawning, t as handleDiscordSubagentDeliveryTarget } from "./subagent-hooks-CtN-hfXy.js";
@@ -135,7 +135,7 @@ const loadDiscordResolveUsersModule = createLazyRuntimeModule(() => import("./re
135
135
  const loadDiscordThreadBindingsManagerModule = createLazyRuntimeModule(() => import("./thread-bindings.manager-DNFl10CA.js").then((n) => n.a));
136
136
  const loadDiscordTargetResolverModule = createLazyRuntimeModule(() => import("./target-resolver-CgJei-kD.js").then((n) => n.r));
137
137
  async function loadDiscordProviderRuntime() {
138
- discordProviderRuntimePromise ??= import("./provider.runtime-DMRM_oVO.js");
138
+ discordProviderRuntimePromise ??= import("./provider.runtime-Cmv1SFtb.js");
139
139
  return await discordProviderRuntimePromise;
140
140
  }
141
141
  async function loadDiscordProbeRuntime() {
@@ -1,2 +1,2 @@
1
- import { t as discordPlugin } from "./channel-Cg-h13vl.js";
1
+ import { t as discordPlugin } from "./channel-Bliqi-Qi.js";
2
2
  export { discordPlugin };
@@ -1745,24 +1745,6 @@ function createModelSelect(params) {
1745
1745
  }
1746
1746
  return new DiscordModelPickerSelect();
1747
1747
  }
1748
- function getRuntimeChoices(params) {
1749
- return params.data.runtimeChoicesByProvider?.get(normalizeProviderId(params.provider)) ?? [{
1750
- id: "pi",
1751
- label: "OpenClaw Pi Default",
1752
- description: "Use the built-in OpenClaw Pi runtime."
1753
- }];
1754
- }
1755
- function resolveSelectedRuntime(params) {
1756
- const choices = getRuntimeChoices({
1757
- data: params.data,
1758
- provider: params.provider
1759
- });
1760
- const allowed = new Set(choices.map((choice) => choice.id));
1761
- const pending = params.pendingRuntime?.trim();
1762
- if (pending && allowed.has(pending)) return pending;
1763
- const current = params.currentRuntime?.trim();
1764
- return current && allowed.has(current) ? current : "pi";
1765
- }
1766
1748
  function buildRenderedShell(params) {
1767
1749
  if (params.layout === "classic") return {
1768
1750
  layout: "classic",
@@ -1845,41 +1827,6 @@ function buildModelRows(params) {
1845
1827
  options: providerOptions,
1846
1828
  placeholder: "Select provider"
1847
1829
  })]));
1848
- const runtimeChoices = getRuntimeChoices({
1849
- data: params.data,
1850
- provider: params.modelPage.provider
1851
- });
1852
- const selectedRuntime = resolveSelectedRuntime({
1853
- data: params.data,
1854
- provider: params.modelPage.provider,
1855
- currentRuntime: params.currentRuntime,
1856
- pendingRuntime: params.pendingRuntime
1857
- });
1858
- const normalizedCurrentRuntime = params.currentRuntime?.trim();
1859
- const stateRuntime = runtimeChoices.length > 1 || Boolean(normalizedCurrentRuntime) && normalizedCurrentRuntime !== "auto" && normalizedCurrentRuntime !== "pi" && normalizedCurrentRuntime !== "default" ? selectedRuntime : void 0;
1860
- if (runtimeChoices.length > 1) rows.push(new Row([createModelSelect({
1861
- customId: buildDiscordModelPickerCustomId({
1862
- command: params.command,
1863
- action: "runtime",
1864
- view: "models",
1865
- provider: params.modelPage.provider,
1866
- runtime: selectedRuntime,
1867
- page: params.modelPage.page,
1868
- providerPage: providerPage.page,
1869
- modelIndex: params.pendingModelIndex,
1870
- userId: params.userId
1871
- }),
1872
- options: runtimeChoices.map((choice) => {
1873
- const option = {
1874
- label: choice.label,
1875
- value: choice.id,
1876
- default: choice.id === selectedRuntime
1877
- };
1878
- if (choice.description) option.description = choice.description;
1879
- return option;
1880
- }),
1881
- placeholder: "Select runtime"
1882
- })]));
1883
1830
  const selectedModelRef = parsedPendingModel ?? parsedCurrentModel;
1884
1831
  const modelOptions = params.modelPage.items.map((model) => ({
1885
1832
  label: model,
@@ -1892,7 +1839,6 @@ function buildModelRows(params) {
1892
1839
  action: "model",
1893
1840
  view: "models",
1894
1841
  provider: params.modelPage.provider,
1895
- runtime: stateRuntime,
1896
1842
  page: params.modelPage.page,
1897
1843
  providerPage: providerPage.page,
1898
1844
  userId: params.userId
@@ -1911,7 +1857,6 @@ function buildModelRows(params) {
1911
1857
  action: "cancel",
1912
1858
  view: "models",
1913
1859
  provider: params.modelPage.provider,
1914
- runtime: stateRuntime,
1915
1860
  page: params.modelPage.page,
1916
1861
  providerPage: providerPage.page,
1917
1862
  userId: params.userId
@@ -1925,7 +1870,6 @@ function buildModelRows(params) {
1925
1870
  action: "reset",
1926
1871
  view: "models",
1927
1872
  provider: params.modelPage.provider,
1928
- runtime: stateRuntime,
1929
1873
  page: params.modelPage.page,
1930
1874
  providerPage: providerPage.page,
1931
1875
  userId: params.userId
@@ -1939,7 +1883,6 @@ function buildModelRows(params) {
1939
1883
  action: "recents",
1940
1884
  view: "recents",
1941
1885
  provider: params.modelPage.provider,
1942
- runtime: stateRuntime,
1943
1886
  page: params.modelPage.page,
1944
1887
  providerPage: providerPage.page,
1945
1888
  userId: params.userId
@@ -1954,7 +1897,6 @@ function buildModelRows(params) {
1954
1897
  action: "submit",
1955
1898
  view: "models",
1956
1899
  provider: params.modelPage.provider,
1957
- runtime: stateRuntime,
1958
1900
  page: params.modelPage.page,
1959
1901
  providerPage: providerPage.page,
1960
1902
  modelIndex: params.pendingModelIndex,
@@ -2022,17 +1964,10 @@ function renderDiscordModelPickerModelsView(params) {
2022
1964
  currentModel: params.currentModel,
2023
1965
  pendingModel: params.pendingModel,
2024
1966
  pendingModelIndex: params.pendingModelIndex,
2025
- currentRuntime: params.currentRuntime,
2026
- pendingRuntime: params.pendingRuntime,
2027
1967
  quickModels: params.quickModels
2028
1968
  });
2029
1969
  const defaultModel = `${params.data.resolvedDefault.provider}/${params.data.resolvedDefault.model}`;
2030
- const pendingLine = params.pendingModel ? `Selected: ${params.pendingModel} · runtime ${resolveSelectedRuntime({
2031
- data: params.data,
2032
- provider: modelPage.provider,
2033
- currentRuntime: params.currentRuntime,
2034
- pendingRuntime: params.pendingRuntime
2035
- })} (press Submit)` : "Select a model, then press Submit.";
1970
+ const pendingLine = params.pendingModel ? `Selected: ${params.pendingModel} (press Submit)` : "Select a model, then press Submit.";
2036
1971
  return buildRenderedShell({
2037
1972
  layout: params.layout ?? "v2",
2038
1973
  title: "Model Picker",
@@ -2222,9 +2157,6 @@ function shouldOpenDiscordModelPickerFromCommand(params) {
2222
2157
  function buildDiscordModelPickerCurrentModel(defaultProvider, defaultModel) {
2223
2158
  return `${defaultProvider}/${defaultModel}`;
2224
2159
  }
2225
- function resolveConfiguredAgentRuntimeId(value) {
2226
- return normalizeOptionalString(value.agentRuntime?.id);
2227
- }
2228
2160
  function buildDiscordModelPickerAllowedModelRefs(data) {
2229
2161
  const out = /* @__PURE__ */ new Set();
2230
2162
  for (const provider of data.providers) {
@@ -2325,15 +2257,6 @@ function resolveDiscordModelPickerCurrentModel(params) {
2325
2257
  return fallback;
2326
2258
  }
2327
2259
  }
2328
- function resolveDiscordModelPickerCurrentRuntime(params) {
2329
- try {
2330
- const sessionRuntime = normalizeOptionalString(loadSessionStore(resolveStorePath(params.cfg.session?.store, { agentId: params.route.agentId }), { skipCache: true })[params.route.sessionKey]?.agentRuntimeOverride);
2331
- if (sessionRuntime) return sessionRuntime;
2332
- } catch {}
2333
- const agentRuntime = resolveConfiguredAgentRuntimeId(params.cfg.agents?.list?.find((entry) => normalizeOptionalString(entry.id) === params.route.agentId) ?? {});
2334
- if (agentRuntime) return agentRuntime;
2335
- return resolveConfiguredAgentRuntimeId(params.cfg.agents?.defaults ?? {}) ?? "auto";
2336
- }
2337
2260
  async function replyWithDiscordModelPickerProviders(params) {
2338
2261
  const route = await resolveDiscordModelPickerRoute({
2339
2262
  interaction: params.interaction,
@@ -2347,10 +2270,6 @@ async function replyWithDiscordModelPickerProviders(params) {
2347
2270
  route,
2348
2271
  data
2349
2272
  });
2350
- const currentRuntime = resolveDiscordModelPickerCurrentRuntime({
2351
- cfg: params.cfg,
2352
- route
2353
- });
2354
2273
  const quickModels = await readDiscordModelPickerRecentModels({
2355
2274
  scope: resolveDiscordModelPickerPreferenceScope({
2356
2275
  interaction: params.interaction,
@@ -2371,7 +2290,6 @@ async function replyWithDiscordModelPickerProviders(params) {
2371
2290
  page: 1,
2372
2291
  providerPage: 1,
2373
2292
  currentModel,
2374
- currentRuntime,
2375
2293
  quickModels
2376
2294
  })),
2377
2295
  ephemeral: true
@@ -2408,11 +2326,9 @@ function resolveModelPickerSelectionValue(interaction) {
2408
2326
  function buildDiscordModelPickerSelectionCommand(params) {
2409
2327
  const commandDefinition = findCommandByNativeName("model", "discord") ?? listChatCommands().find((entry) => entry.key === "model");
2410
2328
  if (!commandDefinition) return null;
2411
- const runtime = normalizeOptionalString(params.runtime);
2412
- const raw = runtime ? `${params.modelRef} --runtime ${runtime}` : params.modelRef;
2413
2329
  const commandArgs = {
2414
2330
  values: { model: params.modelRef },
2415
- raw
2331
+ raw: params.modelRef
2416
2332
  };
2417
2333
  return {
2418
2334
  command: commandDefinition,
@@ -2466,10 +2382,6 @@ async function handleDiscordModelPickerInteraction(params) {
2466
2382
  route,
2467
2383
  data: pickerData
2468
2384
  });
2469
- const currentRuntime = resolveDiscordModelPickerCurrentRuntime({
2470
- cfg: ctx.cfg,
2471
- route
2472
- });
2473
2385
  const allowedModelRefs = buildDiscordModelPickerAllowedModelRefs(pickerData);
2474
2386
  const preferenceScope = resolveDiscordModelPickerPreferenceScope({
2475
2387
  interaction,
@@ -2516,7 +2428,6 @@ async function handleDiscordModelPickerInteraction(params) {
2516
2428
  page: parsed.page ?? 1,
2517
2429
  providerPage: parsed.providerPage ?? 1,
2518
2430
  currentModel: currentModelRef,
2519
- currentRuntime,
2520
2431
  quickModels
2521
2432
  })));
2522
2433
  return;
@@ -2535,7 +2446,6 @@ async function handleDiscordModelPickerInteraction(params) {
2535
2446
  page: 1,
2536
2447
  providerPage: parsed.providerPage ?? parsed.page,
2537
2448
  currentModel: currentModelRef,
2538
- currentRuntime,
2539
2449
  quickModels
2540
2450
  })));
2541
2451
  return;
@@ -2565,39 +2475,8 @@ async function handleDiscordModelPickerInteraction(params) {
2565
2475
  page: parsed.page,
2566
2476
  providerPage: parsed.providerPage ?? 1,
2567
2477
  currentModel: currentModelRef,
2568
- currentRuntime,
2569
2478
  pendingModel: modelRef,
2570
2479
  pendingModelIndex: modelIndex,
2571
- pendingRuntime: parsed.runtime,
2572
- quickModels
2573
- })));
2574
- return;
2575
- }
2576
- if (parsed.action === "runtime") {
2577
- const selectedRuntime = resolveModelPickerSelectionValue(interaction) ?? parsed.runtime ?? "auto";
2578
- const provider = parsed.provider;
2579
- if (!provider || !pickerData.byProvider.has(provider)) {
2580
- await showNotice("Sorry, that provider isn't available anymore.");
2581
- return;
2582
- }
2583
- const selectedModel = resolveDiscordModelPickerModelByIndex({
2584
- data: pickerData,
2585
- provider,
2586
- modelIndex: parsed.modelIndex
2587
- });
2588
- const pendingModel = selectedModel ? `${provider}/${selectedModel}` : void 0;
2589
- await updatePicker(toDiscordModelPickerMessagePayload(renderDiscordModelPickerModelsView({
2590
- command: parsed.command,
2591
- userId: parsed.userId,
2592
- data: pickerData,
2593
- provider,
2594
- page: parsed.page,
2595
- providerPage: parsed.providerPage ?? 1,
2596
- currentModel: currentModelRef,
2597
- currentRuntime,
2598
- ...pendingModel ? { pendingModel } : {},
2599
- pendingModelIndex: parsed.modelIndex,
2600
- pendingRuntime: selectedRuntime,
2601
2480
  quickModels
2602
2481
  })));
2603
2482
  return;
@@ -2629,10 +2508,7 @@ async function handleDiscordModelPickerInteraction(params) {
2629
2508
  return;
2630
2509
  }
2631
2510
  const resolvedModelRef = `${parsedModelRef.provider}/${parsedModelRef.model}`;
2632
- const selectionCommand = buildDiscordModelPickerSelectionCommand({
2633
- modelRef: resolvedModelRef,
2634
- runtime: normalizeOptionalString(parsed.runtime) ?? (currentRuntime !== "auto" && currentRuntime !== "default" ? currentRuntime : void 0)
2635
- });
2511
+ const selectionCommand = buildDiscordModelPickerSelectionCommand({ modelRef: resolvedModelRef });
2636
2512
  if (!selectionCommand) {
2637
2513
  await showNotice("Sorry, /model is unavailable right now.");
2638
2514
  return;
@@ -0,0 +1,2 @@
1
+ import { t as monitorDiscordProvider } from "./provider-DABvNRT0.js";
2
+ export { monitorDiscordProvider };
@@ -21,11 +21,11 @@ import { a as mergeAbortSignals, i as DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, n as
21
21
  import "./runtime-api.actions.js";
22
22
  import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-BliEqCEc.js";
23
23
  import "./runtime-api.lookup.js";
24
- import { a as createDiscordNativeCommand, i as waitForDiscordGatewayPluginRegistration, n as createDiscordGatewayPlugin, o as registerDiscordListener, r as resolveDiscordGatewayIntents, t as monitorDiscordProvider } from "./provider-Bm-jb8A3.js";
24
+ import { a as createDiscordNativeCommand, i as waitForDiscordGatewayPluginRegistration, n as createDiscordGatewayPlugin, o as registerDiscordListener, r as resolveDiscordGatewayIntents, t as monitorDiscordProvider } from "./provider-DABvNRT0.js";
25
25
  import { i as buildDiscordMediaPayload } from "./message-utils-ByofKwPe.js";
26
26
  import { o as sanitizeDiscordThreadName, r as resolveDiscordReplyTarget } from "./threading-CLZ3v7-y.js";
27
27
  import { t as createDiscordMessageHandler } from "./message-handler-DIsnboy2.js";
28
- import "./runtime-api.monitor-Dlwle_VC.js";
28
+ import "./runtime-api.monitor-W_dJ5EQu.js";
29
29
  import "./runtime-api.send.js";
30
30
  import "./runtime-api.threads.js";
31
31
  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 };
@@ -1,5 +1,5 @@
1
1
  import "./allow-list-n8Ki-Rt3.js";
2
- import "./provider-Bm-jb8A3.js";
2
+ import "./provider-DABvNRT0.js";
3
3
  import "./message-utils-ByofKwPe.js";
4
4
  import "./threading-CLZ3v7-y.js";
5
5
  import "./message-handler-DIsnboy2.js";
@@ -1,9 +1,9 @@
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-BKG4KIVC.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-n8Ki-Rt3.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-C3FYXWJX.js";
4
- import { a as createDiscordNativeCommand, i as waitForDiscordGatewayPluginRegistration, n as createDiscordGatewayPlugin, o as registerDiscordListener, r as resolveDiscordGatewayIntents, t as monitorDiscordProvider } from "./provider-Bm-jb8A3.js";
4
+ import { a as createDiscordNativeCommand, i as waitForDiscordGatewayPluginRegistration, n as createDiscordGatewayPlugin, o as registerDiscordListener, r as resolveDiscordGatewayIntents, t as monitorDiscordProvider } from "./provider-DABvNRT0.js";
5
5
  import { i as buildDiscordMediaPayload } from "./message-utils-ByofKwPe.js";
6
6
  import { o as sanitizeDiscordThreadName, r as resolveDiscordReplyTarget } from "./threading-CLZ3v7-y.js";
7
7
  import { t as createDiscordMessageHandler } from "./message-handler-DIsnboy2.js";
8
- import "./runtime-api.monitor-Dlwle_VC.js";
8
+ import "./runtime-api.monitor-W_dJ5EQu.js";
9
9
  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 };
package/dist/test-api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as discordPlugin } from "./channel-Cg-h13vl.js";
1
+ import { t as discordPlugin } from "./channel-Bliqi-Qi.js";
2
2
  import { n as discordOutbound } from "./outbound-adapter-lWjkSeyP.js";
3
3
  import { t as __testing } from "./thread-bindings.manager-DNFl10CA.js";
4
4
  import { n as buildDiscordInboundAccessContext } from "./inbound-context-jtKcY9on.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.5.10-beta.5",
3
+ "version": "2026.5.12-beta.2",
4
4
  "description": "OpenClaw Discord channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,20 +8,20 @@
8
8
  },
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@discordjs/voice": "^0.19.2",
12
- "discord-api-types": "^0.38.47",
13
- "https-proxy-agent": "^9.0.0",
14
- "opusscript": "^0.1.1",
11
+ "@discordjs/voice": "0.19.2",
12
+ "discord-api-types": "0.38.47",
13
+ "https-proxy-agent": "9.0.0",
14
+ "opusscript": "0.1.1",
15
15
  "typebox": "1.1.38",
16
16
  "undici": "8.2.0",
17
- "ws": "^8.20.0"
17
+ "ws": "8.20.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@openclaw/plugin-sdk": "workspace:*",
21
21
  "openclaw": "workspace:*"
22
22
  },
23
23
  "peerDependencies": {
24
- "openclaw": ">=2026.5.10-beta.5"
24
+ "openclaw": ">=2026.5.12-beta.2"
25
25
  },
26
26
  "peerDependenciesMeta": {
27
27
  "openclaw": {
@@ -65,10 +65,10 @@
65
65
  "allowInvalidConfigRecovery": true
66
66
  },
67
67
  "compat": {
68
- "pluginApi": ">=2026.5.10-beta.5"
68
+ "pluginApi": ">=2026.5.12-beta.2"
69
69
  },
70
70
  "build": {
71
- "openclawVersion": "2026.5.10-beta.5"
71
+ "openclawVersion": "2026.5.12-beta.2"
72
72
  },
73
73
  "release": {
74
74
  "publishToClawHub": true,
@@ -1,2 +0,0 @@
1
- import { t as monitorDiscordProvider } from "./provider-Bm-jb8A3.js";
2
- export { monitorDiscordProvider };