@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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WASI = void 0;
|
|
3
|
+
exports.WASI = exports.ensureMemoryFor = void 0;
|
|
4
4
|
const webassembly_1 = require("../webassembly");
|
|
5
5
|
const path_1 = require("./path");
|
|
6
6
|
// Linux fcntl flag bits ↔ Windows libuv flag bits. `pathOpen()` builds
|
|
@@ -52,8 +52,19 @@ function copyMemory(targets, src) {
|
|
|
52
52
|
const _memory = new WeakMap();
|
|
53
53
|
const _wasi = new WeakMap();
|
|
54
54
|
const _fs = new WeakMap();
|
|
55
|
-
function
|
|
56
|
-
|
|
55
|
+
function ensureMemoryFor(memory, end) {
|
|
56
|
+
let buffer = memory.buffer;
|
|
57
|
+
if (end > buffer.byteLength) {
|
|
58
|
+
memory.grow(0);
|
|
59
|
+
buffer = memory.buffer;
|
|
60
|
+
}
|
|
61
|
+
return buffer;
|
|
62
|
+
}
|
|
63
|
+
exports.ensureMemoryFor = ensureMemoryFor;
|
|
64
|
+
function getMemory(wasi, end = 0) {
|
|
65
|
+
const memory = _memory.get(wasi);
|
|
66
|
+
ensureMemoryFor(memory, end);
|
|
67
|
+
return memory;
|
|
57
68
|
}
|
|
58
69
|
function getFs(wasi) {
|
|
59
70
|
const fs = _fs.get(wasi);
|
|
@@ -182,9 +193,10 @@ class WASI {
|
|
|
182
193
|
if (argv === 0 || argv_buf === 0) {
|
|
183
194
|
return types_1.WasiErrno.EINVAL;
|
|
184
195
|
}
|
|
185
|
-
const { HEAPU8, view } = getMemory(this);
|
|
186
196
|
const wasi = _wasi.get(this);
|
|
187
197
|
const args = wasi.args;
|
|
198
|
+
const argsSize = encoder.encode(args.join('\0') + '\0').length;
|
|
199
|
+
const { HEAPU8, view } = getMemory(this, Math.max(argv + args.length * 4, argv_buf + argsSize));
|
|
188
200
|
for (let i = 0; i < args.length; ++i) {
|
|
189
201
|
const arg = args[i];
|
|
190
202
|
view.setInt32(argv, argv_buf, true);
|
|
@@ -201,7 +213,7 @@ class WASI {
|
|
|
201
213
|
if (argc === 0 || argv_buf_size === 0) {
|
|
202
214
|
return types_1.WasiErrno.EINVAL;
|
|
203
215
|
}
|
|
204
|
-
const { view } = getMemory(this);
|
|
216
|
+
const { view } = getMemory(this, Math.max(argc + 4, argv_buf_size + 4));
|
|
205
217
|
const wasi = _wasi.get(this);
|
|
206
218
|
const args = wasi.args;
|
|
207
219
|
view.setUint32(argc, args.length, true);
|
|
@@ -214,9 +226,10 @@ class WASI {
|
|
|
214
226
|
if (environ === 0 || environ_buf === 0) {
|
|
215
227
|
return types_1.WasiErrno.EINVAL;
|
|
216
228
|
}
|
|
217
|
-
const { HEAPU8, view } = getMemory(this);
|
|
218
229
|
const wasi = _wasi.get(this);
|
|
219
230
|
const env = wasi.env;
|
|
231
|
+
const envSize = encoder.encode(env.join('\0') + '\0').length;
|
|
232
|
+
const { HEAPU8, view } = getMemory(this, Math.max(environ + env.length * 4, environ_buf + envSize));
|
|
220
233
|
for (let i = 0; i < env.length; ++i) {
|
|
221
234
|
const pair = env[i];
|
|
222
235
|
view.setInt32(environ, environ_buf, true);
|
|
@@ -233,7 +246,7 @@ class WASI {
|
|
|
233
246
|
if (len === 0 || buflen === 0) {
|
|
234
247
|
return types_1.WasiErrno.EINVAL;
|
|
235
248
|
}
|
|
236
|
-
const { view } = getMemory(this);
|
|
249
|
+
const { view } = getMemory(this, Math.max(len + 4, buflen + 4));
|
|
237
250
|
const wasi = _wasi.get(this);
|
|
238
251
|
view.setUint32(len, wasi.env.length, true);
|
|
239
252
|
view.setUint32(buflen, encoder.encode(wasi.env.join('\0') + '\0').length, true);
|
|
@@ -244,7 +257,7 @@ class WASI {
|
|
|
244
257
|
if (resolution === 0) {
|
|
245
258
|
return types_1.WasiErrno.EINVAL;
|
|
246
259
|
}
|
|
247
|
-
const { view } = getMemory(this);
|
|
260
|
+
const { view } = getMemory(this, resolution + 8);
|
|
248
261
|
switch (id) {
|
|
249
262
|
case types_1.WasiClockid.REALTIME:
|
|
250
263
|
view.setBigUint64(resolution, BigInt(1000000), true);
|
|
@@ -262,7 +275,7 @@ class WASI {
|
|
|
262
275
|
if (time === 0) {
|
|
263
276
|
return types_1.WasiErrno.EINVAL;
|
|
264
277
|
}
|
|
265
|
-
const { view } = getMemory(this);
|
|
278
|
+
const { view } = getMemory(this, time + 8);
|
|
266
279
|
switch (id) {
|
|
267
280
|
case types_1.WasiClockid.REALTIME:
|
|
268
281
|
view.setBigUint64(time, BigInt(Date.now()) * BigInt(1000000), true);
|
|
@@ -290,7 +303,7 @@ class WASI {
|
|
|
290
303
|
}
|
|
291
304
|
const wasi = _wasi.get(this);
|
|
292
305
|
const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
293
|
-
const { view } = getMemory(this);
|
|
306
|
+
const { view } = getMemory(this, fdstat + 24);
|
|
294
307
|
view.setUint16(fdstat, fileDescriptor.type, true);
|
|
295
308
|
view.setUint16(fdstat + 2, 0, true);
|
|
296
309
|
view.setBigUint64(fdstat + 8, fileDescriptor.rightsBase, true);
|
|
@@ -331,7 +344,7 @@ class WASI {
|
|
|
331
344
|
}
|
|
332
345
|
if (fileDescriptor.preopen !== 1)
|
|
333
346
|
return types_1.WasiErrno.EINVAL;
|
|
334
|
-
const { view } = getMemory(this);
|
|
347
|
+
const { view } = getMemory(this, prestat + 8);
|
|
335
348
|
// preopen type is dir(0)
|
|
336
349
|
view.setUint32(prestat, 0, true);
|
|
337
350
|
view.setUint32(prestat + 4, encoder.encode(fileDescriptor.path).length, true);
|
|
@@ -351,7 +364,7 @@ class WASI {
|
|
|
351
364
|
const size = buffer.length;
|
|
352
365
|
if (size > path_len)
|
|
353
366
|
return types_1.WasiErrno.ENOBUFS;
|
|
354
|
-
const { HEAPU8 } = getMemory(this);
|
|
367
|
+
const { HEAPU8 } = getMemory(this, path + size);
|
|
355
368
|
HEAPU8.set(buffer, path);
|
|
356
369
|
return types_1.WasiErrno.ESUCCESS;
|
|
357
370
|
});
|
|
@@ -365,7 +378,7 @@ class WASI {
|
|
|
365
378
|
const wasi = _wasi.get(this);
|
|
366
379
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_SEEK, BigInt(0));
|
|
367
380
|
const r = fileDescriptor.seek(offset, whence);
|
|
368
|
-
const { view } = getMemory(this);
|
|
381
|
+
const { view } = getMemory(this, newOffset + 8);
|
|
369
382
|
view.setBigUint64(newOffset, r, true);
|
|
370
383
|
return types_1.WasiErrno.ESUCCESS;
|
|
371
384
|
});
|
|
@@ -373,7 +386,7 @@ class WASI {
|
|
|
373
386
|
const wasi = _wasi.get(this);
|
|
374
387
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_TELL, BigInt(0));
|
|
375
388
|
const pos = BigInt(fileDescriptor.pos);
|
|
376
|
-
const { view } = getMemory(this);
|
|
389
|
+
const { view } = getMemory(this, Number(offset) + 8);
|
|
377
390
|
view.setBigUint64(Number(offset), pos, true);
|
|
378
391
|
return types_1.WasiErrno.ESUCCESS;
|
|
379
392
|
});
|
|
@@ -386,7 +399,7 @@ class WASI {
|
|
|
386
399
|
if (in_ptr === 0 || out_ptr === 0 || nsubscriptions === 0 || nevents === 0) {
|
|
387
400
|
return types_1.WasiErrno.EINVAL;
|
|
388
401
|
}
|
|
389
|
-
const { view } = getMemory(this);
|
|
402
|
+
const { view } = getMemory(this, Math.max(in_ptr + nsubscriptions * 48, out_ptr + nsubscriptions * 32, nevents + 4));
|
|
390
403
|
view.setUint32(nevents, 0, true);
|
|
391
404
|
let i = 0;
|
|
392
405
|
let timer_userdata = BigInt(0);
|
|
@@ -505,7 +518,7 @@ class WASI {
|
|
|
505
518
|
return types_1.WasiErrno.EINVAL;
|
|
506
519
|
}
|
|
507
520
|
buf_len = Number(buf_len);
|
|
508
|
-
const { HEAPU8, view } = getMemory(this);
|
|
521
|
+
const { HEAPU8, view } = getMemory(this, buf + buf_len);
|
|
509
522
|
if ((typeof SharedArrayBuffer === 'function' && HEAPU8.buffer instanceof SharedArrayBuffer) ||
|
|
510
523
|
(Object.prototype.toString.call(HEAPU8.buffer) === '[object SharedArrayBuffer]')) {
|
|
511
524
|
for (let i = buf; i < buf + buf_len; ++i) {
|
|
@@ -527,7 +540,7 @@ class WASI {
|
|
|
527
540
|
return types_1.WasiErrno.EINVAL;
|
|
528
541
|
}
|
|
529
542
|
buf_len = Number(buf_len);
|
|
530
|
-
const { view } = getMemory(this);
|
|
543
|
+
const { view } = getMemory(this, buf + buf_len);
|
|
531
544
|
for (let i = buf; i < buf + buf_len; ++i) {
|
|
532
545
|
view.setUint8(i, Math.floor(Math.random() * 256));
|
|
533
546
|
}
|
|
@@ -620,7 +633,7 @@ class WASI {
|
|
|
620
633
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_FILESTAT_GET, BigInt(0));
|
|
621
634
|
const fs = getFs(this);
|
|
622
635
|
const stat = fs.fstatSync(fileDescriptor.fd, { bigint: true });
|
|
623
|
-
const { view } = getMemory(this);
|
|
636
|
+
const { view } = getMemory(this, buf + 64);
|
|
624
637
|
(0, fd_1.toFileStat)(view, buf, stat);
|
|
625
638
|
return types_1.WasiErrno.ESUCCESS;
|
|
626
639
|
}, async function fd_filestat_get(fd, buf) {
|
|
@@ -631,7 +644,7 @@ class WASI {
|
|
|
631
644
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_FILESTAT_GET, BigInt(0));
|
|
632
645
|
const h = fileDescriptor.fd;
|
|
633
646
|
const stat = await h.stat({ bigint: true });
|
|
634
|
-
const { view } = getMemory(this);
|
|
647
|
+
const { view } = getMemory(this, buf + 64);
|
|
635
648
|
(0, fd_1.toFileStat)(view, buf, stat);
|
|
636
649
|
return types_1.WasiErrno.ESUCCESS;
|
|
637
650
|
}, ['i32', 'i32'], ['i32']);
|
|
@@ -682,7 +695,7 @@ class WASI {
|
|
|
682
695
|
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
683
696
|
return types_1.WasiErrno.EINVAL;
|
|
684
697
|
}
|
|
685
|
-
const { HEAPU8, view } = getMemory(this);
|
|
698
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
686
699
|
const wasi = _wasi.get(this);
|
|
687
700
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_READ | types_1.WasiRights.FD_SEEK, BigInt(0));
|
|
688
701
|
if (!iovslen) {
|
|
@@ -718,7 +731,7 @@ class WASI {
|
|
|
718
731
|
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
719
732
|
return types_1.WasiErrno.EINVAL;
|
|
720
733
|
}
|
|
721
|
-
const { HEAPU8, view } = getMemory(this);
|
|
734
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
722
735
|
const wasi = _wasi.get(this);
|
|
723
736
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_READ | types_1.WasiRights.FD_SEEK, BigInt(0));
|
|
724
737
|
if (!iovslen) {
|
|
@@ -747,7 +760,7 @@ class WASI {
|
|
|
747
760
|
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
748
761
|
return types_1.WasiErrno.EINVAL;
|
|
749
762
|
}
|
|
750
|
-
const { HEAPU8, view } = getMemory(this);
|
|
763
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
751
764
|
const wasi = _wasi.get(this);
|
|
752
765
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_WRITE | types_1.WasiRights.FD_SEEK, BigInt(0));
|
|
753
766
|
if (!iovslen) {
|
|
@@ -770,7 +783,7 @@ class WASI {
|
|
|
770
783
|
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
771
784
|
return types_1.WasiErrno.EINVAL;
|
|
772
785
|
}
|
|
773
|
-
const { HEAPU8, view } = getMemory(this);
|
|
786
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
774
787
|
const wasi = _wasi.get(this);
|
|
775
788
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_WRITE | types_1.WasiRights.FD_SEEK, BigInt(0));
|
|
776
789
|
if (!iovslen) {
|
|
@@ -793,7 +806,7 @@ class WASI {
|
|
|
793
806
|
if ((iovs === 0 && iovslen) || size === 0) {
|
|
794
807
|
return types_1.WasiErrno.EINVAL;
|
|
795
808
|
}
|
|
796
|
-
const { HEAPU8, view } = getMemory(this);
|
|
809
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
797
810
|
const wasi = _wasi.get(this);
|
|
798
811
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_READ, BigInt(0));
|
|
799
812
|
if (!iovslen) {
|
|
@@ -840,7 +853,7 @@ class WASI {
|
|
|
840
853
|
if ((iovs === 0 && iovslen) || size === 0) {
|
|
841
854
|
return types_1.WasiErrno.EINVAL;
|
|
842
855
|
}
|
|
843
|
-
const { HEAPU8, view } = getMemory(this);
|
|
856
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
844
857
|
const wasi = _wasi.get(this);
|
|
845
858
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_READ, BigInt(0));
|
|
846
859
|
if (!iovslen) {
|
|
@@ -884,7 +897,7 @@ class WASI {
|
|
|
884
897
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_READDIR, BigInt(0));
|
|
885
898
|
const fs = getFs(this);
|
|
886
899
|
const entries = fs.readdirSync(fileDescriptor.realPath, { withFileTypes: true });
|
|
887
|
-
const { HEAPU8, view } = getMemory(this);
|
|
900
|
+
const { HEAPU8, view } = getMemory(this, Math.max(buf + buf_len, bufused + 4));
|
|
888
901
|
let bufferUsed = 0;
|
|
889
902
|
for (let i = Number(cookie); i < entries.length; i++) {
|
|
890
903
|
const nameData = encoder.encode(entries[i].name);
|
|
@@ -934,7 +947,7 @@ class WASI {
|
|
|
934
947
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_READDIR, BigInt(0));
|
|
935
948
|
const fs = getFs(this);
|
|
936
949
|
const entries = await fs.promises.readdir(fileDescriptor.realPath, { withFileTypes: true });
|
|
937
|
-
const { HEAPU8, view } = getMemory(this);
|
|
950
|
+
const { HEAPU8, view } = getMemory(this, Math.max(buf + buf_len, bufused + 4));
|
|
938
951
|
let bufferUsed = 0;
|
|
939
952
|
for (let i = Number(cookie); i < entries.length; i++) {
|
|
940
953
|
const nameData = encoder.encode(entries[i].name);
|
|
@@ -1002,7 +1015,7 @@ class WASI {
|
|
|
1002
1015
|
if ((iovs === 0 && iovslen) || size === 0) {
|
|
1003
1016
|
return types_1.WasiErrno.EINVAL;
|
|
1004
1017
|
}
|
|
1005
|
-
const { HEAPU8, view } = getMemory(this);
|
|
1018
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1006
1019
|
const wasi = _wasi.get(this);
|
|
1007
1020
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_WRITE, BigInt(0));
|
|
1008
1021
|
if (!iovslen) {
|
|
@@ -1032,7 +1045,7 @@ class WASI {
|
|
|
1032
1045
|
if ((iovs === 0 && iovslen) || size === 0) {
|
|
1033
1046
|
return types_1.WasiErrno.EINVAL;
|
|
1034
1047
|
}
|
|
1035
|
-
const { HEAPU8, view } = getMemory(this);
|
|
1048
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1036
1049
|
const wasi = _wasi.get(this);
|
|
1037
1050
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.FD_WRITE, BigInt(0));
|
|
1038
1051
|
if (!iovslen) {
|
|
@@ -1062,7 +1075,7 @@ class WASI {
|
|
|
1062
1075
|
if (path === 0) {
|
|
1063
1076
|
return types_1.WasiErrno.EINVAL;
|
|
1064
1077
|
}
|
|
1065
|
-
const { HEAPU8 } = getMemory(this);
|
|
1078
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1066
1079
|
const wasi = _wasi.get(this);
|
|
1067
1080
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
|
|
1068
1081
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1076,7 +1089,7 @@ class WASI {
|
|
|
1076
1089
|
if (path === 0) {
|
|
1077
1090
|
return types_1.WasiErrno.EINVAL;
|
|
1078
1091
|
}
|
|
1079
|
-
const { HEAPU8 } = getMemory(this);
|
|
1092
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1080
1093
|
const wasi = _wasi.get(this);
|
|
1081
1094
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
|
|
1082
1095
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1092,7 +1105,7 @@ class WASI {
|
|
|
1092
1105
|
if (path === 0 || filestat === 0) {
|
|
1093
1106
|
return types_1.WasiErrno.EINVAL;
|
|
1094
1107
|
}
|
|
1095
|
-
const { HEAPU8, view } = getMemory(this);
|
|
1108
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, filestat + 64));
|
|
1096
1109
|
const wasi = _wasi.get(this);
|
|
1097
1110
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_FILESTAT_GET, BigInt(0));
|
|
1098
1111
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1114,7 +1127,7 @@ class WASI {
|
|
|
1114
1127
|
if (path === 0 || filestat === 0) {
|
|
1115
1128
|
return types_1.WasiErrno.EINVAL;
|
|
1116
1129
|
}
|
|
1117
|
-
const { HEAPU8, view } = getMemory(this);
|
|
1130
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, filestat + 64));
|
|
1118
1131
|
const wasi = _wasi.get(this);
|
|
1119
1132
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_FILESTAT_GET, BigInt(0));
|
|
1120
1133
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1135,7 +1148,7 @@ class WASI {
|
|
|
1135
1148
|
path_len = Number(path_len);
|
|
1136
1149
|
if (path === 0)
|
|
1137
1150
|
return types_1.WasiErrno.EINVAL;
|
|
1138
|
-
const { HEAPU8 } = getMemory(this);
|
|
1151
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1139
1152
|
const wasi = _wasi.get(this);
|
|
1140
1153
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
|
|
1141
1154
|
if (validateFstFlagsOrReturn(fst_flags)) {
|
|
@@ -1156,7 +1169,7 @@ class WASI {
|
|
|
1156
1169
|
path_len = Number(path_len);
|
|
1157
1170
|
if (path === 0)
|
|
1158
1171
|
return types_1.WasiErrno.EINVAL;
|
|
1159
|
-
const { HEAPU8 } = getMemory(this);
|
|
1172
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1160
1173
|
const wasi = _wasi.get(this);
|
|
1161
1174
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
|
|
1162
1175
|
if (validateFstFlagsOrReturn(fst_flags)) {
|
|
@@ -1191,7 +1204,7 @@ class WASI {
|
|
|
1191
1204
|
oldWrap = wasi.fds.get(old_fd, types_1.WasiRights.PATH_LINK_SOURCE, BigInt(0));
|
|
1192
1205
|
newWrap = wasi.fds.get(new_fd, types_1.WasiRights.PATH_LINK_TARGET, BigInt(0));
|
|
1193
1206
|
}
|
|
1194
|
-
const { HEAPU8 } = getMemory(this);
|
|
1207
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
1195
1208
|
const fs = getFs(this);
|
|
1196
1209
|
const resolvedOldPath = resolvePathSync(fs, oldWrap, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, old_path, old_path + old_path_len)), old_flags);
|
|
1197
1210
|
const resolvedNewPath = (0, path_1.resolve)(newWrap.realPath, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, new_path, new_path + new_path_len)));
|
|
@@ -1215,7 +1228,7 @@ class WASI {
|
|
|
1215
1228
|
oldWrap = wasi.fds.get(old_fd, types_1.WasiRights.PATH_LINK_SOURCE, BigInt(0));
|
|
1216
1229
|
newWrap = wasi.fds.get(new_fd, types_1.WasiRights.PATH_LINK_TARGET, BigInt(0));
|
|
1217
1230
|
}
|
|
1218
|
-
const { HEAPU8 } = getMemory(this);
|
|
1231
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
1219
1232
|
const fs = getFs(this);
|
|
1220
1233
|
const resolvedOldPath = await resolvePathAsync(fs, oldWrap, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, old_path, old_path + old_path_len)), old_flags);
|
|
1221
1234
|
const resolvedNewPath = (0, path_1.resolve)(newWrap.realPath, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, new_path, new_path + new_path_len)));
|
|
@@ -1281,7 +1294,7 @@ class WASI {
|
|
|
1281
1294
|
const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
|
|
1282
1295
|
const wasi = _wasi.get(this);
|
|
1283
1296
|
const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
|
|
1284
|
-
const memory = getMemory(this);
|
|
1297
|
+
const memory = getMemory(this, Math.max(path + path_len, fd + 4));
|
|
1285
1298
|
const HEAPU8 = memory.HEAPU8;
|
|
1286
1299
|
const pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
1287
1300
|
const fs = getFs(this);
|
|
@@ -1317,7 +1330,7 @@ class WASI {
|
|
|
1317
1330
|
const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
|
|
1318
1331
|
const wasi = _wasi.get(this);
|
|
1319
1332
|
const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
|
|
1320
|
-
const memory = getMemory(this);
|
|
1333
|
+
const memory = getMemory(this, Math.max(path + path_len, fd + 4));
|
|
1321
1334
|
const HEAPU8 = memory.HEAPU8;
|
|
1322
1335
|
const pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
1323
1336
|
const fs = getFs(this);
|
|
@@ -1349,7 +1362,7 @@ class WASI {
|
|
|
1349
1362
|
if (path === 0 || buf === 0 || bufused === 0) {
|
|
1350
1363
|
return types_1.WasiErrno.EINVAL;
|
|
1351
1364
|
}
|
|
1352
|
-
const { HEAPU8, view } = getMemory(this);
|
|
1365
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, buf + buf_len, bufused + 4));
|
|
1353
1366
|
const wasi = _wasi.get(this);
|
|
1354
1367
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_READLINK, BigInt(0));
|
|
1355
1368
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1373,7 +1386,7 @@ class WASI {
|
|
|
1373
1386
|
if (path === 0 || buf === 0 || bufused === 0) {
|
|
1374
1387
|
return types_1.WasiErrno.EINVAL;
|
|
1375
1388
|
}
|
|
1376
|
-
const { HEAPU8, view } = getMemory(this);
|
|
1389
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, buf + buf_len, bufused + 4));
|
|
1377
1390
|
const wasi = _wasi.get(this);
|
|
1378
1391
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_READLINK, BigInt(0));
|
|
1379
1392
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1395,7 +1408,7 @@ class WASI {
|
|
|
1395
1408
|
if (path === 0) {
|
|
1396
1409
|
return types_1.WasiErrno.EINVAL;
|
|
1397
1410
|
}
|
|
1398
|
-
const { HEAPU8 } = getMemory(this);
|
|
1411
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1399
1412
|
const wasi = _wasi.get(this);
|
|
1400
1413
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
|
|
1401
1414
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1409,7 +1422,7 @@ class WASI {
|
|
|
1409
1422
|
if (path === 0) {
|
|
1410
1423
|
return types_1.WasiErrno.EINVAL;
|
|
1411
1424
|
}
|
|
1412
|
-
const { HEAPU8 } = getMemory(this);
|
|
1425
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1413
1426
|
const wasi = _wasi.get(this);
|
|
1414
1427
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
|
|
1415
1428
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1436,7 +1449,7 @@ class WASI {
|
|
|
1436
1449
|
oldWrap = wasi.fds.get(old_fd, types_1.WasiRights.PATH_RENAME_SOURCE, BigInt(0));
|
|
1437
1450
|
newWrap = wasi.fds.get(new_fd, types_1.WasiRights.PATH_RENAME_TARGET, BigInt(0));
|
|
1438
1451
|
}
|
|
1439
|
-
const { HEAPU8 } = getMemory(this);
|
|
1452
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
1440
1453
|
const resolvedOldPath = (0, path_1.resolve)(oldWrap.realPath, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, old_path, old_path + old_path_len)));
|
|
1441
1454
|
const resolvedNewPath = (0, path_1.resolve)(newWrap.realPath, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, new_path, new_path + new_path_len)));
|
|
1442
1455
|
const fs = getFs(this);
|
|
@@ -1460,7 +1473,7 @@ class WASI {
|
|
|
1460
1473
|
oldWrap = wasi.fds.get(old_fd, types_1.WasiRights.PATH_RENAME_SOURCE, BigInt(0));
|
|
1461
1474
|
newWrap = wasi.fds.get(new_fd, types_1.WasiRights.PATH_RENAME_TARGET, BigInt(0));
|
|
1462
1475
|
}
|
|
1463
|
-
const { HEAPU8 } = getMemory(this);
|
|
1476
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
1464
1477
|
const resolvedOldPath = (0, path_1.resolve)(oldWrap.realPath, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, old_path, old_path + old_path_len)));
|
|
1465
1478
|
const resolvedNewPath = (0, path_1.resolve)(newWrap.realPath, decoder.decode((0, util_1.unsharedSlice)(HEAPU8, new_path, new_path + new_path_len)));
|
|
1466
1479
|
const fs = getFs(this);
|
|
@@ -1475,7 +1488,7 @@ class WASI {
|
|
|
1475
1488
|
if (old_path === 0 || new_path === 0) {
|
|
1476
1489
|
return types_1.WasiErrno.EINVAL;
|
|
1477
1490
|
}
|
|
1478
|
-
const { HEAPU8 } = getMemory(this);
|
|
1491
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
1479
1492
|
const wasi = _wasi.get(this);
|
|
1480
1493
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_SYMLINK, BigInt(0));
|
|
1481
1494
|
const oldPath = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, old_path, old_path + old_path_len));
|
|
@@ -1495,7 +1508,7 @@ class WASI {
|
|
|
1495
1508
|
if (old_path === 0 || new_path === 0) {
|
|
1496
1509
|
return types_1.WasiErrno.EINVAL;
|
|
1497
1510
|
}
|
|
1498
|
-
const { HEAPU8 } = getMemory(this);
|
|
1511
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
1499
1512
|
const wasi = _wasi.get(this);
|
|
1500
1513
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_SYMLINK, BigInt(0));
|
|
1501
1514
|
const oldPath = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, old_path, old_path + old_path_len));
|
|
@@ -1511,7 +1524,7 @@ class WASI {
|
|
|
1511
1524
|
if (path === 0) {
|
|
1512
1525
|
return types_1.WasiErrno.EINVAL;
|
|
1513
1526
|
}
|
|
1514
|
-
const { HEAPU8 } = getMemory(this);
|
|
1527
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1515
1528
|
const wasi = _wasi.get(this);
|
|
1516
1529
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_UNLINK_FILE, BigInt(0));
|
|
1517
1530
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|
|
@@ -1525,7 +1538,7 @@ class WASI {
|
|
|
1525
1538
|
if (path === 0) {
|
|
1526
1539
|
return types_1.WasiErrno.EINVAL;
|
|
1527
1540
|
}
|
|
1528
|
-
const { HEAPU8 } = getMemory(this);
|
|
1541
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
1529
1542
|
const wasi = _wasi.get(this);
|
|
1530
1543
|
const fileDescriptor = wasi.fds.get(fd, types_1.WasiRights.PATH_UNLINK_FILE, BigInt(0));
|
|
1531
1544
|
let pathString = decoder.decode((0, util_1.unsharedSlice)(HEAPU8, path, path + path_len));
|