@openclaw/discord 2026.11.7 → 2026.11.8
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/{approval-handler.runtime-BN4W1r0o.mjs → approval-handler.runtime-eKrSqVPF.mjs} +5 -5
- package/dist/.setup/{audit-BL6EoUun.mjs → audit-DZLJ0my1.mjs} +3 -3
- package/dist/.setup/{channel-DdI2l55_.mjs → channel-COE1KIJz.mjs} +17 -16
- package/dist/.setup/{channel.setup-kNWMxlgu.mjs → channel.setup-B4SQu9Qg.mjs} +1 -1
- package/dist/.setup/{components-C1Phe3uw.mjs → components-Cy4hDa6J.mjs} +1 -1
- package/dist/.setup/{conversation-binding-route-K_jFbvi5.mjs → conversation-binding-route-Cy_QeEBm.mjs} +1 -1
- package/dist/.setup/{directory-live-CY2-qrHI.mjs → directory-live-DOVK9G9P.mjs} +3 -57
- package/dist/.setup/{discord-BRVFhk09.mjs → discord-KsHAulAQ.mjs} +65 -20
- package/dist/.setup/{doctor-RqH-6JB0.mjs → doctor-CQescbAS.mjs} +1 -1
- package/dist/.setup/{handle-action-uD87h2FK.mjs → handle-action-BfSo0qkY.mjs} +7 -6
- package/dist/.setup/{handle-action.guild-admin-CqBx_3mG.mjs → handle-action.guild-admin-BOzk0kPz.mjs} +6 -3
- package/dist/.setup/{listeners-DnHLrLIN.mjs → listeners-C0-BvUVA.mjs} +1 -1
- package/dist/.setup/{message-handler-CWL_u0X8.mjs → message-handler-h8xpc_1a.mjs} +5 -5
- package/dist/.setup/{message-handler.preflight-83tpEdBG.mjs → message-handler.preflight-CO1JNXKw.mjs} +7 -7
- package/dist/.setup/{message-handler.preflight-pluralkit-Dhcx7Ifz.mjs → message-handler.preflight-pluralkit-C4FSmp6X.mjs} +3 -3
- package/dist/.setup/{message-handler.process-BC-wNZwK.mjs → message-handler.process-IPQv14En.mjs} +11 -11
- package/dist/.setup/{outbound-payload-CK3_bDvK.mjs → outbound-payload-Pz-zEQnX.mjs} +5 -5
- package/dist/.setup/{outbound-session-route-Ay_DnOOl.mjs → outbound-session-route-CpweCkxm.mjs} +4 -4
- package/dist/.setup/{provider-CRb3Myky.mjs → provider-D9dwCcy8.mjs} +15 -15
- package/dist/.setup/{provider-session.runtime-3cZpps3H.mjs → provider-session.runtime-pCvFOgHs.mjs} +3 -3
- package/dist/.setup/provider.runtime-DTEY_Gvi.mjs +1 -0
- package/dist/.setup/{realtime-session.runtime-BRYpjS9P.mjs → realtime-session.runtime-CP8Opnfr.mjs} +2 -2
- package/dist/.setup/{runtime--HZ9r3tF.mjs → runtime-BRcmFvOV.mjs} +37 -27
- package/dist/.setup/{send-CtvwfZQ2.mjs → send-DXPqEgjA.mjs} +5 -5
- package/dist/.setup/{send.components-CtLtE0yD.mjs → send.components-MUCtA6qV.mjs} +6 -6
- package/dist/.setup/{send.outbound-D58xXPgs.mjs → send.outbound-70KlFdzN.mjs} +4 -5
- package/dist/.setup/{send.receipt-DLOV4qx6.mjs → send.receipt-DkCkAjRL.mjs} +58 -2
- package/dist/.setup/{send.shared-B_KKRrD7.mjs → send.shared-BXWCIkfx.mjs} +6 -5
- package/dist/.setup/setup-plugin-api-Dj04bzEC.mjs +2 -0
- package/dist/.setup/{shared-Dv2DamaK.mjs → shared-G2-0EUo3.mjs} +1 -1
- package/dist/.setup/{subagent-hooks-yT45eTyz.mjs → subagent-hooks-BUvQ4Oj4.mjs} +1 -1
- package/dist/.setup/{system-events-Dlzp9Jcj.mjs → system-events-CYFu0Vp4.mjs} +1 -1
- package/dist/.setup/{target-resolver-BzaZPBm9.mjs → target-resolver-54k9fO6u.mjs} +2 -2
- package/dist/.setup/{thread-bindings-DRWhgKCc.mjs → thread-bindings-BiO6_GA2.mjs} +2 -2
- package/dist/.setup/{thread-bindings.manager-CWJKirn1.mjs → thread-bindings.manager-CadGpkjc.mjs} +6 -6
- package/dist/.setup/{thread-bindings.session-updates-DzJrXc4w.mjs → thread-bindings.session-updates-B4iJqhAn.mjs} +1 -1
- package/dist/.setup/{threading-BbsPuT5G.mjs → threading-Bem-g91c.mjs} +2 -2
- package/dist/.setup/{transcripts-source-DIW1fU_P.mjs → transcripts-source-DUL7GRxU.mjs} +1 -1
- package/dist/.setup/{voice-runtime-oJ6BZs5D.mjs → voice-runtime-D0TWfWJO.mjs} +6 -6
- 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 +9 -9
- package/dist/channel-plugin-api.js +1 -1
- package/dist/runtime-api.js +15 -15
- 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-tmkt3QOg.mjs +0 -1
- package/dist/.setup/setup-plugin-api-ty5RJrMy.mjs +0 -2
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { g as resolveDiscordToken, h as normalizeDiscordToken, l as resolveDiscordAccount, m as resolveDiscordMaxLinesPerMessage, p as resolveDiscordAccountDmPolicy, s as mergeDiscordAccountConfig, u as resolveDiscordAccountAllowFrom } from "./accounts-C_25wyxC.mjs";
|
|
2
|
-
import { B as unregisterGateway, C as hasAnyChannelPermissionDiscord, N as createDiscordRestClient, y as canViewDiscordGuildChannel, z as registerGateway } from "./send.shared-
|
|
3
|
-
import { B as RateLimitError, J as stripUndefinedFields, L as DISCORD_REST_TIMEOUT_MS, _ as Command, d as hasDiscordV2Components, g as User, h as Message, l as Client, m as Guild, n as GuildCreateListener, o as Modal, r as ReadyListener, t as discord_exports, u as asSerializableComponent, v as CommandWithSubcommands, z as DiscordError } from "./discord-
|
|
2
|
+
import { B as unregisterGateway, C as hasAnyChannelPermissionDiscord, N as createDiscordRestClient, y as canViewDiscordGuildChannel, z as registerGateway } from "./send.shared-BXWCIkfx.mjs";
|
|
3
|
+
import { B as RateLimitError, J as stripUndefinedFields, L as DISCORD_REST_TIMEOUT_MS, _ as Command, d as hasDiscordV2Components, g as User, h as Message, l as Client, m as Guild, n as GuildCreateListener, o as Modal, r as ReadyListener, t as discord_exports, u as asSerializableComponent, v as CommandWithSubcommands, z as DiscordError } from "./discord-KsHAulAQ.mjs";
|
|
4
4
|
import { S as formatDiscordUserTag, _ as resolveDiscordOwnerAllowFrom, a as normalizeDiscordDisplaySlug, b as shouldEmitDiscordReactionNotification, c as resolveDiscordChannelConfig, f as resolveDiscordGuildEntry, g as resolveDiscordOwnerAccess, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, m as resolveDiscordMemberAllowed, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, r as isDiscordGroupAllowedByPolicy, s as resolveDiscordAllowListMatch, u as resolveDiscordChannelPolicyCommandAuthorizer, w as isDiscordThreadChannelType, x as formatDiscordReactionEmoji, y as resolveGroupDmAllow } from "./allow-list-C3j0qLDp.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { S as chunkDiscordTextWithMode } from "./send.receipt-DkCkAjRL.mjs";
|
|
6
6
|
import { n as getDiscordEndpointRuntime, t as assertDiscordEndpointGatewayUrl } from "./endpoint-runtime-lf4DeLas.mjs";
|
|
7
7
|
import { n as validateDiscordProxyUrl, r as withValidatedDiscordProxy } from "./proxy-fetch-BzXwBAXt.mjs";
|
|
8
8
|
import { a as isDiscordRateLimitResponseBody, s as summarizeDiscordResponseBody } from "./api-DYRggUgK.mjs";
|
|
9
|
-
import { _ as readMessagesDiscord, s as sendVoiceMessageDiscord } from "./send-
|
|
10
|
-
import { s as formatMention, t as sendMessageDiscord } from "./send.outbound-
|
|
9
|
+
import { _ as readMessagesDiscord, s as sendVoiceMessageDiscord } from "./send-DXPqEgjA.mjs";
|
|
10
|
+
import { s as formatMention, t as sendMessageDiscord } from "./send.outbound-70KlFdzN.mjs";
|
|
11
11
|
import { l as withAbortTimeout } from "./timeouts-cIxzatmv.mjs";
|
|
12
12
|
import { r as setPresence, t as clearPresences } from "./presence-cache-Dq-3nH7R.mjs";
|
|
13
13
|
import { _ as parseDiscordModalCustomId, a as DISCORD_APPROVAL_DECISIONS, b as encodeCustomIdComponent, g as parseDiscordComponentCustomIdForInteraction, h as parseDiscordComponentCustomId, i as parseDiscordQuestionData, m as parseDiscordActivityCustomIdForInteraction, s as parseExecApprovalData, u as buildDiscordActivityCustomId, v as parseDiscordModalCustomIdForInteraction, y as decodeCustomIdComponent } from "./shared-interactive-DmzaoKOM.mjs";
|
|
14
|
-
import { a as buildDiscordComponentMessage } from "./components-
|
|
15
|
-
import { a as registerDiscordComponentEntries, o as resolveDiscordComponentEntryWithPersistence, s as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-
|
|
14
|
+
import { a as buildDiscordComponentMessage } from "./components-Cy4hDa6J.mjs";
|
|
15
|
+
import { a as registerDiscordComponentEntries, o as resolveDiscordComponentEntryWithPersistence, s as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-MUCtA6qV.mjs";
|
|
16
16
|
import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
|
|
17
17
|
import { n as getDiscordActivitiesRuntime } from "./runtime-BMgTyuwg.mjs";
|
|
18
18
|
import { t as resolveDiscordCommandOwnerAllowFrom } from "./command-owners-C7rUdqUX.mjs";
|
|
19
|
-
import { D as getDiscordExecApprovalApprovers, _ as resolveDiscordConversationIdentity, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, d as setDiscordPolicyBindings, f as buildDiscordConversationRouteContext, h as resolveDiscordEffectiveRoute, k as isDiscordExecApprovalClientEnabled, m as resolveDiscordConversationRoute, n as DISCORD_PRESENTATION_CAPABILITIES, p as buildDiscordRoutePeer, r as buildDiscordPresentationPayload, s as DISCORD_APPROVAL_ALLOWED_MENTIONS, u as resolveDiscordGroupToolPolicy } from "./outbound-session-route-
|
|
19
|
+
import { D as getDiscordExecApprovalApprovers, _ as resolveDiscordConversationIdentity, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, d as setDiscordPolicyBindings, f as buildDiscordConversationRouteContext, h as resolveDiscordEffectiveRoute, k as isDiscordExecApprovalClientEnabled, m as resolveDiscordConversationRoute, n as DISCORD_PRESENTATION_CAPABILITIES, p as buildDiscordRoutePeer, r as buildDiscordPresentationPayload, s as DISCORD_APPROVAL_ALLOWED_MENTIONS, u as resolveDiscordGroupToolPolicy } from "./outbound-session-route-CpweCkxm.mjs";
|
|
20
20
|
import { n as discordIngressIdentity, t as selectDiscordLivePolicyConfig } from "./live-policy-config-y0Qy36X3.mjs";
|
|
21
21
|
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-g16NM6Ho.mjs";
|
|
22
22
|
import { t as resolveDiscordUserAllowlist } from "./resolve-users-DAfOOXdy.mjs";
|
|
23
|
-
import { a as isThreadArchived, n as getThreadBindingManager } from "./thread-bindings.manager-
|
|
23
|
+
import { a as isThreadArchived, n as getThreadBindingManager } from "./thread-bindings.manager-CadGpkjc.mjs";
|
|
24
24
|
import { n as resolveDiscordChannelNameSafe, r as resolveDiscordChannelTopicSafe, t as resolveDiscordChannelInfoSafe } from "./channel-access-9cyzozUP.mjs";
|
|
25
25
|
import { a as probeDiscordApplicationId, r as parseApplicationIdFromToken } from "./probe-CbDJojNV.mjs";
|
|
26
|
-
import { O as resolveDiscordReferencedReplyMessage, a as resolveDiscordVoiceEnabled, i as setDiscordTranscriptsVoiceManager, k as resolveDiscordReferencedReplyMessageId, l as resolveDiscordThreadLikeChannelContext, o as authorizeDiscordVoiceIngress, s as resolveDiscordVoiceAccess, u as resolveFetchedDiscordThreadLikeChannelContext } from "./transcripts-source-
|
|
26
|
+
import { O as resolveDiscordReferencedReplyMessage, a as resolveDiscordVoiceEnabled, i as setDiscordTranscriptsVoiceManager, k as resolveDiscordReferencedReplyMessageId, l as resolveDiscordThreadLikeChannelContext, o as authorizeDiscordVoiceIngress, s as resolveDiscordVoiceAccess, u as resolveFetchedDiscordThreadLikeChannelContext } from "./transcripts-source-DUL7GRxU.mjs";
|
|
27
27
|
import { t as resolveDiscordSenderIdentity } from "./sender-identity-BbA7FNbr.mjs";
|
|
28
28
|
import { n as hasDiscordApprovalControl, t as discordApprovalMessageUpdates } from "./approval-message-updates-DKsCfxSW.mjs";
|
|
29
29
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
@@ -4220,7 +4220,7 @@ const createDiscordModelPickerFallbackSelect = bindDiscordCommandControl(createD
|
|
|
4220
4220
|
//#region extensions/discord/src/monitor/agent-components-reply.ts
|
|
4221
4221
|
async function replySilently(interaction, params, onError) {
|
|
4222
4222
|
try {
|
|
4223
|
-
await interaction.reply(params);
|
|
4223
|
+
await interaction[interaction.responseState === "deferred-update" ? "followUp" : "reply"](params);
|
|
4224
4224
|
} catch (error) {
|
|
4225
4225
|
onError?.(error);
|
|
4226
4226
|
}
|
|
@@ -6099,7 +6099,7 @@ function createAgentSelectMenu(ctx) {
|
|
|
6099
6099
|
}
|
|
6100
6100
|
//#endregion
|
|
6101
6101
|
//#region extensions/discord/src/monitor/agent-components.ts
|
|
6102
|
-
const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-
|
|
6102
|
+
const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-Cy4hDa6J.mjs").then((n) => n.t));
|
|
6103
6103
|
async function resolveAuthorizedComponentEntry(params) {
|
|
6104
6104
|
const entry = params.entry ?? await params.resolve(false);
|
|
6105
6105
|
if (!entry) {
|
|
@@ -8015,7 +8015,7 @@ async function monitorDiscordProvider(opts) {
|
|
|
8015
8015
|
cfg,
|
|
8016
8016
|
accountId: account.accountId
|
|
8017
8017
|
}) ?? "pairing";
|
|
8018
|
-
const discordProviderSessionRuntime = await import("./provider-session.runtime-
|
|
8018
|
+
const discordProviderSessionRuntime = await import("./provider-session.runtime-pCvFOgHs.mjs");
|
|
8019
8019
|
const threadBindingIdleTimeoutMs = discordProviderSessionRuntime.resolveThreadBindingIdleTimeoutMs({
|
|
8020
8020
|
channelIdleHoursRaw: discordCfg.threadBindings?.idleHours,
|
|
8021
8021
|
sessionIdleHoursRaw: cfg.session?.threadBindings?.idleHours
|
|
@@ -8326,8 +8326,8 @@ async function monitorDiscordProvider(opts) {
|
|
|
8326
8326
|
};
|
|
8327
8327
|
let voiceManager = null;
|
|
8328
8328
|
if (voiceEnabled) {
|
|
8329
|
-
const { DiscordVoiceManager } = await import("./voice-runtime-
|
|
8330
|
-
const { DiscordVoiceGuildCreateListener, DiscordVoiceReadyListener, DiscordVoiceResumedListener, DiscordVoiceStateUpdateListener } = await import("./listeners-
|
|
8329
|
+
const { DiscordVoiceManager } = await import("./voice-runtime-D0TWfWJO.mjs");
|
|
8330
|
+
const { DiscordVoiceGuildCreateListener, DiscordVoiceReadyListener, DiscordVoiceResumedListener, DiscordVoiceStateUpdateListener } = await import("./listeners-C0-BvUVA.mjs");
|
|
8331
8331
|
voiceManager = new DiscordVoiceManager({
|
|
8332
8332
|
...monitorOptions,
|
|
8333
8333
|
scheduler
|
package/dist/.setup/{provider-session.runtime-3cZpps3H.mjs → provider-session.runtime-pCvFOgHs.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as createNoopThreadBindingManager, t as createThreadBindingManager } from "./thread-bindings.manager-
|
|
2
|
-
import { l as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-
|
|
3
|
-
import { t as createDiscordMessageHandler } from "./message-handler-
|
|
1
|
+
import { i as createNoopThreadBindingManager, t as createThreadBindingManager } from "./thread-bindings.manager-CadGpkjc.mjs";
|
|
2
|
+
import { l as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-BiO6_GA2.mjs";
|
|
3
|
+
import { t as createDiscordMessageHandler } from "./message-handler-h8xpc_1a.mjs";
|
|
4
4
|
import { resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled } from "openclaw/plugin-sdk/conversation-runtime";
|
|
5
5
|
import { getAcpSessionManager, isAcpRuntimeError, rethrowIncognitoSessionError } from "openclaw/plugin-sdk/acp-runtime";
|
|
6
6
|
export { createDiscordMessageHandler, createNoopThreadBindingManager, createThreadBindingManager, getAcpSessionManager, isAcpRuntimeError, reconcileAcpThreadBindingsOnStartup, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled, rethrowIncognitoSessionError };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as monitorDiscordProvider } from "./provider-D9dwCcy8.mjs";
|
package/dist/.setup/{realtime-session.runtime-BRYpjS9P.mjs → realtime-session.runtime-CP8Opnfr.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as setDiscordAudioOutputStatus, h as restoreDiscordAudioError, l as createDiscordPcmToRealtimeConverter, m as getDiscordAudioOutputStatus, p as DiscordAudioOutputStatus } from "./receive-recovery-C3Ks4wAQ.mjs";
|
|
2
2
|
import { t as resolveDiscordOutputAudioDelta } from "./output-activity-uBpMSX75.mjs";
|
|
3
3
|
import { n as discordRealtimeVoiceSecretOwnerId } from "./secret-config-contract-B1kE4sDv.mjs";
|
|
4
|
-
import { y as logVoiceVerbose } from "./provider-
|
|
5
|
-
import { a as maybeControlDiscordVoiceAgentRun, i as logDiscordVoiceAgentControlResult, n as formatVoiceIngressPrompt, r as handleDiscordVoiceAgentControlToolCall, t as DiscordRealtimeRecording } from "./voice-runtime-
|
|
4
|
+
import { y as logVoiceVerbose } from "./provider-D9dwCcy8.mjs";
|
|
5
|
+
import { a as maybeControlDiscordVoiceAgentRun, i as logDiscordVoiceAgentControlResult, n as formatVoiceIngressPrompt, r as handleDiscordVoiceAgentControlToolCall, t as DiscordRealtimeRecording } from "./voice-runtime-D0TWfWJO.mjs";
|
|
6
6
|
import { MessageChannel } from "node:worker_threads";
|
|
7
7
|
import { formatErrorMessage, readErrorName, toErrorObject, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
|
|
8
8
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as resolveDefaultDiscordAccountId, s as mergeDiscordAccountConfig, t as createDiscordActionGate } from "./accounts-C_25wyxC.mjs";
|
|
2
|
-
import { C as hasAnyChannelPermissionDiscord, P as createDiscordRuntimeAccountContext, R as getGateway, _ as canManageGuildMemberRoleDiscord, b as fetchChannelPermissionsDiscord, n as buildDiscordTextChunks, u as resolveDiscordTargetChannelId, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, y as canViewDiscordGuildChannel } from "./send.shared-
|
|
2
|
+
import { C as hasAnyChannelPermissionDiscord, P as createDiscordRuntimeAccountContext, R as getGateway, _ as canManageGuildMemberRoleDiscord, b as fetchChannelPermissionsDiscord, n as buildDiscordTextChunks, u as resolveDiscordTargetChannelId, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, y as canViewDiscordGuildChannel } from "./send.shared-BXWCIkfx.mjs";
|
|
3
3
|
import { l as resolveDiscordChannelConfigWithFallback, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, r as isDiscordGroupAllowedByPolicy, w as isDiscordThreadChannelType, y as resolveGroupDmAllow } from "./allow-list-C3j0qLDp.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { g as resolveDiscordReplyReference, m as createReusableDiscordReplyReference } from "./send.receipt-DkCkAjRL.mjs";
|
|
5
5
|
import { n as resolveDiscordChannelId, t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
|
|
6
|
-
import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchChannelInfoDiscord, D as fetchVoiceStatusDiscord, E as fetchRoleInfoDiscord, F as uploadEmojiDiscord, H as setChannelPermissionDiscord, I as uploadStickerDiscord, L as createChannelDiscord, M as resolveEventCoverImage, N as timeoutMemberDiscord, O as kickMemberDiscord, P as listGuildEmojisDiscord, R as deleteChannelDiscord, S as createScheduledEventDiscord, T as fetchMemberInfoDiscord, V as removeChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, l as DiscordThreadInitialMessageError, m as listPinsDiscord, n as fetchReactionsDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchGuildInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./send-
|
|
7
|
-
import { r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-
|
|
6
|
+
import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchChannelInfoDiscord, D as fetchVoiceStatusDiscord, E as fetchRoleInfoDiscord, F as uploadEmojiDiscord, H as setChannelPermissionDiscord, I as uploadStickerDiscord, L as createChannelDiscord, M as resolveEventCoverImage, N as timeoutMemberDiscord, O as kickMemberDiscord, P as listGuildEmojisDiscord, R as deleteChannelDiscord, S as createScheduledEventDiscord, T as fetchMemberInfoDiscord, V as removeChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, l as DiscordThreadInitialMessageError, m as listPinsDiscord, n as fetchReactionsDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchGuildInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./send-DXPqEgjA.mjs";
|
|
7
|
+
import { r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-70KlFdzN.mjs";
|
|
8
8
|
import { n as getPresence } from "./presence-cache-Dq-3nH7R.mjs";
|
|
9
|
-
import { c as coerceDiscordComponentParam, l as readDiscordComponentSpec } from "./components-
|
|
10
|
-
import { r as sendDiscordComponentMessage } from "./send.components-
|
|
9
|
+
import { c as coerceDiscordComponentParam, l as readDiscordComponentSpec } from "./components-Cy4hDa6J.mjs";
|
|
10
|
+
import { r as sendDiscordComponentMessage } from "./send.components-MUCtA6qV.mjs";
|
|
11
11
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
12
12
|
import { asBoolean, asOptionalRecord, isRecord, normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
13
13
|
import { assertMediaNotDataUrl, jsonResult, parseAvailableTags, readNonNegativeIntegerParam, readPositiveIntegerParam, readReactionParams, readStringArrayParam, readStringParam, withNormalizedTimestamp } from "openclaw/plugin-sdk/channel-actions";
|
|
@@ -297,7 +297,10 @@ function createDiscordMessagingActionContext(params) {
|
|
|
297
297
|
const withOpts = (extra) => createDiscordActionOptions({
|
|
298
298
|
cfg: params.cfg,
|
|
299
299
|
accountId,
|
|
300
|
-
extra
|
|
300
|
+
extra: {
|
|
301
|
+
...params.options?.callerSignal ? { callerSignal: params.options.callerSignal } : {},
|
|
302
|
+
...extra
|
|
303
|
+
}
|
|
301
304
|
});
|
|
302
305
|
const resolvedReactionAccountId = accountId ?? resolveDefaultDiscordAccountId(params.cfg);
|
|
303
306
|
const isCurrentReadTarget = (channelId) => {
|
|
@@ -483,13 +486,15 @@ function createDiscordMessagingActionContext(params) {
|
|
|
483
486
|
} catch {
|
|
484
487
|
return (await resolveDiscordTargetChannelId(target, {
|
|
485
488
|
cfg: params.cfg,
|
|
486
|
-
accountId: resolvedReactionAccountId
|
|
489
|
+
accountId: resolvedReactionAccountId,
|
|
490
|
+
...params.options?.callerSignal ? { callerSignal: params.options.callerSignal } : {}
|
|
487
491
|
})).channelId;
|
|
488
492
|
}
|
|
489
493
|
},
|
|
490
494
|
withOpts,
|
|
491
495
|
withReactionRuntimeOptions: (extra) => ({
|
|
492
496
|
...reactionRuntimeOptions,
|
|
497
|
+
...params.options?.callerSignal ? { callerSignal: params.options.callerSignal } : {},
|
|
493
498
|
...extra
|
|
494
499
|
}),
|
|
495
500
|
normalizeMessage: (message) => {
|
|
@@ -500,6 +505,14 @@ function createDiscordMessagingActionContext(params) {
|
|
|
500
505
|
}
|
|
501
506
|
//#endregion
|
|
502
507
|
//#region extensions/discord/src/actions/runtime.guild.ts
|
|
508
|
+
/** Options for permission and metadata lookups that run before an action's own send options. */
|
|
509
|
+
function guildActionOptions(params) {
|
|
510
|
+
return createDiscordActionOptions({
|
|
511
|
+
cfg: params.cfg,
|
|
512
|
+
accountId: params.accountId,
|
|
513
|
+
...params.callerSignal ? { extra: { callerSignal: params.callerSignal } } : {}
|
|
514
|
+
});
|
|
515
|
+
}
|
|
503
516
|
const expressionPermissions = [PermissionFlagsBits.ManageGuildExpressions, PermissionFlagsBits.CreateGuildExpressions];
|
|
504
517
|
const channelGuard = {
|
|
505
518
|
gate: "channels",
|
|
@@ -567,20 +580,14 @@ async function resolveGuildIdForGuildAdminAction(params) {
|
|
|
567
580
|
if (guildId) return guildId;
|
|
568
581
|
const channelLikeId = readStringParam(params.values, "channelId") ?? readStringParam(params.values, "categoryId");
|
|
569
582
|
if (!channelLikeId) return;
|
|
570
|
-
const channel = await fetchChannelInfoDiscord(channelLikeId,
|
|
571
|
-
cfg: params.cfg,
|
|
572
|
-
accountId: params.accountId
|
|
573
|
-
}));
|
|
583
|
+
const channel = await fetchChannelInfoDiscord(channelLikeId, guildActionOptions(params));
|
|
574
584
|
return "guild_id" in channel ? channel.guild_id : void 0;
|
|
575
585
|
}
|
|
576
586
|
async function resolveGuildAdminActionPermissions(params) {
|
|
577
587
|
if (params.action !== "channelEdit") return params.guard.permissions;
|
|
578
588
|
const channelId = readStringParam(params.values, "channelId");
|
|
579
589
|
if (!channelId) return params.guard.permissions;
|
|
580
|
-
const channel = await fetchChannelInfoDiscord(channelId,
|
|
581
|
-
cfg: params.cfg,
|
|
582
|
-
accountId: params.accountId
|
|
583
|
-
}));
|
|
590
|
+
const channel = await fetchChannelInfoDiscord(channelId, guildActionOptions(params));
|
|
584
591
|
const channelType = "type" in channel ? channel.type : void 0;
|
|
585
592
|
if (!isDiscordThreadChannelType(channelType)) return params.guard.permissions;
|
|
586
593
|
const edit = readDiscordChannelEditParams(params.values);
|
|
@@ -596,10 +603,7 @@ async function verifySenderGuildAdminPermission(params) {
|
|
|
596
603
|
});
|
|
597
604
|
const guildId = await resolveGuildIdForGuildAdminAction(params);
|
|
598
605
|
if (!guildId) throw new Error(`Guild id required to authorize Discord guild action: ${params.action}`);
|
|
599
|
-
const actionOptions =
|
|
600
|
-
cfg: params.cfg,
|
|
601
|
-
accountId: params.accountId
|
|
602
|
-
});
|
|
606
|
+
const actionOptions = guildActionOptions(params);
|
|
603
607
|
const targetChannelId = guard?.permissionScope === "channel" || params.action === "eventCreate" ? readStringParam(params.values, params.action === "categoryEdit" || params.action === "categoryDelete" ? "categoryId" : "channelId") : void 0;
|
|
604
608
|
const hasPermission = targetChannelId ? await hasAnyChannelPermissionDiscord(guildId, targetChannelId, senderUserId, requiredPermissions, actionOptions) : await hasAnyGuildPermissionDiscord(guildId, senderUserId, requiredPermissions, actionOptions);
|
|
605
609
|
const requiresCurrentThreadAccess = params.action === "channelEdit" && requiredPermissions.includes(PermissionFlagsBits.SendMessages);
|
|
@@ -628,7 +632,8 @@ async function handleDiscordGuildAction(action, params, isActionEnabled, cfg, op
|
|
|
628
632
|
action,
|
|
629
633
|
values: params,
|
|
630
634
|
accountId,
|
|
631
|
-
cfg
|
|
635
|
+
cfg,
|
|
636
|
+
...options?.callerSignal ? { callerSignal: options.callerSignal } : {}
|
|
632
637
|
});
|
|
633
638
|
const readTargetGate = createDiscordMessagingActionContext({
|
|
634
639
|
action,
|
|
@@ -639,12 +644,14 @@ async function handleDiscordGuildAction(action, params, isActionEnabled, cfg, op
|
|
|
639
644
|
});
|
|
640
645
|
const withOpts = () => createDiscordActionOptions({
|
|
641
646
|
cfg,
|
|
642
|
-
accountId
|
|
647
|
+
accountId,
|
|
648
|
+
...options?.callerSignal ? { extra: { callerSignal: options.callerSignal } } : {}
|
|
643
649
|
});
|
|
644
650
|
const mediaPolicyOptions = {
|
|
645
651
|
mediaAccess: options?.mediaAccess,
|
|
646
652
|
mediaLocalRoots: options?.mediaLocalRoots,
|
|
647
|
-
mediaReadFile: options?.mediaReadFile
|
|
653
|
+
mediaReadFile: options?.mediaReadFile,
|
|
654
|
+
...options?.callerSignal ? { callerSignal: options.callerSignal } : {}
|
|
648
655
|
};
|
|
649
656
|
const readRequiredString = (key) => readStringParam(params, key, { required: true });
|
|
650
657
|
const readMetadataGuildId = async (guildId = readRequiredString("guildId")) => {
|
|
@@ -670,9 +677,10 @@ async function handleDiscordGuildAction(action, params, isActionEnabled, cfg, op
|
|
|
670
677
|
});
|
|
671
678
|
}
|
|
672
679
|
const effectiveAccountId = accountId ?? resolveDefaultDiscordAccountId(cfg);
|
|
673
|
-
const member = await fetchMemberInfoDiscord(guildId, userId,
|
|
680
|
+
const member = await fetchMemberInfoDiscord(guildId, userId, guildActionOptions({
|
|
674
681
|
cfg,
|
|
675
|
-
accountId: effectiveAccountId
|
|
682
|
+
accountId: effectiveAccountId,
|
|
683
|
+
...options?.callerSignal ? { callerSignal: options.callerSignal } : {}
|
|
676
684
|
}));
|
|
677
685
|
const presence = getPresence(effectiveAccountId, userId);
|
|
678
686
|
const activities = presence?.activities;
|
|
@@ -702,7 +710,8 @@ async function handleDiscordGuildAction(action, params, isActionEnabled, cfg, op
|
|
|
702
710
|
const guildId = await resolveGuildIdForGuildAdminAction({
|
|
703
711
|
values: params,
|
|
704
712
|
accountId,
|
|
705
|
-
cfg
|
|
713
|
+
cfg,
|
|
714
|
+
...options?.callerSignal ? { callerSignal: options.callerSignal } : {}
|
|
706
715
|
});
|
|
707
716
|
if (!guildId) throw new Error("Discord emoji listing requires guildId or a server channel.");
|
|
708
717
|
await readMetadataGuildId(guildId);
|
|
@@ -1387,7 +1396,8 @@ async function handleDiscordAction(params, cfg, options) {
|
|
|
1387
1396
|
const senderUserId = readStringParam(params, "senderUserId");
|
|
1388
1397
|
const withOpts = () => createDiscordActionOptions({
|
|
1389
1398
|
cfg,
|
|
1390
|
-
accountId
|
|
1399
|
+
accountId,
|
|
1400
|
+
...options?.callerSignal ? { extra: { callerSignal: options.callerSignal } } : {}
|
|
1391
1401
|
});
|
|
1392
1402
|
if (!await (senderUserId ? hasAnyGuildPermissionDiscord(command.guildId, senderUserId, [requiredGuildPermissionForModerationAction(command.action)], withOpts()) : true)) throw new Error("Sender does not have required permissions for this moderation action.");
|
|
1393
1403
|
const target = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
-
import { C as hasAnyChannelPermissionDiscord, D as createDiscordMessageNonce, F as resolveDiscordClientAccountContext, I as resolveDiscordRest, M as createDiscordClient, O as resolveDiscordMessageFlags, S as hasAllGuildPermissionsDiscord, _ as canManageGuildMemberRoleDiscord, a as normalizeEmojiName, b as fetchChannelPermissionsDiscord, c as resolveChannelId, d as sendDiscordChunks, g as DiscordSendError, h as DISCORD_MAX_STICKER_BYTES, j as resolveDiscordSuppressEmbeds, m as DISCORD_MAX_EVENT_COVER_BYTES, n as buildDiscordTextChunks, o as normalizeReactionEmoji, p as DISCORD_MAX_EMOJI_BYTES, r as buildReactionIdentifier, t as buildDiscordSendError, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, x as fetchMemberGuildPermissionsDiscord, y as canViewDiscordGuildChannel } from "./send.shared-
|
|
3
|
-
import { B as RateLimitError, C as listMessageReactionUsers, D as editChannelMessage, E as deleteChannelMessage, F as getGuildVoiceState, G as readRetryAfter, H as isUnknownDiscordVoiceStateError, I as listGuildEmojis, J as stripUndefinedFields, L as DISCORD_REST_TIMEOUT_MS, M as unpinChannelMessage, N as getGuild, O as getChannel, P as getGuildMember, S as deleteOwnMessageReaction, T as createThread, U as readDiscordCode, V as isUnknownDiscordMessageError, W as readDiscordMessage, j as pinChannelMessage, k as getChannelMessage, q as withDiscordRequestAuthority, w as createChannelMessage, x as createOwnMessageReaction, z as DiscordError } from "./discord-
|
|
2
|
+
import { C as hasAnyChannelPermissionDiscord, D as createDiscordMessageNonce, F as resolveDiscordClientAccountContext, I as resolveDiscordRest, M as createDiscordClient, O as resolveDiscordMessageFlags, S as hasAllGuildPermissionsDiscord, _ as canManageGuildMemberRoleDiscord, a as normalizeEmojiName, b as fetchChannelPermissionsDiscord, c as resolveChannelId, d as sendDiscordChunks, g as DiscordSendError, h as DISCORD_MAX_STICKER_BYTES, j as resolveDiscordSuppressEmbeds, m as DISCORD_MAX_EVENT_COVER_BYTES, n as buildDiscordTextChunks, o as normalizeReactionEmoji, p as DISCORD_MAX_EMOJI_BYTES, r as buildReactionIdentifier, t as buildDiscordSendError, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, x as fetchMemberGuildPermissionsDiscord, y as canViewDiscordGuildChannel } from "./send.shared-BXWCIkfx.mjs";
|
|
3
|
+
import { B as RateLimitError, C as listMessageReactionUsers, D as editChannelMessage, E as deleteChannelMessage, F as getGuildVoiceState, G as readRetryAfter, H as isUnknownDiscordVoiceStateError, I as listGuildEmojis, J as stripUndefinedFields, L as DISCORD_REST_TIMEOUT_MS, M as unpinChannelMessage, N as getGuild, O as getChannel, P as getGuildMember, S as deleteOwnMessageReaction, T as createThread, U as readDiscordCode, V as isUnknownDiscordMessageError, W as readDiscordMessage, j as pinChannelMessage, k as getChannelMessage, q as withDiscordRequestAuthority, w as createChannelMessage, x as createOwnMessageReaction, z as DiscordError } from "./discord-KsHAulAQ.mjs";
|
|
4
4
|
import { C as parseDiscordRetryAfterBodySeconds } from "./allow-list-C3j0qLDp.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { S as chunkDiscordTextWithMode, n as createDiscordSendReceiptFromResults, r as createDiscordSendResult, v as classifyDiscordDeliveryFailure, x as recordDiscordMessageCreateAmbiguity, y as createDiscordRetryRunner } from "./send.receipt-DkCkAjRL.mjs";
|
|
6
6
|
import { n as getDiscordEndpointRuntime, r as resolveDiscordEndpointAttachmentGuard } from "./endpoint-runtime-lf4DeLas.mjs";
|
|
7
7
|
import { o as parseDiscordHttpErrorBody } from "./api-DYRggUgK.mjs";
|
|
8
|
-
import { t as parseAndResolveDiscordTarget } from "./target-resolver-
|
|
9
|
-
import { a as prepareDiscordOutboundText, n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-
|
|
8
|
+
import { t as parseAndResolveDiscordTarget } from "./target-resolver-54k9fO6u.mjs";
|
|
9
|
+
import { a as prepareDiscordOutboundText, n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-70KlFdzN.mjs";
|
|
10
10
|
import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS } from "./timeouts-cIxzatmv.mjs";
|
|
11
11
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
12
12
|
import { resolvePreferredOpenClawTmpDir, withTempWorkspace } from "openclaw/plugin-sdk/temp-path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
-
import { D as createDiscordMessageNonce, M as createDiscordClient, T as SUPPRESS_NOTIFICATIONS_FLAG, c as resolveChannelId, l as resolveDiscordChannel, t as buildDiscordSendError } from "./send.shared-
|
|
3
|
-
import { D as editChannelMessage, f as serializePayload, q as withDiscordRequestAuthority, w as createChannelMessage } from "./discord-
|
|
4
|
-
import { r as createDiscordSendResult } from "./send.receipt-
|
|
5
|
-
import { t as parseAndResolveDiscordTarget } from "./target-resolver-
|
|
6
|
-
import { t as sendMessageDiscord } from "./send.outbound-
|
|
7
|
-
import { a as buildDiscordComponentMessage, u as resolveDiscordComponentAttachmentName } from "./components-
|
|
2
|
+
import { D as createDiscordMessageNonce, M as createDiscordClient, T as SUPPRESS_NOTIFICATIONS_FLAG, c as resolveChannelId, l as resolveDiscordChannel, t as buildDiscordSendError } from "./send.shared-BXWCIkfx.mjs";
|
|
3
|
+
import { D as editChannelMessage, f as serializePayload, q as withDiscordRequestAuthority, w as createChannelMessage } from "./discord-KsHAulAQ.mjs";
|
|
4
|
+
import { r as createDiscordSendResult } from "./send.receipt-DkCkAjRL.mjs";
|
|
5
|
+
import { t as parseAndResolveDiscordTarget } from "./target-resolver-54k9fO6u.mjs";
|
|
6
|
+
import { t as sendMessageDiscord } from "./send.outbound-70KlFdzN.mjs";
|
|
7
|
+
import { a as buildDiscordComponentMessage, u as resolveDiscordComponentAttachmentName } from "./components-Cy4hDa6J.mjs";
|
|
8
8
|
import { n as getOptionalDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
|
|
9
9
|
import { hasNonEmptyString, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { ChannelType } from "discord-api-types/v10";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
-
import { A as resolveDiscordSendEmbeds, D as createDiscordMessageNonce, E as buildDiscordMessageRequest, M as createDiscordClient, O as resolveDiscordMessageFlags, c as resolveChannelId, d as sendDiscordChunks, f as sendDiscordMedia, i as normalizeDiscordPollInput, j as resolveDiscordSuppressEmbeds, k as resolveDiscordSendComponents, l as resolveDiscordChannel, n as buildDiscordTextChunks, s as normalizeStickerIds, t as buildDiscordSendError } from "./send.shared-
|
|
3
|
-
import { T as createThread, q as withDiscordRequestAuthority, w as createChannelMessage } from "./discord-
|
|
4
|
-
import { n as createDiscordSendReceiptFromResults, r as createDiscordSendResult, u as
|
|
5
|
-
import {
|
|
6
|
-
import { t as parseAndResolveDiscordTarget } from "./target-resolver-BzaZPBm9.mjs";
|
|
2
|
+
import { A as resolveDiscordSendEmbeds, D as createDiscordMessageNonce, E as buildDiscordMessageRequest, M as createDiscordClient, O as resolveDiscordMessageFlags, c as resolveChannelId, d as sendDiscordChunks, f as sendDiscordMedia, i as normalizeDiscordPollInput, j as resolveDiscordSuppressEmbeds, k as resolveDiscordSendComponents, l as resolveDiscordChannel, n as buildDiscordTextChunks, s as normalizeStickerIds, t as buildDiscordSendError } from "./send.shared-BXWCIkfx.mjs";
|
|
3
|
+
import { T as createThread, q as withDiscordRequestAuthority, w as createChannelMessage } from "./discord-KsHAulAQ.mjs";
|
|
4
|
+
import { d as normalizeDiscordSnowflake, m as createReusableDiscordReplyReference, n as createDiscordSendReceiptFromResults, p as resolveDiscordDirectoryUserId, r as createDiscordSendResult, u as normalizeDiscordHandleKey } from "./send.receipt-DkCkAjRL.mjs";
|
|
5
|
+
import { t as parseAndResolveDiscordTarget } from "./target-resolver-54k9fO6u.mjs";
|
|
7
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
7
|
import { ChannelType } from "discord-api-types/v10";
|
|
9
8
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { B as RateLimitError } from "./discord-
|
|
1
|
+
import { B as RateLimitError } from "./discord-KsHAulAQ.mjs";
|
|
2
2
|
import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
|
|
3
3
|
import { collectErrorGraphCandidates, extractErrorCode, formatErrorMessage, readErrorName } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
|
|
5
|
+
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
6
|
+
import { normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
7
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
6
8
|
import { parseStrictNonNegativeInteger, resolveIntegerOption } from "openclaw/plugin-sdk/number-runtime";
|
|
7
9
|
import { chunkByParagraph } from "openclaw/plugin-sdk/reply-chunking";
|
|
8
10
|
import { chunkTextForOutbound, findCodeRegions } from "openclaw/plugin-sdk/text-chunking";
|
|
9
11
|
import { classifyTransientNetworkErrorCode, createChannelApiRetryRunner, resolveRetryConfig, retryAsync } from "openclaw/plugin-sdk/retry-runtime";
|
|
10
12
|
import { isSingleUseReplyToMode } from "openclaw/plugin-sdk/reply-reference";
|
|
13
|
+
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
11
14
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
|
|
12
15
|
import { attachChannelToResults } from "openclaw/plugin-sdk/channel-send-result";
|
|
13
16
|
//#region packages/normalization-core/src/utf16-slice.ts
|
|
@@ -479,6 +482,59 @@ function resolveDiscordReplyMessageId(reply, isFirst) {
|
|
|
479
482
|
return reply && (isFirst || reply.scope === "all") ? reply.messageId : void 0;
|
|
480
483
|
}
|
|
481
484
|
//#endregion
|
|
485
|
+
//#region extensions/discord/src/directory-cache-state.ts
|
|
486
|
+
const discordDirectoryCacheState = { handlesByAccount: /* @__PURE__ */ new Map() };
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region extensions/discord/src/directory-cache.ts
|
|
489
|
+
const DISCORD_DIRECTORY_CACHE_MAX_ENTRIES = 4e3;
|
|
490
|
+
const DISCORD_DISCRIMINATOR_SUFFIX = /#\d{4}$/;
|
|
491
|
+
function normalizeDiscordSnowflake(value) {
|
|
492
|
+
const text = normalizeOptionalStringifiedId(value) ?? "";
|
|
493
|
+
if (!/^\d+$/.test(text)) return null;
|
|
494
|
+
return text;
|
|
495
|
+
}
|
|
496
|
+
function normalizeDiscordHandleKey(raw) {
|
|
497
|
+
let handle = normalizeOptionalString(raw) ?? "";
|
|
498
|
+
if (!handle) return null;
|
|
499
|
+
if (handle.startsWith("@")) handle = normalizeOptionalString(handle.slice(1)) ?? "";
|
|
500
|
+
if (!handle || /\s/.test(handle)) return null;
|
|
501
|
+
return handle.toLowerCase();
|
|
502
|
+
}
|
|
503
|
+
function ensureAccountCache(accountId) {
|
|
504
|
+
const cacheKey = normalizeAccountId(accountId);
|
|
505
|
+
const existing = discordDirectoryCacheState.handlesByAccount.get(cacheKey);
|
|
506
|
+
if (existing) return existing;
|
|
507
|
+
const created = /* @__PURE__ */ new Map();
|
|
508
|
+
discordDirectoryCacheState.handlesByAccount.set(cacheKey, created);
|
|
509
|
+
return created;
|
|
510
|
+
}
|
|
511
|
+
function setCacheEntry(cache, key, userId) {
|
|
512
|
+
const previous = cache.get(key);
|
|
513
|
+
cache.delete(key);
|
|
514
|
+
cache.set(key, previous === void 0 || previous === userId ? userId : null);
|
|
515
|
+
pruneMapToMaxSize(cache, DISCORD_DIRECTORY_CACHE_MAX_ENTRIES);
|
|
516
|
+
}
|
|
517
|
+
function rememberDiscordDirectoryUser(params) {
|
|
518
|
+
const userId = normalizeDiscordSnowflake(params.userId);
|
|
519
|
+
if (!userId) return;
|
|
520
|
+
const cache = ensureAccountCache(params.accountId);
|
|
521
|
+
for (const candidate of params.handles) {
|
|
522
|
+
if (typeof candidate !== "string") continue;
|
|
523
|
+
const handle = normalizeDiscordHandleKey(candidate);
|
|
524
|
+
if (!handle) continue;
|
|
525
|
+
setCacheEntry(cache, handle, userId);
|
|
526
|
+
const withoutDiscriminator = handle.replace(DISCORD_DISCRIMINATOR_SUFFIX, "");
|
|
527
|
+
if (withoutDiscriminator && withoutDiscriminator !== handle) setCacheEntry(cache, withoutDiscriminator, userId);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
function resolveDiscordDirectoryUserId(params) {
|
|
531
|
+
const cache = discordDirectoryCacheState.handlesByAccount.get(normalizeAccountId(params.accountId));
|
|
532
|
+
if (!cache) return;
|
|
533
|
+
const handle = normalizeDiscordHandleKey(params.handle);
|
|
534
|
+
if (!handle) return;
|
|
535
|
+
return cache.get(handle) ?? void 0;
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
482
538
|
//#region extensions/discord/src/normalize.ts
|
|
483
539
|
function normalizeDiscordMessagingTarget(raw) {
|
|
484
540
|
return parseDiscordTarget(raw, { defaultKind: "channel" })?.normalized;
|
|
@@ -589,4 +645,4 @@ function createDiscordSendResult(params) {
|
|
|
589
645
|
};
|
|
590
646
|
}
|
|
591
647
|
//#endregion
|
|
592
|
-
export {
|
|
648
|
+
export { findGraphemeChunkEnd as C, chunkDiscordTextWithMode as S, canFallbackDiscordWebhookSend as _, allowFromContainsDiscordUserId as a, hasDiscordMessageCreateAmbiguity as b, normalizeDiscordMessagingTarget as c, normalizeDiscordSnowflake as d, rememberDiscordDirectoryUser as f, resolveDiscordReplyReference as g, resolveDiscordReplyMessageId as h, toDiscordOutboundDeliveryResult as i, normalizeDiscordOutboundTarget as l, createReusableDiscordReplyReference as m, createDiscordSendReceiptFromResults as n, looksLikeDiscordTargetId as o, resolveDiscordDirectoryUserId as p, createDiscordSendResult as r, matchesDiscordToolContextTarget as s, createDiscordSendReceipt as t, normalizeDiscordHandleKey as u, classifyDiscordDeliveryFailure as v, recordDiscordMessageCreateAmbiguity as x, createDiscordRetryRunner as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h as normalizeDiscordToken, l as resolveDiscordAccount, s as mergeDiscordAccountConfig } from "./accounts-C_25wyxC.mjs";
|
|
2
|
-
import { A as getThreadMember, N as getGuild, O as getChannel, P as getGuildMember, R as RequestClient, b as getCurrentUser, d as hasDiscordV2Components, f as serializePayload, p as Embed, w as createChannelMessage, y as createUserDmChannel, z as DiscordError } from "./discord-
|
|
2
|
+
import { A as getThreadMember, N as getGuild, O as getChannel, P as getGuildMember, R as RequestClient, b as getCurrentUser, d as hasDiscordV2Components, f as serializePayload, p as Embed, w as createChannelMessage, y as createUserDmChannel, z as DiscordError } from "./discord-KsHAulAQ.mjs";
|
|
3
3
|
import { w as isDiscordThreadChannelType } from "./allow-list-C3j0qLDp.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { S as chunkDiscordTextWithMode, h as resolveDiscordReplyMessageId, y as createDiscordRetryRunner } from "./send.receipt-DkCkAjRL.mjs";
|
|
5
5
|
import { t as resolveDiscordProxyFetchForAccount } from "./proxy-fetch-BzXwBAXt.mjs";
|
|
6
|
-
import { t as parseAndResolveDiscordTarget } from "./target-resolver-
|
|
6
|
+
import { t as parseAndResolveDiscordTarget } from "./target-resolver-54k9fO6u.mjs";
|
|
7
7
|
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
8
8
|
import { normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { ChannelType, MessageFlags, PermissionFlagsBits } from "discord-api-types/v10";
|
|
@@ -78,7 +78,7 @@ function createDiscordRestClient(opts) {
|
|
|
78
78
|
accountId: opts.accountId
|
|
79
79
|
});
|
|
80
80
|
const token = explicitToken ?? resolveToken(account);
|
|
81
|
-
const { rest, signal, timeoutMs } = opts;
|
|
81
|
+
const { rest, signal, callerSignal, timeoutMs } = opts;
|
|
82
82
|
if (rest) return {
|
|
83
83
|
token,
|
|
84
84
|
rest,
|
|
@@ -90,6 +90,7 @@ function createDiscordRestClient(opts) {
|
|
|
90
90
|
rest: new RequestClient(token, {
|
|
91
91
|
...proxyFetch ? { fetch: proxyFetch } : {},
|
|
92
92
|
...signal ? { signal } : {},
|
|
93
|
+
...callerSignal ? { callerSignal } : {},
|
|
93
94
|
...timeoutMs !== void 0 ? { timeout: timeoutMs } : {}
|
|
94
95
|
}),
|
|
95
96
|
account
|
|
@@ -107,7 +108,7 @@ function createDiscordClient(opts) {
|
|
|
107
108
|
request: createDiscordRetryRunner({
|
|
108
109
|
retry: opts.retry,
|
|
109
110
|
verbose: opts.verbose,
|
|
110
|
-
signal: opts.signal,
|
|
111
|
+
signal: opts.signal && opts.callerSignal ? AbortSignal.any([opts.signal, opts.callerSignal]) : opts.callerSignal ?? opts.signal,
|
|
111
112
|
isGatewayDisconnected: () => {
|
|
112
113
|
const gateway = getGateway(restAccount.accountId);
|
|
113
114
|
return gateway !== void 0 && !gateway.isConnected;
|
|
@@ -97,7 +97,7 @@ const discordSetupContract = defineChannelSetupContract({
|
|
|
97
97
|
//#region extensions/discord/src/shared.ts
|
|
98
98
|
const DISCORD_CHANNEL = "discord";
|
|
99
99
|
const livePolicyConfigPrefixes = Object.keys(selectDiscordLivePolicyConfig({})).flatMap((key) => [`channels.discord.${key}`, `channels.discord.accounts.*.${key}`]);
|
|
100
|
-
const loadDiscordDoctorModule = createLazyRuntimeModule(() => import("./doctor-
|
|
100
|
+
const loadDiscordDoctorModule = createLazyRuntimeModule(() => import("./doctor-CQescbAS.mjs"));
|
|
101
101
|
const discordDoctor = {
|
|
102
102
|
dmAllowFromMode: "topOnly",
|
|
103
103
|
groupModel: "route",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
-
import { d as unbindThreadBindingsBySessionKeyAsync, o as listThreadBindingsBySessionKey, s as listThreadBindingsBySessionKeyAsync } from "./thread-bindings-
|
|
2
|
+
import { d as unbindThreadBindingsBySessionKeyAsync, o as listThreadBindingsBySessionKey, s as listThreadBindingsBySessionKeyAsync } from "./thread-bindings-BiO6_GA2.mjs";
|
|
3
3
|
import { normalizeOptionalLowercaseString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { warnPluginSdkDeprecation } from "openclaw/plugin-sdk/thread-bindings-session-runtime";
|
|
5
5
|
//#region extensions/discord/src/subagent-hooks.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as discord_exports } from "./discord-
|
|
1
|
+
import { t as discord_exports } from "./discord-KsHAulAQ.mjs";
|
|
2
2
|
import { S as formatDiscordUserTag } from "./allow-list-C3j0qLDp.mjs";
|
|
3
3
|
//#region extensions/discord/src/monitor/system-events.ts
|
|
4
4
|
const SYSTEM_EVENT_ACTIONS = /* @__PURE__ */ new Map([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
2
|
import { l as resolveDiscordAccount, u as resolveDiscordAccountAllowFrom } from "./accounts-C_25wyxC.mjs";
|
|
3
|
-
import { a as allowFromContainsDiscordUserId } from "./send.receipt-
|
|
4
|
-
import {
|
|
3
|
+
import { a as allowFromContainsDiscordUserId, f as rememberDiscordDirectoryUser } from "./send.receipt-DkCkAjRL.mjs";
|
|
4
|
+
import { r as listDiscordDirectoryPeersLive } from "./directory-live-DOVK9G9P.mjs";
|
|
5
5
|
import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
|
|
6
6
|
import { buildMessagingTarget } from "openclaw/plugin-sdk/channel-targets";
|
|
7
7
|
//#region extensions/discord/src/target-resolver.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
2
|
import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
|
|
3
|
-
import { D as refreshUnboundThreadWebhookIdentity, F as resolveThreadBindingMaxAgeMs, M as resolveThreadBindingIdleTimeoutMs, N as resolveThreadBindingInactivityExpiresAt, P as resolveThreadBindingMaxAgeExpiresAt, S as ensureBindingsLoadedAsync, _ as MANAGERS_BY_ACCOUNT_ID, a as mutateBindingsForTargetSession, g as BINDINGS_BY_THREAD_ID, i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, o as resolveBindingIdsForTargetSession, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey, u as removeBindingRecordSync, w as getThreadBindingToken, x as ensureBindingsLoaded } from "./thread-bindings.session-updates-
|
|
4
|
-
import { c as resolveThreadBindingPersonaFromRecord, i as createNoopThreadBindingManager, n as getThreadBindingManager, o as resolveChannelIdForBinding, s as resolveThreadBindingPersona, t as createThreadBindingManager } from "./thread-bindings.manager-
|
|
3
|
+
import { D as refreshUnboundThreadWebhookIdentity, F as resolveThreadBindingMaxAgeMs, M as resolveThreadBindingIdleTimeoutMs, N as resolveThreadBindingInactivityExpiresAt, P as resolveThreadBindingMaxAgeExpiresAt, S as ensureBindingsLoadedAsync, _ as MANAGERS_BY_ACCOUNT_ID, a as mutateBindingsForTargetSession, g as BINDINGS_BY_THREAD_ID, i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, o as resolveBindingIdsForTargetSession, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey, u as removeBindingRecordSync, w as getThreadBindingToken, x as ensureBindingsLoaded } from "./thread-bindings.session-updates-B4iJqhAn.mjs";
|
|
4
|
+
import { c as resolveThreadBindingPersonaFromRecord, i as createNoopThreadBindingManager, n as getThreadBindingManager, o as resolveChannelIdForBinding, s as resolveThreadBindingPersona, t as createThreadBindingManager } from "./thread-bindings.manager-CadGpkjc.mjs";
|
|
5
5
|
import { normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { runTasksWithConcurrency } from "openclaw/plugin-sdk/concurrency-runtime";
|
|
7
7
|
import { formatThreadBindingDurationLabel as formatThreadBindingDurationLabel$1, resolveThreadBindingIdleTimeoutMsForChannel, resolveThreadBindingIntroText, resolveThreadBindingIntroText as resolveThreadBindingIntroText$1, resolveThreadBindingMaxAgeMsForChannel, resolveThreadBindingThreadName, resolveThreadBindingThreadName as resolveThreadBindingThreadName$1, resolveThreadBindingsEnabled } from "openclaw/plugin-sdk/conversation-runtime";
|
package/dist/.setup/{thread-bindings.manager-CWJKirn1.mjs → thread-bindings.manager-CadGpkjc.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
-
import { N as createDiscordRestClient } from "./send.shared-
|
|
3
|
-
import { O as getChannel, q as withDiscordRequestAuthority, t as discord_exports, z as DiscordError } from "./discord-
|
|
2
|
+
import { N as createDiscordRestClient } from "./send.shared-BXWCIkfx.mjs";
|
|
3
|
+
import { O as getChannel, q as withDiscordRequestAuthority, t as discord_exports, z as DiscordError } from "./discord-KsHAulAQ.mjs";
|
|
4
4
|
import { w as isDiscordThreadChannelType } from "./allow-list-C3j0qLDp.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { _ as canFallbackDiscordWebhookSend } from "./send.receipt-DkCkAjRL.mjs";
|
|
6
6
|
import { n as resolveDiscordChannelId } from "./target-parsing-C-HyNxcE.mjs";
|
|
7
|
-
import { c as sendWebhookMessageDiscord, u as createThreadDiscord } from "./send-
|
|
8
|
-
import { t as sendMessageDiscord } from "./send.outbound-
|
|
9
|
-
import { A as resolveBindingRecordKey, C as forgetThreadBindingToken, D as refreshUnboundThreadWebhookIdentity, E as normalizeThreadBindingDurationMs, F as resolveThreadBindingMaxAgeMs, I as shouldDefaultPersist, L as toBindingRecordKey, M as resolveThreadBindingIdleTimeoutMs, O as rememberThreadBindingToken, R as toReusableWebhookKey, S as ensureBindingsLoadedAsync, T as normalizeTargetKind, _ as MANAGERS_BY_ACCOUNT_ID, b as THREAD_BINDING_TOUCH_PERSIST_MIN_INTERVAL_MS, c as drainThreadBindingAccountOperations, d as runThreadBindingAccountOperation, f as runThreadBindingMutation, g as BINDINGS_BY_THREAD_ID, h as updateBindingRecordSync, j as resolvePreparedThreadBindingLifecycle, k as resolveBindingIdsForSession, l as drainThreadBindingMutations, m as snapshotThreadBindingMetadata, p as shouldPersistAnyBindingState, s as commitBindingRecord, v as PERSIST_BY_ACCOUNT_ID, w as getThreadBindingToken, y as REUSABLE_WEBHOOKS_BY_ACCOUNT_CHANNEL } from "./thread-bindings.session-updates-
|
|
7
|
+
import { c as sendWebhookMessageDiscord, u as createThreadDiscord } from "./send-DXPqEgjA.mjs";
|
|
8
|
+
import { t as sendMessageDiscord } from "./send.outbound-70KlFdzN.mjs";
|
|
9
|
+
import { A as resolveBindingRecordKey, C as forgetThreadBindingToken, D as refreshUnboundThreadWebhookIdentity, E as normalizeThreadBindingDurationMs, F as resolveThreadBindingMaxAgeMs, I as shouldDefaultPersist, L as toBindingRecordKey, M as resolveThreadBindingIdleTimeoutMs, O as rememberThreadBindingToken, R as toReusableWebhookKey, S as ensureBindingsLoadedAsync, T as normalizeTargetKind, _ as MANAGERS_BY_ACCOUNT_ID, b as THREAD_BINDING_TOUCH_PERSIST_MIN_INTERVAL_MS, c as drainThreadBindingAccountOperations, d as runThreadBindingAccountOperation, f as runThreadBindingMutation, g as BINDINGS_BY_THREAD_ID, h as updateBindingRecordSync, j as resolvePreparedThreadBindingLifecycle, k as resolveBindingIdsForSession, l as drainThreadBindingMutations, m as snapshotThreadBindingMetadata, p as shouldPersistAnyBindingState, s as commitBindingRecord, v as PERSIST_BY_ACCOUNT_ID, w as getThreadBindingToken, y as REUSABLE_WEBHOOKS_BY_ACCOUNT_CHANNEL } from "./thread-bindings.session-updates-B4iJqhAn.mjs";
|
|
10
10
|
import { t as resolveDiscordChannelInfoSafe } from "./channel-access-9cyzozUP.mjs";
|
|
11
11
|
import { coerceErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
12
12
|
import { createSubsystemLogger, logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as stripUndefinedFields } from "./discord-
|
|
1
|
+
import { J as stripUndefinedFields } from "./discord-KsHAulAQ.mjs";
|
|
2
2
|
import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
|
|
3
3
|
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
4
4
|
import { normalizeAccountId, resolveAgentIdFromSessionKey } from "openclaw/plugin-sdk/routing";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
-
import { T as createThread, k as getChannelMessage, t as discord_exports } from "./discord-
|
|
3
|
-
import { d as resolveDiscordReplyDeliveryPlan, f as resolveDiscordReplyTarget, g as sanitizeDiscordThreadName, h as resolveDiscordThreadStarter, j as resolveDiscordMessageChannelId, m as resolveDiscordThreadParentInfo, p as resolveDiscordThreadChannel } from "./transcripts-source-
|
|
2
|
+
import { T as createThread, k as getChannelMessage, t as discord_exports } from "./discord-KsHAulAQ.mjs";
|
|
3
|
+
import { d as resolveDiscordReplyDeliveryPlan, f as resolveDiscordReplyTarget, g as sanitizeDiscordThreadName, h as resolveDiscordThreadStarter, j as resolveDiscordMessageChannelId, m as resolveDiscordThreadParentInfo, p as resolveDiscordThreadChannel } from "./transcripts-source-DUL7GRxU.mjs";
|
|
4
4
|
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
5
5
|
import { buildAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
6
6
|
import { normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as resolveDiscordAccount, o as listEnabledDiscordAccounts, u as resolveDiscordAccountAllowFrom } from "./accounts-C_25wyxC.mjs";
|
|
2
|
-
import { k as getChannelMessage, t as discord_exports, z as DiscordError } from "./discord-
|
|
2
|
+
import { k as getChannelMessage, t as discord_exports, z as DiscordError } from "./discord-KsHAulAQ.mjs";
|
|
3
3
|
import { f as resolveDiscordGuildEntry, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, r as isDiscordGroupAllowedByPolicy, t as allowListMatches, w as isDiscordThreadChannelType } from "./allow-list-C3j0qLDp.mjs";
|
|
4
4
|
import { i as resolveDiscordEndpointMediaGuard, n as getDiscordEndpointRuntime } from "./endpoint-runtime-lf4DeLas.mjs";
|
|
5
5
|
import { l as withAbortTimeout } from "./timeouts-cIxzatmv.mjs";
|