@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,49 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { d as readDiscordComponentSpec } from "./components-CBPNJhVP.js";
|
|
4
|
-
import { t as parseDiscordRetryAfterBodySeconds } from "./retry-after-D5_VmM-_.js";
|
|
1
|
+
import { a as resolveDiscordReplyReference, l as normalizeDiscordOutboundTarget, t as createDiscordSendReceipt, u as chunkDiscordTextWithMode } from "./send.receipt-BpBQED_5.js";
|
|
2
|
+
import { d as readDiscordComponentSpec } from "./components-BIBizbtZ.js";
|
|
5
3
|
import { n as notifyDiscordInboundEventOutboundPayloadSuccess } from "./inbound-event-delivery-CEPlt2uz.js";
|
|
6
4
|
import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
7
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
|
-
import { resolvePayloadMediaUrls, sendPayloadMediaSequenceOrFallback, sendTextMediaPayload } from "openclaw/plugin-sdk/reply-payload";
|
|
9
|
-
import {
|
|
6
|
+
import { getReplyPayloadTtsSupplement, resolvePayloadMediaUrls, sendPayloadMediaSequenceOrFallback, sendTextMediaPayload } from "openclaw/plugin-sdk/reply-payload";
|
|
7
|
+
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
10
8
|
import { createReplyToFanout, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
|
|
11
9
|
import { attachChannelToResult, createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
|
|
12
|
-
//#region extensions/discord/src/delivery-retry.ts
|
|
13
|
-
const DISCORD_DELIVERY_RETRY_DEFAULTS = {
|
|
14
|
-
attempts: 3,
|
|
15
|
-
minDelayMs: 1e3,
|
|
16
|
-
maxDelayMs: 3e4,
|
|
17
|
-
jitter: 0
|
|
18
|
-
};
|
|
19
|
-
function isRetryableDiscordDeliveryError(err) {
|
|
20
|
-
if (err instanceof DiscordError) return false;
|
|
21
|
-
const status = err.status ?? err.statusCode;
|
|
22
|
-
return status === 429 || status !== void 0 && status >= 500;
|
|
23
|
-
}
|
|
24
|
-
function getDiscordDeliveryRetryAfterMs(err) {
|
|
25
|
-
if (!err || typeof err !== "object") return;
|
|
26
|
-
const retryAfterSeconds = "retryAfter" in err ? parseDiscordRetryAfterBodySeconds(err.retryAfter) : void 0;
|
|
27
|
-
if (retryAfterSeconds !== void 0) return retryAfterSeconds * 1e3;
|
|
28
|
-
const retryAfterRaw = err.headers?.["retry-after"];
|
|
29
|
-
if (!retryAfterRaw) return;
|
|
30
|
-
const headerSeconds = parseDiscordRetryAfterBodySeconds(retryAfterRaw);
|
|
31
|
-
return headerSeconds === void 0 ? void 0 : headerSeconds * 1e3;
|
|
32
|
-
}
|
|
33
|
-
async function withDiscordDeliveryRetry(params) {
|
|
34
|
-
const retryConfig = resolveRetryConfig(DISCORD_DELIVERY_RETRY_DEFAULTS, resolveDiscordAccount({
|
|
35
|
-
cfg: params.cfg,
|
|
36
|
-
accountId: params.accountId
|
|
37
|
-
}).config.retry);
|
|
38
|
-
return await retryAsync(params.fn, {
|
|
39
|
-
...retryConfig,
|
|
40
|
-
shouldRetry: (err) => isRetryableDiscordDeliveryError(err),
|
|
41
|
-
retryAfterMs: getDiscordDeliveryRetryAfterMs
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
10
|
//#region extensions/discord/src/media-detection.ts
|
|
46
|
-
const DISCORD_VIDEO_MEDIA_EXTENSIONS = new Set([
|
|
11
|
+
const DISCORD_VIDEO_MEDIA_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
47
12
|
".avi",
|
|
48
13
|
".m4v",
|
|
49
14
|
".mkv",
|
|
@@ -84,11 +49,11 @@ function normalizeDiscordApprovalPayload(payload) {
|
|
|
84
49
|
}
|
|
85
50
|
//#endregion
|
|
86
51
|
//#region extensions/discord/src/outbound-components.ts
|
|
87
|
-
const loadDiscordComponentSend = createLazyRuntimeNamedExport(() => import("./send.components-
|
|
52
|
+
const loadDiscordComponentSend = createLazyRuntimeNamedExport(() => import("./send.components-D0I39utR.js").then((n) => n.i), "sendDiscordComponentMessage");
|
|
88
53
|
async function sendDiscordComponentMessageLazy(...args) {
|
|
89
54
|
return await (await loadDiscordComponentSend())(...args);
|
|
90
55
|
}
|
|
91
|
-
const loadDiscordSharedInteractive = createLazyRuntimeModule(() => import("./components-
|
|
56
|
+
const loadDiscordSharedInteractive = createLazyRuntimeModule(() => import("./components-BIBizbtZ.js").then((n) => n.a));
|
|
92
57
|
function addPayloadTextFallback(spec, payload) {
|
|
93
58
|
return spec.text ? spec : {
|
|
94
59
|
...spec,
|
|
@@ -119,7 +84,7 @@ async function resolveDiscordComponentSpec(payload) {
|
|
|
119
84
|
}
|
|
120
85
|
//#endregion
|
|
121
86
|
//#region extensions/discord/src/outbound-send-context.ts
|
|
122
|
-
const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-
|
|
87
|
+
const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-iJ0B4bAX.js").then((n) => n.t));
|
|
123
88
|
function resolveDiscordOutboundTarget(params) {
|
|
124
89
|
if (params.threadId == null) return params.to;
|
|
125
90
|
const threadId = normalizeOptionalStringifiedId(params.threadId) ?? "";
|
|
@@ -137,28 +102,29 @@ function resolveDiscordFormattingOptions(ctx) {
|
|
|
137
102
|
}
|
|
138
103
|
async function createDiscordPayloadSendContext(ctx) {
|
|
139
104
|
const runtime = await loadDiscordSendRuntime();
|
|
105
|
+
const nextReplyToId = createReplyToFanout(ctx);
|
|
140
106
|
return {
|
|
141
107
|
target: resolveDiscordOutboundTarget({
|
|
142
108
|
to: ctx.to,
|
|
143
109
|
threadId: ctx.threadId
|
|
144
110
|
}),
|
|
145
111
|
formatting: resolveDiscordFormattingOptions(ctx),
|
|
146
|
-
|
|
147
|
-
replyToId:
|
|
112
|
+
resolveReply: () => resolveDiscordReplyReference({
|
|
113
|
+
replyToId: nextReplyToId(),
|
|
148
114
|
replyToIdSource: ctx.replyToIdSource,
|
|
149
115
|
replyToMode: ctx.replyToMode
|
|
150
116
|
}),
|
|
151
117
|
send: resolveOutboundSendDep(ctx.deps, "discord") ?? runtime.sendMessageDiscord,
|
|
152
|
-
sendVoice: resolveOutboundSendDep(ctx.deps, "discordVoice") ?? runtime.sendVoiceMessageDiscord
|
|
153
|
-
withRetry: async (fn) => await withDiscordDeliveryRetry({
|
|
154
|
-
cfg: ctx.cfg,
|
|
155
|
-
accountId: ctx.accountId,
|
|
156
|
-
fn
|
|
157
|
-
})
|
|
118
|
+
sendVoice: resolveOutboundSendDep(ctx.deps, "discordVoice") ?? runtime.sendVoiceMessageDiscord
|
|
158
119
|
};
|
|
159
120
|
}
|
|
160
121
|
//#endregion
|
|
161
122
|
//#region extensions/discord/src/outbound-payload.ts
|
|
123
|
+
function resolveDiscordDeliveryProgress(ctx) {
|
|
124
|
+
return ctx.onDeliveryResult ? async (result) => {
|
|
125
|
+
await ctx.onDeliveryResult?.(attachChannelToResult("discord", result));
|
|
126
|
+
} : void 0;
|
|
127
|
+
}
|
|
162
128
|
function createDiscordUnknownPayloadResult(target) {
|
|
163
129
|
return {
|
|
164
130
|
messageId: "",
|
|
@@ -170,17 +136,17 @@ function createDiscordUnknownPayloadResult(target) {
|
|
|
170
136
|
})
|
|
171
137
|
};
|
|
172
138
|
}
|
|
173
|
-
function resolveDiscordDeliveryOptions(ctx, sendContext) {
|
|
139
|
+
function resolveDiscordDeliveryOptions(ctx, sendContext, reply = sendContext.resolveReply()) {
|
|
174
140
|
return {
|
|
175
|
-
|
|
141
|
+
reply,
|
|
176
142
|
accountId: ctx.accountId ?? void 0,
|
|
177
143
|
silent: ctx.silent ?? void 0,
|
|
178
144
|
cfg: ctx.cfg
|
|
179
145
|
};
|
|
180
146
|
}
|
|
181
|
-
function resolveDiscordFormattedDeliveryOptions(ctx, sendContext) {
|
|
147
|
+
function resolveDiscordFormattedDeliveryOptions(ctx, sendContext, reply = sendContext.resolveReply()) {
|
|
182
148
|
return {
|
|
183
|
-
...resolveDiscordDeliveryOptions(ctx, sendContext),
|
|
149
|
+
...resolveDiscordDeliveryOptions(ctx, sendContext, reply),
|
|
184
150
|
...sendContext.formatting
|
|
185
151
|
};
|
|
186
152
|
}
|
|
@@ -202,21 +168,36 @@ async function sendDiscordOutboundPayload(params) {
|
|
|
202
168
|
const mediaUrls = resolvePayloadMediaUrls(payload);
|
|
203
169
|
const sendContext = await createDiscordPayloadSendContext(ctx);
|
|
204
170
|
if (payload.audioAsVoice && mediaUrls.length > 0) {
|
|
205
|
-
const
|
|
206
|
-
let
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
171
|
+
const voiceReply = sendContext.resolveReply();
|
|
172
|
+
let deliveredVoice = false;
|
|
173
|
+
let lastResult;
|
|
174
|
+
try {
|
|
175
|
+
lastResult = await sendContext.sendVoice(sendContext.target, mediaUrls[0], { ...resolveDiscordDeliveryOptions(ctx, sendContext, voiceReply) });
|
|
176
|
+
deliveredVoice = true;
|
|
177
|
+
} catch (err) {
|
|
178
|
+
const supplement = getReplyPayloadTtsSupplement(payload);
|
|
179
|
+
const visibleFallbackText = payload.text?.trim() ? payload.text : void 0;
|
|
180
|
+
const hiddenFallbackText = supplement?.visibleTextAlreadyDelivered ? void 0 : supplement?.spokenText;
|
|
181
|
+
const fallbackText = visibleFallbackText ?? hiddenFallbackText;
|
|
182
|
+
if (!fallbackText) if (supplement?.visibleTextAlreadyDelivered) lastResult = createDiscordUnknownPayloadResult(sendContext.target);
|
|
183
|
+
else throw err;
|
|
184
|
+
else lastResult = await sendContext.send(sendContext.target, fallbackText, {
|
|
185
|
+
verbose: false,
|
|
186
|
+
...resolveDiscordFormattedDeliveryOptions(ctx, sendContext, voiceReply),
|
|
187
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
if (deliveredVoice) await ctx.onDeliveryResult?.(attachChannelToResult("discord", lastResult));
|
|
191
|
+
if (deliveredVoice && payload.text?.trim()) lastResult = await sendContext.send(sendContext.target, payload.text, {
|
|
211
192
|
verbose: false,
|
|
212
193
|
...resolveDiscordFormattedDeliveryOptions(ctx, sendContext),
|
|
213
|
-
|
|
214
|
-
})
|
|
215
|
-
for (const mediaUrl of mediaUrls.slice(1)) lastResult = await sendContext.
|
|
194
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
195
|
+
});
|
|
196
|
+
for (const mediaUrl of mediaUrls.slice(1)) lastResult = await sendContext.send(sendContext.target, "", {
|
|
216
197
|
verbose: false,
|
|
217
198
|
...resolveDiscordMediaDeliveryOptions(ctx, sendContext, mediaUrl),
|
|
218
|
-
|
|
219
|
-
})
|
|
199
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
200
|
+
});
|
|
220
201
|
return attachChannelToResult("discord", lastResult);
|
|
221
202
|
}
|
|
222
203
|
const componentSpec = await resolveDiscordComponentSpec(payload);
|
|
@@ -229,20 +210,22 @@ async function sendDiscordOutboundPayload(params) {
|
|
|
229
210
|
text: payload.text ?? "",
|
|
230
211
|
mediaUrls,
|
|
231
212
|
fallbackResult: createDiscordUnknownPayloadResult(sendContext.target),
|
|
232
|
-
sendNoMedia: async () => await sendContext.
|
|
213
|
+
sendNoMedia: async () => await sendContext.send(sendContext.target, payload.text ?? "", {
|
|
233
214
|
verbose: false,
|
|
234
215
|
components: nativeComponents,
|
|
235
216
|
embeds,
|
|
236
217
|
filename,
|
|
237
|
-
...resolveDiscordFormattedDeliveryOptions(ctx, sendContext)
|
|
238
|
-
|
|
239
|
-
|
|
218
|
+
...resolveDiscordFormattedDeliveryOptions(ctx, sendContext),
|
|
219
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
220
|
+
}),
|
|
221
|
+
send: async ({ text, mediaUrl, isFirst }) => await sendContext.send(sendContext.target, text, {
|
|
240
222
|
verbose: false,
|
|
241
223
|
...resolveDiscordMediaDeliveryOptions(ctx, sendContext, mediaUrl),
|
|
242
224
|
components: isFirst ? nativeComponents : void 0,
|
|
243
225
|
embeds: isFirst ? embeds : void 0,
|
|
244
|
-
filename: isFirst ? filename : void 0
|
|
245
|
-
|
|
226
|
+
filename: isFirst ? filename : void 0,
|
|
227
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
228
|
+
})
|
|
246
229
|
}));
|
|
247
230
|
return await sendTextMediaPayload({
|
|
248
231
|
channel: "discord",
|
|
@@ -257,13 +240,22 @@ async function sendDiscordOutboundPayload(params) {
|
|
|
257
240
|
text: payload.text ?? "",
|
|
258
241
|
mediaUrls,
|
|
259
242
|
fallbackResult: createDiscordUnknownPayloadResult(sendContext.target),
|
|
260
|
-
sendNoMedia: async () =>
|
|
243
|
+
sendNoMedia: async () => {
|
|
244
|
+
return await sendDiscordComponentMessageLazy(sendContext.target, componentSpec, {
|
|
245
|
+
...resolveDiscordFormattedDeliveryOptions(ctx, sendContext),
|
|
246
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
247
|
+
});
|
|
248
|
+
},
|
|
261
249
|
send: async ({ text, mediaUrl, isFirst }) => {
|
|
262
|
-
if (isFirst) return await
|
|
263
|
-
|
|
250
|
+
if (isFirst) return await sendDiscordComponentMessageLazy(sendContext.target, componentSpec, {
|
|
251
|
+
...resolveDiscordMediaDeliveryOptions(ctx, sendContext, mediaUrl),
|
|
252
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
253
|
+
});
|
|
254
|
+
return await sendContext.send(sendContext.target, text, {
|
|
264
255
|
verbose: false,
|
|
265
|
-
...resolveDiscordMediaDeliveryOptions(ctx, sendContext, mediaUrl)
|
|
266
|
-
|
|
256
|
+
...resolveDiscordMediaDeliveryOptions(ctx, sendContext, mediaUrl),
|
|
257
|
+
onDeliveryResult: resolveDiscordDeliveryProgress(ctx)
|
|
258
|
+
});
|
|
267
259
|
}
|
|
268
260
|
}));
|
|
269
261
|
}
|
|
@@ -276,12 +268,12 @@ const DISCORD_INTERNAL_RUNTIME_SCAFFOLDING_TAG_RE = /<\s*\/?\s*(?:system-reminde
|
|
|
276
268
|
function stripDiscordInternalRuntimeScaffolding(text) {
|
|
277
269
|
return text.replace(DISCORD_INTERNAL_RUNTIME_SCAFFOLDING_BLOCK_RE, "").replace(DISCORD_INTERNAL_RUNTIME_SCAFFOLDING_SELF_CLOSING_RE, "").replace(DISCORD_INTERNAL_RUNTIME_SCAFFOLDING_TAG_RE, "");
|
|
278
270
|
}
|
|
279
|
-
const loadDiscordThreadBindings = createLazyRuntimeModule(() => import("./thread-bindings-
|
|
271
|
+
const loadDiscordThreadBindings = createLazyRuntimeModule(() => import("./thread-bindings-DsTxqu3E.js").then((n) => n.t));
|
|
280
272
|
function resolveDiscordWebhookIdentity(params) {
|
|
281
273
|
const usernameRaw = normalizeOptionalString(params.identity?.name);
|
|
282
274
|
const fallbackUsername = normalizeOptionalString(params.binding.label) ?? params.binding.agentId;
|
|
283
275
|
return {
|
|
284
|
-
username: (usernameRaw || fallbackUsername || ""
|
|
276
|
+
username: truncateUtf16Safe(usernameRaw || fallbackUsername || "", 80) || void 0,
|
|
285
277
|
avatarUrl: normalizeOptionalString(params.identity?.avatarUrl)
|
|
286
278
|
};
|
|
287
279
|
}
|
|
@@ -369,7 +361,7 @@ const discordOutbound = {
|
|
|
369
361
|
}),
|
|
370
362
|
...createAttachedChannelResultAdapter({
|
|
371
363
|
channel: "discord",
|
|
372
|
-
sendText: async ({ cfg, to, text, accountId, deps, replyToId, threadId, identity, silent, formatting }) => {
|
|
364
|
+
sendText: async ({ cfg, to, text, accountId, deps, replyToId, replyToIdSource, replyToMode, threadId, identity, silent, formatting, onDeliveryResult }) => {
|
|
373
365
|
if (!silent) {
|
|
374
366
|
const webhookResult = await maybeSendDiscordWebhookText({
|
|
375
367
|
cfg,
|
|
@@ -381,100 +373,94 @@ const discordOutbound = {
|
|
|
381
373
|
}).catch(() => null);
|
|
382
374
|
if (webhookResult) return webhookResult;
|
|
383
375
|
}
|
|
384
|
-
|
|
385
|
-
|
|
376
|
+
return await (resolveOutboundSendDep(deps, "discord") ?? (await loadDiscordSendRuntime()).sendMessageDiscord)(resolveDiscordOutboundTarget({
|
|
377
|
+
to,
|
|
378
|
+
threadId
|
|
379
|
+
}), text, {
|
|
380
|
+
verbose: false,
|
|
381
|
+
reply: resolveDiscordReplyReference({
|
|
382
|
+
replyToId,
|
|
383
|
+
replyToIdSource,
|
|
384
|
+
replyToMode
|
|
385
|
+
}),
|
|
386
|
+
accountId: accountId ?? void 0,
|
|
387
|
+
silent: silent ?? void 0,
|
|
386
388
|
cfg,
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}), text, {
|
|
392
|
-
verbose: false,
|
|
393
|
-
replyTo: replyToId ?? void 0,
|
|
394
|
-
accountId: accountId ?? void 0,
|
|
395
|
-
silent: silent ?? void 0,
|
|
396
|
-
cfg,
|
|
397
|
-
...resolveDiscordFormattingOptions({ formatting })
|
|
398
|
-
})
|
|
389
|
+
...resolveDiscordFormattingOptions({ formatting }),
|
|
390
|
+
onDeliveryResult: onDeliveryResult ? async (result) => {
|
|
391
|
+
await onDeliveryResult(attachChannelToResult("discord", result));
|
|
392
|
+
} : void 0
|
|
399
393
|
});
|
|
400
394
|
},
|
|
401
|
-
sendMedia: async ({ cfg, to, text, mediaUrl, audioAsVoice, mediaAccess, mediaLocalRoots, mediaReadFile, accountId, deps, replyToId, threadId, silent, formatting }) => {
|
|
395
|
+
sendMedia: async ({ cfg, to, text, mediaUrl, audioAsVoice, mediaAccess, mediaLocalRoots, mediaReadFile, accountId, deps, replyToId, replyToIdSource, replyToMode, threadId, silent, formatting, onDeliveryResult }) => {
|
|
402
396
|
const send = resolveOutboundSendDep(deps, "discord") ?? (await loadDiscordSendRuntime()).sendMessageDiscord;
|
|
403
397
|
const target = resolveDiscordOutboundTarget({
|
|
404
398
|
to,
|
|
405
399
|
threadId
|
|
406
400
|
});
|
|
407
401
|
const formattingOptions = resolveDiscordFormattingOptions({ formatting });
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
});
|
|
420
|
-
}
|
|
402
|
+
const reply = resolveDiscordReplyReference({
|
|
403
|
+
replyToId,
|
|
404
|
+
replyToIdSource,
|
|
405
|
+
replyToMode
|
|
406
|
+
});
|
|
407
|
+
if (audioAsVoice && mediaUrl) return await (resolveOutboundSendDep(deps, "discordVoice") ?? (await loadDiscordSendRuntime()).sendVoiceMessageDiscord)(target, mediaUrl, {
|
|
408
|
+
cfg,
|
|
409
|
+
reply,
|
|
410
|
+
accountId: accountId ?? void 0,
|
|
411
|
+
silent: silent ?? void 0
|
|
412
|
+
});
|
|
421
413
|
if (text.trim() && mediaUrl && isLikelyDiscordVideoMedia(mediaUrl)) {
|
|
422
|
-
await
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
replyTo: replyToId ?? void 0,
|
|
428
|
-
accountId: accountId ?? void 0,
|
|
429
|
-
silent: silent ?? void 0,
|
|
430
|
-
cfg,
|
|
431
|
-
...formattingOptions
|
|
432
|
-
})
|
|
433
|
-
});
|
|
434
|
-
return await withDiscordDeliveryRetry({
|
|
414
|
+
await send(target, text, {
|
|
415
|
+
verbose: false,
|
|
416
|
+
reply,
|
|
417
|
+
accountId: accountId ?? void 0,
|
|
418
|
+
silent: silent ?? void 0,
|
|
435
419
|
cfg,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
mediaAccess,
|
|
441
|
-
mediaLocalRoots,
|
|
442
|
-
mediaReadFile,
|
|
443
|
-
accountId: accountId ?? void 0,
|
|
444
|
-
silent: silent ?? void 0,
|
|
445
|
-
cfg,
|
|
446
|
-
...formattingOptions
|
|
447
|
-
})
|
|
420
|
+
...formattingOptions,
|
|
421
|
+
onDeliveryResult: onDeliveryResult ? async (result) => {
|
|
422
|
+
await onDeliveryResult(attachChannelToResult("discord", result));
|
|
423
|
+
} : void 0
|
|
448
424
|
});
|
|
449
|
-
|
|
450
|
-
return await withDiscordDeliveryRetry({
|
|
451
|
-
cfg,
|
|
452
|
-
accountId,
|
|
453
|
-
fn: async () => await send(target, text, {
|
|
425
|
+
return await send(target, "", {
|
|
454
426
|
verbose: false,
|
|
455
427
|
mediaUrl,
|
|
428
|
+
reply: reply?.scope === "all" ? reply : void 0,
|
|
456
429
|
mediaAccess,
|
|
457
430
|
mediaLocalRoots,
|
|
458
431
|
mediaReadFile,
|
|
459
|
-
replyTo: replyToId ?? void 0,
|
|
460
432
|
accountId: accountId ?? void 0,
|
|
461
433
|
silent: silent ?? void 0,
|
|
462
434
|
cfg,
|
|
463
|
-
...formattingOptions
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
435
|
+
...formattingOptions,
|
|
436
|
+
onDeliveryResult: onDeliveryResult ? async (result) => {
|
|
437
|
+
await onDeliveryResult(attachChannelToResult("discord", result));
|
|
438
|
+
} : void 0
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
return await send(target, text, {
|
|
442
|
+
verbose: false,
|
|
443
|
+
mediaUrl,
|
|
444
|
+
mediaAccess,
|
|
445
|
+
mediaLocalRoots,
|
|
446
|
+
mediaReadFile,
|
|
447
|
+
reply,
|
|
474
448
|
accountId: accountId ?? void 0,
|
|
475
449
|
silent: silent ?? void 0,
|
|
476
|
-
cfg
|
|
477
|
-
|
|
450
|
+
cfg,
|
|
451
|
+
...formattingOptions,
|
|
452
|
+
onDeliveryResult: onDeliveryResult ? async (result) => {
|
|
453
|
+
await onDeliveryResult(attachChannelToResult("discord", result));
|
|
454
|
+
} : void 0
|
|
455
|
+
});
|
|
456
|
+
},
|
|
457
|
+
sendPoll: async ({ cfg, to, poll, accountId, threadId, silent }) => await (await loadDiscordSendRuntime()).sendPollDiscord(resolveDiscordOutboundTarget({
|
|
458
|
+
to,
|
|
459
|
+
threadId
|
|
460
|
+
}), poll, {
|
|
461
|
+
accountId: accountId ?? void 0,
|
|
462
|
+
silent: silent ?? void 0,
|
|
463
|
+
cfg
|
|
478
464
|
})
|
|
479
465
|
}),
|
|
480
466
|
afterDeliverPayload: async ({ target, payload }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as __exportAll } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
|
|
3
3
|
import { readProviderJsonResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
4
4
|
//#region extensions/discord/src/pluralkit.ts
|
|
@@ -4,7 +4,7 @@ import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
|
4
4
|
import { getFileExtension } from "openclaw/plugin-sdk/media-mime";
|
|
5
5
|
//#region extensions/discord/src/monitor/preflight-audio.ts
|
|
6
6
|
const loadDiscordPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio.runtime-CoCXMM8r.js"));
|
|
7
|
-
const AUDIO_ATTACHMENT_MIME_BY_EXT = new Map([
|
|
7
|
+
const AUDIO_ATTACHMENT_MIME_BY_EXT = /* @__PURE__ */ new Map([
|
|
8
8
|
[".aac", "audio/aac"],
|
|
9
9
|
[".caf", "audio/x-caf"],
|
|
10
10
|
[".flac", "audio/flac"],
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region extensions/discord/src/monitor/presence-cache.ts
|
|
2
|
+
/**
|
|
3
|
+
* In-memory cache of Discord user presence data.
|
|
4
|
+
* Populated by PRESENCE_UPDATE gateway events when the GuildPresences intent is enabled.
|
|
5
|
+
* Per-account maps are capped to prevent unbounded growth (#4948).
|
|
6
|
+
*/
|
|
7
|
+
const MAX_PRESENCE_PER_ACCOUNT = 5e3;
|
|
8
|
+
const presenceCache = /* @__PURE__ */ new Map();
|
|
9
|
+
function resolveAccountKey(accountId) {
|
|
10
|
+
return accountId ?? "default";
|
|
11
|
+
}
|
|
12
|
+
/** Update cached presence for a user. */
|
|
13
|
+
function setPresence(accountId, userId, data) {
|
|
14
|
+
const accountKey = resolveAccountKey(accountId);
|
|
15
|
+
let accountCache = presenceCache.get(accountKey);
|
|
16
|
+
if (!accountCache) {
|
|
17
|
+
accountCache = /* @__PURE__ */ new Map();
|
|
18
|
+
presenceCache.set(accountKey, accountCache);
|
|
19
|
+
}
|
|
20
|
+
accountCache.set(userId, data);
|
|
21
|
+
if (accountCache.size > MAX_PRESENCE_PER_ACCOUNT) {
|
|
22
|
+
const oldest = accountCache.keys().next().value;
|
|
23
|
+
if (oldest !== void 0) accountCache.delete(oldest);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** Get cached presence for a user. Returns undefined if not cached. */
|
|
27
|
+
function getPresence(accountId, userId) {
|
|
28
|
+
return presenceCache.get(resolveAccountKey(accountId))?.get(userId);
|
|
29
|
+
}
|
|
30
|
+
/** Clear cached presence data. */
|
|
31
|
+
function clearPresences(accountId) {
|
|
32
|
+
if (accountId) {
|
|
33
|
+
presenceCache.delete(resolveAccountKey(accountId));
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
presenceCache.clear();
|
|
37
|
+
}
|
|
38
|
+
/** Get the number of cached presence entries. */
|
|
39
|
+
function presenceCacheSize() {
|
|
40
|
+
let total = 0;
|
|
41
|
+
for (const accountCache of presenceCache.values()) total += accountCache.size;
|
|
42
|
+
return total;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { setPresence as i, getPresence as n, presenceCacheSize as r, clearPresences as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as normalizeDiscordToken } from "./accounts-P19jm1lf.js";
|
|
2
|
-
import { n as fetchDiscord, t as DiscordApiError } from "./api-
|
|
3
|
-
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
|
|
2
|
+
import { n as fetchDiscord, t as DiscordApiError } from "./api-DPRqYi4Z.js";
|
|
4
3
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
|
+
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
|
|
5
5
|
import { readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
|
|
6
6
|
import { fetchWithTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
7
7
|
//#region extensions/discord/src/probe.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-
|
|
1
|
+
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-D1ImJEo2.js";
|
|
2
2
|
export { fetchDiscordApplicationId, fetchDiscordApplicationSummary, parseApplicationIdFromToken, probeDiscord, resolveDiscordPrivilegedIntentsFromFlags };
|