@openclaw/discord 2026.7.1-beta.1 → 2026.7.1-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/action-runtime-api.js +1 -1
- package/dist/api.js +6 -6
- package/dist/{approval-handler.runtime-DzoY4ufU.js → approval-handler.runtime-Cg7CuLSc.js} +2 -2
- package/dist/{audit-BXGKCgbA.js → audit-BCVhE9Oe.js} +2 -2
- package/dist/{channel-Da36gsaP.js → channel-CfngVOjW.js} +11 -31
- package/dist/{channel-actions-CamohoDF.js → channel-actions-DJ_i4v9b.js} +2 -5
- package/dist/{channel-actions.runtime-C1y4B9J0.js → channel-actions.runtime-BDW12z0o.js} +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-KhiBHeGT.js → channel.setup-BYZ78cmU.js} +1 -1
- package/dist/{conversation-identity-BEsyd7A1.js → conversation-identity-CnYbx3sO.js} +1 -1
- package/dist/{doctor-D3ngpo-Y.js → doctor-CKIw8urm.js} +1 -1
- package/dist/{handle-action.guild-admin-zmPNo8TF.js → handle-action.guild-admin-CHMDXefq.js} +2 -2
- package/dist/{manager.runtime-TLLuQzsA.js → manager.runtime-BkMOU8kh.js} +2 -2
- package/dist/{message-handler-ClZrgeka.js → message-handler-B2cEpj5S.js} +6 -13
- package/dist/{message-handler.preflight-CjnHwEwP.js → message-handler.preflight-B93Az6zg.js} +14 -40
- package/dist/{message-handler.process-OruF8JFV.js → message-handler.process-CW5mMw4o.js} +12 -19
- package/dist/{message-utils-C_tYBSAu.js → message-utils-Dy9KeClm.js} +1 -1
- package/dist/{outbound-adapter-B0iwUl6c.js → outbound-adapter-n_qRwyHZ.js} +6 -18
- package/dist/{preflight-audio-ClWbnQto.js → preflight-audio-DecwnhEA.js} +2 -5
- package/dist/{provider-CChQJujf.js → provider-BuTO6czP.js} +16 -35
- package/dist/{provider-session.runtime-Dy71XetI.js → provider-session.runtime-DmBTGaQX.js} +3 -3
- package/dist/provider.runtime-CqZpKOCE.js +2 -0
- package/dist/{runtime-C-fNslbg.js → runtime-DaaaVvJm.js} +325 -297
- package/dist/runtime-api.actions.js +2 -2
- package/dist/runtime-api.js +14 -14
- package/dist/runtime-api.lookup.js +1 -1
- package/dist/runtime-api.monitor-ChuqOjHq.js +6 -0
- package/dist/runtime-api.monitor.js +4 -4
- package/dist/runtime-api.send.js +4 -4
- package/dist/runtime-api.threads.js +3 -3
- package/dist/{send-BYTToRY1.js → send-B_yfprXu.js} +2 -2
- package/dist/{send.components-Cmv2qMB5.js → send.components-C2psXc7A.js} +2 -2
- package/dist/{send.outbound-BqvRMxXy.js → send.outbound-BPcCF1v2.js} +1 -1
- package/dist/{send.shared-YLGCAMjV.js → send.shared-CUTfqvXx.js} +2 -13
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{shared-D11J9bXI.js → shared-AnStShZr.js} +3 -10
- package/dist/{subagent-hooks-cE_tFGCX.js → subagent-hooks-DkO-jpvh.js} +1 -1
- package/dist/subagent-hooks-api.js +2 -5
- package/dist/{thread-bindings-C1yhwdOw.js → thread-bindings-BuXtcLSp.js} +2 -2
- package/dist/{thread-bindings.discord-api-XBJmlLaf.js → thread-bindings.discord-api-CetgvIbE.js} +3 -3
- package/dist/{thread-bindings.manager-BdFs0ot7.js → thread-bindings.manager-B7AHjU4s.js} +2 -2
- package/npm-shrinkwrap.json +3 -3
- package/package.json +4 -4
- package/dist/provider.runtime-BiOSsG0m.js +0 -2
- package/dist/runtime-api.monitor-CN1_mmYY.js +0 -6
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { $ as BaseMessageInteractiveComponent, A as User, B as Container, D as CommandWithSubcommands, E as Command, F as Modal, J as Separator, K as Row, O as Guild, R as Button, S as RateLimitError, Wt as __exportAll, X as TextDisplay, Y as StringSelectMenu, c as discord_exports, ct as createThread, d as MessageReactionAddListener, dt as editChannel, f as MessageReactionRemoveListener, g as ThreadUpdateListener, k as Message, l as InteractionCreateListener, m as ReadyListener, mt as getChannelMessage, p as PresenceUpdateListener, s as chunkDiscordTextWithMode, u as MessageCreateListener, v as Client, y as Plugin } from "./send.receipt-CK162xD0.js";
|
|
2
2
|
import { c as resolveDiscordAccountAllowFrom, d as resolveDiscordAccountDmPolicy, f as resolveDiscordMaxLinesPerMessage, p as normalizeDiscordToken, s as resolveDiscordAccount } from "./accounts-P19jm1lf.js";
|
|
3
3
|
import { _ as parseDiscordComponentCustomId, b as parseDiscordModalCustomIdForInteraction, v as parseDiscordComponentCustomIdForInteraction, y as parseDiscordModalCustomId } from "./components-CBPNJhVP.js";
|
|
4
|
-
import { a as resolveDiscordComponentEntryWithPersistence, o as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-
|
|
4
|
+
import { a as resolveDiscordComponentEntryWithPersistence, o as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-C2psXc7A.js";
|
|
5
5
|
import { c as setPresence, i as unregisterGateway, r as registerGateway } from "./gateway-registry-DPxmW0Db.js";
|
|
6
|
-
import { B as DISCORD_REST_TIMEOUT_MS, D as canViewDiscordGuildChannel, H as withValidatedDiscordProxy, I as createDiscordRestClient, V as validateDiscordProxyUrl } from "./send.shared-
|
|
6
|
+
import { B as DISCORD_REST_TIMEOUT_MS, D as canViewDiscordGuildChannel, H as withValidatedDiscordProxy, I as createDiscordRestClient, V as validateDiscordProxyUrl } from "./send.shared-CUTfqvXx.js";
|
|
7
7
|
import { a as summarizeDiscordResponseBody, i as isDiscordRateLimitResponseBody } from "./api-CJvEMuA6.js";
|
|
8
8
|
import { S as resolveTimestampMs, _ as resolveGroupDmAllow, a as normalizeDiscordSlug, b as formatDiscordUserTag, c as resolveDiscordChannelConfigWithFallback, d as resolveDiscordGuildEntry, f as resolveDiscordMemberAccessState, h as resolveDiscordOwnerAllowFrom, i as normalizeDiscordDisplaySlug, l as resolveDiscordChannelPolicyCommandAuthorizer, m as resolveDiscordOwnerAccess, n as isDiscordGroupAllowedByPolicy, o as resolveDiscordAllowListMatch, p as resolveDiscordMemberAllowed, r as normalizeDiscordAllowList, v as shouldEmitDiscordReactionNotification, y as formatDiscordReactionEmoji } from "./allow-list-C-MqM-B_.js";
|
|
9
|
-
import { s as sendVoiceMessageDiscord } from "./send-
|
|
10
|
-
import { o as formatMention, t as sendMessageDiscord } from "./send.outbound-
|
|
9
|
+
import { s as sendVoiceMessageDiscord } from "./send-B_yfprXu.js";
|
|
10
|
+
import { o as formatMention, t as sendMessageDiscord } from "./send.outbound-BPcCF1v2.js";
|
|
11
11
|
import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.js";
|
|
12
|
-
import { a as getDiscordExecApprovalApprovers, s as isDiscordExecApprovalClientEnabled, t as resolveDiscordConversationIdentity } from "./conversation-identity-
|
|
12
|
+
import { a as getDiscordExecApprovalApprovers, s as isDiscordExecApprovalClientEnabled, t as resolveDiscordConversationIdentity } from "./conversation-identity-CnYbx3sO.js";
|
|
13
13
|
import { d as withAbortTimeout, l as raceWithTimeout } from "./timeouts-C5TBc_9x.js";
|
|
14
14
|
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-C_rAwrkj.js";
|
|
15
15
|
import { t as resolveDiscordUserAllowlist } from "./resolve-users-Cz1tkemy.js";
|
|
16
|
-
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-
|
|
16
|
+
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-CetgvIbE.js";
|
|
17
17
|
import { r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-Bkf8mJlj.js";
|
|
18
|
-
import { d as resolveDiscordMessageChannelId, n as resolveDiscordForwardedMessagesTextFromSnapshots, t as resolveDiscordEmbedText, u as resolveDiscordChannelInfo } from "./message-utils-
|
|
18
|
+
import { d as resolveDiscordMessageChannelId, n as resolveDiscordForwardedMessagesTextFromSnapshots, t as resolveDiscordEmbedText, u as resolveDiscordChannelInfo } from "./message-utils-Dy9KeClm.js";
|
|
19
19
|
import { t as resolveDiscordSenderIdentity } from "./sender-identity-CEsfDF0L.js";
|
|
20
|
-
import "./approval-handler.runtime-
|
|
20
|
+
import "./approval-handler.runtime-Cg7CuLSc.js";
|
|
21
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
21
22
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
22
23
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId, normalizeStringEntries, normalizeStringEntriesLower, summarizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
23
24
|
import { buildAgentSessionKey, deriveLastRoutePolicy, isAcpSessionKey, isSubagentSessionKey, parseAgentSessionKey, resolveAgentIdFromSessionKey, resolveAgentRoute } from "openclaw/plugin-sdk/routing";
|
|
@@ -2399,11 +2400,7 @@ const PICKER_VIEWS = [
|
|
|
2399
2400
|
"models",
|
|
2400
2401
|
"recents"
|
|
2401
2402
|
];
|
|
2402
|
-
|
|
2403
|
-
async function loadModelsProviderRuntime() {
|
|
2404
|
-
modelsProviderRuntimePromise ??= import("openclaw/plugin-sdk/models-provider-runtime");
|
|
2405
|
-
return await modelsProviderRuntimePromise;
|
|
2406
|
-
}
|
|
2403
|
+
const loadModelsProviderRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/models-provider-runtime"));
|
|
2407
2404
|
function encodeCustomIdValue(value) {
|
|
2408
2405
|
return encodeURIComponent(value);
|
|
2409
2406
|
}
|
|
@@ -7973,16 +7970,8 @@ async function deliverDiscordReply(params) {
|
|
|
7973
7970
|
}
|
|
7974
7971
|
//#endregion
|
|
7975
7972
|
//#region extensions/discord/src/monitor/agent-components.dispatch.ts
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
async function loadConversationRuntime$1() {
|
|
7979
|
-
conversationRuntimePromise$1 ??= import("./agent-components.runtime-CEPrf2SY.js");
|
|
7980
|
-
return await conversationRuntimePromise$1;
|
|
7981
|
-
}
|
|
7982
|
-
async function loadTypingRuntime() {
|
|
7983
|
-
typingRuntimePromise ??= import("./typing-BMQEI8OW.js").then((n) => n.n);
|
|
7984
|
-
return await typingRuntimePromise;
|
|
7985
|
-
}
|
|
7973
|
+
const loadConversationRuntime$1 = createLazyRuntimeModule(() => import("./agent-components.runtime-CEPrf2SY.js"));
|
|
7974
|
+
const loadTypingRuntime = createLazyRuntimeModule(() => import("./typing-BMQEI8OW.js").then((n) => n.n));
|
|
7986
7975
|
function buildDiscordComponentConversationLabel(params) {
|
|
7987
7976
|
if (params.interactionCtx.isDirectMessage) return buildDirectLabel(params.interactionCtx.user);
|
|
7988
7977
|
if (params.interactionCtx.isGroupDm) return `Group DM #${params.channelCtx.channelName ?? params.interactionCtx.channelId} channel id:${params.interactionCtx.channelId}`;
|
|
@@ -8273,11 +8262,7 @@ async function dispatchDiscordPluginInteractiveHandler(params) {
|
|
|
8273
8262
|
}
|
|
8274
8263
|
//#endregion
|
|
8275
8264
|
//#region extensions/discord/src/monitor/agent-components.plugin-interactive.ts
|
|
8276
|
-
|
|
8277
|
-
async function loadConversationRuntime() {
|
|
8278
|
-
conversationRuntimePromise ??= import("./agent-components.runtime-CEPrf2SY.js");
|
|
8279
|
-
return await conversationRuntimePromise;
|
|
8280
|
-
}
|
|
8265
|
+
const loadConversationRuntime = createLazyRuntimeModule(() => import("./agent-components.runtime-CEPrf2SY.js"));
|
|
8281
8266
|
async function dispatchPluginDiscordInteractiveEvent(params) {
|
|
8282
8267
|
const normalizedConversationId = params.interactionCtx.rawGuildId || params.channelCtx.channelType === ChannelType.GroupDM ? `channel:${params.interactionCtx.channelId}` : `user:${params.interactionCtx.userId}`;
|
|
8283
8268
|
let responded = false;
|
|
@@ -8399,11 +8384,7 @@ async function dispatchPluginDiscordInteractiveEvent(params) {
|
|
|
8399
8384
|
}
|
|
8400
8385
|
//#endregion
|
|
8401
8386
|
//#region extensions/discord/src/monitor/agent-components.handlers.ts
|
|
8402
|
-
|
|
8403
|
-
async function loadComponentsRuntime() {
|
|
8404
|
-
componentsRuntimePromise ??= import("./components-CBPNJhVP.js").then((n) => n.t);
|
|
8405
|
-
return await componentsRuntimePromise;
|
|
8406
|
-
}
|
|
8387
|
+
const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-CBPNJhVP.js").then((n) => n.t));
|
|
8407
8388
|
async function handleDiscordComponentEvent(params) {
|
|
8408
8389
|
const parsed = parseDiscordComponentData(params.data, resolveInteractionCustomId(params.interaction));
|
|
8409
8390
|
if (!parsed) {
|
|
@@ -9897,7 +9878,7 @@ function logDiscordStartupPhase(params) {
|
|
|
9897
9878
|
});
|
|
9898
9879
|
}
|
|
9899
9880
|
async function loadDiscordVoiceRuntime() {
|
|
9900
|
-
const promise = discordVoiceRuntimePromise ?? import("./manager.runtime-
|
|
9881
|
+
const promise = discordVoiceRuntimePromise ?? import("./manager.runtime-BkMOU8kh.js");
|
|
9901
9882
|
discordVoiceRuntimePromise = promise;
|
|
9902
9883
|
try {
|
|
9903
9884
|
return await promise;
|
|
@@ -9907,7 +9888,7 @@ async function loadDiscordVoiceRuntime() {
|
|
|
9907
9888
|
}
|
|
9908
9889
|
}
|
|
9909
9890
|
async function loadDiscordProviderSessionRuntime() {
|
|
9910
|
-
const promise = discordProviderSessionRuntimePromise ?? import("./provider-session.runtime-
|
|
9891
|
+
const promise = discordProviderSessionRuntimePromise ?? import("./provider-session.runtime-DmBTGaQX.js");
|
|
9911
9892
|
discordProviderSessionRuntimePromise = promise;
|
|
9912
9893
|
try {
|
|
9913
9894
|
return await promise;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-
|
|
2
|
-
import { n as createThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-
|
|
3
|
-
import { t as createDiscordMessageHandler } from "./message-handler-
|
|
1
|
+
import { a as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-BuXtcLSp.js";
|
|
2
|
+
import { n as createThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-B7AHjU4s.js";
|
|
3
|
+
import { t as createDiscordMessageHandler } from "./message-handler-B2cEpj5S.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 };
|