@openclaw/clickclack 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 (375) hide show
  1. package/assets/icon.png +0 -0
  2. package/dist/.setup/{channel-yIQ_PUDD.mjs → channel-Bcwtohk7.mjs} +326 -224
  3. package/dist/.setup/resolve-BHGLohni.mjs +336 -0
  4. package/dist/.setup/rolldown-runtime-B4FMCO8f.mjs +28 -0
  5. package/dist/.setup/{runtime-api-D9Bwyc44.mjs → runtime-api-BvP8DrPQ.mjs} +231 -164
  6. package/dist/.setup/{setup-claim-t5SbtvZy.mjs → setup-claim-Cx8knvXs.mjs} +1 -1
  7. package/dist/.setup/setup-plugin-api-BH_nw-AP.mjs +2 -0
  8. package/dist/.setup/{setup-plugin-api-BUwBPYpy.mjs → setup-plugin-api-C9QcBJuW.mjs} +1 -1
  9. package/dist/.setup/{setup-surface-BBl3rvVx.mjs → setup-surface-BW1Q06w5.mjs} +50 -503
  10. package/dist/.setup/setup-verify-Msgd70_M.mjs +111 -0
  11. package/dist/api.js +3 -2
  12. package/dist/channel-plugin-api.js +1 -1
  13. package/dist/doctor-contract-api.js +160 -3
  14. package/dist/index.js +1 -1
  15. package/dist/runtime-api.js +4 -3
  16. package/dist/setup-entry.js +1 -1
  17. package/dist/setup-plugin-api.js +1 -1
  18. package/node_modules/zod/README.md +2 -2
  19. package/node_modules/zod/compile.cjs +19 -0
  20. package/node_modules/zod/index.cjs +19 -0
  21. package/node_modules/zod/locales/index.cjs +19 -0
  22. package/node_modules/zod/mini/index.cjs +19 -0
  23. package/node_modules/zod/package.json +8 -7
  24. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  25. package/node_modules/zod/src/v4/classic/external.ts +2 -0
  26. package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
  27. package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
  28. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
  29. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
  30. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  31. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
  32. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
  33. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
  34. package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
  35. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
  36. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  37. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
  38. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
  39. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
  40. package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
  41. package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
  42. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
  43. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  44. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  45. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
  46. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  47. package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
  48. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
  49. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
  50. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
  51. package/node_modules/zod/src/v4/core/api.ts +44 -28
  52. package/node_modules/zod/src/v4/core/checks.ts +62 -102
  53. package/node_modules/zod/src/v4/core/compile.ts +218 -93
  54. package/node_modules/zod/src/v4/core/core.ts +1 -3
  55. package/node_modules/zod/src/v4/core/doc.ts +6 -2
  56. package/node_modules/zod/src/v4/core/errors.ts +3 -6
  57. package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
  58. package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
  59. package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
  60. package/node_modules/zod/src/v4/core/parse.ts +37 -16
  61. package/node_modules/zod/src/v4/core/regexes.ts +14 -4
  62. package/node_modules/zod/src/v4/core/schemas.ts +296 -132
  63. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  64. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
  65. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  66. package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
  67. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  68. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  69. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  70. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  71. package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
  72. package/node_modules/zod/src/v4/core/util.ts +218 -147
  73. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  74. package/node_modules/zod/src/v4/locales/ar.ts +2 -0
  75. package/node_modules/zod/src/v4/locales/az.ts +2 -0
  76. package/node_modules/zod/src/v4/locales/be.ts +2 -0
  77. package/node_modules/zod/src/v4/locales/bg.ts +2 -0
  78. package/node_modules/zod/src/v4/locales/bn.ts +2 -0
  79. package/node_modules/zod/src/v4/locales/ca.ts +2 -0
  80. package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
  81. package/node_modules/zod/src/v4/locales/cs.ts +2 -0
  82. package/node_modules/zod/src/v4/locales/da.ts +2 -0
  83. package/node_modules/zod/src/v4/locales/de.ts +2 -0
  84. package/node_modules/zod/src/v4/locales/el.ts +2 -0
  85. package/node_modules/zod/src/v4/locales/en.ts +2 -0
  86. package/node_modules/zod/src/v4/locales/eo.ts +2 -0
  87. package/node_modules/zod/src/v4/locales/es.ts +2 -0
  88. package/node_modules/zod/src/v4/locales/fa.ts +2 -0
  89. package/node_modules/zod/src/v4/locales/fi.ts +2 -0
  90. package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
  91. package/node_modules/zod/src/v4/locales/fr.ts +2 -0
  92. package/node_modules/zod/src/v4/locales/gu.ts +2 -0
  93. package/node_modules/zod/src/v4/locales/he.ts +2 -0
  94. package/node_modules/zod/src/v4/locales/hi.ts +2 -0
  95. package/node_modules/zod/src/v4/locales/hr.ts +2 -0
  96. package/node_modules/zod/src/v4/locales/hu.ts +2 -0
  97. package/node_modules/zod/src/v4/locales/hy.ts +2 -0
  98. package/node_modules/zod/src/v4/locales/id.ts +2 -0
  99. package/node_modules/zod/src/v4/locales/index.ts +1 -0
  100. package/node_modules/zod/src/v4/locales/is.ts +2 -0
  101. package/node_modules/zod/src/v4/locales/it.ts +2 -0
  102. package/node_modules/zod/src/v4/locales/ja.ts +2 -0
  103. package/node_modules/zod/src/v4/locales/ka.ts +2 -0
  104. package/node_modules/zod/src/v4/locales/km.ts +2 -0
  105. package/node_modules/zod/src/v4/locales/kn.ts +2 -0
  106. package/node_modules/zod/src/v4/locales/ko.ts +2 -0
  107. package/node_modules/zod/src/v4/locales/lt.ts +2 -0
  108. package/node_modules/zod/src/v4/locales/mk.ts +2 -0
  109. package/node_modules/zod/src/v4/locales/ms.ts +2 -0
  110. package/node_modules/zod/src/v4/locales/ne.ts +2 -0
  111. package/node_modules/zod/src/v4/locales/nl.ts +2 -0
  112. package/node_modules/zod/src/v4/locales/nn.ts +2 -0
  113. package/node_modules/zod/src/v4/locales/no.ts +2 -0
  114. package/node_modules/zod/src/v4/locales/ota.ts +2 -0
  115. package/node_modules/zod/src/v4/locales/pl.ts +2 -0
  116. package/node_modules/zod/src/v4/locales/ps.ts +2 -0
  117. package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
  118. package/node_modules/zod/src/v4/locales/pt.ts +2 -0
  119. package/node_modules/zod/src/v4/locales/ro.ts +2 -0
  120. package/node_modules/zod/src/v4/locales/ru.ts +2 -0
  121. package/node_modules/zod/src/v4/locales/sk.ts +2 -0
  122. package/node_modules/zod/src/v4/locales/sl.ts +2 -0
  123. package/node_modules/zod/src/v4/locales/sv.ts +2 -0
  124. package/node_modules/zod/src/v4/locales/ta.ts +2 -0
  125. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  126. package/node_modules/zod/src/v4/locales/th.ts +2 -0
  127. package/node_modules/zod/src/v4/locales/tk.ts +2 -0
  128. package/node_modules/zod/src/v4/locales/tr.ts +2 -0
  129. package/node_modules/zod/src/v4/locales/uk.ts +2 -0
  130. package/node_modules/zod/src/v4/locales/ur.ts +2 -0
  131. package/node_modules/zod/src/v4/locales/uz.ts +2 -0
  132. package/node_modules/zod/src/v4/locales/vi.ts +2 -0
  133. package/node_modules/zod/src/v4/locales/yo.ts +2 -0
  134. package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
  135. package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
  136. package/node_modules/zod/src/v4/mini/external.ts +2 -0
  137. package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
  138. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
  139. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  140. package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
  141. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  142. package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
  143. package/node_modules/zod/v3/ZodError.cjs +19 -0
  144. package/node_modules/zod/v3/errors.cjs +19 -0
  145. package/node_modules/zod/v3/external.cjs +19 -0
  146. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  147. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  148. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  149. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  150. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  151. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  152. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  153. package/node_modules/zod/v3/index.cjs +19 -0
  154. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  155. package/node_modules/zod/v3/types.cjs +19 -0
  156. package/node_modules/zod/v4/classic/checks.cjs +19 -0
  157. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  158. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  159. package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
  160. package/node_modules/zod/v4/classic/errors.cjs +19 -0
  161. package/node_modules/zod/v4/classic/external.cjs +22 -1
  162. package/node_modules/zod/v4/classic/external.d.cts +1 -1
  163. package/node_modules/zod/v4/classic/external.d.ts +1 -1
  164. package/node_modules/zod/v4/classic/external.js +1 -1
  165. package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
  166. package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
  167. package/node_modules/zod/v4/classic/in-out.cjs +19 -0
  168. package/node_modules/zod/v4/classic/index.cjs +19 -0
  169. package/node_modules/zod/v4/classic/iso.cjs +19 -0
  170. package/node_modules/zod/v4/classic/parse.cjs +19 -0
  171. package/node_modules/zod/v4/classic/schemas.cjs +100 -35
  172. package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
  173. package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
  174. package/node_modules/zod/v4/classic/schemas.js +77 -33
  175. package/node_modules/zod/v4/core/api.cjs +45 -22
  176. package/node_modules/zod/v4/core/api.d.cts +12 -6
  177. package/node_modules/zod/v4/core/api.d.ts +12 -6
  178. package/node_modules/zod/v4/core/api.js +25 -22
  179. package/node_modules/zod/v4/core/checks.cjs +51 -97
  180. package/node_modules/zod/v4/core/checks.d.cts +17 -1
  181. package/node_modules/zod/v4/core/checks.d.ts +17 -1
  182. package/node_modules/zod/v4/core/checks.js +31 -96
  183. package/node_modules/zod/v4/core/compile.cjs +173 -78
  184. package/node_modules/zod/v4/core/compile.d.cts +18 -4
  185. package/node_modules/zod/v4/core/compile.d.ts +18 -4
  186. package/node_modules/zod/v4/core/compile.js +154 -79
  187. package/node_modules/zod/v4/core/core.cjs +20 -1
  188. package/node_modules/zod/v4/core/core.js +1 -1
  189. package/node_modules/zod/v4/core/doc.cjs +26 -2
  190. package/node_modules/zod/v4/core/doc.js +7 -2
  191. package/node_modules/zod/v4/core/errors.cjs +21 -5
  192. package/node_modules/zod/v4/core/errors.js +2 -5
  193. package/node_modules/zod/v4/core/index.cjs +19 -0
  194. package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
  195. package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
  196. package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
  197. package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
  198. package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
  199. package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
  200. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  201. package/node_modules/zod/v4/core/memoizer.cjs +111 -23
  202. package/node_modules/zod/v4/core/memoizer.js +69 -23
  203. package/node_modules/zod/v4/core/parse.cjs +56 -16
  204. package/node_modules/zod/v4/core/parse.js +37 -16
  205. package/node_modules/zod/v4/core/regexes.cjs +31 -6
  206. package/node_modules/zod/v4/core/regexes.d.cts +3 -0
  207. package/node_modules/zod/v4/core/regexes.d.ts +3 -0
  208. package/node_modules/zod/v4/core/regexes.js +10 -4
  209. package/node_modules/zod/v4/core/registries.cjs +19 -0
  210. package/node_modules/zod/v4/core/schemas.cjs +302 -114
  211. package/node_modules/zod/v4/core/schemas.d.cts +28 -8
  212. package/node_modules/zod/v4/core/schemas.d.ts +28 -8
  213. package/node_modules/zod/v4/core/schemas.js +279 -113
  214. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  215. package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
  216. package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
  217. package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
  218. package/node_modules/zod/v4/core/to-json-schema.js +7 -6
  219. package/node_modules/zod/v4/core/util.cjs +177 -143
  220. package/node_modules/zod/v4/core/util.d.cts +25 -4
  221. package/node_modules/zod/v4/core/util.d.ts +25 -4
  222. package/node_modules/zod/v4/core/util.js +156 -143
  223. package/node_modules/zod/v4/core/versions.cjs +21 -2
  224. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  225. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  226. package/node_modules/zod/v4/core/versions.js +2 -2
  227. package/node_modules/zod/v4/core/visit.cjs +19 -0
  228. package/node_modules/zod/v4/index.cjs +19 -0
  229. package/node_modules/zod/v4/locales/ar.cjs +2 -0
  230. package/node_modules/zod/v4/locales/ar.js +2 -0
  231. package/node_modules/zod/v4/locales/az.cjs +2 -0
  232. package/node_modules/zod/v4/locales/az.js +2 -0
  233. package/node_modules/zod/v4/locales/be.cjs +2 -0
  234. package/node_modules/zod/v4/locales/be.js +2 -0
  235. package/node_modules/zod/v4/locales/bg.cjs +2 -0
  236. package/node_modules/zod/v4/locales/bg.js +2 -0
  237. package/node_modules/zod/v4/locales/bn.cjs +2 -0
  238. package/node_modules/zod/v4/locales/bn.js +2 -0
  239. package/node_modules/zod/v4/locales/ca.cjs +2 -0
  240. package/node_modules/zod/v4/locales/ca.js +2 -0
  241. package/node_modules/zod/v4/locales/ckb.cjs +2 -0
  242. package/node_modules/zod/v4/locales/ckb.js +2 -0
  243. package/node_modules/zod/v4/locales/cs.cjs +2 -0
  244. package/node_modules/zod/v4/locales/cs.js +2 -0
  245. package/node_modules/zod/v4/locales/da.cjs +2 -0
  246. package/node_modules/zod/v4/locales/da.js +2 -0
  247. package/node_modules/zod/v4/locales/de.cjs +2 -0
  248. package/node_modules/zod/v4/locales/de.js +2 -0
  249. package/node_modules/zod/v4/locales/el.cjs +2 -0
  250. package/node_modules/zod/v4/locales/el.js +2 -0
  251. package/node_modules/zod/v4/locales/en.cjs +2 -0
  252. package/node_modules/zod/v4/locales/en.js +2 -0
  253. package/node_modules/zod/v4/locales/eo.cjs +2 -0
  254. package/node_modules/zod/v4/locales/eo.js +2 -0
  255. package/node_modules/zod/v4/locales/es.cjs +2 -0
  256. package/node_modules/zod/v4/locales/es.js +2 -0
  257. package/node_modules/zod/v4/locales/fa.cjs +2 -0
  258. package/node_modules/zod/v4/locales/fa.js +2 -0
  259. package/node_modules/zod/v4/locales/fi.cjs +2 -0
  260. package/node_modules/zod/v4/locales/fi.js +2 -0
  261. package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
  262. package/node_modules/zod/v4/locales/fr-CA.js +2 -0
  263. package/node_modules/zod/v4/locales/fr.cjs +2 -0
  264. package/node_modules/zod/v4/locales/fr.js +2 -0
  265. package/node_modules/zod/v4/locales/gu.cjs +2 -0
  266. package/node_modules/zod/v4/locales/gu.js +2 -0
  267. package/node_modules/zod/v4/locales/he.cjs +2 -0
  268. package/node_modules/zod/v4/locales/he.js +2 -0
  269. package/node_modules/zod/v4/locales/hi.cjs +2 -0
  270. package/node_modules/zod/v4/locales/hi.js +2 -0
  271. package/node_modules/zod/v4/locales/hr.cjs +2 -0
  272. package/node_modules/zod/v4/locales/hr.js +2 -0
  273. package/node_modules/zod/v4/locales/hu.cjs +2 -0
  274. package/node_modules/zod/v4/locales/hu.js +2 -0
  275. package/node_modules/zod/v4/locales/hy.cjs +2 -0
  276. package/node_modules/zod/v4/locales/hy.js +2 -0
  277. package/node_modules/zod/v4/locales/id.cjs +2 -0
  278. package/node_modules/zod/v4/locales/id.js +2 -0
  279. package/node_modules/zod/v4/locales/index.cjs +22 -1
  280. package/node_modules/zod/v4/locales/index.d.cts +1 -0
  281. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  282. package/node_modules/zod/v4/locales/index.js +1 -0
  283. package/node_modules/zod/v4/locales/is.cjs +2 -0
  284. package/node_modules/zod/v4/locales/is.js +2 -0
  285. package/node_modules/zod/v4/locales/it.cjs +2 -0
  286. package/node_modules/zod/v4/locales/it.js +2 -0
  287. package/node_modules/zod/v4/locales/ja.cjs +2 -0
  288. package/node_modules/zod/v4/locales/ja.js +2 -0
  289. package/node_modules/zod/v4/locales/ka.cjs +2 -0
  290. package/node_modules/zod/v4/locales/ka.js +2 -0
  291. package/node_modules/zod/v4/locales/km.cjs +2 -0
  292. package/node_modules/zod/v4/locales/km.js +2 -0
  293. package/node_modules/zod/v4/locales/kn.cjs +2 -0
  294. package/node_modules/zod/v4/locales/kn.js +2 -0
  295. package/node_modules/zod/v4/locales/ko.cjs +2 -0
  296. package/node_modules/zod/v4/locales/ko.js +2 -0
  297. package/node_modules/zod/v4/locales/lt.cjs +2 -0
  298. package/node_modules/zod/v4/locales/lt.js +2 -0
  299. package/node_modules/zod/v4/locales/mk.cjs +2 -0
  300. package/node_modules/zod/v4/locales/mk.js +2 -0
  301. package/node_modules/zod/v4/locales/ms.cjs +2 -0
  302. package/node_modules/zod/v4/locales/ms.js +2 -0
  303. package/node_modules/zod/v4/locales/ne.cjs +2 -0
  304. package/node_modules/zod/v4/locales/ne.js +2 -0
  305. package/node_modules/zod/v4/locales/nl.cjs +2 -0
  306. package/node_modules/zod/v4/locales/nl.js +2 -0
  307. package/node_modules/zod/v4/locales/nn.cjs +2 -0
  308. package/node_modules/zod/v4/locales/nn.js +2 -0
  309. package/node_modules/zod/v4/locales/no.cjs +2 -0
  310. package/node_modules/zod/v4/locales/no.js +2 -0
  311. package/node_modules/zod/v4/locales/ota.cjs +2 -0
  312. package/node_modules/zod/v4/locales/ota.js +2 -0
  313. package/node_modules/zod/v4/locales/pl.cjs +2 -0
  314. package/node_modules/zod/v4/locales/pl.js +2 -0
  315. package/node_modules/zod/v4/locales/ps.cjs +2 -0
  316. package/node_modules/zod/v4/locales/ps.js +2 -0
  317. package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
  318. package/node_modules/zod/v4/locales/pt-BR.js +2 -0
  319. package/node_modules/zod/v4/locales/pt.cjs +2 -0
  320. package/node_modules/zod/v4/locales/pt.js +2 -0
  321. package/node_modules/zod/v4/locales/ro.cjs +2 -0
  322. package/node_modules/zod/v4/locales/ro.js +2 -0
  323. package/node_modules/zod/v4/locales/ru.cjs +2 -0
  324. package/node_modules/zod/v4/locales/ru.js +2 -0
  325. package/node_modules/zod/v4/locales/sk.cjs +2 -0
  326. package/node_modules/zod/v4/locales/sk.js +2 -0
  327. package/node_modules/zod/v4/locales/sl.cjs +2 -0
  328. package/node_modules/zod/v4/locales/sl.js +2 -0
  329. package/node_modules/zod/v4/locales/sv.cjs +2 -0
  330. package/node_modules/zod/v4/locales/sv.js +2 -0
  331. package/node_modules/zod/v4/locales/ta.cjs +2 -0
  332. package/node_modules/zod/v4/locales/ta.js +2 -0
  333. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  334. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  335. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  336. package/node_modules/zod/v4/locales/tg.js +117 -0
  337. package/node_modules/zod/v4/locales/th.cjs +2 -0
  338. package/node_modules/zod/v4/locales/th.js +2 -0
  339. package/node_modules/zod/v4/locales/tk.cjs +2 -0
  340. package/node_modules/zod/v4/locales/tk.js +2 -0
  341. package/node_modules/zod/v4/locales/tr.cjs +2 -0
  342. package/node_modules/zod/v4/locales/tr.js +2 -0
  343. package/node_modules/zod/v4/locales/uk.cjs +2 -0
  344. package/node_modules/zod/v4/locales/uk.js +2 -0
  345. package/node_modules/zod/v4/locales/ur.cjs +2 -0
  346. package/node_modules/zod/v4/locales/ur.js +2 -0
  347. package/node_modules/zod/v4/locales/uz.cjs +2 -0
  348. package/node_modules/zod/v4/locales/uz.js +2 -0
  349. package/node_modules/zod/v4/locales/vi.cjs +2 -0
  350. package/node_modules/zod/v4/locales/vi.js +2 -0
  351. package/node_modules/zod/v4/locales/yo.cjs +2 -0
  352. package/node_modules/zod/v4/locales/yo.js +2 -0
  353. package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
  354. package/node_modules/zod/v4/locales/zh-CN.js +2 -0
  355. package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
  356. package/node_modules/zod/v4/locales/zh-TW.js +2 -0
  357. package/node_modules/zod/v4/mini/checks.cjs +19 -0
  358. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  359. package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
  360. package/node_modules/zod/v4/mini/external.cjs +22 -1
  361. package/node_modules/zod/v4/mini/external.d.cts +1 -1
  362. package/node_modules/zod/v4/mini/external.d.ts +1 -1
  363. package/node_modules/zod/v4/mini/external.js +1 -1
  364. package/node_modules/zod/v4/mini/in-out.cjs +19 -0
  365. package/node_modules/zod/v4/mini/index.cjs +19 -0
  366. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  367. package/node_modules/zod/v4/mini/parse.cjs +19 -0
  368. package/node_modules/zod/v4/mini/schemas.cjs +44 -8
  369. package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
  370. package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
  371. package/node_modules/zod/v4/mini/schemas.js +21 -6
  372. package/node_modules/zod/v4-mini/index.cjs +19 -0
  373. package/openclaw.plugin.json +31 -1
  374. package/package.json +5 -5
  375. package/dist/.setup/setup-plugin-api-B19mjQvl.mjs +0 -2
@@ -0,0 +1,111 @@
1
+ import { h as resolveClickClackAccount } from "./setup-surface-BW1Q06w5.mjs";
2
+ import { i as createClickClackClient, n as resolveWorkspaceId } from "./resolve-BHGLohni.mjs";
3
+ import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
4
+ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
+ import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/setup";
6
+ //#region extensions/clickclack/src/setup-verify.ts
7
+ const GATEWAY_RUNNING_MESSAGE = "OpenClaw is running — ClickClack will connect automatically.";
8
+ const GATEWAY_NOT_RUNNING_MESSAGE = "Start OpenClaw to connect: openclaw gateway";
9
+ const GATEWAY_UNKNOWN_MESSAGE = "If OpenClaw is running it connects automatically; otherwise start it with: openclaw gateway";
10
+ function isHttpStatus(error, status) {
11
+ return typeof error === "object" && error !== null && "status" in error && error.status === status;
12
+ }
13
+ function isWorkspaceNotFound(error) {
14
+ return error instanceof Error && error.message.startsWith("ClickClack workspace not found:");
15
+ }
16
+ function usesUnavailableImplicitEnvToken(account, tokenOverride) {
17
+ return account.accountId === DEFAULT_ACCOUNT_ID && Boolean(account.baseUrl && account.workspace) && !tokenOverride && !account.token && !hasConfiguredSecretInput(account.config.token) && !account.config.tokenFile?.trim();
18
+ }
19
+ async function checkClickClackSetupConnection(params) {
20
+ let workspaceInput = "";
21
+ try {
22
+ const account = resolveClickClackAccount({
23
+ cfg: params.cfg,
24
+ accountId: params.accountId
25
+ });
26
+ workspaceInput = account.workspace;
27
+ const token = params.token?.trim() || account.token;
28
+ if (usesUnavailableImplicitEnvToken(account, token)) return { status: "skipped-env-token" };
29
+ if (!account.baseUrl || !account.workspace || !token) return { status: "skipped-unconfigured" };
30
+ const client = createClickClackClient({
31
+ baseUrl: account.apiEndpoint,
32
+ token
33
+ });
34
+ const me = await client.me();
35
+ const workspaceId = await resolveWorkspaceId(client, account.workspace);
36
+ const workspace = (await client.workspaces()).find((candidate) => candidate.id === workspaceId);
37
+ if (!workspace) throw new Error(`ClickClack workspace not found: ${account.workspace}`);
38
+ return {
39
+ status: "connected",
40
+ handle: me.handle,
41
+ workspaceName: workspace.name
42
+ };
43
+ } catch (error) {
44
+ if (isHttpStatus(error, 401)) return { status: "invalid-token" };
45
+ if (isWorkspaceNotFound(error)) return {
46
+ status: "workspace-not-found",
47
+ workspace: workspaceInput
48
+ };
49
+ return {
50
+ status: "failed",
51
+ error: formatErrorMessage(error)
52
+ };
53
+ }
54
+ }
55
+ function isGatewayNotRunningError(error) {
56
+ if (typeof error === "object" && error !== null && "name" in error && "kind" in error && "code" in error && error.name === "GatewayTransportError" && error.kind === "closed" && error.code === 1006) return true;
57
+ const message = formatErrorMessage(error).toLowerCase();
58
+ return message.includes("econnrefused") || message.includes("connection refused");
59
+ }
60
+ async function probeClickClackGatewayStatus() {
61
+ try {
62
+ const { callGatewayFromCli } = await import("openclaw/plugin-sdk/gateway-runtime");
63
+ await callGatewayFromCli("health", {
64
+ timeout: "1000",
65
+ json: true
66
+ }, void 0, {
67
+ expectFinal: false,
68
+ progress: false
69
+ });
70
+ return "running";
71
+ } catch (error) {
72
+ return isGatewayNotRunningError(error) ? "not-running" : "unavailable";
73
+ }
74
+ }
75
+ function formatClickClackConnectionLog(result) {
76
+ switch (result.status) {
77
+ case "connected": return `Connected as @${result.handle} — workspace ${result.workspaceName} resolved.`;
78
+ case "invalid-token": return "ClickClack rejected the bot token (401). Copy a current token and rerun setup.";
79
+ case "workspace-not-found": return `Workspace "${result.workspace}" was not found. Check the id, slug, or name, list available workspaces, and rerun setup.`;
80
+ case "failed": return `Connection check failed: ${result.error}. Setup was saved; fix the connection and rerun setup.`;
81
+ case "skipped-env-token": return "Token comes from CLICKCLACK_BOT_TOKEN; verification skipped.";
82
+ case "skipped-unconfigured": return;
83
+ }
84
+ }
85
+ function formatClickClackGatewayLog(status) {
86
+ switch (status) {
87
+ case "running": return GATEWAY_RUNNING_MESSAGE;
88
+ case "not-running": return GATEWAY_NOT_RUNNING_MESSAGE;
89
+ case "unavailable": return GATEWAY_UNKNOWN_MESSAGE;
90
+ }
91
+ return GATEWAY_UNKNOWN_MESSAGE;
92
+ }
93
+ async function verifyClickClackAccountAfterSetup(params) {
94
+ try {
95
+ const message = formatClickClackConnectionLog(await checkClickClackSetupConnection({
96
+ cfg: params.cfg,
97
+ accountId: params.accountId
98
+ }));
99
+ if (message) params.runtime.log(message);
100
+ } catch (error) {
101
+ params.runtime.log(`Connection check failed: ${formatErrorMessage(error)}. Setup was saved; fix the connection and rerun setup.`);
102
+ }
103
+ try {
104
+ const status = await probeClickClackGatewayStatus();
105
+ params.runtime.log(formatClickClackGatewayLog(status));
106
+ } catch {
107
+ params.runtime.log(GATEWAY_UNKNOWN_MESSAGE);
108
+ }
109
+ }
110
+ //#endregion
111
+ export { checkClickClackSetupConnection, verifyClickClackAccountAfterSetup };
package/dist/api.js CHANGED
@@ -1,3 +1,4 @@
1
- import { _ as DEFAULT_ACCOUNT_ID, b as resolveClickClackAccount, p as clickClackConfigSchema, u as createClickClackClient, v as listClickClackAccountIds, x as resolveDefaultClickClackAccountId, y as listEnabledClickClackAccounts } from "./.setup/setup-surface-BBl3rvVx.mjs";
2
- import { a as setClickClackRuntime, i as getClickClackRuntime, n as buildClickClackTarget, r as parseClickClackTarget, t as clickClackPlugin } from "./.setup/channel-yIQ_PUDD.mjs";
1
+ import { _ as resolveDefaultClickClackAccountId, d as DEFAULT_ACCOUNT_ID, h as resolveClickClackAccount, m as listEnabledClickClackAccounts, p as listClickClackAccountIds, s as clickClackConfigSchema } from "./.setup/setup-surface-BW1Q06w5.mjs";
2
+ import { a as setClickClackRuntime, i as getClickClackRuntime, n as buildClickClackTarget, r as parseClickClackTarget, t as clickClackPlugin } from "./.setup/channel-Bcwtohk7.mjs";
3
+ import { i as createClickClackClient } from "./.setup/resolve-BHGLohni.mjs";
3
4
  export { DEFAULT_ACCOUNT_ID, buildClickClackTarget, clickClackConfigSchema, clickClackPlugin, createClickClackClient, getClickClackRuntime, listClickClackAccountIds, listEnabledClickClackAccounts, parseClickClackTarget, resolveClickClackAccount, resolveDefaultClickClackAccountId, setClickClackRuntime };
@@ -1,2 +1,2 @@
1
- import { t as clickClackPlugin } from "./.setup/channel-yIQ_PUDD.mjs";
1
+ import { t as clickClackPlugin } from "./.setup/channel-Bcwtohk7.mjs";
2
2
  export { clickClackPlugin };
@@ -1,7 +1,164 @@
1
- import { asObjectRecord } from "openclaw/plugin-sdk/runtime-doctor-migrations";
1
+ import { n as __reExport, t as __exportAll } from "./.setup/rolldown-runtime-B4FMCO8f.mjs";
2
+ //#region packages/normalization-core/src/record-coerce.ts
3
+ /** Type guard for non-array object records at browser-safe boundaries. */
4
+ function isRecord(value) {
5
+ return value !== null && typeof value === "object" && !Array.isArray(value);
6
+ }
7
+ /** Returns a non-array record or null. */
8
+ function asNullableRecord(value) {
9
+ return isRecord(value) ? value : null;
10
+ }
11
+ //#endregion
12
+ //#region src/config/channel-config-normalization.ts
13
+ /** Applies one channel-specific doctor migration to every object-shaped account. */
14
+ function normalizeChannelAccounts(params) {
15
+ const rawAccounts = asNullableRecord(params.entry.accounts);
16
+ if (!rawAccounts) return {
17
+ entry: params.entry,
18
+ changed: false
19
+ };
20
+ let changed = false;
21
+ const accounts = { ...rawAccounts };
22
+ for (const [accountId, value] of Object.entries(rawAccounts)) {
23
+ const account = asNullableRecord(value);
24
+ if (!account) continue;
25
+ const normalized = params.normalizeAccount({
26
+ account,
27
+ accountId,
28
+ pathPrefix: `${params.pathPrefix}.accounts.${accountId}`,
29
+ changes: params.changes
30
+ });
31
+ if (normalized.changed) {
32
+ accounts[accountId] = normalized.entry;
33
+ changed = true;
34
+ }
35
+ }
36
+ return changed ? {
37
+ entry: {
38
+ ...params.entry,
39
+ accounts
40
+ },
41
+ changed: true
42
+ } : {
43
+ entry: params.entry,
44
+ changed: false
45
+ };
46
+ }
47
+ /** Applies the same channel-specific doctor migration at root and account scope. */
48
+ function normalizeChannelConfigEntries(params) {
49
+ const changes = params.changes ?? [];
50
+ const channels = params.cfg.channels;
51
+ const entry = asNullableRecord(channels?.[params.channelId]);
52
+ if (!entry) return {
53
+ config: params.cfg,
54
+ changes
55
+ };
56
+ const channelPath = `channels.${params.channelId}`;
57
+ const root = params.normalizeEntry({
58
+ entry,
59
+ pathPrefix: channelPath,
60
+ changes
61
+ });
62
+ const accounts = normalizeChannelAccounts({
63
+ entry: root.entry,
64
+ pathPrefix: channelPath,
65
+ changes,
66
+ normalizeAccount: (accountParams) => params.normalizeEntry({
67
+ entry: accountParams.account,
68
+ accountId: accountParams.accountId,
69
+ pathPrefix: accountParams.pathPrefix,
70
+ changes: accountParams.changes
71
+ })
72
+ });
73
+ if (!root.changed && !accounts.changed) return {
74
+ config: params.cfg,
75
+ changes
76
+ };
77
+ return {
78
+ config: {
79
+ ...params.cfg,
80
+ channels: {
81
+ ...channels,
82
+ [params.channelId]: accounts.entry
83
+ }
84
+ },
85
+ changes
86
+ };
87
+ }
88
+ //#endregion
89
+ //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
90
+ /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
91
+ function createLegacyWebhookListenerDoctorContract(params) {
92
+ const portKey = params.portKey ?? "webhookPort";
93
+ const hostKey = params.hostKey === void 0 ? "webhookHost" : params.hostKey;
94
+ const source = (entry) => params.webhookKey ? asNullableRecord(entry[params.webhookKey]) : entry;
95
+ const hasLegacy = (value) => {
96
+ const entry = asNullableRecord(value);
97
+ const listener = entry && source(entry);
98
+ return Boolean(listener && (Object.hasOwn(listener, portKey) || hostKey && Object.hasOwn(listener, hostKey)));
99
+ };
100
+ const prefix = `channels.${params.channelKey}`;
101
+ return {
102
+ legacyConfigRules: [{
103
+ path: ["channels", params.channelKey],
104
+ message: `${prefix} webhook listeners moved to Gateway routes. Run "openclaw doctor --fix" to preserve explicitly configured listener settings as legacyWebhook.`,
105
+ match: (value) => {
106
+ const accounts = asNullableRecord(asNullableRecord(value)?.accounts);
107
+ return hasLegacy(value) || Object.values(accounts ?? {}).some(hasLegacy);
108
+ }
109
+ }],
110
+ normalizeCompatibilityConfig: ({ cfg }) => {
111
+ const root = asNullableRecord(asNullableRecord(cfg.channels)?.[params.channelKey]);
112
+ const inherited = root && source(root);
113
+ const canonicalRoot = asNullableRecord(root?.legacyWebhook);
114
+ return normalizeChannelConfigEntries({
115
+ cfg,
116
+ channelId: params.channelKey,
117
+ normalizeEntry: ({ entry, accountId, pathPrefix, changes }) => {
118
+ const listener = source(entry);
119
+ if (!listener || !hasLegacy(entry)) return {
120
+ entry,
121
+ changed: false
122
+ };
123
+ const next = { ...entry };
124
+ const port = Object.hasOwn(listener, portKey) ? listener[portKey] : (accountId ? canonicalRoot?.port ?? inherited?.[portKey] : void 0) ?? params.defaultPort;
125
+ const inheritedHost = accountId ? canonicalRoot ? canonicalRoot.host : (hostKey ? inherited?.[hostKey] : void 0) ?? params.defaultHost : params.defaultHost;
126
+ const host = hostKey ? listener[hostKey] ?? inheritedHost : inheritedHost;
127
+ const legacyPath = [pathPrefix, params.webhookKey].filter(Boolean).join(".");
128
+ if (Object.hasOwn(entry, "legacyWebhook")) changes.push(`Removed ${legacyPath} legacy listener keys; ${pathPrefix}.legacyWebhook is already configured.`);
129
+ else if (accountId && root?.legacyWebhook === false) changes.push(`Removed ${legacyPath} legacy listener keys; ${prefix}.legacyWebhook: false keeps this account's inherited listener disabled.`);
130
+ else {
131
+ next.legacyWebhook = {
132
+ port,
133
+ ...host !== void 0 ? { host } : {}
134
+ };
135
+ changes.push(`Moved ${legacyPath} listener settings to ${pathPrefix}.legacyWebhook. Point the external callback or reverse proxy at the Gateway port and webhook path, verify delivery, then set legacyWebhook: false to disable legacy forwarding.`);
136
+ }
137
+ const updated = params.webhookKey ? { ...listener } : next;
138
+ delete updated[portKey];
139
+ if (hostKey) delete updated[hostKey];
140
+ if (params.webhookKey) {
141
+ if (Object.keys(updated).length) next[params.webhookKey] = updated;
142
+ else delete next[params.webhookKey];
143
+ }
144
+ return {
145
+ entry: next,
146
+ changed: true
147
+ };
148
+ }
149
+ });
150
+ }
151
+ };
152
+ }
153
+ //#endregion
154
+ //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
155
+ var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
156
+ import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
157
+ __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
158
+ //#endregion
2
159
  //#region extensions/clickclack/src/doctor-contract.ts
3
160
  function stripTimeoutSeconds(value) {
4
- const record = asObjectRecord(value);
161
+ const record = (0, runtime_doctor_migrations_exports.asObjectRecord)(value);
5
162
  if (!record) return {
6
163
  value,
7
164
  changed: false
@@ -23,7 +180,7 @@ function stripTimeoutSeconds(value) {
23
180
  };
24
181
  }
25
182
  function normalizeCompatibilityConfig({ cfg }) {
26
- const rawEntry = asObjectRecord(cfg.channels?.clickclack);
183
+ const rawEntry = (0, runtime_doctor_migrations_exports.asObjectRecord)(cfg.channels?.clickclack);
27
184
  if (!rawEntry) return {
28
185
  config: cfg,
29
186
  changes: []
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as registerClickClackDiscussions } from "./.setup/runtime-api-D9Bwyc44.mjs";
1
+ import { t as registerClickClackDiscussions } from "./.setup/runtime-api-BvP8DrPQ.mjs";
2
2
  import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
3
3
  //#region extensions/clickclack/index.ts
4
4
  /**
@@ -1,4 +1,5 @@
1
- import { b as resolveClickClackAccount, u as createClickClackClient } from "./.setup/setup-surface-BBl3rvVx.mjs";
2
- import { a as setClickClackRuntime, r as parseClickClackTarget } from "./.setup/channel-yIQ_PUDD.mjs";
3
- import { t as registerClickClackDiscussions } from "./.setup/runtime-api-D9Bwyc44.mjs";
1
+ import { h as resolveClickClackAccount } from "./.setup/setup-surface-BW1Q06w5.mjs";
2
+ import { a as setClickClackRuntime, r as parseClickClackTarget } from "./.setup/channel-Bcwtohk7.mjs";
3
+ import { i as createClickClackClient } from "./.setup/resolve-BHGLohni.mjs";
4
+ import { t as registerClickClackDiscussions } from "./.setup/runtime-api-BvP8DrPQ.mjs";
4
5
  export { createClickClackClient, parseClickClackTarget, registerClickClackDiscussions, resolveClickClackAccount, setClickClackRuntime };
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/setup-plugin-api-B19mjQvl.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/setup-plugin-api-BH_nw-AP.mjs", import.meta.url).href),
8
8
  exportName: "clickClackSetupPlugin"
9
9
  },
10
10
  secrets: {
@@ -1,2 +1,2 @@
1
- import { t as clickClackSetupPlugin } from "./.setup/setup-plugin-api-BUwBPYpy.mjs";
1
+ import { t as clickClackSetupPlugin } from "./.setup/setup-plugin-api-C9QcBJuW.mjs";
2
2
  export { clickClackSetupPlugin };
@@ -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,