@openclaw/discord 2026.10.2 → 2026.10.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/account-inspect-8cCu6uPG.mjs +31 -0
- package/dist/.setup/{accounts-HE9-mj1L.mjs → accounts-ljrzXBJi.mjs} +47 -45
- package/dist/.setup/{allow-list-vxkG9_JD.mjs → allow-list-B_ToXtew.mjs} +34 -101
- package/dist/.setup/{api-DlNUkDqj.mjs → api-CtmE1OUN.mjs} +25 -31
- package/dist/.setup/{approval-handler.runtime-DmnEa54W.mjs → approval-handler.runtime-D7FoZSn0.mjs} +30 -53
- package/dist/.setup/{approval-message-updates-B0jdSqOj.mjs → approval-message-updates-CIGByUcE.mjs} +2 -2
- package/dist/.setup/{audit-BpikUwN_.mjs → audit-zSawfbsN.mjs} +5 -8
- package/dist/.setup/{channel-Dr-AUnGt.mjs → channel-DI7DMzu0.mjs} +136 -215
- package/dist/.setup/{channel-access-BRp3Y-rF.mjs → channel-access-DasWY_OV.mjs} +6 -7
- package/dist/.setup/{channel.setup-BmNvkidb.mjs → channel.setup-DdFVN1mr.mjs} +35 -64
- package/dist/.setup/{components-DLJR0xU-.mjs → components-HN9052L1.mjs} +123 -146
- package/dist/.setup/{config-schema-BQWfnSCx.mjs → config-schema-_uBILpQf.mjs} +7 -3
- package/dist/.setup/{conversation-binding-route-DicJC1Lj.mjs → conversation-binding-route-DTjCBx-O.mjs} +1 -1
- package/dist/.setup/{directory-config-gqsdcplU.mjs → directory-config-3iVub-3m.mjs} +1 -1
- package/dist/.setup/{directory-live-Bipr0eUJ.mjs → directory-live-DLygQVtW.mjs} +18 -22
- package/dist/.setup/{discord-9gysrhzp.mjs → discord-BGqgx-yd.mjs} +686 -854
- package/dist/.setup/{doctor-B2bskDcF.mjs → doctor-DSrNJ7m2.mjs} +36 -47
- package/dist/.setup/{doctor-contract-Bg3NPAMw.mjs → doctor-contract-Bwv8EuQ_.mjs} +7 -16
- package/dist/.setup/{handle-action-UmkjXBfo.mjs → handle-action-CXH1h1tq.mjs} +25 -38
- package/dist/.setup/{handle-action.guild-admin-CB4sc9VV.mjs → handle-action.guild-admin-CHKW6PIs.mjs} +25 -31
- package/dist/.setup/{live-policy-config-VxexfRKo.mjs → live-policy-config-BPoB3eQi.mjs} +1 -1
- package/dist/.setup/{message-handler-BK69A-NB.mjs → message-handler-Ii_etru1.mjs} +9 -14
- package/dist/.setup/{message-handler.preflight-DFpsh90H.mjs → message-handler.preflight-C7YuSRl_.mjs} +79 -128
- package/dist/.setup/{message-handler.preflight-pluralkit-BXGGVmpe.mjs → message-handler.preflight-pluralkit-C3iAG--b.mjs} +6 -6
- package/dist/.setup/{message-handler.process-TKoqcqIP.mjs → message-handler.process-ClgWYH6o.mjs} +234 -206
- package/dist/.setup/{outbound-adapter-D4wRAb5S.mjs → outbound-adapter-D8OOIuKn.mjs} +73 -112
- package/dist/.setup/{outbound-session-route-BvBH4LC6.mjs → outbound-session-route-B0Hpwn3Q.mjs} +57 -115
- package/dist/.setup/output-activity-uBpMSX75.mjs +11 -0
- package/dist/.setup/{pluralkit-a6_NLfH9.mjs → pluralkit-B64dfq_j.mjs} +3 -1
- package/dist/.setup/{preflight-audio-DHGIHEpv.mjs → preflight-audio-wWgsZG5F.mjs} +1 -5
- package/dist/.setup/{presence-cache-Dg3_dADn.mjs → presence-cache-DCeTsL73.mjs} +3 -6
- package/dist/.setup/{probe-BwSKpnZf.mjs → probe-D3P1x4aN.mjs} +10 -18
- package/dist/.setup/{provider-YP8gN9_o.mjs → provider-D9EzOfG8.mjs} +2990 -3903
- package/dist/.setup/{provider-session.runtime-D1gkPxHT.mjs → provider-session.runtime-CsnRvddI.mjs} +5 -5
- package/dist/.setup/provider.runtime-BQVcM7Pg.mjs +2 -0
- package/dist/.setup/{realtime-session.runtime-BKUQBy1u.mjs → realtime-session.runtime-CxGBk8H-.mjs} +69 -98
- package/dist/.setup/{receive-recovery-DgkX7Qvi.mjs → receive-recovery-eVmK2_hl.mjs} +2 -12
- package/dist/.setup/resolve-allowlist-common-DNSsUQRF.mjs +66 -0
- package/dist/.setup/resolve-channels-UdT38DzU.mjs +173 -0
- package/dist/.setup/{resolve-users-DNrwvunm.mjs → resolve-users-DnCsrXZ_.mjs} +12 -41
- package/dist/.setup/{runtime-CESTexGn.mjs → runtime-CRTkKU1G.mjs} +202 -313
- package/dist/.setup/{runtime-DPcmPST9.mjs → runtime-DPm3gZXk.mjs} +2 -2
- package/dist/.setup/{secret-config-contract-uOE2J7yM.mjs → secret-config-contract-CIsH7R3B.mjs} +9 -18
- package/dist/.setup/{security-audit-D42cp5N7.mjs → security-audit-BFT84Uny.mjs} +1 -2
- package/dist/.setup/security-contract-DNyyjTZZ.mjs +19 -0
- package/dist/.setup/{send-CJk3VP5q.mjs → send-DbILKgcm.mjs} +184 -241
- package/dist/.setup/{send.components-dPljuV24.mjs → send.components-FxOS3CeP.mjs} +47 -63
- package/dist/.setup/{send.outbound-rOboMO_6.mjs → send.outbound-_jx4Xpd3.mjs} +178 -202
- package/dist/.setup/{send.receipt-DVOg2Oaw.mjs → send.receipt-BAlzXd8e.mjs} +33 -109
- package/dist/.setup/{send.shared-C4CN24D9.mjs → send.shared-CjQ4jbMA.mjs} +97 -153
- package/dist/.setup/{sender-identity-AHpUNr72.mjs → sender-identity-BNBvGt1l.mjs} +1 -1
- package/dist/.setup/setup-plugin-api-xfOFmxHP.mjs +3 -0
- package/dist/.setup/{shared-BoBnM5kM.mjs → shared-CestGDpq.mjs} +30 -20
- package/dist/.setup/{subagent-hooks-HH8Uy9cx.mjs → subagent-hooks-CME7dSGf.mjs} +5 -10
- package/dist/.setup/{system-events-Cwxaww8i.mjs → system-events-BwwSDCw4.mjs} +2 -2
- package/dist/.setup/target-parsing-C-HyNxcE.mjs +48 -0
- package/dist/.setup/{target-resolver-CSFoPQ12.mjs → target-resolver-Bse8fuTi.mjs} +11 -27
- package/dist/.setup/targets-DZJjkzwv.mjs +3 -0
- package/dist/.setup/{thread-bindings-DjQCkmsd.mjs → thread-bindings-0hPTSK14.mjs} +61 -52
- package/dist/.setup/{thread-bindings.manager-D2-GYZ5s.mjs → thread-bindings.manager-CdNa6UIs.mjs} +138 -211
- package/dist/.setup/{thread-bindings.session-updates-Bu_CGr_O.mjs → thread-bindings.session-updates-DGSljVf6.mjs} +60 -99
- package/dist/.setup/threading-BKe3E3tp.mjs +246 -0
- package/dist/.setup/{timeouts-pun7VJ02.mjs → timeouts-CuNARfyw.mjs} +10 -18
- package/dist/.setup/{transcripts-source-CaZQnGRH.mjs → transcripts-source-0qQYVu2H.mjs} +50 -368
- package/dist/.setup/{voice-runtime-DDymtIw8.mjs → voice-runtime-QlZJ4sHv.mjs} +166 -322
- package/dist/account-inspect-api.js +1 -1
- package/dist/action-runtime-api.js +1 -1
- package/dist/activities-api.js +77 -120
- package/dist/api.js +19 -18
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/runtime-api.js +21 -20
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-audit-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/src/voice/audio-worker.runtime.js +38 -57
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/transcripts-source-api.js +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/@types/ws/README.md +1 -1
- package/node_modules/@types/ws/index.d.mts +4 -0
- package/node_modules/@types/ws/index.d.ts +4 -0
- package/node_modules/@types/ws/package.json +3 -3
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts +21 -0
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map +1 -1
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts +21 -0
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map +1 -1
- package/node_modules/discord-api-types/globals.d.ts +6 -0
- package/node_modules/discord-api-types/globals.d.ts.map +1 -1
- package/node_modules/discord-api-types/globals.js +6 -0
- package/node_modules/discord-api-types/globals.js.map +1 -1
- package/node_modules/discord-api-types/package.json +3 -3
- package/node_modules/discord-api-types/payloads/index.mjs +1 -0
- package/node_modules/discord-api-types/payloads/v10/applicationIdentityProfile.d.ts +207 -0
- package/node_modules/discord-api-types/payloads/v10/applicationIdentityProfile.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/applicationIdentityProfile.js +25 -0
- package/node_modules/discord-api-types/payloads/v10/applicationIdentityProfile.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts +1 -1
- package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/guild.d.ts +27 -23
- package/node_modules/discord-api-types/payloads/v10/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/guild.js +26 -22
- package/node_modules/discord-api-types/payloads/v10/guild.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/index.d.ts +1 -0
- package/node_modules/discord-api-types/payloads/v10/index.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/index.js +1 -0
- package/node_modules/discord-api-types/payloads/v10/index.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/index.mjs +1 -0
- package/node_modules/discord-api-types/payloads/v9/applicationIdentityProfile.d.ts +207 -0
- package/node_modules/discord-api-types/payloads/v9/applicationIdentityProfile.d.ts.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/applicationIdentityProfile.js +25 -0
- package/node_modules/discord-api-types/payloads/v9/applicationIdentityProfile.js.map +1 -0
- package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts +1 -1
- package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/guild.d.ts +27 -23
- package/node_modules/discord-api-types/payloads/v9/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/guild.js +26 -22
- package/node_modules/discord-api-types/payloads/v9/guild.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/index.d.ts +1 -0
- package/node_modules/discord-api-types/payloads/v9/index.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/index.js +1 -0
- package/node_modules/discord-api-types/payloads/v9/index.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/index.mjs +1 -0
- package/node_modules/discord-api-types/rest/common.d.ts +2 -0
- package/node_modules/discord-api-types/rest/common.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/common.js +2 -0
- package/node_modules/discord-api-types/rest/common.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/applicationIdentityProfile.d.ts +70 -0
- package/node_modules/discord-api-types/rest/v10/applicationIdentityProfile.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v10/applicationIdentityProfile.js +3 -0
- package/node_modules/discord-api-types/rest/v10/applicationIdentityProfile.js.map +1 -0
- package/node_modules/discord-api-types/rest/v10/index.d.ts +1 -0
- package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/index.js +29 -0
- package/node_modules/discord-api-types/rest/v10/index.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts +4 -2
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/user.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v10/user.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/applicationIdentityProfile.d.ts +70 -0
- package/node_modules/discord-api-types/rest/v9/applicationIdentityProfile.d.ts.map +1 -0
- package/node_modules/discord-api-types/rest/v9/applicationIdentityProfile.js +3 -0
- package/node_modules/discord-api-types/rest/v9/applicationIdentityProfile.js.map +1 -0
- package/node_modules/discord-api-types/rest/v9/index.d.ts +1 -0
- package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/index.js +29 -0
- package/node_modules/discord-api-types/rest/v9/index.js.map +1 -1
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts +4 -2
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/user.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v9/user.d.ts.map +1 -1
- package/node_modules/discord-api-types/v10.mjs +1 -0
- package/node_modules/discord-api-types/v9.mjs +1 -0
- package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -1
- package/node_modules/micromark/dev/lib/compile.js +14 -4
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -1
- package/node_modules/micromark/dev/lib/create-tokenizer.js +7 -6
- package/node_modules/micromark/dev/lib/initialize/document.js +25 -21
- package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -1
- package/node_modules/micromark/dev/lib/initialize/text.js +10 -6
- package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -1
- package/node_modules/micromark/dev/lib/preprocess.js +19 -21
- package/node_modules/micromark/lib/compile.d.ts.map +1 -1
- package/node_modules/micromark/lib/compile.js +37 -29
- package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -1
- package/node_modules/micromark/lib/create-tokenizer.js +37 -35
- package/node_modules/micromark/lib/initialize/document.js +21 -13
- package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -1
- package/node_modules/micromark/lib/initialize/text.js +7 -3
- package/node_modules/micromark/lib/preprocess.d.ts.map +1 -1
- package/node_modules/micromark/lib/preprocess.js +16 -19
- package/node_modules/micromark/package.json +2 -15
- package/node_modules/micromark-core-commonmark/dev/lib/attention.js +18 -24
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +1 -43
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +19 -43
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +2 -6
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +2 -53
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +14 -12
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +14 -5
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +14 -5
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +8 -5
- package/node_modules/micromark-core-commonmark/lib/attention.js +14 -24
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/lib/code-fenced.js +1 -39
- package/node_modules/micromark-core-commonmark/lib/code-indented.js +11 -29
- package/node_modules/micromark-core-commonmark/lib/heading-atx.js +2 -6
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/lib/html-flow.js +2 -51
- package/node_modules/micromark-core-commonmark/lib/label-end.js +11 -10
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/lib/label-start-image.js +11 -3
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/lib/label-start-link.js +11 -3
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -1
- package/node_modules/micromark-core-commonmark/lib/setext-underline.js +7 -5
- package/node_modules/micromark-core-commonmark/package.json +4 -16
- package/node_modules/micromark-factory-space/dev/index.d.ts +24 -1
- package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -1
- package/node_modules/micromark-factory-space/dev/index.js +58 -3
- package/node_modules/micromark-factory-space/index.d.ts +24 -1
- package/node_modules/micromark-factory-space/index.d.ts.map +1 -1
- package/node_modules/micromark-factory-space/index.js +55 -3
- package/node_modules/micromark-factory-space/package.json +1 -10
- package/node_modules/micromark-factory-space/readme.md +25 -25
- package/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
- package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-edit-map/dev/index.js +237 -0
- package/node_modules/micromark-util-edit-map/index.d.ts +78 -0
- package/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
- package/node_modules/micromark-util-edit-map/index.js +225 -0
- package/node_modules/micromark-util-edit-map/license +22 -0
- package/node_modules/micromark-util-edit-map/package.json +48 -0
- package/node_modules/micromark-util-edit-map/readme.md +234 -0
- package/node_modules/micromark-util-types/index.d.ts +6 -3
- package/node_modules/micromark-util-types/package.json +2 -36
- package/node_modules/ws/lib/websocket.js +17 -3
- package/node_modules/ws/package.json +1 -1
- package/openclaw.plugin.json +3 -6
- package/package.json +7 -12
- package/dist/.setup/account-inspect-DsER5ILV.mjs +0 -45
- package/dist/.setup/provider.runtime-CZ51OIgD.mjs +0 -2
- package/dist/.setup/resolve-allowlist-common-BUyU3C-T.mjs +0 -27
- package/dist/.setup/resolve-channels-DA6QlhZN.mjs +0 -246
- package/dist/.setup/security-contract-DSHk7I2w.mjs +0 -26
- package/dist/.setup/setup-plugin-api-BVlCz3fm.mjs +0 -3
- package/dist/.setup/targets-bqXQENmX.mjs +0 -3
- package/dist/control-ui/2afbdab1d3aa65a789d8a3eba666f4b1ec5df07073538fe30d6cf32093a1fb2d/index.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as resolveDiscordSystemLocation, S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, w as resolveTimestampMs } from "./allow-list-
|
|
3
|
-
import {
|
|
4
|
-
import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-
|
|
5
|
-
import { _ as resolveDiscordRuntimeBindingConversationId, f as resolveDiscordConversationRoute, h as resolveDiscordConversationIdentity, p as resolveDiscordEffectiveRoute, u as buildDiscordRoutePeer } from "./outbound-session-route-
|
|
6
|
-
import { t as resolveDiscordConversationBindingRoute } from "./conversation-binding-route-
|
|
7
|
-
import { n as resolveDiscordChannelInfoSafe, r as resolveDiscordChannelNameSafe } from "./channel-access-
|
|
8
|
-
import { A as resolveDiscordDmCommandAccess, E as handleDiscordDmCommandDecision, j as resolveDiscordTextCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-
|
|
9
|
-
import { A as
|
|
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, m as shouldIgnoreBoundThreadWebhookMessage, n as loadDiscordThreadingRuntime, p as resolveInjectedBoundThreadLookupRecord, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-
|
|
1
|
+
import { c as resolveDefaultDiscordAccountId } from "./accounts-ljrzXBJi.mjs";
|
|
2
|
+
import { C as resolveDiscordSystemLocation, S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, w as resolveTimestampMs } from "./allow-list-B_ToXtew.mjs";
|
|
3
|
+
import { Z as Message, ft as getChannelMessage, t as discord_exports } from "./discord-BGqgx-yd.mjs";
|
|
4
|
+
import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-CuNARfyw.mjs";
|
|
5
|
+
import { _ as resolveDiscordRuntimeBindingConversationId, f as resolveDiscordConversationRoute, h as resolveDiscordConversationIdentity, p as resolveDiscordEffectiveRoute, u as buildDiscordRoutePeer } from "./outbound-session-route-B0Hpwn3Q.mjs";
|
|
6
|
+
import { t as resolveDiscordConversationBindingRoute } from "./conversation-binding-route-DTjCBx-O.mjs";
|
|
7
|
+
import { n as resolveDiscordChannelInfoSafe, r as resolveDiscordChannelNameSafe } from "./channel-access-DasWY_OV.mjs";
|
|
8
|
+
import { A as resolveDiscordDmCommandAccess, E as handleDiscordDmCommandDecision, j as resolveDiscordTextCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-D9EzOfG8.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-0qQYVu2H.mjs";
|
|
10
|
+
import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-BNBvGt1l.mjs";
|
|
11
|
+
import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, m as shouldIgnoreBoundThreadWebhookMessage, n as loadDiscordThreadingRuntime, p as resolveInjectedBoundThreadLookupRecord, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-C3iAG--b.mjs";
|
|
12
12
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
13
13
|
import { getChildLogger, logVerbose, shouldLogVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
14
14
|
import { MessageReferenceType, MessageType } from "discord-api-types/v10";
|
|
@@ -26,7 +26,7 @@ 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-DbILKgcm.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)");
|
|
@@ -189,7 +189,6 @@ function resolveDiscordPreflightChannelContext(params) {
|
|
|
189
189
|
const displayChannelSlug = displayChannelName ? normalizeDiscordDisplaySlug(displayChannelName) : "";
|
|
190
190
|
const guildSlug = params.guildInfo?.slug || (params.guildName ? normalizeDiscordSlug(params.guildName) : "");
|
|
191
191
|
const threadChannelSlug = params.channelName ? normalizeDiscordSlug(params.channelName) : "";
|
|
192
|
-
const threadParentSlug = params.threadParentName ? normalizeDiscordSlug(params.threadParentName) : "";
|
|
193
192
|
return {
|
|
194
193
|
threadName,
|
|
195
194
|
displayChannelName,
|
|
@@ -202,7 +201,6 @@ function resolveDiscordPreflightChannelContext(params) {
|
|
|
202
201
|
channelSlug: threadChannelSlug,
|
|
203
202
|
parentId: params.threadParentId,
|
|
204
203
|
parentName: params.threadParentName,
|
|
205
|
-
parentSlug: threadParentSlug,
|
|
206
204
|
scope: params.threadChannel ? "thread" : "channel"
|
|
207
205
|
}) : null
|
|
208
206
|
};
|
|
@@ -217,10 +215,7 @@ function buildDiscordPreflightHistoryEntry(params) {
|
|
|
217
215
|
timestamp: resolveTimestampMs(params.message.timestamp),
|
|
218
216
|
messageId: params.message.id,
|
|
219
217
|
mediaIds: resolveDiscordHistoryMediaIds(params.message),
|
|
220
|
-
senderProvenance: createDiscordHistorySenderProvenance(
|
|
221
|
-
sender: params.sender,
|
|
222
|
-
memberRoleIds: params.memberRoleIds
|
|
223
|
-
})
|
|
218
|
+
senderProvenance: createDiscordHistorySenderProvenance(params)
|
|
224
219
|
} : void 0;
|
|
225
220
|
}
|
|
226
221
|
//#endregion
|
|
@@ -238,12 +233,7 @@ function logDiscordPreflightInboundSummary(params) {
|
|
|
238
233
|
//#region extensions/discord/src/monitor/message-handler.preflight-thread.ts
|
|
239
234
|
async function resolveDiscordPreflightThreadContext(params) {
|
|
240
235
|
const { resolveDiscordThreadChannel, resolveDiscordThreadParentInfo } = await loadDiscordThreadingRuntime();
|
|
241
|
-
const earlyThreadChannel = resolveDiscordThreadChannel(
|
|
242
|
-
isGuildMessage: params.isGuildMessage,
|
|
243
|
-
message: params.message,
|
|
244
|
-
channelInfo: params.channelInfo,
|
|
245
|
-
messageChannelId: params.messageChannelId
|
|
246
|
-
});
|
|
236
|
+
const earlyThreadChannel = resolveDiscordThreadChannel(params);
|
|
247
237
|
if (!earlyThreadChannel) return { earlyThreadChannel: null };
|
|
248
238
|
const parentInfo = await resolveDiscordThreadParentInfo({
|
|
249
239
|
client: params.client,
|
|
@@ -291,9 +281,8 @@ async function resolveDiscordPreflightRoute(params) {
|
|
|
291
281
|
configuredConversationId: params.messageChannelId,
|
|
292
282
|
parentConversationId: params.earlyThreadParentId
|
|
293
283
|
});
|
|
294
|
-
let threadBinding = runtimeRoute.bindingRecord ?? void 0;
|
|
295
284
|
const configuredBinding = configuredRoute?.bindingResolution ?? null;
|
|
296
|
-
|
|
285
|
+
const threadBinding = runtimeRoute.bindingRecord ?? configuredBinding?.record;
|
|
297
286
|
const boundSessionKey = conversationRuntime.isPluginOwnedSessionBindingRecord(threadBinding) ? "" : runtimeRoute.boundSessionKey ?? threadBinding?.targetSessionKey?.trim();
|
|
298
287
|
const effectiveRoute = runtimeRoute.boundSessionKey ? runtimeRoute.route : resolveDiscordEffectiveRoute({
|
|
299
288
|
route: configuredRoute?.route ?? runtimeRoute.route,
|
|
@@ -317,13 +306,6 @@ const DISCORD_HISTORY_MEDIA_MAX_ATTACHMENTS = 4;
|
|
|
317
306
|
const DISCORD_HISTORY_MEDIA_MAX_BYTES = 10485760;
|
|
318
307
|
const DISCORD_HISTORY_MEDIA_IDLE_TIMEOUT_MS = 1e3;
|
|
319
308
|
const DISCORD_HISTORY_MEDIA_TOTAL_TIMEOUT_MS = 3e3;
|
|
320
|
-
function resolveDiscordPreflightConversationKind(params) {
|
|
321
|
-
const isGroupDm = params.channelType === discord_exports.ChannelType.GroupDM;
|
|
322
|
-
return {
|
|
323
|
-
isDirectMessage: params.channelType === discord_exports.ChannelType.DM || !params.isGuildMessage && !isGroupDm && params.channelType == null,
|
|
324
|
-
isGroupDm
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
309
|
function isDiscordImageAttachmentCandidate(attachment) {
|
|
328
310
|
if ((attachment.content_type?.split(";")[0]?.trim().toLowerCase())?.startsWith("image/")) return true;
|
|
329
311
|
return Boolean(mimeTypeFromFilePath(attachment.filename)?.startsWith("image/") || mimeTypeFromFilePath(attachment.url)?.startsWith("image/"));
|
|
@@ -370,21 +352,6 @@ async function resolveDiscordHistoryMediaForPendingRecord(params) {
|
|
|
370
352
|
messageId: media.messageId
|
|
371
353
|
}));
|
|
372
354
|
}
|
|
373
|
-
async function recordDiscordPendingHistoryEntry(params) {
|
|
374
|
-
if (!params.entry || params.preflight.historyLimit <= 0) return;
|
|
375
|
-
await createChannelHistoryWindow({ historyMap: params.preflight.guildHistories }).recordWithMedia({
|
|
376
|
-
historyKey: params.historyKey,
|
|
377
|
-
entry: params.entry,
|
|
378
|
-
limit: params.preflight.historyLimit,
|
|
379
|
-
mediaLimit: DISCORD_HISTORY_MEDIA_MAX_ATTACHMENTS,
|
|
380
|
-
messageId: params.message.id,
|
|
381
|
-
shouldRecord: () => !params.preflight.abortSignal?.aborted && params.preflight.isPolicyCurrent?.() !== false,
|
|
382
|
-
media: async () => toHistoryMediaEntries(await resolveDiscordHistoryMediaForPendingRecord({
|
|
383
|
-
preflight: params.preflight,
|
|
384
|
-
message: params.message
|
|
385
|
-
}), { messageId: params.message.id })
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
355
|
async function preflightDiscordMessage(params) {
|
|
389
356
|
if (params.abortSignal?.aborted || params.isPolicyCurrent?.() === false) return null;
|
|
390
357
|
const logger = getChildLogger({ module: "discord-auto-reply" });
|
|
@@ -427,35 +394,34 @@ async function preflightDiscordMessage(params) {
|
|
|
427
394
|
const isGuildMessage = Boolean(params.data.guild_id);
|
|
428
395
|
const channelInfo = await resolveDiscordChannelInfo(params.client, messageChannelId);
|
|
429
396
|
if (params.abortSignal?.aborted || params.isPolicyCurrent?.() === false) return null;
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
channelType: channelInfo?.type
|
|
433
|
-
});
|
|
397
|
+
const isGroupDm = channelInfo?.type === discord_exports.ChannelType.GroupDM;
|
|
398
|
+
const isDirectMessage = channelInfo?.type === discord_exports.ChannelType.DM || !isGuildMessage && !isGroupDm && channelInfo?.type == null;
|
|
434
399
|
const messageText = resolveDiscordMessageText(message, { includeForwarded: true });
|
|
435
400
|
const injectedBoundThreadBinding = !isDirectMessage && !isGroupDm && (webhookId || author.bot) ? resolveInjectedBoundThreadLookupRecord({
|
|
436
401
|
threadBindings: params.threadBindings,
|
|
437
402
|
threadId: messageChannelId
|
|
438
403
|
}) : void 0;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
})
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
404
|
+
const ignoreBoundThreadMessage = (threadBinding, isBoundThreadSession) => {
|
|
405
|
+
let reason;
|
|
406
|
+
if (shouldIgnoreBoundThreadWebhookMessage({
|
|
407
|
+
threadId: messageChannelId,
|
|
408
|
+
webhookId,
|
|
409
|
+
threadBinding
|
|
410
|
+
})) reason = "webhook echo";
|
|
411
|
+
else if (isBoundThreadBotSystemMessage({
|
|
412
|
+
isBoundThreadSession: isBoundThreadSession(),
|
|
413
|
+
isBotAuthor: Boolean(author.bot),
|
|
414
|
+
text: messageText
|
|
415
|
+
})) reason = "bot system";
|
|
416
|
+
else return false;
|
|
417
|
+
logVerbose(`discord: drop bound-thread ${reason} message ${message.id}`);
|
|
418
|
+
return true;
|
|
419
|
+
};
|
|
420
|
+
if (ignoreBoundThreadMessage(injectedBoundThreadBinding, () => Boolean(injectedBoundThreadBinding) && isDiscordThreadChannelMessage({
|
|
421
|
+
isGuildMessage,
|
|
422
|
+
message,
|
|
423
|
+
channelInfo
|
|
424
|
+
}))) return null;
|
|
459
425
|
const pluralkitInfo = await resolveDiscordPreflightPluralKitInfo({
|
|
460
426
|
message,
|
|
461
427
|
webhookId,
|
|
@@ -468,11 +434,9 @@ async function preflightDiscordMessage(params) {
|
|
|
468
434
|
member: params.data.member,
|
|
469
435
|
pluralkitInfo
|
|
470
436
|
});
|
|
471
|
-
if (author.bot) {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
return null;
|
|
475
|
-
}
|
|
437
|
+
if (author.bot && allowBotsMode === "off" && !sender.isPluralKit) {
|
|
438
|
+
logVerbose("discord: drop bot message (allowBots=false)");
|
|
439
|
+
return null;
|
|
476
440
|
}
|
|
477
441
|
const data = message === params.data.message ? params.data : {
|
|
478
442
|
...params.data,
|
|
@@ -537,23 +501,8 @@ async function preflightDiscordMessage(params) {
|
|
|
537
501
|
});
|
|
538
502
|
if (params.isPolicyCurrent?.() === false) return null;
|
|
539
503
|
const { conversationRuntime, threadBinding, configuredBinding, boundSessionKey, effectiveRoute, boundAgentId, baseSessionKey } = routeState;
|
|
540
|
-
if (shouldIgnoreBoundThreadWebhookMessage({
|
|
541
|
-
threadId: messageChannelId,
|
|
542
|
-
webhookId,
|
|
543
|
-
threadBinding
|
|
544
|
-
})) {
|
|
545
|
-
logVerbose(`discord: drop bound-thread webhook echo message ${message.id}`);
|
|
546
|
-
return null;
|
|
547
|
-
}
|
|
548
504
|
const isBoundThreadSession = Boolean(threadBinding && threadChannel);
|
|
549
|
-
if (
|
|
550
|
-
isBoundThreadSession,
|
|
551
|
-
isBotAuthor: Boolean(author.bot),
|
|
552
|
-
text: messageText
|
|
553
|
-
})) {
|
|
554
|
-
logVerbose(`discord: drop bound-thread bot system message ${message.id}`);
|
|
555
|
-
return null;
|
|
556
|
-
}
|
|
505
|
+
if (ignoreBoundThreadMessage(threadBinding, () => isBoundThreadSession)) return null;
|
|
557
506
|
const mentionRegexes = buildMentionRegexes(params.cfg, effectiveRoute.agentId, {
|
|
558
507
|
provider: "discord",
|
|
559
508
|
conversationId: messageChannelId,
|
|
@@ -571,8 +520,8 @@ async function preflightDiscordMessage(params) {
|
|
|
571
520
|
};
|
|
572
521
|
});
|
|
573
522
|
const explicitlyMentioned = mentionSources.some((source) => source.explicitlyMentioned);
|
|
574
|
-
const hasAnyMention = !isDirectMessage && ((message.mentionedUsers?.length ?? 0) > 0 || (message.mentionedRoles?.length ?? 0) > 0 || message.mentionedEveryone && (!author.bot || sender.isPluralKit));
|
|
575
523
|
const hasUserOrRoleMention = !isDirectMessage && ((message.mentionedUsers?.length ?? 0) > 0 || (message.mentionedRoles?.length ?? 0) > 0);
|
|
524
|
+
const hasAnyMention = hasUserOrRoleMention || !isDirectMessage && message.mentionedEveryone && (!author.bot || sender.isPluralKit);
|
|
576
525
|
if (isGuildMessage && (message.type === discord_exports.MessageType.ChatInputCommand || message.type === discord_exports.MessageType.ContextMenuCommand)) {
|
|
577
526
|
logVerbose("discord: drop channel command message");
|
|
578
527
|
return null;
|
|
@@ -624,6 +573,21 @@ async function preflightDiscordMessage(params) {
|
|
|
624
573
|
sender,
|
|
625
574
|
memberRoleIds
|
|
626
575
|
});
|
|
576
|
+
const recordPendingHistoryEntry = async () => {
|
|
577
|
+
if (!historyEntry || params.historyLimit <= 0) return;
|
|
578
|
+
await createChannelHistoryWindow({ historyMap: params.guildHistories }).recordWithMedia({
|
|
579
|
+
historyKey: messageChannelId,
|
|
580
|
+
entry: historyEntry,
|
|
581
|
+
limit: params.historyLimit,
|
|
582
|
+
mediaLimit: DISCORD_HISTORY_MEDIA_MAX_ATTACHMENTS,
|
|
583
|
+
messageId: message.id,
|
|
584
|
+
shouldRecord: () => !params.abortSignal?.aborted && params.isPolicyCurrent?.() !== false,
|
|
585
|
+
media: async () => toHistoryMediaEntries(await resolveDiscordHistoryMediaForPendingRecord({
|
|
586
|
+
preflight: params,
|
|
587
|
+
message
|
|
588
|
+
}), { messageId: message.id })
|
|
589
|
+
});
|
|
590
|
+
};
|
|
627
591
|
const mentionPolicy = resolveDiscordMentionPolicy({
|
|
628
592
|
isGuildMessage,
|
|
629
593
|
isThread: Boolean(threadChannel),
|
|
@@ -765,22 +729,15 @@ async function preflightDiscordMessage(params) {
|
|
|
765
729
|
hasAbortRequest
|
|
766
730
|
});
|
|
767
731
|
logDebug(`[discord-preflight] shouldRequireMention=${shouldRequireMention} baseRequireMention=${shouldRequireMentionByConfig} boundThreadSession=${isBoundThreadSession} mentionDecision.shouldSkip=${mentionDecision.shouldSkip} wasMentioned=${wasMentioned}`);
|
|
768
|
-
if (isGuildMessage && shouldRequireMention) {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
preflight: params,
|
|
778
|
-
historyKey: messageChannelId,
|
|
779
|
-
message,
|
|
780
|
-
entry: historyEntry
|
|
781
|
-
});
|
|
782
|
-
return null;
|
|
783
|
-
}
|
|
732
|
+
if (isGuildMessage && shouldRequireMention && mentionDecision.shouldSkip) {
|
|
733
|
+
logDebug(`[discord-preflight] drop: no-mention`);
|
|
734
|
+
logVerbose(`discord: drop guild message (mention required, botId=${botId ?? "<missing>"})`);
|
|
735
|
+
logger.info({
|
|
736
|
+
channelId: messageChannelId,
|
|
737
|
+
reason: "no-mention"
|
|
738
|
+
}, "discord: skipping guild message");
|
|
739
|
+
await recordPendingHistoryEntry();
|
|
740
|
+
return null;
|
|
784
741
|
}
|
|
785
742
|
if (requiresActiveBotMention) {
|
|
786
743
|
if (!(isDirectMessage || hasActiveBotMention || mentionDecision.matchedImplicitMentionKinds.some((kind) => kind !== "reply_to_bot"))) {
|
|
@@ -797,12 +754,7 @@ async function preflightDiscordMessage(params) {
|
|
|
797
754
|
if (isGuildMessage && ignoreOtherMentions && (hasUserOrRoleMention || replyTargetsOtherBot) && !wasMentioned && !mentionDecision.implicitMention) {
|
|
798
755
|
logDebug(`[discord-preflight] drop: addressed-to-other`);
|
|
799
756
|
logVerbose(`discord: drop guild message (addressed to another identity, ignoreOtherMentions=true, botId=${botId})`);
|
|
800
|
-
await
|
|
801
|
-
preflight: params,
|
|
802
|
-
historyKey: messageChannelId,
|
|
803
|
-
message,
|
|
804
|
-
entry: historyEntry
|
|
805
|
-
});
|
|
757
|
+
await recordPendingHistoryEntry();
|
|
806
758
|
return null;
|
|
807
759
|
}
|
|
808
760
|
const systemLocation = resolveDiscordSystemLocation({
|
|
@@ -836,18 +788,17 @@ async function preflightDiscordMessage(params) {
|
|
|
836
788
|
return null;
|
|
837
789
|
}
|
|
838
790
|
}
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
const botLoopResult = recordChannelBotPairLoopAndCheckSuppression(botLoopProtection);
|
|
791
|
+
if (author.bot && !sender.isPluralKit && allowBotsMode !== "off" && params.botUserId && author.id !== params.botUserId) {
|
|
792
|
+
const botLoopResult = recordChannelBotPairLoopAndCheckSuppression({
|
|
793
|
+
scopeId: params.accountId,
|
|
794
|
+
conversationId: messageChannelId,
|
|
795
|
+
senderId: author.id,
|
|
796
|
+
receiverId: params.botUserId,
|
|
797
|
+
config: params.discordConfig?.botLoopProtection,
|
|
798
|
+
defaultsConfig: params.cfg.channels?.defaults?.botLoopProtection,
|
|
799
|
+
defaultEnabled: true,
|
|
800
|
+
nowMs: resolveTimestampMs(message.timestamp)
|
|
801
|
+
});
|
|
851
802
|
if (botLoopResult.suppressed) {
|
|
852
803
|
logVerbose(`discord: bot-to-bot loop detected before media download, suppressing for ${Math.max(0, Math.ceil((botLoopResult.cooldownUntilMs - Date.now()) / 1e3))}s`);
|
|
853
804
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as isDiscordThreadChannelType } from "./allow-list-
|
|
2
|
-
import {
|
|
1
|
+
import { A as isDiscordThreadChannelType } from "./allow-list-B_ToXtew.mjs";
|
|
2
|
+
import { D as resolveDiscordMessageStickers } from "./transcripts-source-0qQYVu2H.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";
|
|
@@ -113,10 +113,10 @@ function resolveDiscordHistoryMediaIds(message) {
|
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region extensions/discord/src/monitor/message-handler.preflight-runtime.ts
|
|
116
|
-
const loadPluralKitRuntime = createLazyRuntimeModule(() => import("./pluralkit-
|
|
117
|
-
const loadPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio-
|
|
118
|
-
const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-
|
|
119
|
-
const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./
|
|
116
|
+
const loadPluralKitRuntime = createLazyRuntimeModule(() => import("./pluralkit-B64dfq_j.mjs").then((n) => n.n));
|
|
117
|
+
const loadPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio-wWgsZG5F.mjs"));
|
|
118
|
+
const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-BwwSDCw4.mjs"));
|
|
119
|
+
const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-BKe3E3tp.mjs").then((n) => n.t));
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region extensions/discord/src/monitor/message-handler.preflight-pluralkit.ts
|
|
122
122
|
async function resolveDiscordPreflightPluralKitInfo(params) {
|