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