@skillcap/gdh 3.2.1 → 3.2.3

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 (639) hide show
  1. package/INSTALL-BUNDLE.json +1 -1
  2. package/RELEASE-SPAN-UPDATE-CONTRACTS.json +134 -0
  3. package/node_modules/@clack/core/CHANGELOG.md +8 -0
  4. package/node_modules/@clack/core/dist/index.d.mts +18 -4
  5. package/node_modules/@clack/core/dist/index.mjs +16 -10
  6. package/node_modules/@clack/core/dist/index.mjs.map +1 -1
  7. package/node_modules/@clack/core/package.json +5 -2
  8. package/node_modules/@clack/prompts/CHANGELOG.md +15 -0
  9. package/node_modules/@clack/prompts/README.md +107 -2
  10. package/node_modules/@clack/prompts/dist/index.d.mts +16 -11
  11. package/node_modules/@clack/prompts/dist/index.mjs +114 -107
  12. package/node_modules/@clack/prompts/dist/index.mjs.map +1 -1
  13. package/node_modules/@clack/prompts/package.json +7 -4
  14. package/node_modules/@gdh/adapters/dist/authoring-hook-render.d.ts.map +1 -1
  15. package/node_modules/@gdh/adapters/dist/authoring-hook-render.js +1 -1
  16. package/node_modules/@gdh/adapters/dist/authoring-hook-render.js.map +1 -1
  17. package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts.map +1 -1
  18. package/node_modules/@gdh/adapters/dist/claude-settings-patch.js +4 -2
  19. package/node_modules/@gdh/adapters/dist/claude-settings-patch.js.map +1 -1
  20. package/node_modules/@gdh/adapters/dist/claude-statusline-render.d.ts.map +1 -1
  21. package/node_modules/@gdh/adapters/dist/claude-statusline-render.js +1 -1
  22. package/node_modules/@gdh/adapters/dist/claude-statusline-render.js.map +1 -1
  23. package/node_modules/@gdh/adapters/dist/claude-update-hook-render.d.ts.map +1 -1
  24. package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js +1 -1
  25. package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js.map +1 -1
  26. package/node_modules/@gdh/adapters/dist/claude-update-worker-render.d.ts.map +1 -1
  27. package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js +1 -1
  28. package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js.map +1 -1
  29. package/node_modules/@gdh/adapters/dist/deferred-actions-advisory.d.ts.map +1 -1
  30. package/node_modules/@gdh/adapters/dist/deferred-actions-advisory.js +1 -1
  31. package/node_modules/@gdh/adapters/dist/deferred-actions-advisory.js.map +1 -1
  32. package/node_modules/@gdh/adapters/dist/durable-backup.d.ts.map +1 -1
  33. package/node_modules/@gdh/adapters/dist/durable-backup.js +3 -5
  34. package/node_modules/@gdh/adapters/dist/durable-backup.js.map +1 -1
  35. package/node_modules/@gdh/adapters/dist/index.d.ts +11 -37
  36. package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
  37. package/node_modules/@gdh/adapters/dist/index.js +18 -90
  38. package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
  39. package/node_modules/@gdh/adapters/dist/inventory-sweep.d.ts.map +1 -1
  40. package/node_modules/@gdh/adapters/dist/inventory-sweep.js +1 -3
  41. package/node_modules/@gdh/adapters/dist/inventory-sweep.js.map +1 -1
  42. package/node_modules/@gdh/adapters/dist/managed-surfaces.d.ts +32 -0
  43. package/node_modules/@gdh/adapters/dist/managed-surfaces.d.ts.map +1 -0
  44. package/node_modules/@gdh/adapters/dist/managed-surfaces.js +66 -0
  45. package/node_modules/@gdh/adapters/dist/managed-surfaces.js.map +1 -0
  46. package/node_modules/@gdh/adapters/dist/process-orchestration.d.ts +1 -1
  47. package/node_modules/@gdh/adapters/dist/process-orchestration.d.ts.map +1 -1
  48. package/node_modules/@gdh/adapters/dist/process-orchestration.js +3 -2
  49. package/node_modules/@gdh/adapters/dist/process-orchestration.js.map +1 -1
  50. package/node_modules/@gdh/adapters/dist/self-update-mechanics.d.ts.map +1 -1
  51. package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +11 -23
  52. package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -1
  53. package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
  54. package/node_modules/@gdh/adapters/dist/skill-rendering.js +2 -8
  55. package/node_modules/@gdh/adapters/dist/skill-rendering.js.map +1 -1
  56. package/node_modules/@gdh/adapters/dist/template-assets.js.map +1 -1
  57. package/node_modules/@gdh/adapters/package.json +7 -8
  58. package/node_modules/@gdh/authoring/dist/authoring-state-store.d.ts.map +1 -1
  59. package/node_modules/@gdh/authoring/dist/authoring-state-store.js.map +1 -1
  60. package/node_modules/@gdh/authoring/dist/cache.d.ts.map +1 -1
  61. package/node_modules/@gdh/authoring/dist/cache.js.map +1 -1
  62. package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.d.ts +2 -2
  63. package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.d.ts.map +1 -1
  64. package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.js +2 -2
  65. package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.js.map +1 -1
  66. package/node_modules/@gdh/authoring/dist/diagnostics-broker.d.ts.map +1 -1
  67. package/node_modules/@gdh/authoring/dist/diagnostics-broker.js +15 -12
  68. package/node_modules/@gdh/authoring/dist/diagnostics-broker.js.map +1 -1
  69. package/node_modules/@gdh/authoring/dist/lsp-broker-snapshot.d.ts.map +1 -1
  70. package/node_modules/@gdh/authoring/dist/lsp-broker-snapshot.js.map +1 -1
  71. package/node_modules/@gdh/authoring/dist/lsp-client.d.ts.map +1 -1
  72. package/node_modules/@gdh/authoring/dist/lsp-client.js.map +1 -1
  73. package/node_modules/@gdh/authoring/dist/lsp-constants.d.ts +17 -0
  74. package/node_modules/@gdh/authoring/dist/lsp-constants.d.ts.map +1 -0
  75. package/node_modules/@gdh/authoring/dist/lsp-constants.js +17 -0
  76. package/node_modules/@gdh/authoring/dist/lsp-constants.js.map +1 -0
  77. package/node_modules/@gdh/authoring/dist/lsp-warmup.d.ts.map +1 -1
  78. package/node_modules/@gdh/authoring/dist/lsp-warmup.js +2 -4
  79. package/node_modules/@gdh/authoring/dist/lsp-warmup.js.map +1 -1
  80. package/node_modules/@gdh/authoring/dist/lsp.d.ts.map +1 -1
  81. package/node_modules/@gdh/authoring/dist/lsp.js +30 -64
  82. package/node_modules/@gdh/authoring/dist/lsp.js.map +1 -1
  83. package/node_modules/@gdh/authoring/dist/prepare.d.ts.map +1 -1
  84. package/node_modules/@gdh/authoring/dist/prepare.js +1 -3
  85. package/node_modules/@gdh/authoring/dist/prepare.js.map +1 -1
  86. package/node_modules/@gdh/authoring/dist/project.d.ts.map +1 -1
  87. package/node_modules/@gdh/authoring/dist/project.js +4 -13
  88. package/node_modules/@gdh/authoring/dist/project.js.map +1 -1
  89. package/node_modules/@gdh/authoring/dist/report.d.ts.map +1 -1
  90. package/node_modules/@gdh/authoring/dist/report.js +2 -11
  91. package/node_modules/@gdh/authoring/dist/report.js.map +1 -1
  92. package/node_modules/@gdh/authoring/dist/scene-resource.d.ts.map +1 -1
  93. package/node_modules/@gdh/authoring/dist/scene-resource.js.map +1 -1
  94. package/node_modules/@gdh/authoring/dist/tcp-port.d.ts +2 -0
  95. package/node_modules/@gdh/authoring/dist/tcp-port.d.ts.map +1 -0
  96. package/node_modules/@gdh/authoring/dist/tcp-port.js +23 -0
  97. package/node_modules/@gdh/authoring/dist/tcp-port.js.map +1 -0
  98. package/node_modules/@gdh/authoring/dist/warmup.d.ts.map +1 -1
  99. package/node_modules/@gdh/authoring/dist/warmup.js.map +1 -1
  100. package/node_modules/@gdh/authoring/package.json +2 -2
  101. package/node_modules/@gdh/cli/dist/args.d.ts +44 -0
  102. package/node_modules/@gdh/cli/dist/args.d.ts.map +1 -0
  103. package/node_modules/@gdh/cli/dist/args.js +124 -0
  104. package/node_modules/@gdh/cli/dist/args.js.map +1 -0
  105. package/node_modules/@gdh/cli/dist/bridge-session.d.ts +1 -1
  106. package/node_modules/@gdh/cli/dist/bridge-session.d.ts.map +1 -1
  107. package/node_modules/@gdh/cli/dist/bridge-session.js +9 -8
  108. package/node_modules/@gdh/cli/dist/bridge-session.js.map +1 -1
  109. package/node_modules/@gdh/cli/dist/index.d.ts +4 -52
  110. package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
  111. package/node_modules/@gdh/cli/dist/index.js +8 -197
  112. package/node_modules/@gdh/cli/dist/index.js.map +1 -1
  113. package/node_modules/@gdh/cli/dist/io.d.ts +10 -0
  114. package/node_modules/@gdh/cli/dist/io.d.ts.map +1 -0
  115. package/node_modules/@gdh/cli/dist/io.js +26 -0
  116. package/node_modules/@gdh/cli/dist/io.js.map +1 -0
  117. package/node_modules/@gdh/cli/dist/mcp-cleanup.d.ts +3 -0
  118. package/node_modules/@gdh/cli/dist/mcp-cleanup.d.ts.map +1 -1
  119. package/node_modules/@gdh/cli/dist/mcp-cleanup.js +47 -0
  120. package/node_modules/@gdh/cli/dist/mcp-cleanup.js.map +1 -1
  121. package/node_modules/@gdh/cli/dist/migrate.d.ts +1 -1
  122. package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
  123. package/node_modules/@gdh/cli/dist/migrate.js +23 -30
  124. package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
  125. package/node_modules/@gdh/cli/dist/self-update.d.ts.map +1 -1
  126. package/node_modules/@gdh/cli/dist/self-update.js +13 -20
  127. package/node_modules/@gdh/cli/dist/self-update.js.map +1 -1
  128. package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
  129. package/node_modules/@gdh/cli/dist/setup.js.map +1 -1
  130. package/node_modules/@gdh/cli/dist/status-command.d.ts +3 -0
  131. package/node_modules/@gdh/cli/dist/status-command.d.ts.map +1 -0
  132. package/node_modules/@gdh/cli/dist/status-command.js +44 -0
  133. package/node_modules/@gdh/cli/dist/status-command.js.map +1 -0
  134. package/node_modules/@gdh/cli/dist/update-banner.d.ts.map +1 -1
  135. package/node_modules/@gdh/cli/dist/update-banner.js +1 -1
  136. package/node_modules/@gdh/cli/dist/update-banner.js.map +1 -1
  137. package/node_modules/@gdh/cli/package.json +11 -11
  138. package/node_modules/@gdh/core/dist/dev-mode.d.ts.map +1 -1
  139. package/node_modules/@gdh/core/dist/dev-mode.js.map +1 -1
  140. package/node_modules/@gdh/core/dist/editor-operation-runner.d.ts +3 -0
  141. package/node_modules/@gdh/core/dist/editor-operation-runner.d.ts.map +1 -0
  142. package/node_modules/@gdh/core/dist/editor-operation-runner.js +682 -0
  143. package/node_modules/@gdh/core/dist/editor-operation-runner.js.map +1 -0
  144. package/node_modules/@gdh/core/dist/git-root.d.ts.map +1 -1
  145. package/node_modules/@gdh/core/dist/git-root.js +4 -1
  146. package/node_modules/@gdh/core/dist/git-root.js.map +1 -1
  147. package/node_modules/@gdh/core/dist/godot-docs-version.d.ts.map +1 -1
  148. package/node_modules/@gdh/core/dist/godot-docs-version.js.map +1 -1
  149. package/node_modules/@gdh/core/dist/godot-stderr-fatality.d.ts.map +1 -1
  150. package/node_modules/@gdh/core/dist/godot-stderr-fatality.js +1 -2
  151. package/node_modules/@gdh/core/dist/godot-stderr-fatality.js.map +1 -1
  152. package/node_modules/@gdh/core/dist/index.d.ts +10 -5
  153. package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
  154. package/node_modules/@gdh/core/dist/index.js +15 -5
  155. package/node_modules/@gdh/core/dist/index.js.map +1 -1
  156. package/node_modules/@gdh/core/dist/managed-gitignore.d.ts.map +1 -1
  157. package/node_modules/@gdh/core/dist/managed-gitignore.js +4 -14
  158. package/node_modules/@gdh/core/dist/managed-gitignore.js.map +1 -1
  159. package/node_modules/@gdh/core/dist/migrations/entries/s2c2_to_s2c3_rules_schema_v2_to_v3.d.ts.map +1 -1
  160. package/node_modules/@gdh/core/dist/migrations/entries/s2c2_to_s2c3_rules_schema_v2_to_v3.js +2 -2
  161. package/node_modules/@gdh/core/dist/migrations/entries/s2c2_to_s2c3_rules_schema_v2_to_v3.js.map +1 -1
  162. package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.d.ts.map +1 -1
  163. package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.js +6 -14
  164. package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.js.map +1 -1
  165. package/node_modules/@gdh/core/dist/migrations/entries/s3c8_to_s3c9_register_runtime_bridge_autoload.d.ts.map +1 -1
  166. package/node_modules/@gdh/core/dist/migrations/entries/s3c8_to_s3c9_register_runtime_bridge_autoload.js +7 -23
  167. package/node_modules/@gdh/core/dist/migrations/entries/s3c8_to_s3c9_register_runtime_bridge_autoload.js.map +1 -1
  168. package/node_modules/@gdh/core/dist/migrations/envelopes/envelope-output-validator.d.ts.map +1 -1
  169. package/node_modules/@gdh/core/dist/migrations/envelopes/envelope-output-validator.js.map +1 -1
  170. package/node_modules/@gdh/core/dist/migrations/envelopes/index.d.ts.map +1 -1
  171. package/node_modules/@gdh/core/dist/migrations/envelopes/index.js +1 -2
  172. package/node_modules/@gdh/core/dist/migrations/envelopes/index.js.map +1 -1
  173. package/node_modules/@gdh/core/dist/migrations/envelopes/types.d.ts.map +1 -1
  174. package/node_modules/@gdh/core/dist/migrations/golden-harness.d.ts.map +1 -1
  175. package/node_modules/@gdh/core/dist/migrations/golden-harness.js.map +1 -1
  176. package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts.map +1 -1
  177. package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js.map +1 -1
  178. package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.d.ts.map +1 -1
  179. package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js.map +1 -1
  180. package/node_modules/@gdh/core/dist/migrations/probes.d.ts.map +1 -1
  181. package/node_modules/@gdh/core/dist/migrations/probes.js.map +1 -1
  182. package/node_modules/@gdh/core/dist/migrations/registry.d.ts +1 -1
  183. package/node_modules/@gdh/core/dist/migrations/registry.d.ts.map +1 -1
  184. package/node_modules/@gdh/core/dist/migrations/registry.js +3 -6
  185. package/node_modules/@gdh/core/dist/migrations/registry.js.map +1 -1
  186. package/node_modules/@gdh/core/dist/official-docs.d.ts.map +1 -1
  187. package/node_modules/@gdh/core/dist/process-termination.d.ts +29 -0
  188. package/node_modules/@gdh/core/dist/process-termination.d.ts.map +1 -0
  189. package/node_modules/@gdh/core/dist/process-termination.js +125 -0
  190. package/node_modules/@gdh/core/dist/process-termination.js.map +1 -0
  191. package/node_modules/@gdh/core/dist/release-span-preview.d.ts.map +1 -1
  192. package/node_modules/@gdh/core/dist/release-span-preview.js +1 -1
  193. package/node_modules/@gdh/core/dist/release-span-preview.js.map +1 -1
  194. package/node_modules/@gdh/core/dist/release-span-update-contract.d.ts.map +1 -1
  195. package/node_modules/@gdh/core/dist/release-span-update-contract.js +5 -10
  196. package/node_modules/@gdh/core/dist/release-span-update-contract.js.map +1 -1
  197. package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.d.ts.map +1 -1
  198. package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.js.map +1 -1
  199. package/node_modules/@gdh/core/dist/state/migration-state.d.ts.map +1 -1
  200. package/node_modules/@gdh/core/dist/state/migration-state.js +3 -8
  201. package/node_modules/@gdh/core/dist/state/migration-state.js.map +1 -1
  202. package/node_modules/@gdh/core/dist/state/migration-trace.d.ts.map +1 -1
  203. package/node_modules/@gdh/core/dist/state/migration-trace.js +3 -8
  204. package/node_modules/@gdh/core/dist/state/migration-trace.js.map +1 -1
  205. package/node_modules/@gdh/core/dist/state/render-inventory.d.ts.map +1 -1
  206. package/node_modules/@gdh/core/dist/state/render-inventory.js.map +1 -1
  207. package/node_modules/@gdh/core/dist/update-cache.d.ts.map +1 -1
  208. package/node_modules/@gdh/core/dist/update-cache.js.map +1 -1
  209. package/node_modules/@gdh/core/dist/update-probe.d.ts.map +1 -1
  210. package/node_modules/@gdh/core/dist/update-probe.js +1 -3
  211. package/node_modules/@gdh/core/dist/update-probe.js.map +1 -1
  212. package/node_modules/@gdh/core/package.json +1 -1
  213. package/node_modules/@gdh/docs/dist/agent-contract.d.ts.map +1 -1
  214. package/node_modules/@gdh/docs/dist/agent-contract.js +2 -4
  215. package/node_modules/@gdh/docs/dist/agent-contract.js.map +1 -1
  216. package/node_modules/@gdh/docs/dist/files.d.ts +1 -1
  217. package/node_modules/@gdh/docs/dist/files.d.ts.map +1 -1
  218. package/node_modules/@gdh/docs/dist/guidance.js +1 -1
  219. package/node_modules/@gdh/docs/dist/guidance.js.map +1 -1
  220. package/node_modules/@gdh/docs/dist/index.d.ts +4 -4
  221. package/node_modules/@gdh/docs/dist/index.d.ts.map +1 -1
  222. package/node_modules/@gdh/docs/dist/index.js +3 -3
  223. package/node_modules/@gdh/docs/dist/index.js.map +1 -1
  224. package/node_modules/@gdh/docs/dist/official-docs.d.ts.map +1 -1
  225. package/node_modules/@gdh/docs/dist/official-docs.js +16 -5
  226. package/node_modules/@gdh/docs/dist/official-docs.js.map +1 -1
  227. package/node_modules/@gdh/docs/dist/query.d.ts.map +1 -1
  228. package/node_modules/@gdh/docs/dist/query.js +8 -3
  229. package/node_modules/@gdh/docs/dist/query.js.map +1 -1
  230. package/node_modules/@gdh/docs/dist/recovery-hints.d.ts.map +1 -1
  231. package/node_modules/@gdh/docs/dist/recovery-hints.js +0 -1
  232. package/node_modules/@gdh/docs/dist/recovery-hints.js.map +1 -1
  233. package/node_modules/@gdh/docs/dist/template-assets.js.map +1 -1
  234. package/node_modules/@gdh/docs/package.json +2 -2
  235. package/node_modules/@gdh/editor/dist/index.d.ts +1 -3
  236. package/node_modules/@gdh/editor/dist/index.d.ts.map +1 -1
  237. package/node_modules/@gdh/editor/dist/index.js +46 -683
  238. package/node_modules/@gdh/editor/dist/index.js.map +1 -1
  239. package/node_modules/@gdh/editor/package.json +2 -2
  240. package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts +8 -1
  241. package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts.map +1 -1
  242. package/node_modules/@gdh/mcp/dist/bridge-tools.js +81 -2
  243. package/node_modules/@gdh/mcp/dist/bridge-tools.js.map +1 -1
  244. package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
  245. package/node_modules/@gdh/mcp/dist/index.js +10 -77
  246. package/node_modules/@gdh/mcp/dist/index.js.map +1 -1
  247. package/node_modules/@gdh/mcp/package.json +8 -10
  248. package/node_modules/@gdh/observability/dist/guidance-audit.d.ts.map +1 -1
  249. package/node_modules/@gdh/observability/dist/guidance-audit.js +11 -21
  250. package/node_modules/@gdh/observability/dist/guidance-audit.js.map +1 -1
  251. package/node_modules/@gdh/observability/dist/index.d.ts +2 -2
  252. package/node_modules/@gdh/observability/dist/index.d.ts.map +1 -1
  253. package/node_modules/@gdh/observability/dist/index.js +1 -1
  254. package/node_modules/@gdh/observability/dist/index.js.map +1 -1
  255. package/node_modules/@gdh/observability/dist/runtime-bundles.d.ts.map +1 -1
  256. package/node_modules/@gdh/observability/dist/runtime-bundles.js +3 -10
  257. package/node_modules/@gdh/observability/dist/runtime-bundles.js.map +1 -1
  258. package/node_modules/@gdh/observability/dist/runtime-corpus.d.ts.map +1 -1
  259. package/node_modules/@gdh/observability/dist/runtime-corpus.js +1 -1
  260. package/node_modules/@gdh/observability/dist/runtime-corpus.js.map +1 -1
  261. package/node_modules/@gdh/observability/package.json +3 -2
  262. package/node_modules/@gdh/runtime/dist/bridge-broker-client.d.ts +2 -1
  263. package/node_modules/@gdh/runtime/dist/bridge-broker-client.d.ts.map +1 -1
  264. package/node_modules/@gdh/runtime/dist/bridge-broker-client.js +8 -1
  265. package/node_modules/@gdh/runtime/dist/bridge-broker-client.js.map +1 -1
  266. package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts +2 -1
  267. package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts.map +1 -1
  268. package/node_modules/@gdh/runtime/dist/bridge-broker.js +71 -21
  269. package/node_modules/@gdh/runtime/dist/bridge-broker.js.map +1 -1
  270. package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts +1 -1
  271. package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts.map +1 -1
  272. package/node_modules/@gdh/runtime/dist/bridge-surface.js +2 -2
  273. package/node_modules/@gdh/runtime/dist/bridge-surface.js.map +1 -1
  274. package/node_modules/@gdh/runtime/dist/docker-provider.d.ts +1 -1
  275. package/node_modules/@gdh/runtime/dist/docker-provider.d.ts.map +1 -1
  276. package/node_modules/@gdh/runtime/dist/docker-provider.js +5 -16
  277. package/node_modules/@gdh/runtime/dist/docker-provider.js.map +1 -1
  278. package/node_modules/@gdh/runtime/dist/index.d.ts +1 -1
  279. package/node_modules/@gdh/runtime/dist/index.d.ts.map +1 -1
  280. package/node_modules/@gdh/runtime/dist/index.js +65 -18
  281. package/node_modules/@gdh/runtime/dist/index.js.map +1 -1
  282. package/node_modules/@gdh/runtime/dist/knowledge-surface.d.ts.map +1 -1
  283. package/node_modules/@gdh/runtime/dist/knowledge-surface.js +21 -10
  284. package/node_modules/@gdh/runtime/dist/knowledge-surface.js.map +1 -1
  285. package/node_modules/@gdh/runtime/package.json +2 -3
  286. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.d.ts.map +1 -1
  287. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.js +1 -5
  288. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.js.map +1 -1
  289. package/node_modules/@gdh/scan/dist/index.d.ts +3 -3
  290. package/node_modules/@gdh/scan/dist/index.d.ts.map +1 -1
  291. package/node_modules/@gdh/scan/dist/index.js +3 -3
  292. package/node_modules/@gdh/scan/dist/index.js.map +1 -1
  293. package/node_modules/@gdh/scan/dist/inventory-cache.js +1 -1
  294. package/node_modules/@gdh/scan/dist/inventory-cache.js.map +1 -1
  295. package/node_modules/@gdh/scan/dist/onboard.d.ts +1 -2
  296. package/node_modules/@gdh/scan/dist/onboard.d.ts.map +1 -1
  297. package/node_modules/@gdh/scan/dist/onboard.js +4 -5
  298. package/node_modules/@gdh/scan/dist/onboard.js.map +1 -1
  299. package/node_modules/@gdh/scan/dist/scan.d.ts.map +1 -1
  300. package/node_modules/@gdh/scan/dist/scan.js +4 -2
  301. package/node_modules/@gdh/scan/dist/scan.js.map +1 -1
  302. package/node_modules/@gdh/scan/package.json +3 -3
  303. package/node_modules/@gdh/verify/dist/corpus.d.ts.map +1 -1
  304. package/node_modules/@gdh/verify/dist/corpus.js +7 -6
  305. package/node_modules/@gdh/verify/dist/corpus.js.map +1 -1
  306. package/node_modules/@gdh/verify/dist/index.d.ts.map +1 -1
  307. package/node_modules/@gdh/verify/dist/index.js +0 -1
  308. package/node_modules/@gdh/verify/dist/index.js.map +1 -1
  309. package/node_modules/@gdh/verify/dist/readiness.d.ts.map +1 -1
  310. package/node_modules/@gdh/verify/dist/readiness.js.map +1 -1
  311. package/node_modules/@gdh/verify/dist/scenarios.d.ts +1 -1
  312. package/node_modules/@gdh/verify/dist/scenarios.d.ts.map +1 -1
  313. package/node_modules/@gdh/verify/dist/scenarios.js +14 -11
  314. package/node_modules/@gdh/verify/dist/scenarios.js.map +1 -1
  315. package/node_modules/@gdh/verify/package.json +6 -7
  316. package/node_modules/@hono/node-server/dist/index.js +22 -0
  317. package/node_modules/@hono/node-server/dist/index.mjs +22 -0
  318. package/node_modules/@hono/node-server/dist/listener.js +22 -0
  319. package/node_modules/@hono/node-server/dist/listener.mjs +22 -0
  320. package/node_modules/@hono/node-server/dist/request.js +11 -0
  321. package/node_modules/@hono/node-server/dist/request.mjs +11 -0
  322. package/node_modules/@hono/node-server/dist/response.js +11 -0
  323. package/node_modules/@hono/node-server/dist/response.mjs +11 -0
  324. package/node_modules/@hono/node-server/dist/server.js +22 -0
  325. package/node_modules/@hono/node-server/dist/server.mjs +22 -0
  326. package/node_modules/@hono/node-server/dist/utils.d.mts +2 -2
  327. package/node_modules/@hono/node-server/dist/utils.d.ts +2 -2
  328. package/node_modules/@hono/node-server/dist/vercel.js +22 -0
  329. package/node_modules/@hono/node-server/dist/vercel.mjs +22 -0
  330. package/node_modules/@hono/node-server/package.json +1 -1
  331. package/node_modules/ajv/README.md +1 -1
  332. package/node_modules/ajv/dist/core.js +1 -1
  333. package/node_modules/ajv/dist/core.js.map +1 -1
  334. package/node_modules/ajv/lib/core.ts +1 -1
  335. package/node_modules/ajv/package.json +2 -3
  336. package/node_modules/eventsource-parser/LICENSE +1 -1
  337. package/node_modules/eventsource-parser/dist/index.cjs +104 -44
  338. package/node_modules/eventsource-parser/dist/index.cjs.map +1 -1
  339. package/node_modules/eventsource-parser/dist/index.d.cts +23 -21
  340. package/node_modules/eventsource-parser/dist/index.d.ts +23 -21
  341. package/node_modules/eventsource-parser/dist/index.js +104 -44
  342. package/node_modules/eventsource-parser/dist/index.js.map +1 -1
  343. package/node_modules/eventsource-parser/dist/stream.d.cts +22 -19
  344. package/node_modules/eventsource-parser/dist/stream.d.ts +22 -19
  345. package/node_modules/eventsource-parser/package.json +54 -77
  346. package/node_modules/eventsource-parser/src/parse.ts +270 -107
  347. package/node_modules/express-rate-limit/dist/index.cjs +51 -10
  348. package/node_modules/express-rate-limit/dist/index.d.cts +31 -1
  349. package/node_modules/express-rate-limit/dist/index.d.mts +31 -1
  350. package/node_modules/express-rate-limit/dist/index.d.ts +31 -1
  351. package/node_modules/express-rate-limit/dist/index.mjs +51 -10
  352. package/node_modules/express-rate-limit/package.json +3 -2
  353. package/node_modules/express-rate-limit/readme.md +3 -0
  354. package/node_modules/fast-string-truncated-width/dist/index.js +36 -96
  355. package/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -3
  356. package/node_modules/fast-string-truncated-width/dist/utils.d.ts +3 -3
  357. package/node_modules/fast-string-truncated-width/dist/utils.js +14 -9
  358. package/node_modules/fast-string-truncated-width/package.json +1 -1
  359. package/node_modules/fast-string-truncated-width/readme.md +2 -3
  360. package/node_modules/fast-string-width/package.json +2 -2
  361. package/node_modules/fast-string-width/readme.md +0 -3
  362. package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
  363. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  364. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
  365. package/node_modules/fast-uri/LICENSE +1 -3
  366. package/node_modules/fast-uri/README.md +13 -4
  367. package/node_modules/fast-uri/index.js +90 -24
  368. package/node_modules/fast-uri/lib/utils.js +129 -22
  369. package/node_modules/fast-uri/package.json +3 -4
  370. package/node_modules/fast-wrap-ansi/lib/main.js +4 -1
  371. package/node_modules/fast-wrap-ansi/lib/main.js.map +1 -1
  372. package/node_modules/fast-wrap-ansi/package.json +2 -2
  373. package/node_modules/get-intrinsic/CHANGELOG.md +0 -7
  374. package/node_modules/get-intrinsic/index.js +13 -8
  375. package/node_modules/get-intrinsic/package.json +4 -7
  376. package/node_modules/hasown/CHANGELOG.md +11 -0
  377. package/node_modules/hasown/eslint.config.mjs +6 -0
  378. package/node_modules/hasown/index.d.ts +1 -0
  379. package/node_modules/hasown/package.json +14 -14
  380. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +9 -2
  381. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +9 -2
  382. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +2 -0
  383. package/node_modules/hono/dist/cjs/jsx/base.js +7 -1
  384. package/node_modules/hono/dist/cjs/jsx/dom/render.js +22 -9
  385. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +3 -0
  386. package/node_modules/hono/dist/cjs/jsx/utils.js +155 -5
  387. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +21 -30
  388. package/node_modules/hono/dist/cjs/middleware/cache/index.js +11 -3
  389. package/node_modules/hono/dist/cjs/middleware/cors/index.js +2 -5
  390. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +1 -1
  391. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +2 -2
  392. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +1 -1
  393. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +12 -6
  394. package/node_modules/hono/dist/helper/ssg/ssg.js +2 -0
  395. package/node_modules/hono/dist/jsx/base.js +13 -2
  396. package/node_modules/hono/dist/jsx/dom/render.js +22 -9
  397. package/node_modules/hono/dist/jsx/jsx-runtime.js +4 -1
  398. package/node_modules/hono/dist/jsx/utils.js +153 -5
  399. package/node_modules/hono/dist/middleware/body-limit/index.js +21 -30
  400. package/node_modules/hono/dist/middleware/cache/index.js +11 -3
  401. package/node_modules/hono/dist/middleware/cors/index.js +2 -5
  402. package/node_modules/hono/dist/middleware/method-override/index.js +1 -1
  403. package/node_modules/hono/dist/middleware/trailing-slash/index.js +2 -2
  404. package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -1
  405. package/node_modules/hono/dist/types/jsx/utils.d.ts +3 -1
  406. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +2 -0
  407. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +1 -1
  408. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +16 -0
  409. package/node_modules/hono/dist/types/types.d.ts +116 -116
  410. package/node_modules/hono/dist/utils/jwt/jws.js +1 -1
  411. package/node_modules/hono/dist/utils/jwt/jwt.js +12 -6
  412. package/node_modules/hono/package.json +1 -1
  413. package/node_modules/ip-address/README.md +249 -76
  414. package/node_modules/ip-address/dist/address-error.d.ts +0 -1
  415. package/node_modules/ip-address/dist/address-error.js.map +1 -1
  416. package/node_modules/ip-address/dist/common.d.ts +6 -1
  417. package/node_modules/ip-address/dist/common.js +21 -0
  418. package/node_modules/ip-address/dist/common.js.map +1 -1
  419. package/node_modules/ip-address/dist/ip-address.d.ts +0 -1
  420. package/node_modules/ip-address/dist/ip-address.js.map +1 -1
  421. package/node_modules/ip-address/dist/ipv4.d.ts +115 -57
  422. package/node_modules/ip-address/dist/ipv4.js +193 -68
  423. package/node_modules/ip-address/dist/ipv4.js.map +1 -1
  424. package/node_modules/ip-address/dist/ipv6.d.ts +172 -111
  425. package/node_modules/ip-address/dist/ipv6.js +345 -131
  426. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  427. package/node_modules/ip-address/dist/v4/constants.d.ts +0 -1
  428. package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
  429. package/node_modules/ip-address/dist/v6/constants.d.ts +0 -1
  430. package/node_modules/ip-address/dist/v6/constants.js +5 -0
  431. package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  432. package/node_modules/ip-address/dist/v6/helpers.d.ts +1 -1
  433. package/node_modules/ip-address/dist/v6/helpers.js +12 -3
  434. package/node_modules/ip-address/dist/v6/helpers.js.map +1 -1
  435. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -1
  436. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -1
  437. package/node_modules/ip-address/package.json +45 -35
  438. package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  439. package/node_modules/jose/dist/webapi/lib/pbes2kw.js +3 -0
  440. package/node_modules/jose/package.json +1 -1
  441. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +5 -3
  442. package/node_modules/yaml/browser/dist/nodes/Alias.js +2 -0
  443. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +11 -8
  444. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +2 -1
  445. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +5 -3
  446. package/node_modules/yaml/dist/nodes/Alias.js +2 -0
  447. package/node_modules/yaml/dist/nodes/Scalar.d.ts +5 -1
  448. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +10 -7
  449. package/node_modules/yaml/dist/stringify/stringifyNumber.js +2 -1
  450. package/node_modules/yaml/package.json +1 -1
  451. package/node_modules/zod/README.md +1 -18
  452. package/node_modules/zod/locales/package.json +2 -1
  453. package/node_modules/zod/mini/package.json +2 -1
  454. package/node_modules/zod/package.json +1 -1
  455. package/node_modules/zod/src/v4/classic/errors.ts +2 -2
  456. package/node_modules/zod/src/v4/classic/external.ts +1 -0
  457. package/node_modules/zod/src/v4/classic/from-json-schema.ts +39 -23
  458. package/node_modules/zod/src/v4/classic/parse.ts +6 -6
  459. package/node_modules/zod/src/v4/classic/schemas.ts +414 -151
  460. package/node_modules/zod/src/v4/core/api.ts +31 -6
  461. package/node_modules/zod/src/v4/core/checks.ts +1 -1
  462. package/node_modules/zod/src/v4/core/core.ts +17 -2
  463. package/node_modules/zod/src/v4/core/errors.ts +31 -24
  464. package/node_modules/zod/src/v4/core/json-schema-processors.ts +17 -18
  465. package/node_modules/zod/src/v4/core/parse.ts +7 -7
  466. package/node_modules/zod/src/v4/core/regexes.ts +8 -1
  467. package/node_modules/zod/src/v4/core/schemas.ts +263 -71
  468. package/node_modules/zod/src/v4/core/to-json-schema.ts +10 -1
  469. package/node_modules/zod/src/v4/core/util.ts +52 -35
  470. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  471. package/node_modules/zod/src/v4/locales/el.ts +121 -0
  472. package/node_modules/zod/src/v4/locales/en.ts +4 -0
  473. package/node_modules/zod/src/v4/locales/fr.ts +24 -8
  474. package/node_modules/zod/src/v4/locales/hr.ts +131 -0
  475. package/node_modules/zod/src/v4/locales/index.ts +3 -0
  476. package/node_modules/zod/src/v4/locales/it.ts +1 -1
  477. package/node_modules/zod/src/v4/locales/ka.ts +8 -8
  478. package/node_modules/zod/src/v4/locales/ro.ts +129 -0
  479. package/node_modules/zod/src/v4/locales/uz.ts +1 -0
  480. package/node_modules/zod/src/v4/mini/external.ts +1 -0
  481. package/node_modules/zod/src/v4/mini/schemas.ts +56 -25
  482. package/node_modules/zod/v3/package.json +2 -1
  483. package/node_modules/zod/v4/classic/errors.js +2 -2
  484. package/node_modules/zod/v4/classic/external.d.cts +1 -0
  485. package/node_modules/zod/v4/classic/external.d.ts +1 -0
  486. package/node_modules/zod/v4/classic/from-json-schema.cjs +31 -16
  487. package/node_modules/zod/v4/classic/from-json-schema.js +31 -16
  488. package/node_modules/zod/v4/classic/package.json +2 -1
  489. package/node_modules/zod/v4/classic/schemas.cjs +358 -119
  490. package/node_modules/zod/v4/classic/schemas.d.cts +42 -14
  491. package/node_modules/zod/v4/classic/schemas.d.ts +42 -14
  492. package/node_modules/zod/v4/classic/schemas.js +356 -118
  493. package/node_modules/zod/v4/core/api.cjs +7 -2
  494. package/node_modules/zod/v4/core/api.d.cts +26 -5
  495. package/node_modules/zod/v4/core/api.d.ts +26 -5
  496. package/node_modules/zod/v4/core/api.js +7 -2
  497. package/node_modules/zod/v4/core/checks.d.cts +1 -1
  498. package/node_modules/zod/v4/core/checks.d.ts +1 -1
  499. package/node_modules/zod/v4/core/core.cjs +3 -1
  500. package/node_modules/zod/v4/core/core.js +4 -2
  501. package/node_modules/zod/v4/core/errors.cjs +26 -23
  502. package/node_modules/zod/v4/core/errors.d.cts +1 -0
  503. package/node_modules/zod/v4/core/errors.d.ts +1 -0
  504. package/node_modules/zod/v4/core/errors.js +26 -23
  505. package/node_modules/zod/v4/core/json-schema-processors.cjs +16 -20
  506. package/node_modules/zod/v4/core/json-schema-processors.js +16 -20
  507. package/node_modules/zod/v4/core/package.json +2 -1
  508. package/node_modules/zod/v4/core/parse.cjs +7 -7
  509. package/node_modules/zod/v4/core/parse.js +7 -7
  510. package/node_modules/zod/v4/core/regexes.cjs +9 -3
  511. package/node_modules/zod/v4/core/regexes.d.cts +6 -0
  512. package/node_modules/zod/v4/core/regexes.d.ts +6 -0
  513. package/node_modules/zod/v4/core/regexes.js +7 -1
  514. package/node_modules/zod/v4/core/schemas.cjs +211 -65
  515. package/node_modules/zod/v4/core/schemas.d.cts +39 -1
  516. package/node_modules/zod/v4/core/schemas.d.ts +39 -1
  517. package/node_modules/zod/v4/core/schemas.js +210 -64
  518. package/node_modules/zod/v4/core/to-json-schema.cjs +12 -1
  519. package/node_modules/zod/v4/core/to-json-schema.js +12 -1
  520. package/node_modules/zod/v4/core/util.cjs +54 -30
  521. package/node_modules/zod/v4/core/util.d.cts +1 -0
  522. package/node_modules/zod/v4/core/util.d.ts +1 -0
  523. package/node_modules/zod/v4/core/util.js +55 -32
  524. package/node_modules/zod/v4/core/versions.cjs +2 -2
  525. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  526. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  527. package/node_modules/zod/v4/core/versions.js +2 -2
  528. package/node_modules/zod/v4/locales/el.cjs +136 -0
  529. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  530. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  531. package/node_modules/zod/v4/locales/el.js +109 -0
  532. package/node_modules/zod/v4/locales/en.cjs +4 -0
  533. package/node_modules/zod/v4/locales/en.js +4 -0
  534. package/node_modules/zod/v4/locales/fr.cjs +24 -7
  535. package/node_modules/zod/v4/locales/fr.js +24 -7
  536. package/node_modules/zod/v4/locales/hr.cjs +149 -0
  537. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  538. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  539. package/node_modules/zod/v4/locales/hr.js +122 -0
  540. package/node_modules/zod/v4/locales/index.cjs +8 -1
  541. package/node_modules/zod/v4/locales/index.d.cts +3 -0
  542. package/node_modules/zod/v4/locales/index.d.ts +3 -0
  543. package/node_modules/zod/v4/locales/index.js +3 -0
  544. package/node_modules/zod/v4/locales/it.cjs +1 -1
  545. package/node_modules/zod/v4/locales/it.js +1 -1
  546. package/node_modules/zod/v4/locales/ka.cjs +8 -8
  547. package/node_modules/zod/v4/locales/ka.js +8 -8
  548. package/node_modules/zod/v4/locales/package.json +2 -1
  549. package/node_modules/zod/v4/locales/ro.cjs +146 -0
  550. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  551. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  552. package/node_modules/zod/v4/locales/ro.js +119 -0
  553. package/node_modules/zod/v4/locales/uz.cjs +1 -0
  554. package/node_modules/zod/v4/locales/uz.js +1 -0
  555. package/node_modules/zod/v4/mini/external.d.cts +1 -0
  556. package/node_modules/zod/v4/mini/external.d.ts +1 -0
  557. package/node_modules/zod/v4/mini/package.json +2 -1
  558. package/node_modules/zod/v4/mini/schemas.cjs +41 -4
  559. package/node_modules/zod/v4/mini/schemas.d.cts +28 -10
  560. package/node_modules/zod/v4/mini/schemas.d.ts +28 -10
  561. package/node_modules/zod/v4/mini/schemas.js +40 -4
  562. package/node_modules/zod/v4/package.json +2 -1
  563. package/node_modules/zod/v4-mini/package.json +2 -1
  564. package/package.json +12 -12
  565. package/node_modules/async-function/.eslintrc +0 -16
  566. package/node_modules/async-function/.github/FUNDING.yml +0 -12
  567. package/node_modules/async-function/.nycrc +0 -9
  568. package/node_modules/async-function/CHANGELOG.md +0 -16
  569. package/node_modules/async-function/LICENSE +0 -21
  570. package/node_modules/async-function/README.md +0 -51
  571. package/node_modules/async-function/index.d.mts +0 -3
  572. package/node_modules/async-function/index.d.ts +0 -13
  573. package/node_modules/async-function/index.js +0 -8
  574. package/node_modules/async-function/index.mjs +0 -4
  575. package/node_modules/async-function/legacy.js +0 -18
  576. package/node_modules/async-function/package.json +0 -86
  577. package/node_modules/async-function/require.mjs +0 -5
  578. package/node_modules/async-function/tsconfig.json +0 -9
  579. package/node_modules/async-generator-function/.eslintrc +0 -26
  580. package/node_modules/async-generator-function/.github/FUNDING.yml +0 -12
  581. package/node_modules/async-generator-function/.nycrc +0 -9
  582. package/node_modules/async-generator-function/CHANGELOG.md +0 -15
  583. package/node_modules/async-generator-function/LICENSE +0 -21
  584. package/node_modules/async-generator-function/README.md +0 -52
  585. package/node_modules/async-generator-function/index.d.mts +0 -3
  586. package/node_modules/async-generator-function/index.d.ts +0 -22
  587. package/node_modules/async-generator-function/index.js +0 -8
  588. package/node_modules/async-generator-function/index.mjs +0 -4
  589. package/node_modules/async-generator-function/legacy.js +0 -18
  590. package/node_modules/async-generator-function/package.json +0 -87
  591. package/node_modules/async-generator-function/require.mjs +0 -5
  592. package/node_modules/async-generator-function/tsconfig.json +0 -9
  593. package/node_modules/fast-uri/.github/.stale.yml +0 -21
  594. package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
  595. package/node_modules/generator-function/.eslintrc +0 -16
  596. package/node_modules/generator-function/.github/FUNDING.yml +0 -12
  597. package/node_modules/generator-function/.nycrc +0 -9
  598. package/node_modules/generator-function/CHANGELOG.md +0 -27
  599. package/node_modules/generator-function/LICENSE.md +0 -7
  600. package/node_modules/generator-function/README.md +0 -51
  601. package/node_modules/generator-function/index.d.mts +0 -3
  602. package/node_modules/generator-function/index.d.ts +0 -3
  603. package/node_modules/generator-function/index.js +0 -8
  604. package/node_modules/generator-function/index.mjs +0 -4
  605. package/node_modules/generator-function/legacy.js +0 -18
  606. package/node_modules/generator-function/package.json +0 -88
  607. package/node_modules/generator-function/require.mjs +0 -5
  608. package/node_modules/generator-function/tsconfig.json +0 -9
  609. package/node_modules/hasown/.eslintrc +0 -5
  610. package/node_modules/ip-address/dist/address-error.d.ts.map +0 -1
  611. package/node_modules/ip-address/dist/common.d.ts.map +0 -1
  612. package/node_modules/ip-address/dist/ip-address.d.ts.map +0 -1
  613. package/node_modules/ip-address/dist/ipv4.d.ts.map +0 -1
  614. package/node_modules/ip-address/dist/ipv6.d.ts.map +0 -1
  615. package/node_modules/ip-address/dist/v4/constants.d.ts.map +0 -1
  616. package/node_modules/ip-address/dist/v6/constants.d.ts.map +0 -1
  617. package/node_modules/ip-address/dist/v6/helpers.d.ts.map +0 -1
  618. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +0 -1
  619. package/node_modules/ip-address/src/address-error.ts +0 -11
  620. package/node_modules/ip-address/src/common.ts +0 -55
  621. package/node_modules/ip-address/src/ip-address.ts +0 -7
  622. package/node_modules/ip-address/src/ipv4.ts +0 -394
  623. package/node_modules/ip-address/src/ipv6.ts +0 -1212
  624. package/node_modules/ip-address/src/v4/constants.ts +0 -7
  625. package/node_modules/ip-address/src/v6/constants.ts +0 -79
  626. package/node_modules/ip-address/src/v6/helpers.ts +0 -48
  627. package/node_modules/ip-address/src/v6/regular-expressions.ts +0 -94
  628. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/.npmignore +0 -0
  629. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/LICENSE +0 -0
  630. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/README.md +0 -0
  631. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/index.js +0 -0
  632. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/mode.js +0 -0
  633. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/package.json +0 -0
  634. /package/node_modules/{cross-spawn/node_modules/isexe → isexe}/windows.js +0 -0
  635. /package/node_modules/{cross-spawn/node_modules/which → which}/LICENSE +0 -0
  636. /package/node_modules/{cross-spawn/node_modules/which → which}/README.md +0 -0
  637. /package/node_modules/{cross-spawn/node_modules/which → which}/bin/node-which +0 -0
  638. /package/node_modules/{cross-spawn/node_modules/which → which}/package.json +0 -0
  639. /package/node_modules/{cross-spawn/node_modules/which → which}/which.js +0 -0
@@ -0,0 +1,129 @@
1
+ import type { $ZodStringFormats } from "../core/checks.js";
2
+ import type * as errors from "../core/errors.js";
3
+ import * as util from "../core/util.js";
4
+
5
+ const error: () => errors.$ZodErrorMap = () => {
6
+ const Sizable: Record<string, { unit: string; verb: string }> = {
7
+ string: { unit: "caractere", verb: "să aibă" },
8
+ file: { unit: "octeți", verb: "să aibă" },
9
+ array: { unit: "elemente", verb: "să aibă" },
10
+ set: { unit: "elemente", verb: "să aibă" },
11
+ map: { unit: "intrări", verb: "să aibă" },
12
+ };
13
+
14
+ function getSizing(origin: string): { unit: string; verb: string } | null {
15
+ return Sizable[origin] ?? null;
16
+ }
17
+
18
+ const FormatDictionary: {
19
+ [k in $ZodStringFormats | (string & {})]?: string;
20
+ } = {
21
+ regex: "intrare",
22
+ email: "adresă de email",
23
+ url: "URL",
24
+ emoji: "emoji",
25
+ uuid: "UUID",
26
+ uuidv4: "UUIDv4",
27
+ uuidv6: "UUIDv6",
28
+ nanoid: "nanoid",
29
+ guid: "GUID",
30
+ cuid: "cuid",
31
+ cuid2: "cuid2",
32
+ ulid: "ULID",
33
+ xid: "XID",
34
+ ksuid: "KSUID",
35
+ datetime: "dată și oră ISO",
36
+ date: "dată ISO",
37
+ time: "oră ISO",
38
+ duration: "durată ISO",
39
+ ipv4: "adresă IPv4",
40
+ ipv6: "adresă IPv6",
41
+ mac: "adresă MAC",
42
+ cidrv4: "interval IPv4",
43
+ cidrv6: "interval IPv6",
44
+ base64: "șir codat base64",
45
+ base64url: "șir codat base64url",
46
+ json_string: "șir JSON",
47
+ e164: "număr E.164",
48
+ jwt: "JWT",
49
+ template_literal: "intrare",
50
+ };
51
+
52
+ const TypeDictionary: {
53
+ [k in errors.$ZodInvalidTypeExpected | (string & {})]?: string;
54
+ } = {
55
+ nan: "NaN",
56
+ string: "șir",
57
+ number: "număr",
58
+ boolean: "boolean",
59
+ function: "funcție",
60
+ array: "matrice",
61
+ object: "obiect",
62
+ undefined: "nedefinit",
63
+ symbol: "simbol",
64
+ bigint: "număr mare",
65
+ void: "void",
66
+ never: "never",
67
+ map: "hartă",
68
+ set: "set",
69
+ };
70
+
71
+ return (issue) => {
72
+ switch (issue.code) {
73
+ case "invalid_type": {
74
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
75
+ const receivedType = util.parsedType(issue.input);
76
+ const received = TypeDictionary[receivedType] ?? receivedType;
77
+ return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
78
+ }
79
+
80
+ case "invalid_value":
81
+ if (issue.values.length === 1) return `Intrare invalidă: așteptat ${util.stringifyPrimitive(issue.values[0])}`;
82
+ return `Opțiune invalidă: așteptat una dintre ${util.joinValues(issue.values, "|")}`;
83
+ case "too_big": {
84
+ const adj = issue.inclusive ? "<=" : "<";
85
+ const sizing = getSizing(issue.origin);
86
+ if (sizing)
87
+ return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemente"}`;
88
+ return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} să fie ${adj}${issue.maximum.toString()}`;
89
+ }
90
+ case "too_small": {
91
+ const adj = issue.inclusive ? ">=" : ">";
92
+ const sizing = getSizing(issue.origin);
93
+ if (sizing) {
94
+ return `Prea mic: așteptat ca ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
95
+ }
96
+
97
+ return `Prea mic: așteptat ca ${issue.origin} să fie ${adj}${issue.minimum.toString()}`;
98
+ }
99
+ case "invalid_format": {
100
+ const _issue = issue as errors.$ZodStringFormatIssues;
101
+ if (_issue.format === "starts_with") {
102
+ return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
103
+ }
104
+ if (_issue.format === "ends_with") return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
105
+ if (_issue.format === "includes") return `Șir invalid: trebuie să includă "${_issue.includes}"`;
106
+ if (_issue.format === "regex") return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
107
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue.format}`;
108
+ }
109
+ case "not_multiple_of":
110
+ return `Număr invalid: trebuie să fie multiplu de ${issue.divisor}`;
111
+ case "unrecognized_keys":
112
+ return `Chei nerecunoscute: ${util.joinValues(issue.keys, ", ")}`;
113
+ case "invalid_key":
114
+ return `Cheie invalidă în ${issue.origin}`;
115
+ case "invalid_union":
116
+ return "Intrare invalidă";
117
+ case "invalid_element":
118
+ return `Valoare invalidă în ${issue.origin}`;
119
+ default:
120
+ return `Intrare invalidă`;
121
+ }
122
+ };
123
+ };
124
+
125
+ export default function (): { localeError: errors.$ZodErrorMap } {
126
+ return {
127
+ localeError: error(),
128
+ };
129
+ }
@@ -8,6 +8,7 @@ const error: () => errors.$ZodErrorMap = () => {
8
8
  file: { unit: "bayt", verb: "bo‘lishi kerak" },
9
9
  array: { unit: "element", verb: "bo‘lishi kerak" },
10
10
  set: { unit: "element", verb: "bo‘lishi kerak" },
11
+ map: { unit: "yozuv", verb: "bo‘lishi kerak" },
11
12
  };
12
13
 
13
14
  function getSizing(origin: string): { unit: string; verb: string } | null {
@@ -4,6 +4,7 @@ export * from "./schemas.js";
4
4
  export * from "./checks.js";
5
5
 
6
6
  export type { infer, output, input } from "../core/index.js";
7
+ export type { JSONType } from "../core/util.js";
7
8
  export {
8
9
  globalRegistry,
9
10
  registry,
@@ -60,7 +60,11 @@ export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$c
60
60
  checks: [
61
61
  ...(def.checks ?? []),
62
62
  ...checks.map((ch) =>
63
- typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
63
+ typeof ch === "function"
64
+ ? {
65
+ _zod: { check: ch, def: { check: "custom" }, onattach: [] },
66
+ }
67
+ : ch
64
68
  ),
65
69
  ],
66
70
  },
@@ -200,7 +204,7 @@ export function url(params?: string | core.$ZodURLParams): ZodMiniURL {
200
204
  // @__NO_SIDE_EFFECTS__
201
205
  export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodMiniURL {
202
206
  return core._url(ZodMiniURL, {
203
- protocol: /^https?$/,
207
+ protocol: core.regexes.httpProtocol,
204
208
  hostname: core.regexes.domain,
205
209
  ...util.normalizeParams(params),
206
210
  });
@@ -241,9 +245,19 @@ export function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID {
241
245
  }
242
246
 
243
247
  // ZodMiniCUID
248
+ /**
249
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
250
+ * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
251
+ * See https://github.com/paralleldrive/cuid.
252
+ */
244
253
  export interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> {
245
254
  // _zod: core.$ZodCUIDInternals;
246
255
  }
256
+ /**
257
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
258
+ * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
259
+ * See https://github.com/paralleldrive/cuid.
260
+ */
247
261
  export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$constructor(
248
262
  "ZodMiniCUID",
249
263
  (inst, def) => {
@@ -252,6 +266,13 @@ export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$c
252
266
  }
253
267
  );
254
268
 
269
+ /**
270
+ * Validates a CUID v1 string.
271
+ *
272
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
273
+ * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
274
+ * See https://github.com/paralleldrive/cuid.
275
+ */
255
276
  // @__NO_SIDE_EFFECTS__
256
277
  export function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID {
257
278
  return core._cuid(ZodMiniCUID, params);
@@ -833,7 +854,7 @@ export const ZodMiniObject: core.$constructor<ZodMiniObject> = /*@__PURE__*/ cor
833
854
  export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
834
855
  shape?: T,
835
856
  params?: string | core.$ZodObjectParams
836
- ): ZodMiniObject<T, core.$strip> {
857
+ ): ZodMiniObject<util.Writeable<T>, core.$strip> {
837
858
  const def: core.$ZodObjectDef = {
838
859
  type: "object",
839
860
  shape: shape ?? {},
@@ -847,7 +868,7 @@ export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
847
868
  export function strictObject<T extends core.$ZodLooseShape>(
848
869
  shape: T,
849
870
  params?: string | core.$ZodObjectParams
850
- ): ZodMiniObject<T, core.$strict> {
871
+ ): ZodMiniObject<util.Writeable<T>, core.$strict> {
851
872
  return new ZodMiniObject({
852
873
  type: "object",
853
874
  shape,
@@ -861,7 +882,7 @@ export function strictObject<T extends core.$ZodLooseShape>(
861
882
  export function looseObject<T extends core.$ZodLooseShape>(
862
883
  shape: T,
863
884
  params?: string | core.$ZodObjectParams
864
- ): ZodMiniObject<T, core.$loose> {
885
+ ): ZodMiniObject<util.Writeable<T>, core.$loose> {
865
886
  return new ZodMiniObject({
866
887
  type: "object",
867
888
  shape,
@@ -875,7 +896,7 @@ export function looseObject<T extends core.$ZodLooseShape>(
875
896
  export function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
876
897
  schema: T,
877
898
  shape: U
878
- ): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]> {
899
+ ): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
879
900
  return util.extend(schema, shape);
880
901
  }
881
902
 
@@ -893,7 +914,7 @@ export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLo
893
914
  export function safeExtend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
894
915
  schema: T,
895
916
  shape: SafeExtendShape<T["shape"], U>
896
- ): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]> {
917
+ ): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
897
918
  return util.safeExtend(schema, shape as any);
898
919
  }
899
920
 
@@ -930,7 +951,7 @@ export function partial<T extends ZodMiniObject>(
930
951
  schema: T
931
952
  ): ZodMiniObject<
932
953
  {
933
- [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
954
+ -readonly [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
934
955
  },
935
956
  T["_zod"]["config"]
936
957
  >;
@@ -940,7 +961,7 @@ export function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["sh
940
961
  mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
941
962
  ): ZodMiniObject<
942
963
  {
943
- [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
964
+ -readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
944
965
  },
945
966
  T["_zod"]["config"]
946
967
  >;
@@ -965,7 +986,7 @@ export function required<T extends ZodMiniObject>(
965
986
  schema: T
966
987
  ): ZodMiniObject<
967
988
  {
968
- [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
989
+ -readonly [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
969
990
  },
970
991
  T["_zod"]["config"]
971
992
  >;
@@ -1062,7 +1083,7 @@ export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUn
1062
1083
 
1063
1084
  // @__NO_SIDE_EFFECTS__
1064
1085
  export function discriminatedUnion<
1065
- Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]],
1086
+ Types extends readonly [core.$ZodTypeDiscriminable<Disc>, ...core.$ZodTypeDiscriminable<Disc>[]],
1066
1087
  Disc extends string,
1067
1088
  >(
1068
1089
  discriminator: Disc,
@@ -1162,6 +1183,15 @@ export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
1162
1183
  valueType: Value,
1163
1184
  params?: string | core.$ZodRecordParams
1164
1185
  ): ZodMiniRecord<Key, Value> {
1186
+ // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
1187
+ if (!valueType || !(valueType as any)._zod) {
1188
+ return new ZodMiniRecord({
1189
+ type: "record",
1190
+ keyType: string() as any,
1191
+ valueType: keyType as any as core.$ZodType,
1192
+ ...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
1193
+ }) as any;
1194
+ }
1165
1195
  return new ZodMiniRecord({
1166
1196
  type: "record",
1167
1197
  keyType,
@@ -1625,14 +1655,17 @@ export function codec<const A extends SomeType, B extends core.SomeType = core.$
1625
1655
  }) as any;
1626
1656
  }
1627
1657
 
1628
- // /** @deprecated Use `z.pipe()` and `z.transform()` instead. */
1629
- // export function preprocess<A, U extends core.$ZodType>(
1630
- // fn: (arg: unknown, ctx: core.ParsePayload) => A,
1631
- // schema: U,
1632
- // params?: ZodPreprocessParams
1633
- // ): ZodPipe<ZodTransform<A, unknown>, U> {
1634
- // return pipe(transform(fn as any, params), schema as any, params);
1635
- // }
1658
+ // @__NO_SIDE_EFFECTS__
1659
+ export function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodMiniCodec<A, B>): ZodMiniCodec<B, A> {
1660
+ const def = codec._zod.def;
1661
+ return new ZodMiniCodec({
1662
+ type: "pipe",
1663
+ in: def.out as any,
1664
+ out: def.in as any,
1665
+ transform: def.reverseTransform as any,
1666
+ reverseTransform: def.transform as any,
1667
+ }) as any;
1668
+ }
1636
1669
 
1637
1670
  // ZodMiniReadonly
1638
1671
  export interface ZodMiniReadonly<T extends SomeType = core.$ZodType>
@@ -1770,9 +1803,10 @@ export function refine<T>(
1770
1803
  // superRefine
1771
1804
  // @__NO_SIDE_EFFECTS__
1772
1805
  export function superRefine<T>(
1773
- fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>
1806
+ fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
1807
+ params?: core.$ZodSuperRefineParams
1774
1808
  ): core.$ZodCheck<T> {
1775
- return core._superRefine(fn);
1809
+ return core._superRefine(fn, params);
1776
1810
  }
1777
1811
 
1778
1812
  // Re-export describe and meta from core
@@ -1897,10 +1931,7 @@ export function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunc
1897
1931
  export function _function<
1898
1932
  In extends core.$ZodFunctionIn = core.$ZodFunctionIn,
1899
1933
  Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
1900
- >(params?: {
1901
- input: In;
1902
- output: Out;
1903
- }): ZodMiniFunction<In, Out>;
1934
+ >(params?: { input: In; output: Out }): ZodMiniFunction<In, Out>;
1904
1935
  // @__NO_SIDE_EFFECTS__
1905
1936
  export function _function(params?: {
1906
1937
  output?: core.$ZodFunctionOut;
@@ -2,5 +2,6 @@
2
2
  "type": "module",
3
3
  "main": "./index.cjs",
4
4
  "module": "./index.js",
5
- "types": "./index.d.cts"
5
+ "types": "./index.d.cts",
6
+ "sideEffects": false
6
7
  }
@@ -40,8 +40,8 @@ const initializer = (inst, issues) => {
40
40
  // },
41
41
  // });
42
42
  };
43
- export const ZodError = core.$constructor("ZodError", initializer);
44
- export const ZodRealError = core.$constructor("ZodError", initializer, {
43
+ export const ZodError = /*@__PURE__*/ core.$constructor("ZodError", initializer);
44
+ export const ZodRealError = /*@__PURE__*/ core.$constructor("ZodError", initializer, {
45
45
  Parent: Error,
46
46
  });
47
47
  // /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */
@@ -5,6 +5,7 @@ export * from "./errors.cjs";
5
5
  export * from "./parse.cjs";
6
6
  export * from "./compat.cjs";
7
7
  export type { infer, output, input } from "../core/index.cjs";
8
+ export type { JSONType } from "../core/util.cjs";
8
9
  export { globalRegistry, type GlobalMeta, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.cjs";
9
10
  export { toJSONSchema } from "../core/json-schema-processors.cjs";
10
11
  export { fromJSONSchema } from "./from-json-schema.cjs";
@@ -5,6 +5,7 @@ export * from "./errors.js";
5
5
  export * from "./parse.js";
6
6
  export * from "./compat.js";
7
7
  export type { infer, output, input } from "../core/index.js";
8
+ export type { JSONType } from "../core/util.js";
8
9
  export { globalRegistry, type GlobalMeta, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.js";
9
10
  export { toJSONSchema } from "../core/json-schema-processors.js";
10
11
  export { fromJSONSchema } from "./from-json-schema.js";
@@ -35,7 +35,7 @@ const z = {
35
35
  iso: _iso,
36
36
  };
37
37
  // Keys that are recognized and handled by the conversion logic
38
- const RECOGNIZED_KEYS = new Set([
38
+ const RECOGNIZED_KEYS = /*@__PURE__*/ new Set([
39
39
  // Schema identification
40
40
  "$schema",
41
41
  "$ref",
@@ -511,13 +511,6 @@ function convertBaseSchema(schema, ctx) {
511
511
  default:
512
512
  throw new Error(`Unsupported type: ${type}`);
513
513
  }
514
- // Apply metadata
515
- if (schema.description) {
516
- zodSchema = zodSchema.describe(schema.description);
517
- }
518
- if (schema.default !== undefined) {
519
- zodSchema = zodSchema.default(schema.default);
520
- }
521
514
  return zodSchema;
522
515
  }
523
516
  function convertSchema(schema, ctx) {
@@ -562,23 +555,28 @@ function convertSchema(schema, ctx) {
562
555
  if (schema.readOnly === true) {
563
556
  baseSchema = z.readonly(baseSchema);
564
557
  }
565
- // Collect metadata: core schema keywords and unrecognized keys
558
+ // Apply `default` so it wraps the fully-composed schema. This ensures
559
+ // `parse(undefined) -> default` works regardless of which branch of
560
+ // `convertBaseSchema` produced the inner schema (enum/const/not/typed/etc.).
561
+ if (schema.default !== undefined) {
562
+ baseSchema = baseSchema.default(schema.default);
563
+ }
564
+ // Collect non-description annotation metadata into the user-supplied
565
+ // registry. Description is handled separately below via `.describe()` to
566
+ // preserve the contract that `schema.description` reads from globalRegistry.
566
567
  const extraMeta = {};
567
- // Core schema keywords that should be captured as metadata
568
568
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
569
569
  for (const key of coreMetadataKeys) {
570
570
  if (key in schema) {
571
571
  extraMeta[key] = schema[key];
572
572
  }
573
573
  }
574
- // Content keywords - store as metadata
575
574
  const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
576
575
  for (const key of contentMetadataKeys) {
577
576
  if (key in schema) {
578
577
  extraMeta[key] = schema[key];
579
578
  }
580
579
  }
581
- // Unrecognized keys (custom metadata)
582
580
  for (const key of Object.keys(schema)) {
583
581
  if (!RECOGNIZED_KEYS.has(key)) {
584
582
  extraMeta[key] = schema[key];
@@ -587,6 +585,12 @@ function convertSchema(schema, ctx) {
587
585
  if (Object.keys(extraMeta).length > 0) {
588
586
  ctx.registry.add(baseSchema, extraMeta);
589
587
  }
588
+ // Apply description last. `.describe()` clones the schema and sets
589
+ // `_zod.parent` on the clone, so registry lookups on the returned reference
590
+ // still resolve `extraMeta` via parent inheritance.
591
+ if (schema.description) {
592
+ baseSchema = baseSchema.describe(schema.description);
593
+ }
590
594
  return baseSchema;
591
595
  }
592
596
  /**
@@ -596,15 +600,26 @@ function fromJSONSchema(schema, params) {
596
600
  if (typeof schema === "boolean") {
597
601
  return schema ? z.any() : z.never();
598
602
  }
599
- const version = detectVersion(schema, params?.defaultTarget);
600
- const defs = (schema.$defs || schema.definitions || {});
603
+ // Normalize input via a JSON round-trip. This guarantees the converter
604
+ // walks a plain, finite, JSON-valid object graph: cyclic inputs fail here,
605
+ // getter/Proxy-based properties are materialized into static values, and
606
+ // class instances collapse to plain objects.
607
+ let normalized;
608
+ try {
609
+ normalized = JSON.parse(JSON.stringify(schema));
610
+ }
611
+ catch {
612
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
613
+ }
614
+ const version = detectVersion(normalized, params?.defaultTarget);
615
+ const defs = (normalized.$defs || normalized.definitions || {});
601
616
  const ctx = {
602
617
  version,
603
618
  defs,
604
619
  refs: new Map(),
605
620
  processing: new Set(),
606
- rootSchema: schema,
621
+ rootSchema: normalized,
607
622
  registry: params?.registry ?? registries_js_1.globalRegistry,
608
623
  };
609
- return convertSchema(schema, ctx);
624
+ return convertSchema(normalized, ctx);
610
625
  }
@@ -9,7 +9,7 @@ const z = {
9
9
  iso: _iso,
10
10
  };
11
11
  // Keys that are recognized and handled by the conversion logic
12
- const RECOGNIZED_KEYS = new Set([
12
+ const RECOGNIZED_KEYS = /*@__PURE__*/ new Set([
13
13
  // Schema identification
14
14
  "$schema",
15
15
  "$ref",
@@ -485,13 +485,6 @@ function convertBaseSchema(schema, ctx) {
485
485
  default:
486
486
  throw new Error(`Unsupported type: ${type}`);
487
487
  }
488
- // Apply metadata
489
- if (schema.description) {
490
- zodSchema = zodSchema.describe(schema.description);
491
- }
492
- if (schema.default !== undefined) {
493
- zodSchema = zodSchema.default(schema.default);
494
- }
495
488
  return zodSchema;
496
489
  }
497
490
  function convertSchema(schema, ctx) {
@@ -536,23 +529,28 @@ function convertSchema(schema, ctx) {
536
529
  if (schema.readOnly === true) {
537
530
  baseSchema = z.readonly(baseSchema);
538
531
  }
539
- // Collect metadata: core schema keywords and unrecognized keys
532
+ // Apply `default` so it wraps the fully-composed schema. This ensures
533
+ // `parse(undefined) -> default` works regardless of which branch of
534
+ // `convertBaseSchema` produced the inner schema (enum/const/not/typed/etc.).
535
+ if (schema.default !== undefined) {
536
+ baseSchema = baseSchema.default(schema.default);
537
+ }
538
+ // Collect non-description annotation metadata into the user-supplied
539
+ // registry. Description is handled separately below via `.describe()` to
540
+ // preserve the contract that `schema.description` reads from globalRegistry.
540
541
  const extraMeta = {};
541
- // Core schema keywords that should be captured as metadata
542
542
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
543
543
  for (const key of coreMetadataKeys) {
544
544
  if (key in schema) {
545
545
  extraMeta[key] = schema[key];
546
546
  }
547
547
  }
548
- // Content keywords - store as metadata
549
548
  const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
550
549
  for (const key of contentMetadataKeys) {
551
550
  if (key in schema) {
552
551
  extraMeta[key] = schema[key];
553
552
  }
554
553
  }
555
- // Unrecognized keys (custom metadata)
556
554
  for (const key of Object.keys(schema)) {
557
555
  if (!RECOGNIZED_KEYS.has(key)) {
558
556
  extraMeta[key] = schema[key];
@@ -561,6 +559,12 @@ function convertSchema(schema, ctx) {
561
559
  if (Object.keys(extraMeta).length > 0) {
562
560
  ctx.registry.add(baseSchema, extraMeta);
563
561
  }
562
+ // Apply description last. `.describe()` clones the schema and sets
563
+ // `_zod.parent` on the clone, so registry lookups on the returned reference
564
+ // still resolve `extraMeta` via parent inheritance.
565
+ if (schema.description) {
566
+ baseSchema = baseSchema.describe(schema.description);
567
+ }
564
568
  return baseSchema;
565
569
  }
566
570
  /**
@@ -570,15 +574,26 @@ export function fromJSONSchema(schema, params) {
570
574
  if (typeof schema === "boolean") {
571
575
  return schema ? z.any() : z.never();
572
576
  }
573
- const version = detectVersion(schema, params?.defaultTarget);
574
- const defs = (schema.$defs || schema.definitions || {});
577
+ // Normalize input via a JSON round-trip. This guarantees the converter
578
+ // walks a plain, finite, JSON-valid object graph: cyclic inputs fail here,
579
+ // getter/Proxy-based properties are materialized into static values, and
580
+ // class instances collapse to plain objects.
581
+ let normalized;
582
+ try {
583
+ normalized = JSON.parse(JSON.stringify(schema));
584
+ }
585
+ catch {
586
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
587
+ }
588
+ const version = detectVersion(normalized, params?.defaultTarget);
589
+ const defs = (normalized.$defs || normalized.definitions || {});
575
590
  const ctx = {
576
591
  version,
577
592
  defs,
578
593
  refs: new Map(),
579
594
  processing: new Set(),
580
- rootSchema: schema,
595
+ rootSchema: normalized,
581
596
  registry: params?.registry ?? globalRegistry,
582
597
  };
583
- return convertSchema(schema, ctx);
598
+ return convertSchema(normalized, ctx);
584
599
  }
@@ -2,5 +2,6 @@
2
2
  "type": "module",
3
3
  "main": "./index.cjs",
4
4
  "module": "./index.js",
5
- "types": "./index.d.cts"
5
+ "types": "./index.d.cts",
6
+ "sideEffects": false
6
7
  }