@openclaw/mxc-sandbox 0.0.0 → 2026.7.2-beta.1

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 (932) hide show
  1. package/README.md +351 -0
  2. package/dist/index.js +1323 -0
  3. package/dist/mxc-spawn-launcher.mjs +148 -0
  4. package/node_modules/@microsoft/mxc-sdk/LICENSE.md +21 -0
  5. package/node_modules/@microsoft/mxc-sdk/README.md +395 -0
  6. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/ESRPClientLogs0613045248271.json +1 -0
  7. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/ESRPClientLogs0613045452045.json +1 -0
  8. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/ESRPClientLogs0613050048636.json +1 -0
  9. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/bsi.cose +0 -0
  10. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/bsi.json +1 -0
  11. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/manifest.cat +0 -0
  12. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  13. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/manifest.spdx.json +25812 -0
  14. package/node_modules/@microsoft/mxc-sdk/bin/arm64/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  15. package/node_modules/@microsoft/mxc-sdk/bin/arm64/linux-test-proxy +0 -0
  16. package/node_modules/@microsoft/mxc-sdk/bin/arm64/lxc-exec +0 -0
  17. package/node_modules/@microsoft/mxc-sdk/bin/arm64/mxc-diagnostic-console.exe +0 -0
  18. package/node_modules/@microsoft/mxc-sdk/bin/arm64/mxc-exec-mac +0 -0
  19. package/node_modules/@microsoft/mxc-sdk/bin/arm64/winhttp-proxy-shim.exe +0 -0
  20. package/node_modules/@microsoft/mxc-sdk/bin/arm64/wxc-exec.exe +0 -0
  21. package/node_modules/@microsoft/mxc-sdk/bin/arm64/wxc-host-prep.exe +0 -0
  22. package/node_modules/@microsoft/mxc-sdk/bin/arm64/wxc-test-proxy.exe +0 -0
  23. package/node_modules/@microsoft/mxc-sdk/bin/arm64/wxc-windows-sandbox-daemon.exe +0 -0
  24. package/node_modules/@microsoft/mxc-sdk/bin/arm64/wxc-windows-sandbox-guest.exe +0 -0
  25. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/ESRPClientLogs0613045534391.json +1 -0
  26. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/ESRPClientLogs0613050929378.json +1 -0
  27. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/bsi.cose +0 -0
  28. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/bsi.json +1 -0
  29. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/manifest.cat +0 -0
  30. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  31. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/manifest.spdx.json +25812 -0
  32. package/node_modules/@microsoft/mxc-sdk/bin/x64/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  33. package/node_modules/@microsoft/mxc-sdk/bin/x64/linux-test-proxy +0 -0
  34. package/node_modules/@microsoft/mxc-sdk/bin/x64/lxc-exec +0 -0
  35. package/node_modules/@microsoft/mxc-sdk/bin/x64/mxc-diagnostic-console.exe +0 -0
  36. package/node_modules/@microsoft/mxc-sdk/bin/x64/winhttp-proxy-shim.exe +0 -0
  37. package/node_modules/@microsoft/mxc-sdk/bin/x64/wxc-exec.exe +0 -0
  38. package/node_modules/@microsoft/mxc-sdk/bin/x64/wxc-host-prep.exe +0 -0
  39. package/node_modules/@microsoft/mxc-sdk/bin/x64/wxc-test-proxy.exe +0 -0
  40. package/node_modules/@microsoft/mxc-sdk/bin/x64/wxc-windows-sandbox-daemon.exe +0 -0
  41. package/node_modules/@microsoft/mxc-sdk/bin/x64/wxc-windows-sandbox-guest.exe +0 -0
  42. package/node_modules/@microsoft/mxc-sdk/dist/diagnostic.d.ts +17 -0
  43. package/node_modules/@microsoft/mxc-sdk/dist/diagnostic.d.ts.map +1 -0
  44. package/node_modules/@microsoft/mxc-sdk/dist/diagnostic.js +150 -0
  45. package/node_modules/@microsoft/mxc-sdk/dist/diagnostic.js.map +1 -0
  46. package/node_modules/@microsoft/mxc-sdk/dist/errors.d.ts +27 -0
  47. package/node_modules/@microsoft/mxc-sdk/dist/errors.d.ts.map +1 -0
  48. package/node_modules/@microsoft/mxc-sdk/dist/errors.js +31 -0
  49. package/node_modules/@microsoft/mxc-sdk/dist/errors.js.map +1 -0
  50. package/node_modules/@microsoft/mxc-sdk/dist/helper.d.ts +101 -0
  51. package/node_modules/@microsoft/mxc-sdk/dist/helper.d.ts.map +1 -0
  52. package/node_modules/@microsoft/mxc-sdk/dist/helper.js +256 -0
  53. package/node_modules/@microsoft/mxc-sdk/dist/helper.js.map +1 -0
  54. package/node_modules/@microsoft/mxc-sdk/dist/index.d.ts +31 -0
  55. package/node_modules/@microsoft/mxc-sdk/dist/index.d.ts.map +1 -0
  56. package/node_modules/@microsoft/mxc-sdk/dist/index.js +40 -0
  57. package/node_modules/@microsoft/mxc-sdk/dist/index.js.map +1 -0
  58. package/node_modules/@microsoft/mxc-sdk/dist/logger.d.ts +11 -0
  59. package/node_modules/@microsoft/mxc-sdk/dist/logger.d.ts.map +1 -0
  60. package/node_modules/@microsoft/mxc-sdk/dist/logger.js +45 -0
  61. package/node_modules/@microsoft/mxc-sdk/dist/logger.js.map +1 -0
  62. package/node_modules/@microsoft/mxc-sdk/dist/platform.d.ts +55 -0
  63. package/node_modules/@microsoft/mxc-sdk/dist/platform.d.ts.map +1 -0
  64. package/node_modules/@microsoft/mxc-sdk/dist/platform.js +477 -0
  65. package/node_modules/@microsoft/mxc-sdk/dist/platform.js.map +1 -0
  66. package/node_modules/@microsoft/mxc-sdk/dist/policy.d.ts +80 -0
  67. package/node_modules/@microsoft/mxc-sdk/dist/policy.d.ts.map +1 -0
  68. package/node_modules/@microsoft/mxc-sdk/dist/policy.js +319 -0
  69. package/node_modules/@microsoft/mxc-sdk/dist/policy.js.map +1 -0
  70. package/node_modules/@microsoft/mxc-sdk/dist/sandbox.d.ts +189 -0
  71. package/node_modules/@microsoft/mxc-sdk/dist/sandbox.d.ts.map +1 -0
  72. package/node_modules/@microsoft/mxc-sdk/dist/sandbox.js +515 -0
  73. package/node_modules/@microsoft/mxc-sdk/dist/sandbox.js.map +1 -0
  74. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-helper.d.ts +70 -0
  75. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-helper.d.ts.map +1 -0
  76. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-helper.js +184 -0
  77. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-helper.js.map +1 -0
  78. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-types.d.ts +130 -0
  79. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-types.d.ts.map +1 -0
  80. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-types.js +21 -0
  81. package/node_modules/@microsoft/mxc-sdk/dist/state-aware-types.js.map +1 -0
  82. package/node_modules/@microsoft/mxc-sdk/dist/state-aware.d.ts +39 -0
  83. package/node_modules/@microsoft/mxc-sdk/dist/state-aware.d.ts.map +1 -0
  84. package/node_modules/@microsoft/mxc-sdk/dist/state-aware.js +128 -0
  85. package/node_modules/@microsoft/mxc-sdk/dist/state-aware.js.map +1 -0
  86. package/node_modules/@microsoft/mxc-sdk/dist/types.d.ts +439 -0
  87. package/node_modules/@microsoft/mxc-sdk/dist/types.d.ts.map +1 -0
  88. package/node_modules/@microsoft/mxc-sdk/dist/types.js +38 -0
  89. package/node_modules/@microsoft/mxc-sdk/dist/types.js.map +1 -0
  90. package/node_modules/@microsoft/mxc-sdk/package.json +54 -0
  91. package/node_modules/node-addon-api/LICENSE.md +9 -0
  92. package/node_modules/node-addon-api/README.md +319 -0
  93. package/node_modules/node-addon-api/common.gypi +20 -0
  94. package/node_modules/node-addon-api/except.gypi +25 -0
  95. package/node_modules/node-addon-api/index.js +12 -0
  96. package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
  97. package/node_modules/node-addon-api/napi-inl.h +6607 -0
  98. package/node_modules/node-addon-api/napi.h +3201 -0
  99. package/node_modules/node-addon-api/node_addon_api.gyp +32 -0
  100. package/node_modules/node-addon-api/node_api.gyp +9 -0
  101. package/node_modules/node-addon-api/noexcept.gypi +26 -0
  102. package/node_modules/node-addon-api/nothing.c +0 -0
  103. package/node_modules/node-addon-api/package-support.json +21 -0
  104. package/node_modules/node-addon-api/package.json +480 -0
  105. package/node_modules/node-addon-api/tools/README.md +73 -0
  106. package/node_modules/node-addon-api/tools/check-napi.js +99 -0
  107. package/node_modules/node-addon-api/tools/clang-format.js +71 -0
  108. package/node_modules/node-addon-api/tools/conversion.js +301 -0
  109. package/node_modules/node-addon-api/tools/eslint-format.js +79 -0
  110. package/node_modules/node-pty/LICENSE +69 -0
  111. package/node_modules/node-pty/README.md +164 -0
  112. package/node_modules/node-pty/binding.gyp +150 -0
  113. package/node_modules/node-pty/lib/conpty_console_list_agent.js +25 -0
  114. package/node_modules/node-pty/lib/eventEmitter2.js +47 -0
  115. package/node_modules/node-pty/lib/index.js +52 -0
  116. package/node_modules/node-pty/lib/interfaces.js +7 -0
  117. package/node_modules/node-pty/lib/shared/conout.js +10 -0
  118. package/node_modules/node-pty/lib/terminal.js +190 -0
  119. package/node_modules/node-pty/lib/types.js +7 -0
  120. package/node_modules/node-pty/lib/unixTerminal.js +351 -0
  121. package/node_modules/node-pty/lib/utils.js +38 -0
  122. package/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
  123. package/node_modules/node-pty/lib/windowsPtyAgent.js +312 -0
  124. package/node_modules/node-pty/lib/windowsTerminal.js +209 -0
  125. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
  126. package/node_modules/node-pty/package.json +66 -0
  127. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  128. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  129. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  130. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  131. package/node_modules/node-pty/prebuilds/linux-arm64/pty.node +0 -0
  132. package/node_modules/node-pty/prebuilds/linux-x64/pty.node +0 -0
  133. package/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  134. package/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  135. package/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
  136. package/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
  137. package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  138. package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  139. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  140. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  141. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  142. package/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
  143. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  144. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  145. package/node_modules/node-pty/scripts/post-install.js +76 -0
  146. package/node_modules/node-pty/scripts/prebuild.js +34 -0
  147. package/node_modules/node-pty/src/unix/pty.cc +876 -0
  148. package/node_modules/node-pty/src/unix/spawn-helper.cc +23 -0
  149. package/node_modules/node-pty/src/win/conpty.cc +616 -0
  150. package/node_modules/node-pty/src/win/conpty.h +41 -0
  151. package/node_modules/node-pty/src/win/conpty_console_list.cc +44 -0
  152. package/node_modules/node-pty/src/win/path_util.cc +95 -0
  153. package/node_modules/node-pty/src/win/path_util.h +26 -0
  154. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
  155. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/conpty.dll +0 -0
  156. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
  157. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
  158. package/node_modules/node-pty/typings/node-pty.d.ts +215 -0
  159. package/node_modules/semver/LICENSE +15 -0
  160. package/node_modules/semver/README.md +680 -0
  161. package/node_modules/semver/bin/semver.js +195 -0
  162. package/node_modules/semver/classes/comparator.js +143 -0
  163. package/node_modules/semver/classes/index.js +7 -0
  164. package/node_modules/semver/classes/range.js +577 -0
  165. package/node_modules/semver/classes/semver.js +350 -0
  166. package/node_modules/semver/functions/clean.js +8 -0
  167. package/node_modules/semver/functions/cmp.js +54 -0
  168. package/node_modules/semver/functions/coerce.js +62 -0
  169. package/node_modules/semver/functions/compare-build.js +9 -0
  170. package/node_modules/semver/functions/compare-loose.js +5 -0
  171. package/node_modules/semver/functions/compare.js +7 -0
  172. package/node_modules/semver/functions/diff.js +60 -0
  173. package/node_modules/semver/functions/eq.js +5 -0
  174. package/node_modules/semver/functions/gt.js +5 -0
  175. package/node_modules/semver/functions/gte.js +5 -0
  176. package/node_modules/semver/functions/inc.js +21 -0
  177. package/node_modules/semver/functions/lt.js +5 -0
  178. package/node_modules/semver/functions/lte.js +5 -0
  179. package/node_modules/semver/functions/major.js +5 -0
  180. package/node_modules/semver/functions/minor.js +5 -0
  181. package/node_modules/semver/functions/neq.js +5 -0
  182. package/node_modules/semver/functions/parse.js +18 -0
  183. package/node_modules/semver/functions/patch.js +5 -0
  184. package/node_modules/semver/functions/prerelease.js +8 -0
  185. package/node_modules/semver/functions/rcompare.js +5 -0
  186. package/node_modules/semver/functions/rsort.js +5 -0
  187. package/node_modules/semver/functions/satisfies.js +12 -0
  188. package/node_modules/semver/functions/sort.js +5 -0
  189. package/node_modules/semver/functions/truncate.js +48 -0
  190. package/node_modules/semver/functions/valid.js +8 -0
  191. package/node_modules/semver/index.js +93 -0
  192. package/node_modules/semver/internal/constants.js +37 -0
  193. package/node_modules/semver/internal/debug.js +11 -0
  194. package/node_modules/semver/internal/identifiers.js +29 -0
  195. package/node_modules/semver/internal/lrucache.js +42 -0
  196. package/node_modules/semver/internal/parse-options.js +17 -0
  197. package/node_modules/semver/internal/re.js +223 -0
  198. package/node_modules/semver/package.json +78 -0
  199. package/node_modules/semver/preload.js +4 -0
  200. package/node_modules/semver/range.bnf +17 -0
  201. package/node_modules/semver/ranges/gtr.js +6 -0
  202. package/node_modules/semver/ranges/intersects.js +9 -0
  203. package/node_modules/semver/ranges/ltr.js +6 -0
  204. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  205. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  206. package/node_modules/semver/ranges/min-version.js +63 -0
  207. package/node_modules/semver/ranges/outside.js +82 -0
  208. package/node_modules/semver/ranges/simplify.js +49 -0
  209. package/node_modules/semver/ranges/subset.js +249 -0
  210. package/node_modules/semver/ranges/to-comparators.js +10 -0
  211. package/node_modules/semver/ranges/valid.js +13 -0
  212. package/node_modules/zod/LICENSE +21 -0
  213. package/node_modules/zod/README.md +191 -0
  214. package/node_modules/zod/index.cjs +33 -0
  215. package/node_modules/zod/index.d.cts +4 -0
  216. package/node_modules/zod/index.d.ts +4 -0
  217. package/node_modules/zod/index.js +4 -0
  218. package/node_modules/zod/locales/index.cjs +17 -0
  219. package/node_modules/zod/locales/index.d.cts +1 -0
  220. package/node_modules/zod/locales/index.d.ts +1 -0
  221. package/node_modules/zod/locales/index.js +1 -0
  222. package/node_modules/zod/locales/package.json +7 -0
  223. package/node_modules/zod/mini/index.cjs +32 -0
  224. package/node_modules/zod/mini/index.d.cts +3 -0
  225. package/node_modules/zod/mini/index.d.ts +3 -0
  226. package/node_modules/zod/mini/index.js +3 -0
  227. package/node_modules/zod/mini/package.json +7 -0
  228. package/node_modules/zod/package.json +135 -0
  229. package/node_modules/zod/src/index.ts +4 -0
  230. package/node_modules/zod/src/locales/index.ts +1 -0
  231. package/node_modules/zod/src/mini/index.ts +3 -0
  232. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  233. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  234. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  235. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  236. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  237. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  238. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  239. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  240. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  241. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  242. package/node_modules/zod/src/v3/errors.ts +13 -0
  243. package/node_modules/zod/src/v3/external.ts +6 -0
  244. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  245. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  246. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  247. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  248. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  249. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  250. package/node_modules/zod/src/v3/index.ts +4 -0
  251. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  252. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  253. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  254. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  255. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  256. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  257. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  258. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  259. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  260. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  261. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  262. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  263. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  264. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  265. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  266. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  267. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  268. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  269. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  270. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  271. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  272. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  273. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  274. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  275. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  276. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  277. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  278. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  279. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  280. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  281. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  282. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  283. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  284. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  285. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  286. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  287. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  288. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  289. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  290. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  291. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  292. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  293. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  294. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  295. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  296. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  297. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  298. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  299. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  300. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  301. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  302. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  303. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  304. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  305. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  306. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  307. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  308. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  309. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  310. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  311. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  312. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  313. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  314. package/node_modules/zod/src/v3/types.ts +5138 -0
  315. package/node_modules/zod/src/v4/classic/checks.ts +32 -0
  316. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  317. package/node_modules/zod/src/v4/classic/compat.ts +70 -0
  318. package/node_modules/zod/src/v4/classic/errors.ts +82 -0
  319. package/node_modules/zod/src/v4/classic/external.ts +52 -0
  320. package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
  321. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  322. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  323. package/node_modules/zod/src/v4/classic/parse.ts +82 -0
  324. package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
  325. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  326. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  327. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  328. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
  329. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  330. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  331. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  332. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  333. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  334. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
  335. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  336. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  337. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
  338. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  339. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  340. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  341. package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  342. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  343. package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
  344. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  345. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  346. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  347. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
  348. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  349. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
  350. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  351. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  352. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  353. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  354. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
  355. package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  356. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  357. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  358. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  359. package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  360. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  361. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  362. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  363. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  364. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  365. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  366. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  367. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  368. package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  369. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  370. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  371. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  372. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  373. package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
  374. package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
  375. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
  376. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
  377. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  378. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  379. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  380. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
  381. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  382. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  383. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  384. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  385. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  386. package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
  387. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
  388. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
  389. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  390. package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  391. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  392. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  393. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
  394. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  395. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  396. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  397. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
  398. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  399. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
  400. package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
  401. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  402. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  403. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  404. package/node_modules/zod/src/v4/core/api.ts +1823 -0
  405. package/node_modules/zod/src/v4/core/checks.ts +1293 -0
  406. package/node_modules/zod/src/v4/core/config.ts +15 -0
  407. package/node_modules/zod/src/v4/core/core.ts +153 -0
  408. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  409. package/node_modules/zod/src/v4/core/errors.ts +455 -0
  410. package/node_modules/zod/src/v4/core/index.ts +16 -0
  411. package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  412. package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
  413. package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  414. package/node_modules/zod/src/v4/core/parse.ts +195 -0
  415. package/node_modules/zod/src/v4/core/regexes.ts +190 -0
  416. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  417. package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
  418. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  419. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  420. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  421. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  422. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  423. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  424. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  425. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  426. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  427. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  428. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  429. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  430. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  431. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  432. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  433. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  434. package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
  435. package/node_modules/zod/src/v4/core/util.ts +983 -0
  436. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  437. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  438. package/node_modules/zod/src/v4/index.ts +4 -0
  439. package/node_modules/zod/src/v4/locales/ar.ts +115 -0
  440. package/node_modules/zod/src/v4/locales/az.ts +111 -0
  441. package/node_modules/zod/src/v4/locales/be.ts +176 -0
  442. package/node_modules/zod/src/v4/locales/bg.ts +128 -0
  443. package/node_modules/zod/src/v4/locales/ca.ts +116 -0
  444. package/node_modules/zod/src/v4/locales/cs.ts +118 -0
  445. package/node_modules/zod/src/v4/locales/da.ts +123 -0
  446. package/node_modules/zod/src/v4/locales/de.ts +116 -0
  447. package/node_modules/zod/src/v4/locales/el.ts +121 -0
  448. package/node_modules/zod/src/v4/locales/en.ts +123 -0
  449. package/node_modules/zod/src/v4/locales/eo.ts +118 -0
  450. package/node_modules/zod/src/v4/locales/es.ts +141 -0
  451. package/node_modules/zod/src/v4/locales/fa.ts +126 -0
  452. package/node_modules/zod/src/v4/locales/fi.ts +121 -0
  453. package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  454. package/node_modules/zod/src/v4/locales/fr.ts +132 -0
  455. package/node_modules/zod/src/v4/locales/he.ts +246 -0
  456. package/node_modules/zod/src/v4/locales/hr.ts +131 -0
  457. package/node_modules/zod/src/v4/locales/hu.ts +117 -0
  458. package/node_modules/zod/src/v4/locales/hy.ts +164 -0
  459. package/node_modules/zod/src/v4/locales/id.ts +115 -0
  460. package/node_modules/zod/src/v4/locales/index.ts +52 -0
  461. package/node_modules/zod/src/v4/locales/is.ts +119 -0
  462. package/node_modules/zod/src/v4/locales/it.ts +116 -0
  463. package/node_modules/zod/src/v4/locales/ja.ts +114 -0
  464. package/node_modules/zod/src/v4/locales/ka.ts +123 -0
  465. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  466. package/node_modules/zod/src/v4/locales/km.ts +119 -0
  467. package/node_modules/zod/src/v4/locales/ko.ts +121 -0
  468. package/node_modules/zod/src/v4/locales/lt.ts +239 -0
  469. package/node_modules/zod/src/v4/locales/mk.ts +118 -0
  470. package/node_modules/zod/src/v4/locales/ms.ts +115 -0
  471. package/node_modules/zod/src/v4/locales/nl.ts +121 -0
  472. package/node_modules/zod/src/v4/locales/no.ts +116 -0
  473. package/node_modules/zod/src/v4/locales/ota.ts +117 -0
  474. package/node_modules/zod/src/v4/locales/pl.ts +118 -0
  475. package/node_modules/zod/src/v4/locales/ps.ts +126 -0
  476. package/node_modules/zod/src/v4/locales/pt.ts +116 -0
  477. package/node_modules/zod/src/v4/locales/ro.ts +129 -0
  478. package/node_modules/zod/src/v4/locales/ru.ts +176 -0
  479. package/node_modules/zod/src/v4/locales/sl.ts +118 -0
  480. package/node_modules/zod/src/v4/locales/sv.ts +119 -0
  481. package/node_modules/zod/src/v4/locales/ta.ts +118 -0
  482. package/node_modules/zod/src/v4/locales/th.ts +119 -0
  483. package/node_modules/zod/src/v4/locales/tr.ts +111 -0
  484. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  485. package/node_modules/zod/src/v4/locales/uk.ts +117 -0
  486. package/node_modules/zod/src/v4/locales/ur.ts +119 -0
  487. package/node_modules/zod/src/v4/locales/uz.ts +117 -0
  488. package/node_modules/zod/src/v4/locales/vi.ts +117 -0
  489. package/node_modules/zod/src/v4/locales/yo.ts +124 -0
  490. package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  491. package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  492. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  493. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  494. package/node_modules/zod/src/v4/mini/external.ts +41 -0
  495. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  496. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  497. package/node_modules/zod/src/v4/mini/parse.ts +14 -0
  498. package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
  499. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  500. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  501. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  502. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  503. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
  504. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  505. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  506. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  507. package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
  508. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  509. package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  510. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  511. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  512. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  513. package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
  514. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  515. package/node_modules/zod/v3/ZodError.cjs +138 -0
  516. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  517. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  518. package/node_modules/zod/v3/ZodError.js +133 -0
  519. package/node_modules/zod/v3/errors.cjs +17 -0
  520. package/node_modules/zod/v3/errors.d.cts +5 -0
  521. package/node_modules/zod/v3/errors.d.ts +5 -0
  522. package/node_modules/zod/v3/errors.js +9 -0
  523. package/node_modules/zod/v3/external.cjs +22 -0
  524. package/node_modules/zod/v3/external.d.cts +6 -0
  525. package/node_modules/zod/v3/external.d.ts +6 -0
  526. package/node_modules/zod/v3/external.js +6 -0
  527. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  528. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  529. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  530. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  531. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  532. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  533. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  534. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  535. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  536. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  537. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  538. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  539. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  540. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  541. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  542. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  543. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  544. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  545. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  546. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  547. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  548. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  549. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  550. package/node_modules/zod/v3/helpers/util.js +133 -0
  551. package/node_modules/zod/v3/index.cjs +33 -0
  552. package/node_modules/zod/v3/index.d.cts +4 -0
  553. package/node_modules/zod/v3/index.d.ts +4 -0
  554. package/node_modules/zod/v3/index.js +4 -0
  555. package/node_modules/zod/v3/locales/en.cjs +112 -0
  556. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  557. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  558. package/node_modules/zod/v3/locales/en.js +109 -0
  559. package/node_modules/zod/v3/package.json +7 -0
  560. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  561. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  562. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  563. package/node_modules/zod/v3/standard-schema.js +1 -0
  564. package/node_modules/zod/v3/types.cjs +3777 -0
  565. package/node_modules/zod/v3/types.d.cts +1034 -0
  566. package/node_modules/zod/v3/types.d.ts +1034 -0
  567. package/node_modules/zod/v3/types.js +3695 -0
  568. package/node_modules/zod/v4/classic/checks.cjs +33 -0
  569. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  570. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  571. package/node_modules/zod/v4/classic/checks.js +1 -0
  572. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  573. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  574. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  575. package/node_modules/zod/v4/classic/coerce.js +17 -0
  576. package/node_modules/zod/v4/classic/compat.cjs +61 -0
  577. package/node_modules/zod/v4/classic/compat.d.cts +50 -0
  578. package/node_modules/zod/v4/classic/compat.d.ts +50 -0
  579. package/node_modules/zod/v4/classic/compat.js +31 -0
  580. package/node_modules/zod/v4/classic/errors.cjs +74 -0
  581. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  582. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  583. package/node_modules/zod/v4/classic/errors.js +48 -0
  584. package/node_modules/zod/v4/classic/external.cjs +73 -0
  585. package/node_modules/zod/v4/classic/external.d.cts +16 -0
  586. package/node_modules/zod/v4/classic/external.d.ts +16 -0
  587. package/node_modules/zod/v4/classic/external.js +20 -0
  588. package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
  589. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  590. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  591. package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  592. package/node_modules/zod/v4/classic/index.cjs +33 -0
  593. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  594. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  595. package/node_modules/zod/v4/classic/index.js +4 -0
  596. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  597. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  598. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  599. package/node_modules/zod/v4/classic/iso.js +30 -0
  600. package/node_modules/zod/v4/classic/package.json +7 -0
  601. package/node_modules/zod/v4/classic/parse.cjs +41 -0
  602. package/node_modules/zod/v4/classic/parse.d.cts +31 -0
  603. package/node_modules/zod/v4/classic/parse.d.ts +31 -0
  604. package/node_modules/zod/v4/classic/parse.js +15 -0
  605. package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
  606. package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
  607. package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
  608. package/node_modules/zod/v4/classic/schemas.js +1395 -0
  609. package/node_modules/zod/v4/core/api.cjs +1227 -0
  610. package/node_modules/zod/v4/core/api.d.cts +325 -0
  611. package/node_modules/zod/v4/core/api.d.ts +325 -0
  612. package/node_modules/zod/v4/core/api.js +1087 -0
  613. package/node_modules/zod/v4/core/checks.cjs +601 -0
  614. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  615. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  616. package/node_modules/zod/v4/core/checks.js +575 -0
  617. package/node_modules/zod/v4/core/core.cjs +85 -0
  618. package/node_modules/zod/v4/core/core.d.cts +70 -0
  619. package/node_modules/zod/v4/core/core.d.ts +70 -0
  620. package/node_modules/zod/v4/core/core.js +78 -0
  621. package/node_modules/zod/v4/core/doc.cjs +39 -0
  622. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  623. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  624. package/node_modules/zod/v4/core/doc.js +35 -0
  625. package/node_modules/zod/v4/core/errors.cjs +216 -0
  626. package/node_modules/zod/v4/core/errors.d.cts +221 -0
  627. package/node_modules/zod/v4/core/errors.d.ts +221 -0
  628. package/node_modules/zod/v4/core/errors.js +185 -0
  629. package/node_modules/zod/v4/core/index.cjs +47 -0
  630. package/node_modules/zod/v4/core/index.d.cts +16 -0
  631. package/node_modules/zod/v4/core/index.d.ts +16 -0
  632. package/node_modules/zod/v4/core/index.js +16 -0
  633. package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  634. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  635. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  636. package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  637. package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
  638. package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  639. package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  640. package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  641. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  642. package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  643. package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  644. package/node_modules/zod/v4/core/json-schema.js +1 -0
  645. package/node_modules/zod/v4/core/package.json +7 -0
  646. package/node_modules/zod/v4/core/parse.cjs +131 -0
  647. package/node_modules/zod/v4/core/parse.d.cts +49 -0
  648. package/node_modules/zod/v4/core/parse.d.ts +49 -0
  649. package/node_modules/zod/v4/core/parse.js +93 -0
  650. package/node_modules/zod/v4/core/regexes.cjs +172 -0
  651. package/node_modules/zod/v4/core/regexes.d.cts +85 -0
  652. package/node_modules/zod/v4/core/regexes.d.ts +85 -0
  653. package/node_modules/zod/v4/core/regexes.js +139 -0
  654. package/node_modules/zod/v4/core/registries.cjs +56 -0
  655. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  656. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  657. package/node_modules/zod/v4/core/registries.js +51 -0
  658. package/node_modules/zod/v4/core/schemas.cjs +2270 -0
  659. package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
  660. package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
  661. package/node_modules/zod/v4/core/schemas.js +2239 -0
  662. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  663. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  664. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  665. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  666. package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
  667. package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  668. package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  669. package/node_modules/zod/v4/core/to-json-schema.js +448 -0
  670. package/node_modules/zod/v4/core/util.cjs +734 -0
  671. package/node_modules/zod/v4/core/util.d.cts +200 -0
  672. package/node_modules/zod/v4/core/util.d.ts +200 -0
  673. package/node_modules/zod/v4/core/util.js +674 -0
  674. package/node_modules/zod/v4/core/versions.cjs +8 -0
  675. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  676. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  677. package/node_modules/zod/v4/core/versions.js +5 -0
  678. package/node_modules/zod/v4/index.cjs +22 -0
  679. package/node_modules/zod/v4/index.d.cts +3 -0
  680. package/node_modules/zod/v4/index.d.ts +3 -0
  681. package/node_modules/zod/v4/index.js +3 -0
  682. package/node_modules/zod/v4/locales/ar.cjs +133 -0
  683. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  684. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  685. package/node_modules/zod/v4/locales/ar.js +106 -0
  686. package/node_modules/zod/v4/locales/az.cjs +132 -0
  687. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  688. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  689. package/node_modules/zod/v4/locales/az.js +105 -0
  690. package/node_modules/zod/v4/locales/be.cjs +183 -0
  691. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/be.js +156 -0
  694. package/node_modules/zod/v4/locales/bg.cjs +147 -0
  695. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  696. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  697. package/node_modules/zod/v4/locales/bg.js +120 -0
  698. package/node_modules/zod/v4/locales/ca.cjs +134 -0
  699. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  700. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  701. package/node_modules/zod/v4/locales/ca.js +107 -0
  702. package/node_modules/zod/v4/locales/cs.cjs +138 -0
  703. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  704. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  705. package/node_modules/zod/v4/locales/cs.js +111 -0
  706. package/node_modules/zod/v4/locales/da.cjs +142 -0
  707. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  708. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  709. package/node_modules/zod/v4/locales/da.js +115 -0
  710. package/node_modules/zod/v4/locales/de.cjs +135 -0
  711. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  712. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  713. package/node_modules/zod/v4/locales/de.js +108 -0
  714. package/node_modules/zod/v4/locales/el.cjs +136 -0
  715. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  716. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  717. package/node_modules/zod/v4/locales/el.js +109 -0
  718. package/node_modules/zod/v4/locales/en.cjs +140 -0
  719. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  720. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  721. package/node_modules/zod/v4/locales/en.js +113 -0
  722. package/node_modules/zod/v4/locales/eo.cjs +136 -0
  723. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  724. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  725. package/node_modules/zod/v4/locales/eo.js +109 -0
  726. package/node_modules/zod/v4/locales/es.cjs +159 -0
  727. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  728. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  729. package/node_modules/zod/v4/locales/es.js +132 -0
  730. package/node_modules/zod/v4/locales/fa.cjs +141 -0
  731. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  732. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  733. package/node_modules/zod/v4/locales/fa.js +114 -0
  734. package/node_modules/zod/v4/locales/fi.cjs +139 -0
  735. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  736. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  737. package/node_modules/zod/v4/locales/fi.js +112 -0
  738. package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  739. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  740. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  741. package/node_modules/zod/v4/locales/fr-CA.js +107 -0
  742. package/node_modules/zod/v4/locales/fr.cjs +152 -0
  743. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  744. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  745. package/node_modules/zod/v4/locales/fr.js +125 -0
  746. package/node_modules/zod/v4/locales/he.cjs +241 -0
  747. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  748. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  749. package/node_modules/zod/v4/locales/he.js +214 -0
  750. package/node_modules/zod/v4/locales/hr.cjs +149 -0
  751. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  752. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  753. package/node_modules/zod/v4/locales/hr.js +122 -0
  754. package/node_modules/zod/v4/locales/hu.cjs +135 -0
  755. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  756. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  757. package/node_modules/zod/v4/locales/hu.js +108 -0
  758. package/node_modules/zod/v4/locales/hy.cjs +174 -0
  759. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  760. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  761. package/node_modules/zod/v4/locales/hy.js +147 -0
  762. package/node_modules/zod/v4/locales/id.cjs +133 -0
  763. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  764. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  765. package/node_modules/zod/v4/locales/id.js +106 -0
  766. package/node_modules/zod/v4/locales/index.cjs +111 -0
  767. package/node_modules/zod/v4/locales/index.d.cts +52 -0
  768. package/node_modules/zod/v4/locales/index.d.ts +52 -0
  769. package/node_modules/zod/v4/locales/index.js +52 -0
  770. package/node_modules/zod/v4/locales/is.cjs +136 -0
  771. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  772. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  773. package/node_modules/zod/v4/locales/is.js +109 -0
  774. package/node_modules/zod/v4/locales/it.cjs +135 -0
  775. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  776. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  777. package/node_modules/zod/v4/locales/it.js +108 -0
  778. package/node_modules/zod/v4/locales/ja.cjs +134 -0
  779. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  780. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  781. package/node_modules/zod/v4/locales/ja.js +107 -0
  782. package/node_modules/zod/v4/locales/ka.cjs +139 -0
  783. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  784. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  785. package/node_modules/zod/v4/locales/ka.js +112 -0
  786. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  787. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  788. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  789. package/node_modules/zod/v4/locales/kh.js +5 -0
  790. package/node_modules/zod/v4/locales/km.cjs +137 -0
  791. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  792. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  793. package/node_modules/zod/v4/locales/km.js +110 -0
  794. package/node_modules/zod/v4/locales/ko.cjs +138 -0
  795. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  796. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  797. package/node_modules/zod/v4/locales/ko.js +111 -0
  798. package/node_modules/zod/v4/locales/lt.cjs +230 -0
  799. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  800. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  801. package/node_modules/zod/v4/locales/lt.js +203 -0
  802. package/node_modules/zod/v4/locales/mk.cjs +136 -0
  803. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  804. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  805. package/node_modules/zod/v4/locales/mk.js +109 -0
  806. package/node_modules/zod/v4/locales/ms.cjs +134 -0
  807. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  808. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  809. package/node_modules/zod/v4/locales/ms.js +107 -0
  810. package/node_modules/zod/v4/locales/nl.cjs +137 -0
  811. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  812. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  813. package/node_modules/zod/v4/locales/nl.js +110 -0
  814. package/node_modules/zod/v4/locales/no.cjs +135 -0
  815. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  816. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  817. package/node_modules/zod/v4/locales/no.js +108 -0
  818. package/node_modules/zod/v4/locales/ota.cjs +136 -0
  819. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  820. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  821. package/node_modules/zod/v4/locales/ota.js +109 -0
  822. package/node_modules/zod/v4/locales/package.json +7 -0
  823. package/node_modules/zod/v4/locales/pl.cjs +136 -0
  824. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  825. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  826. package/node_modules/zod/v4/locales/pl.js +109 -0
  827. package/node_modules/zod/v4/locales/ps.cjs +141 -0
  828. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  829. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  830. package/node_modules/zod/v4/locales/ps.js +114 -0
  831. package/node_modules/zod/v4/locales/pt.cjs +135 -0
  832. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  833. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  834. package/node_modules/zod/v4/locales/pt.js +108 -0
  835. package/node_modules/zod/v4/locales/ro.cjs +146 -0
  836. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  837. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  838. package/node_modules/zod/v4/locales/ro.js +119 -0
  839. package/node_modules/zod/v4/locales/ru.cjs +183 -0
  840. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  841. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  842. package/node_modules/zod/v4/locales/ru.js +156 -0
  843. package/node_modules/zod/v4/locales/sl.cjs +136 -0
  844. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  845. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  846. package/node_modules/zod/v4/locales/sl.js +109 -0
  847. package/node_modules/zod/v4/locales/sv.cjs +137 -0
  848. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  849. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  850. package/node_modules/zod/v4/locales/sv.js +110 -0
  851. package/node_modules/zod/v4/locales/ta.cjs +137 -0
  852. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  853. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  854. package/node_modules/zod/v4/locales/ta.js +110 -0
  855. package/node_modules/zod/v4/locales/th.cjs +137 -0
  856. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  857. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  858. package/node_modules/zod/v4/locales/th.js +110 -0
  859. package/node_modules/zod/v4/locales/tr.cjs +132 -0
  860. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  861. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  862. package/node_modules/zod/v4/locales/tr.js +105 -0
  863. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  864. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  865. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  866. package/node_modules/zod/v4/locales/ua.js +5 -0
  867. package/node_modules/zod/v4/locales/uk.cjs +135 -0
  868. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  869. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  870. package/node_modules/zod/v4/locales/uk.js +108 -0
  871. package/node_modules/zod/v4/locales/ur.cjs +137 -0
  872. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  873. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  874. package/node_modules/zod/v4/locales/ur.js +110 -0
  875. package/node_modules/zod/v4/locales/uz.cjs +137 -0
  876. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  877. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  878. package/node_modules/zod/v4/locales/uz.js +110 -0
  879. package/node_modules/zod/v4/locales/vi.cjs +135 -0
  880. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  881. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  882. package/node_modules/zod/v4/locales/vi.js +108 -0
  883. package/node_modules/zod/v4/locales/yo.cjs +134 -0
  884. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  885. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  886. package/node_modules/zod/v4/locales/yo.js +107 -0
  887. package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  888. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  889. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  890. package/node_modules/zod/v4/locales/zh-CN.js +109 -0
  891. package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  892. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  893. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  894. package/node_modules/zod/v4/locales/zh-TW.js +107 -0
  895. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  896. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  897. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  898. package/node_modules/zod/v4/mini/checks.js +1 -0
  899. package/node_modules/zod/v4/mini/coerce.cjs +52 -0
  900. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  901. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  902. package/node_modules/zod/v4/mini/coerce.js +22 -0
  903. package/node_modules/zod/v4/mini/external.cjs +63 -0
  904. package/node_modules/zod/v4/mini/external.d.cts +13 -0
  905. package/node_modules/zod/v4/mini/external.d.ts +13 -0
  906. package/node_modules/zod/v4/mini/external.js +14 -0
  907. package/node_modules/zod/v4/mini/index.cjs +32 -0
  908. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  909. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  910. package/node_modules/zod/v4/mini/index.js +3 -0
  911. package/node_modules/zod/v4/mini/iso.cjs +64 -0
  912. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  913. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  914. package/node_modules/zod/v4/mini/iso.js +34 -0
  915. package/node_modules/zod/v4/mini/package.json +7 -0
  916. package/node_modules/zod/v4/mini/parse.cjs +16 -0
  917. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  918. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  919. package/node_modules/zod/v4/mini/parse.js +1 -0
  920. package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
  921. package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
  922. package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
  923. package/node_modules/zod/v4/mini/schemas.js +961 -0
  924. package/node_modules/zod/v4/package.json +7 -0
  925. package/node_modules/zod/v4-mini/index.cjs +32 -0
  926. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  927. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  928. package/node_modules/zod/v4-mini/index.js +3 -0
  929. package/node_modules/zod/v4-mini/package.json +7 -0
  930. package/npm-shrinkwrap.json +66 -0
  931. package/openclaw.plugin.json +42 -0
  932. package/package.json +59 -10
@@ -0,0 +1 @@
1
+ 072c25336487841e4b7b9a03f2532bac8835d04f74ad4a0bc9404a07f189e35c
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Send a diagnostic log message to the MXC diagnostic console.
3
+ *
4
+ * Messages are best-effort and non-blocking. If the console is not
5
+ * running, the message is silently dropped.
6
+ *
7
+ * Each message is sent as a newline-delimited JSON envelope so the
8
+ * console can split coalesced stream writes back into individual messages.
9
+ *
10
+ * @param message - The log message to send
11
+ */
12
+ export declare function diagLog(message: string): void;
13
+ /**
14
+ * Close the diagnostic pipe connection. Called during cleanup.
15
+ */
16
+ export declare function diagClose(): void;
17
+ //# sourceMappingURL=diagnostic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../src/diagnostic.ts"],"names":[],"mappings":"AAsHA;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAgB7C;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAUhC"}
@@ -0,0 +1,150 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * Diagnostic logging for the MXC SDK.
5
+ *
6
+ * When the MXC diagnostic console (`mxc-diagnostic-console.exe`) is running,
7
+ * this module sends log messages to it over the shared named pipe.
8
+ * Messages are best-effort: if the console is not running or the pipe
9
+ * write fails, the error is silently ignored.
10
+ *
11
+ * Enabled by environment variable `MXC_DIAG_CONSOLE=1`.
12
+ */
13
+ import { execSync } from 'child_process';
14
+ import * as net from 'net';
15
+ import * as os from 'os';
16
+ /**
17
+ * Compute the per-user pipe name (includes current user's SID).
18
+ * Falls back to the base name if the SID cannot be determined.
19
+ *
20
+ * Windows-only — the diagnostic console only runs on Windows. On other
21
+ * platforms this returns the base name (which is never used because
22
+ * `ensurePipe` short-circuits below) without spawning `whoami`. The
23
+ * `whoami /user /fo csv /nh` invocation uses Windows-only flags that
24
+ * cause GNU/BSD `whoami` to print "usage: whoami" on stderr — visible
25
+ * to any caller that inherits our stdio (e.g. mxc-exec-mac under a pty).
26
+ */
27
+ function getDiagnosticPipeName() {
28
+ const baseName = '\\\\.\\pipe\\mxc-diagnostics';
29
+ if (os.platform() !== 'win32') {
30
+ return baseName;
31
+ }
32
+ try {
33
+ const output = execSync('whoami /user /fo csv /nh', {
34
+ encoding: 'utf8',
35
+ timeout: 3000,
36
+ windowsHide: true,
37
+ }).trim();
38
+ // Output is like: "DOMAIN\\user","S-1-5-21-..."
39
+ const match = output.match(/"(S-[\d-]+)"/);
40
+ if (match) {
41
+ return `${baseName}-${match[1]}`;
42
+ }
43
+ }
44
+ catch {
45
+ // Best-effort: fall back to base name without SID.
46
+ }
47
+ return baseName;
48
+ }
49
+ const PIPE_NAME = getDiagnosticPipeName();
50
+ /** Cached pipe connection (lazy, best-effort). */
51
+ let pipeSocket = null;
52
+ let pipeConnected = false;
53
+ let pipeAttempted = false;
54
+ let diagnosticEnabled = null;
55
+ /**
56
+ * Check whether diagnostic console logging is enabled via env var.
57
+ */
58
+ function isDiagnosticEnabled() {
59
+ if (diagnosticEnabled !== null) {
60
+ return diagnosticEnabled;
61
+ }
62
+ const envVal = process.env['MXC_DIAG_CONSOLE'];
63
+ diagnosticEnabled =
64
+ envVal === '1' || envVal?.toLowerCase() === 'true';
65
+ return diagnosticEnabled;
66
+ }
67
+ /**
68
+ * Ensure the pipe is connected (lazy, best-effort).
69
+ */
70
+ function ensurePipe() {
71
+ if (pipeConnected && pipeSocket) {
72
+ return pipeSocket;
73
+ }
74
+ if (pipeAttempted) {
75
+ return null;
76
+ }
77
+ // Only supported on Windows.
78
+ if (os.platform() !== 'win32') {
79
+ pipeAttempted = true;
80
+ return null;
81
+ }
82
+ pipeAttempted = true;
83
+ try {
84
+ const socket = net.createConnection(PIPE_NAME);
85
+ // Track connection state.
86
+ socket.on('connect', () => {
87
+ pipeConnected = true;
88
+ });
89
+ socket.on('error', () => {
90
+ pipeConnected = false;
91
+ pipeSocket = null;
92
+ });
93
+ socket.on('close', () => {
94
+ pipeConnected = false;
95
+ pipeSocket = null;
96
+ });
97
+ // Don't let the pipe keep the process alive.
98
+ socket.unref();
99
+ pipeSocket = socket;
100
+ // Connection is in-flight; the 'connect' handler sets pipeConnected.
101
+ // First message may be dropped, which is acceptable for best-effort diagnostics.
102
+ return null;
103
+ }
104
+ catch {
105
+ return null;
106
+ }
107
+ }
108
+ /**
109
+ * Send a diagnostic log message to the MXC diagnostic console.
110
+ *
111
+ * Messages are best-effort and non-blocking. If the console is not
112
+ * running, the message is silently dropped.
113
+ *
114
+ * Each message is sent as a newline-delimited JSON envelope so the
115
+ * console can split coalesced stream writes back into individual messages.
116
+ *
117
+ * @param message - The log message to send
118
+ */
119
+ export function diagLog(message) {
120
+ if (!isDiagnosticEnabled()) {
121
+ return;
122
+ }
123
+ const socket = ensurePipe();
124
+ if (!socket) {
125
+ return;
126
+ }
127
+ try {
128
+ const envelope = JSON.stringify({ msg: `[SDK] ${message}` }) + '\n';
129
+ socket.write(envelope);
130
+ }
131
+ catch {
132
+ // Best-effort: ignore write errors.
133
+ }
134
+ }
135
+ /**
136
+ * Close the diagnostic pipe connection. Called during cleanup.
137
+ */
138
+ export function diagClose() {
139
+ if (pipeSocket) {
140
+ try {
141
+ pipeSocket.destroy();
142
+ }
143
+ catch {
144
+ // Ignore.
145
+ }
146
+ pipeSocket = null;
147
+ pipeConnected = false;
148
+ }
149
+ }
150
+ //# sourceMappingURL=diagnostic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../src/diagnostic.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,SAAS,qBAAqB;IAC1B,MAAM,QAAQ,GAAG,8BAA8B,CAAC;IAChD,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,OAAO,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,IAAI,CAAC;QACD,MAAM,MAAM,GAAG,QAAQ,CAAC,0BAA0B,EAAE;YAChD,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,IAAI;SACpB,CAAC,CAAC,IAAI,EAAE,CAAC;QACV,gDAAgD;QAChD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC3C,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,GAAG,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACrC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACL,mDAAmD;IACvD,CAAC;IACD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AC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YACpB,aAAa,GAAG,KAAK,CAAC;YACtB,UAAU,GAAG,IAAI,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,6CAA6C;QAC7C,MAAM,CAAC,KAAK,EAAE,CAAC;QAEf,UAAU,GAAG,MAAM,CAAC;QACpB,qEAAqE;QACrE,iFAAiF;QACjF,OAAO,IAAI,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,OAAO,CAAC,OAAe;IACnC,IAAI,CAAC,mBAAmB,EAAE,EAAE,CAAC;QACzB,OAAO;IACX,CAAC;IAED,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO;IACX,CAAC;IAED,IAAI,CAAC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,SAAS,OAAO,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC;QACpE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACL,oCAAoC;IACxC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS;IACrB,IAAI,UAAU,EAAE,CAAC;QACb,IAAI,CAAC;YACD,UAAU,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC;QAAC,MAAM,CAAC;YACL,UAAU;QACd,CAAC;QACD,UAAU,GAAG,IAAI,CAAC;QAClB,aAAa,GAAG,KAAK,CAAC;IAC1B,CAAC;AACL,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Closed set of MXC wire-format error codes. Mirrors `MxcErrorCode` on the
3
+ * Rust side one-for-one and serialises as the same snake_case strings on
4
+ * the wire. Backend-specific failures that don't fit one of these codes
5
+ * surface as `backend_error`, with structured information carried in
6
+ * `details`.
7
+ */
8
+ export type ErrorCode = 'malformed_request' | 'unsupported_containment' | 'unsupported_phase' | 'backend_unavailable' | 'malformed_id' | 'stale_id' | 'not_provisioned' | 'not_started' | 'already_started' | 'already_stopped' | 'policy_validation' | 'backend_error';
9
+ /**
10
+ * Typed error thrown by the MXC SDK in response to a wire-format error
11
+ * envelope. Discriminate by comparing `.code` to a wire-format error code
12
+ * string; the TypeScript string-literal union gives the same IDE
13
+ * completion as a class hierarchy without the multiplicative class count.
14
+ */
15
+ export declare class MxcError extends Error {
16
+ readonly code: ErrorCode;
17
+ readonly details?: Record<string, unknown>;
18
+ constructor(code: ErrorCode, message: string, details?: Record<string, unknown>);
19
+ }
20
+ /**
21
+ * Constructs an `MxcError` from a wire-format error code. Accepts a plain
22
+ * `string` so callers parsing a wire envelope don't need to narrow first;
23
+ * unknown codes still produce an `MxcError` with `.code` set to whatever
24
+ * was on the wire.
25
+ */
26
+ export declare function mxcErrorFromCode(code: string, message: string, details?: Record<string, unknown>): MxcError;
27
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GACjB,mBAAmB,GACnB,yBAAyB,GACzB,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,aAAa,GACb,iBAAiB,GACjB,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,CAAC;AAEpB;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAE/B,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAShF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,QAAQ,CAEV"}
@@ -0,0 +1,31 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * Typed error thrown by the MXC SDK in response to a wire-format error
5
+ * envelope. Discriminate by comparing `.code` to a wire-format error code
6
+ * string; the TypeScript string-literal union gives the same IDE
7
+ * completion as a class hierarchy without the multiplicative class count.
8
+ */
9
+ export class MxcError extends Error {
10
+ code;
11
+ details;
12
+ constructor(code, message, details) {
13
+ super(message);
14
+ this.code = code;
15
+ this.details = details;
16
+ // Restore the prototype chain so `instanceof MxcError` keeps working
17
+ // after the TypeScript ES2020 → ES5-compatible class downlevelling.
18
+ Object.setPrototypeOf(this, new.target.prototype);
19
+ this.name = 'MxcError';
20
+ }
21
+ }
22
+ /**
23
+ * Constructs an `MxcError` from a wire-format error code. Accepts a plain
24
+ * `string` so callers parsing a wire envelope don't need to narrow first;
25
+ * unknown codes still produce an `MxcError` with `.code` set to whatever
26
+ * was on the wire.
27
+ */
28
+ export function mxcErrorFromCode(code, message, details) {
29
+ return new MxcError(code, message, details);
30
+ }
31
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuBlC;;;;;GAKG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAK;IACxB,IAAI,CAAY;IAChB,OAAO,CAA2B;IAE3C,YAAY,IAAe,EAAE,OAAe,EAAE,OAAiC;QAC7E,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,qEAAqE;QACrE,oEAAoE;QACpE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,OAAe,EACf,OAAiC;IAEjC,OAAO,IAAI,QAAQ,CAAC,IAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,101 @@
1
+ import { FileLogger } from './logger.js';
2
+ import { ContainerConfig } from './types.js';
3
+ import { SandboxSpawnOptions } from './sandbox.js';
4
+ /** SDK version read from package.json at module load time. */
5
+ export declare const SDK_VERSION: string;
6
+ /** Log the SDK version to the diagnostic console (once per process). */
7
+ export declare function diagLogVersion(): void;
8
+ /**
9
+ * Emit a one-shot deprecation hint via the diagnostic console when a caller
10
+ * uses a legacy containment wire value. Dedup'd per legacy value per process
11
+ * so the message doesn't flood the diag stream on repeated spawns.
12
+ *
13
+ * Exposed for tests so the latch can be reset between describes.
14
+ */
15
+ export declare function warnLegacyContainmentOnce(legacy: string, canonical: string): void;
16
+ /** @internal Reset the legacy-containment dedup latch. Intended for unit tests. */
17
+ export declare function _resetLegacyContainmentWarnedForTesting(): void;
18
+ /**
19
+ * Result of preparing a sandbox spawn — includes the resolved binary,
20
+ * CLI arguments, and optional diagnostic logger.
21
+ */
22
+ export interface PrepareSpawnResult {
23
+ /** Absolute path to the wxc-exec or lxc-exec binary. */
24
+ executablePath: string;
25
+ /** CLI arguments to pass to the binary. */
26
+ args: string[];
27
+ /** Diagnostic logger, created when logDir is set or debug is enabled. */
28
+ logger?: FileLogger;
29
+ /** Path to the diagnostic log file (if logger is active). */
30
+ logFile?: string;
31
+ /** Timestamp when spawn preparation started (for duration tracking). */
32
+ startTime: number;
33
+ }
34
+ /**
35
+ * Generate a timestamped log file path in the given directory.
36
+ */
37
+ export declare function makeLogFilePath(dir: string): string;
38
+ /**
39
+ * Apply Linux network-policy defaults to a `ContainerConfig`.
40
+ *
41
+ * Linux enforces per-host filtering in one of two ways:
42
+ * 1. **iptables firewall** (`enforcementMode: 'firewall'`) — LXC's
43
+ * privileged enforcement path. Requires root / CAP_NET_ADMIN.
44
+ * 2. **Cooperative HTTP proxy** (`network.proxy` set) — Bubblewrap's
45
+ * unprivileged enforcement path. The proxy applies the host policy
46
+ * for cooperating HTTP clients; raw-socket clients bypass it.
47
+ *
48
+ * This helper auto-promotes `enforcementMode` to `'firewall'` when host
49
+ * lists are present without a proxy — without it, the parser would leave
50
+ * the mode unset and the runtime would silently ignore `allowedHosts` /
51
+ * `blockedHosts`.
52
+ *
53
+ * If the caller explicitly passes `enforcementMode: 'capabilities'` we
54
+ * warn: `'capabilities'` is a Windows/AppContainer concept (a token
55
+ * capability mask) and has no Linux equivalent — the Linux runner will
56
+ * not enforce anything and the field is silently dropped.
57
+ *
58
+ * Shared between the explicit `'bubblewrap'` / `'lxc'` builders and the
59
+ * abstract `'process'` branch on Linux (which resolves to Bubblewrap
60
+ * server-side).
61
+ *
62
+ * NOTE: when `network.proxy` is configured on Bubblewrap, host filtering
63
+ * is enforced at the proxy layer (unprivileged, no CAP_NET_ADMIN). The
64
+ * Rust config parser explicitly rejects `bubblewrap + proxy + firewall`
65
+ * since the iptables path requires privilege the bwrap backend
66
+ * deliberately avoids. Callers in that mode must leave enforcementMode
67
+ * at its default.
68
+ */
69
+ export declare function applyLinuxNetworkPolicy(config: ContainerConfig): void;
70
+ /**
71
+ * Resolves the executor binary and builds the common CLI arguments for any
72
+ * MXC request envelope (one-shot or state-aware). Performs platform support
73
+ * and binary-presence checks; does not validate envelope contents — callers
74
+ * apply request-specific validation before delegating to this helper.
75
+ */
76
+ export declare function resolveBinaryAndCommonArgs(envelopeJson: string, options: SandboxSpawnOptions): {
77
+ executablePath: string;
78
+ args: string[];
79
+ };
80
+ /**
81
+ * Resolves the executable path and builds CLI arguments for a one-shot
82
+ * sandbox invocation. Validates one-shot-specific invariants (commandLine
83
+ * required, experimental gating, containment-vs-platform compatibility)
84
+ * before delegating to the shared `resolveBinaryAndCommonArgs`.
85
+ */
86
+ export declare function resolveExecutableAndArgs(config: ContainerConfig, options?: SandboxSpawnOptions): {
87
+ executablePath: string;
88
+ args: string[];
89
+ };
90
+ /**
91
+ * Sets up logging and resolves the executable path + args.
92
+ * Shared by both PTY and non-PTY spawn paths.
93
+ *
94
+ * If resolveExecutableAndArgs throws, any open logger is closed
95
+ * before the error propagates.
96
+ *
97
+ * @param config - The container configuration
98
+ * @param options - Spawn options (debug, logDir, etc.)
99
+ */
100
+ export declare function prepareSpawn(config: ContainerConfig, options: SandboxSpawnOptions): PrepareSpawnResult;
101
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAwF,MAAM,YAAY,CAAC;AAEnI,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,8DAA8D;AAC9D,eAAO,MAAM,WAAW,EAAE,MAWtB,CAAC;AAIL,wEAAwE;AACxE,wBAAgB,cAAc,IAAI,IAAI,CAKrC;AAID;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CASjF;AAED,mFAAmF;AACnF,wBAAgB,uCAAuC,IAAI,IAAI,CAE9D;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,wDAAwD;IACxD,cAAc,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,yEAAyE;IACzE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAInD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAmBrE;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,mBAAmB,GAC3B;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAiD5C;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,eAAe,EACvB,OAAO,GAAE,mBAAwB,GAChC;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CA6D5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,mBAAmB,GAC3B,kBAAkB,CA6BpB"}
@@ -0,0 +1,256 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import * as os from 'os';
4
+ import * as fs from 'fs';
5
+ import * as path from 'path';
6
+ import { randomBytes } from 'crypto';
7
+ import { FileLogger } from './logger.js';
8
+ import { ContainmentTypes, ExperimentalBackends, LegacyContainmentAliases } from './types.js';
9
+ import { findWxcExecutable, findLxcExecutable, findSeatbeltExecutable, getPlatformSupport } from './platform.js';
10
+ import { diagLog } from './diagnostic.js';
11
+ /** SDK version read from package.json at module load time. */
12
+ export const SDK_VERSION = (() => {
13
+ try {
14
+ const pkgPath = require.resolve('@microsoft/mxc-sdk/package.json');
15
+ return require(pkgPath).version;
16
+ }
17
+ catch {
18
+ try {
19
+ return require(path.resolve(__dirname, '..', 'package.json')).version;
20
+ }
21
+ catch {
22
+ return 'unknown';
23
+ }
24
+ }
25
+ })();
26
+ let sdkVersionLogged = false;
27
+ /** Log the SDK version to the diagnostic console (once per process). */
28
+ export function diagLogVersion() {
29
+ if (!sdkVersionLogged) {
30
+ sdkVersionLogged = true;
31
+ diagLog(`mxc-sdk v${SDK_VERSION} (PID ${process.pid})`);
32
+ }
33
+ }
34
+ const legacyContainmentWarned = new Set();
35
+ /**
36
+ * Emit a one-shot deprecation hint via the diagnostic console when a caller
37
+ * uses a legacy containment wire value. Dedup'd per legacy value per process
38
+ * so the message doesn't flood the diag stream on repeated spawns.
39
+ *
40
+ * Exposed for tests so the latch can be reset between describes.
41
+ */
42
+ export function warnLegacyContainmentOnce(legacy, canonical) {
43
+ if (!legacyContainmentWarned.has(legacy)) {
44
+ legacyContainmentWarned.add(legacy);
45
+ diagLog(`Containment value '${legacy}' is deprecated; use '${canonical}' instead. ` +
46
+ `The legacy spelling is accepted via a backward-compatibility alias and may be ` +
47
+ `removed in a future SDK release.`);
48
+ }
49
+ }
50
+ /** @internal Reset the legacy-containment dedup latch. Intended for unit tests. */
51
+ export function _resetLegacyContainmentWarnedForTesting() {
52
+ legacyContainmentWarned.clear();
53
+ }
54
+ /**
55
+ * Generate a timestamped log file path in the given directory.
56
+ */
57
+ export function makeLogFilePath(dir) {
58
+ const ts = new Date().toISOString().replace(/[:.]/g, '-').replace(/Z$/, '');
59
+ const suffix = randomBytes(3).toString('hex');
60
+ return path.join(dir, `mxc-diag-${ts}-${suffix}.log`);
61
+ }
62
+ /**
63
+ * Apply Linux network-policy defaults to a `ContainerConfig`.
64
+ *
65
+ * Linux enforces per-host filtering in one of two ways:
66
+ * 1. **iptables firewall** (`enforcementMode: 'firewall'`) — LXC's
67
+ * privileged enforcement path. Requires root / CAP_NET_ADMIN.
68
+ * 2. **Cooperative HTTP proxy** (`network.proxy` set) — Bubblewrap's
69
+ * unprivileged enforcement path. The proxy applies the host policy
70
+ * for cooperating HTTP clients; raw-socket clients bypass it.
71
+ *
72
+ * This helper auto-promotes `enforcementMode` to `'firewall'` when host
73
+ * lists are present without a proxy — without it, the parser would leave
74
+ * the mode unset and the runtime would silently ignore `allowedHosts` /
75
+ * `blockedHosts`.
76
+ *
77
+ * If the caller explicitly passes `enforcementMode: 'capabilities'` we
78
+ * warn: `'capabilities'` is a Windows/AppContainer concept (a token
79
+ * capability mask) and has no Linux equivalent — the Linux runner will
80
+ * not enforce anything and the field is silently dropped.
81
+ *
82
+ * Shared between the explicit `'bubblewrap'` / `'lxc'` builders and the
83
+ * abstract `'process'` branch on Linux (which resolves to Bubblewrap
84
+ * server-side).
85
+ *
86
+ * NOTE: when `network.proxy` is configured on Bubblewrap, host filtering
87
+ * is enforced at the proxy layer (unprivileged, no CAP_NET_ADMIN). The
88
+ * Rust config parser explicitly rejects `bubblewrap + proxy + firewall`
89
+ * since the iptables path requires privilege the bwrap backend
90
+ * deliberately avoids. Callers in that mode must leave enforcementMode
91
+ * at its default.
92
+ */
93
+ export function applyLinuxNetworkPolicy(config) {
94
+ if (!config.network) {
95
+ return;
96
+ }
97
+ if (config.network.enforcementMode === 'capabilities') {
98
+ console.warn("mxc-sdk: network.enforcementMode='capabilities' has no effect on Linux " +
99
+ "(it is a Windows AppContainer / ProcessContainer concept). The Linux " +
100
+ "runner will not enforce host filtering via capabilities. Use the " +
101
+ "default mode (auto-promotes to 'firewall' for LXC, or use network.proxy " +
102
+ "for unprivileged Bubblewrap enforcement).");
103
+ }
104
+ const hasProxy = !!config.network.proxy;
105
+ const hasHostRules = !!(config.network.allowedHosts?.length || config.network.blockedHosts?.length);
106
+ if (hasHostRules && !hasProxy) {
107
+ config.network.enforcementMode = 'firewall';
108
+ }
109
+ }
110
+ /**
111
+ * Resolves the executor binary and builds the common CLI arguments for any
112
+ * MXC request envelope (one-shot or state-aware). Performs platform support
113
+ * and binary-presence checks; does not validate envelope contents — callers
114
+ * apply request-specific validation before delegating to this helper.
115
+ */
116
+ export function resolveBinaryAndCommonArgs(envelopeJson, options) {
117
+ const platformSupport = getPlatformSupport();
118
+ if (!platformSupport.isSupported && !options.skipPlatformCheck) {
119
+ throw new Error(`MXC is not supported on this platform: ${platformSupport.reason}`);
120
+ }
121
+ const platform = os.platform();
122
+ let executablePath;
123
+ if (options.executablePath) {
124
+ if (!fs.existsSync(options.executablePath)) {
125
+ throw new Error(`File not found: ${options.executablePath}`);
126
+ }
127
+ executablePath = options.executablePath;
128
+ }
129
+ else if (platform === 'linux') {
130
+ const p = findLxcExecutable();
131
+ if (!p) {
132
+ throw new Error('lxc-exec not found. Ensure it is built and available in a standard location.');
133
+ }
134
+ executablePath = p;
135
+ }
136
+ else if (platform === 'darwin') {
137
+ const p = findSeatbeltExecutable();
138
+ if (!p) {
139
+ throw new Error('mxc-exec-mac not found. Ensure it is built and available in a standard location.');
140
+ }
141
+ executablePath = p;
142
+ }
143
+ else {
144
+ const p = findWxcExecutable();
145
+ if (!p) {
146
+ throw new Error('wxc-exec.exe not found. Set options.executablePath or ensure it exists in a standard location.');
147
+ }
148
+ executablePath = p;
149
+ }
150
+ const args = [];
151
+ const envelopeBase64 = Buffer.from(envelopeJson, 'utf-8').toString('base64');
152
+ args.push('--config-base64', envelopeBase64);
153
+ if (options.dryRun)
154
+ args.push('--dry-run');
155
+ if (options.debug)
156
+ args.push('--debug');
157
+ if (options.experimental)
158
+ args.push('--experimental');
159
+ return { executablePath, args };
160
+ }
161
+ /**
162
+ * Resolves the executable path and builds CLI arguments for a one-shot
163
+ * sandbox invocation. Validates one-shot-specific invariants (commandLine
164
+ * required, experimental gating, containment-vs-platform compatibility)
165
+ * before delegating to the shared `resolveBinaryAndCommonArgs`.
166
+ */
167
+ export function resolveExecutableAndArgs(config, options = {}) {
168
+ if (!config.process?.commandLine) {
169
+ throw new Error('script is required. Set process.commandLine on the config or pass a script to spawnSandbox().');
170
+ }
171
+ // Resolve deprecated wire values (e.g. "appcontainer" → "processcontainer",
172
+ // "macos_sandbox" → "seatbelt") once, and drive every containment check
173
+ // from the resolved value. The native binary accepts both spellings via
174
+ // serde aliases, so the wire payload is forwarded unchanged below — this
175
+ // resolution is purely for SDK-side validation. Without it, legacy values
176
+ // bypass the experimental-mode gate (because they are not in
177
+ // ExperimentalBackends under their alias) and produce a confusing
178
+ // "not available on this platform" error instead.
179
+ const rawContainment = config.containment;
180
+ const effectiveContainment = rawContainment
181
+ ? (LegacyContainmentAliases[rawContainment] ?? rawContainment)
182
+ : undefined;
183
+ if (rawContainment && effectiveContainment !== rawContainment) {
184
+ warnLegacyContainmentOnce(rawContainment, effectiveContainment);
185
+ }
186
+ // Check experimental mode before anything else so the caller gets a clear
187
+ // message about the missing flag rather than a platform/binary error.
188
+ if (effectiveContainment && ExperimentalBackends.includes(effectiveContainment) && !options.experimental) {
189
+ throw new Error(`'${rawContainment}' containment requires experimental mode. Set 'experimental: true' in SandboxSpawnOptions.`);
190
+ }
191
+ const platformSupport = getPlatformSupport();
192
+ const isExperimental = !!effectiveContainment &&
193
+ ExperimentalBackends.includes(effectiveContainment);
194
+ if (!platformSupport.isSupported && !isExperimental && !options.skipPlatformCheck) {
195
+ throw new Error(`MXC is not supported on this platform: ${platformSupport.reason}`);
196
+ }
197
+ // Hard platform requirement: microvm needs WHP/Hyper-V on Windows. This guard
198
+ // runs even when `skipPlatformCheck` is set because it's not a build-version
199
+ // check — the backend literally cannot run on non-Windows hosts.
200
+ if (effectiveContainment === 'microvm' && os.platform() !== 'win32') {
201
+ throw new Error('The microvm backend is only supported on Windows (requires WHP/Hyper-V).');
202
+ }
203
+ // Validate containment against platform
204
+ if (effectiveContainment && !options.skipPlatformCheck) {
205
+ // Abstract intents (process, microvm) are resolved by the native binary
206
+ // at run time, so the SDK accepts them without checking against the
207
+ // host's concrete backend list.
208
+ const isIntent = ContainmentTypes.includes(effectiveContainment);
209
+ const isAvailable = platformSupport.availableMethods.includes(effectiveContainment);
210
+ if (!isIntent && !isExperimental && !isAvailable) {
211
+ throw new Error(`Containment backend '${rawContainment}' is not available on this platform. ` +
212
+ `Available methods: ${platformSupport.availableMethods.join(', ')}`);
213
+ }
214
+ }
215
+ return resolveBinaryAndCommonArgs(JSON.stringify(config), options);
216
+ }
217
+ /**
218
+ * Sets up logging and resolves the executable path + args.
219
+ * Shared by both PTY and non-PTY spawn paths.
220
+ *
221
+ * If resolveExecutableAndArgs throws, any open logger is closed
222
+ * before the error propagates.
223
+ *
224
+ * @param config - The container configuration
225
+ * @param options - Spawn options (debug, logDir, etc.)
226
+ */
227
+ export function prepareSpawn(config, options) {
228
+ let logger;
229
+ let logFile;
230
+ const logDir = options.logDir ?? (options.debug ? path.join(os.tmpdir(), 'mxc-logs') : undefined);
231
+ if (logDir) {
232
+ logFile = makeLogFilePath(logDir);
233
+ logger = new FileLogger(logFile);
234
+ logger.log('info', 'mxc.log.created', { logFile });
235
+ }
236
+ const startTime = Date.now();
237
+ logger?.log('info', 'mxc.spawn.start', {
238
+ platform: os.platform(),
239
+ arch: os.arch(),
240
+ containment: config.containment,
241
+ });
242
+ try {
243
+ const { executablePath, args } = resolveExecutableAndArgs(config, options);
244
+ // Pass the SDK log file to wxc-exec so Rust-side diagnostics go to the same file.
245
+ if (logFile) {
246
+ args.push('--log-file', logFile);
247
+ }
248
+ logger?.log('info', 'mxc.binary.resolved', { resolved: !!executablePath });
249
+ return { executablePath, args, logger, logFile, startTime };
250
+ }
251
+ catch (err) {
252
+ logger?.close();
253
+ throw err;
254
+ }
255
+ }
256
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,U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