@openclaw/discord 2026.7.1-beta.1 → 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-DzoY4ufU.js → approval-handler.runtime-Bw2pZNk1.js} +24 -4
- package/dist/{audit-BXGKCgbA.js → audit-MLpDpN3Z.js} +3 -3
- package/dist/{channel-actions-CamohoDF.js → channel-actions-D_fjVUZ_.js} +6 -9
- package/dist/{channel-actions.runtime-C1y4B9J0.js → channel-actions.runtime-CVHlFqQg.js} +5 -5
- package/dist/channel-config-api.js +1 -1
- package/dist/{channel-Da36gsaP.js → channel-kBTCV_g9.js} +27 -47
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-KhiBHeGT.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-BEsyd7A1.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-D3ngpo-Y.js → doctor-Bgoxm5AN.js} +1 -1
- package/dist/{handle-action.guild-admin-zmPNo8TF.js → handle-action.guild-admin-CgJSNVui.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{manager.runtime-TLLuQzsA.js → manager.runtime-D-ZJn56X.js} +28 -15
- package/dist/{message-handler-ClZrgeka.js → message-handler-DbrX-sHg.js} +12 -16
- package/dist/{message-handler.preflight-CjnHwEwP.js → message-handler.preflight-Dd-xQ-qv.js} +38 -44
- package/dist/{message-handler.process-OruF8JFV.js → message-handler.process-CV1GmuBj.js} +33 -95
- package/dist/{message-utils-C_tYBSAu.js → message-utils-B_3yA5bN.js} +11 -6
- package/dist/{outbound-adapter-B0iwUl6c.js → outbound-adapter-82RWi_SR.js} +140 -166
- package/dist/{pluralkit-DaWTJTmF.js → pluralkit-DcD-3EcL.js} +1 -1
- package/dist/{preflight-audio-ClWbnQto.js → preflight-audio-DYL2ABgA.js} +3 -6
- 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-CChQJujf.js → provider-Cm9QSAO8.js} +65 -65
- package/dist/{provider-session.runtime-Dy71XetI.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-C-fNslbg.js → runtime-C6rRmQ6l.js} +344 -313
- 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-BYTToRY1.js → send-iJ0B4bAX.js} +28 -17
- package/dist/{send.components-Cmv2qMB5.js → send.components-D0I39utR.js} +18 -15
- package/dist/{send.outbound-BqvRMxXy.js → send.outbound-Bj61Q3a0.js} +105 -20
- package/dist/{send.receipt-CK162xD0.js → send.receipt-BpBQED_5.js} +51 -26
- package/dist/{send.shared-YLGCAMjV.js → send.shared-wAwMhHDN.js} +147 -41
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{shared-D11J9bXI.js → shared-BQVKfnev.js} +5 -12
- package/dist/{subagent-hooks-cE_tFGCX.js → subagent-hooks-B-bJxxGg.js} +2 -2
- package/dist/subagent-hooks-api.js +2 -5
- 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-C1yhwdOw.js → thread-bindings-DsTxqu3E.js} +4 -4
- package/dist/{thread-bindings.discord-api-XBJmlLaf.js → thread-bindings.discord-api-BjIf9lGs.js} +4 -4
- package/dist/{thread-bindings.manager-BdFs0ot7.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-BiOSsG0m.js +0 -2
- package/dist/runtime-api.monitor-CN1_mmYY.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
|
@@ -5,13 +5,16 @@ import { ApplicationCommandOptionType, ApplicationCommandType, ButtonStyle, Comp
|
|
|
5
5
|
import { asDateTimestampMs, clampTimerTimeoutMs, parseFiniteNumber, parseStrictNonNegativeInteger, resolveExpiresAtMsFromDurationMs, resolveIntegerOption, resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
6
6
|
import { createHash, randomBytes } from "node:crypto";
|
|
7
7
|
import path from "node:path";
|
|
8
|
+
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
8
9
|
import { privateFileStore } from "openclaw/plugin-sdk/security-runtime";
|
|
9
10
|
import { Type } from "typebox";
|
|
10
11
|
import { Check } from "typebox/value";
|
|
11
12
|
import { inspect } from "node:util";
|
|
12
13
|
import { gunzipSync } from "node:zlib";
|
|
13
14
|
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
15
|
+
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
14
16
|
import { chunkMarkdownTextWithMode } from "openclaw/plugin-sdk/reply-chunking";
|
|
17
|
+
import { isSingleUseReplyToMode } from "openclaw/plugin-sdk/reply-reference";
|
|
15
18
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
|
|
16
19
|
//#region \0rolldown/runtime.js
|
|
17
20
|
var __defProp = Object.defineProperty;
|
|
@@ -275,22 +278,9 @@ async function createChannelWebhook(rest, channelId, data) {
|
|
|
275
278
|
* file lock. Discord deployers only run inside the gateway process, so an
|
|
276
279
|
* in-process mutex is sufficient for the documented concurrency surface.
|
|
277
280
|
*/
|
|
278
|
-
const cachePersistLocks =
|
|
281
|
+
const cachePersistLocks = new KeyedAsyncQueue();
|
|
279
282
|
async function withCachePersistLock(storePath, fn) {
|
|
280
|
-
|
|
281
|
-
let release = () => {};
|
|
282
|
-
const next = new Promise((resolve) => {
|
|
283
|
-
release = resolve;
|
|
284
|
-
});
|
|
285
|
-
const chained = previous.then(() => next);
|
|
286
|
-
cachePersistLocks.set(storePath, chained);
|
|
287
|
-
try {
|
|
288
|
-
await previous;
|
|
289
|
-
return await fn();
|
|
290
|
-
} finally {
|
|
291
|
-
release();
|
|
292
|
-
if (cachePersistLocks.get(storePath) === chained) cachePersistLocks.delete(storePath);
|
|
293
|
-
}
|
|
283
|
+
return await cachePersistLocks.enqueue(storePath, fn);
|
|
294
284
|
}
|
|
295
285
|
var DiscordCommandDeployer = class {
|
|
296
286
|
constructor(params) {
|
|
@@ -430,7 +420,7 @@ function stableCommandKey(command) {
|
|
|
430
420
|
}
|
|
431
421
|
function comparableCommand(value) {
|
|
432
422
|
if (!value || typeof value !== "object") return value;
|
|
433
|
-
const omit = new Set([
|
|
423
|
+
const omit = /* @__PURE__ */ new Set([
|
|
434
424
|
"application_id",
|
|
435
425
|
"description_localized",
|
|
436
426
|
"dm_permission",
|
|
@@ -443,19 +433,19 @@ function comparableCommand(value) {
|
|
|
443
433
|
]);
|
|
444
434
|
return stableComparableObject(Object.fromEntries(Object.entries(value).filter(([key, entry]) => !omit.has(key) && entry !== void 0)));
|
|
445
435
|
}
|
|
446
|
-
const unorderedCommandArrayFields = new Set([
|
|
436
|
+
const unorderedCommandArrayFields = /* @__PURE__ */ new Set([
|
|
447
437
|
"channel_types",
|
|
448
438
|
"contexts",
|
|
449
439
|
"integration_types"
|
|
450
440
|
]);
|
|
451
|
-
const optionComparisonOmittedFields = new Set([
|
|
441
|
+
const optionComparisonOmittedFields = /* @__PURE__ */ new Set([
|
|
452
442
|
"contexts",
|
|
453
443
|
"default_member_permissions",
|
|
454
444
|
"description_localized",
|
|
455
445
|
"integration_types",
|
|
456
446
|
"name_localized"
|
|
457
447
|
]);
|
|
458
|
-
const nullableLocalizationFields = new Set(["description_localizations", "name_localizations"]);
|
|
448
|
+
const nullableLocalizationFields = /* @__PURE__ */ new Set(["description_localizations", "name_localizations"]);
|
|
459
449
|
function stableComparableObject(value, pathValue = []) {
|
|
460
450
|
if (Array.isArray(value)) {
|
|
461
451
|
const normalized = value.map((entry) => stableComparableObject(entry, pathValue));
|
|
@@ -1935,6 +1925,7 @@ function serializeRequestBody(data, headers) {
|
|
|
1935
1925
|
}
|
|
1936
1926
|
//#endregion
|
|
1937
1927
|
//#region extensions/discord/src/internal/rest-errors.ts
|
|
1928
|
+
const DISCORD_UNKNOWN_VOICE_STATE = 10065;
|
|
1938
1929
|
function readDiscordCode(body) {
|
|
1939
1930
|
return parseStrictNonNegativeInteger(body && typeof body === "object" && "code" in body ? body.code : void 0);
|
|
1940
1931
|
}
|
|
@@ -1942,6 +1933,9 @@ function readDiscordMessage(body, fallback) {
|
|
|
1942
1933
|
const value = body && typeof body === "object" && "message" in body ? body.message : void 0;
|
|
1943
1934
|
return typeof value === "string" && value.trim() ? value : fallback;
|
|
1944
1935
|
}
|
|
1936
|
+
function isUnknownDiscordVoiceStateError(err) {
|
|
1937
|
+
return (err && typeof err === "object" && "discordCode" in err ? parseStrictNonNegativeInteger(err.discordCode) : void 0) === DISCORD_UNKNOWN_VOICE_STATE || /unknown voice state/i.test(formatErrorMessage(err));
|
|
1938
|
+
}
|
|
1945
1939
|
function readRetryAfter(body, response, fallbackSeconds = 0) {
|
|
1946
1940
|
return parseDiscordRetryAfterBodySeconds(body && typeof body === "object" && "retry_after" in body ? body.retry_after : void 0) ?? parseRetryAfterHeaderSeconds(response.headers.get("Retry-After")) ?? fallbackSeconds;
|
|
1947
1941
|
}
|
|
@@ -2157,7 +2151,7 @@ var RestScheduler = class {
|
|
|
2157
2151
|
pending: createLaneQueues(),
|
|
2158
2152
|
rateLimitHits: 0,
|
|
2159
2153
|
resetAt: 0,
|
|
2160
|
-
routeKeys: new Set([key])
|
|
2154
|
+
routeKeys: /* @__PURE__ */ new Set([key])
|
|
2161
2155
|
};
|
|
2162
2156
|
this.buckets.set(key, bucket);
|
|
2163
2157
|
return bucket;
|
|
@@ -2850,12 +2844,10 @@ var ThreadUpdateListener = class extends BaseListener {
|
|
|
2850
2844
|
var discord_exports = /* @__PURE__ */ __exportAll({
|
|
2851
2845
|
AnySelectMenu: () => AnySelectMenu,
|
|
2852
2846
|
AutocompleteInteraction: () => AutocompleteInteraction,
|
|
2853
|
-
Base: () => Base,
|
|
2854
2847
|
BaseCommand: () => BaseCommand,
|
|
2855
2848
|
BaseComponent: () => BaseComponent,
|
|
2856
2849
|
BaseComponentInteraction: () => BaseComponentInteraction,
|
|
2857
2850
|
BaseInteraction: () => BaseInteraction,
|
|
2858
|
-
BaseListener: () => BaseListener,
|
|
2859
2851
|
BaseMessageInteractiveComponent: () => BaseMessageInteractiveComponent,
|
|
2860
2852
|
BaseModalComponent: () => BaseModalComponent,
|
|
2861
2853
|
Button: () => Button,
|
|
@@ -2948,6 +2940,7 @@ var discord_exports = /* @__PURE__ */ __exportAll({
|
|
|
2948
2940
|
getGuildVoiceState: () => getGuildVoiceState,
|
|
2949
2941
|
getUser: () => getUser,
|
|
2950
2942
|
getWebhookMessage: () => getWebhookMessage,
|
|
2943
|
+
isUnknownDiscordVoiceStateError: () => isUnknownDiscordVoiceStateError,
|
|
2951
2944
|
listApplicationCommands: () => listApplicationCommands,
|
|
2952
2945
|
listChannelArchivedThreads: () => listChannelArchivedThreads,
|
|
2953
2946
|
listChannelMessages: () => listChannelMessages,
|
|
@@ -3214,20 +3207,52 @@ function looksLikeDiscordTargetId(raw) {
|
|
|
3214
3207
|
return false;
|
|
3215
3208
|
}
|
|
3216
3209
|
//#endregion
|
|
3210
|
+
//#region extensions/discord/src/reply-reference.ts
|
|
3211
|
+
function resolveDiscordReplyReference(params) {
|
|
3212
|
+
if (!params.replyToId) return;
|
|
3213
|
+
const singleUse = params.replyToIdSource !== "explicit" && params.replyToMode !== void 0 && isSingleUseReplyToMode(params.replyToMode);
|
|
3214
|
+
return {
|
|
3215
|
+
messageId: params.replyToId,
|
|
3216
|
+
scope: singleUse ? "first" : "all"
|
|
3217
|
+
};
|
|
3218
|
+
}
|
|
3219
|
+
function createReusableDiscordReplyReference(messageId) {
|
|
3220
|
+
return messageId ? {
|
|
3221
|
+
messageId,
|
|
3222
|
+
scope: "all"
|
|
3223
|
+
} : void 0;
|
|
3224
|
+
}
|
|
3225
|
+
function resolveDiscordReplyMessageId(reply, isFirst) {
|
|
3226
|
+
return reply && (isFirst || reply.scope === "all") ? reply.messageId : void 0;
|
|
3227
|
+
}
|
|
3228
|
+
//#endregion
|
|
3217
3229
|
//#region extensions/discord/src/send.receipt.ts
|
|
3218
3230
|
function createDiscordSendReceipt(params) {
|
|
3219
3231
|
return createMessageReceiptFromOutboundResults({
|
|
3220
|
-
results: params.platformMessageIds.map((messageId) => messageId.trim()).filter((messageId) => messageId && messageId !== "unknown").map((messageId) => {
|
|
3232
|
+
results: params.platformMessageIds.map((messageId) => messageId.trim()).filter((messageId) => messageId && messageId !== "unknown").map((messageId, index) => {
|
|
3221
3233
|
const result = {
|
|
3222
3234
|
channel: "discord",
|
|
3223
3235
|
messageId
|
|
3224
3236
|
};
|
|
3225
3237
|
if (params.channelId) result.channelId = params.channelId;
|
|
3238
|
+
if (params.reply?.scope === "first" && index === 0) {
|
|
3239
|
+
const rawResult = {
|
|
3240
|
+
channel: "discord",
|
|
3241
|
+
messageId
|
|
3242
|
+
};
|
|
3243
|
+
if (params.channelId) rawResult.channelId = params.channelId;
|
|
3244
|
+
result.receipt = createMessageReceiptFromOutboundResults({
|
|
3245
|
+
results: [rawResult],
|
|
3246
|
+
kind: params.kind,
|
|
3247
|
+
threadId: params.threadId,
|
|
3248
|
+
replyToId: params.reply.messageId
|
|
3249
|
+
});
|
|
3250
|
+
}
|
|
3226
3251
|
return result;
|
|
3227
3252
|
}),
|
|
3228
3253
|
kind: params.kind,
|
|
3229
3254
|
threadId: params.threadId,
|
|
3230
|
-
replyToId: params.
|
|
3255
|
+
replyToId: params.reply?.scope === "all" ? params.reply.messageId : void 0
|
|
3231
3256
|
});
|
|
3232
3257
|
}
|
|
3233
3258
|
function createDiscordSendResult(params) {
|
|
@@ -3239,7 +3264,7 @@ function createDiscordSendResult(params) {
|
|
|
3239
3264
|
kind: params.kind
|
|
3240
3265
|
};
|
|
3241
3266
|
if (params.threadId != null) receiptParams.threadId = String(params.threadId);
|
|
3242
|
-
if (params.
|
|
3267
|
+
if (params.reply) receiptParams.reply = params.reply;
|
|
3243
3268
|
return {
|
|
3244
3269
|
messageId,
|
|
3245
3270
|
channelId,
|
|
@@ -3247,4 +3272,4 @@ function createDiscordSendResult(params) {
|
|
|
3247
3272
|
};
|
|
3248
3273
|
}
|
|
3249
3274
|
//#endregion
|
|
3250
|
-
export {
|
|
3275
|
+
export { StringSelectMenu as $, Command as A, createGuildScheduledEvent as At, RadioGroup as B, listGuildScheduledEvents as Bt, RequestClient as C, searchGuildMessages as Ct, readDiscordCode as D, createGuildBan as Dt, isUnknownDiscordVoiceStateError as E, addGuildMemberRole as Et, serializePayload as F, getGuildVoiceState as Ft, File as G, timeoutGuildMember as Gt, Button as H, putChannelPermission as Ht, Embed as I, listGuildActiveThreads as It, MentionableSelectMenu as J, __exportAll as Jt, LinkButton as K, parseDiscordTarget as Kt, CheckboxGroup as L, listGuildChannels as Lt, Guild as M, deleteChannelPermission as Mt, Message as N, getGuild as Nt, readDiscordMessage as O, createGuildChannel as Ot, User as P, getGuildMember as Pt, Separator as Q, Label as R, listGuildEmojis as Rt, Plugin as S, pinChannelMessage as St, RateLimitError as T, unpinChannelMessage as Tt, ChannelSelectMenu as U, removeGuildMember as Ut, TextInput as V, moveGuildChannels as Vt, Container as W, removeGuildMemberRole as Wt, Row as X, RoleSelectMenu as Y, Section as Z, ReadyListener as _, getChannel as _t, resolveDiscordReplyReference as a, createChannelWebhook as at, VoiceStateUpdateListener as b, listChannelMessages as bt, normalizeDiscordMessagingTarget as c, createOwnMessageReaction as ct, discord_exports as d, createChannelMessage as dt, TextDisplay as et, InteractionCreateListener as f, createThread as ft, PresenceUpdateListener as g, editChannelMessage as gt, MessageReactionRemoveListener as h, editChannel as ht, resolveDiscordReplyMessageId as i, parseCustomId as it, CommandWithSubcommands as j, createGuildSticker as jt, readRetryAfter as k, createGuildEmoji as kt, normalizeDiscordOutboundTarget as l, deleteOwnMessageReaction as lt, MessageReactionAddListener as m, deleteChannelMessage as mt, createDiscordSendResult as n, UserSelectMenu as nt, allowFromContainsDiscordUserId as o, createUserDmChannel as ot, MessageCreateListener as p, deleteChannel as pt, MediaGallery as q, resolveDiscordChannelId as qt, createReusableDiscordReplyReference as r, BaseMessageInteractiveComponent as rt, looksLikeDiscordTargetId as s, getCurrentUser as st, createDiscordSendReceipt as t, Thumbnail as tt, chunkDiscordTextWithMode as u, listMessageReactionUsers as ut, ResumedListener as v, getChannelMessage as vt, DiscordError as w, sendChannelTyping as wt, Client as x, listChannelPins as xt, ThreadUpdateListener as y, listChannelArchivedThreads as yt, Modal as z, listGuildRoles as zt };
|
|
@@ -1,20 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as RequestClient, F as serializePayload, I as Embed, Nt as getGuild, Pt as getGuildMember, T as RateLimitError, _t as getChannel, dt as createChannelMessage, i as resolveDiscordReplyMessageId, ot as createUserDmChannel, st as getCurrentUser, u as chunkDiscordTextWithMode } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { a as mergeDiscordAccountConfig, p as normalizeDiscordToken, s as resolveDiscordAccount } from "./accounts-P19jm1lf.js";
|
|
3
|
-
import { t as parseAndResolveDiscordTarget } from "./target-resolver-
|
|
4
|
-
import {
|
|
3
|
+
import { t as parseAndResolveDiscordTarget } from "./target-resolver-CwHaSLt3.js";
|
|
4
|
+
import { normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
6
6
|
import { ChannelType, MessageFlags, PermissionFlagsBits } from "discord-api-types/v10";
|
|
7
7
|
import { parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
8
|
+
import { collectErrorGraphCandidates, extractErrorCode, formatErrorMessage, readErrorName } from "openclaw/plugin-sdk/error-runtime";
|
|
8
9
|
import { PollLayoutType } from "discord-api-types/payloads/v10";
|
|
9
10
|
import { buildOutboundMediaLoadOptions, extensionForMime, normalizePollDurationHours, normalizePollInput } from "openclaw/plugin-sdk/media-runtime";
|
|
10
11
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
11
12
|
import { resolveTextChunksWithFallback } from "openclaw/plugin-sdk/reply-payload";
|
|
12
13
|
import { loadWebMedia } from "openclaw/plugin-sdk/web-media";
|
|
13
|
-
import { isIP } from "node:net";
|
|
14
14
|
import { makeProxyFetch } from "openclaw/plugin-sdk/fetch-runtime";
|
|
15
|
-
import { danger } from "openclaw/plugin-sdk/runtime-env";
|
|
16
|
-
import {
|
|
17
|
-
|
|
15
|
+
import { createSubsystemLogger, danger } from "openclaw/plugin-sdk/runtime-env";
|
|
16
|
+
import { resolveRetryConfig, retryAsync } from "openclaw/plugin-sdk/retry-runtime";
|
|
17
|
+
//#region extensions/discord/src/monitor/gateway-registry.ts
|
|
18
|
+
/**
|
|
19
|
+
* Module-level registry of active Discord GatewayPlugin instances.
|
|
20
|
+
* Bridges the gap between agent tool handlers (which only have REST access)
|
|
21
|
+
* and the gateway WebSocket (needed for operations like updatePresence).
|
|
22
|
+
* Follows the same pattern as presence-cache.ts.
|
|
23
|
+
*/
|
|
24
|
+
const gatewayRegistry = /* @__PURE__ */ new Map();
|
|
25
|
+
const DEFAULT_ACCOUNT_KEY = "\0__default__";
|
|
26
|
+
function resolveAccountKey(accountId) {
|
|
27
|
+
return accountId ?? DEFAULT_ACCOUNT_KEY;
|
|
28
|
+
}
|
|
29
|
+
/** Register a GatewayPlugin instance for an account. */
|
|
30
|
+
function registerGateway(accountId, gateway) {
|
|
31
|
+
gatewayRegistry.set(resolveAccountKey(accountId), gateway);
|
|
32
|
+
}
|
|
33
|
+
/** Unregister a GatewayPlugin instance for an account. */
|
|
34
|
+
function unregisterGateway(accountId) {
|
|
35
|
+
gatewayRegistry.delete(resolveAccountKey(accountId));
|
|
36
|
+
}
|
|
37
|
+
/** Get the GatewayPlugin for an account. Returns undefined if not registered. */
|
|
38
|
+
function getGateway(accountId) {
|
|
39
|
+
return gatewayRegistry.get(resolveAccountKey(accountId));
|
|
40
|
+
}
|
|
41
|
+
/** Clear all registered gateways (for testing). */
|
|
42
|
+
function clearGateways() {
|
|
43
|
+
gatewayRegistry.clear();
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
18
46
|
//#region extensions/discord/src/proxy-fetch.ts
|
|
19
47
|
function resolveDiscordProxyUrl(account, cfg) {
|
|
20
48
|
const accountProxy = account.config.proxy?.trim();
|
|
@@ -48,19 +76,9 @@ function validateDiscordProxyUrl(proxyUrl) {
|
|
|
48
76
|
throw new Error("Proxy URL must be a valid http or https URL");
|
|
49
77
|
}
|
|
50
78
|
if (!["http:", "https:"].includes(parsed.protocol)) throw new Error("Proxy URL must use http or https");
|
|
51
|
-
if (!
|
|
79
|
+
if (!parsed.hostname) throw new Error("Proxy URL must include a host");
|
|
52
80
|
return proxyUrl;
|
|
53
81
|
}
|
|
54
|
-
function isLoopbackProxyHostname(hostname) {
|
|
55
|
-
const normalized = normalizeLowercaseStringOrEmpty(hostname);
|
|
56
|
-
if (!normalized) return false;
|
|
57
|
-
const bracketless = normalized.startsWith("[") && normalized.endsWith("]") ? normalized.slice(1, -1) : normalized;
|
|
58
|
-
if (bracketless === "localhost") return true;
|
|
59
|
-
const ipFamily = isIP(bracketless);
|
|
60
|
-
if (ipFamily === 4) return bracketless.startsWith("127.");
|
|
61
|
-
if (ipFamily === 6) return bracketless === "::1" || bracketless === "0:0:0:0:0:0:0:1";
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
82
|
//#endregion
|
|
65
83
|
//#region extensions/discord/src/proxy-request-client.ts
|
|
66
84
|
const DISCORD_REST_TIMEOUT_MS = 15e3;
|
|
@@ -82,8 +100,9 @@ const DISCORD_RETRY_DEFAULTS = {
|
|
|
82
100
|
maxDelayMs: 3e4,
|
|
83
101
|
jitter: .1
|
|
84
102
|
};
|
|
85
|
-
const
|
|
86
|
-
const
|
|
103
|
+
const DISCORD_GATEWAY_RECONNECT_EXTRA_ATTEMPTS = 2;
|
|
104
|
+
const DISCORD_RETRYABLE_STATUS_CODES = /* @__PURE__ */ new Set([408, 429]);
|
|
105
|
+
const DISCORD_RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
87
106
|
"EAI_AGAIN",
|
|
88
107
|
"ECONNREFUSED",
|
|
89
108
|
"ECONNRESET",
|
|
@@ -97,6 +116,7 @@ const DISCORD_RETRYABLE_ERROR_CODES = new Set([
|
|
|
97
116
|
"UND_ERR_SOCKET"
|
|
98
117
|
]);
|
|
99
118
|
const DISCORD_TRANSIENT_MESSAGE_RE = /\b(?:bad gateway|fetch failed|network error|networkerror|service unavailable|socket hang up|temporarily unavailable|timed out|timeout)\b|connection (?:closed|reset|refused)/i;
|
|
119
|
+
const log = createSubsystemLogger("discord/retry");
|
|
100
120
|
function readDiscordErrorStatus(err) {
|
|
101
121
|
if (!err || typeof err !== "object") return;
|
|
102
122
|
return parseStrictNonNegativeInteger("status" in err && err.status !== void 0 ? err.status : "statusCode" in err && err.statusCode !== void 0 ? err.statusCode : void 0);
|
|
@@ -113,14 +133,40 @@ function isRetryableDiscordTransientError(err) {
|
|
|
113
133
|
}
|
|
114
134
|
return false;
|
|
115
135
|
}
|
|
136
|
+
function isRetryableDiscordGatewayTransportError(err) {
|
|
137
|
+
if (!isRetryableDiscordTransientError(err) || err instanceof RateLimitError) return false;
|
|
138
|
+
return !collectErrorGraphCandidates(err, (current) => [current.cause, current.error]).some((candidate) => readDiscordErrorStatus(candidate) !== void 0);
|
|
139
|
+
}
|
|
116
140
|
function createDiscordRetryRunner(params) {
|
|
117
|
-
|
|
118
|
-
...params,
|
|
119
|
-
|
|
120
|
-
logLabel: "discord",
|
|
121
|
-
shouldRetry: isRetryableDiscordTransientError,
|
|
122
|
-
retryAfterMs: (err) => err instanceof RateLimitError ? err.retryAfter * 1e3 : void 0
|
|
141
|
+
const retryConfig = resolveRetryConfig(DISCORD_RETRY_DEFAULTS, {
|
|
142
|
+
...params.configRetry,
|
|
143
|
+
...params.retry
|
|
123
144
|
});
|
|
145
|
+
const attempts = retryConfig.attempts > 1 ? retryConfig.attempts + DISCORD_GATEWAY_RECONNECT_EXTRA_ATTEMPTS : retryConfig.attempts;
|
|
146
|
+
return (fn, label) => {
|
|
147
|
+
let observedGatewayDisconnect = false;
|
|
148
|
+
const runRequest = async () => {
|
|
149
|
+
observedGatewayDisconnect ||= params.isGatewayDisconnected?.() === true;
|
|
150
|
+
try {
|
|
151
|
+
return await fn();
|
|
152
|
+
} catch (err) {
|
|
153
|
+
observedGatewayDisconnect ||= params.isGatewayDisconnected?.() === true;
|
|
154
|
+
throw err;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
return retryAsync(runRequest, {
|
|
158
|
+
...retryConfig,
|
|
159
|
+
attempts,
|
|
160
|
+
label,
|
|
161
|
+
shouldRetry: (err, attempt) => isRetryableDiscordTransientError(err) && (attempt < retryConfig.attempts || observedGatewayDisconnect && isRetryableDiscordGatewayTransportError(err)),
|
|
162
|
+
retryAfterMs: (err) => err instanceof RateLimitError ? err.retryAfter * 1e3 : void 0,
|
|
163
|
+
onRetry: params.verbose ? (info) => {
|
|
164
|
+
const maxAttempts = observedGatewayDisconnect ? attempts : retryConfig.attempts;
|
|
165
|
+
const maxRetries = Math.max(1, maxAttempts - 1);
|
|
166
|
+
log.warn(`discord ${info.label ?? "request"} retry ${info.attempt}/${maxRetries} in ${info.delayMs}ms: ${formatErrorMessage(info.err)}`);
|
|
167
|
+
} : void 0
|
|
168
|
+
});
|
|
169
|
+
};
|
|
124
170
|
}
|
|
125
171
|
//#endregion
|
|
126
172
|
//#region extensions/discord/src/client.ts
|
|
@@ -201,7 +247,11 @@ function createDiscordClient(opts) {
|
|
|
201
247
|
request: createDiscordRetryRunner({
|
|
202
248
|
retry: opts.retry,
|
|
203
249
|
configRetry: account.config.retry,
|
|
204
|
-
verbose: opts.verbose
|
|
250
|
+
verbose: opts.verbose,
|
|
251
|
+
isGatewayDisconnected: () => {
|
|
252
|
+
const gateway = getGateway(account.accountId);
|
|
253
|
+
return gateway !== void 0 && !gateway.isConnected;
|
|
254
|
+
}
|
|
205
255
|
})
|
|
206
256
|
};
|
|
207
257
|
}
|
|
@@ -498,6 +548,7 @@ function buildDiscordMessagePayload(params) {
|
|
|
498
548
|
if (!hasV2 && trimmed) payload.content = params.text;
|
|
499
549
|
if (params.components?.length) payload.components = params.components;
|
|
500
550
|
if (!hasV2 && params.embeds?.length) payload.embeds = params.embeds;
|
|
551
|
+
if (params.allowedMentions) payload.allowed_mentions = params.allowedMentions;
|
|
501
552
|
if (params.flags !== void 0) payload.flags = params.flags;
|
|
502
553
|
if (params.files?.length) payload.files = params.files;
|
|
503
554
|
return payload;
|
|
@@ -531,6 +582,9 @@ const DISCORD_POLL_MAX_ANSWERS = 10;
|
|
|
531
582
|
const DISCORD_POLL_MAX_DURATION_HOURS = 768;
|
|
532
583
|
const DISCORD_MISSING_PERMISSIONS = 50013;
|
|
533
584
|
const DISCORD_CANNOT_DM = 50007;
|
|
585
|
+
const DISCORD_UPLOAD_TOO_LARGE = 40005;
|
|
586
|
+
const DISCORD_UPLOAD_TOO_LARGE_STATUS = 413;
|
|
587
|
+
const DISCORD_UPLOAD_TOO_LARGE_NOTICE = "Attachment skipped: Discord rejected the file as too large.";
|
|
534
588
|
function normalizeReactionEmoji(raw) {
|
|
535
589
|
const trimmed = raw.trim();
|
|
536
590
|
if (!trimmed) throw new Error("emoji required");
|
|
@@ -575,6 +629,12 @@ function getDiscordErrorStatus(err) {
|
|
|
575
629
|
if (typeof candidate === "number" && Number.isFinite(candidate)) return candidate;
|
|
576
630
|
if (typeof candidate === "string" && /^\d+$/.test(candidate)) return Number(candidate);
|
|
577
631
|
}
|
|
632
|
+
function isDiscordUploadTooLargeError(err) {
|
|
633
|
+
return getDiscordErrorCode(err) === DISCORD_UPLOAD_TOO_LARGE || getDiscordErrorStatus(err) === DISCORD_UPLOAD_TOO_LARGE_STATUS;
|
|
634
|
+
}
|
|
635
|
+
function buildDiscordUploadTooLargeFallbackText(text) {
|
|
636
|
+
return text.trim() ? `${text}\n\n[${DISCORD_UPLOAD_TOO_LARGE_NOTICE}]` : DISCORD_UPLOAD_TOO_LARGE_NOTICE;
|
|
637
|
+
}
|
|
578
638
|
async function buildDiscordSendError(err, ctx) {
|
|
579
639
|
if (err instanceof DiscordSendError) return err;
|
|
580
640
|
const code = getDiscordErrorCode(err);
|
|
@@ -648,7 +708,8 @@ function toDiscordFileBlob(data) {
|
|
|
648
708
|
new Uint8Array(arrayBuffer).set(data);
|
|
649
709
|
return new Blob([arrayBuffer]);
|
|
650
710
|
}
|
|
651
|
-
async function sendDiscordText(
|
|
711
|
+
async function sendDiscordText(params) {
|
|
712
|
+
const { rest, channelId, text, request, reply, maxLinesPerMessage, components, embeds, allowedMentions, chunkMode, silent, suppressEmbeds, maxChars, onResult } = params;
|
|
652
713
|
if (!text.trim()) throw new Error("Message must be non-empty for Discord sends");
|
|
653
714
|
const chunks = buildDiscordTextChunks(text, {
|
|
654
715
|
maxLinesPerMessage,
|
|
@@ -656,6 +717,7 @@ async function sendDiscordText(rest, channelId, text, replyTo, request, maxLines
|
|
|
656
717
|
maxChars
|
|
657
718
|
});
|
|
658
719
|
const sendChunk = async (chunk, isFirst) => {
|
|
720
|
+
const chunkReplyTo = resolveDiscordReplyMessageId(reply, isFirst);
|
|
659
721
|
const chunkComponents = resolveDiscordSendComponents({
|
|
660
722
|
components,
|
|
661
723
|
text: chunk,
|
|
@@ -665,20 +727,26 @@ async function sendDiscordText(rest, channelId, text, replyTo, request, maxLines
|
|
|
665
727
|
embeds,
|
|
666
728
|
isFirst
|
|
667
729
|
});
|
|
730
|
+
const flags = resolveDiscordMessageFlags({
|
|
731
|
+
silent,
|
|
732
|
+
suppressEmbeds: suppressEmbeds && !chunkEmbeds?.length
|
|
733
|
+
});
|
|
668
734
|
const body = buildDiscordMessageRequest({
|
|
669
735
|
text: chunk,
|
|
670
736
|
components: chunkComponents,
|
|
671
737
|
embeds: chunkEmbeds,
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}),
|
|
676
|
-
replyTo
|
|
738
|
+
allowedMentions,
|
|
739
|
+
flags,
|
|
740
|
+
replyTo: chunkReplyTo
|
|
677
741
|
});
|
|
678
|
-
return
|
|
742
|
+
return {
|
|
743
|
+
result: await request(() => createChannelMessage(rest, channelId, { body }), "text"),
|
|
744
|
+
replyToId: chunkReplyTo
|
|
745
|
+
};
|
|
679
746
|
};
|
|
680
747
|
if (chunks.length === 1) {
|
|
681
|
-
const result = await sendChunk(chunks[0], true);
|
|
748
|
+
const { result, replyToId } = await sendChunk(chunks[0], true);
|
|
749
|
+
await onResult?.(result, "text", replyToId);
|
|
682
750
|
return {
|
|
683
751
|
...result,
|
|
684
752
|
platformMessageIds: result.id ? [result.id] : []
|
|
@@ -687,7 +755,9 @@ async function sendDiscordText(rest, channelId, text, replyTo, request, maxLines
|
|
|
687
755
|
const platformMessageIds = [];
|
|
688
756
|
let last = null;
|
|
689
757
|
for (const [index, chunk] of chunks.entries()) {
|
|
690
|
-
|
|
758
|
+
const sent = await sendChunk(chunk, index === 0);
|
|
759
|
+
last = sent.result;
|
|
760
|
+
await onResult?.(last, "text", sent.replyToId);
|
|
691
761
|
if (last.id) platformMessageIds.push(last.id);
|
|
692
762
|
}
|
|
693
763
|
if (!last) throw new Error("Discord send failed (empty chunk result)");
|
|
@@ -696,7 +766,8 @@ async function sendDiscordText(rest, channelId, text, replyTo, request, maxLines
|
|
|
696
766
|
platformMessageIds
|
|
697
767
|
};
|
|
698
768
|
}
|
|
699
|
-
async function sendDiscordMedia(
|
|
769
|
+
async function sendDiscordMedia(params) {
|
|
770
|
+
const { rest, channelId, text, mediaUrl, filename, mediaAccess, mediaLocalRoots, mediaReadFile, maxBytes, reply, request, maxLinesPerMessage, components, embeds, allowedMentions, chunkMode, silent, suppressEmbeds, maxChars, onResult } = params;
|
|
700
771
|
const media = await loadWebMedia(mediaUrl, buildOutboundMediaLoadOptions({
|
|
701
772
|
maxBytes,
|
|
702
773
|
mediaAccess,
|
|
@@ -724,21 +795,56 @@ async function sendDiscordMedia(rest, channelId, text, mediaUrl, filename, media
|
|
|
724
795
|
text: caption,
|
|
725
796
|
components: captionComponents,
|
|
726
797
|
embeds: captionEmbeds,
|
|
798
|
+
allowedMentions,
|
|
727
799
|
flags: resolveDiscordMessageFlags({
|
|
728
800
|
silent,
|
|
729
801
|
suppressEmbeds: suppressEmbeds && !captionEmbeds?.length
|
|
730
802
|
}),
|
|
731
|
-
replyTo,
|
|
803
|
+
replyTo: resolveDiscordReplyMessageId(reply, true),
|
|
732
804
|
files: [{
|
|
733
805
|
data: fileData,
|
|
734
806
|
name: resolvedFileName
|
|
735
807
|
}]
|
|
736
808
|
});
|
|
737
|
-
|
|
809
|
+
let res;
|
|
810
|
+
try {
|
|
811
|
+
res = await request(() => createChannelMessage(rest, channelId, { body }), "media");
|
|
812
|
+
} catch (err) {
|
|
813
|
+
if (!isDiscordUploadTooLargeError(err)) throw err;
|
|
814
|
+
return sendDiscordText({
|
|
815
|
+
rest,
|
|
816
|
+
channelId,
|
|
817
|
+
text: buildDiscordUploadTooLargeFallbackText(text),
|
|
818
|
+
reply,
|
|
819
|
+
request,
|
|
820
|
+
maxLinesPerMessage,
|
|
821
|
+
chunkMode,
|
|
822
|
+
silent,
|
|
823
|
+
suppressEmbeds,
|
|
824
|
+
allowedMentions,
|
|
825
|
+
maxChars,
|
|
826
|
+
onResult
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
await onResult?.(res, "media", reply?.messageId);
|
|
738
830
|
const platformMessageIds = res.id ? [res.id] : [];
|
|
831
|
+
const followupReply = reply?.scope === "all" ? reply : void 0;
|
|
739
832
|
for (const chunk of chunks.slice(1)) {
|
|
740
833
|
if (!chunk.trim()) continue;
|
|
741
|
-
const followup = await sendDiscordText(
|
|
834
|
+
const followup = await sendDiscordText({
|
|
835
|
+
rest,
|
|
836
|
+
channelId,
|
|
837
|
+
text: chunk,
|
|
838
|
+
reply: followupReply,
|
|
839
|
+
request,
|
|
840
|
+
maxLinesPerMessage,
|
|
841
|
+
chunkMode,
|
|
842
|
+
silent,
|
|
843
|
+
suppressEmbeds,
|
|
844
|
+
allowedMentions,
|
|
845
|
+
maxChars,
|
|
846
|
+
onResult
|
|
847
|
+
});
|
|
742
848
|
for (const id of followup.platformMessageIds) if (id) platformMessageIds.push(id);
|
|
743
849
|
}
|
|
744
850
|
return {
|
|
@@ -754,4 +860,4 @@ function formatReactionEmoji(emoji) {
|
|
|
754
860
|
return buildReactionIdentifier(emoji);
|
|
755
861
|
}
|
|
756
862
|
//#endregion
|
|
757
|
-
export { hasAllGuildPermissionsDiscord as A, DISCORD_REST_TIMEOUT_MS as B, DISCORD_MAX_STICKER_BYTES as C, canViewDiscordGuildChannel as D, canManageGuildRoleDiscord as E, createDiscordClient as F, withValidatedDiscordProxy as H, createDiscordRestClient as I, createDiscordRuntimeAccountContext as L, hasAnyGuildPermissionDiscord as M, isThreadChannelType as N, fetchChannelPermissionsDiscord as O, parseAndResolveChannelRecipient as P, resolveDiscordClientAccountContext as R, DISCORD_MAX_EVENT_COVER_BYTES as S, canManageGuildMemberRoleDiscord as T, validateDiscordProxyUrl as V, resolveDiscordMessageFlags as _, normalizeDiscordPollInput as a, stripUndefinedFields as b, normalizeStickerIds as c, resolveDiscordTargetChannelId as d, sendDiscordMedia as f, buildDiscordMessageRequest as g, SUPPRESS_NOTIFICATIONS_FLAG as h, formatReactionEmoji as i, hasAnyChannelPermissionDiscord as j, fetchMemberGuildPermissionsDiscord as k, resolveChannelId as l, toDiscordFileBlob as m, buildDiscordTextChunks as n, normalizeEmojiName as o, sendDiscordText as p, buildReactionIdentifier as r, normalizeReactionEmoji as s, buildDiscordSendError as t, resolveDiscordChannelType as u, resolveDiscordSendComponents as v, DiscordSendError as w, DISCORD_MAX_EMOJI_BYTES as x, resolveDiscordSendEmbeds as y, resolveDiscordRest as z };
|
|
863
|
+
export { hasAllGuildPermissionsDiscord as A, DISCORD_REST_TIMEOUT_MS as B, DISCORD_MAX_STICKER_BYTES as C, canViewDiscordGuildChannel as D, canManageGuildRoleDiscord as E, createDiscordClient as F, registerGateway as G, withValidatedDiscordProxy as H, createDiscordRestClient as I, unregisterGateway as K, createDiscordRuntimeAccountContext as L, hasAnyGuildPermissionDiscord as M, isThreadChannelType as N, fetchChannelPermissionsDiscord as O, parseAndResolveChannelRecipient as P, resolveDiscordClientAccountContext as R, DISCORD_MAX_EVENT_COVER_BYTES as S, canManageGuildMemberRoleDiscord as T, clearGateways as U, validateDiscordProxyUrl as V, getGateway as W, resolveDiscordMessageFlags as _, normalizeDiscordPollInput as a, stripUndefinedFields as b, normalizeStickerIds as c, resolveDiscordTargetChannelId as d, sendDiscordMedia as f, buildDiscordMessageRequest as g, SUPPRESS_NOTIFICATIONS_FLAG as h, formatReactionEmoji as i, hasAnyChannelPermissionDiscord as j, fetchMemberGuildPermissionsDiscord as k, resolveChannelId as l, toDiscordFileBlob as m, buildDiscordTextChunks as n, normalizeEmojiName as o, sendDiscordText as p, buildReactionIdentifier as r, normalizeReactionEmoji as s, buildDiscordSendError as t, resolveDiscordChannelType as u, resolveDiscordSendComponents as v, DiscordSendError as w, DISCORD_MAX_EMOJI_BYTES as x, resolveDiscordSendEmbeds as y, resolveDiscordRest as z };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as testing, n as createThreadBindingManager } from "./thread-bindings.manager-
|
|
1
|
+
import { i as testing, n as createThreadBindingManager } from "./thread-bindings.manager-Bwmtqc3E.js";
|
|
2
2
|
export { createThreadBindingManager, testing as discordThreadBindingTesting };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as discordSetupPlugin } from "./channel.setup-
|
|
1
|
+
import { t as discordSetupPlugin } from "./channel.setup-tZcpIn4e.js";
|
|
2
2
|
export { discordSetupPlugin };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as inspectDiscordAccount } from "./account-inspect-DDZtT5C8.js";
|
|
2
2
|
import { a as mergeDiscordAccountConfig, c as resolveDiscordAccountAllowFrom, d as resolveDiscordAccountDmPolicy, n as isDiscordAccountEnabledForRuntime, o as resolveDefaultDiscordAccountId, r as listDiscordAccountIds, s as resolveDiscordAccount, u as resolveDiscordAccountDisabledReason } from "./accounts-P19jm1lf.js";
|
|
3
3
|
import { i as getChatChannelMeta, o as resolveConfiguredFromCredentialStatuses } from "./channel-api-CAJ0wMoV.js";
|
|
4
|
-
import { t as DiscordChannelConfigSchema } from "./config-schema-
|
|
4
|
+
import { t as DiscordChannelConfigSchema } from "./config-schema-BgIhO3ko.js";
|
|
5
5
|
import { n as normalizeCompatibilityConfig } from "./doctor-contract-CU7lnZTF.js";
|
|
6
|
-
import { n as secretTargetRegistryEntries, t as collectRuntimeConfigAssignments } from "./secret-config-contract-
|
|
6
|
+
import { n as secretTargetRegistryEntries, t as collectRuntimeConfigAssignments } from "./secret-config-contract-BDNrRWvd.js";
|
|
7
7
|
import { n as unsupportedSecretRefSurfacePatterns, t as collectUnsupportedSecretRefConfigCandidates } from "./security-contract-DSHk7I2w.js";
|
|
8
8
|
import { t as deriveLegacySessionChatType } from "./session-contract-BO5tlIdl.js";
|
|
9
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
9
10
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
10
11
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
11
12
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
@@ -46,11 +47,7 @@ const collectDiscordSecurityWarnings = createOpenProviderConfiguredRouteWarningC
|
|
|
46
47
|
remediation: "Set channels.discord.groupPolicy=\"allowlist\" and configure channels.discord.guilds.<id>.channels"
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
|
|
50
|
-
async function loadDiscordSecurityAuditModule() {
|
|
51
|
-
discordSecurityAuditModulePromise ??= import("./security-audit.runtime-CpPdDNEt.js");
|
|
52
|
-
return await discordSecurityAuditModulePromise;
|
|
53
|
-
}
|
|
50
|
+
const loadDiscordSecurityAuditModule = createLazyRuntimeModule(() => import("./security-audit.runtime-CpPdDNEt.js"));
|
|
54
51
|
const discordSecurityAdapter = {
|
|
55
52
|
resolveDmPolicy: resolveDiscordDmPolicy,
|
|
56
53
|
collectWarnings: collectDiscordSecurityWarnings,
|
|
@@ -69,11 +66,7 @@ const DISCORD_LEGACY_CONFIG_RULES = [];
|
|
|
69
66
|
//#endregion
|
|
70
67
|
//#region extensions/discord/src/shared.ts
|
|
71
68
|
const DISCORD_CHANNEL = "discord";
|
|
72
|
-
|
|
73
|
-
async function loadDiscordDoctorModule() {
|
|
74
|
-
discordDoctorModulePromise ??= import("./doctor-D3ngpo-Y.js");
|
|
75
|
-
return await discordDoctorModulePromise;
|
|
76
|
-
}
|
|
69
|
+
const loadDiscordDoctorModule = createLazyRuntimeModule(() => import("./doctor-Bgoxm5AN.js"));
|
|
77
70
|
const discordDoctor = {
|
|
78
71
|
dmAllowFromMode: "topOnly",
|
|
79
72
|
groupModel: "route",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as __exportAll } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { s as resolveDiscordAccount } from "./accounts-P19jm1lf.js";
|
|
3
|
-
import { n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey } from "./thread-bindings-
|
|
3
|
+
import { n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey } from "./thread-bindings-DsTxqu3E.js";
|
|
4
4
|
import { normalizeOptionalLowercaseString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { formatThreadBindingDisabledError, formatThreadBindingSpawnDisabledError, resolveThreadBindingSpawnPolicy } from "openclaw/plugin-sdk/conversation-runtime";
|
|
6
6
|
//#region extensions/discord/src/subagent-hooks.ts
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
1
2
|
//#region extensions/discord/subagent-hooks-api.ts
|
|
2
|
-
|
|
3
|
-
function loadDiscordSubagentHooksModule() {
|
|
4
|
-
discordSubagentHooksPromise ??= import("./subagent-hooks-cE_tFGCX.js").then((n) => n.i);
|
|
5
|
-
return discordSubagentHooksPromise;
|
|
6
|
-
}
|
|
3
|
+
const loadDiscordSubagentHooksModule = createLazyRuntimeModule(() => import("./subagent-hooks-B-bJxxGg.js").then((n) => n.i));
|
|
7
4
|
function registerDiscordSubagentHooks(api) {
|
|
8
5
|
api.on("subagent_ended", async (event) => {
|
|
9
6
|
const { handleDiscordSubagentEnded } = await loadDiscordSubagentHooksModule();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as discord_exports } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { b as formatDiscordUserTag } from "./allow-list-C-MqM-B_.js";
|
|
3
3
|
//#region extensions/discord/src/monitor/system-events.ts
|
|
4
4
|
function resolveDiscordSystemEvent(message, location) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as __exportAll, Kt as parseDiscordTarget, o as allowFromContainsDiscordUserId } from "./send.receipt-BpBQED_5.js";
|
|
2
2
|
import { c as resolveDiscordAccountAllowFrom, s as resolveDiscordAccount } from "./accounts-P19jm1lf.js";
|
|
3
|
-
import { i as rememberDiscordDirectoryUser, r as listDiscordDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { i as rememberDiscordDirectoryUser, r as listDiscordDirectoryPeersLive } from "./directory-live-BX79ImQA.js";
|
|
4
4
|
import { buildMessagingTarget } from "openclaw/plugin-sdk/channel-targets";
|
|
5
5
|
//#region extensions/discord/src/send-target-parsing.ts
|
|
6
6
|
const parseDiscordSendTarget = (raw, options = {}) => parseDiscordTarget(raw, options);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./targets-
|
|
1
|
+
import { Jt as __exportAll, Kt as parseDiscordTarget } from "./send.receipt-BpBQED_5.js";
|
|
2
|
+
import "./targets-69w7c3vU.js";
|
|
3
3
|
import { A as shouldPersistBindingMutations, C as resolveThreadBindingIdleTimeoutMs$1, D as saveBindingsToDisk, E as resolveThreadBindingMaxAgeMs$1, T as resolveThreadBindingMaxAgeExpiresAt, d as isRecentlyUnboundThreadWebhookMessage, g as rememberRecentUnboundWebhookEcho, h as normalizeThreadId, n as MANAGERS_BY_ACCOUNT_ID, t as BINDINGS_BY_THREAD_ID, u as getThreadBindingToken, w as resolveThreadBindingInactivityExpiresAt, y as removeBindingRecord } from "./thread-bindings.state-iSWjCYjB.js";
|
|
4
4
|
import { n as setThreadBindingMaxAgeBySessionKey, r as resolveBindingIdsForTargetSession, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-Chs3HgGa.js";
|
|
5
|
-
import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, s as resolveChannelIdForBinding, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-
|
|
6
|
-
import { i as testing, n as createThreadBindingManager, r as getThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-
|
|
5
|
+
import { _ as formatThreadBindingDurationLabel, b as resolveThreadBindingThreadName, g as resolveThreadBindingPersonaFromRecord, h as resolveThreadBindingPersona, s as resolveChannelIdForBinding, y as resolveThreadBindingIntroText } from "./thread-bindings.discord-api-BjIf9lGs.js";
|
|
6
|
+
import { i as testing, n as createThreadBindingManager, r as getThreadBindingManager, t as createNoopThreadBindingManager } from "./thread-bindings.manager-Bwmtqc3E.js";
|
|
7
7
|
import { normalizeOptionalLowercaseString, normalizeOptionalString, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
9
9
|
import { resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled } from "openclaw/plugin-sdk/conversation-runtime";
|