@openclaw/discord 2026.7.1-beta.2 → 2026.7.1-beta.5

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.
Files changed (672) hide show
  1. package/dist/action-runtime-api.js +1 -1
  2. package/dist/{api-CJvEMuA6.js → api-DPRqYi4Z.js} +2 -1
  3. package/dist/api.js +14 -14
  4. package/dist/{approval-handler.runtime-Cg7CuLSc.js → approval-handler.runtime-Bw2pZNk1.js} +24 -4
  5. package/dist/{audit-BCVhE9Oe.js → audit-MLpDpN3Z.js} +3 -3
  6. package/dist/{channel-actions-DJ_i4v9b.js → channel-actions-D_fjVUZ_.js} +5 -5
  7. package/dist/{channel-actions.runtime-BDW12z0o.js → channel-actions.runtime-CVHlFqQg.js} +5 -5
  8. package/dist/channel-config-api.js +1 -1
  9. package/dist/{channel-CfngVOjW.js → channel-kBTCV_g9.js} +26 -26
  10. package/dist/channel-plugin-api.js +1 -1
  11. package/dist/{channel.setup-BYZ78cmU.js → channel.setup-tZcpIn4e.js} +3 -3
  12. package/dist/{components-CBPNJhVP.js → components-BIBizbtZ.js} +10 -6
  13. package/dist/{config-schema-spuxW477.js → config-schema-BgIhO3ko.js} +1 -1
  14. package/dist/{conversation-identity-CnYbx3sO.js → conversation-identity-DWC5d8Sy.js} +2 -2
  15. package/dist/{directory-config-CouAqvDj.js → directory-config-ByaUKL1f.js} +1 -1
  16. package/dist/directory-contract-api.js +1 -1
  17. package/dist/{directory-live-C8lwwDJo.js → directory-live-BX79ImQA.js} +2 -2
  18. package/dist/{doctor-CKIw8urm.js → doctor-Bgoxm5AN.js} +1 -1
  19. package/dist/{handle-action.guild-admin-CHMDXefq.js → handle-action.guild-admin-CgJSNVui.js} +2 -2
  20. package/dist/index.js +1 -1
  21. package/dist/{manager.runtime-BkMOU8kh.js → manager.runtime-D-ZJn56X.js} +28 -15
  22. package/dist/{message-handler-B2cEpj5S.js → message-handler-DbrX-sHg.js} +11 -8
  23. package/dist/{message-handler.preflight-B93Az6zg.js → message-handler.preflight-Dd-xQ-qv.js} +34 -14
  24. package/dist/{message-handler.process-CW5mMw4o.js → message-handler.process-CV1GmuBj.js} +29 -84
  25. package/dist/{message-utils-Dy9KeClm.js → message-utils-B_3yA5bN.js} +11 -6
  26. package/dist/{outbound-adapter-n_qRwyHZ.js → outbound-adapter-82RWi_SR.js} +138 -152
  27. package/dist/{pluralkit-DaWTJTmF.js → pluralkit-DcD-3EcL.js} +1 -1
  28. package/dist/{preflight-audio-DecwnhEA.js → preflight-audio-DYL2ABgA.js} +1 -1
  29. package/dist/presence-cache-z1N8MbJ3.js +45 -0
  30. package/dist/{probe-Bkf8mJlj.js → probe-D1ImJEo2.js} +2 -2
  31. package/dist/{probe.runtime-3Rerer9g.js → probe.runtime-B1dsEeBD.js} +1 -1
  32. package/dist/{provider-BuTO6czP.js → provider-Cm9QSAO8.js} +61 -42
  33. package/dist/{provider-session.runtime-DmBTGaQX.js → provider-session.runtime-DYKny61v.js} +3 -3
  34. package/dist/provider.runtime-BIHvVXCg.js +2 -0
  35. package/dist/{resolve-allowlist-common-BDNoAQll.js → resolve-allowlist-common-CWbE8XlH.js} +1 -1
  36. package/dist/{resolve-channels-C_rAwrkj.js → resolve-channels-CcpvWoRa.js} +3 -3
  37. package/dist/{resolve-users-Cz1tkemy.js → resolve-users-DJamun9s.js} +3 -3
  38. package/dist/{runtime-DaaaVvJm.js → runtime-C6rRmQ6l.js} +23 -20
  39. package/dist/runtime-api.actions.js +2 -2
  40. package/dist/runtime-api.js +20 -20
  41. package/dist/runtime-api.lookup.js +5 -5
  42. package/dist/runtime-api.monitor-DoCAqUlv.js +6 -0
  43. package/dist/runtime-api.monitor.js +6 -5
  44. package/dist/runtime-api.send.js +5 -5
  45. package/dist/runtime-api.threads.js +3 -3
  46. package/dist/{secret-config-contract-BjM-1hr9.js → secret-config-contract-BDNrRWvd.js} +6 -1
  47. package/dist/secret-contract-api.js +1 -1
  48. package/dist/{send-B_yfprXu.js → send-iJ0B4bAX.js} +28 -17
  49. package/dist/{send.components-C2psXc7A.js → send.components-D0I39utR.js} +18 -15
  50. package/dist/{send.outbound-BPcCF1v2.js → send.outbound-Bj61Q3a0.js} +105 -20
  51. package/dist/{send.receipt-CK162xD0.js → send.receipt-BpBQED_5.js} +51 -26
  52. package/dist/{send.shared-CUTfqvXx.js → send.shared-wAwMhHDN.js} +145 -28
  53. package/dist/session-binding-contract-api.js +1 -1
  54. package/dist/setup-plugin-api.js +1 -1
  55. package/dist/{shared-AnStShZr.js → shared-BQVKfnev.js} +3 -3
  56. package/dist/{subagent-hooks-DkO-jpvh.js → subagent-hooks-B-bJxxGg.js} +2 -2
  57. package/dist/subagent-hooks-api.js +1 -1
  58. package/dist/{system-events-XRYuwB2n.js → system-events-DVnqSyTt.js} +1 -1
  59. package/dist/{target-resolver-DYufMbXm.js → target-resolver-CwHaSLt3.js} +2 -2
  60. package/dist/targets-69w7c3vU.js +3 -0
  61. package/dist/{thread-bindings-BuXtcLSp.js → thread-bindings-DsTxqu3E.js} +4 -4
  62. package/dist/{thread-bindings.discord-api-CetgvIbE.js → thread-bindings.discord-api-BjIf9lGs.js} +4 -4
  63. package/dist/{thread-bindings.manager-B7AHjU4s.js → thread-bindings.manager-Bwmtqc3E.js} +3 -3
  64. package/dist/{transcripts-source-DW6d1eCL.js → transcripts-source-BvvM5Ns9.js} +1 -1
  65. package/dist/transcripts-source-api.js +1 -1
  66. package/dist/{typing-BMQEI8OW.js → typing-BVcJgILg.js} +1 -1
  67. package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +23 -1
  68. package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +291 -256
  69. package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +23 -1
  70. package/node_modules/@napi-rs/wasm-runtime/package.json +6 -6
  71. package/node_modules/@snazzah/davey/index.js +46 -46
  72. package/node_modules/@snazzah/davey/package.json +20 -20
  73. package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
  74. package/node_modules/@snazzah/davey-android-arm-eabi/package.json +1 -1
  75. package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
  76. package/node_modules/@snazzah/davey-android-arm64/package.json +1 -1
  77. package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
  78. package/node_modules/@snazzah/davey-darwin-arm64/package.json +1 -1
  79. package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
  80. package/node_modules/@snazzah/davey-darwin-x64/package.json +1 -1
  81. package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
  82. package/node_modules/@snazzah/davey-freebsd-x64/package.json +1 -1
  83. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
  84. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +1 -1
  85. package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
  86. package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +1 -1
  87. package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
  88. package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +1 -1
  89. package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
  90. package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +1 -1
  91. package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
  92. package/node_modules/@snazzah/davey-linux-x64-musl/package.json +1 -1
  93. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
  94. package/node_modules/@snazzah/davey-wasm32-wasi/package.json +2 -2
  95. package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
  96. package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +1 -1
  97. package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
  98. package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +1 -1
  99. package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
  100. package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +1 -1
  101. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +60 -48
  102. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +60 -48
  103. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -1
  104. package/node_modules/@tybys/wasm-util/dist/wasm-util.js +60 -48
  105. package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -1
  106. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +62 -49
  107. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +60 -48
  108. package/node_modules/@tybys/wasm-util/package.json +1 -1
  109. package/node_modules/@types/node/README.md +1 -1
  110. package/node_modules/@types/node/assert/strict.d.ts +10 -1
  111. package/node_modules/@types/node/assert.d.ts +144 -17
  112. package/node_modules/@types/node/async_hooks.d.ts +9 -9
  113. package/node_modules/@types/node/buffer.d.ts +64 -30
  114. package/node_modules/@types/node/child_process.d.ts +17 -21
  115. package/node_modules/@types/node/cluster.d.ts +13 -13
  116. package/node_modules/@types/node/console.d.ts +1 -1
  117. package/node_modules/@types/node/crypto.d.ts +471 -575
  118. package/node_modules/@types/node/diagnostics_channel.d.ts +274 -32
  119. package/node_modules/@types/node/dns.d.ts +15 -15
  120. package/node_modules/@types/node/events.d.ts +3 -3
  121. package/node_modules/@types/node/ffi.d.ts +486 -0
  122. package/node_modules/@types/node/fs/promises.d.ts +7 -4
  123. package/node_modules/@types/node/fs.d.ts +24 -18
  124. package/node_modules/@types/node/globals.d.ts +4 -4
  125. package/node_modules/@types/node/http.d.ts +30 -5
  126. package/node_modules/@types/node/http2.d.ts +5 -1
  127. package/node_modules/@types/node/index.d.ts +1 -3
  128. package/node_modules/@types/node/inspector.d.ts +1 -1
  129. package/node_modules/@types/node/module.d.ts +16 -45
  130. package/node_modules/@types/node/net.d.ts +1 -1
  131. package/node_modules/@types/node/os.d.ts +2 -2
  132. package/node_modules/@types/node/package.json +4 -4
  133. package/node_modules/@types/node/perf_hooks.d.ts +1 -9
  134. package/node_modules/@types/node/process.d.ts +25 -12
  135. package/node_modules/@types/node/quic.d.ts +92 -11
  136. package/node_modules/@types/node/readline.d.ts +12 -11
  137. package/node_modules/@types/node/repl.d.ts +10 -10
  138. package/node_modules/@types/node/sqlite.d.ts +56 -1
  139. package/node_modules/@types/node/stream/iter.d.ts +150 -0
  140. package/node_modules/@types/node/stream/promises.d.ts +2 -2
  141. package/node_modules/@types/node/stream/web.d.ts +1 -1
  142. package/node_modules/@types/node/stream.d.ts +37 -5
  143. package/node_modules/@types/node/test/reporters.d.ts +1 -1
  144. package/node_modules/@types/node/test.d.ts +120 -10
  145. package/node_modules/@types/node/tls.d.ts +1 -1
  146. package/node_modules/@types/node/ts5.6/index.d.ts +2 -4
  147. package/node_modules/@types/node/ts5.7/index.d.ts +1 -3
  148. package/node_modules/@types/node/url.d.ts +3 -3
  149. package/node_modules/@types/node/util/types.d.ts +1 -1
  150. package/node_modules/@types/node/util.d.ts +22 -22
  151. package/node_modules/@types/node/v8.d.ts +85 -3
  152. package/node_modules/@types/node/vm.d.ts +9 -9
  153. package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
  154. package/node_modules/@types/node/worker_threads.d.ts +10 -12
  155. package/node_modules/@types/node/zlib.d.ts +3 -3
  156. package/node_modules/discord-api-types/CHANGELOG.md +16 -0
  157. package/node_modules/discord-api-types/README.md +1 -1
  158. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts +16 -0
  159. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map +1 -1
  160. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts +16 -0
  161. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map +1 -1
  162. package/node_modules/discord-api-types/gateway/index.mjs +1 -0
  163. package/node_modules/discord-api-types/gateway/v10.d.ts +125 -8
  164. package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -1
  165. package/node_modules/discord-api-types/gateway/v10.js +13 -1
  166. package/node_modules/discord-api-types/gateway/v10.js.map +1 -1
  167. package/node_modules/discord-api-types/gateway/v10.mjs +1 -0
  168. package/node_modules/discord-api-types/gateway/v9.d.ts +125 -8
  169. package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -1
  170. package/node_modules/discord-api-types/gateway/v9.js +13 -1
  171. package/node_modules/discord-api-types/gateway/v9.js.map +1 -1
  172. package/node_modules/discord-api-types/gateway/v9.mjs +1 -0
  173. package/node_modules/discord-api-types/package.json +4 -4
  174. package/node_modules/discord-api-types/payloads/common.d.ts +6 -0
  175. package/node_modules/discord-api-types/payloads/common.d.ts.map +1 -1
  176. package/node_modules/discord-api-types/payloads/common.js +6 -0
  177. package/node_modules/discord-api-types/payloads/common.js.map +1 -1
  178. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts +1 -1
  179. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts.map +1 -1
  180. package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts +12 -1
  181. package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts.map +1 -1
  182. package/node_modules/discord-api-types/payloads/v10/auditLog.js +2 -0
  183. package/node_modules/discord-api-types/payloads/v10/auditLog.js.map +1 -1
  184. package/node_modules/discord-api-types/payloads/v10/invite.d.ts +7 -1
  185. package/node_modules/discord-api-types/payloads/v10/invite.d.ts.map +1 -1
  186. package/node_modules/discord-api-types/payloads/v10/invite.js.map +1 -1
  187. package/node_modules/discord-api-types/payloads/v10/monetization.d.ts +4 -4
  188. package/node_modules/discord-api-types/payloads/v10/monetization.d.ts.map +1 -1
  189. package/node_modules/discord-api-types/payloads/v10/monetization.js +4 -4
  190. package/node_modules/discord-api-types/payloads/v10/monetization.js.map +1 -1
  191. package/node_modules/discord-api-types/payloads/v10/webhook.d.ts +2 -2
  192. package/node_modules/discord-api-types/payloads/v10/webhook.d.ts.map +1 -1
  193. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts +1 -1
  194. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts.map +1 -1
  195. package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts +12 -1
  196. package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts.map +1 -1
  197. package/node_modules/discord-api-types/payloads/v9/auditLog.js +2 -0
  198. package/node_modules/discord-api-types/payloads/v9/auditLog.js.map +1 -1
  199. package/node_modules/discord-api-types/payloads/v9/invite.d.ts +7 -1
  200. package/node_modules/discord-api-types/payloads/v9/invite.d.ts.map +1 -1
  201. package/node_modules/discord-api-types/payloads/v9/invite.js.map +1 -1
  202. package/node_modules/discord-api-types/payloads/v9/monetization.d.ts +4 -4
  203. package/node_modules/discord-api-types/payloads/v9/monetization.d.ts.map +1 -1
  204. package/node_modules/discord-api-types/payloads/v9/monetization.js +4 -4
  205. package/node_modules/discord-api-types/payloads/v9/monetization.js.map +1 -1
  206. package/node_modules/discord-api-types/payloads/v9/webhook.d.ts +2 -2
  207. package/node_modules/discord-api-types/payloads/v9/webhook.d.ts.map +1 -1
  208. package/node_modules/discord-api-types/rest/common.d.ts +5 -0
  209. package/node_modules/discord-api-types/rest/common.d.ts.map +1 -1
  210. package/node_modules/discord-api-types/rest/common.js +5 -0
  211. package/node_modules/discord-api-types/rest/common.js.map +1 -1
  212. package/node_modules/discord-api-types/rest/index.mjs +1 -0
  213. package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts +1 -1
  214. package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts.map +1 -1
  215. package/node_modules/discord-api-types/rest/v10/channel.d.ts +49 -16
  216. package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -1
  217. package/node_modules/discord-api-types/rest/v10/emoji.d.ts +2 -2
  218. package/node_modules/discord-api-types/rest/v10/emoji.d.ts.map +1 -1
  219. package/node_modules/discord-api-types/rest/v10/guild.d.ts +9 -9
  220. package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -1
  221. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts +1 -1
  222. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts.map +1 -1
  223. package/node_modules/discord-api-types/rest/v10/index.d.ts +1 -1
  224. package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -1
  225. package/node_modules/discord-api-types/rest/v10/index.js +23 -0
  226. package/node_modules/discord-api-types/rest/v10/index.js.map +1 -1
  227. package/node_modules/discord-api-types/rest/v10/index.mjs +1 -0
  228. package/node_modules/discord-api-types/rest/v10/interactions.d.ts +1 -1
  229. package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -1
  230. package/node_modules/discord-api-types/rest/v10/invite.d.ts +67 -0
  231. package/node_modules/discord-api-types/rest/v10/invite.d.ts.map +1 -1
  232. package/node_modules/discord-api-types/rest/v10/invite.js +23 -0
  233. package/node_modules/discord-api-types/rest/v10/invite.js.map +1 -1
  234. package/node_modules/discord-api-types/rest/v10/monetization.d.ts +2 -2
  235. package/node_modules/discord-api-types/rest/v10/monetization.d.ts.map +1 -1
  236. package/node_modules/discord-api-types/rest/v10/soundboard.d.ts +2 -2
  237. package/node_modules/discord-api-types/rest/v10/soundboard.d.ts.map +1 -1
  238. package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts +1 -1
  239. package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts.map +1 -1
  240. package/node_modules/discord-api-types/rest/v10/sticker.d.ts +1 -1
  241. package/node_modules/discord-api-types/rest/v10/sticker.d.ts.map +1 -1
  242. package/node_modules/discord-api-types/rest/v10/user.d.ts +1 -1
  243. package/node_modules/discord-api-types/rest/v10/user.d.ts.map +1 -1
  244. package/node_modules/discord-api-types/rest/v10/voice.d.ts +2 -2
  245. package/node_modules/discord-api-types/rest/v10/voice.d.ts.map +1 -1
  246. package/node_modules/discord-api-types/rest/v10/webhook.d.ts +6 -6
  247. package/node_modules/discord-api-types/rest/v10/webhook.d.ts.map +1 -1
  248. package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts +1 -1
  249. package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts.map +1 -1
  250. package/node_modules/discord-api-types/rest/v9/channel.d.ts +49 -16
  251. package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -1
  252. package/node_modules/discord-api-types/rest/v9/emoji.d.ts +2 -2
  253. package/node_modules/discord-api-types/rest/v9/emoji.d.ts.map +1 -1
  254. package/node_modules/discord-api-types/rest/v9/guild.d.ts +9 -9
  255. package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -1
  256. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts +1 -1
  257. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts.map +1 -1
  258. package/node_modules/discord-api-types/rest/v9/index.d.ts +1 -1
  259. package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -1
  260. package/node_modules/discord-api-types/rest/v9/index.js +23 -0
  261. package/node_modules/discord-api-types/rest/v9/index.js.map +1 -1
  262. package/node_modules/discord-api-types/rest/v9/index.mjs +1 -0
  263. package/node_modules/discord-api-types/rest/v9/interactions.d.ts +1 -1
  264. package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -1
  265. package/node_modules/discord-api-types/rest/v9/invite.d.ts +67 -0
  266. package/node_modules/discord-api-types/rest/v9/invite.d.ts.map +1 -1
  267. package/node_modules/discord-api-types/rest/v9/invite.js +23 -0
  268. package/node_modules/discord-api-types/rest/v9/invite.js.map +1 -1
  269. package/node_modules/discord-api-types/rest/v9/monetization.d.ts +2 -2
  270. package/node_modules/discord-api-types/rest/v9/monetization.d.ts.map +1 -1
  271. package/node_modules/discord-api-types/rest/v9/soundboard.d.ts +2 -2
  272. package/node_modules/discord-api-types/rest/v9/soundboard.d.ts.map +1 -1
  273. package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts +1 -1
  274. package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts.map +1 -1
  275. package/node_modules/discord-api-types/rest/v9/sticker.d.ts +1 -1
  276. package/node_modules/discord-api-types/rest/v9/sticker.d.ts.map +1 -1
  277. package/node_modules/discord-api-types/rest/v9/user.d.ts +1 -1
  278. package/node_modules/discord-api-types/rest/v9/user.d.ts.map +1 -1
  279. package/node_modules/discord-api-types/rest/v9/voice.d.ts +2 -2
  280. package/node_modules/discord-api-types/rest/v9/voice.d.ts.map +1 -1
  281. package/node_modules/discord-api-types/rest/v9/webhook.d.ts +6 -6
  282. package/node_modules/discord-api-types/rest/v9/webhook.d.ts.map +1 -1
  283. package/node_modules/discord-api-types/rpc/v10.d.ts +19 -19
  284. package/node_modules/discord-api-types/rpc/v10.d.ts.map +1 -1
  285. package/node_modules/discord-api-types/v10.mjs +2 -0
  286. package/node_modules/discord-api-types/v9.mjs +2 -0
  287. package/node_modules/typebox/build/compile/validator.d.mts +2 -7
  288. package/node_modules/typebox/build/compile/validator.mjs +6 -36
  289. package/node_modules/typebox/build/error/errors.d.mts +1 -7
  290. package/node_modules/typebox/build/format/_idna.mjs +36 -6
  291. package/node_modules/typebox/build/format/_puny.mjs +4 -1
  292. package/node_modules/typebox/build/format/uuid.d.mts +2 -2
  293. package/node_modules/typebox/build/format/uuid.mjs +3 -3
  294. package/node_modules/typebox/build/guard/emit.d.mts +0 -4
  295. package/node_modules/typebox/build/guard/emit.mjs +0 -8
  296. package/node_modules/typebox/build/guard/guard.d.mts +4 -8
  297. package/node_modules/typebox/build/guard/guard.mjs +5 -13
  298. package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
  299. package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
  300. package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
  301. package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
  302. package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
  303. package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
  304. package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
  305. package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
  306. package/node_modules/typebox/build/schema/types/index.mjs +0 -1
  307. package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
  308. package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
  309. package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
  310. package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
  311. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
  312. package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
  313. package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
  314. package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
  315. package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
  316. package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
  317. package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
  318. package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
  319. package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
  320. package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
  321. package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
  322. package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
  323. package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
  324. package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
  325. package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
  326. package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
  327. package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
  328. package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
  329. package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
  330. package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
  331. package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
  332. package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
  333. package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
  334. package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
  335. package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
  336. package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
  337. package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
  338. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
  339. package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
  340. package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
  341. package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
  342. package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
  343. package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
  344. package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
  345. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
  346. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
  347. package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
  348. package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
  349. package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
  350. package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
  351. package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
  352. package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
  353. package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
  354. package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
  355. package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
  356. package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
  357. package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
  358. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
  359. package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
  360. package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
  361. package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
  362. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
  363. package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
  364. package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
  365. package/node_modules/typebox/build/type/action/index.d.mts +7 -4
  366. package/node_modules/typebox/build/type/action/index.mjs +7 -4
  367. package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
  368. package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
  369. package/node_modules/typebox/build/type/action/module.d.mts +8 -7
  370. package/node_modules/typebox/build/type/action/module.mjs +7 -6
  371. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  372. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
  373. package/node_modules/typebox/build/type/action/with.d.mts +11 -0
  374. package/node_modules/typebox/build/type/action/with.mjs +11 -0
  375. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  376. package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
  377. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
  378. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
  379. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
  380. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
  381. package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
  382. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
  383. package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
  384. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
  385. package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
  386. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
  387. package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
  388. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
  389. package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
  390. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
  391. package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
  392. package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
  393. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
  394. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
  395. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
  396. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
  397. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
  398. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
  399. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
  400. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
  401. package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
  402. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
  403. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
  404. package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
  405. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
  406. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
  407. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
  408. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
  409. package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
  410. package/node_modules/typebox/build/type/engine/index.mjs +2 -2
  411. package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
  412. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
  413. package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
  414. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
  415. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
  416. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
  417. package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
  418. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
  419. package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
  420. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
  421. package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
  422. package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
  423. package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
  424. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
  425. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
  426. package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
  427. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
  428. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
  429. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
  430. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
  431. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
  432. package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
  433. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
  434. package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
  435. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
  436. package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
  437. package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
  438. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  439. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
  440. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
  441. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
  442. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
  443. package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
  444. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
  445. package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
  446. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
  447. package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
  448. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
  449. package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
  450. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
  451. package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
  452. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
  453. package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
  454. package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
  455. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
  456. package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
  457. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
  458. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
  459. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
  460. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
  461. package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
  462. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
  463. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
  464. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
  465. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
  466. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
  467. package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
  468. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
  469. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
  470. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
  471. package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
  472. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
  473. package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
  474. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
  475. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
  476. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
  477. package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
  478. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
  479. package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
  480. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
  481. package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
  482. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
  483. package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
  484. package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
  485. package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
  486. package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
  487. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
  488. package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
  489. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
  490. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  491. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
  492. package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
  493. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
  494. package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
  495. package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
  496. package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
  497. package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
  498. package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
  499. package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
  500. package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
  501. package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
  502. package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
  503. package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
  504. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  505. package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
  506. package/node_modules/typebox/build/type/extends/object.mjs +25 -3
  507. package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
  508. package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
  509. package/node_modules/typebox/build/type/extends/record.mjs +23 -0
  510. package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
  511. package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
  512. package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
  513. package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
  514. package/node_modules/typebox/build/type/extends/union.mjs +2 -2
  515. package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
  516. package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
  517. package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
  518. package/node_modules/typebox/build/type/script/parser.mjs +22 -22
  519. package/node_modules/typebox/build/type/script/script.d.mts +3 -4
  520. package/node_modules/typebox/build/type/script/script.mjs +3 -2
  521. package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
  522. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  523. package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
  524. package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
  525. package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
  526. package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
  527. package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
  528. package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
  529. package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
  530. package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
  531. package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
  532. package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
  533. package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
  534. package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
  535. package/node_modules/typebox/build/type/types/call.d.mts +3 -3
  536. package/node_modules/typebox/build/type/types/call.mjs +3 -2
  537. package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
  538. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  539. package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
  540. package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
  541. package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
  542. package/node_modules/typebox/build/type/types/enum.mjs +5 -0
  543. package/node_modules/typebox/build/type/types/index.d.mts +1 -4
  544. package/node_modules/typebox/build/type/types/index.mjs +1 -4
  545. package/node_modules/typebox/build/type/types/number.d.mts +1 -1
  546. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  547. package/node_modules/typebox/build/type/types/record.d.mts +13 -7
  548. package/node_modules/typebox/build/type/types/record.mjs +15 -9
  549. package/node_modules/typebox/build/type/types/static.d.mts +2 -5
  550. package/node_modules/typebox/build/typebox.d.mts +4 -8
  551. package/node_modules/typebox/build/typebox.mjs +4 -8
  552. package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
  553. package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
  554. package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
  555. package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
  556. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
  557. package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
  558. package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
  559. package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
  560. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
  561. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
  562. package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
  563. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
  564. package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
  565. package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
  566. package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
  567. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
  568. package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
  569. package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
  570. package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
  571. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  572. package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
  573. package/node_modules/typebox/build/value/index.d.mts +0 -1
  574. package/node_modules/typebox/build/value/index.mjs +0 -1
  575. package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
  576. package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
  577. package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
  578. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
  579. package/node_modules/typebox/build/value/value.d.mts +0 -1
  580. package/node_modules/typebox/build/value/value.mjs +0 -1
  581. package/node_modules/typebox/package.json +25 -25
  582. package/node_modules/typebox/readme.md +97 -80
  583. package/node_modules/undici-types/agent.d.ts +0 -2
  584. package/node_modules/undici-types/client.d.ts +25 -19
  585. package/node_modules/undici-types/dispatcher.d.ts +7 -33
  586. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  587. package/node_modules/undici-types/fetch.d.ts +24 -4
  588. package/node_modules/undici-types/h2c-client.d.ts +6 -6
  589. package/node_modules/undici-types/handlers.d.ts +1 -2
  590. package/node_modules/undici-types/header.d.ts +5 -0
  591. package/node_modules/undici-types/index.d.ts +3 -1
  592. package/node_modules/undici-types/interceptors.d.ts +1 -1
  593. package/node_modules/undici-types/package.json +1 -1
  594. package/node_modules/undici-types/pool.d.ts +0 -2
  595. package/node_modules/undici-types/proxy-agent.d.ts +2 -2
  596. package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
  597. package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
  598. package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
  599. package/node_modules/undici-types/webidl.d.ts +0 -1
  600. package/npm-shrinkwrap.json +85 -85
  601. package/openclaw.plugin.json +1 -1
  602. package/package.json +6 -6
  603. package/dist/gateway-registry-DPxmW0Db.js +0 -74
  604. package/dist/provider.runtime-CqZpKOCE.js +0 -2
  605. package/dist/runtime-api.monitor-ChuqOjHq.js +0 -6
  606. package/dist/targets-BA7gf0K0.js +0 -3
  607. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  608. package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
  609. package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
  610. package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
  611. package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
  612. package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
  613. package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
  614. package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
  615. package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
  616. package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
  617. package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
  618. package/node_modules/typebox/build/type/action/options.d.mts +0 -11
  619. package/node_modules/typebox/build/type/action/options.mjs +0 -11
  620. package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
  621. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
  622. package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
  623. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
  624. package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
  625. package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
  626. package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
  627. package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
  628. package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
  629. package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
  630. package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
  631. package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
  632. package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
  633. package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
  634. package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
  635. package/node_modules/typebox/build/type/types/base.d.mts +0 -50
  636. package/node_modules/typebox/build/type/types/base.mjs +0 -84
  637. package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
  638. package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
  639. package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
  640. package/node_modules/typebox/build/type/types/promise.mjs +0 -29
  641. package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
  642. package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
  643. package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
  644. package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
  645. package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
  646. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
  647. package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
  648. package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
  649. package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
  650. package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
  651. package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
  652. package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
  653. package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
  654. package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
  655. package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
  656. package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
  657. package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
  658. package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
  659. package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
  660. package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
  661. package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
  662. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
  663. package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
  664. package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
  665. package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
  666. package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
  667. package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
  668. package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
  669. package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
  670. package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
  671. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
  672. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
@@ -49,8 +49,18 @@ function copyMemory(targets, src) {
49
49
  const _memory = new WeakMap();
50
50
  const _wasi = new WeakMap();
51
51
  const _fs = new WeakMap();
52
- function getMemory(wasi) {
53
- return _memory.get(wasi);
52
+ export function ensureMemoryFor(memory, end) {
53
+ let buffer = memory.buffer;
54
+ if (end > buffer.byteLength) {
55
+ memory.grow(0);
56
+ buffer = memory.buffer;
57
+ }
58
+ return buffer;
59
+ }
60
+ function getMemory(wasi, end = 0) {
61
+ const memory = _memory.get(wasi);
62
+ ensureMemoryFor(memory, end);
63
+ return memory;
54
64
  }
55
65
  function getFs(wasi) {
56
66
  const fs = _fs.get(wasi);
@@ -179,9 +189,10 @@ export class WASI {
179
189
  if (argv === 0 || argv_buf === 0) {
180
190
  return WasiErrno.EINVAL;
181
191
  }
182
- const { HEAPU8, view } = getMemory(this);
183
192
  const wasi = _wasi.get(this);
184
193
  const args = wasi.args;
194
+ const argsSize = encoder.encode(args.join('\0') + '\0').length;
195
+ const { HEAPU8, view } = getMemory(this, Math.max(argv + args.length * 4, argv_buf + argsSize));
185
196
  for (let i = 0; i < args.length; ++i) {
186
197
  const arg = args[i];
187
198
  view.setInt32(argv, argv_buf, true);
@@ -198,7 +209,7 @@ export class WASI {
198
209
  if (argc === 0 || argv_buf_size === 0) {
199
210
  return WasiErrno.EINVAL;
200
211
  }
201
- const { view } = getMemory(this);
212
+ const { view } = getMemory(this, Math.max(argc + 4, argv_buf_size + 4));
202
213
  const wasi = _wasi.get(this);
203
214
  const args = wasi.args;
204
215
  view.setUint32(argc, args.length, true);
@@ -211,9 +222,10 @@ export class WASI {
211
222
  if (environ === 0 || environ_buf === 0) {
212
223
  return WasiErrno.EINVAL;
213
224
  }
214
- const { HEAPU8, view } = getMemory(this);
215
225
  const wasi = _wasi.get(this);
216
226
  const env = wasi.env;
227
+ const envSize = encoder.encode(env.join('\0') + '\0').length;
228
+ const { HEAPU8, view } = getMemory(this, Math.max(environ + env.length * 4, environ_buf + envSize));
217
229
  for (let i = 0; i < env.length; ++i) {
218
230
  const pair = env[i];
219
231
  view.setInt32(environ, environ_buf, true);
@@ -230,7 +242,7 @@ export class WASI {
230
242
  if (len === 0 || buflen === 0) {
231
243
  return WasiErrno.EINVAL;
232
244
  }
233
- const { view } = getMemory(this);
245
+ const { view } = getMemory(this, Math.max(len + 4, buflen + 4));
234
246
  const wasi = _wasi.get(this);
235
247
  view.setUint32(len, wasi.env.length, true);
236
248
  view.setUint32(buflen, encoder.encode(wasi.env.join('\0') + '\0').length, true);
@@ -241,7 +253,7 @@ export class WASI {
241
253
  if (resolution === 0) {
242
254
  return WasiErrno.EINVAL;
243
255
  }
244
- const { view } = getMemory(this);
256
+ const { view } = getMemory(this, resolution + 8);
245
257
  switch (id) {
246
258
  case WasiClockid.REALTIME:
247
259
  view.setBigUint64(resolution, BigInt(1000000), true);
@@ -259,7 +271,7 @@ export class WASI {
259
271
  if (time === 0) {
260
272
  return WasiErrno.EINVAL;
261
273
  }
262
- const { view } = getMemory(this);
274
+ const { view } = getMemory(this, time + 8);
263
275
  switch (id) {
264
276
  case WasiClockid.REALTIME:
265
277
  view.setBigUint64(time, BigInt(Date.now()) * BigInt(1000000), true);
@@ -287,7 +299,7 @@ export class WASI {
287
299
  }
288
300
  const wasi = _wasi.get(this);
289
301
  const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
290
- const { view } = getMemory(this);
302
+ const { view } = getMemory(this, fdstat + 24);
291
303
  view.setUint16(fdstat, fileDescriptor.type, true);
292
304
  view.setUint16(fdstat + 2, 0, true);
293
305
  view.setBigUint64(fdstat + 8, fileDescriptor.rightsBase, true);
@@ -328,7 +340,7 @@ export class WASI {
328
340
  }
329
341
  if (fileDescriptor.preopen !== 1)
330
342
  return WasiErrno.EINVAL;
331
- const { view } = getMemory(this);
343
+ const { view } = getMemory(this, prestat + 8);
332
344
  // preopen type is dir(0)
333
345
  view.setUint32(prestat, 0, true);
334
346
  view.setUint32(prestat + 4, encoder.encode(fileDescriptor.path).length, true);
@@ -348,7 +360,7 @@ export class WASI {
348
360
  const size = buffer.length;
349
361
  if (size > path_len)
350
362
  return WasiErrno.ENOBUFS;
351
- const { HEAPU8 } = getMemory(this);
363
+ const { HEAPU8 } = getMemory(this, path + size);
352
364
  HEAPU8.set(buffer, path);
353
365
  return WasiErrno.ESUCCESS;
354
366
  });
@@ -362,7 +374,7 @@ export class WASI {
362
374
  const wasi = _wasi.get(this);
363
375
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SEEK, BigInt(0));
364
376
  const r = fileDescriptor.seek(offset, whence);
365
- const { view } = getMemory(this);
377
+ const { view } = getMemory(this, newOffset + 8);
366
378
  view.setBigUint64(newOffset, r, true);
367
379
  return WasiErrno.ESUCCESS;
368
380
  });
@@ -370,7 +382,7 @@ export class WASI {
370
382
  const wasi = _wasi.get(this);
371
383
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_TELL, BigInt(0));
372
384
  const pos = BigInt(fileDescriptor.pos);
373
- const { view } = getMemory(this);
385
+ const { view } = getMemory(this, Number(offset) + 8);
374
386
  view.setBigUint64(Number(offset), pos, true);
375
387
  return WasiErrno.ESUCCESS;
376
388
  });
@@ -383,7 +395,7 @@ export class WASI {
383
395
  if (in_ptr === 0 || out_ptr === 0 || nsubscriptions === 0 || nevents === 0) {
384
396
  return WasiErrno.EINVAL;
385
397
  }
386
- const { view } = getMemory(this);
398
+ const { view } = getMemory(this, Math.max(in_ptr + nsubscriptions * 48, out_ptr + nsubscriptions * 32, nevents + 4));
387
399
  view.setUint32(nevents, 0, true);
388
400
  let i = 0;
389
401
  let timer_userdata = BigInt(0);
@@ -502,7 +514,7 @@ export class WASI {
502
514
  return WasiErrno.EINVAL;
503
515
  }
504
516
  buf_len = Number(buf_len);
505
- const { HEAPU8, view } = getMemory(this);
517
+ const { HEAPU8, view } = getMemory(this, buf + buf_len);
506
518
  if ((typeof SharedArrayBuffer === 'function' && HEAPU8.buffer instanceof SharedArrayBuffer) ||
507
519
  (Object.prototype.toString.call(HEAPU8.buffer) === '[object SharedArrayBuffer]')) {
508
520
  for (let i = buf; i < buf + buf_len; ++i) {
@@ -524,7 +536,7 @@ export class WASI {
524
536
  return WasiErrno.EINVAL;
525
537
  }
526
538
  buf_len = Number(buf_len);
527
- const { view } = getMemory(this);
539
+ const { view } = getMemory(this, buf + buf_len);
528
540
  for (let i = buf; i < buf + buf_len; ++i) {
529
541
  view.setUint8(i, Math.floor(Math.random() * 256));
530
542
  }
@@ -617,7 +629,7 @@ export class WASI {
617
629
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_GET, BigInt(0));
618
630
  const fs = getFs(this);
619
631
  const stat = fs.fstatSync(fileDescriptor.fd, { bigint: true });
620
- const { view } = getMemory(this);
632
+ const { view } = getMemory(this, buf + 64);
621
633
  toFileStat(view, buf, stat);
622
634
  return WasiErrno.ESUCCESS;
623
635
  }, async function fd_filestat_get(fd, buf) {
@@ -628,7 +640,7 @@ export class WASI {
628
640
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_GET, BigInt(0));
629
641
  const h = fileDescriptor.fd;
630
642
  const stat = await h.stat({ bigint: true });
631
- const { view } = getMemory(this);
643
+ const { view } = getMemory(this, buf + 64);
632
644
  toFileStat(view, buf, stat);
633
645
  return WasiErrno.ESUCCESS;
634
646
  }, ['i32', 'i32'], ['i32']);
@@ -679,7 +691,7 @@ export class WASI {
679
691
  if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
680
692
  return WasiErrno.EINVAL;
681
693
  }
682
- const { HEAPU8, view } = getMemory(this);
694
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
683
695
  const wasi = _wasi.get(this);
684
696
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ | WasiRights.FD_SEEK, BigInt(0));
685
697
  if (!iovslen) {
@@ -715,7 +727,7 @@ export class WASI {
715
727
  if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
716
728
  return WasiErrno.EINVAL;
717
729
  }
718
- const { HEAPU8, view } = getMemory(this);
730
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
719
731
  const wasi = _wasi.get(this);
720
732
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ | WasiRights.FD_SEEK, BigInt(0));
721
733
  if (!iovslen) {
@@ -744,7 +756,7 @@ export class WASI {
744
756
  if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
745
757
  return WasiErrno.EINVAL;
746
758
  }
747
- const { HEAPU8, view } = getMemory(this);
759
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
748
760
  const wasi = _wasi.get(this);
749
761
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE | WasiRights.FD_SEEK, BigInt(0));
750
762
  if (!iovslen) {
@@ -767,7 +779,7 @@ export class WASI {
767
779
  if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
768
780
  return WasiErrno.EINVAL;
769
781
  }
770
- const { HEAPU8, view } = getMemory(this);
782
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
771
783
  const wasi = _wasi.get(this);
772
784
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE | WasiRights.FD_SEEK, BigInt(0));
773
785
  if (!iovslen) {
@@ -790,7 +802,7 @@ export class WASI {
790
802
  if ((iovs === 0 && iovslen) || size === 0) {
791
803
  return WasiErrno.EINVAL;
792
804
  }
793
- const { HEAPU8, view } = getMemory(this);
805
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
794
806
  const wasi = _wasi.get(this);
795
807
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ, BigInt(0));
796
808
  if (!iovslen) {
@@ -837,7 +849,7 @@ export class WASI {
837
849
  if ((iovs === 0 && iovslen) || size === 0) {
838
850
  return WasiErrno.EINVAL;
839
851
  }
840
- const { HEAPU8, view } = getMemory(this);
852
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
841
853
  const wasi = _wasi.get(this);
842
854
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ, BigInt(0));
843
855
  if (!iovslen) {
@@ -881,7 +893,7 @@ export class WASI {
881
893
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READDIR, BigInt(0));
882
894
  const fs = getFs(this);
883
895
  const entries = fs.readdirSync(fileDescriptor.realPath, { withFileTypes: true });
884
- const { HEAPU8, view } = getMemory(this);
896
+ const { HEAPU8, view } = getMemory(this, Math.max(buf + buf_len, bufused + 4));
885
897
  let bufferUsed = 0;
886
898
  for (let i = Number(cookie); i < entries.length; i++) {
887
899
  const nameData = encoder.encode(entries[i].name);
@@ -931,7 +943,7 @@ export class WASI {
931
943
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READDIR, BigInt(0));
932
944
  const fs = getFs(this);
933
945
  const entries = await fs.promises.readdir(fileDescriptor.realPath, { withFileTypes: true });
934
- const { HEAPU8, view } = getMemory(this);
946
+ const { HEAPU8, view } = getMemory(this, Math.max(buf + buf_len, bufused + 4));
935
947
  let bufferUsed = 0;
936
948
  for (let i = Number(cookie); i < entries.length; i++) {
937
949
  const nameData = encoder.encode(entries[i].name);
@@ -999,7 +1011,7 @@ export class WASI {
999
1011
  if ((iovs === 0 && iovslen) || size === 0) {
1000
1012
  return WasiErrno.EINVAL;
1001
1013
  }
1002
- const { HEAPU8, view } = getMemory(this);
1014
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
1003
1015
  const wasi = _wasi.get(this);
1004
1016
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE, BigInt(0));
1005
1017
  if (!iovslen) {
@@ -1029,7 +1041,7 @@ export class WASI {
1029
1041
  if ((iovs === 0 && iovslen) || size === 0) {
1030
1042
  return WasiErrno.EINVAL;
1031
1043
  }
1032
- const { HEAPU8, view } = getMemory(this);
1044
+ const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
1033
1045
  const wasi = _wasi.get(this);
1034
1046
  const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE, BigInt(0));
1035
1047
  if (!iovslen) {
@@ -1059,7 +1071,7 @@ export class WASI {
1059
1071
  if (path === 0) {
1060
1072
  return WasiErrno.EINVAL;
1061
1073
  }
1062
- const { HEAPU8 } = getMemory(this);
1074
+ const { HEAPU8 } = getMemory(this, path + path_len);
1063
1075
  const wasi = _wasi.get(this);
1064
1076
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
1065
1077
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1073,7 +1085,7 @@ export class WASI {
1073
1085
  if (path === 0) {
1074
1086
  return WasiErrno.EINVAL;
1075
1087
  }
1076
- const { HEAPU8 } = getMemory(this);
1088
+ const { HEAPU8 } = getMemory(this, path + path_len);
1077
1089
  const wasi = _wasi.get(this);
1078
1090
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
1079
1091
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1089,7 +1101,7 @@ export class WASI {
1089
1101
  if (path === 0 || filestat === 0) {
1090
1102
  return WasiErrno.EINVAL;
1091
1103
  }
1092
- const { HEAPU8, view } = getMemory(this);
1104
+ const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, filestat + 64));
1093
1105
  const wasi = _wasi.get(this);
1094
1106
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_GET, BigInt(0));
1095
1107
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1111,7 +1123,7 @@ export class WASI {
1111
1123
  if (path === 0 || filestat === 0) {
1112
1124
  return WasiErrno.EINVAL;
1113
1125
  }
1114
- const { HEAPU8, view } = getMemory(this);
1126
+ const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, filestat + 64));
1115
1127
  const wasi = _wasi.get(this);
1116
1128
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_GET, BigInt(0));
1117
1129
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1132,7 +1144,7 @@ export class WASI {
1132
1144
  path_len = Number(path_len);
1133
1145
  if (path === 0)
1134
1146
  return WasiErrno.EINVAL;
1135
- const { HEAPU8 } = getMemory(this);
1147
+ const { HEAPU8 } = getMemory(this, path + path_len);
1136
1148
  const wasi = _wasi.get(this);
1137
1149
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
1138
1150
  if (validateFstFlagsOrReturn(fst_flags)) {
@@ -1153,7 +1165,7 @@ export class WASI {
1153
1165
  path_len = Number(path_len);
1154
1166
  if (path === 0)
1155
1167
  return WasiErrno.EINVAL;
1156
- const { HEAPU8 } = getMemory(this);
1168
+ const { HEAPU8 } = getMemory(this, path + path_len);
1157
1169
  const wasi = _wasi.get(this);
1158
1170
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
1159
1171
  if (validateFstFlagsOrReturn(fst_flags)) {
@@ -1188,7 +1200,7 @@ export class WASI {
1188
1200
  oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE, BigInt(0));
1189
1201
  newWrap = wasi.fds.get(new_fd, WasiRights.PATH_LINK_TARGET, BigInt(0));
1190
1202
  }
1191
- const { HEAPU8 } = getMemory(this);
1203
+ const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
1192
1204
  const fs = getFs(this);
1193
1205
  const resolvedOldPath = resolvePathSync(fs, oldWrap, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)), old_flags);
1194
1206
  const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
@@ -1212,7 +1224,7 @@ export class WASI {
1212
1224
  oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE, BigInt(0));
1213
1225
  newWrap = wasi.fds.get(new_fd, WasiRights.PATH_LINK_TARGET, BigInt(0));
1214
1226
  }
1215
- const { HEAPU8 } = getMemory(this);
1227
+ const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
1216
1228
  const fs = getFs(this);
1217
1229
  const resolvedOldPath = await resolvePathAsync(fs, oldWrap, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)), old_flags);
1218
1230
  const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
@@ -1278,7 +1290,7 @@ export class WASI {
1278
1290
  const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
1279
1291
  const wasi = _wasi.get(this);
1280
1292
  const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
1281
- const memory = getMemory(this);
1293
+ const memory = getMemory(this, Math.max(path + path_len, fd + 4));
1282
1294
  const HEAPU8 = memory.HEAPU8;
1283
1295
  const pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
1284
1296
  const fs = getFs(this);
@@ -1314,7 +1326,7 @@ export class WASI {
1314
1326
  const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
1315
1327
  const wasi = _wasi.get(this);
1316
1328
  const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
1317
- const memory = getMemory(this);
1329
+ const memory = getMemory(this, Math.max(path + path_len, fd + 4));
1318
1330
  const HEAPU8 = memory.HEAPU8;
1319
1331
  const pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
1320
1332
  const fs = getFs(this);
@@ -1346,7 +1358,7 @@ export class WASI {
1346
1358
  if (path === 0 || buf === 0 || bufused === 0) {
1347
1359
  return WasiErrno.EINVAL;
1348
1360
  }
1349
- const { HEAPU8, view } = getMemory(this);
1361
+ const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, buf + buf_len, bufused + 4));
1350
1362
  const wasi = _wasi.get(this);
1351
1363
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_READLINK, BigInt(0));
1352
1364
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1370,7 +1382,7 @@ export class WASI {
1370
1382
  if (path === 0 || buf === 0 || bufused === 0) {
1371
1383
  return WasiErrno.EINVAL;
1372
1384
  }
1373
- const { HEAPU8, view } = getMemory(this);
1385
+ const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, buf + buf_len, bufused + 4));
1374
1386
  const wasi = _wasi.get(this);
1375
1387
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_READLINK, BigInt(0));
1376
1388
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1392,7 +1404,7 @@ export class WASI {
1392
1404
  if (path === 0) {
1393
1405
  return WasiErrno.EINVAL;
1394
1406
  }
1395
- const { HEAPU8 } = getMemory(this);
1407
+ const { HEAPU8 } = getMemory(this, path + path_len);
1396
1408
  const wasi = _wasi.get(this);
1397
1409
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
1398
1410
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1406,7 +1418,7 @@ export class WASI {
1406
1418
  if (path === 0) {
1407
1419
  return WasiErrno.EINVAL;
1408
1420
  }
1409
- const { HEAPU8 } = getMemory(this);
1421
+ const { HEAPU8 } = getMemory(this, path + path_len);
1410
1422
  const wasi = _wasi.get(this);
1411
1423
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
1412
1424
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1433,7 +1445,7 @@ export class WASI {
1433
1445
  oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE, BigInt(0));
1434
1446
  newWrap = wasi.fds.get(new_fd, WasiRights.PATH_RENAME_TARGET, BigInt(0));
1435
1447
  }
1436
- const { HEAPU8 } = getMemory(this);
1448
+ const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
1437
1449
  const resolvedOldPath = resolve(oldWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)));
1438
1450
  const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
1439
1451
  const fs = getFs(this);
@@ -1457,7 +1469,7 @@ export class WASI {
1457
1469
  oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE, BigInt(0));
1458
1470
  newWrap = wasi.fds.get(new_fd, WasiRights.PATH_RENAME_TARGET, BigInt(0));
1459
1471
  }
1460
- const { HEAPU8 } = getMemory(this);
1472
+ const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
1461
1473
  const resolvedOldPath = resolve(oldWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)));
1462
1474
  const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
1463
1475
  const fs = getFs(this);
@@ -1472,7 +1484,7 @@ export class WASI {
1472
1484
  if (old_path === 0 || new_path === 0) {
1473
1485
  return WasiErrno.EINVAL;
1474
1486
  }
1475
- const { HEAPU8 } = getMemory(this);
1487
+ const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
1476
1488
  const wasi = _wasi.get(this);
1477
1489
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_SYMLINK, BigInt(0));
1478
1490
  const oldPath = decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len));
@@ -1492,7 +1504,7 @@ export class WASI {
1492
1504
  if (old_path === 0 || new_path === 0) {
1493
1505
  return WasiErrno.EINVAL;
1494
1506
  }
1495
- const { HEAPU8 } = getMemory(this);
1507
+ const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
1496
1508
  const wasi = _wasi.get(this);
1497
1509
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_SYMLINK, BigInt(0));
1498
1510
  const oldPath = decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len));
@@ -1508,7 +1520,7 @@ export class WASI {
1508
1520
  if (path === 0) {
1509
1521
  return WasiErrno.EINVAL;
1510
1522
  }
1511
- const { HEAPU8 } = getMemory(this);
1523
+ const { HEAPU8 } = getMemory(this, path + path_len);
1512
1524
  const wasi = _wasi.get(this);
1513
1525
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_UNLINK_FILE, BigInt(0));
1514
1526
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1522,7 +1534,7 @@ export class WASI {
1522
1534
  if (path === 0) {
1523
1535
  return WasiErrno.EINVAL;
1524
1536
  }
1525
- const { HEAPU8 } = getMemory(this);
1537
+ const { HEAPU8 } = getMemory(this, path + path_len);
1526
1538
  const wasi = _wasi.get(this);
1527
1539
  const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_UNLINK_FILE, BigInt(0));
1528
1540
  let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tybys/wasm-util",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "WASI polyfill for browser and some wasm util",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./dist/wasm-util.esm-bundler.js",
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 19 May 2026 17:48:56 GMT
11
+ * Last updated: Wed, 01 Jul 2026 11:03:38 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -3,6 +3,7 @@ declare module "node:assert/strict" {
3
3
  Assert,
4
4
  AssertionError,
5
5
  AssertionErrorOptions,
6
+ AssertMessageFunction,
6
7
  AssertOptions,
7
8
  AssertPredicate,
8
9
  AssertStrict,
@@ -21,7 +22,15 @@ declare module "node:assert/strict" {
21
22
  strictEqual,
22
23
  throws,
23
24
  } from "node:assert";
24
- function strict(value: unknown, message?: string | Error): asserts value;
25
+ function strict(
26
+ value: unknown,
27
+ message?: Error | AssertMessageFunction,
28
+ ): asserts value;
29
+ function strict(
30
+ value: unknown,
31
+ message: string,
32
+ ...args: unknown[]
33
+ ): asserts value;
25
34
  namespace strict {
26
35
  export {
27
36
  Assert,