@openclaw/mxc-sandbox 2026.9.5 → 2026.9.7

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 (358) hide show
  1. package/assets/icon.png +0 -0
  2. package/dist/index.js +49 -139
  3. package/node_modules/zod/README.md +2 -2
  4. package/node_modules/zod/compile.cjs +19 -0
  5. package/node_modules/zod/index.cjs +19 -0
  6. package/node_modules/zod/locales/index.cjs +19 -0
  7. package/node_modules/zod/mini/index.cjs +19 -0
  8. package/node_modules/zod/package.json +8 -7
  9. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  10. package/node_modules/zod/src/v4/classic/external.ts +2 -0
  11. package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
  12. package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
  13. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
  14. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
  15. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  16. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
  17. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
  18. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
  19. package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
  20. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
  21. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  22. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
  23. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
  24. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
  25. package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
  26. package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
  27. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
  28. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  29. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  30. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
  31. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  32. package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
  33. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
  34. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
  35. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
  36. package/node_modules/zod/src/v4/core/api.ts +44 -28
  37. package/node_modules/zod/src/v4/core/checks.ts +62 -102
  38. package/node_modules/zod/src/v4/core/compile.ts +218 -93
  39. package/node_modules/zod/src/v4/core/core.ts +1 -3
  40. package/node_modules/zod/src/v4/core/doc.ts +6 -2
  41. package/node_modules/zod/src/v4/core/errors.ts +3 -6
  42. package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
  43. package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
  44. package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
  45. package/node_modules/zod/src/v4/core/parse.ts +37 -16
  46. package/node_modules/zod/src/v4/core/regexes.ts +14 -4
  47. package/node_modules/zod/src/v4/core/schemas.ts +296 -132
  48. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  49. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
  50. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  51. package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
  52. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  53. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  54. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  55. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  56. package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
  57. package/node_modules/zod/src/v4/core/util.ts +218 -147
  58. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  59. package/node_modules/zod/src/v4/locales/ar.ts +2 -0
  60. package/node_modules/zod/src/v4/locales/az.ts +2 -0
  61. package/node_modules/zod/src/v4/locales/be.ts +2 -0
  62. package/node_modules/zod/src/v4/locales/bg.ts +2 -0
  63. package/node_modules/zod/src/v4/locales/bn.ts +2 -0
  64. package/node_modules/zod/src/v4/locales/ca.ts +2 -0
  65. package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
  66. package/node_modules/zod/src/v4/locales/cs.ts +2 -0
  67. package/node_modules/zod/src/v4/locales/da.ts +2 -0
  68. package/node_modules/zod/src/v4/locales/de.ts +2 -0
  69. package/node_modules/zod/src/v4/locales/el.ts +2 -0
  70. package/node_modules/zod/src/v4/locales/en.ts +2 -0
  71. package/node_modules/zod/src/v4/locales/eo.ts +2 -0
  72. package/node_modules/zod/src/v4/locales/es.ts +2 -0
  73. package/node_modules/zod/src/v4/locales/fa.ts +2 -0
  74. package/node_modules/zod/src/v4/locales/fi.ts +2 -0
  75. package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
  76. package/node_modules/zod/src/v4/locales/fr.ts +2 -0
  77. package/node_modules/zod/src/v4/locales/gu.ts +2 -0
  78. package/node_modules/zod/src/v4/locales/he.ts +2 -0
  79. package/node_modules/zod/src/v4/locales/hi.ts +2 -0
  80. package/node_modules/zod/src/v4/locales/hr.ts +2 -0
  81. package/node_modules/zod/src/v4/locales/hu.ts +2 -0
  82. package/node_modules/zod/src/v4/locales/hy.ts +2 -0
  83. package/node_modules/zod/src/v4/locales/id.ts +2 -0
  84. package/node_modules/zod/src/v4/locales/index.ts +1 -0
  85. package/node_modules/zod/src/v4/locales/is.ts +2 -0
  86. package/node_modules/zod/src/v4/locales/it.ts +2 -0
  87. package/node_modules/zod/src/v4/locales/ja.ts +2 -0
  88. package/node_modules/zod/src/v4/locales/ka.ts +2 -0
  89. package/node_modules/zod/src/v4/locales/km.ts +2 -0
  90. package/node_modules/zod/src/v4/locales/kn.ts +2 -0
  91. package/node_modules/zod/src/v4/locales/ko.ts +2 -0
  92. package/node_modules/zod/src/v4/locales/lt.ts +2 -0
  93. package/node_modules/zod/src/v4/locales/mk.ts +2 -0
  94. package/node_modules/zod/src/v4/locales/ms.ts +2 -0
  95. package/node_modules/zod/src/v4/locales/ne.ts +2 -0
  96. package/node_modules/zod/src/v4/locales/nl.ts +2 -0
  97. package/node_modules/zod/src/v4/locales/nn.ts +2 -0
  98. package/node_modules/zod/src/v4/locales/no.ts +2 -0
  99. package/node_modules/zod/src/v4/locales/ota.ts +2 -0
  100. package/node_modules/zod/src/v4/locales/pl.ts +2 -0
  101. package/node_modules/zod/src/v4/locales/ps.ts +2 -0
  102. package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
  103. package/node_modules/zod/src/v4/locales/pt.ts +2 -0
  104. package/node_modules/zod/src/v4/locales/ro.ts +2 -0
  105. package/node_modules/zod/src/v4/locales/ru.ts +2 -0
  106. package/node_modules/zod/src/v4/locales/sk.ts +2 -0
  107. package/node_modules/zod/src/v4/locales/sl.ts +2 -0
  108. package/node_modules/zod/src/v4/locales/sv.ts +2 -0
  109. package/node_modules/zod/src/v4/locales/ta.ts +2 -0
  110. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  111. package/node_modules/zod/src/v4/locales/th.ts +2 -0
  112. package/node_modules/zod/src/v4/locales/tk.ts +2 -0
  113. package/node_modules/zod/src/v4/locales/tr.ts +2 -0
  114. package/node_modules/zod/src/v4/locales/uk.ts +2 -0
  115. package/node_modules/zod/src/v4/locales/ur.ts +2 -0
  116. package/node_modules/zod/src/v4/locales/uz.ts +2 -0
  117. package/node_modules/zod/src/v4/locales/vi.ts +2 -0
  118. package/node_modules/zod/src/v4/locales/yo.ts +2 -0
  119. package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
  120. package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
  121. package/node_modules/zod/src/v4/mini/external.ts +2 -0
  122. package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
  123. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
  124. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  125. package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
  126. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  127. package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
  128. package/node_modules/zod/v3/ZodError.cjs +19 -0
  129. package/node_modules/zod/v3/errors.cjs +19 -0
  130. package/node_modules/zod/v3/external.cjs +19 -0
  131. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  132. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  133. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  134. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  135. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  136. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  137. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  138. package/node_modules/zod/v3/index.cjs +19 -0
  139. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  140. package/node_modules/zod/v3/types.cjs +19 -0
  141. package/node_modules/zod/v4/classic/checks.cjs +19 -0
  142. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  143. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  144. package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
  145. package/node_modules/zod/v4/classic/errors.cjs +19 -0
  146. package/node_modules/zod/v4/classic/external.cjs +22 -1
  147. package/node_modules/zod/v4/classic/external.d.cts +1 -1
  148. package/node_modules/zod/v4/classic/external.d.ts +1 -1
  149. package/node_modules/zod/v4/classic/external.js +1 -1
  150. package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
  151. package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
  152. package/node_modules/zod/v4/classic/in-out.cjs +19 -0
  153. package/node_modules/zod/v4/classic/index.cjs +19 -0
  154. package/node_modules/zod/v4/classic/iso.cjs +19 -0
  155. package/node_modules/zod/v4/classic/parse.cjs +19 -0
  156. package/node_modules/zod/v4/classic/schemas.cjs +100 -35
  157. package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
  158. package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
  159. package/node_modules/zod/v4/classic/schemas.js +77 -33
  160. package/node_modules/zod/v4/core/api.cjs +45 -22
  161. package/node_modules/zod/v4/core/api.d.cts +12 -6
  162. package/node_modules/zod/v4/core/api.d.ts +12 -6
  163. package/node_modules/zod/v4/core/api.js +25 -22
  164. package/node_modules/zod/v4/core/checks.cjs +51 -97
  165. package/node_modules/zod/v4/core/checks.d.cts +17 -1
  166. package/node_modules/zod/v4/core/checks.d.ts +17 -1
  167. package/node_modules/zod/v4/core/checks.js +31 -96
  168. package/node_modules/zod/v4/core/compile.cjs +173 -78
  169. package/node_modules/zod/v4/core/compile.d.cts +18 -4
  170. package/node_modules/zod/v4/core/compile.d.ts +18 -4
  171. package/node_modules/zod/v4/core/compile.js +154 -79
  172. package/node_modules/zod/v4/core/core.cjs +20 -1
  173. package/node_modules/zod/v4/core/core.js +1 -1
  174. package/node_modules/zod/v4/core/doc.cjs +26 -2
  175. package/node_modules/zod/v4/core/doc.js +7 -2
  176. package/node_modules/zod/v4/core/errors.cjs +21 -5
  177. package/node_modules/zod/v4/core/errors.js +2 -5
  178. package/node_modules/zod/v4/core/index.cjs +19 -0
  179. package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
  180. package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
  181. package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
  182. package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
  183. package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
  184. package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
  185. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  186. package/node_modules/zod/v4/core/memoizer.cjs +111 -23
  187. package/node_modules/zod/v4/core/memoizer.js +69 -23
  188. package/node_modules/zod/v4/core/parse.cjs +56 -16
  189. package/node_modules/zod/v4/core/parse.js +37 -16
  190. package/node_modules/zod/v4/core/regexes.cjs +31 -6
  191. package/node_modules/zod/v4/core/regexes.d.cts +3 -0
  192. package/node_modules/zod/v4/core/regexes.d.ts +3 -0
  193. package/node_modules/zod/v4/core/regexes.js +10 -4
  194. package/node_modules/zod/v4/core/registries.cjs +19 -0
  195. package/node_modules/zod/v4/core/schemas.cjs +302 -114
  196. package/node_modules/zod/v4/core/schemas.d.cts +28 -8
  197. package/node_modules/zod/v4/core/schemas.d.ts +28 -8
  198. package/node_modules/zod/v4/core/schemas.js +279 -113
  199. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  200. package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
  201. package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
  202. package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
  203. package/node_modules/zod/v4/core/to-json-schema.js +7 -6
  204. package/node_modules/zod/v4/core/util.cjs +177 -143
  205. package/node_modules/zod/v4/core/util.d.cts +25 -4
  206. package/node_modules/zod/v4/core/util.d.ts +25 -4
  207. package/node_modules/zod/v4/core/util.js +156 -143
  208. package/node_modules/zod/v4/core/versions.cjs +21 -2
  209. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  210. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  211. package/node_modules/zod/v4/core/versions.js +2 -2
  212. package/node_modules/zod/v4/core/visit.cjs +19 -0
  213. package/node_modules/zod/v4/index.cjs +19 -0
  214. package/node_modules/zod/v4/locales/ar.cjs +2 -0
  215. package/node_modules/zod/v4/locales/ar.js +2 -0
  216. package/node_modules/zod/v4/locales/az.cjs +2 -0
  217. package/node_modules/zod/v4/locales/az.js +2 -0
  218. package/node_modules/zod/v4/locales/be.cjs +2 -0
  219. package/node_modules/zod/v4/locales/be.js +2 -0
  220. package/node_modules/zod/v4/locales/bg.cjs +2 -0
  221. package/node_modules/zod/v4/locales/bg.js +2 -0
  222. package/node_modules/zod/v4/locales/bn.cjs +2 -0
  223. package/node_modules/zod/v4/locales/bn.js +2 -0
  224. package/node_modules/zod/v4/locales/ca.cjs +2 -0
  225. package/node_modules/zod/v4/locales/ca.js +2 -0
  226. package/node_modules/zod/v4/locales/ckb.cjs +2 -0
  227. package/node_modules/zod/v4/locales/ckb.js +2 -0
  228. package/node_modules/zod/v4/locales/cs.cjs +2 -0
  229. package/node_modules/zod/v4/locales/cs.js +2 -0
  230. package/node_modules/zod/v4/locales/da.cjs +2 -0
  231. package/node_modules/zod/v4/locales/da.js +2 -0
  232. package/node_modules/zod/v4/locales/de.cjs +2 -0
  233. package/node_modules/zod/v4/locales/de.js +2 -0
  234. package/node_modules/zod/v4/locales/el.cjs +2 -0
  235. package/node_modules/zod/v4/locales/el.js +2 -0
  236. package/node_modules/zod/v4/locales/en.cjs +2 -0
  237. package/node_modules/zod/v4/locales/en.js +2 -0
  238. package/node_modules/zod/v4/locales/eo.cjs +2 -0
  239. package/node_modules/zod/v4/locales/eo.js +2 -0
  240. package/node_modules/zod/v4/locales/es.cjs +2 -0
  241. package/node_modules/zod/v4/locales/es.js +2 -0
  242. package/node_modules/zod/v4/locales/fa.cjs +2 -0
  243. package/node_modules/zod/v4/locales/fa.js +2 -0
  244. package/node_modules/zod/v4/locales/fi.cjs +2 -0
  245. package/node_modules/zod/v4/locales/fi.js +2 -0
  246. package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
  247. package/node_modules/zod/v4/locales/fr-CA.js +2 -0
  248. package/node_modules/zod/v4/locales/fr.cjs +2 -0
  249. package/node_modules/zod/v4/locales/fr.js +2 -0
  250. package/node_modules/zod/v4/locales/gu.cjs +2 -0
  251. package/node_modules/zod/v4/locales/gu.js +2 -0
  252. package/node_modules/zod/v4/locales/he.cjs +2 -0
  253. package/node_modules/zod/v4/locales/he.js +2 -0
  254. package/node_modules/zod/v4/locales/hi.cjs +2 -0
  255. package/node_modules/zod/v4/locales/hi.js +2 -0
  256. package/node_modules/zod/v4/locales/hr.cjs +2 -0
  257. package/node_modules/zod/v4/locales/hr.js +2 -0
  258. package/node_modules/zod/v4/locales/hu.cjs +2 -0
  259. package/node_modules/zod/v4/locales/hu.js +2 -0
  260. package/node_modules/zod/v4/locales/hy.cjs +2 -0
  261. package/node_modules/zod/v4/locales/hy.js +2 -0
  262. package/node_modules/zod/v4/locales/id.cjs +2 -0
  263. package/node_modules/zod/v4/locales/id.js +2 -0
  264. package/node_modules/zod/v4/locales/index.cjs +22 -1
  265. package/node_modules/zod/v4/locales/index.d.cts +1 -0
  266. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  267. package/node_modules/zod/v4/locales/index.js +1 -0
  268. package/node_modules/zod/v4/locales/is.cjs +2 -0
  269. package/node_modules/zod/v4/locales/is.js +2 -0
  270. package/node_modules/zod/v4/locales/it.cjs +2 -0
  271. package/node_modules/zod/v4/locales/it.js +2 -0
  272. package/node_modules/zod/v4/locales/ja.cjs +2 -0
  273. package/node_modules/zod/v4/locales/ja.js +2 -0
  274. package/node_modules/zod/v4/locales/ka.cjs +2 -0
  275. package/node_modules/zod/v4/locales/ka.js +2 -0
  276. package/node_modules/zod/v4/locales/km.cjs +2 -0
  277. package/node_modules/zod/v4/locales/km.js +2 -0
  278. package/node_modules/zod/v4/locales/kn.cjs +2 -0
  279. package/node_modules/zod/v4/locales/kn.js +2 -0
  280. package/node_modules/zod/v4/locales/ko.cjs +2 -0
  281. package/node_modules/zod/v4/locales/ko.js +2 -0
  282. package/node_modules/zod/v4/locales/lt.cjs +2 -0
  283. package/node_modules/zod/v4/locales/lt.js +2 -0
  284. package/node_modules/zod/v4/locales/mk.cjs +2 -0
  285. package/node_modules/zod/v4/locales/mk.js +2 -0
  286. package/node_modules/zod/v4/locales/ms.cjs +2 -0
  287. package/node_modules/zod/v4/locales/ms.js +2 -0
  288. package/node_modules/zod/v4/locales/ne.cjs +2 -0
  289. package/node_modules/zod/v4/locales/ne.js +2 -0
  290. package/node_modules/zod/v4/locales/nl.cjs +2 -0
  291. package/node_modules/zod/v4/locales/nl.js +2 -0
  292. package/node_modules/zod/v4/locales/nn.cjs +2 -0
  293. package/node_modules/zod/v4/locales/nn.js +2 -0
  294. package/node_modules/zod/v4/locales/no.cjs +2 -0
  295. package/node_modules/zod/v4/locales/no.js +2 -0
  296. package/node_modules/zod/v4/locales/ota.cjs +2 -0
  297. package/node_modules/zod/v4/locales/ota.js +2 -0
  298. package/node_modules/zod/v4/locales/pl.cjs +2 -0
  299. package/node_modules/zod/v4/locales/pl.js +2 -0
  300. package/node_modules/zod/v4/locales/ps.cjs +2 -0
  301. package/node_modules/zod/v4/locales/ps.js +2 -0
  302. package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
  303. package/node_modules/zod/v4/locales/pt-BR.js +2 -0
  304. package/node_modules/zod/v4/locales/pt.cjs +2 -0
  305. package/node_modules/zod/v4/locales/pt.js +2 -0
  306. package/node_modules/zod/v4/locales/ro.cjs +2 -0
  307. package/node_modules/zod/v4/locales/ro.js +2 -0
  308. package/node_modules/zod/v4/locales/ru.cjs +2 -0
  309. package/node_modules/zod/v4/locales/ru.js +2 -0
  310. package/node_modules/zod/v4/locales/sk.cjs +2 -0
  311. package/node_modules/zod/v4/locales/sk.js +2 -0
  312. package/node_modules/zod/v4/locales/sl.cjs +2 -0
  313. package/node_modules/zod/v4/locales/sl.js +2 -0
  314. package/node_modules/zod/v4/locales/sv.cjs +2 -0
  315. package/node_modules/zod/v4/locales/sv.js +2 -0
  316. package/node_modules/zod/v4/locales/ta.cjs +2 -0
  317. package/node_modules/zod/v4/locales/ta.js +2 -0
  318. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  319. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  320. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  321. package/node_modules/zod/v4/locales/tg.js +117 -0
  322. package/node_modules/zod/v4/locales/th.cjs +2 -0
  323. package/node_modules/zod/v4/locales/th.js +2 -0
  324. package/node_modules/zod/v4/locales/tk.cjs +2 -0
  325. package/node_modules/zod/v4/locales/tk.js +2 -0
  326. package/node_modules/zod/v4/locales/tr.cjs +2 -0
  327. package/node_modules/zod/v4/locales/tr.js +2 -0
  328. package/node_modules/zod/v4/locales/uk.cjs +2 -0
  329. package/node_modules/zod/v4/locales/uk.js +2 -0
  330. package/node_modules/zod/v4/locales/ur.cjs +2 -0
  331. package/node_modules/zod/v4/locales/ur.js +2 -0
  332. package/node_modules/zod/v4/locales/uz.cjs +2 -0
  333. package/node_modules/zod/v4/locales/uz.js +2 -0
  334. package/node_modules/zod/v4/locales/vi.cjs +2 -0
  335. package/node_modules/zod/v4/locales/vi.js +2 -0
  336. package/node_modules/zod/v4/locales/yo.cjs +2 -0
  337. package/node_modules/zod/v4/locales/yo.js +2 -0
  338. package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
  339. package/node_modules/zod/v4/locales/zh-CN.js +2 -0
  340. package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
  341. package/node_modules/zod/v4/locales/zh-TW.js +2 -0
  342. package/node_modules/zod/v4/mini/checks.cjs +19 -0
  343. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  344. package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
  345. package/node_modules/zod/v4/mini/external.cjs +22 -1
  346. package/node_modules/zod/v4/mini/external.d.cts +1 -1
  347. package/node_modules/zod/v4/mini/external.d.ts +1 -1
  348. package/node_modules/zod/v4/mini/external.js +1 -1
  349. package/node_modules/zod/v4/mini/in-out.cjs +19 -0
  350. package/node_modules/zod/v4/mini/index.cjs +19 -0
  351. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  352. package/node_modules/zod/v4/mini/parse.cjs +19 -0
  353. package/node_modules/zod/v4/mini/schemas.cjs +44 -8
  354. package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
  355. package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
  356. package/node_modules/zod/v4/mini/schemas.js +21 -6
  357. package/node_modules/zod/v4-mini/index.cjs +19 -0
  358. package/package.json +5 -5
package/assets/icon.png CHANGED
Binary file
package/dist/index.js CHANGED
@@ -10,11 +10,11 @@ import { createWritableRenameTargetResolver, registerSandboxBackend, resolvePref
10
10
  import * as fs$1 from "node:fs";
11
11
  import fs, { lstatSync, mkdtempSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
12
12
  import { createHash, randomBytes } from "node:crypto";
13
- import { isPathInside, removePathWithinRoot, root } from "openclaw/plugin-sdk/file-access-runtime";
13
+ import { extractErrorCode, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
14
+ import { isPathInside, removePathWithinRoot, resolvePathPrefixSync, root } from "openclaw/plugin-sdk/file-access-runtime";
14
15
  import { runCommandBuffered } from "openclaw/plugin-sdk/process-runtime";
15
16
  import { FsSafeError } from "openclaw/plugin-sdk/security-runtime";
16
17
  import { fileURLToPath } from "node:url";
17
- import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
18
18
  import { execFileSync } from "node:child_process";
19
19
  //#region extensions/mxc/src/config.ts
20
20
  const MXC_CONTAINMENTS = ["process", "processcontainer"];
@@ -102,23 +102,6 @@ function resolveSdkBinDir() {
102
102
  } catch {}
103
103
  return null;
104
104
  }
105
- function buildSearchPaths(binary, sdkBinDir) {
106
- return sdkBinDir ? [path$1.join(sdkBinDir, binary)] : [];
107
- }
108
- /** SDK-owned search paths for wxc-exec on Windows. */
109
- function wxcSearchPaths() {
110
- return buildSearchPaths("wxc-exec.exe", resolveSdkBinDir());
111
- }
112
- function findBinary(searchPaths) {
113
- for (const p of searchPaths) if (fs$1.existsSync(p)) return p;
114
- return null;
115
- }
116
- /**
117
- * Resolves the MXC executor binary path.
118
- * @param configOverride Optional user-configured path override.
119
- * @returns Absolute path to the binary.
120
- * @throws If the binary cannot be found.
121
- */
122
105
  function resolveMxcBinaryPath(configOverride) {
123
106
  if (configOverride) {
124
107
  const resolvedOverride = path$1.win32.isAbsolute(configOverride) ? configOverride : path$1.resolve(configOverride);
@@ -126,9 +109,10 @@ function resolveMxcBinaryPath(configOverride) {
126
109
  return resolvedOverride;
127
110
  }
128
111
  const binaryName = "wxc-exec.exe";
129
- const found = findBinary(wxcSearchPaths());
130
- if (!found) throw new Error(`MXC executor "${binaryName}" not found. Install @microsoft/mxc-sdk or set mxcBinaryPath in config.`);
131
- return found;
112
+ const sdkBinDir = resolveSdkBinDir();
113
+ const binaryPath = sdkBinDir ? path$1.join(sdkBinDir, binaryName) : void 0;
114
+ if (!binaryPath || !fs$1.existsSync(binaryPath)) throw new Error(`MXC executor "${binaryName}" not found. Install @microsoft/mxc-sdk or set mxcBinaryPath in config.`);
115
+ return binaryPath;
132
116
  }
133
117
  //#endregion
134
118
  //#region extensions/mxc/src/path-comparison.ts
@@ -192,7 +176,7 @@ var MxcFsBridge = class {
192
176
  this.sandbox = sandbox;
193
177
  this.resolveRenameTargets = createWritableRenameTargetResolver((target) => this.resolveTarget(target), (target, action) => this.ensureWritable(target, action));
194
178
  this.defaultContainerRoot = path.resolve(sandbox.containerWorkdir);
195
- this.protectedSkillMounts = resolveMxcProtectedSkillMounts$1(sandbox);
179
+ this.protectedSkillMounts = resolveMxcProtectedSkillMounts(sandbox);
196
180
  this.workspaceMounts = resolveWorkspaceMounts(sandbox);
197
181
  }
198
182
  resolvePath(params) {
@@ -306,14 +290,11 @@ function resolveWorkspaceMounts(sandbox) {
306
290
  const containerRoot = path.resolve(sandbox.containerWorkdir);
307
291
  const workspaceDir = path.resolve(sandbox.workspaceDir);
308
292
  const agentWorkspaceDir = path.resolve(sandbox.agentWorkspaceDir);
309
- const mounts = sandbox.workspaceAccess === "rw" ? [{
310
- hostRoot: agentWorkspaceDir,
311
- containerRoot,
312
- writable: true
313
- }] : [{
314
- hostRoot: workspaceDir,
293
+ const writable = sandbox.workspaceAccess === "rw";
294
+ const mounts = [{
295
+ hostRoot: writable ? agentWorkspaceDir : workspaceDir,
315
296
  containerRoot,
316
- writable: false
297
+ writable
317
298
  }];
318
299
  if (sandbox.workspaceAccess === "ro" && normalizeMxcPathForComparison(agentWorkspaceDir) !== normalizeMxcPathForComparison(workspaceDir)) mounts.push({
319
300
  hostRoot: agentWorkspaceDir,
@@ -322,20 +303,17 @@ function resolveWorkspaceMounts(sandbox) {
322
303
  });
323
304
  return dedupeAndSortMounts(mounts);
324
305
  }
325
- function resolveMxcProtectedSkillMounts$1(sandbox) {
306
+ function resolveMxcProtectedSkillMounts(sandbox) {
326
307
  return dedupeAndSortMounts(resolveMxcReadOnlySkillMounts({
327
308
  agentWorkspaceDir: sandbox.agentWorkspaceDir,
328
309
  skillsWorkspaceDir: sandbox.skillsWorkspaceDir,
329
310
  workdir: sandbox.containerWorkdir,
330
311
  workspaceAccess: sandbox.workspaceAccess
331
- }).map(normalizeMxcProtectedSkillMount));
332
- }
333
- function normalizeMxcProtectedSkillMount(mount) {
334
- return {
312
+ }).map((mount) => ({
335
313
  hostRoot: path.resolve(mount.hostPath),
336
314
  containerRoot: path.resolve(mount.containerPath),
337
315
  writable: false
338
- };
316
+ })));
339
317
  }
340
318
  function dedupeAndSortMounts(mounts) {
341
319
  const deduped = /* @__PURE__ */ new Map();
@@ -400,22 +378,14 @@ function resolveSandboxTempDir(env = {}) {
400
378
  }
401
379
  function resolveBaselineReadonlyPaths(env) {
402
380
  const systemRoot = firstNonBlankEnv(env.SystemRoot, env.WINDIR) ?? "C:\\Windows";
403
- return dedupeStable([
404
- firstNonBlankEnv(env.ProgramFiles, env.ProgramW6432) ?? "C:\\Program Files",
405
- firstNonBlankEnv(env["ProgramFiles(x86)"]) ?? "C:\\Program Files (x86)",
381
+ const programFiles = firstNonBlankEnv(env.ProgramFiles, env.ProgramW6432) ?? "C:\\Program Files";
382
+ const programFilesX86 = firstNonBlankEnv(env["ProgramFiles(x86)"]) ?? "C:\\Program Files (x86)";
383
+ return [.../* @__PURE__ */ new Set([
384
+ programFiles,
385
+ programFilesX86,
406
386
  win32.join(systemRoot, "System32"),
407
387
  win32.join(systemRoot, "SysWOW64")
408
- ]);
409
- }
410
- function dedupeStable(values) {
411
- const deduped = [];
412
- const seen = /* @__PURE__ */ new Set();
413
- for (const value of values) {
414
- if (seen.has(value)) continue;
415
- seen.add(value);
416
- deduped.push(value);
417
- }
418
- return deduped;
388
+ ])];
419
389
  }
420
390
  //#endregion
421
391
  //#region extensions/mxc/src/windows-command.ts
@@ -592,7 +562,7 @@ function buildMxcContainerConfig(params) {
592
562
  lifecycle: { destroyOnExit: true },
593
563
  process: {
594
564
  commandLine: buildCommandLine(params.command, params.args ?? []),
595
- cwd: resolveProcessCwd(params.workdir),
565
+ cwd: params.workdir,
596
566
  env: processEnv,
597
567
  timeout: resolveProcessTimeoutSeconds(params.config, params.baseline) * 1e3
598
568
  },
@@ -666,7 +636,7 @@ function resolveBaselineReadonlyPathSpecs(baseline, context) {
666
636
  }
667
637
  function resolveMxcProtectedSkillPolicyPaths(context) {
668
638
  const deduped = /* @__PURE__ */ new Map();
669
- for (const mount of resolveMxcProtectedSkillMounts(context)) {
639
+ for (const mount of resolveMxcReadOnlySkillMounts(context)) {
670
640
  const hostPath = path.resolve(mount.hostPath);
671
641
  deduped.set(normalizeMxcPathForComparison(hostPath), hostPath);
672
642
  const containerPath = path.resolve(mount.containerPath);
@@ -677,14 +647,6 @@ function resolveMxcProtectedSkillPolicyPaths(context) {
677
647
  function resolveProtectedSkillPolicyPathSpecs(context) {
678
648
  return resolveMxcProtectedSkillPolicyPaths(context).map((candidatePath) => optionalFilesystemPath(candidatePath));
679
649
  }
680
- function resolveMxcProtectedSkillMounts(context) {
681
- return resolveMxcReadOnlySkillMounts({
682
- agentWorkspaceDir: context.agentWorkspaceDir,
683
- skillsWorkspaceDir: context.skillsWorkspaceDir,
684
- workdir: context.workdir,
685
- workspaceAccess: context.workspaceAccess
686
- });
687
- }
688
650
  function resolveExistingFilesystemPaths(pathSpecs, accessLabel) {
689
651
  const deduped = /* @__PURE__ */ new Map();
690
652
  for (const pathSpec of pathSpecs) {
@@ -741,9 +703,6 @@ function processContainerName(runtimeId) {
741
703
  const hash = createHash("sha256").update(runtimeId).digest("hex").slice(0, 8);
742
704
  return `${runtimeId.slice(0, PROCESS_CONTAINER_NAME_MAX_LEN - hash.length - 1)}-${hash}`;
743
705
  }
744
- function resolveProcessCwd(workdir) {
745
- return workdir;
746
- }
747
706
  function resolveProcessTimeoutSeconds(config, baseline) {
748
707
  if (config.timeoutSecondsConfigured === true) return Math.min(config.timeoutSeconds, baseline.process.timeoutSeconds);
749
708
  return baseline.process.timeoutSeconds;
@@ -761,11 +720,11 @@ function hostPathExists(candidatePath) {
761
720
  statSync(candidatePath);
762
721
  return true;
763
722
  } catch (err) {
764
- if (isNodeError$2(err)) return false;
723
+ if (isNodeError$1(err)) return false;
765
724
  throw err;
766
725
  }
767
726
  }
768
- function isNodeError$2(err) {
727
+ function isNodeError$1(err) {
769
728
  return err instanceof Error && "code" in err;
770
729
  }
771
730
  //#endregion
@@ -808,31 +767,21 @@ const SandboxPolicyLayerSchema = z.object({
808
767
  process: processPolicySchema.optional()
809
768
  }).strict();
810
769
  function loadSandboxBaselinePolicy(options = {}) {
811
- const sources = [];
812
- for (const policyPath of options.policyPaths ?? []) sources.push({
813
- label: policyPath,
814
- policy: readSandboxPolicyFile(policyPath)
815
- });
816
- const merged = mergeSandboxPolicyLayers(sources);
770
+ const layers = (options.policyPaths ?? []).map(readSandboxPolicyFile);
771
+ const merged = mergeSandboxPolicyLayers(layers);
817
772
  const resolved = resolveSandboxBaseline(merged);
818
773
  return {
819
774
  ...resolved,
820
775
  process: {
821
776
  ...resolved.process,
822
- timeoutSecondsConfigured: sources.some(({ policy }) => policy.process?.timeoutSeconds !== void 0)
777
+ timeoutSecondsConfigured: layers.some((policy) => policy.process?.timeoutSeconds !== void 0)
823
778
  },
824
779
  configuredPaths: merged.configuredPaths
825
780
  };
826
781
  }
827
782
  function readSandboxPolicyFile(policyPath) {
828
- let parsed;
829
783
  try {
830
- parsed = JSON.parse(readFileSync(policyPath, "utf-8"));
831
- } catch (err) {
832
- throw policyFileError(policyPath, err);
833
- }
834
- try {
835
- return parseSandboxPolicyLayer(parsed, policyPath);
784
+ return parseSandboxPolicyLayer(JSON.parse(readFileSync(policyPath, "utf-8")), policyPath);
836
785
  } catch (err) {
837
786
  throw policyFileError(policyPath, err);
838
787
  }
@@ -845,41 +794,27 @@ function parseSandboxPolicyLayer(value, sourceLabel) {
845
794
  const readwritePaths = normalizeConfiguredPaths(filesystem?.additionalReadwritePaths, sourceLabel, "filesystem.additionalReadwritePaths");
846
795
  return {
847
796
  ...parsed.data,
848
- filesystem: filesystem ? {
849
- ...filesystem,
850
- ...readonlyPaths.length > 0 ? { additionalReadonlyPaths: readonlyPaths.map((entry) => entry.path) } : {},
851
- ...readwritePaths.length > 0 ? { additionalReadwritePaths: readwritePaths.map((entry) => entry.path) } : {}
852
- } : void 0,
853
797
  configuredPaths: {
854
798
  readonlyPaths,
855
799
  readwritePaths
856
800
  }
857
801
  };
858
802
  }
859
- function mergeSandboxPolicyLayers(sources) {
803
+ function mergeSandboxPolicyLayers(layers) {
860
804
  const timeoutCandidates = [DEFAULT_SANDBOX_BASELINE.process.timeoutSeconds];
861
- const filesystem = {
862
- restrictToProjectDir: DEFAULT_SANDBOX_BASELINE.filesystem.restrictToProjectDir,
863
- additionalReadonlyPaths: [],
864
- additionalReadwritePaths: []
865
- };
866
805
  const configuredPathMaps = {
867
806
  readonlyPaths: /* @__PURE__ */ new Map(),
868
807
  readwritePaths: /* @__PURE__ */ new Map()
869
808
  };
870
- for (const { policy, label } of sources) {
871
- mergeFilesystemPolicy(filesystem, policy.filesystem);
809
+ for (const policy of layers) {
872
810
  mergeConfiguredPathEntries(configuredPathMaps.readonlyPaths, policy.configuredPaths.readonlyPaths);
873
811
  mergeConfiguredPathEntries(configuredPathMaps.readwritePaths, policy.configuredPaths.readwritePaths);
874
812
  const timeoutSeconds = policy.process?.timeoutSeconds;
875
- if (timeoutSeconds !== void 0) {
876
- assertPositiveFiniteNumber(timeoutSeconds, `${label}.process.timeoutSeconds`);
877
- timeoutCandidates.push(timeoutSeconds);
878
- }
813
+ if (timeoutSeconds !== void 0) timeoutCandidates.push(timeoutSeconds);
879
814
  }
880
815
  return {
881
816
  filesystem: {
882
- ...filesystem,
817
+ restrictToProjectDir: DEFAULT_SANDBOX_BASELINE.filesystem.restrictToProjectDir,
883
818
  additionalReadonlyPaths: [...configuredPathMaps.readonlyPaths.values()].map((entry) => entry.path),
884
819
  additionalReadwritePaths: [...configuredPathMaps.readwritePaths.values()].map((entry) => entry.path)
885
820
  },
@@ -890,10 +825,6 @@ function mergeSandboxPolicyLayers(sources) {
890
825
  }
891
826
  };
892
827
  }
893
- function mergeFilesystemPolicy(target, layer) {
894
- if (!target || !layer) return;
895
- target.restrictToProjectDir = mostRestrictiveBoolean(DEFAULT_SANDBOX_BASELINE.filesystem.restrictToProjectDir, target.restrictToProjectDir, layer.restrictToProjectDir);
896
- }
897
828
  function mergeConfiguredPathEntries(target, entries) {
898
829
  for (const entry of entries) {
899
830
  const existing = target.get(entry.path);
@@ -936,21 +867,15 @@ function assertConfiguredPathExists(pathValue, source) {
936
867
  try {
937
868
  statSync(pathValue);
938
869
  } catch (err) {
939
- if (isNodeError$1(err)) {
870
+ if (isNodeError(err)) {
940
871
  if (err.code === "ENOENT") throw new Error(`Sandbox policy path ${pathValue} configured by ${source} does not exist on the host. Create the path or update the policy file.`, { cause: err });
941
872
  throw new Error(`Sandbox policy path ${pathValue} configured by ${source} is not accessible on the host: ${formatErrorMessage(err)}`, { cause: err });
942
873
  }
943
874
  throw err;
944
875
  }
945
876
  }
946
- function mostRestrictiveBoolean(defaultValue, ...values) {
947
- return defaultValue || values.some((value) => value === true);
948
- }
949
- function assertPositiveFiniteNumber(value, label) {
950
- if (typeof value !== "number" || !Number.isFinite(value) || value < 1) throw new TypeError(`Sandbox policy field ${label} must be a positive number.`);
951
- }
952
877
  function policyFileError(policyPath, err) {
953
- if (isNodeError$1(err) && err.code === "ENOENT") return new Error(`Configured sandbox policy file ${policyPath} does not exist. Remove it from mxcPolicyPaths or create the file.`, { cause: err });
878
+ if (isNodeError(err) && err.code === "ENOENT") return new Error(`Configured sandbox policy file ${policyPath} does not exist. Remove it from mxcPolicyPaths or create the file.`, { cause: err });
954
879
  return new Error(`Failed to load sandbox policy file at ${policyPath}: ${formatErrorMessage(err)}`, { cause: err instanceof Error ? err : void 0 });
955
880
  }
956
881
  function formatSandboxPolicyIssue(sourceLabel, issue) {
@@ -974,7 +899,7 @@ function formatIssuePath(pathSegments) {
974
899
  }
975
900
  return label;
976
901
  }
977
- function isNodeError$1(err) {
902
+ function isNodeError(err) {
978
903
  return err instanceof Error && "code" in err;
979
904
  }
980
905
  //#endregion
@@ -1019,15 +944,12 @@ function cleanupLauncherPayloadFile(token) {
1019
944
  function createSandboxTempDir(hostEnv) {
1020
945
  return mkdtempSync(path.join(resolveSandboxTempDir(hostEnv), "openclaw-mxc-sandbox-"));
1021
946
  }
1022
- function assertWorkdirInsideWorkspace(workspaceDir, workdir) {
1023
- const workspace = realpathForExistingPath(workspaceDir, "sandbox workspace");
1024
- const candidate = realpathForPotentialPath(workdir);
1025
- if (isPathInside(workspace, candidate)) return candidate;
1026
- throw new Error(`MXC sandbox workdir ${workdir} is outside the sandbox workspace ${workspaceDir}. Use a workdir inside the sandbox workspace.`);
1027
- }
1028
947
  function resolveWorkdirInsideWorkspace(workspaceDir, workdir) {
1029
- const candidate = assertWorkdirInsideWorkspace(workspaceDir, workdir);
948
+ const workspace = realpathForExistingPath(workspaceDir, "sandbox workspace");
1030
949
  try {
950
+ const { existingPath, unresolvedSegments } = resolvePathPrefixSync(workdir);
951
+ const candidate = path.join(existingPath, ...unresolvedSegments);
952
+ if (!isPathInside(workspace, candidate)) throw new Error(`MXC sandbox workdir ${workdir} is outside the sandbox workspace ${workspaceDir}. Use a workdir inside the sandbox workspace.`);
1031
953
  if (statSync(candidate).isDirectory()) return candidate;
1032
954
  } catch (err) {
1033
955
  if (isMissingPathError(err)) throw new Error(`MXC sandbox workdir ${workdir} does not exist.`, { cause: err });
@@ -1043,22 +965,9 @@ function realpathForExistingPath(value, label) {
1043
965
  throw err;
1044
966
  }
1045
967
  }
1046
- function realpathForPotentialPath(value) {
1047
- const resolved = path.resolve(value);
1048
- try {
1049
- return realpathSync(resolved);
1050
- } catch (err) {
1051
- if (!isMissingPathError(err)) throw err;
1052
- const parent = path.dirname(resolved);
1053
- if (parent === resolved) throw new Error(`MXC sandbox workdir ${value} does not exist.`, { cause: err });
1054
- return path.join(realpathForPotentialPath(parent), path.basename(resolved));
1055
- }
1056
- }
1057
- function isNodeError(err) {
1058
- return err instanceof Error && "code" in err;
1059
- }
1060
968
  function isMissingPathError(err) {
1061
- return isNodeError(err) && (err.code === "ENOENT" || err.code === "ENOTDIR");
969
+ const code = extractErrorCode(err);
970
+ return code === "ENOENT" || code === "ENOTDIR";
1062
971
  }
1063
972
  function buildMxcLauncherOptions(config, usePty) {
1064
973
  const options = {
@@ -1162,13 +1071,14 @@ function createMxcSandboxBackendHandle(params) {
1162
1071
  const runtimeWorkdir = resolveMxcRuntimeWorkdir(workspace, effectiveWorkdir);
1163
1072
  const baselineContext = resolveCurrentBaselineContext(workspace.activeWorkspaceDir);
1164
1073
  const sandboxTempDir = createSandboxTempDir(baselineContext.hostEnv);
1165
- const commandBridge = createWindowsCommandBridge({
1166
- args: cmdParams.args,
1167
- script: cmdParams.script,
1168
- tempDir: sandboxTempDir
1169
- });
1170
- const execInput = cmdParams.stdin === void 0 ? Buffer.alloc(0) : toBuffer(cmdParams.stdin);
1074
+ let commandBridge;
1171
1075
  try {
1076
+ commandBridge = createWindowsCommandBridge({
1077
+ args: cmdParams.args,
1078
+ script: cmdParams.script,
1079
+ tempDir: sandboxTempDir
1080
+ });
1081
+ const execInput = cmdParams.stdin === void 0 ? Buffer.alloc(0) : toBuffer(cmdParams.stdin);
1172
1082
  const payloadFile = createMxcLauncherPayload(restrictiveConfig, buildMxcContainerConfig({
1173
1083
  config: restrictiveConfig,
1174
1084
  baseline,
@@ -1214,7 +1124,7 @@ function createMxcSandboxBackendHandle(params) {
1214
1124
  cleanupLauncherPayloadFile(payloadFile);
1215
1125
  }
1216
1126
  } finally {
1217
- commandBridge.cleanup();
1127
+ commandBridge?.cleanup();
1218
1128
  rmSync(sandboxTempDir, {
1219
1129
  force: true,
1220
1130
  recursive: true
@@ -155,13 +155,13 @@ try {
155
155
  expected: 'string',
156
156
  code: 'invalid_type',
157
157
  path: [ 'username' ],
158
- message: 'Invalid input: expected string'
158
+ message: 'Invalid input: expected string, received number'
159
159
  },
160
160
  {
161
161
  expected: 'number',
162
162
  code: 'invalid_type',
163
163
  path: [ 'xp' ],
164
- message: 'Invalid input: expected number'
164
+ message: 'Invalid input: expected number, received string'
165
165
  }
166
166
  ] */
167
167
  }
@@ -75,3 +75,22 @@ core.globalConfig.postProcessor = (inst) => {
75
75
  shim.__originalRun = originalRun;
76
76
  inst._zod.run = shim;
77
77
  };
78
+
79
+ // seal-cjs-exports
80
+ (function () {
81
+ var keys = Object.getOwnPropertyNames(exports);
82
+ for (var i = 0; i < keys.length; i++) {
83
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
84
+ if (!desc || !desc.get || !desc.configurable) continue;
85
+ var value;
86
+ try {
87
+ value = desc.get();
88
+ } catch (e) {
89
+ continue;
90
+ }
91
+ // a circular require may not have settled this one yet, so leave it live
92
+ if (value === undefined) continue;
93
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
94
+ }
95
+ Object.freeze(exports);
96
+ })();
@@ -31,3 +31,22 @@ const z = __importStar(require("./v4/classic/external.cjs"));
31
31
  exports.z = z;
32
32
  exports.default = z;
33
33
  __exportStar(require("./v4/classic/external.cjs"), exports);
34
+
35
+ // seal-cjs-exports
36
+ (function () {
37
+ var keys = Object.getOwnPropertyNames(exports);
38
+ for (var i = 0; i < keys.length; i++) {
39
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
40
+ if (!desc || !desc.get || !desc.configurable) continue;
41
+ var value;
42
+ try {
43
+ value = desc.get();
44
+ } catch (e) {
45
+ continue;
46
+ }
47
+ // a circular require may not have settled this one yet, so leave it live
48
+ if (value === undefined) continue;
49
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
50
+ }
51
+ Object.freeze(exports);
52
+ })();
@@ -15,3 +15,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("../v4/locales/index.cjs"), exports);
18
+
19
+ // seal-cjs-exports
20
+ (function () {
21
+ var keys = Object.getOwnPropertyNames(exports);
22
+ for (var i = 0; i < keys.length; i++) {
23
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
24
+ if (!desc || !desc.get || !desc.configurable) continue;
25
+ var value;
26
+ try {
27
+ value = desc.get();
28
+ } catch (e) {
29
+ continue;
30
+ }
31
+ // a circular require may not have settled this one yet, so leave it live
32
+ if (value === undefined) continue;
33
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
34
+ }
35
+ Object.freeze(exports);
36
+ })();
@@ -30,3 +30,22 @@ exports.z = void 0;
30
30
  const z = __importStar(require("../v4/mini/external.cjs"));
31
31
  exports.z = z;
32
32
  __exportStar(require("../v4/mini/external.cjs"), exports);
33
+
34
+ // seal-cjs-exports
35
+ (function () {
36
+ var keys = Object.getOwnPropertyNames(exports);
37
+ for (var i = 0; i < keys.length; i++) {
38
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
39
+ if (!desc || !desc.get || !desc.configurable) continue;
40
+ var value;
41
+ try {
42
+ value = desc.get();
43
+ } catch (e) {
44
+ continue;
45
+ }
46
+ // a circular require may not have settled this one yet, so leave it live
47
+ if (value === undefined) continue;
48
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
49
+ }
50
+ Object.freeze(exports);
51
+ })();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "4.5.4",
3
+ "version": "4.6.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Colin McDonnell <zod@colinhacks.com>",
@@ -52,7 +52,8 @@
52
52
  },
53
53
  "conditions": {
54
54
  "@zod/source": "src"
55
- }
55
+ },
56
+ "sealCjsExports": true
56
57
  },
57
58
  "exports": {
58
59
  "./package.json": "./package.json",
@@ -137,10 +138,10 @@
137
138
  },
138
139
  "scripts": {
139
140
  "clean": "git clean -xdf . -e node_modules",
140
- "build": "zshy --project tsconfig.build.json",
141
- "postbuild": "tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .",
142
- "test:watch": "pnpm vitest",
143
- "test": "pnpm vitest run",
144
- "prepublishOnly": "tsx ../../scripts/check-versions.ts"
141
+ "build": "nub exec --node zshy --project tsconfig.build.json",
142
+ "postbuild": "nub ../../scripts/write-stub-package-jsons.ts && nub exec --node biome check --write .",
143
+ "test:watch": "nub exec --node vitest",
144
+ "test": "nub exec --node vitest run",
145
+ "prepublishOnly": "nub ../../scripts/check-versions.ts"
145
146
  }
146
147
  }
@@ -2,7 +2,7 @@ export namespace errorUtil {
2
2
  export type ErrMessage = string | { message?: string | undefined };
3
3
  export const errToObj = (message?: ErrMessage): { message?: string | undefined } =>
4
4
  typeof message === "string" ? { message } : message || {};
5
- // biome-ignore lint:
5
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: renaming churns 31 v3 call sites
6
6
  export const toString = (message?: ErrMessage): string | undefined =>
7
7
  typeof message === "string" ? message : message?.message;
8
8
  }
@@ -26,8 +26,10 @@ export {
26
26
  TimePrecision,
27
27
  util,
28
28
  NEVER,
29
+ INVALID,
29
30
  toZod,
30
31
  compile,
32
+ withParser,
31
33
  ZodCompileAsyncError,
32
34
  ZodCompileUnsupportedError,
33
35
  getDiscriminatedOption,