@openclaw/discord 2026.7.1-beta.2 → 2026.7.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-runtime-api.js +1 -1
- package/dist/{api-CJvEMuA6.js → api-DPRqYi4Z.js} +2 -1
- package/dist/api.js +14 -14
- package/dist/{approval-handler.runtime-Cg7CuLSc.js → approval-handler.runtime-Bw2pZNk1.js} +24 -4
- package/dist/{audit-BCVhE9Oe.js → audit-MLpDpN3Z.js} +3 -3
- package/dist/{channel-actions-DJ_i4v9b.js → channel-actions-D_fjVUZ_.js} +5 -5
- package/dist/{channel-actions.runtime-BDW12z0o.js → channel-actions.runtime-CVHlFqQg.js} +5 -5
- package/dist/channel-config-api.js +1 -1
- package/dist/{channel-CfngVOjW.js → channel-kBTCV_g9.js} +26 -26
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-BYZ78cmU.js → channel.setup-tZcpIn4e.js} +3 -3
- package/dist/{components-CBPNJhVP.js → components-BIBizbtZ.js} +10 -6
- package/dist/{config-schema-spuxW477.js → config-schema-BgIhO3ko.js} +1 -1
- package/dist/{conversation-identity-CnYbx3sO.js → conversation-identity-DWC5d8Sy.js} +2 -2
- package/dist/{directory-config-CouAqvDj.js → directory-config-ByaUKL1f.js} +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-C8lwwDJo.js → directory-live-BX79ImQA.js} +2 -2
- package/dist/{doctor-CKIw8urm.js → doctor-Bgoxm5AN.js} +1 -1
- package/dist/{handle-action.guild-admin-CHMDXefq.js → handle-action.guild-admin-CgJSNVui.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{manager.runtime-BkMOU8kh.js → manager.runtime-D-ZJn56X.js} +28 -15
- package/dist/{message-handler-B2cEpj5S.js → message-handler-DbrX-sHg.js} +11 -8
- package/dist/{message-handler.preflight-B93Az6zg.js → message-handler.preflight-Dd-xQ-qv.js} +34 -14
- package/dist/{message-handler.process-CW5mMw4o.js → message-handler.process-CV1GmuBj.js} +29 -84
- package/dist/{message-utils-Dy9KeClm.js → message-utils-B_3yA5bN.js} +11 -6
- package/dist/{outbound-adapter-n_qRwyHZ.js → outbound-adapter-82RWi_SR.js} +138 -152
- package/dist/{pluralkit-DaWTJTmF.js → pluralkit-DcD-3EcL.js} +1 -1
- package/dist/{preflight-audio-DecwnhEA.js → preflight-audio-DYL2ABgA.js} +1 -1
- package/dist/presence-cache-z1N8MbJ3.js +45 -0
- package/dist/{probe-Bkf8mJlj.js → probe-D1ImJEo2.js} +2 -2
- package/dist/{probe.runtime-3Rerer9g.js → probe.runtime-B1dsEeBD.js} +1 -1
- package/dist/{provider-BuTO6czP.js → provider-Cm9QSAO8.js} +61 -42
- package/dist/{provider-session.runtime-DmBTGaQX.js → provider-session.runtime-DYKny61v.js} +3 -3
- package/dist/provider.runtime-BIHvVXCg.js +2 -0
- package/dist/{resolve-allowlist-common-BDNoAQll.js → resolve-allowlist-common-CWbE8XlH.js} +1 -1
- package/dist/{resolve-channels-C_rAwrkj.js → resolve-channels-CcpvWoRa.js} +3 -3
- package/dist/{resolve-users-Cz1tkemy.js → resolve-users-DJamun9s.js} +3 -3
- package/dist/{runtime-DaaaVvJm.js → runtime-C6rRmQ6l.js} +23 -20
- package/dist/runtime-api.actions.js +2 -2
- package/dist/runtime-api.js +20 -20
- package/dist/runtime-api.lookup.js +5 -5
- package/dist/runtime-api.monitor-DoCAqUlv.js +6 -0
- package/dist/runtime-api.monitor.js +6 -5
- package/dist/runtime-api.send.js +5 -5
- package/dist/runtime-api.threads.js +3 -3
- package/dist/{secret-config-contract-BjM-1hr9.js → secret-config-contract-BDNrRWvd.js} +6 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/{send-B_yfprXu.js → send-iJ0B4bAX.js} +28 -17
- package/dist/{send.components-C2psXc7A.js → send.components-D0I39utR.js} +18 -15
- package/dist/{send.outbound-BPcCF1v2.js → send.outbound-Bj61Q3a0.js} +105 -20
- package/dist/{send.receipt-CK162xD0.js → send.receipt-BpBQED_5.js} +51 -26
- package/dist/{send.shared-CUTfqvXx.js → send.shared-wAwMhHDN.js} +145 -28
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{shared-AnStShZr.js → shared-BQVKfnev.js} +3 -3
- package/dist/{subagent-hooks-DkO-jpvh.js → subagent-hooks-B-bJxxGg.js} +2 -2
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/{system-events-XRYuwB2n.js → system-events-DVnqSyTt.js} +1 -1
- package/dist/{target-resolver-DYufMbXm.js → target-resolver-CwHaSLt3.js} +2 -2
- package/dist/targets-69w7c3vU.js +3 -0
- package/dist/{thread-bindings-BuXtcLSp.js → thread-bindings-DsTxqu3E.js} +4 -4
- package/dist/{thread-bindings.discord-api-CetgvIbE.js → thread-bindings.discord-api-BjIf9lGs.js} +4 -4
- package/dist/{thread-bindings.manager-B7AHjU4s.js → thread-bindings.manager-Bwmtqc3E.js} +3 -3
- package/dist/{transcripts-source-DW6d1eCL.js → transcripts-source-BvvM5Ns9.js} +1 -1
- package/dist/transcripts-source-api.js +1 -1
- package/dist/{typing-BMQEI8OW.js → typing-BVcJgILg.js} +1 -1
- package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +23 -1
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +291 -256
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +23 -1
- package/node_modules/@napi-rs/wasm-runtime/package.json +6 -6
- package/node_modules/@snazzah/davey/index.js +46 -46
- package/node_modules/@snazzah/davey/package.json +20 -20
- package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/package.json +1 -1
- package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
- package/node_modules/@snazzah/davey-android-arm64/package.json +1 -1
- package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-arm64/package.json +1 -1
- package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-x64/package.json +1 -1
- package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
- package/node_modules/@snazzah/davey-freebsd-x64/package.json +1 -1
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +1 -1
- package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +1 -1
- package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +1 -1
- package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +1 -1
- package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/package.json +1 -1
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/package.json +2 -2
- package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +1 -1
- package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +1 -1
- package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +1 -1
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +60 -48
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +60 -48
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -1
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +60 -48
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -1
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +62 -49
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +60 -48
- package/node_modules/@tybys/wasm-util/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +10 -1
- package/node_modules/@types/node/assert.d.ts +144 -17
- package/node_modules/@types/node/async_hooks.d.ts +9 -9
- package/node_modules/@types/node/buffer.d.ts +64 -30
- package/node_modules/@types/node/child_process.d.ts +17 -21
- package/node_modules/@types/node/cluster.d.ts +13 -13
- package/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +471 -575
- package/node_modules/@types/node/diagnostics_channel.d.ts +274 -32
- package/node_modules/@types/node/dns.d.ts +15 -15
- package/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +7 -4
- package/node_modules/@types/node/fs.d.ts +24 -18
- package/node_modules/@types/node/globals.d.ts +4 -4
- package/node_modules/@types/node/http.d.ts +30 -5
- package/node_modules/@types/node/http2.d.ts +5 -1
- package/node_modules/@types/node/index.d.ts +1 -3
- package/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/node/module.d.ts +16 -45
- package/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/node/os.d.ts +2 -2
- package/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/node/perf_hooks.d.ts +1 -9
- package/node_modules/@types/node/process.d.ts +25 -12
- package/node_modules/@types/node/quic.d.ts +92 -11
- package/node_modules/@types/node/readline.d.ts +12 -11
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sqlite.d.ts +56 -1
- package/node_modules/@types/node/stream/iter.d.ts +150 -0
- package/node_modules/@types/node/stream/promises.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +1 -1
- package/node_modules/@types/node/stream.d.ts +37 -5
- package/node_modules/@types/node/test/reporters.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +120 -10
- package/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -4
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -3
- package/node_modules/@types/node/url.d.ts +3 -3
- package/node_modules/@types/node/util/types.d.ts +1 -1
- package/node_modules/@types/node/util.d.ts +22 -22
- package/node_modules/@types/node/v8.d.ts +85 -3
- package/node_modules/@types/node/vm.d.ts +9 -9
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/worker_threads.d.ts +10 -12
- package/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/discord-api-types/CHANGELOG.md +16 -0
- package/node_modules/discord-api-types/README.md +1 -1
- package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts +16 -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 +16 -0
- package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/index.mjs +1 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts +125 -8
- package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/v10.js +13 -1
- package/node_modules/discord-api-types/gateway/v10.js.map +1 -1
- package/node_modules/discord-api-types/gateway/v10.mjs +1 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts +125 -8
- package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/v9.js +13 -1
- package/node_modules/discord-api-types/gateway/v9.js.map +1 -1
- package/node_modules/discord-api-types/gateway/v9.mjs +1 -0
- package/node_modules/discord-api-types/package.json +4 -4
- package/node_modules/discord-api-types/payloads/common.d.ts +6 -0
- package/node_modules/discord-api-types/payloads/common.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/common.js +6 -0
- package/node_modules/discord-api-types/payloads/common.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts +1 -1
- package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts +12 -1
- package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/auditLog.js +2 -0
- package/node_modules/discord-api-types/payloads/v10/auditLog.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/invite.d.ts +7 -1
- package/node_modules/discord-api-types/payloads/v10/invite.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/invite.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/monetization.d.ts +4 -4
- package/node_modules/discord-api-types/payloads/v10/monetization.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/monetization.js +4 -4
- package/node_modules/discord-api-types/payloads/v10/monetization.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/webhook.d.ts +2 -2
- package/node_modules/discord-api-types/payloads/v10/webhook.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts +12 -1
- package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/auditLog.js +2 -0
- package/node_modules/discord-api-types/payloads/v9/auditLog.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/invite.d.ts +7 -1
- package/node_modules/discord-api-types/payloads/v9/invite.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/invite.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/monetization.d.ts +4 -4
- package/node_modules/discord-api-types/payloads/v9/monetization.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/monetization.js +4 -4
- package/node_modules/discord-api-types/payloads/v9/monetization.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/webhook.d.ts +2 -2
- package/node_modules/discord-api-types/payloads/v9/webhook.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/common.d.ts +5 -0
- package/node_modules/discord-api-types/rest/common.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/common.js +5 -0
- package/node_modules/discord-api-types/rest/common.js.map +1 -1
- package/node_modules/discord-api-types/rest/index.mjs +1 -0
- package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.d.ts +49 -16
- package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/emoji.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v10/emoji.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/guild.d.ts +9 -9
- package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/index.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/index.js +23 -0
- package/node_modules/discord-api-types/rest/v10/index.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/index.mjs +1 -0
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/invite.d.ts +67 -0
- package/node_modules/discord-api-types/rest/v10/invite.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/invite.js +23 -0
- package/node_modules/discord-api-types/rest/v10/invite.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/monetization.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v10/monetization.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/soundboard.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v10/soundboard.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/sticker.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/sticker.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/user.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v10/user.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/voice.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v10/voice.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/webhook.d.ts +6 -6
- package/node_modules/discord-api-types/rest/v10/webhook.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/channel.d.ts +49 -16
- package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/emoji.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v9/emoji.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/guild.d.ts +9 -9
- package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/index.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/index.js +23 -0
- package/node_modules/discord-api-types/rest/v9/index.js.map +1 -1
- package/node_modules/discord-api-types/rest/v9/index.mjs +1 -0
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/invite.d.ts +67 -0
- package/node_modules/discord-api-types/rest/v9/invite.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/invite.js +23 -0
- package/node_modules/discord-api-types/rest/v9/invite.js.map +1 -1
- package/node_modules/discord-api-types/rest/v9/monetization.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v9/monetization.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/soundboard.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v9/soundboard.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/sticker.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/sticker.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/user.d.ts +1 -1
- package/node_modules/discord-api-types/rest/v9/user.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/voice.d.ts +2 -2
- package/node_modules/discord-api-types/rest/v9/voice.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/webhook.d.ts +6 -6
- package/node_modules/discord-api-types/rest/v9/webhook.d.ts.map +1 -1
- package/node_modules/discord-api-types/rpc/v10.d.ts +19 -19
- package/node_modules/discord-api-types/rpc/v10.d.ts.map +1 -1
- package/node_modules/discord-api-types/v10.mjs +2 -0
- package/node_modules/discord-api-types/v9.mjs +2 -0
- package/node_modules/typebox/build/compile/validator.d.mts +2 -7
- package/node_modules/typebox/build/compile/validator.mjs +6 -36
- package/node_modules/typebox/build/error/errors.d.mts +1 -7
- package/node_modules/typebox/build/format/_idna.mjs +36 -6
- package/node_modules/typebox/build/format/_puny.mjs +4 -1
- package/node_modules/typebox/build/format/uuid.d.mts +2 -2
- package/node_modules/typebox/build/format/uuid.mjs +3 -3
- package/node_modules/typebox/build/guard/emit.d.mts +0 -4
- package/node_modules/typebox/build/guard/emit.mjs +0 -8
- package/node_modules/typebox/build/guard/guard.d.mts +4 -8
- package/node_modules/typebox/build/guard/guard.mjs +5 -13
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
- package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
- package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/types/index.mjs +0 -1
- package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
- package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
- package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
- package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
- package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
- package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
- package/node_modules/typebox/build/type/action/index.d.mts +7 -4
- package/node_modules/typebox/build/type/action/index.mjs +7 -4
- package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
- package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
- package/node_modules/typebox/build/type/action/module.d.mts +8 -7
- package/node_modules/typebox/build/type/action/module.mjs +7 -6
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
- package/node_modules/typebox/build/type/action/with.d.mts +11 -0
- package/node_modules/typebox/build/type/action/with.mjs +11 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/index.mjs +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
- package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
- package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
- package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
- package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
- package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
- package/node_modules/typebox/build/type/extends/object.mjs +25 -3
- package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
- package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/record.mjs +23 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
- package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
- package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
- package/node_modules/typebox/build/type/extends/union.mjs +2 -2
- package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
- package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
- package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
- package/node_modules/typebox/build/type/script/parser.mjs +22 -22
- package/node_modules/typebox/build/type/script/script.d.mts +3 -4
- package/node_modules/typebox/build/type/script/script.mjs +3 -2
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
- package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
- package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
- package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
- package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
- package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
- package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
- package/node_modules/typebox/build/type/types/call.d.mts +3 -3
- package/node_modules/typebox/build/type/types/call.mjs +3 -2
- package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
- package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
- package/node_modules/typebox/build/type/types/enum.mjs +5 -0
- package/node_modules/typebox/build/type/types/index.d.mts +1 -4
- package/node_modules/typebox/build/type/types/index.mjs +1 -4
- package/node_modules/typebox/build/type/types/number.d.mts +1 -1
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/record.d.mts +13 -7
- package/node_modules/typebox/build/type/types/record.mjs +15 -9
- package/node_modules/typebox/build/type/types/static.d.mts +2 -5
- package/node_modules/typebox/build/typebox.d.mts +4 -8
- package/node_modules/typebox/build/typebox.mjs +4 -8
- package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
- package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
- package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
- package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
- package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/index.d.mts +0 -1
- package/node_modules/typebox/build/value/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
- package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
- package/node_modules/typebox/build/value/value.d.mts +0 -1
- package/node_modules/typebox/build/value/value.mjs +0 -1
- package/node_modules/typebox/package.json +25 -25
- package/node_modules/typebox/readme.md +97 -80
- package/node_modules/undici-types/agent.d.ts +0 -2
- package/node_modules/undici-types/client.d.ts +25 -19
- package/node_modules/undici-types/dispatcher.d.ts +7 -33
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/fetch.d.ts +24 -4
- package/node_modules/undici-types/h2c-client.d.ts +6 -6
- package/node_modules/undici-types/handlers.d.ts +1 -2
- package/node_modules/undici-types/header.d.ts +5 -0
- package/node_modules/undici-types/index.d.ts +3 -1
- package/node_modules/undici-types/interceptors.d.ts +1 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/pool.d.ts +0 -2
- package/node_modules/undici-types/proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
- package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/webidl.d.ts +0 -1
- package/npm-shrinkwrap.json +85 -85
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -6
- package/dist/gateway-registry-DPxmW0Db.js +0 -74
- package/dist/provider.runtime-CqZpKOCE.js +0 -2
- package/dist/runtime-api.monitor-ChuqOjHq.js +0 -6
- package/dist/targets-BA7gf0K0.js +0 -3
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
- package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
- package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
- package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
- package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
- package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
- package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
- package/node_modules/typebox/build/type/action/options.d.mts +0 -11
- package/node_modules/typebox/build/type/action/options.mjs +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
- package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/base.d.mts +0 -50
- package/node_modules/typebox/build/type/types/base.mjs +0 -84
- package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
- package/node_modules/typebox/build/type/types/promise.mjs +0 -29
- package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
- package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
- package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
- package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
- package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
- package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
- package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
- package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as StringSelectMenu, A as Command, H as Button, Jt as __exportAll, M as Guild, N as Message, P as User, Q as Separator, S as Plugin, T as RateLimitError, W as Container, X as Row, _ as ReadyListener, d as discord_exports, et as TextDisplay, f as InteractionCreateListener, ft as createThread, g as PresenceUpdateListener, h as MessageReactionRemoveListener, ht as editChannel, j as CommandWithSubcommands, m as MessageReactionAddListener, p as MessageCreateListener, rt as BaseMessageInteractiveComponent, u as chunkDiscordTextWithMode, vt as getChannelMessage, x as Client, y as ThreadUpdateListener, z as Modal } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { c as resolveDiscordAccountAllowFrom, d as resolveDiscordAccountDmPolicy, f as resolveDiscordMaxLinesPerMessage, p as normalizeDiscordToken, s as resolveDiscordAccount } from "./accounts-P19jm1lf.js";
|
|
3
|
-
import { _ as parseDiscordComponentCustomId, b as parseDiscordModalCustomIdForInteraction, v as parseDiscordComponentCustomIdForInteraction, y as parseDiscordModalCustomId } from "./components-
|
|
4
|
-
import { a as resolveDiscordComponentEntryWithPersistence, o as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-
|
|
5
|
-
import {
|
|
6
|
-
import { B as DISCORD_REST_TIMEOUT_MS, D as canViewDiscordGuildChannel, H as withValidatedDiscordProxy, I as createDiscordRestClient, V as validateDiscordProxyUrl } from "./send.shared-
|
|
7
|
-
import { a as summarizeDiscordResponseBody, i as isDiscordRateLimitResponseBody } from "./api-
|
|
3
|
+
import { _ as parseDiscordComponentCustomId, b as parseDiscordModalCustomIdForInteraction, v as parseDiscordComponentCustomIdForInteraction, y as parseDiscordModalCustomId } from "./components-BIBizbtZ.js";
|
|
4
|
+
import { a as resolveDiscordComponentEntryWithPersistence, o as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-D0I39utR.js";
|
|
5
|
+
import { i as setPresence } from "./presence-cache-z1N8MbJ3.js";
|
|
6
|
+
import { B as DISCORD_REST_TIMEOUT_MS, D as canViewDiscordGuildChannel, G as registerGateway, H as withValidatedDiscordProxy, I as createDiscordRestClient, K as unregisterGateway, V as validateDiscordProxyUrl } from "./send.shared-wAwMhHDN.js";
|
|
7
|
+
import { a as summarizeDiscordResponseBody, i as isDiscordRateLimitResponseBody } from "./api-DPRqYi4Z.js";
|
|
8
8
|
import { S as resolveTimestampMs, _ as resolveGroupDmAllow, a as normalizeDiscordSlug, b as formatDiscordUserTag, c as resolveDiscordChannelConfigWithFallback, d as resolveDiscordGuildEntry, f as resolveDiscordMemberAccessState, h as resolveDiscordOwnerAllowFrom, i as normalizeDiscordDisplaySlug, l as resolveDiscordChannelPolicyCommandAuthorizer, m as resolveDiscordOwnerAccess, n as isDiscordGroupAllowedByPolicy, o as resolveDiscordAllowListMatch, p as resolveDiscordMemberAllowed, r as normalizeDiscordAllowList, v as shouldEmitDiscordReactionNotification, y as formatDiscordReactionEmoji } from "./allow-list-C-MqM-B_.js";
|
|
9
|
-
import { s as sendVoiceMessageDiscord } from "./send-
|
|
10
|
-
import {
|
|
9
|
+
import { s as sendVoiceMessageDiscord } from "./send-iJ0B4bAX.js";
|
|
10
|
+
import { a as formatMention, t as sendMessageDiscord } from "./send.outbound-Bj61Q3a0.js";
|
|
11
11
|
import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.js";
|
|
12
|
-
import { a as getDiscordExecApprovalApprovers, s as isDiscordExecApprovalClientEnabled, t as resolveDiscordConversationIdentity } from "./conversation-identity-
|
|
12
|
+
import { a as getDiscordExecApprovalApprovers, s as isDiscordExecApprovalClientEnabled, t as resolveDiscordConversationIdentity } from "./conversation-identity-DWC5d8Sy.js";
|
|
13
13
|
import { d as withAbortTimeout, l as raceWithTimeout } from "./timeouts-C5TBc_9x.js";
|
|
14
|
-
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-
|
|
15
|
-
import { t as resolveDiscordUserAllowlist } from "./resolve-users-
|
|
16
|
-
import { _ as formatThreadBindingDurationLabel, a as isThreadArchived, d as resolveDiscordChannelNameSafe, f as resolveDiscordChannelParentIdSafe, l as resolveDiscordChannelIdSafe, m as resolveDiscordChannelTopicSafe, p as resolveDiscordChannelParentSafe, u as resolveDiscordChannelInfoSafe } from "./thread-bindings.discord-api-
|
|
17
|
-
import { r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-
|
|
18
|
-
import { d as resolveDiscordMessageChannelId, n as resolveDiscordForwardedMessagesTextFromSnapshots, t as resolveDiscordEmbedText, u as resolveDiscordChannelInfo } from "./message-utils-
|
|
14
|
+
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-CcpvWoRa.js";
|
|
15
|
+
import { t as resolveDiscordUserAllowlist } from "./resolve-users-DJamun9s.js";
|
|
16
|
+
import { _ as formatThreadBindingDurationLabel, a as isThreadArchived, d as resolveDiscordChannelNameSafe, f as resolveDiscordChannelParentIdSafe, l as resolveDiscordChannelIdSafe, m as resolveDiscordChannelTopicSafe, p as resolveDiscordChannelParentSafe, u as resolveDiscordChannelInfoSafe } from "./thread-bindings.discord-api-BjIf9lGs.js";
|
|
17
|
+
import { r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-D1ImJEo2.js";
|
|
18
|
+
import { d as resolveDiscordMessageChannelId, n as resolveDiscordForwardedMessagesTextFromSnapshots, t as resolveDiscordEmbedText, u as resolveDiscordChannelInfo } from "./message-utils-B_3yA5bN.js";
|
|
19
19
|
import { t as resolveDiscordSenderIdentity } from "./sender-identity-CEsfDF0L.js";
|
|
20
|
-
import "./approval-handler.runtime-
|
|
20
|
+
import "./approval-handler.runtime-Bw2pZNk1.js";
|
|
21
21
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
22
22
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
23
23
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId, normalizeStringEntries, normalizeStringEntriesLower, summarizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -31,16 +31,18 @@ import { resolvePinnedMainDmOwnerFromAllowlist as resolvePinnedMainDmOwnerFromAl
|
|
|
31
31
|
import { Type } from "typebox";
|
|
32
32
|
import { Check, Errors } from "typebox/value";
|
|
33
33
|
import { inspect } from "node:util";
|
|
34
|
+
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
35
|
+
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
34
36
|
import { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-runtime";
|
|
35
37
|
import { resolveSendableOutboundReplyParts, resolveTextChunksWithFallback } from "openclaw/plugin-sdk/reply-payload";
|
|
36
38
|
import { loadWebMedia } from "openclaw/plugin-sdk/web-media";
|
|
37
39
|
import { resolveChunkMode, resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
|
|
38
40
|
import { createHttp1EnvHttpProxyAgent, createHttp1ProxyAgent, createNodeProxyAgent, resolveEnvHttpProxyAgentOptions, wrapFetchWithAbortSignal } from "openclaw/plugin-sdk/fetch-runtime";
|
|
39
41
|
import { createNonExitingRuntime, createSubsystemLogger, danger, formatDurationSeconds, isVerbose, logVerbose, shouldLogVerbose, warn } from "openclaw/plugin-sdk/runtime-env";
|
|
40
|
-
import {
|
|
42
|
+
import { sliceUtf16Safe, truncateUtf16Safe, withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
43
|
+
import { createReplyReferencePlanner } from "openclaw/plugin-sdk/reply-reference";
|
|
41
44
|
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
|
|
42
45
|
import { chunkItems, sanitizeAssistantVisibleText, sanitizeAssistantVisibleTextWithProfile } from "openclaw/plugin-sdk/text-chunking";
|
|
43
|
-
import { sliceUtf16Safe, truncateUtf16Safe, withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
44
46
|
import { buildOutboundSessionContext, createChannelMessageReplyPipeline, resolveChannelStreamingBlockEnabled, sendDurableMessageBatch } from "openclaw/plugin-sdk/channel-outbound";
|
|
45
47
|
import { fetchWithSsrFGuard, formatErrorMessage as formatErrorMessage$1 } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
46
48
|
import { GROUP_POLICY_BLOCKED_LABEL, resolveDefaultGroupPolicy, resolveOpenProviderRuntimeGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
|
|
@@ -56,7 +58,6 @@ import { enqueueSystemEvent, enqueueSystemEvent as enqueueSystemEvent$1 } from "
|
|
|
56
58
|
import { createChannelIngressResolver, defineStableChannelIngressIdentity, readChannelIngressStoreAllowFromForDmPolicy } from "openclaw/plugin-sdk/channel-ingress-runtime";
|
|
57
59
|
import { applyModelOverrideToSessionEntry, resolveChannelModelOverride } from "openclaw/plugin-sdk/model-session-runtime";
|
|
58
60
|
import { completeWithPreparedSimpleCompletionModel, extractAssistantText, prepareSimpleCompletionModelForAgent } from "openclaw/plugin-sdk/simple-completion-runtime";
|
|
59
|
-
import { createReplyReferencePlanner } from "openclaw/plugin-sdk/reply-reference";
|
|
60
61
|
import { getSessionEntry, listSessionEntries, patchSessionEntry, readSessionUpdatedAt as readSessionUpdatedAt$1, resolveStorePath, resolveStorePath as resolveStorePath$1 } from "openclaw/plugin-sdk/session-store-runtime";
|
|
61
62
|
import { formatInboundEnvelope, resolveEnvelopeFormatOptions, runChannelInboundEvent } from "openclaw/plugin-sdk/channel-inbound";
|
|
62
63
|
import { buildCommandTextFromArgs, findCommandByNativeName, formatCommandArgMenuTitle, listChatCommands, listNativeCommandSpecsForConfig, listSkillCommandsForAgents, resolveCommandAuthorizedFromAuthorizers, resolveNativeCommandSessionTargets, resolveStoredModelOverride, serializeCommandArgs } from "openclaw/plugin-sdk/command-auth-native";
|
|
@@ -310,6 +311,7 @@ async function generateThreadTitle(params) {
|
|
|
310
311
|
cfg: params.cfg,
|
|
311
312
|
agentId: params.agentId,
|
|
312
313
|
...params.modelRef ? { modelRef: params.modelRef } : {},
|
|
314
|
+
useUtilityModel: true,
|
|
313
315
|
allowMissingApiKeyModes: ["aws-sdk"]
|
|
314
316
|
});
|
|
315
317
|
if ("error" in prepared) {
|
|
@@ -318,8 +320,8 @@ async function generateThreadTitle(params) {
|
|
|
318
320
|
return null;
|
|
319
321
|
}
|
|
320
322
|
try {
|
|
321
|
-
const userMessage =
|
|
322
|
-
sourceText
|
|
323
|
+
const userMessage = buildThreadTitleCompletionUserMessage({
|
|
324
|
+
sourceText,
|
|
323
325
|
channelName: params.channelName,
|
|
324
326
|
channelDescription: params.channelDescription
|
|
325
327
|
});
|
|
@@ -358,18 +360,19 @@ async function completeThreadTitle(params) {
|
|
|
358
360
|
})
|
|
359
361
|
});
|
|
360
362
|
}
|
|
361
|
-
function
|
|
363
|
+
function buildThreadTitleCompletionUserMessage(params) {
|
|
364
|
+
const sourceText = truncateThreadTitleSourceText(params.sourceText);
|
|
362
365
|
const channelName = normalizeTitleContextField(params.channelName, MAX_THREAD_TITLE_CHANNEL_NAME_CHARS);
|
|
363
366
|
const channelDescription = normalizeTitleContextField(params.channelDescription, MAX_THREAD_TITLE_CHANNEL_DESCRIPTION_CHARS);
|
|
364
367
|
const messageLines = [];
|
|
365
368
|
if (channelName) messageLines.push(`Channel: ${channelName}`);
|
|
366
369
|
if (channelDescription) messageLines.push(`Channel description: ${channelDescription}`);
|
|
367
|
-
messageLines.push(`Message:\n${
|
|
370
|
+
messageLines.push(`Message:\n${sourceText}`);
|
|
368
371
|
return messageLines.join("\n\n");
|
|
369
372
|
}
|
|
370
373
|
function truncateThreadTitleSourceText(sourceText) {
|
|
371
374
|
if (sourceText.length <= MAX_THREAD_TITLE_SOURCE_CHARS) return sourceText;
|
|
372
|
-
return `${sourceText
|
|
375
|
+
return `${truncateUtf16Safe(sourceText, MAX_THREAD_TITLE_SOURCE_CHARS)}...`;
|
|
373
376
|
}
|
|
374
377
|
function resolveThreadTitleTimeoutMs(timeoutMs) {
|
|
375
378
|
return Math.max(100, Math.floor(timeoutMs ?? DEFAULT_THREAD_TITLE_TIMEOUT_MS));
|
|
@@ -412,7 +415,7 @@ function normalizeTitleContextField(raw, maxChars) {
|
|
|
412
415
|
if (!value) return;
|
|
413
416
|
const singleLine = value.replace(/\s+/g, " ");
|
|
414
417
|
if (singleLine.length <= maxChars) return singleLine;
|
|
415
|
-
return `${singleLine
|
|
418
|
+
return `${truncateUtf16Safe(singleLine, maxChars)}...`;
|
|
416
419
|
}
|
|
417
420
|
//#endregion
|
|
418
421
|
//#region extensions/discord/src/monitor/threading.cache.ts
|
|
@@ -1104,8 +1107,11 @@ async function handleDiscordReactionEvent(params) {
|
|
|
1104
1107
|
const resolveReactionBase = () => {
|
|
1105
1108
|
if (reactionBase) return reactionBase;
|
|
1106
1109
|
const emojiLabel = formatDiscordReactionEmoji(data.emoji);
|
|
1110
|
+
const actorLabel = formatDiscordUserTag(user);
|
|
1111
|
+
const guildSlug = guildInfo?.slug || (data.guild?.name ? normalizeDiscordSlug(data.guild.name) : data.guild_id ?? (isGroupDm ? "group-dm" : "dm"));
|
|
1112
|
+
const channelLabel = channelSlug ? `#${channelSlug}` : channelName ? `#${normalizeDiscordSlug(channelName)}` : `#${data.channel_id}`;
|
|
1107
1113
|
reactionBase = {
|
|
1108
|
-
baseText: `Discord reaction ${action}: ${emojiLabel} by ${
|
|
1114
|
+
baseText: `Discord reaction ${action}: ${emojiLabel} by ${actorLabel} on ${guildSlug} ${channelLabel} msg ${data.message_id}`,
|
|
1109
1115
|
contextKey: `discord:reaction:${action}:${data.message_id}:${user.id}:${emojiLabel}`
|
|
1110
1116
|
};
|
|
1111
1117
|
return reactionBase;
|
|
@@ -1146,7 +1152,8 @@ async function handleDiscordReactionEvent(params) {
|
|
|
1146
1152
|
const emitReactionWithAuthor = (message) => {
|
|
1147
1153
|
const { baseText } = resolveReactionBase();
|
|
1148
1154
|
const authorLabel = message?.author ? formatDiscordUserTag(message.author) : void 0;
|
|
1149
|
-
|
|
1155
|
+
const text = authorLabel ? `${baseText} from ${authorLabel}` : baseText;
|
|
1156
|
+
emitReaction(text, parentId);
|
|
1150
1157
|
};
|
|
1151
1158
|
const resolveThreadChannelConfig = () => resolveDiscordChannelConfigWithFallback({
|
|
1152
1159
|
guildInfo,
|
|
@@ -1341,6 +1348,7 @@ async function handleDiscordDmCommandDecision(params) {
|
|
|
1341
1348
|
const upsertPairingRequest = params.upsertPairingRequest ?? upsertChannelPairingRequest;
|
|
1342
1349
|
const result = await createChannelPairingChallengeIssuer({
|
|
1343
1350
|
channel: "discord",
|
|
1351
|
+
accountId: params.accountId,
|
|
1344
1352
|
upsertPairingRequest: async ({ id, meta }) => await upsertPairingRequest({
|
|
1345
1353
|
channel: "discord",
|
|
1346
1354
|
id,
|
|
@@ -4177,7 +4185,7 @@ function truncateDiscordCommandDescription(params) {
|
|
|
4177
4185
|
const { value, label } = params;
|
|
4178
4186
|
if (value.length <= DISCORD_COMMAND_DESCRIPTION_MAX) return value;
|
|
4179
4187
|
log$1.warn(`discord: truncating native command description (${label}) from ${value.length} to ${DISCORD_COMMAND_DESCRIPTION_MAX}: ${JSON.stringify(value)}`);
|
|
4180
|
-
return value
|
|
4188
|
+
return truncateUtf16Safe(value, DISCORD_COMMAND_DESCRIPTION_MAX);
|
|
4181
4189
|
}
|
|
4182
4190
|
function truncateDiscordCommandDescriptionLocalizations(params) {
|
|
4183
4191
|
const entries = Object.entries(params.value ?? {});
|
|
@@ -4547,7 +4555,10 @@ async function dispatchDiscordCommandInteraction(params) {
|
|
|
4547
4555
|
accountId,
|
|
4548
4556
|
threadBindings
|
|
4549
4557
|
}) : null;
|
|
4550
|
-
const menuModelCatalog = command.key === "think" && menuNeedsModelContext ? await loadModelCatalog({
|
|
4558
|
+
const menuModelCatalog = command.key === "think" && menuNeedsModelContext ? await loadModelCatalog({
|
|
4559
|
+
config: cfg,
|
|
4560
|
+
readOnly: true
|
|
4561
|
+
}) : void 0;
|
|
4551
4562
|
const menu = resolveCommandArgMenu({
|
|
4552
4563
|
command,
|
|
4553
4564
|
args: commandArgs,
|
|
@@ -4779,7 +4790,7 @@ function createDiscordModelPickerFallbackSelect(params) {
|
|
|
4779
4790
|
}
|
|
4780
4791
|
//#endregion
|
|
4781
4792
|
//#region extensions/discord/src/internal/gateway-close-codes.ts
|
|
4782
|
-
const fatalGatewayCloseCodes = new Set([
|
|
4793
|
+
const fatalGatewayCloseCodes = /* @__PURE__ */ new Set([
|
|
4783
4794
|
GatewayCloseCodes.AuthenticationFailed,
|
|
4784
4795
|
GatewayCloseCodes.InvalidShard,
|
|
4785
4796
|
GatewayCloseCodes.ShardingRequired,
|
|
@@ -4787,7 +4798,7 @@ const fatalGatewayCloseCodes = new Set([
|
|
|
4787
4798
|
GatewayCloseCodes.InvalidIntents,
|
|
4788
4799
|
GatewayCloseCodes.DisallowedIntents
|
|
4789
4800
|
]);
|
|
4790
|
-
const nonResumableGatewayCloseCodes = new Set([
|
|
4801
|
+
const nonResumableGatewayCloseCodes = /* @__PURE__ */ new Set([
|
|
4791
4802
|
GatewayCloseCodes.NotAuthenticated,
|
|
4792
4803
|
GatewayCloseCodes.InvalidSeq,
|
|
4793
4804
|
GatewayCloseCodes.SessionTimedOut,
|
|
@@ -5021,6 +5032,7 @@ const GatewayIntents = GatewayIntentBits;
|
|
|
5021
5032
|
const READY_STATE_OPEN = 1;
|
|
5022
5033
|
const DEFAULT_GATEWAY_URL = "wss://gateway.discord.gg/";
|
|
5023
5034
|
const DISCORD_GATEWAY_PAYLOAD_LIMIT_BYTES = 4096;
|
|
5035
|
+
const DISCORD_GATEWAY_WS_CLIENT_OPTIONS = Object.freeze({ maxPayload: 16 * 1024 * 1024 });
|
|
5024
5036
|
const INVALID_SESSION_MIN_DELAY_MS = 1e3;
|
|
5025
5037
|
const INVALID_SESSION_JITTER_MS = 4e3;
|
|
5026
5038
|
function ensureGatewayParams(url) {
|
|
@@ -5116,7 +5128,7 @@ var GatewayPlugin = class extends Plugin {
|
|
|
5116
5128
|
this.reconnectAttempts = 0;
|
|
5117
5129
|
}
|
|
5118
5130
|
createWebSocket(url) {
|
|
5119
|
-
return new ws.WebSocket(url);
|
|
5131
|
+
return new ws.WebSocket(url, DISCORD_GATEWAY_WS_CLIENT_OPTIONS);
|
|
5120
5132
|
}
|
|
5121
5133
|
setupWebSocket(resume) {
|
|
5122
5134
|
const socket = this.ws;
|
|
@@ -5626,6 +5638,7 @@ const DEFAULT_DISCORD_GATEWAY_URL = "wss://gateway.discord.gg/";
|
|
|
5626
5638
|
const DEFAULT_DISCORD_GATEWAY_INFO_TIMEOUT_MS = 3e4;
|
|
5627
5639
|
const MAX_DISCORD_GATEWAY_INFO_TIMEOUT_MS = 12e4;
|
|
5628
5640
|
const DISCORD_GATEWAY_INFO_TIMEOUT_ENV = "OPENCLAW_DISCORD_GATEWAY_INFO_TIMEOUT_MS";
|
|
5641
|
+
const DISCORD_GATEWAY_METADATA_MAX_BYTES = 4 * 1024 * 1024;
|
|
5629
5642
|
const DISCORD_GATEWAY_METADATA_FALLBACK_LOG_INTERVAL_MS = 6e4;
|
|
5630
5643
|
const discordGatewayBotInfoSchema = Type.Object({
|
|
5631
5644
|
url: Type.String({ minLength: 1 }),
|
|
@@ -5644,7 +5657,7 @@ function resolveFetchInputUrl(input) {
|
|
|
5644
5657
|
return input.url;
|
|
5645
5658
|
}
|
|
5646
5659
|
async function materializeGuardedResponse(response) {
|
|
5647
|
-
const body = await response
|
|
5660
|
+
const body = new Uint8Array(await readResponseWithLimit(response, DISCORD_GATEWAY_METADATA_MAX_BYTES, { onOverflow: ({ size, maxBytes }) => /* @__PURE__ */ new Error(`Discord gateway metadata response body too large: ${size} bytes (limit: ${maxBytes} bytes)`) }));
|
|
5648
5661
|
return new Response(body, {
|
|
5649
5662
|
status: response.status,
|
|
5650
5663
|
statusText: response.statusText,
|
|
@@ -5932,7 +5945,8 @@ function createGatewayPlugin(params) {
|
|
|
5932
5945
|
createWebSocket(url) {
|
|
5933
5946
|
if (!url) throw new Error("Gateway URL is required");
|
|
5934
5947
|
const wsFlowId = randomUUID();
|
|
5935
|
-
const socket = new (params.testing?.webSocketCtor ?? ws.default)(url, {
|
|
5948
|
+
const socket = new ((params.testing?.webSocketCtor) ?? ws.default)(url, {
|
|
5949
|
+
...DISCORD_GATEWAY_WS_CLIENT_OPTIONS,
|
|
5936
5950
|
handshakeTimeout: DISCORD_GATEWAY_HANDSHAKE_TIMEOUT_MS,
|
|
5937
5951
|
...params.wsAgent ? { agent: params.wsAgent } : {}
|
|
5938
5952
|
});
|
|
@@ -7373,6 +7387,7 @@ async function ensureDmComponentAuthorized(params) {
|
|
|
7373
7387
|
}
|
|
7374
7388
|
if (!(await createChannelPairingChallengeIssuer({
|
|
7375
7389
|
channel: "discord",
|
|
7390
|
+
accountId: ctx.accountId,
|
|
7376
7391
|
upsertPairingRequest: async ({ id, meta }) => {
|
|
7377
7392
|
return await upsertChannelPairingRequest$1({
|
|
7378
7393
|
channel: "discord",
|
|
@@ -7882,7 +7897,7 @@ function resolveBoundThreadBinding(params) {
|
|
|
7882
7897
|
}
|
|
7883
7898
|
function resolveBindingIdentity(cfg, binding) {
|
|
7884
7899
|
if (!binding) return;
|
|
7885
|
-
const identity = { name: (`🤖 ${binding.label?.trim() || binding.agentId}`.trim() || "🤖 agent"
|
|
7900
|
+
const identity = { name: truncateUtf16Safe(`🤖 ${binding.label?.trim() || binding.agentId}`.trim() || "🤖 agent", 80) };
|
|
7886
7901
|
try {
|
|
7887
7902
|
const avatar = resolveAgentAvatar(cfg, binding.agentId);
|
|
7888
7903
|
if (avatar.kind === "remote") identity.avatarUrl = avatar.url;
|
|
@@ -7895,7 +7910,8 @@ function createDiscordDeliveryDeps(params) {
|
|
|
7895
7910
|
...opts,
|
|
7896
7911
|
cfg: opts?.cfg ?? params.cfg,
|
|
7897
7912
|
token: params.token,
|
|
7898
|
-
rest: params.rest
|
|
7913
|
+
rest: params.rest,
|
|
7914
|
+
...params.allowedMentions ? { allowedMentions: params.allowedMentions } : {}
|
|
7899
7915
|
}),
|
|
7900
7916
|
discordVoice: (to, audioPath, opts) => sendVoiceMessageDiscord(to, audioPath, {
|
|
7901
7917
|
...opts,
|
|
@@ -7955,7 +7971,8 @@ async function deliverDiscordReply(params) {
|
|
|
7955
7971
|
deps: createDiscordDeliveryDeps({
|
|
7956
7972
|
cfg: params.cfg,
|
|
7957
7973
|
token: params.token,
|
|
7958
|
-
rest: params.rest
|
|
7974
|
+
rest: params.rest,
|
|
7975
|
+
allowedMentions: params.allowedMentions
|
|
7959
7976
|
}),
|
|
7960
7977
|
mediaAccess: delivery.mediaAccess,
|
|
7961
7978
|
session: buildOutboundSessionContext({
|
|
@@ -7971,7 +7988,7 @@ async function deliverDiscordReply(params) {
|
|
|
7971
7988
|
//#endregion
|
|
7972
7989
|
//#region extensions/discord/src/monitor/agent-components.dispatch.ts
|
|
7973
7990
|
const loadConversationRuntime$1 = createLazyRuntimeModule(() => import("./agent-components.runtime-CEPrf2SY.js"));
|
|
7974
|
-
const loadTypingRuntime = createLazyRuntimeModule(() => import("./typing-
|
|
7991
|
+
const loadTypingRuntime = createLazyRuntimeModule(() => import("./typing-BVcJgILg.js").then((n) => n.n));
|
|
7975
7992
|
function buildDiscordComponentConversationLabel(params) {
|
|
7976
7993
|
if (params.interactionCtx.isDirectMessage) return buildDirectLabel(params.interactionCtx.user);
|
|
7977
7994
|
if (params.interactionCtx.isGroupDm) return `Group DM #${params.channelCtx.channelName ?? params.interactionCtx.channelId} channel id:${params.interactionCtx.channelId}`;
|
|
@@ -8384,7 +8401,7 @@ async function dispatchPluginDiscordInteractiveEvent(params) {
|
|
|
8384
8401
|
}
|
|
8385
8402
|
//#endregion
|
|
8386
8403
|
//#region extensions/discord/src/monitor/agent-components.handlers.ts
|
|
8387
|
-
const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-
|
|
8404
|
+
const loadComponentsRuntime = createLazyRuntimeModule(() => import("./components-BIBizbtZ.js").then((n) => n.t));
|
|
8388
8405
|
async function handleDiscordComponentEvent(params) {
|
|
8389
8406
|
const parsed = parseDiscordComponentData(params.data, resolveInteractionCustomId(params.interaction));
|
|
8390
8407
|
if (!parsed) {
|
|
@@ -9511,6 +9528,7 @@ async function waitForGatewayReady(params) {
|
|
|
9511
9528
|
}
|
|
9512
9529
|
async function runDiscordGatewayLifecycle(params) {
|
|
9513
9530
|
const gateway = params.gateway;
|
|
9531
|
+
const gatewayReadyAtLifecycleStart = gateway?.isConnected === true;
|
|
9514
9532
|
if (gateway) registerGateway(params.accountId, gateway);
|
|
9515
9533
|
const gatewayEmitter = params.gatewaySupervisor.emitter ?? getDiscordGatewayEmitter(gateway);
|
|
9516
9534
|
const stopGatewayLogging = attachDiscordGatewayLogging({
|
|
@@ -9571,6 +9589,7 @@ async function runDiscordGatewayLifecycle(params) {
|
|
|
9571
9589
|
});
|
|
9572
9590
|
try {
|
|
9573
9591
|
if (drainPendingGatewayErrors() === "stop") return;
|
|
9592
|
+
if (gatewayReadyAtLifecycleStart && params.voiceManager) params.voiceManager.autoJoin().catch((err) => params.runtime.error?.(danger(`discord voice: autoJoin failed: ${formatErrorMessage$1(err)}`)));
|
|
9574
9593
|
await waitForGatewayReady({
|
|
9575
9594
|
gateway,
|
|
9576
9595
|
abortSignal: params.abortSignal,
|
|
@@ -9600,7 +9619,7 @@ async function runDiscordGatewayLifecycle(params) {
|
|
|
9600
9619
|
gatewayEmitter?.removeListener(DISCORD_GATEWAY_TRANSPORT_ACTIVITY_EVENT, onGatewayTransportActivity);
|
|
9601
9620
|
if (params.voiceManager) {
|
|
9602
9621
|
await params.voiceManager.destroy();
|
|
9603
|
-
const { setDiscordTranscriptsVoiceManager } = await import("./transcripts-source-
|
|
9622
|
+
const { setDiscordTranscriptsVoiceManager } = await import("./transcripts-source-BvvM5Ns9.js").then((n) => n.n);
|
|
9604
9623
|
setDiscordTranscriptsVoiceManager({
|
|
9605
9624
|
accountId: params.accountId,
|
|
9606
9625
|
manager: null
|
|
@@ -9878,7 +9897,7 @@ function logDiscordStartupPhase(params) {
|
|
|
9878
9897
|
});
|
|
9879
9898
|
}
|
|
9880
9899
|
async function loadDiscordVoiceRuntime() {
|
|
9881
|
-
const promise = discordVoiceRuntimePromise ?? import("./manager.runtime-
|
|
9900
|
+
const promise = discordVoiceRuntimePromise ?? import("./manager.runtime-D-ZJn56X.js");
|
|
9882
9901
|
discordVoiceRuntimePromise = promise;
|
|
9883
9902
|
try {
|
|
9884
9903
|
return await promise;
|
|
@@ -9888,7 +9907,7 @@ async function loadDiscordVoiceRuntime() {
|
|
|
9888
9907
|
}
|
|
9889
9908
|
}
|
|
9890
9909
|
async function loadDiscordProviderSessionRuntime() {
|
|
9891
|
-
const promise = discordProviderSessionRuntimePromise ?? import("./provider-session.runtime-
|
|
9910
|
+
const promise = discordProviderSessionRuntimePromise ?? import("./provider-session.runtime-DYKny61v.js");
|
|
9892
9911
|
discordProviderSessionRuntimePromise = promise;
|
|
9893
9912
|
try {
|
|
9894
9913
|
return await promise;
|
|
@@ -10159,7 +10178,7 @@ async function monitorDiscordProvider(opts = {}) {
|
|
|
10159
10178
|
runtime,
|
|
10160
10179
|
botUserId
|
|
10161
10180
|
});
|
|
10162
|
-
const { setDiscordTranscriptsVoiceManager } = await import("./transcripts-source-
|
|
10181
|
+
const { setDiscordTranscriptsVoiceManager } = await import("./transcripts-source-BvvM5Ns9.js").then((n) => n.n);
|
|
10163
10182
|
setDiscordTranscriptsVoiceManager({
|
|
10164
10183
|
accountId: account.accountId,
|
|
10165
10184
|
manager: voiceManager
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-
|
|
2
|
-
import { n as createThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-
|
|
3
|
-
import { t as createDiscordMessageHandler } from "./message-handler-
|
|
1
|
+
import { a as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-DsTxqu3E.js";
|
|
2
|
+
import { n as createThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-Bwmtqc3E.js";
|
|
3
|
+
import { t as createDiscordMessageHandler } from "./message-handler-DbrX-sHg.js";
|
|
4
4
|
import { resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled } from "openclaw/plugin-sdk/conversation-runtime";
|
|
5
5
|
import { getAcpSessionManager, isAcpRuntimeError } from "openclaw/plugin-sdk/acp-runtime";
|
|
6
6
|
export { createDiscordMessageHandler, createNoopThreadBindingManager, createThreadBindingManager, getAcpSessionManager, isAcpRuntimeError, reconcileAcpThreadBindingsOnStartup, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeDiscordToken } from "./accounts-P19jm1lf.js";
|
|
2
|
-
import { n as fetchDiscord } from "./api-
|
|
2
|
+
import { n as fetchDiscord } from "./api-DPRqYi4Z.js";
|
|
3
3
|
import { a as normalizeDiscordSlug } from "./allow-list-C-MqM-B_.js";
|
|
4
4
|
//#region extensions/discord/src/guilds.ts
|
|
5
5
|
async function listGuilds(token, fetcher) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as fetchDiscord, t as DiscordApiError } from "./api-
|
|
1
|
+
import { Jt as __exportAll } from "./send.receipt-BpBQED_5.js";
|
|
2
|
+
import { n as fetchDiscord, t as DiscordApiError } from "./api-DPRqYi4Z.js";
|
|
3
3
|
import { a as normalizeDiscordSlug } from "./allow-list-C-MqM-B_.js";
|
|
4
|
-
import { i as listGuilds, n as filterDiscordGuilds, r as resolveDiscordAllowlistToken, t as buildDiscordUnresolvedResults } from "./resolve-allowlist-common-
|
|
4
|
+
import { i as listGuilds, n as filterDiscordGuilds, r as resolveDiscordAllowlistToken, t as buildDiscordUnresolvedResults } from "./resolve-allowlist-common-CWbE8XlH.js";
|
|
5
5
|
//#region extensions/discord/src/resolve-channels.ts
|
|
6
6
|
var resolve_channels_exports = /* @__PURE__ */ __exportAll({ resolveDiscordChannelAllowlist: () => resolveDiscordChannelAllowlist });
|
|
7
7
|
function parseDiscordChannelInput(raw) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as fetchDiscord } from "./api-
|
|
3
|
-
import { i as listGuilds, n as filterDiscordGuilds, r as resolveDiscordAllowlistToken, t as buildDiscordUnresolvedResults } from "./resolve-allowlist-common-
|
|
1
|
+
import { Jt as __exportAll } from "./send.receipt-BpBQED_5.js";
|
|
2
|
+
import { n as fetchDiscord } from "./api-DPRqYi4Z.js";
|
|
3
|
+
import { i as listGuilds, n as filterDiscordGuilds, r as resolveDiscordAllowlistToken, t as buildDiscordUnresolvedResults } from "./resolve-allowlist-common-CWbE8XlH.js";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/discord/src/resolve-users.ts
|
|
6
6
|
var resolve_users_exports = /* @__PURE__ */ __exportAll({ resolveDiscordUserAllowlist: () => resolveDiscordUserAllowlist });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { qt as resolveDiscordChannelId, r as createReusableDiscordReplyReference } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { a as mergeDiscordAccountConfig, o as resolveDefaultDiscordAccountId, t as createDiscordActionGate } from "./accounts-P19jm1lf.js";
|
|
3
|
-
import { d as readDiscordComponentSpec } from "./components-
|
|
4
|
-
import { _ as withNormalizedTimestamp, c as jsonResult, d as readNonNegativeIntegerParam, f as readPositiveIntegerParam, g as resolvePollMaxSelections, h as readStringParam, l as parseAvailableTags, m as readStringArrayParam, p as readReactionParams, r as sendDiscordComponentMessage, s as assertMediaNotDataUrl, u as readBooleanParam } from "./send.components-
|
|
5
|
-
import { n as
|
|
6
|
-
import { E as canManageGuildRoleDiscord, L as createDiscordRuntimeAccountContext, M as hasAnyGuildPermissionDiscord, N as isThreadChannelType$1, O as fetchChannelPermissionsDiscord, T as canManageGuildMemberRoleDiscord, d as resolveDiscordTargetChannelId, j as hasAnyChannelPermissionDiscord } from "./send.shared-
|
|
3
|
+
import { d as readDiscordComponentSpec } from "./components-BIBizbtZ.js";
|
|
4
|
+
import { _ as withNormalizedTimestamp, c as jsonResult, d as readNonNegativeIntegerParam, f as readPositiveIntegerParam, g as resolvePollMaxSelections, h as readStringParam, l as parseAvailableTags, m as readStringArrayParam, p as readReactionParams, r as sendDiscordComponentMessage, s as assertMediaNotDataUrl, u as readBooleanParam } from "./send.components-D0I39utR.js";
|
|
5
|
+
import { n as getPresence } from "./presence-cache-z1N8MbJ3.js";
|
|
6
|
+
import { E as canManageGuildRoleDiscord, L as createDiscordRuntimeAccountContext, M as hasAnyGuildPermissionDiscord, N as isThreadChannelType$1, O as fetchChannelPermissionsDiscord, T as canManageGuildMemberRoleDiscord, W as getGateway, d as resolveDiscordTargetChannelId, j as hasAnyChannelPermissionDiscord } from "./send.shared-wAwMhHDN.js";
|
|
7
7
|
import { a as normalizeDiscordSlug, c as resolveDiscordChannelConfigWithFallback, n as isDiscordGroupAllowedByPolicy } from "./allow-list-C-MqM-B_.js";
|
|
8
|
-
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-
|
|
9
|
-
import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-
|
|
10
|
-
import "./targets-
|
|
8
|
+
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-iJ0B4bAX.js";
|
|
9
|
+
import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-Bj61Q3a0.js";
|
|
10
|
+
import "./targets-69w7c3vU.js";
|
|
11
11
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
12
12
|
import { ChannelType, PermissionFlagsBits } from "discord-api-types/v10";
|
|
13
13
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -230,10 +230,11 @@ function createDiscordMessagingActionContext(params) {
|
|
|
230
230
|
includeWildcard: false
|
|
231
231
|
});
|
|
232
232
|
if (direct || !guildId) return direct;
|
|
233
|
+
const guildName = await resolveGuildName(guildId);
|
|
233
234
|
const named = resolveDiscordActionGuildEntry({
|
|
234
235
|
guilds,
|
|
235
236
|
guildId,
|
|
236
|
-
guildName:
|
|
237
|
+
guildName: guildName ?? void 0,
|
|
237
238
|
includeWildcard: false
|
|
238
239
|
});
|
|
239
240
|
if (named) return named;
|
|
@@ -288,17 +289,19 @@ function createDiscordMessagingActionContext(params) {
|
|
|
288
289
|
const target = await resolveReadTargetContext(targetChannelId);
|
|
289
290
|
if (guildId) {
|
|
290
291
|
if (target.guildId && target.guildId !== guildId) throw new Error("Discord read target channel is not allowed.");
|
|
292
|
+
const guildInfo = await resolveReadGuildEntry(guildId);
|
|
291
293
|
if (!isDiscordReadTargetAllowedInGuild({
|
|
292
294
|
groupPolicy,
|
|
293
|
-
guildInfo
|
|
295
|
+
guildInfo,
|
|
294
296
|
target
|
|
295
297
|
})) throw new Error("Discord read target channel is not allowed.");
|
|
296
298
|
return;
|
|
297
299
|
}
|
|
298
300
|
if (target.guildId) {
|
|
301
|
+
const guildInfo = await resolveReadGuildEntry(target.guildId);
|
|
299
302
|
if (!isDiscordReadTargetAllowedInGuild({
|
|
300
303
|
groupPolicy,
|
|
301
|
-
guildInfo
|
|
304
|
+
guildInfo,
|
|
302
305
|
target
|
|
303
306
|
})) throw new Error("Discord read target channel is not allowed.");
|
|
304
307
|
return;
|
|
@@ -1127,7 +1130,7 @@ async function handleDiscordMessageSendAction(ctx) {
|
|
|
1127
1130
|
result: await discordMessagingActionRuntime.sendDiscordComponentMessage(to, payload, {
|
|
1128
1131
|
...ctx.withOpts(),
|
|
1129
1132
|
silent,
|
|
1130
|
-
|
|
1133
|
+
reply: createReusableDiscordReplyReference(replyTo),
|
|
1131
1134
|
sessionKey: sessionKey ?? void 0,
|
|
1132
1135
|
agentId: agentId ?? void 0,
|
|
1133
1136
|
mediaUrl: mediaUrl ?? void 0,
|
|
@@ -1152,7 +1155,7 @@ async function handleDiscordMessageSendAction(ctx) {
|
|
|
1152
1155
|
ok: true,
|
|
1153
1156
|
result: await discordMessagingActionRuntime.sendVoiceMessageDiscord(to, mediaUrl, {
|
|
1154
1157
|
...ctx.withOpts(),
|
|
1155
|
-
replyTo,
|
|
1158
|
+
reply: createReusableDiscordReplyReference(replyTo),
|
|
1156
1159
|
silent
|
|
1157
1160
|
}),
|
|
1158
1161
|
voiceMessage: true
|
|
@@ -1171,7 +1174,7 @@ async function handleDiscordMessageSendAction(ctx) {
|
|
|
1171
1174
|
filename: filename ?? void 0,
|
|
1172
1175
|
mediaLocalRoots: ctx.options?.mediaLocalRoots,
|
|
1173
1176
|
mediaReadFile: ctx.options?.mediaReadFile,
|
|
1174
|
-
replyTo,
|
|
1177
|
+
reply: createReusableDiscordReplyReference(replyTo),
|
|
1175
1178
|
components,
|
|
1176
1179
|
embeds,
|
|
1177
1180
|
silent,
|
|
@@ -1254,7 +1257,7 @@ async function handleDiscordMessageSendAction(ctx) {
|
|
|
1254
1257
|
mediaUrl,
|
|
1255
1258
|
mediaLocalRoots: ctx.options?.mediaLocalRoots,
|
|
1256
1259
|
mediaReadFile: ctx.options?.mediaReadFile,
|
|
1257
|
-
replyTo
|
|
1260
|
+
reply: createReusableDiscordReplyReference(replyTo)
|
|
1258
1261
|
})
|
|
1259
1262
|
});
|
|
1260
1263
|
}
|
|
@@ -1376,7 +1379,7 @@ const ACTIVITY_TYPE_MAP = {
|
|
|
1376
1379
|
custom: 4,
|
|
1377
1380
|
competing: 5
|
|
1378
1381
|
};
|
|
1379
|
-
const VALID_STATUSES = new Set([
|
|
1382
|
+
const VALID_STATUSES = /* @__PURE__ */ new Set([
|
|
1380
1383
|
"online",
|
|
1381
1384
|
"dnd",
|
|
1382
1385
|
"idle",
|
|
@@ -1429,7 +1432,7 @@ async function handleDiscordPresenceAction(action, params, isActionEnabled) {
|
|
|
1429
1432
|
}
|
|
1430
1433
|
//#endregion
|
|
1431
1434
|
//#region extensions/discord/src/actions/runtime.ts
|
|
1432
|
-
const messagingActions = new Set([
|
|
1435
|
+
const messagingActions = /* @__PURE__ */ new Set([
|
|
1433
1436
|
"react",
|
|
1434
1437
|
"reactions",
|
|
1435
1438
|
"sticker",
|
|
@@ -1448,7 +1451,7 @@ const messagingActions = new Set([
|
|
|
1448
1451
|
"listPins",
|
|
1449
1452
|
"searchMessages"
|
|
1450
1453
|
]);
|
|
1451
|
-
const guildActions = new Set([
|
|
1454
|
+
const guildActions = /* @__PURE__ */ new Set([
|
|
1452
1455
|
"memberInfo",
|
|
1453
1456
|
"roleInfo",
|
|
1454
1457
|
"emojiList",
|
|
@@ -1471,12 +1474,12 @@ const guildActions = new Set([
|
|
|
1471
1474
|
"channelPermissionSet",
|
|
1472
1475
|
"channelPermissionRemove"
|
|
1473
1476
|
]);
|
|
1474
|
-
const moderationActions = new Set([
|
|
1477
|
+
const moderationActions = /* @__PURE__ */ new Set([
|
|
1475
1478
|
"timeout",
|
|
1476
1479
|
"kick",
|
|
1477
1480
|
"ban"
|
|
1478
1481
|
]);
|
|
1479
|
-
const presenceActions = new Set(["setPresence"]);
|
|
1482
|
+
const presenceActions = /* @__PURE__ */ new Set(["setPresence"]);
|
|
1480
1483
|
async function handleDiscordAction(params, cfg, options) {
|
|
1481
1484
|
const action = readStringParam(params, "action", { required: true });
|
|
1482
1485
|
const isActionEnabled = createDiscordActionGate({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as readDiscordChannelCreateParams, c as readDiscordParentIdParam, i as requiredGuildPermissionForModerationAction, n as isDiscordModerationAction, o as readDiscordChannelEditParams, r as readDiscordModerationCommand, s as readDiscordChannelMoveParams, t as handleDiscordAction } from "./runtime-
|
|
2
|
-
import { t as discordMessageActions } from "./channel-actions-
|
|
1
|
+
import { a as readDiscordChannelCreateParams, c as readDiscordParentIdParam, i as requiredGuildPermissionForModerationAction, n as isDiscordModerationAction, o as readDiscordChannelEditParams, r as readDiscordModerationCommand, s as readDiscordChannelMoveParams, t as handleDiscordAction } from "./runtime-C6rRmQ6l.js";
|
|
2
|
+
import { t as discordMessageActions } from "./channel-actions-D_fjVUZ_.js";
|
|
3
3
|
export { discordMessageActions, handleDiscordAction, isDiscordModerationAction, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, requiredGuildPermissionForModerationAction };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { x as resolveDiscordOutboundSessionRoute } from "./components-
|
|
2
|
-
import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./send.components-
|
|
3
|
-
import {
|
|
4
|
-
import { A as hasAllGuildPermissionsDiscord, M as hasAnyGuildPermissionDiscord, O as fetchChannelPermissionsDiscord, k as fetchMemberGuildPermissionsDiscord, w as DiscordSendError } from "./send.shared-
|
|
5
|
-
import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-
|
|
1
|
+
import { x as resolveDiscordOutboundSessionRoute } from "./components-BIBizbtZ.js";
|
|
2
|
+
import { n as registerBuiltDiscordComponentMessage, r as sendDiscordComponentMessage, t as editDiscordComponentMessage } from "./send.components-D0I39utR.js";
|
|
3
|
+
import { i as setPresence, n as getPresence, r as presenceCacheSize, t as clearPresences } from "./presence-cache-z1N8MbJ3.js";
|
|
4
|
+
import { A as hasAllGuildPermissionsDiscord, G as registerGateway, K as unregisterGateway, M as hasAnyGuildPermissionDiscord, O as fetchChannelPermissionsDiscord, U as clearGateways, W as getGateway, k as fetchMemberGuildPermissionsDiscord, w as DiscordSendError } from "./send.shared-wAwMhHDN.js";
|
|
5
|
+
import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-BX79ImQA.js";
|
|
6
6
|
import { _ as resolveGroupDmAllow, a as normalizeDiscordSlug, c as resolveDiscordChannelConfigWithFallback, d as resolveDiscordGuildEntry, g as resolveDiscordShouldRequireMention, n as isDiscordGroupAllowedByPolicy, r as normalizeDiscordAllowList, s as resolveDiscordChannelConfig, t as allowListMatches, u as resolveDiscordCommandAuthorized, v as shouldEmitDiscordReactionNotification } from "./allow-list-C-MqM-B_.js";
|
|
7
|
-
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, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./send-
|
|
8
|
-
import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-
|
|
7
|
+
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, c as sendWebhookMessageDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, m as listPinsDiscord, n as fetchReactionsDiscord, o as sendTypingDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./send-iJ0B4bAX.js";
|
|
8
|
+
import { n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-Bj61Q3a0.js";
|
|
9
9
|
import { r as setDiscordRuntime } from "./runtime-DgnVQ7zW.js";
|
|
10
|
-
import { a as readDiscordChannelCreateParams, c as readDiscordParentIdParam, i as requiredGuildPermissionForModerationAction, n as isDiscordModerationAction, o as readDiscordChannelEditParams, r as readDiscordModerationCommand, s as readDiscordChannelMoveParams, t as handleDiscordAction } from "./runtime-
|
|
11
|
-
import { t as discordMessageActions } from "./channel-actions-
|
|
10
|
+
import { a as readDiscordChannelCreateParams, c as readDiscordParentIdParam, i as requiredGuildPermissionForModerationAction, n as isDiscordModerationAction, o as readDiscordChannelEditParams, r as readDiscordModerationCommand, s as readDiscordChannelMoveParams, t as handleDiscordAction } from "./runtime-C6rRmQ6l.js";
|
|
11
|
+
import { t as discordMessageActions } from "./channel-actions-D_fjVUZ_.js";
|
|
12
12
|
import { C as resolveThreadBindingIdleTimeoutMs, E as resolveThreadBindingMaxAgeMs, T as resolveThreadBindingMaxAgeExpiresAt, d as isRecentlyUnboundThreadWebhookMessage, w as resolveThreadBindingInactivityExpiresAt } from "./thread-bindings.state-iSWjCYjB.js";
|
|
13
13
|
import { n as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-Chs3HgGa.js";
|
|
14
14
|
import { a as isAbortError, c as normalizeDiscordListenerTimeoutMs, i as DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, o as mergeAbortSignals, r as DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, s as normalizeDiscordInboundWorkerTimeoutMs, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, u as runDiscordTaskWithTimeout } from "./timeouts-C5TBc_9x.js";
|
|
15
|
-
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-
|
|
16
|
-
import { t as resolveDiscordUserAllowlist } from "./resolve-users-
|
|
17
|
-
import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-
|
|
18
|
-
import { a as reconcileAcpThreadBindingsOnStartup, c as resolveDiscordThreadBindingMaxAgeMs, i as listThreadBindingsForAccount, l as resolveThreadBindingsEnabled, n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey, s as resolveDiscordThreadBindingIdleTimeoutMs } from "./thread-bindings-
|
|
19
|
-
import { i as testing, n as createThreadBindingManager, r as getThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-
|
|
20
|
-
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-
|
|
15
|
+
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-CcpvWoRa.js";
|
|
16
|
+
import { t as resolveDiscordUserAllowlist } from "./resolve-users-DJamun9s.js";
|
|
17
|
+
import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-BjIf9lGs.js";
|
|
18
|
+
import { a as reconcileAcpThreadBindingsOnStartup, c as resolveDiscordThreadBindingMaxAgeMs, i as listThreadBindingsForAccount, l as resolveThreadBindingsEnabled, n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey, s as resolveDiscordThreadBindingIdleTimeoutMs } from "./thread-bindings-DsTxqu3E.js";
|
|
19
|
+
import { i as testing, n as createThreadBindingManager, r as getThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-Bwmtqc3E.js";
|
|
20
|
+
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-D1ImJEo2.js";
|
|
21
21
|
import "./runtime-api.actions.js";
|
|
22
|
-
import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-
|
|
22
|
+
import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-MLpDpN3Z.js";
|
|
23
23
|
import "./runtime-api.lookup.js";
|
|
24
|
-
import { E as sanitizeDiscordThreadName, c as createDiscordGatewayPlugin, f as createDiscordNativeCommand, l as resolveDiscordGatewayIntents, t as monitorDiscordProvider, u as waitForDiscordGatewayPluginRegistration, w as resolveDiscordReplyTarget, x as registerDiscordListener } from "./provider-
|
|
25
|
-
import { i as buildDiscordMediaPayload } from "./message-utils-
|
|
26
|
-
import { t as createDiscordMessageHandler } from "./message-handler-
|
|
27
|
-
import "./runtime-api.monitor-
|
|
24
|
+
import { E as sanitizeDiscordThreadName, c as createDiscordGatewayPlugin, f as createDiscordNativeCommand, l as resolveDiscordGatewayIntents, t as monitorDiscordProvider, u as waitForDiscordGatewayPluginRegistration, w as resolveDiscordReplyTarget, x as registerDiscordListener } from "./provider-Cm9QSAO8.js";
|
|
25
|
+
import { i as buildDiscordMediaPayload } from "./message-utils-B_3yA5bN.js";
|
|
26
|
+
import { t as createDiscordMessageHandler } from "./message-handler-DbrX-sHg.js";
|
|
27
|
+
import "./runtime-api.monitor-DoCAqUlv.js";
|
|
28
28
|
import "./runtime-api.send.js";
|
|
29
29
|
import "./runtime-api.threads.js";
|
|
30
30
|
export { DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS, DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, DiscordSendError, testing as __testing, testing, addRoleDiscord, allowListMatches, auditDiscordChannelPermissions, autoBindSpawnedDiscordSubagent, banMemberDiscord, buildDiscordMediaPayload, clearGateways, clearPresences, collectDiscordAuditChannelIds, createChannelDiscord, createDiscordGatewayPlugin, createDiscordMessageHandler, createDiscordNativeCommand, createNoopThreadBindingManager, createScheduledEventDiscord, createThreadBindingManager, createThreadDiscord, deleteChannelDiscord, deleteMessageDiscord, discordMessageActions, editChannelDiscord, editDiscordComponentMessage, editMessageDiscord, fetchChannelInfoDiscord, fetchChannelPermissionsDiscord, fetchDiscordApplicationId, fetchDiscordApplicationSummary, fetchMemberGuildPermissionsDiscord, fetchMemberInfoDiscord, fetchMessageDiscord, fetchReactionsDiscord, fetchRoleInfoDiscord, fetchVoiceStatusDiscord, formatThreadBindingDurationLabel, getGateway, getPresence, getThreadBindingManager, handleDiscordAction, hasAllGuildPermissionsDiscord, hasAnyGuildPermissionDiscord, isAbortError, isDiscordGroupAllowedByPolicy, isDiscordModerationAction, isRecentlyUnboundThreadWebhookMessage, kickMemberDiscord, listDiscordDirectoryGroupsLive, listDiscordDirectoryPeersLive, listGuildChannelsDiscord, listGuildEmojisDiscord, listPinsDiscord, listScheduledEventsDiscord, listThreadBindingsBySessionKey, listThreadBindingsForAccount, listThreadsDiscord, mergeAbortSignals, monitorDiscordProvider, moveChannelDiscord, normalizeDiscordAllowList, normalizeDiscordInboundWorkerTimeoutMs, normalizeDiscordListenerTimeoutMs, normalizeDiscordSlug, parseApplicationIdFromToken, pinMessageDiscord, presenceCacheSize, probeDiscord, reactMessageDiscord, readDiscordChannelCreateParams, readDiscordChannelEditParams, readDiscordChannelMoveParams, readDiscordModerationCommand, readDiscordParentIdParam, readMessagesDiscord, reconcileAcpThreadBindingsOnStartup, registerBuiltDiscordComponentMessage, registerDiscordListener, registerGateway, removeChannelPermissionDiscord, removeOwnReactionsDiscord, removeReactionDiscord, removeRoleDiscord, requiredGuildPermissionForModerationAction, resolveDiscordChannelAllowlist, resolveDiscordChannelConfig, resolveDiscordChannelConfigWithFallback, resolveDiscordCommandAuthorized, resolveDiscordGatewayIntents, resolveDiscordGuildEntry, resolveDiscordOutboundSessionRoute, resolveDiscordPrivilegedIntentsFromFlags, resolveDiscordReplyTarget, resolveDiscordShouldRequireMention, resolveDiscordThreadBindingIdleTimeoutMs, resolveDiscordThreadBindingMaxAgeMs, resolveDiscordUserAllowlist, resolveEventCoverImage, resolveGroupDmAllow, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingInactivityExpiresAt, resolveThreadBindingIntroText, resolveThreadBindingMaxAgeExpiresAt, resolveThreadBindingMaxAgeMs, resolveThreadBindingPersona, resolveThreadBindingPersonaFromRecord, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, runDiscordTaskWithTimeout, sanitizeDiscordThreadName, searchMessagesDiscord, sendDiscordComponentMessage, sendMessageDiscord, sendPollDiscord, sendStickerDiscord, sendTypingDiscord, sendVoiceMessageDiscord, sendWebhookMessageDiscord, setChannelPermissionDiscord, setDiscordRuntime, setPresence, setThreadBindingIdleTimeoutBySessionKey, setThreadBindingMaxAgeBySessionKey, shouldEmitDiscordReactionNotification, timeoutMemberDiscord, unbindThreadBindingsBySessionKey, unpinMessageDiscord, unregisterGateway, uploadEmojiDiscord, uploadStickerDiscord, waitForDiscordGatewayPluginRegistration };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-
|
|
1
|
+
import { n as listDiscordDirectoryGroupsLive, r as listDiscordDirectoryPeersLive } from "./directory-live-BX79ImQA.js";
|
|
2
2
|
import { r as setDiscordRuntime } from "./runtime-DgnVQ7zW.js";
|
|
3
|
-
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-
|
|
4
|
-
import { t as resolveDiscordUserAllowlist } from "./resolve-users-
|
|
5
|
-
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-
|
|
6
|
-
import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-
|
|
3
|
+
import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-CcpvWoRa.js";
|
|
4
|
+
import { t as resolveDiscordUserAllowlist } from "./resolve-users-DJamun9s.js";
|
|
5
|
+
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-D1ImJEo2.js";
|
|
6
|
+
import { r as collectDiscordAuditChannelIds, t as auditDiscordChannelPermissions } from "./audit-MLpDpN3Z.js";
|
|
7
7
|
export { auditDiscordChannelPermissions, collectDiscordAuditChannelIds, fetchDiscordApplicationId, fetchDiscordApplicationSummary, listDiscordDirectoryGroupsLive, listDiscordDirectoryPeersLive, parseApplicationIdFromToken, probeDiscord, resolveDiscordChannelAllowlist, resolveDiscordPrivilegedIntentsFromFlags, resolveDiscordUserAllowlist, setDiscordRuntime };
|