@openclaw/discord 2026.10.10 → 2026.10.33
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/.setup/{account-inspect-X_Xlr42B.mjs → account-inspect-8cCu6uPG.mjs} +3 -2
- package/dist/.setup/{accounts-C18HNgge.mjs → accounts-ljrzXBJi.mjs} +8 -4
- package/dist/.setup/{active-turn-thread-route-BAc_Xik-.mjs → active-turn-thread-route-C4tp9noA.mjs} +2 -1
- package/dist/.setup/{allow-list-D1ZGfhXh.mjs → allow-list-BKqOldGy.mjs} +11 -6
- package/dist/.setup/{api-Bth1wKF9.mjs → api-DqmMUZau.mjs} +5 -3
- package/dist/.setup/{approval-handler.runtime-BAoEELJJ.mjs → approval-handler.runtime-D0qu1um7.mjs} +9 -8
- package/dist/.setup/{approval-message-updates-Cks-MSCJ.mjs → approval-message-updates-CdurC9Ej.mjs} +4 -3
- package/dist/.setup/{audit-Dw_rAZIz.mjs → audit-ChorIwio.mjs} +7 -6
- package/dist/.setup/{channel-BMpMAeQL.mjs → channel-ZilgdF5e.mjs} +41 -33
- package/dist/.setup/{channel-access-BPrWoEXM.mjs → channel-access-DasWY_OV.mjs} +2 -1
- package/dist/.setup/{channel.setup-DVe7Y3Jf.mjs → channel.setup-DaDQdctj.mjs} +12 -8
- package/dist/.setup/{command-deploy-store-DPWiBMks.mjs → command-deploy-store-DFkBTViB.mjs} +2 -1
- package/dist/.setup/{command-owners-BzlhNBxA.mjs → command-owners-C7rUdqUX.mjs} +2 -1
- package/dist/.setup/{components-BvOWSPxr.mjs → components-Du9NhD8h.mjs} +20 -11
- package/dist/.setup/{config-schema-Coyq5wOr.mjs → config-schema-_uBILpQf.mjs} +5 -3
- package/dist/.setup/{conversation-binding-route-DOPUZNYo.mjs → conversation-binding-route-8Ul1KpGF.mjs} +3 -2
- package/dist/.setup/{directory-config-CIqVnQtn.mjs → directory-config-3iVub-3m.mjs} +4 -3
- package/dist/.setup/{directory-live-DUuPEWub.mjs → directory-live-BDVl2DoC.mjs} +15 -14
- package/dist/.setup/{discord-eFlHX1Gn.mjs → discord-BMD-JiVS.mjs} +68 -35
- package/dist/.setup/{doctor-contract-Dstl3cMg.mjs → doctor-contract-Bwv8EuQ_.mjs} +3 -2
- package/dist/.setup/{doctor-Dty_Ossy.mjs → doctor-hQKbkNKq.mjs} +9 -8
- package/dist/.setup/{handle-action-DXY91jF-.mjs → handle-action-B1lmt4ms.mjs} +11 -10
- package/dist/.setup/{handle-action.guild-admin-BvBCfhXF.mjs → handle-action.guild-admin-B6g31cwt.mjs} +4 -3
- package/dist/.setup/{live-policy-config-DO1Fk2hp.mjs → live-policy-config-C_Q966Wh.mjs} +5 -3
- package/dist/.setup/{message-handler-fL1j1NiR.mjs → message-handler-CkI3yMjL.mjs} +20 -14
- package/dist/.setup/{message-handler.preflight-DkjwNZAd.mjs → message-handler.preflight-CEfkFV9U.mjs} +28 -20
- package/dist/.setup/{message-handler.preflight-pluralkit-DR4BnvMU.mjs → message-handler.preflight-pluralkit-D5si80_L.mjs} +14 -10
- package/dist/.setup/{message-handler.process-ClOwIPDK.mjs → message-handler.process-DsMtetRf.mjs} +47 -33
- package/dist/.setup/{outbound-adapter-DWyAWBFh.mjs → outbound-adapter-DfAanoCO.mjs} +19 -13
- package/dist/.setup/{outbound-session-route-TFBPPkoz.mjs → outbound-session-route-BtUpGBTb.mjs} +32 -21
- package/dist/.setup/{output-activity-CDgs2s3O.mjs → output-activity-uBpMSX75.mjs} +2 -1
- package/dist/.setup/{pluralkit-DcXbHTpQ.mjs → pluralkit-B64dfq_j.mjs} +3 -2
- package/dist/.setup/{preflight-audio-CwtPIsvk.mjs → preflight-audio-wWgsZG5F.mjs} +2 -1
- package/dist/.setup/{presence-cache-CgutE4NN.mjs → presence-cache-DCeTsL73.mjs} +2 -1
- package/dist/.setup/{probe-DNge7OEP.mjs → probe-CBaoCs-c.mjs} +6 -5
- package/dist/.setup/{provider-BBDuE14w.mjs → provider-CI_OLfvz.mjs} +209 -119
- package/dist/.setup/{provider-session.runtime-D8hMXXqJ.mjs → provider-session.runtime-TWOo_JZx.mjs} +3 -3
- package/dist/.setup/provider.runtime-DnionCyo.mjs +2 -0
- package/dist/.setup/{realtime-session.runtime-cetognkp.mjs → realtime-session.runtime-DvfS4vJj.mjs} +23 -14
- package/dist/.setup/{receive-recovery-C77CVdGM.mjs → receive-recovery-CKvaG2Hf.mjs} +6 -3
- package/dist/.setup/{resolve-allowlist-common-CI77288n.mjs → resolve-allowlist-common-cIjtqh2F.mjs} +7 -5
- package/dist/.setup/{resolve-channels-DYc6-xgV.mjs → resolve-channels-Cj5i7hzj.mjs} +10 -7
- package/dist/.setup/{resolve-users-BQT7XWF2.mjs → resolve-users-BQLbysRB.mjs} +5 -4
- package/dist/.setup/{rolldown-runtime-nwUcYXjP.mjs → rolldown-runtime-B4FMCO8f.mjs} +2 -1
- package/dist/.setup/{runtime-DcBvHOm1.mjs → runtime-DgnVQ7zW.mjs} +2 -1
- package/dist/.setup/{runtime-CI0UJqeS.mjs → runtime-RWnuJgWB.mjs} +35 -23
- package/dist/.setup/{runtime-doctor-migrations-BpV1jKk0.mjs → runtime-doctor-migrations-BPV-R4G9.mjs} +9 -5
- package/dist/.setup/{runtime-CcijhTJT.mjs → runtime-plifsKg9.mjs} +6 -4
- package/dist/.setup/{secret-config-contract-BdbCvqnM.mjs → secret-config-contract-z6FhbT8E.mjs} +3 -2
- package/dist/.setup/{security-audit-CTwisG7c.mjs → security-audit-BFT84Uny.mjs} +4 -3
- package/dist/.setup/{security-contract-D-o0iWDk.mjs → security-contract-DNyyjTZZ.mjs} +2 -1
- package/dist/.setup/{security-doctor-4s7omTZd.mjs → security-doctor-nGgPm65L.mjs} +2 -1
- package/dist/.setup/{send-Cbq-IVsS.mjs → send-da6ENJ9f.mjs} +28 -18
- package/dist/.setup/{send.components-BV6ucNpJ.mjs → send.components-CWZUuGvA.mjs} +15 -10
- package/dist/.setup/{send.outbound-CGhBhzjQ.mjs → send.outbound-qZ3iK3Vq.mjs} +13 -9
- package/dist/.setup/{send.receipt-Dw-_r5Bx.mjs → send.receipt-C18khRYH.mjs} +16 -9
- package/dist/.setup/{send.shared-D4MioxW_.mjs → send.shared-CnlMgoqQ.mjs} +23 -14
- package/dist/.setup/{sender-identity-DrN5c4ec.mjs → sender-identity-DgbJykq0.mjs} +3 -2
- package/dist/.setup/{session-contract-Bq71MS78.mjs → session-contract-BO5tlIdl.mjs} +2 -1
- package/dist/.setup/{session-key-normalization-Cfvze5hd.mjs → session-key-normalization-CCHGNSQw.mjs} +2 -1
- package/dist/.setup/setup-plugin-api-D1QuM187.mjs +3 -0
- package/dist/.setup/{shared-Bp0sxD5R.mjs → shared-CY5vJM48.mjs} +19 -15
- package/dist/.setup/{subagent-hooks-mQbDkvuD.mjs → subagent-hooks-CIu2TFz3.mjs} +4 -3
- package/dist/.setup/{system-events-2zc2eGfF.mjs → system-events-DCOLXkwS.mjs} +4 -3
- package/dist/.setup/{target-parsing-BiuhcK9Q.mjs → target-parsing-C-HyNxcE.mjs} +2 -1
- package/dist/.setup/{target-resolver-CAHeVfmZ.mjs → target-resolver-CApivu3G.mjs} +7 -6
- package/dist/.setup/targets-UWWZ6gF7.mjs +3 -0
- package/dist/.setup/{thread-binding-api-Drd4Zu-5.mjs → thread-binding-api-BDZJD4na.mjs} +2 -1
- package/dist/.setup/{thread-bindings-Dg7X_ZXP.mjs → thread-bindings-DcvT_JgI.mjs} +11 -8
- package/dist/.setup/{thread-bindings.manager-DCDYksah.mjs → thread-bindings.manager-5Sh7yedN.mjs} +20 -15
- package/dist/.setup/{thread-bindings.session-updates-C76plLS3.mjs → thread-bindings.session-updates-BMdJeJMc.mjs} +9 -5
- package/dist/.setup/{threading-l0UfrE6x.mjs → threading-CzjFeUSe.mjs} +9 -6
- package/dist/.setup/{timeouts-DTrUsJ_W.mjs → timeouts-CuNARfyw.mjs} +2 -1
- package/dist/.setup/{transcripts-source-CGgOaWcu.mjs → transcripts-source-8RDQrSVb.mjs} +38 -26
- package/dist/.setup/{typing-DAv4S2fI.mjs → typing-CNlSKY5S.mjs} +3 -2
- package/dist/.setup/{voice-runtime-DY1EwDfi.mjs → voice-runtime-BsDILmAv.mjs} +55 -33
- package/dist/account-inspect-api.js +3 -2
- package/dist/action-runtime-api.js +2 -1
- package/dist/activities-api.js +20 -13
- package/dist/api.js +22 -21
- package/dist/channel-config-api.js +2 -1
- package/dist/channel-plugin-api.js +2 -1
- package/dist/contract-api.js +2 -1
- package/dist/directory-contract-api.js +3 -2
- package/dist/doctor-contract-api.js +7 -5
- package/dist/index.js +2 -1
- package/dist/runtime-api.js +22 -22
- package/dist/runtime-setter-api.js +2 -1
- package/dist/secret-contract-api.js +2 -1
- package/dist/security-audit-contract-api.js +2 -1
- package/dist/security-contract-api.js +2 -1
- package/dist/session-key-api.js +2 -1
- package/dist/setup-entry.js +3 -2
- package/dist/setup-plugin-api.js +2 -1
- package/dist/src/voice/audio-worker.runtime.js +14 -8
- package/dist/subagent-hooks-api.js +3 -2
- package/dist/thread-binding-api.js +2 -1
- package/dist/transcripts-source-api.js +3 -2
- package/package.json +4 -4
- package/dist/.setup/provider.runtime-BQ1z4Aq1.mjs +0 -1
- package/dist/.setup/setup-plugin-api-B4J6wmL1.mjs +0 -2
- package/dist/.setup/targets-BaklhOqq.mjs +0 -3
- package/dist/.source-module-urls/d6c089460280c5a04184542d6712e04545caeb1ebb290d3504377b4cc5e22fea.json +0 -1
package/dist/.setup/{outbound-session-route-TFBPPkoz.mjs → outbound-session-route-BtUpGBTb.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as listDiscordAccountIds, l as resolveDiscordAccount, t as createDiscordActionGate } from "./accounts-
|
|
2
|
-
import { t as inspectDiscordAccount } from "./account-inspect-
|
|
3
|
-
import { A as isDiscordThreadChannelType } from "./allow-list-
|
|
4
|
-
import { d as normalizeDiscordMessagingTarget, u as matchesDiscordToolContextTarget } from "./send.receipt-
|
|
5
|
-
import { t as parseDiscordTarget } from "./target-parsing-
|
|
6
|
-
import { h as readDiscordComponentSpec, m as coerceDiscordComponentParam } from "./components-
|
|
7
|
-
import { n as resolveDiscordCommandOwnerEntries } from "./command-owners-
|
|
1
|
+
import { i as listDiscordAccountIds, l as resolveDiscordAccount, t as createDiscordActionGate } from "./accounts-ljrzXBJi.mjs";
|
|
2
|
+
import { t as inspectDiscordAccount } from "./account-inspect-8cCu6uPG.mjs";
|
|
3
|
+
import { A as isDiscordThreadChannelType } from "./allow-list-BKqOldGy.mjs";
|
|
4
|
+
import { d as normalizeDiscordMessagingTarget, u as matchesDiscordToolContextTarget } from "./send.receipt-C18khRYH.mjs";
|
|
5
|
+
import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
|
|
6
|
+
import { h as readDiscordComponentSpec, m as coerceDiscordComponentParam } from "./components-Du9NhD8h.mjs";
|
|
7
|
+
import { n as resolveDiscordCommandOwnerEntries } from "./command-owners-C7rUdqUX.mjs";
|
|
8
8
|
import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
9
9
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
10
10
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
@@ -20,7 +20,7 @@ import { getExecApprovalReplyMetadata, isChannelExecApprovalClientEnabledFromCon
|
|
|
20
20
|
import { resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
21
21
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
22
22
|
import { createInboundEventDeliveryCorrelation } from "openclaw/plugin-sdk/inbound-event-delivery";
|
|
23
|
-
|
|
23
|
+
//#region extensions/discord/src/exec-approvals.ts
|
|
24
24
|
function normalizeDiscordApproverId(value) {
|
|
25
25
|
const trimmed = String(value).trim();
|
|
26
26
|
if (!trimmed) return;
|
|
@@ -65,7 +65,8 @@ function shouldSuppressLocalDiscordExecApprovalPrompt(params) {
|
|
|
65
65
|
sessionFilter: config?.sessionFilter
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region extensions/discord/src/audit-core.ts
|
|
69
70
|
const REQUIRED_TEXT_CHANNEL_PERMISSIONS = ["ViewChannel", "SendMessages"];
|
|
70
71
|
const REQUIRED_THREAD_CHANNEL_PERMISSIONS = ["ViewChannel", "SendMessagesInThreads"];
|
|
71
72
|
const REQUIRED_VOICE_CHANNEL_PERMISSIONS = [
|
|
@@ -140,7 +141,8 @@ async function auditDiscordChannelPermissionsWithFetcher(params) {
|
|
|
140
141
|
elapsedMs: Date.now() - started
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
|
-
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region extensions/discord/src/inbound-event-delivery.ts
|
|
144
146
|
const DISCORD_INBOUND_EVENT_DELIVERY_KEY = "__openclawInboundEventDelivery";
|
|
145
147
|
function normalizeDiscordDeliveryTarget(value) {
|
|
146
148
|
return value.trim().replace(/^discord:/iu, "").replace(/^channel:/iu, "").toLowerCase();
|
|
@@ -177,7 +179,8 @@ function notifyDiscordInboundEventOutboundPayloadSuccess(params) {
|
|
|
177
179
|
accountId: params.accountId
|
|
178
180
|
});
|
|
179
181
|
}
|
|
180
|
-
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region extensions/discord/src/trusted-requester-actions.ts
|
|
181
184
|
const trustedRequesterGuildAdminActions = /* @__PURE__ */ new Set([
|
|
182
185
|
"emoji-upload",
|
|
183
186
|
"sticker-upload",
|
|
@@ -198,7 +201,8 @@ const trustedRequesterGuildAdminActions = /* @__PURE__ */ new Set([
|
|
|
198
201
|
function isTrustedRequesterGuildAdminAction(action) {
|
|
199
202
|
return trustedRequesterGuildAdminActions.has(action);
|
|
200
203
|
}
|
|
201
|
-
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region extensions/discord/src/channel-actions.ts
|
|
202
206
|
const localExecutionActions = /* @__PURE__ */ new Set([
|
|
203
207
|
"send",
|
|
204
208
|
"poll",
|
|
@@ -219,7 +223,7 @@ function resolveDiscordThreadReplyTarget(args) {
|
|
|
219
223
|
const target = threadId !== void 0 ? `channel:${threadId}` : normalizeOptionalString(args.channelId) ?? normalizeOptionalString(args.to) ?? normalizeOptionalString(args.target);
|
|
220
224
|
return target ? normalizeDiscordMessagingTarget(target) : void 0;
|
|
221
225
|
}
|
|
222
|
-
const loadDiscordChannelActionsRuntime = createLazyRuntimeModule(() => import("./handle-action-
|
|
226
|
+
const loadDiscordChannelActionsRuntime = createLazyRuntimeModule(() => import("./handle-action-B1lmt4ms.mjs"));
|
|
223
227
|
const discordActionGroups = [
|
|
224
228
|
{
|
|
225
229
|
gate: "polls",
|
|
@@ -454,7 +458,8 @@ const discordMessageActions = {
|
|
|
454
458
|
...sessionKey ? { sessionKey } : {}
|
|
455
459
|
})
|
|
456
460
|
};
|
|
457
|
-
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region extensions/discord/src/conversation-identity.ts
|
|
458
463
|
function normalizeDiscordTarget(raw, defaultKind) {
|
|
459
464
|
return parseDiscordTarget(normalizeOptionalString(raw) ?? "", { defaultKind })?.normalized;
|
|
460
465
|
}
|
|
@@ -483,7 +488,8 @@ function resolveDiscordCurrentConversationIdentity(params) {
|
|
|
483
488
|
if (target) return target;
|
|
484
489
|
}
|
|
485
490
|
}
|
|
486
|
-
|
|
491
|
+
//#endregion
|
|
492
|
+
//#region extensions/discord/src/monitor/route-resolution.ts
|
|
487
493
|
function buildDiscordRoutePeer(params) {
|
|
488
494
|
return {
|
|
489
495
|
kind: params.isGroupDm ? "group" : params.isDirectMessage ? "direct" : "channel",
|
|
@@ -563,7 +569,8 @@ function shouldIgnoreStaleDiscordRouteBinding(params) {
|
|
|
563
569
|
if (!bound || !routed || bound.rest !== routed.rest) return false;
|
|
564
570
|
return bound.agentId !== params.route.agentId;
|
|
565
571
|
}
|
|
566
|
-
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region extensions/discord/src/channel-policy-state.ts
|
|
567
574
|
const channelPolicyBindings = resolveGlobalMap(Symbol.for("openclaw.discord.channel-policy-bindings"), "close-and-restart");
|
|
568
575
|
function setDiscordChannelPolicyBindings(accountId, bindings) {
|
|
569
576
|
channelPolicyBindings.set(normalizeAccountId(accountId), [...bindings]);
|
|
@@ -577,7 +584,8 @@ function getDiscordChannelPolicyBinding(accountId, guildKey, channelKey) {
|
|
|
577
584
|
function findDiscordChannelPolicyKey(accountId, guildKey, channelId) {
|
|
578
585
|
return listBindings(accountId, guildKey).find((binding) => binding.channelId === channelId)?.channelKey;
|
|
579
586
|
}
|
|
580
|
-
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region extensions/discord/src/approval-message-safety.ts
|
|
581
589
|
const DISCORD_APPROVAL_ALLOWED_MENTIONS = { parse: [] };
|
|
582
590
|
const DISCORD_MARKDOWN_META_CHARACTERS = /* @__PURE__ */ new Set([
|
|
583
591
|
"\\",
|
|
@@ -620,7 +628,8 @@ function formatDiscordApprovalDisplayValue(value, maxChars = 200) {
|
|
|
620
628
|
}
|
|
621
629
|
return escaped;
|
|
622
630
|
}
|
|
623
|
-
|
|
631
|
+
//#endregion
|
|
632
|
+
//#region extensions/discord/src/outbound-components.ts
|
|
624
633
|
const DISCORD_MESSAGE_COMPONENT_LIMIT = 40;
|
|
625
634
|
const DISCORD_TEXT_DISPLAY_LIMIT = 2e3;
|
|
626
635
|
const DISCORD_PRESENTATION_CAPABILITIES = {
|
|
@@ -650,8 +659,8 @@ const DISCORD_PRESENTATION_CAPABILITIES = {
|
|
|
650
659
|
}
|
|
651
660
|
}
|
|
652
661
|
};
|
|
653
|
-
const sendDiscordComponentMessageLazy = createLazyRuntimeMethod(createLazyRuntimeModule(() => import("./send.components-
|
|
654
|
-
const loadDiscordSharedInteractive = createLazyRuntimeModule(() => import("./components-
|
|
662
|
+
const sendDiscordComponentMessageLazy = createLazyRuntimeMethod(createLazyRuntimeModule(() => import("./send.components-CWZUuGvA.mjs").then((n) => n.i)), (runtime) => runtime.sendDiscordComponentMessage);
|
|
663
|
+
const loadDiscordSharedInteractive = createLazyRuntimeModule(() => import("./components-Du9NhD8h.mjs").then((n) => n.a));
|
|
655
664
|
function addPayloadTextFallback(spec, payload) {
|
|
656
665
|
return spec.text ? spec : {
|
|
657
666
|
...spec,
|
|
@@ -706,7 +715,8 @@ async function resolveDiscordComponentSpec(payload) {
|
|
|
706
715
|
const interactiveSpec = (await loadDiscordSharedInteractive()).buildDiscordInteractiveComponents(payload.interactive);
|
|
707
716
|
return interactiveSpec ? addPayloadTextFallback(interactiveSpec, payload) : void 0;
|
|
708
717
|
}
|
|
709
|
-
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region extensions/discord/src/outbound-session-route.ts
|
|
710
720
|
function resolveDiscordOutboundSessionRoute(params) {
|
|
711
721
|
const parsed = parseDiscordTarget(params.target, { defaultKind: resolveDiscordOutboundTargetKindHint(params) });
|
|
712
722
|
if (!parsed) return null;
|
|
@@ -746,4 +756,5 @@ function resolveDiscordOutboundTargetKindHint(params) {
|
|
|
746
756
|
if (resolvedKind === "group" || resolvedKind === "channel") return "channel";
|
|
747
757
|
return /^(user:|discord:|@|<@!?)/i.test(params.target.trim()) ? "user" : "channel";
|
|
748
758
|
}
|
|
759
|
+
//#endregion
|
|
749
760
|
export { isDiscordExecApprovalClientEnabled as A, discordInboundEventDelivery as C, resolveRequiredDiscordChannelPermissions as D, collectDiscordAuditChannelIdsForAccount as E, getDiscordExecApprovalApprovers as O, isTrustedRequesterGuildAdminAction as S, auditDiscordChannelPermissionsWithFetcher as T, shouldIgnoreStaleDiscordRouteBinding as _, resolveDiscordComponentSpec as a, resolveDiscordRuntimeBindingConversationId as b, formatDiscordApprovalDisplayValue as c, setDiscordChannelPolicyBindings as d, buildDiscordConversationRouteContext as f, resolveDiscordEffectiveRoute as g, resolveDiscordConversationRoute as h, isDiscordComponentSpecWithinMessageLimit as i, shouldSuppressLocalDiscordExecApprovalPrompt as j, isDiscordExecApprovalApprover as k, findDiscordChannelPolicyKey as l, resolveDiscordBoundConversationRoute as m, DISCORD_PRESENTATION_CAPABILITIES as n, sendDiscordComponentMessageLazy as o, buildDiscordRoutePeer as p, buildDiscordPresentationPayload as r, DISCORD_APPROVAL_ALLOWED_MENTIONS as s, resolveDiscordOutboundSessionRoute as t, getDiscordChannelPolicyBinding as u, resolveDiscordConversationIdentity as v, notifyDiscordInboundEventOutboundPayloadSuccess as w, discordMessageActions as x, resolveDiscordCurrentConversationIdentity as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region extensions/discord/src/voice/output-activity.ts
|
|
2
2
|
function resolveDiscordOutputAudioDelta(previous, sourceAudioBytes) {
|
|
3
3
|
const sinkAudioBytes = Math.floor((previous.sourceAudioBytes + sourceAudioBytes) / 2) * 8 - previous.sinkAudioBytes;
|
|
4
4
|
return {
|
|
@@ -7,4 +7,5 @@ function resolveDiscordOutputAudioDelta(previous, sourceAudioBytes) {
|
|
|
7
7
|
sinkAudioBytes
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
//#endregion
|
|
10
11
|
export { resolveDiscordOutputAudioDelta as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
2
|
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
|
|
3
3
|
import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
|
|
4
4
|
import { readProviderJsonObjectResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
5
5
|
import { buildTimeoutAbortSignal } from "openclaw/plugin-sdk/extension-shared";
|
|
6
|
-
|
|
6
|
+
//#region extensions/discord/src/pluralkit.ts
|
|
7
7
|
var pluralkit_exports = /* @__PURE__ */ __exportAll({ fetchPluralKitMessageInfo: () => fetchPluralKitMessageInfo });
|
|
8
8
|
const PLURALKIT_API_BASE = "https://api.pluralkit.me/v2";
|
|
9
9
|
const PLURALKIT_ERROR_BODY_LIMIT_BYTES = 8192;
|
|
@@ -41,4 +41,5 @@ async function fetchPluralKitMessageInfo(params) {
|
|
|
41
41
|
timeout.cleanup();
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
//#endregion
|
|
44
45
|
export { pluralkit_exports as n, fetchPluralKitMessageInfo as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { getFileExtension } from "openclaw/plugin-sdk/media-mime";
|
|
3
3
|
import { createChannelPreflightAudio } from "openclaw/plugin-sdk/media-understanding-runtime";
|
|
4
|
-
|
|
4
|
+
//#region extensions/discord/src/monitor/preflight-audio.ts
|
|
5
5
|
const AUDIO_ATTACHMENT_MIME_BY_EXT = /* @__PURE__ */ new Map([
|
|
6
6
|
[".aac", "audio/aac"],
|
|
7
7
|
[".caf", "audio/x-caf"],
|
|
@@ -59,4 +59,5 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
59
59
|
transcript
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
+
//#endregion
|
|
62
63
|
export { resolveDiscordPreflightAudioMentionContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
2
|
-
|
|
2
|
+
//#region extensions/discord/src/monitor/presence-cache.ts
|
|
3
3
|
/**
|
|
4
4
|
* In-memory cache of Discord user presence data.
|
|
5
5
|
* Populated by GUILD_CREATE snapshots and PRESENCE_UPDATE when GuildPresences is enabled.
|
|
@@ -32,4 +32,5 @@ function presenceCacheSize() {
|
|
|
32
32
|
for (const accountCache of presenceCache.values()) total += accountCache.size;
|
|
33
33
|
return total;
|
|
34
34
|
}
|
|
35
|
+
//#endregion
|
|
35
36
|
export { setPresence as i, getPresence as n, presenceCacheSize as r, clearPresences as t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { h as normalizeDiscordToken } from "./accounts-
|
|
3
|
-
import { D as getDiscordEndpointRuntime } from "./allow-list-
|
|
4
|
-
import { n as DiscordApiError, r as fetchDiscord } from "./api-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
+
import { h as normalizeDiscordToken } from "./accounts-ljrzXBJi.mjs";
|
|
3
|
+
import { D as getDiscordEndpointRuntime } from "./allow-list-BKqOldGy.mjs";
|
|
4
|
+
import { n as DiscordApiError, r as fetchDiscord } from "./api-DqmMUZau.mjs";
|
|
5
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import { ApplicationFlags } from "discord-api-types/v10";
|
|
7
7
|
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
|
|
8
8
|
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
9
9
|
import { fetchWithTimeout, runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
10
|
-
|
|
10
|
+
//#region extensions/discord/src/probe.ts
|
|
11
11
|
var probe_exports = /* @__PURE__ */ __exportAll({
|
|
12
12
|
fetchDiscordApplicationId: () => fetchDiscordApplicationId,
|
|
13
13
|
fetchDiscordApplicationSummary: () => fetchDiscordApplicationSummary,
|
|
@@ -171,4 +171,5 @@ async function fetchDiscordApplicationId(token, timeoutMs, fetcher = fetch) {
|
|
|
171
171
|
if (result.kind === "resolved") return result.applicationId;
|
|
172
172
|
if (result.kind === "unavailable" && result.status === 429) throw result.error;
|
|
173
173
|
}
|
|
174
|
+
//#endregion
|
|
174
175
|
export { probeDiscordApplicationId as a, probeDiscord as i, fetchDiscordApplicationSummary as n, probe_exports as o, parseApplicationIdFromToken as r, resolveDiscordPrivilegedIntentsFromFlags as s, fetchDiscordApplicationId as t };
|