@rho-workspace/rho 0.5.2 → 0.5.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 (2279) hide show
  1. package/README.md +75 -0
  2. package/dist/contract.generated.d.ts +29 -0
  3. package/dist/contracts/owners.generated.js +4 -4
  4. package/dist/conversation-presentation.d.ts +8 -0
  5. package/dist/conversation-presentation.js +4 -0
  6. package/dist/conversations.d.ts +26 -2
  7. package/dist/conversations.js +34 -19
  8. package/dist/protocol.js +4 -4
  9. package/dist/web/.vite/manifest.json +52 -52
  10. package/dist/web/assets/{choices-8Cuan2MH.js → choices-B-y2OYvE.js} +1 -1
  11. package/dist/web/assets/{console-C1V_iIlC.js → console-e1P5qYQ5.js} +4 -4
  12. package/dist/web/assets/{dist-DGgoMtcq.js → dist-CBM2oq6g.js} +1 -1
  13. package/dist/web/assets/{dist-B6cGa5_k.js → dist-CH56yNDn.js} +1 -1
  14. package/dist/web/assets/{dist-Dj04i6dK.js → dist-DEorbOW0.js} +1 -1
  15. package/dist/web/assets/{dist-CPEQ_0xN.js → dist-Dd3iAGFy.js} +1 -1
  16. package/dist/web/assets/{explore-in-C24K607w.js → explore-in-muWXOGOY.js} +1 -1
  17. package/dist/web/assets/{graph-PaGq0Eym.js → graph-CK-df5lh.js} +2 -2
  18. package/dist/web/assets/{index-D7VVkYz7.js → index-BYuKpyoi.js} +73 -73
  19. package/dist/web/assets/{notes-meaning-vj0uvMCW.js → notes-meaning-B3HFbh84.js} +1 -1
  20. package/dist/web/assets/overview-D1Ev2OC_.js +6 -0
  21. package/dist/web/assets/{preview-DSv_YmXr.js → preview-HbmQKUGY.js} +1 -1
  22. package/dist/web/assets/{review-BgX0iCTR.js → review-BVh9jWMB.js} +1 -1
  23. package/dist/web/assets/{skills-Bclq5FeE.js → skills-DPaEYkln.js} +1 -1
  24. package/dist/web/assets/{skills-work-DiEI9Pxw.js → skills-work-dvjfy_tu.js} +1 -1
  25. package/dist/web/assets/studio-process-BYm8mjRJ.js +2 -0
  26. package/dist/web/assets/{timeline-events-DE1UDeeu.js → timeline-events-CDZ7wiJX.js} +1 -1
  27. package/dist/web/assets/{work-turns-DBPS2WO-.js → work-turns-BeCt303c.js} +1 -1
  28. package/dist/web/assets/workspace-d5Hw_ClZ.js +5 -0
  29. package/dist/web/composition.json +53 -53
  30. package/dist/web/index.html +1 -1
  31. package/dist/web/renderer.json +1 -1
  32. package/docs/HEADLESS.md +12 -3
  33. package/node_modules/@rho-workspace/plugin-agent/README.md +13 -5
  34. package/node_modules/@rho-workspace/plugin-agent/dist/acp-conversation.d.ts +4 -0
  35. package/node_modules/@rho-workspace/plugin-agent/dist/acp-conversation.js +9 -1
  36. package/node_modules/@rho-workspace/plugin-agent/dist/claude-acp.js +1 -1
  37. package/node_modules/@rho-workspace/plugin-agent/dist/claude-cli.js +1 -1
  38. package/node_modules/@rho-workspace/plugin-agent/dist/conversation.d.ts +1 -1
  39. package/node_modules/@rho-workspace/plugin-agent/dist/mcp.js +20 -11
  40. package/node_modules/@rho-workspace/plugin-agent/package.json +1 -1
  41. package/package.json +2 -2
  42. package/protocol/index.json +23 -23
  43. package/protocol/operations/conversation.configure.json +6 -0
  44. package/protocol/operations/conversation.decide.json +10 -0
  45. package/protocol/operations/conversation.list.json +6 -0
  46. package/protocol/operations/conversation.permission.json +10 -0
  47. package/protocol/operations/conversation.read.json +10 -0
  48. package/protocol/operations/conversation.restore.json +6 -0
  49. package/protocol/operations/conversation.send.json +15 -1
  50. package/protocol/operations/conversation.start.json +10 -0
  51. package/protocol/operations/conversation.stop.json +10 -0
  52. package/protocol/operations/conversation.trash.json +6 -0
  53. package/protocol/operations/observation.snapshot.json +6 -0
  54. package/vendor/composition.json +79 -69
  55. package/vendor/rho-workspace-plugin-agent-0.4.27.tgz +0 -0
  56. package/dist/web/assets/overview-C75CfbDK.js +0 -6
  57. package/dist/web/assets/studio-process-QG4DSVgn.js +0 -2
  58. package/dist/web/assets/workspace-D7bUaFrp.js +0 -5
  59. package/node_modules/@agentclientprotocol/claude-agent-acp/README.md +0 -126
  60. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-agent.d.ts +0 -1982
  61. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-agent.d.ts.map +0 -1
  62. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-subagents.d.ts +0 -99
  63. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/acp-subagents.d.ts.map +0 -1
  64. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/air-extension.d.ts +0 -111
  65. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/air-extension.d.ts.map +0 -1
  66. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/async-tasks.d.ts +0 -228
  67. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/async-tasks.d.ts.map +0 -1
  68. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/auth-status.d.ts +0 -140
  69. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/auth-status.d.ts.map +0 -1
  70. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/clear-context-coordinator.d.ts +0 -64
  71. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/clear-context-coordinator.d.ts.map +0 -1
  72. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/client-system-prompt.d.ts +0 -41
  73. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/client-system-prompt.d.ts.map +0 -1
  74. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/context-compaction-meta.d.ts +0 -19
  75. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/context-compaction-meta.d.ts.map +0 -1
  76. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/context-compaction.d.ts +0 -135
  77. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/context-compaction.d.ts.map +0 -1
  78. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/diff.d.ts +0 -120
  79. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/diff.d.ts.map +0 -1
  80. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/elicitation.d.ts +0 -138
  81. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/elicitation.d.ts.map +0 -1
  82. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/exit-plan.d.ts +0 -62
  83. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/exit-plan.d.ts.map +0 -1
  84. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/file-change-audit.d.ts +0 -64
  85. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/file-change-audit.d.ts.map +0 -1
  86. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/fork-session.d.ts +0 -15
  87. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/fork-session.d.ts.map +0 -1
  88. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/gateway-models.d.ts +0 -62
  89. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/gateway-models.d.ts.map +0 -1
  90. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/goal-extension.d.ts +0 -36
  91. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/goal-extension.d.ts.map +0 -1
  92. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/hide-claude-auth.d.ts +0 -149
  93. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/hide-claude-auth.d.ts.map +0 -1
  94. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/index.d.ts +0 -3
  95. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/index.d.ts.map +0 -1
  96. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/lib.d.ts +0 -7
  97. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/lib.d.ts.map +0 -1
  98. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/managed-policy.d.ts +0 -19
  99. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/managed-policy.d.ts.map +0 -1
  100. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/mcp-command.d.ts +0 -51
  101. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/mcp-command.d.ts.map +0 -1
  102. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/native-subagents.d.ts +0 -584
  103. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/native-subagents.d.ts.map +0 -1
  104. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/paths.d.ts +0 -3
  105. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/paths.d.ts.map +0 -1
  106. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/effects.d.ts +0 -19
  107. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/effects.d.ts.map +0 -1
  108. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/modes.d.ts +0 -10
  109. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/modes.d.ts.map +0 -1
  110. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/normalization.d.ts +0 -6
  111. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/normalization.d.ts.map +0 -1
  112. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/filesystem.d.ts +0 -9
  113. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/filesystem.d.ts.map +0 -1
  114. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shared.d.ts +0 -47
  115. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shared.d.ts.map +0 -1
  116. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shell.d.ts +0 -5
  117. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/shell.d.ts.map +0 -1
  118. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/tools.d.ts +0 -11
  119. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options/tools.d.ts.map +0 -1
  120. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options.d.ts +0 -5
  121. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/options.d.ts.map +0 -1
  122. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/presentation.d.ts +0 -42
  123. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/presentation.d.ts.map +0 -1
  124. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/response.d.ts +0 -11
  125. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/permissions/response.d.ts.map +0 -1
  126. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/prompt-suggestions.d.ts +0 -37
  127. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/prompt-suggestions.d.ts.map +0 -1
  128. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/resumed-session.d.ts +0 -40
  129. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/resumed-session.d.ts.map +0 -1
  130. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/serve.d.ts +0 -31
  131. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/serve.d.ts.map +0 -1
  132. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-config-ids.d.ts +0 -6
  133. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-config-ids.d.ts.map +0 -1
  134. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-effort.d.ts +0 -19
  135. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-effort.d.ts.map +0 -1
  136. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-failure-extension.d.ts +0 -97
  137. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-failure-extension.d.ts.map +0 -1
  138. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/activity.d.ts +0 -60
  139. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/activity.d.ts.map +0 -1
  140. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/archive-title.d.ts +0 -52
  141. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/archive-title.d.ts.map +0 -1
  142. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/background-tasks.d.ts +0 -69
  143. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/background-tasks.d.ts.map +0 -1
  144. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/connection.d.ts +0 -162
  145. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/connection.d.ts.map +0 -1
  146. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/dir-listing.d.ts +0 -30
  147. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/dir-listing.d.ts.map +0 -1
  148. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/explicit-title.d.ts +0 -34
  149. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/explicit-title.d.ts.map +0 -1
  150. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/first-prompt.d.ts +0 -38
  151. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/first-prompt.d.ts.map +0 -1
  152. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/list-subscriptions.d.ts +0 -229
  153. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/list-subscriptions.d.ts.map +0 -1
  154. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/live-registry.d.ts +0 -72
  155. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/live-registry.d.ts.map +0 -1
  156. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/project-dirs.d.ts +0 -45
  157. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/project-dirs.d.ts.map +0 -1
  158. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/service.d.ts +0 -181
  159. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/service.d.ts.map +0 -1
  160. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/session-index.d.ts +0 -247
  161. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/session-index.d.ts.map +0 -1
  162. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/session-info.d.ts +0 -16
  163. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/session-info.d.ts.map +0 -1
  164. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/transcript-scan.d.ts +0 -173
  165. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/transcript-scan.d.ts.map +0 -1
  166. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/worktrees.d.ts +0 -31
  167. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-index/worktrees.d.ts.map +0 -1
  168. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-mode.d.ts +0 -90
  169. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-mode.d.ts.map +0 -1
  170. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-model.d.ts +0 -96
  171. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-model.d.ts.map +0 -1
  172. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-notices.d.ts +0 -41
  173. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-notices.d.ts.map +0 -1
  174. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-timing.d.ts +0 -15
  175. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-timing.d.ts.map +0 -1
  176. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-titles.d.ts +0 -126
  177. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-titles.d.ts.map +0 -1
  178. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-ultracode.d.ts +0 -51
  179. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/session-ultracode.d.ts.map +0 -1
  180. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/settings.d.ts +0 -80
  181. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/settings.d.ts.map +0 -1
  182. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/subagent-history.d.ts +0 -86
  183. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/subagent-history.d.ts.map +0 -1
  184. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/subagent-replay.d.ts +0 -186
  185. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/subagent-replay.d.ts.map +0 -1
  186. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/task-notifications.d.ts +0 -30
  187. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/task-notifications.d.ts.map +0 -1
  188. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/background.d.ts +0 -32
  189. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/background.d.ts.map +0 -1
  190. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/changed-meta-filter.d.ts +0 -27
  191. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/changed-meta-filter.d.ts.map +0 -1
  192. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/client-capabilities.d.ts +0 -69
  193. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/client-capabilities.d.ts.map +0 -1
  194. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/content.d.ts +0 -59
  195. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/content.d.ts.map +0 -1
  196. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/facts.d.ts +0 -123
  197. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/facts.d.ts.map +0 -1
  198. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/field-tracker.d.ts +0 -58
  199. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/field-tracker.d.ts.map +0 -1
  200. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/renderer.d.ts +0 -294
  201. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/renderer.d.ts.map +0 -1
  202. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/agent.d.ts +0 -7
  203. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/agent.d.ts.map +0 -1
  204. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/bash.d.ts +0 -16
  205. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/bash.d.ts.map +0 -1
  206. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/compaction.d.ts +0 -24
  207. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/compaction.d.ts.map +0 -1
  208. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/file-edit.d.ts +0 -46
  209. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/file-edit.d.ts.map +0 -1
  210. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/index.d.ts +0 -4
  211. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/index.d.ts.map +0 -1
  212. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/interaction.d.ts +0 -86
  213. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/interaction.d.ts.map +0 -1
  214. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/read.d.ts +0 -7
  215. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/read.d.ts.map +0 -1
  216. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/search.d.ts +0 -16
  217. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/search.d.ts.map +0 -1
  218. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/web.d.ts +0 -11
  219. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-calls/reporters/web.d.ts.map +0 -1
  220. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-result-meta.d.ts +0 -15
  221. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tool-result-meta.d.ts.map +0 -1
  222. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tools.d.ts +0 -93
  223. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/tools.d.ts.map +0 -1
  224. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/turn-events.d.ts +0 -97
  225. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/turn-events.d.ts.map +0 -1
  226. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/usage-markdown.d.ts +0 -9
  227. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/usage-markdown.d.ts.map +0 -1
  228. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/utils.d.ts +0 -59
  229. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/utils.d.ts.map +0 -1
  230. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/agent.d.ts +0 -13
  231. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/agent.d.ts.map +0 -1
  232. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/initialize.d.ts +0 -21
  233. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/initialize.d.ts.map +0 -1
  234. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/permission.d.ts +0 -25
  235. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/permission.d.ts.map +0 -1
  236. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/prompt.d.ts +0 -54
  237. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/prompt.d.ts.map +0 -1
  238. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/session-update.d.ts +0 -32
  239. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/session-update.d.ts.map +0 -1
  240. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/session.d.ts +0 -39
  241. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/session.d.ts.map +0 -1
  242. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/terminal.d.ts +0 -42
  243. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/terminal.d.ts.map +0 -1
  244. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/tool-call-meta.d.ts +0 -53
  245. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/tool-call-meta.d.ts.map +0 -1
  246. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/tool-call.d.ts +0 -38
  247. package/node_modules/@agentclientprotocol/claude-agent-acp/dist/v2/tool-call.d.ts.map +0 -1
  248. package/node_modules/@agentclientprotocol/codex-acp/README.md +0 -109
  249. package/node_modules/@agentclientprotocol/sdk/MIGRATION_STABLE_UNSTABLE.md +0 -321
  250. package/node_modules/@agentclientprotocol/sdk/README.md +0 -99
  251. package/node_modules/@agentclientprotocol/sdk/dist/core/app-handlers.js.map +0 -1
  252. package/node_modules/@agentclientprotocol/sdk/dist/core/jsonrpc.js.map +0 -1
  253. package/node_modules/@agentclientprotocol/sdk/dist/core/line-buffer.js.map +0 -1
  254. package/node_modules/@agentclientprotocol/sdk/dist/core/schema-deserialize.js.map +0 -1
  255. package/node_modules/@agentclientprotocol/sdk/dist/core/stream-limits.js.map +0 -1
  256. package/node_modules/@agentclientprotocol/sdk/dist/core/stream.js.map +0 -1
  257. package/node_modules/@agentclientprotocol/sdk/dist/nes/acp.js.map +0 -1
  258. package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/types.gen.js.map +0 -1
  259. package/node_modules/@agentclientprotocol/sdk/dist/nes/schema/zod.gen.js.map +0 -1
  260. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +0 -1
  261. package/node_modules/@agentclientprotocol/sdk/dist/transports/connection.js.map +0 -1
  262. package/node_modules/@agentclientprotocol/sdk/dist/transports/cookie-store.js.map +0 -1
  263. package/node_modules/@agentclientprotocol/sdk/dist/transports/http-stream.js.map +0 -1
  264. package/node_modules/@agentclientprotocol/sdk/dist/transports/node-adapter.js.map +0 -1
  265. package/node_modules/@agentclientprotocol/sdk/dist/transports/protocol.js.map +0 -1
  266. package/node_modules/@agentclientprotocol/sdk/dist/transports/server-sse.js.map +0 -1
  267. package/node_modules/@agentclientprotocol/sdk/dist/transports/server.js.map +0 -1
  268. package/node_modules/@agentclientprotocol/sdk/dist/transports/sse.js.map +0 -1
  269. package/node_modules/@agentclientprotocol/sdk/dist/transports/ws-server.js.map +0 -1
  270. package/node_modules/@agentclientprotocol/sdk/dist/transports/ws-stream.js.map +0 -1
  271. package/node_modules/@agentclientprotocol/sdk/dist/transports/ws-utils.js.map +0 -1
  272. package/node_modules/@agentclientprotocol/sdk/dist/v1/acp.js.map +0 -1
  273. package/node_modules/@agentclientprotocol/sdk/dist/v1/schema/guards.gen.js.map +0 -1
  274. package/node_modules/@agentclientprotocol/sdk/dist/v1/schema/index.js.map +0 -1
  275. package/node_modules/@agentclientprotocol/sdk/dist/v1/schema/types.gen.js.map +0 -1
  276. package/node_modules/@agentclientprotocol/sdk/dist/v1/schema/zod.gen.js.map +0 -1
  277. package/node_modules/@agentclientprotocol/sdk/dist/v1/stable/acp.js.map +0 -1
  278. package/node_modules/@agentclientprotocol/sdk/dist/v1/unstable/acp.js.map +0 -1
  279. package/node_modules/@agentclientprotocol/sdk/dist/v1/unstable/schema/guards.gen.js.map +0 -1
  280. package/node_modules/@agentclientprotocol/sdk/dist/v1/unstable/schema/index.js.map +0 -1
  281. package/node_modules/@agentclientprotocol/sdk/dist/v1/unstable/schema/types.gen.js.map +0 -1
  282. package/node_modules/@agentclientprotocol/sdk/dist/v1/unstable/schema/zod.gen.js.map +0 -1
  283. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +0 -1
  284. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +0 -1
  285. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +0 -1
  286. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +0 -1
  287. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +0 -1
  288. package/node_modules/@agentclientprotocol/sdk/dist/v2/stable/acp.js.map +0 -1
  289. package/node_modules/@agentclientprotocol/sdk/dist/v2/unstable/acp.js.map +0 -1
  290. package/node_modules/@agentclientprotocol/sdk/dist/v2/unstable/schema/guards.gen.js.map +0 -1
  291. package/node_modules/@agentclientprotocol/sdk/dist/v2/unstable/schema/index.js.map +0 -1
  292. package/node_modules/@agentclientprotocol/sdk/dist/v2/unstable/schema/types.gen.js.map +0 -1
  293. package/node_modules/@agentclientprotocol/sdk/dist/v2/unstable/schema/zod.gen.js.map +0 -1
  294. package/node_modules/@anthropic-ai/claude-agent-sdk/README.md +0 -69
  295. package/node_modules/@anthropic-ai/claude-agent-sdk/agentSdkTypes.d.ts +0 -1
  296. package/node_modules/@anthropic-ai/claude-agent-sdk/bridge.d.ts +0 -404
  297. package/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.d.ts +0 -208
  298. package/node_modules/@anthropic-ai/claude-agent-sdk/core.d.ts +0 -22
  299. package/node_modules/@anthropic-ai/claude-agent-sdk/extractFromBunfs.d.ts +0 -1
  300. package/node_modules/@anthropic-ai/claude-agent-sdk/sdk-tools.d.ts +0 -4222
  301. package/node_modules/@anthropic-ai/claude-agent-sdk/sdk.d.ts +0 -10302
  302. package/node_modules/@hono/node-server/README.md +0 -358
  303. package/node_modules/@hono/node-server/dist/conninfo.d.mts +0 -10
  304. package/node_modules/@hono/node-server/dist/conninfo.d.ts +0 -10
  305. package/node_modules/@hono/node-server/dist/globals.d.mts +0 -2
  306. package/node_modules/@hono/node-server/dist/globals.d.ts +0 -2
  307. package/node_modules/@hono/node-server/dist/index.d.mts +0 -8
  308. package/node_modules/@hono/node-server/dist/index.d.ts +0 -8
  309. package/node_modules/@hono/node-server/dist/listener.d.mts +0 -13
  310. package/node_modules/@hono/node-server/dist/listener.d.ts +0 -13
  311. package/node_modules/@hono/node-server/dist/request.d.mts +0 -25
  312. package/node_modules/@hono/node-server/dist/request.d.ts +0 -25
  313. package/node_modules/@hono/node-server/dist/response.d.mts +0 -26
  314. package/node_modules/@hono/node-server/dist/response.d.ts +0 -26
  315. package/node_modules/@hono/node-server/dist/serve-static.d.mts +0 -17
  316. package/node_modules/@hono/node-server/dist/serve-static.d.ts +0 -17
  317. package/node_modules/@hono/node-server/dist/server.d.mts +0 -10
  318. package/node_modules/@hono/node-server/dist/server.d.ts +0 -10
  319. package/node_modules/@hono/node-server/dist/types.d.mts +0 -44
  320. package/node_modules/@hono/node-server/dist/types.d.ts +0 -44
  321. package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +0 -3
  322. package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +0 -3
  323. package/node_modules/@hono/node-server/dist/utils/response.d.mts +0 -3
  324. package/node_modules/@hono/node-server/dist/utils/response.d.ts +0 -3
  325. package/node_modules/@hono/node-server/dist/utils.d.mts +0 -9
  326. package/node_modules/@hono/node-server/dist/utils.d.ts +0 -9
  327. package/node_modules/@hono/node-server/dist/vercel.d.mts +0 -7
  328. package/node_modules/@hono/node-server/dist/vercel.d.ts +0 -7
  329. package/node_modules/@modelcontextprotocol/sdk/README.md +0 -172
  330. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +0 -190
  331. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +0 -1
  332. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +0 -1
  333. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +0 -451
  334. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +0 -1
  335. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +0 -1
  336. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts +0 -591
  337. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +0 -1
  338. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +0 -1
  339. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts +0 -169
  340. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map +0 -1
  341. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map +0 -1
  342. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +0 -81
  343. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map +0 -1
  344. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map +0 -1
  345. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +0 -77
  346. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +0 -1
  347. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +0 -1
  348. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +0 -171
  349. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +0 -1
  350. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +0 -1
  351. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts +0 -17
  352. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map +0 -1
  353. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map +0 -1
  354. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts +0 -2
  355. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts.map +0 -1
  356. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +0 -680
  357. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map +0 -1
  358. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts +0 -2
  359. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts.map +0 -1
  360. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js +0 -134
  361. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js.map +0 -1
  362. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts +0 -2
  363. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map +0 -1
  364. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js +0 -176
  365. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js.map +0 -1
  366. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts +0 -20
  367. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map +0 -1
  368. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js +0 -70
  369. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map +0 -1
  370. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts +0 -3
  371. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts.map +0 -1
  372. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +0 -397
  373. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map +0 -1
  374. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts +0 -26
  375. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts.map +0 -1
  376. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js +0 -51
  377. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js.map +0 -1
  378. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts +0 -2
  379. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map +0 -1
  380. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +0 -857
  381. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map +0 -1
  382. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts +0 -10
  383. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map +0 -1
  384. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js +0 -157
  385. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map +0 -1
  386. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts +0 -2
  387. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts.map +0 -1
  388. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js +0 -95
  389. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js.map +0 -1
  390. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts +0 -2
  391. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +0 -1
  392. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js +0 -168
  393. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map +0 -1
  394. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +0 -78
  395. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map +0 -1
  396. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js +0 -205
  397. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map +0 -1
  398. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts +0 -2
  399. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts.map +0 -1
  400. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +0 -460
  401. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +0 -1
  402. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts +0 -2
  403. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts.map +0 -1
  404. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js +0 -656
  405. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map +0 -1
  406. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts +0 -10
  407. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts.map +0 -1
  408. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +0 -85
  409. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map +0 -1
  410. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts +0 -2
  411. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map +0 -1
  412. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js +0 -171
  413. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +0 -1
  414. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts +0 -7
  415. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map +0 -1
  416. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js +0 -95
  417. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js.map +0 -1
  418. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts +0 -12
  419. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts.map +0 -1
  420. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js +0 -49
  421. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js.map +0 -1
  422. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts +0 -2
  423. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts.map +0 -1
  424. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js +0 -168
  425. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js.map +0 -1
  426. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts +0 -2
  427. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map +0 -1
  428. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +0 -166
  429. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map +0 -1
  430. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts +0 -2
  431. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map +0 -1
  432. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +0 -750
  433. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +0 -1
  434. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts +0 -12
  435. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map +0 -1
  436. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js +0 -600
  437. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map +0 -1
  438. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +0 -2
  439. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +0 -1
  440. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +0 -256
  441. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +0 -1
  442. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts +0 -2
  443. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts.map +0 -1
  444. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +0 -107
  445. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +0 -1
  446. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts +0 -2
  447. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +0 -1
  448. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +0 -124
  449. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +0 -1
  450. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts +0 -2
  451. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts.map +0 -1
  452. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js +0 -73
  453. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js.map +0 -1
  454. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts +0 -31
  455. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map +0 -1
  456. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js +0 -69
  457. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js.map +0 -1
  458. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts +0 -13
  459. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map +0 -1
  460. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map +0 -1
  461. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts +0 -121
  462. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map +0 -1
  463. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map +0 -1
  464. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts +0 -47
  465. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map +0 -1
  466. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map +0 -1
  467. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts +0 -16
  468. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map +0 -1
  469. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map +0 -1
  470. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +0 -232
  471. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map +0 -1
  472. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map +0 -1
  473. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts +0 -77
  474. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map +0 -1
  475. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map +0 -1
  476. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +0 -170
  477. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +0 -1
  478. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +0 -1
  479. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +0 -94
  480. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +0 -1
  481. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map +0 -1
  482. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts +0 -10
  483. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map +0 -1
  484. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map +0 -1
  485. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts +0 -31
  486. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map +0 -1
  487. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map +0 -1
  488. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts +0 -19
  489. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map +0 -1
  490. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map +0 -1
  491. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts +0 -148
  492. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map +0 -1
  493. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map +0 -1
  494. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts +0 -24
  495. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map +0 -1
  496. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map +0 -1
  497. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts +0 -4
  498. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map +0 -1
  499. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map +0 -1
  500. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts +0 -29
  501. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map +0 -1
  502. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map +0 -1
  503. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts +0 -13
  504. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map +0 -1
  505. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map +0 -1
  506. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts +0 -13
  507. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map +0 -1
  508. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map +0 -1
  509. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts +0 -9
  510. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map +0 -1
  511. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map +0 -1
  512. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +0 -35
  513. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +0 -1
  514. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map +0 -1
  515. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts +0 -19
  516. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +0 -1
  517. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map +0 -1
  518. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts +0 -68
  519. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map +0 -1
  520. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map +0 -1
  521. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts +0 -49
  522. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +0 -1
  523. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map +0 -1
  524. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts +0 -101
  525. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map +0 -1
  526. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map +0 -1
  527. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts +0 -32
  528. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map +0 -1
  529. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map +0 -1
  530. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts +0 -38
  531. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map +0 -1
  532. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map +0 -1
  533. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts +0 -45
  534. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map +0 -1
  535. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map +0 -1
  536. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts +0 -196
  537. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +0 -1
  538. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +0 -1
  539. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +0 -364
  540. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +0 -1
  541. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +0 -1
  542. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts +0 -32
  543. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map +0 -1
  544. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map +0 -1
  545. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts +0 -82
  546. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +0 -1
  547. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +0 -1
  548. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +0 -28
  549. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +0 -1
  550. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +0 -1
  551. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts +0 -122
  552. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map +0 -1
  553. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map +0 -1
  554. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +0 -268
  555. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +0 -1
  556. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +0 -1
  557. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts +0 -84
  558. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +0 -1
  559. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +0 -1
  560. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts +0 -12
  561. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map +0 -1
  562. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map +0 -1
  563. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts +0 -23
  564. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map +0 -1
  565. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map +0 -1
  566. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +0 -240
  567. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map +0 -1
  568. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map +0 -1
  569. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts +0 -16
  570. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map +0 -1
  571. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map +0 -1
  572. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +0 -443
  573. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +0 -1
  574. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +0 -1
  575. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts +0 -45
  576. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map +0 -1
  577. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map +0 -1
  578. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +0 -13
  579. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +0 -1
  580. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +0 -1
  581. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts +0 -31
  582. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map +0 -1
  583. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map +0 -1
  584. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +0 -89
  585. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +0 -1
  586. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map +0 -1
  587. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts +0 -25
  588. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map +0 -1
  589. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map +0 -1
  590. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts +0 -2311
  591. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map +0 -1
  592. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map +0 -1
  593. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +0 -8168
  594. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +0 -1
  595. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map +0 -1
  596. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts +0 -53
  597. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map +0 -1
  598. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map +0 -1
  599. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts +0 -51
  600. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map +0 -1
  601. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map +0 -1
  602. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts +0 -29
  603. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map +0 -1
  604. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map +0 -1
  605. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts +0 -65
  606. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map +0 -1
  607. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map +0 -1
  608. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +0 -190
  609. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +0 -1
  610. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +0 -1
  611. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +0 -451
  612. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +0 -1
  613. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +0 -1
  614. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts +0 -591
  615. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +0 -1
  616. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +0 -1
  617. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts +0 -169
  618. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map +0 -1
  619. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map +0 -1
  620. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +0 -81
  621. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map +0 -1
  622. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map +0 -1
  623. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +0 -77
  624. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +0 -1
  625. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +0 -1
  626. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +0 -171
  627. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +0 -1
  628. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +0 -1
  629. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts +0 -17
  630. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map +0 -1
  631. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map +0 -1
  632. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts +0 -2
  633. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts.map +0 -1
  634. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +0 -678
  635. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map +0 -1
  636. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts +0 -2
  637. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts.map +0 -1
  638. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js +0 -132
  639. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js.map +0 -1
  640. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts +0 -2
  641. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts.map +0 -1
  642. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js +0 -174
  643. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js.map +0 -1
  644. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts +0 -20
  645. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map +0 -1
  646. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js +0 -68
  647. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map +0 -1
  648. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts +0 -3
  649. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts.map +0 -1
  650. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +0 -395
  651. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map +0 -1
  652. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts +0 -26
  653. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts.map +0 -1
  654. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js +0 -47
  655. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js.map +0 -1
  656. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts +0 -2
  657. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts.map +0 -1
  658. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +0 -855
  659. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map +0 -1
  660. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts +0 -10
  661. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map +0 -1
  662. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js +0 -155
  663. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js.map +0 -1
  664. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts +0 -2
  665. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts.map +0 -1
  666. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js +0 -93
  667. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js.map +0 -1
  668. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts +0 -2
  669. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +0 -1
  670. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js +0 -166
  671. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map +0 -1
  672. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +0 -78
  673. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map +0 -1
  674. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js +0 -196
  675. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map +0 -1
  676. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts +0 -2
  677. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts.map +0 -1
  678. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +0 -458
  679. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +0 -1
  680. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts +0 -2
  681. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts.map +0 -1
  682. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js +0 -651
  683. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map +0 -1
  684. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts +0 -10
  685. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts.map +0 -1
  686. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +0 -60
  687. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map +0 -1
  688. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts +0 -2
  689. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map +0 -1
  690. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js +0 -146
  691. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +0 -1
  692. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts +0 -7
  693. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map +0 -1
  694. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js +0 -70
  695. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js.map +0 -1
  696. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts +0 -12
  697. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts.map +0 -1
  698. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js +0 -47
  699. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js.map +0 -1
  700. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts +0 -2
  701. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts.map +0 -1
  702. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js +0 -143
  703. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js.map +0 -1
  704. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts +0 -2
  705. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map +0 -1
  706. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js +0 -141
  707. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map +0 -1
  708. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts +0 -2
  709. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts.map +0 -1
  710. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +0 -725
  711. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +0 -1
  712. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts +0 -12
  713. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts.map +0 -1
  714. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js +0 -598
  715. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map +0 -1
  716. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +0 -2
  717. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +0 -1
  718. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +0 -231
  719. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +0 -1
  720. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts +0 -2
  721. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts.map +0 -1
  722. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +0 -102
  723. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +0 -1
  724. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts +0 -2
  725. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +0 -1
  726. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +0 -122
  727. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +0 -1
  728. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts +0 -2
  729. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts.map +0 -1
  730. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js +0 -48
  731. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js.map +0 -1
  732. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts +0 -31
  733. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts.map +0 -1
  734. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js +0 -65
  735. package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js.map +0 -1
  736. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts +0 -13
  737. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map +0 -1
  738. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map +0 -1
  739. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts +0 -121
  740. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map +0 -1
  741. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map +0 -1
  742. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts +0 -47
  743. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map +0 -1
  744. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map +0 -1
  745. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts +0 -16
  746. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map +0 -1
  747. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map +0 -1
  748. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +0 -232
  749. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map +0 -1
  750. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +0 -1
  751. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts +0 -77
  752. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map +0 -1
  753. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map +0 -1
  754. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +0 -170
  755. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +0 -1
  756. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +0 -1
  757. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +0 -94
  758. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +0 -1
  759. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map +0 -1
  760. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts +0 -10
  761. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map +0 -1
  762. package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map +0 -1
  763. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts +0 -31
  764. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map +0 -1
  765. package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map +0 -1
  766. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts +0 -19
  767. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map +0 -1
  768. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map +0 -1
  769. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts +0 -148
  770. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map +0 -1
  771. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map +0 -1
  772. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts +0 -24
  773. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map +0 -1
  774. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map +0 -1
  775. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts +0 -4
  776. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map +0 -1
  777. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map +0 -1
  778. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts +0 -29
  779. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map +0 -1
  780. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map +0 -1
  781. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts +0 -13
  782. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map +0 -1
  783. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map +0 -1
  784. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts +0 -13
  785. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map +0 -1
  786. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map +0 -1
  787. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts +0 -9
  788. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map +0 -1
  789. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map +0 -1
  790. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +0 -35
  791. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +0 -1
  792. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map +0 -1
  793. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts +0 -19
  794. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map +0 -1
  795. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map +0 -1
  796. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts +0 -68
  797. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map +0 -1
  798. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map +0 -1
  799. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts +0 -49
  800. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map +0 -1
  801. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map +0 -1
  802. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts +0 -101
  803. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map +0 -1
  804. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map +0 -1
  805. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts +0 -32
  806. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map +0 -1
  807. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map +0 -1
  808. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts +0 -38
  809. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map +0 -1
  810. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +0 -1
  811. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts +0 -45
  812. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map +0 -1
  813. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map +0 -1
  814. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts +0 -196
  815. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +0 -1
  816. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +0 -1
  817. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +0 -364
  818. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +0 -1
  819. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +0 -1
  820. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts +0 -32
  821. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map +0 -1
  822. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map +0 -1
  823. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts +0 -82
  824. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +0 -1
  825. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +0 -1
  826. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +0 -28
  827. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +0 -1
  828. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +0 -1
  829. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts +0 -122
  830. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map +0 -1
  831. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map +0 -1
  832. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +0 -268
  833. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +0 -1
  834. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +0 -1
  835. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts +0 -84
  836. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +0 -1
  837. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +0 -1
  838. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts +0 -12
  839. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map +0 -1
  840. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +0 -1
  841. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts +0 -23
  842. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map +0 -1
  843. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map +0 -1
  844. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +0 -240
  845. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map +0 -1
  846. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +0 -1
  847. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts +0 -16
  848. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map +0 -1
  849. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map +0 -1
  850. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +0 -443
  851. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +0 -1
  852. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +0 -1
  853. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts +0 -45
  854. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map +0 -1
  855. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map +0 -1
  856. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +0 -13
  857. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +0 -1
  858. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +0 -1
  859. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts +0 -31
  860. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map +0 -1
  861. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map +0 -1
  862. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +0 -89
  863. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +0 -1
  864. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map +0 -1
  865. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts +0 -25
  866. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map +0 -1
  867. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map +0 -1
  868. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +0 -2311
  869. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map +0 -1
  870. package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map +0 -1
  871. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +0 -8168
  872. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +0 -1
  873. package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +0 -1
  874. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +0 -53
  875. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map +0 -1
  876. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +0 -1
  877. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +0 -51
  878. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map +0 -1
  879. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map +0 -1
  880. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +0 -29
  881. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map +0 -1
  882. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map +0 -1
  883. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +0 -65
  884. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map +0 -1
  885. package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map +0 -1
  886. package/node_modules/@openai/codex/README.md +0 -81
  887. package/node_modules/accepts/HISTORY.md +0 -250
  888. package/node_modules/accepts/README.md +0 -140
  889. package/node_modules/ajv/.runkit_example.js +0 -23
  890. package/node_modules/ajv/README.md +0 -207
  891. package/node_modules/ajv/dist/2019.js.map +0 -1
  892. package/node_modules/ajv/dist/2020.js.map +0 -1
  893. package/node_modules/ajv/dist/ajv.js.map +0 -1
  894. package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  895. package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  896. package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  897. package/node_modules/ajv/dist/compile/errors.js.map +0 -1
  898. package/node_modules/ajv/dist/compile/index.js.map +0 -1
  899. package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  900. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  901. package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  902. package/node_modules/ajv/dist/compile/names.js.map +0 -1
  903. package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  904. package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  905. package/node_modules/ajv/dist/compile/rules.js.map +0 -1
  906. package/node_modules/ajv/dist/compile/util.js.map +0 -1
  907. package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  908. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  909. package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  910. package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  911. package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  912. package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  913. package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  914. package/node_modules/ajv/dist/core.js.map +0 -1
  915. package/node_modules/ajv/dist/jtd.js.map +0 -1
  916. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  917. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  918. package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  919. package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  920. package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  921. package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  922. package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  923. package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  924. package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  925. package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  926. package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  927. package/node_modules/ajv/dist/standalone/index.js.map +0 -1
  928. package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  929. package/node_modules/ajv/dist/types/index.js.map +0 -1
  930. package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  931. package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  932. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  933. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  934. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  935. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  936. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  937. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  938. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  939. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  940. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  941. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  942. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  943. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  944. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  945. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  946. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  947. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  948. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  949. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  950. package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  951. package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  952. package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  953. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  954. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  955. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  956. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  957. package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  958. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  959. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  960. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  961. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  962. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  963. package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  964. package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  965. package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  966. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  967. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  968. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  969. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  970. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  971. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  972. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  973. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  974. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  975. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  976. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  977. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  978. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  979. package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  980. package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  981. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  982. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  983. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  984. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  985. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  986. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  987. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  988. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  989. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  990. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  991. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  992. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  993. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  994. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  995. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  996. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  997. package/node_modules/ajv/lib/2019.ts +0 -81
  998. package/node_modules/ajv/lib/2020.ts +0 -75
  999. package/node_modules/ajv/lib/ajv.ts +0 -70
  1000. package/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  1001. package/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  1002. package/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  1003. package/node_modules/ajv/lib/compile/errors.ts +0 -184
  1004. package/node_modules/ajv/lib/compile/index.ts +0 -324
  1005. package/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  1006. package/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  1007. package/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  1008. package/node_modules/ajv/lib/compile/names.ts +0 -27
  1009. package/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  1010. package/node_modules/ajv/lib/compile/resolve.ts +0 -149
  1011. package/node_modules/ajv/lib/compile/rules.ts +0 -50
  1012. package/node_modules/ajv/lib/compile/util.ts +0 -213
  1013. package/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  1014. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  1015. package/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  1016. package/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  1017. package/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  1018. package/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  1019. package/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  1020. package/node_modules/ajv/lib/core.ts +0 -892
  1021. package/node_modules/ajv/lib/jtd.ts +0 -132
  1022. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  1023. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  1024. package/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  1025. package/node_modules/ajv/lib/runtime/equal.ts +0 -7
  1026. package/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  1027. package/node_modules/ajv/lib/runtime/quote.ts +0 -31
  1028. package/node_modules/ajv/lib/runtime/re2.ts +0 -6
  1029. package/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  1030. package/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  1031. package/node_modules/ajv/lib/runtime/uri.ts +0 -6
  1032. package/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  1033. package/node_modules/ajv/lib/standalone/index.ts +0 -100
  1034. package/node_modules/ajv/lib/standalone/instance.ts +0 -36
  1035. package/node_modules/ajv/lib/types/index.ts +0 -244
  1036. package/node_modules/ajv/lib/types/json-schema.ts +0 -187
  1037. package/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  1038. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  1039. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  1040. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  1041. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  1042. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  1043. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  1044. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  1045. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  1046. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  1047. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  1048. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  1049. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  1050. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  1051. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  1052. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  1053. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  1054. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  1055. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  1056. package/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  1057. package/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  1058. package/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  1059. package/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  1060. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  1061. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  1062. package/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  1063. package/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  1064. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  1065. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  1066. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  1067. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  1068. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  1069. package/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  1070. package/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  1071. package/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  1072. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  1073. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  1074. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  1075. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  1076. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  1077. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  1078. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  1079. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  1080. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  1081. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  1082. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  1083. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  1084. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  1085. package/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  1086. package/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  1087. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  1088. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  1089. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  1090. package/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  1091. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  1092. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  1093. package/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  1094. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  1095. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  1096. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  1097. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  1098. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  1099. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  1100. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  1101. package/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  1102. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  1103. package/node_modules/ajv-formats/README.md +0 -125
  1104. package/node_modules/ajv-formats/dist/formats.d.ts +0 -9
  1105. package/node_modules/ajv-formats/dist/formats.js.map +0 -1
  1106. package/node_modules/ajv-formats/dist/index.d.ts +0 -15
  1107. package/node_modules/ajv-formats/dist/index.js.map +0 -1
  1108. package/node_modules/ajv-formats/dist/limit.d.ts +0 -10
  1109. package/node_modules/ajv-formats/dist/limit.js.map +0 -1
  1110. package/node_modules/ajv-formats/src/formats.ts +0 -269
  1111. package/node_modules/ajv-formats/src/index.ts +0 -62
  1112. package/node_modules/ajv-formats/src/limit.ts +0 -99
  1113. package/node_modules/body-parser/README.md +0 -513
  1114. package/node_modules/body-parser/node_modules/content-type/README.md +0 -71
  1115. package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +0 -46
  1116. package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +0 -1
  1117. package/node_modules/bundle-name/readme.md +0 -23
  1118. package/node_modules/bytes/History.md +0 -97
  1119. package/node_modules/bytes/Readme.md +0 -152
  1120. package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
  1121. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
  1122. package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
  1123. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
  1124. package/node_modules/call-bind-apply-helpers/README.md +0 -62
  1125. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
  1126. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
  1127. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
  1128. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
  1129. package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
  1130. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
  1131. package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
  1132. package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
  1133. package/node_modules/call-bound/.eslintrc +0 -13
  1134. package/node_modules/call-bound/.github/FUNDING.yml +0 -12
  1135. package/node_modules/call-bound/.nycrc +0 -9
  1136. package/node_modules/call-bound/CHANGELOG.md +0 -42
  1137. package/node_modules/call-bound/README.md +0 -53
  1138. package/node_modules/call-bound/index.d.ts +0 -94
  1139. package/node_modules/call-bound/test/index.js +0 -61
  1140. package/node_modules/call-bound/tsconfig.json +0 -10
  1141. package/node_modules/content-disposition/README.md +0 -211
  1142. package/node_modules/content-disposition/dist/index.d.ts +0 -72
  1143. package/node_modules/content-disposition/dist/index.js.map +0 -1
  1144. package/node_modules/content-type/HISTORY.md +0 -29
  1145. package/node_modules/content-type/README.md +0 -94
  1146. package/node_modules/cookie/README.md +0 -317
  1147. package/node_modules/cookie/SECURITY.md +0 -25
  1148. package/node_modules/cookie-signature/History.md +0 -70
  1149. package/node_modules/cookie-signature/Readme.md +0 -23
  1150. package/node_modules/cors/README.md +0 -277
  1151. package/node_modules/cross-spawn/README.md +0 -89
  1152. package/node_modules/csv-parse/README.md +0 -82
  1153. package/node_modules/csv-parse/dist/cjs/index.d.cts +0 -572
  1154. package/node_modules/csv-parse/dist/cjs/stream.d.cts +0 -23
  1155. package/node_modules/csv-parse/dist/cjs/sync.d.cts +0 -31
  1156. package/node_modules/csv-parse/dist/esm/index.d.ts +0 -572
  1157. package/node_modules/csv-parse/dist/esm/stream.d.ts +0 -23
  1158. package/node_modules/csv-parse/dist/esm/sync.d.ts +0 -31
  1159. package/node_modules/csv-parse/lib/index.d.ts +0 -572
  1160. package/node_modules/csv-parse/lib/stream.d.ts +0 -23
  1161. package/node_modules/csv-parse/lib/sync.d.ts +0 -31
  1162. package/node_modules/debug/README.md +0 -481
  1163. package/node_modules/default-browser/index.d.ts +0 -29
  1164. package/node_modules/default-browser/readme.md +0 -24
  1165. package/node_modules/default-browser-id/readme.md +0 -19
  1166. package/node_modules/define-lazy-prop/index.d.ts +0 -31
  1167. package/node_modules/define-lazy-prop/readme.md +0 -55
  1168. package/node_modules/depd/History.md +0 -103
  1169. package/node_modules/depd/Readme.md +0 -280
  1170. package/node_modules/diff/CONTRIBUTING.md +0 -28
  1171. package/node_modules/diff/README.md +0 -468
  1172. package/node_modules/diff/libcjs/convert/dmp.d.ts +0 -8
  1173. package/node_modules/diff/libcjs/convert/dmp.d.ts.map +0 -1
  1174. package/node_modules/diff/libcjs/convert/xml.d.ts +0 -6
  1175. package/node_modules/diff/libcjs/convert/xml.d.ts.map +0 -1
  1176. package/node_modules/diff/libcjs/diff/array.d.ts +0 -19
  1177. package/node_modules/diff/libcjs/diff/array.d.ts.map +0 -1
  1178. package/node_modules/diff/libcjs/diff/base.d.ts +0 -20
  1179. package/node_modules/diff/libcjs/diff/base.d.ts.map +0 -1
  1180. package/node_modules/diff/libcjs/diff/character.d.ts +0 -19
  1181. package/node_modules/diff/libcjs/diff/character.d.ts.map +0 -1
  1182. package/node_modules/diff/libcjs/diff/css.d.ts +0 -18
  1183. package/node_modules/diff/libcjs/diff/css.d.ts.map +0 -1
  1184. package/node_modules/diff/libcjs/diff/json.d.ts +0 -24
  1185. package/node_modules/diff/libcjs/diff/json.d.ts.map +0 -1
  1186. package/node_modules/diff/libcjs/diff/line.d.ts +0 -24
  1187. package/node_modules/diff/libcjs/diff/line.d.ts.map +0 -1
  1188. package/node_modules/diff/libcjs/diff/sentence.d.ts +0 -21
  1189. package/node_modules/diff/libcjs/diff/sentence.d.ts.map +0 -1
  1190. package/node_modules/diff/libcjs/diff/word.d.ts +0 -35
  1191. package/node_modules/diff/libcjs/diff/word.d.ts.map +0 -1
  1192. package/node_modules/diff/libcjs/index.d.ts +0 -20
  1193. package/node_modules/diff/libcjs/index.d.ts.map +0 -1
  1194. package/node_modules/diff/libcjs/patch/apply.d.ts +0 -62
  1195. package/node_modules/diff/libcjs/patch/apply.d.ts.map +0 -1
  1196. package/node_modules/diff/libcjs/patch/create.d.ts +0 -131
  1197. package/node_modules/diff/libcjs/patch/create.d.ts.map +0 -1
  1198. package/node_modules/diff/libcjs/patch/line-endings.d.ts +0 -17
  1199. package/node_modules/diff/libcjs/patch/line-endings.d.ts.map +0 -1
  1200. package/node_modules/diff/libcjs/patch/parse.d.ts +0 -16
  1201. package/node_modules/diff/libcjs/patch/parse.d.ts.map +0 -1
  1202. package/node_modules/diff/libcjs/patch/reverse.d.ts +0 -22
  1203. package/node_modules/diff/libcjs/patch/reverse.d.ts.map +0 -1
  1204. package/node_modules/diff/libcjs/types.d.ts +0 -260
  1205. package/node_modules/diff/libcjs/types.d.ts.map +0 -1
  1206. package/node_modules/diff/libcjs/util/array.d.ts +0 -3
  1207. package/node_modules/diff/libcjs/util/array.d.ts.map +0 -1
  1208. package/node_modules/diff/libcjs/util/distance-iterator.d.ts +0 -2
  1209. package/node_modules/diff/libcjs/util/distance-iterator.d.ts.map +0 -1
  1210. package/node_modules/diff/libcjs/util/params.d.ts +0 -4
  1211. package/node_modules/diff/libcjs/util/params.d.ts.map +0 -1
  1212. package/node_modules/diff/libcjs/util/string.d.ts +0 -30
  1213. package/node_modules/diff/libcjs/util/string.d.ts.map +0 -1
  1214. package/node_modules/diff/libesm/convert/dmp.d.ts +0 -8
  1215. package/node_modules/diff/libesm/convert/dmp.d.ts.map +0 -1
  1216. package/node_modules/diff/libesm/convert/xml.d.ts +0 -6
  1217. package/node_modules/diff/libesm/convert/xml.d.ts.map +0 -1
  1218. package/node_modules/diff/libesm/diff/array.d.ts +0 -19
  1219. package/node_modules/diff/libesm/diff/array.d.ts.map +0 -1
  1220. package/node_modules/diff/libesm/diff/base.d.ts +0 -20
  1221. package/node_modules/diff/libesm/diff/base.d.ts.map +0 -1
  1222. package/node_modules/diff/libesm/diff/character.d.ts +0 -19
  1223. package/node_modules/diff/libesm/diff/character.d.ts.map +0 -1
  1224. package/node_modules/diff/libesm/diff/css.d.ts +0 -18
  1225. package/node_modules/diff/libesm/diff/css.d.ts.map +0 -1
  1226. package/node_modules/diff/libesm/diff/json.d.ts +0 -24
  1227. package/node_modules/diff/libesm/diff/json.d.ts.map +0 -1
  1228. package/node_modules/diff/libesm/diff/line.d.ts +0 -24
  1229. package/node_modules/diff/libesm/diff/line.d.ts.map +0 -1
  1230. package/node_modules/diff/libesm/diff/sentence.d.ts +0 -21
  1231. package/node_modules/diff/libesm/diff/sentence.d.ts.map +0 -1
  1232. package/node_modules/diff/libesm/diff/word.d.ts +0 -35
  1233. package/node_modules/diff/libesm/diff/word.d.ts.map +0 -1
  1234. package/node_modules/diff/libesm/index.d.ts +0 -20
  1235. package/node_modules/diff/libesm/index.d.ts.map +0 -1
  1236. package/node_modules/diff/libesm/patch/apply.d.ts +0 -62
  1237. package/node_modules/diff/libesm/patch/apply.d.ts.map +0 -1
  1238. package/node_modules/diff/libesm/patch/create.d.ts +0 -131
  1239. package/node_modules/diff/libesm/patch/create.d.ts.map +0 -1
  1240. package/node_modules/diff/libesm/patch/line-endings.d.ts +0 -17
  1241. package/node_modules/diff/libesm/patch/line-endings.d.ts.map +0 -1
  1242. package/node_modules/diff/libesm/patch/parse.d.ts +0 -16
  1243. package/node_modules/diff/libesm/patch/parse.d.ts.map +0 -1
  1244. package/node_modules/diff/libesm/patch/reverse.d.ts +0 -22
  1245. package/node_modules/diff/libesm/patch/reverse.d.ts.map +0 -1
  1246. package/node_modules/diff/libesm/types.d.ts +0 -260
  1247. package/node_modules/diff/libesm/types.d.ts.map +0 -1
  1248. package/node_modules/diff/libesm/util/array.d.ts +0 -3
  1249. package/node_modules/diff/libesm/util/array.d.ts.map +0 -1
  1250. package/node_modules/diff/libesm/util/distance-iterator.d.ts +0 -2
  1251. package/node_modules/diff/libesm/util/distance-iterator.d.ts.map +0 -1
  1252. package/node_modules/diff/libesm/util/params.d.ts +0 -4
  1253. package/node_modules/diff/libesm/util/params.d.ts.map +0 -1
  1254. package/node_modules/diff/libesm/util/string.d.ts +0 -30
  1255. package/node_modules/diff/libesm/util/string.d.ts.map +0 -1
  1256. package/node_modules/diff/release-notes.md +0 -474
  1257. package/node_modules/dunder-proto/.eslintrc +0 -5
  1258. package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
  1259. package/node_modules/dunder-proto/.nycrc +0 -13
  1260. package/node_modules/dunder-proto/CHANGELOG.md +0 -24
  1261. package/node_modules/dunder-proto/README.md +0 -54
  1262. package/node_modules/dunder-proto/get.d.ts +0 -5
  1263. package/node_modules/dunder-proto/set.d.ts +0 -5
  1264. package/node_modules/dunder-proto/test/get.js +0 -34
  1265. package/node_modules/dunder-proto/test/index.js +0 -4
  1266. package/node_modules/dunder-proto/test/set.js +0 -50
  1267. package/node_modules/dunder-proto/tsconfig.json +0 -9
  1268. package/node_modules/ee-first/README.md +0 -80
  1269. package/node_modules/encodeurl/README.md +0 -123
  1270. package/node_modules/es-define-property/.eslintrc +0 -13
  1271. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  1272. package/node_modules/es-define-property/.nycrc +0 -9
  1273. package/node_modules/es-define-property/CHANGELOG.md +0 -29
  1274. package/node_modules/es-define-property/README.md +0 -49
  1275. package/node_modules/es-define-property/index.d.ts +0 -3
  1276. package/node_modules/es-define-property/test/index.js +0 -56
  1277. package/node_modules/es-define-property/tsconfig.json +0 -10
  1278. package/node_modules/es-errors/.eslintrc +0 -5
  1279. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  1280. package/node_modules/es-errors/CHANGELOG.md +0 -40
  1281. package/node_modules/es-errors/README.md +0 -55
  1282. package/node_modules/es-errors/eval.d.ts +0 -3
  1283. package/node_modules/es-errors/index.d.ts +0 -3
  1284. package/node_modules/es-errors/range.d.ts +0 -3
  1285. package/node_modules/es-errors/ref.d.ts +0 -3
  1286. package/node_modules/es-errors/syntax.d.ts +0 -3
  1287. package/node_modules/es-errors/test/index.js +0 -19
  1288. package/node_modules/es-errors/tsconfig.json +0 -49
  1289. package/node_modules/es-errors/type.d.ts +0 -3
  1290. package/node_modules/es-errors/uri.d.ts +0 -3
  1291. package/node_modules/es-object-atoms/.eslintrc +0 -16
  1292. package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
  1293. package/node_modules/es-object-atoms/CHANGELOG.md +0 -44
  1294. package/node_modules/es-object-atoms/README.md +0 -63
  1295. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
  1296. package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
  1297. package/node_modules/es-object-atoms/index.d.ts +0 -3
  1298. package/node_modules/es-object-atoms/isObject.d.ts +0 -3
  1299. package/node_modules/es-object-atoms/test/index.js +0 -38
  1300. package/node_modules/es-object-atoms/tsconfig.json +0 -7
  1301. package/node_modules/escape-html/Readme.md +0 -43
  1302. package/node_modules/etag/HISTORY.md +0 -83
  1303. package/node_modules/etag/README.md +0 -159
  1304. package/node_modules/eventsource/README.md +0 -167
  1305. package/node_modules/eventsource/dist/index.cjs.map +0 -1
  1306. package/node_modules/eventsource/dist/index.d.cts +0 -332
  1307. package/node_modules/eventsource/dist/index.d.ts +0 -332
  1308. package/node_modules/eventsource/dist/index.js.map +0 -1
  1309. package/node_modules/eventsource/src/EventSource.ts +0 -596
  1310. package/node_modules/eventsource/src/errors.ts +0 -141
  1311. package/node_modules/eventsource/src/index.ts +0 -3
  1312. package/node_modules/eventsource/src/types.ts +0 -152
  1313. package/node_modules/eventsource-parser/README.md +0 -157
  1314. package/node_modules/eventsource-parser/dist/index.cjs.map +0 -1
  1315. package/node_modules/eventsource-parser/dist/index.d.cts +0 -169
  1316. package/node_modules/eventsource-parser/dist/index.d.ts +0 -169
  1317. package/node_modules/eventsource-parser/dist/index.js.map +0 -1
  1318. package/node_modules/eventsource-parser/dist/stream.cjs.map +0 -1
  1319. package/node_modules/eventsource-parser/dist/stream.d.cts +0 -134
  1320. package/node_modules/eventsource-parser/dist/stream.d.ts +0 -134
  1321. package/node_modules/eventsource-parser/dist/stream.js.map +0 -1
  1322. package/node_modules/eventsource-parser/src/errors.ts +0 -44
  1323. package/node_modules/eventsource-parser/src/index.ts +0 -8
  1324. package/node_modules/eventsource-parser/src/parse.ts +0 -439
  1325. package/node_modules/eventsource-parser/src/stream.ts +0 -107
  1326. package/node_modules/eventsource-parser/src/types.ts +0 -122
  1327. package/node_modules/express/Readme.md +0 -282
  1328. package/node_modules/express/node_modules/content-type/README.md +0 -71
  1329. package/node_modules/express/node_modules/content-type/dist/index.d.ts +0 -46
  1330. package/node_modules/express/node_modules/content-type/dist/index.js.map +0 -1
  1331. package/node_modules/express-rate-limit/dist/index.d.cts +0 -699
  1332. package/node_modules/express-rate-limit/dist/index.d.mts +0 -699
  1333. package/node_modules/express-rate-limit/dist/index.d.ts +0 -699
  1334. package/node_modules/express-rate-limit/readme.md +0 -140
  1335. package/node_modules/express-rate-limit/tsconfig.json +0 -8
  1336. package/node_modules/fast-deep-equal/README.md +0 -96
  1337. package/node_modules/fast-uri/.gitattributes +0 -2
  1338. package/node_modules/fast-uri/.github/dependabot.yml +0 -13
  1339. package/node_modules/fast-uri/.github/workflows/ci.yml +0 -106
  1340. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +0 -19
  1341. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
  1342. package/node_modules/fast-uri/.github/workflows/release.yml +0 -35
  1343. package/node_modules/fast-uri/README.md +0 -160
  1344. package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
  1345. package/node_modules/fast-uri/benchmark/equal.mjs +0 -51
  1346. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
  1347. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
  1348. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
  1349. package/node_modules/fast-uri/test/ajv.test.js +0 -43
  1350. package/node_modules/fast-uri/test/component-safe-serialization.test.js +0 -163
  1351. package/node_modules/fast-uri/test/equal.test.js +0 -145
  1352. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -503
  1353. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
  1354. package/node_modules/fast-uri/test/host-delimiter-security.test.js +0 -94
  1355. package/node_modules/fast-uri/test/ipv6-canonical.test.js +0 -34
  1356. package/node_modules/fast-uri/test/ipv6-validation.test.js +0 -124
  1357. package/node_modules/fast-uri/test/malformed-percent.test.js +0 -77
  1358. package/node_modules/fast-uri/test/malformed-urn.test.js +0 -61
  1359. package/node_modules/fast-uri/test/parse.test.js +0 -327
  1360. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +0 -33
  1361. package/node_modules/fast-uri/test/relative-normalization-security.test.js +0 -156
  1362. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +0 -137
  1363. package/node_modules/fast-uri/test/resolve.test.js +0 -87
  1364. package/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
  1365. package/node_modules/fast-uri/test/scheme-validation.test.js +0 -163
  1366. package/node_modules/fast-uri/test/security-normalization.test.js +0 -178
  1367. package/node_modules/fast-uri/test/security.test.js +0 -431
  1368. package/node_modules/fast-uri/test/serialize.test.js +0 -151
  1369. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
  1370. package/node_modules/fast-uri/test/uri-js.test.js +0 -912
  1371. package/node_modules/fast-uri/test/urn-full-input.test.js +0 -29
  1372. package/node_modules/fast-uri/test/util.test.js +0 -38
  1373. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +0 -24
  1374. package/node_modules/fast-uri/tsconfig.json +0 -9
  1375. package/node_modules/fast-uri/types/index.test-d.ts +0 -17
  1376. package/node_modules/finalhandler/HISTORY.md +0 -239
  1377. package/node_modules/finalhandler/README.md +0 -150
  1378. package/node_modules/forwarded/HISTORY.md +0 -21
  1379. package/node_modules/forwarded/README.md +0 -57
  1380. package/node_modules/fresh/HISTORY.md +0 -80
  1381. package/node_modules/fresh/README.md +0 -117
  1382. package/node_modules/function-bind/.eslintrc +0 -21
  1383. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  1384. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  1385. package/node_modules/function-bind/.nycrc +0 -13
  1386. package/node_modules/function-bind/CHANGELOG.md +0 -136
  1387. package/node_modules/function-bind/README.md +0 -46
  1388. package/node_modules/function-bind/test/.eslintrc +0 -9
  1389. package/node_modules/function-bind/test/index.js +0 -252
  1390. package/node_modules/get-intrinsic/.eslintrc +0 -42
  1391. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  1392. package/node_modules/get-intrinsic/.nycrc +0 -9
  1393. package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
  1394. package/node_modules/get-intrinsic/README.md +0 -71
  1395. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  1396. package/node_modules/get-proto/.eslintrc +0 -10
  1397. package/node_modules/get-proto/.github/FUNDING.yml +0 -12
  1398. package/node_modules/get-proto/.nycrc +0 -9
  1399. package/node_modules/get-proto/CHANGELOG.md +0 -21
  1400. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
  1401. package/node_modules/get-proto/README.md +0 -50
  1402. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
  1403. package/node_modules/get-proto/index.d.ts +0 -5
  1404. package/node_modules/get-proto/test/index.js +0 -68
  1405. package/node_modules/get-proto/tsconfig.json +0 -9
  1406. package/node_modules/gopd/.eslintrc +0 -16
  1407. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  1408. package/node_modules/gopd/CHANGELOG.md +0 -45
  1409. package/node_modules/gopd/README.md +0 -40
  1410. package/node_modules/gopd/gOPD.d.ts +0 -1
  1411. package/node_modules/gopd/index.d.ts +0 -5
  1412. package/node_modules/gopd/test/index.js +0 -36
  1413. package/node_modules/gopd/tsconfig.json +0 -9
  1414. package/node_modules/has-symbols/.eslintrc +0 -11
  1415. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  1416. package/node_modules/has-symbols/.nycrc +0 -9
  1417. package/node_modules/has-symbols/CHANGELOG.md +0 -91
  1418. package/node_modules/has-symbols/README.md +0 -46
  1419. package/node_modules/has-symbols/index.d.ts +0 -3
  1420. package/node_modules/has-symbols/shams.d.ts +0 -3
  1421. package/node_modules/has-symbols/test/index.js +0 -22
  1422. package/node_modules/has-symbols/test/shams/core-js.js +0 -29
  1423. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
  1424. package/node_modules/has-symbols/test/tests.js +0 -58
  1425. package/node_modules/has-symbols/tsconfig.json +0 -10
  1426. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  1427. package/node_modules/hasown/.nycrc +0 -13
  1428. package/node_modules/hasown/CHANGELOG.md +0 -58
  1429. package/node_modules/hasown/README.md +0 -40
  1430. package/node_modules/hasown/index.d.ts +0 -3
  1431. package/node_modules/hasown/tsconfig.json +0 -6
  1432. package/node_modules/hono/README.md +0 -84
  1433. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +0 -30
  1434. package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +0 -230
  1435. package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +0 -4
  1436. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +0 -183
  1437. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +0 -10
  1438. package/node_modules/hono/dist/types/adapter/bun/index.d.ts +0 -6
  1439. package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +0 -8
  1440. package/node_modules/hono/dist/types/adapter/bun/server.d.ts +0 -11
  1441. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +0 -17
  1442. package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +0 -54
  1443. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +0 -24
  1444. package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +0 -45
  1445. package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +0 -3
  1446. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +0 -7
  1447. package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +0 -4
  1448. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +0 -7
  1449. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +0 -21
  1450. package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +0 -13
  1451. package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +0 -7
  1452. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +0 -10
  1453. package/node_modules/hono/dist/types/adapter/deno/deno.d.ts +0 -1
  1454. package/node_modules/hono/dist/types/adapter/deno/index.d.ts +0 -5
  1455. package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +0 -8
  1456. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +0 -17
  1457. package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +0 -7
  1458. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +0 -7
  1459. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +0 -113
  1460. package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +0 -3
  1461. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +0 -24
  1462. package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +0 -7
  1463. package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +0 -3
  1464. package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +0 -3
  1465. package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +0 -18
  1466. package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +0 -26
  1467. package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +0 -17
  1468. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +0 -7
  1469. package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +0 -7
  1470. package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +0 -3
  1471. package/node_modules/hono/dist/types/client/client.d.ts +0 -6
  1472. package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +0 -37
  1473. package/node_modules/hono/dist/types/client/index.d.ts +0 -5
  1474. package/node_modules/hono/dist/types/client/types.d.ts +0 -204
  1475. package/node_modules/hono/dist/types/client/utils.d.ts +0 -20
  1476. package/node_modules/hono/dist/types/compose.d.ts +0 -16
  1477. package/node_modules/hono/dist/types/context.d.ts +0 -459
  1478. package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +0 -32
  1479. package/node_modules/hono/dist/types/helper/accepts/index.d.ts +0 -2
  1480. package/node_modules/hono/dist/types/helper/adapter/index.d.ts +0 -10
  1481. package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +0 -2
  1482. package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +0 -38
  1483. package/node_modules/hono/dist/types/helper/cookie/index.d.ts +0 -22
  1484. package/node_modules/hono/dist/types/helper/css/common.d.ts +0 -61
  1485. package/node_modules/hono/dist/types/helper/css/index.d.ts +0 -78
  1486. package/node_modules/hono/dist/types/helper/dev/index.d.ts +0 -18
  1487. package/node_modules/hono/dist/types/helper/factory/index.d.ts +0 -35
  1488. package/node_modules/hono/dist/types/helper/html/index.d.ts +0 -5
  1489. package/node_modules/hono/dist/types/helper/proxy/index.d.ts +0 -70
  1490. package/node_modules/hono/dist/types/helper/route/index.d.ts +0 -77
  1491. package/node_modules/hono/dist/types/helper/ssg/index.d.ts +0 -4
  1492. package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +0 -46
  1493. package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +0 -29
  1494. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +0 -93
  1495. package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +0 -18
  1496. package/node_modules/hono/dist/types/helper/streaming/index.d.ts +0 -4
  1497. package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +0 -15
  1498. package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +0 -5
  1499. package/node_modules/hono/dist/types/helper/streaming/text.d.ts +0 -5
  1500. package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +0 -3
  1501. package/node_modules/hono/dist/types/helper/testing/index.d.ts +0 -11
  1502. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +0 -66
  1503. package/node_modules/hono/dist/types/hono-base.d.ts +0 -233
  1504. package/node_modules/hono/dist/types/hono.d.ts +0 -20
  1505. package/node_modules/hono/dist/types/http-exception.d.ts +0 -57
  1506. package/node_modules/hono/dist/types/index.d.ts +0 -6
  1507. package/node_modules/hono/dist/types/jsx/base.d.ts +0 -63
  1508. package/node_modules/hono/dist/types/jsx/children.d.ts +0 -11
  1509. package/node_modules/hono/dist/types/jsx/components.d.ts +0 -18
  1510. package/node_modules/hono/dist/types/jsx/constants.d.ts +0 -8
  1511. package/node_modules/hono/dist/types/jsx/context.d.ts +0 -54
  1512. package/node_modules/hono/dist/types/jsx/dom/client.d.ts +0 -30
  1513. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +0 -13
  1514. package/node_modules/hono/dist/types/jsx/dom/context.d.ts +0 -5
  1515. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +0 -80
  1516. package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +0 -38
  1517. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +0 -84
  1518. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +0 -20
  1519. package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +0 -6
  1520. package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +0 -3
  1521. package/node_modules/hono/dist/types/jsx/dom/render.d.ts +0 -55
  1522. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +0 -108
  1523. package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +0 -3
  1524. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +0 -47
  1525. package/node_modules/hono/dist/types/jsx/index.d.ts +0 -73
  1526. package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +0 -8
  1527. package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +0 -16
  1528. package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +0 -722
  1529. package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +0 -5
  1530. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +0 -9
  1531. package/node_modules/hono/dist/types/jsx/streaming.d.ts +0 -36
  1532. package/node_modules/hono/dist/types/jsx/types.d.ts +0 -34
  1533. package/node_modules/hono/dist/types/jsx/utils.d.ts +0 -6
  1534. package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +0 -73
  1535. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +0 -91
  1536. package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +0 -43
  1537. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +0 -43
  1538. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +0 -85
  1539. package/node_modules/hono/dist/types/middleware/compress/index.d.ts +0 -39
  1540. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +0 -38
  1541. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +0 -53
  1542. package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +0 -76
  1543. package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +0 -3
  1544. package/node_modules/hono/dist/types/middleware/etag/index.d.ts +0 -40
  1545. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +0 -66
  1546. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +0 -77
  1547. package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +0 -2
  1548. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +0 -53
  1549. package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +0 -9
  1550. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +0 -67
  1551. package/node_modules/hono/dist/types/middleware/language/index.d.ts +0 -8
  1552. package/node_modules/hono/dist/types/middleware/language/language.d.ts +0 -118
  1553. package/node_modules/hono/dist/types/middleware/logger/index.d.ts +0 -22
  1554. package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +0 -47
  1555. package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +0 -46
  1556. package/node_modules/hono/dist/types/middleware/mount/index.d.ts +0 -47
  1557. package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +0 -27
  1558. package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +0 -40
  1559. package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +0 -8
  1560. package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +0 -35
  1561. package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +0 -8
  1562. package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +0 -16
  1563. package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +0 -107
  1564. package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +0 -31
  1565. package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +0 -7
  1566. package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +0 -29
  1567. package/node_modules/hono/dist/types/middleware/timing/index.d.ts +0 -8
  1568. package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +0 -126
  1569. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +0 -92
  1570. package/node_modules/hono/dist/types/preset/quick.d.ts +0 -7
  1571. package/node_modules/hono/dist/types/preset/tiny.d.ts +0 -7
  1572. package/node_modules/hono/dist/types/request/constants.d.ts +0 -3
  1573. package/node_modules/hono/dist/types/request.d.ts +0 -326
  1574. package/node_modules/hono/dist/types/router/linear-router/index.d.ts +0 -2
  1575. package/node_modules/hono/dist/types/router/linear-router/router.d.ts +0 -9
  1576. package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +0 -2
  1577. package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +0 -9
  1578. package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +0 -3
  1579. package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +0 -9
  1580. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +0 -15
  1581. package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +0 -18
  1582. package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +0 -12
  1583. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +0 -10
  1584. package/node_modules/hono/dist/types/router/smart-router/index.d.ts +0 -2
  1585. package/node_modules/hono/dist/types/router/smart-router/router.d.ts +0 -13
  1586. package/node_modules/hono/dist/types/router/trie-router/index.d.ts +0 -2
  1587. package/node_modules/hono/dist/types/router/trie-router/node.d.ts +0 -8
  1588. package/node_modules/hono/dist/types/router/trie-router/router.d.ts +0 -9
  1589. package/node_modules/hono/dist/types/router/utils.d.ts +0 -3
  1590. package/node_modules/hono/dist/types/router.d.ts +0 -98
  1591. package/node_modules/hono/dist/types/types.d.ts +0 -214
  1592. package/node_modules/hono/dist/types/utils/accept.d.ts +0 -8
  1593. package/node_modules/hono/dist/types/utils/basic-auth.d.ts +0 -7
  1594. package/node_modules/hono/dist/types/utils/body.d.ts +0 -75
  1595. package/node_modules/hono/dist/types/utils/buffer.d.ts +0 -19
  1596. package/node_modules/hono/dist/types/utils/color.d.ts +0 -23
  1597. package/node_modules/hono/dist/types/utils/compress.d.ts +0 -10
  1598. package/node_modules/hono/dist/types/utils/concurrent.d.ts +0 -13
  1599. package/node_modules/hono/dist/types/utils/constants.d.ts +0 -6
  1600. package/node_modules/hono/dist/types/utils/cookie.d.ts +0 -42
  1601. package/node_modules/hono/dist/types/utils/crypto.d.ts +0 -13
  1602. package/node_modules/hono/dist/types/utils/encode.d.ts +0 -10
  1603. package/node_modules/hono/dist/types/utils/filepath.d.ts +0 -14
  1604. package/node_modules/hono/dist/types/utils/handler.d.ts +0 -8
  1605. package/node_modules/hono/dist/types/utils/headers.d.ts +0 -10
  1606. package/node_modules/hono/dist/types/utils/html.d.ts +0 -46
  1607. package/node_modules/hono/dist/types/utils/http-status.d.ts +0 -34
  1608. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +0 -54
  1609. package/node_modules/hono/dist/types/utils/jwt/index.d.ts +0 -24
  1610. package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +0 -25
  1611. package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +0 -9
  1612. package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +0 -40
  1613. package/node_modules/hono/dist/types/utils/jwt/types.d.ts +0 -89
  1614. package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +0 -8
  1615. package/node_modules/hono/dist/types/utils/mime.d.ts +0 -73
  1616. package/node_modules/hono/dist/types/utils/mount.d.ts +0 -4
  1617. package/node_modules/hono/dist/types/utils/stream.d.ts +0 -33
  1618. package/node_modules/hono/dist/types/utils/types.d.ts +0 -62
  1619. package/node_modules/hono/dist/types/utils/url.d.ts +0 -47
  1620. package/node_modules/hono/dist/types/validator/index.d.ts +0 -3
  1621. package/node_modules/hono/dist/types/validator/utils.d.ts +0 -27
  1622. package/node_modules/hono/dist/types/validator/validator.d.ts +0 -18
  1623. package/node_modules/http-errors/HISTORY.md +0 -186
  1624. package/node_modules/http-errors/README.md +0 -169
  1625. package/node_modules/iconv-lite/README.md +0 -138
  1626. package/node_modules/iconv-lite/lib/index.d.ts +0 -129
  1627. package/node_modules/iconv-lite/types/encodings.d.ts +0 -425
  1628. package/node_modules/inherits/README.md +0 -42
  1629. package/node_modules/ip-address/README.md +0 -308
  1630. package/node_modules/ip-address/dist/address-error.d.ts +0 -15
  1631. package/node_modules/ip-address/dist/address-error.js.map +0 -1
  1632. package/node_modules/ip-address/dist/common.d.ts +0 -74
  1633. package/node_modules/ip-address/dist/common.js.map +0 -1
  1634. package/node_modules/ip-address/dist/ip-address.d.ts +0 -7
  1635. package/node_modules/ip-address/dist/ip-address.js.map +0 -1
  1636. package/node_modules/ip-address/dist/ipv4.d.ts +0 -347
  1637. package/node_modules/ip-address/dist/ipv4.js.map +0 -1
  1638. package/node_modules/ip-address/dist/ipv6.d.ts +0 -634
  1639. package/node_modules/ip-address/dist/ipv6.js.map +0 -1
  1640. package/node_modules/ip-address/dist/v4/constants.d.ts +0 -16
  1641. package/node_modules/ip-address/dist/v4/constants.js.map +0 -1
  1642. package/node_modules/ip-address/dist/v6/constants.d.ts +0 -61
  1643. package/node_modules/ip-address/dist/v6/constants.js.map +0 -1
  1644. package/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
  1645. package/node_modules/ip-address/dist/v6/helpers.js.map +0 -1
  1646. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -5
  1647. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +0 -1
  1648. package/node_modules/ipaddr.js/README.md +0 -233
  1649. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  1650. package/node_modules/is-docker/index.d.ts +0 -13
  1651. package/node_modules/is-docker/readme.md +0 -27
  1652. package/node_modules/is-in-ssh/index.d.ts +0 -15
  1653. package/node_modules/is-in-ssh/readme.md +0 -43
  1654. package/node_modules/is-inside-container/index.d.ts +0 -13
  1655. package/node_modules/is-inside-container/readme.md +0 -36
  1656. package/node_modules/is-promise/index.d.ts +0 -2
  1657. package/node_modules/is-promise/readme.md +0 -33
  1658. package/node_modules/is-wsl/index.d.ts +0 -15
  1659. package/node_modules/is-wsl/readme.md +0 -21
  1660. package/node_modules/isexe/.npmignore +0 -2
  1661. package/node_modules/isexe/README.md +0 -51
  1662. package/node_modules/isexe/test/basic.js +0 -221
  1663. package/node_modules/jose/README.md +0 -150
  1664. package/node_modules/jose/dist/types/index.d.ts +0 -55
  1665. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -25
  1666. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -40
  1667. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -25
  1668. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -46
  1669. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -29
  1670. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -51
  1671. package/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -10
  1672. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -15
  1673. package/node_modules/jose/dist/types/jwks/local.d.ts +0 -17
  1674. package/node_modules/jose/dist/types/jwks/remote.d.ts +0 -94
  1675. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -21
  1676. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -25
  1677. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -23
  1678. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -26
  1679. package/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -41
  1680. package/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -31
  1681. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -38
  1682. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -57
  1683. package/node_modules/jose/dist/types/jwt/sign.d.ts +0 -21
  1684. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -21
  1685. package/node_modules/jose/dist/types/jwt/verify.d.ts +0 -36
  1686. package/node_modules/jose/dist/types/key/export.d.ts +0 -19
  1687. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -33
  1688. package/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -30
  1689. package/node_modules/jose/dist/types/key/import.d.ts +0 -67
  1690. package/node_modules/jose/dist/types/types.d.ts +0 -802
  1691. package/node_modules/jose/dist/types/util/base64url.d.ts +0 -16
  1692. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -9
  1693. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -10
  1694. package/node_modules/jose/dist/types/util/errors.d.ts +0 -182
  1695. package/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  1696. package/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  1697. package/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  1698. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  1699. package/node_modules/json-schema-traverse/README.md +0 -95
  1700. package/node_modules/json-schema-traverse/index.d.ts +0 -40
  1701. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  1702. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  1703. package/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  1704. package/node_modules/json-schema-typed/README.md +0 -108
  1705. package/node_modules/json-schema-typed/draft_07.d.ts +0 -882
  1706. package/node_modules/json-schema-typed/draft_2019_09.d.ts +0 -1247
  1707. package/node_modules/json-schema-typed/draft_2020_12.d.ts +0 -1239
  1708. package/node_modules/math-intrinsics/.eslintrc +0 -16
  1709. package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
  1710. package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
  1711. package/node_modules/math-intrinsics/README.md +0 -50
  1712. package/node_modules/math-intrinsics/abs.d.ts +0 -1
  1713. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
  1714. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
  1715. package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
  1716. package/node_modules/math-intrinsics/floor.d.ts +0 -1
  1717. package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
  1718. package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
  1719. package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
  1720. package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
  1721. package/node_modules/math-intrinsics/max.d.ts +0 -1
  1722. package/node_modules/math-intrinsics/min.d.ts +0 -1
  1723. package/node_modules/math-intrinsics/mod.d.ts +0 -3
  1724. package/node_modules/math-intrinsics/pow.d.ts +0 -1
  1725. package/node_modules/math-intrinsics/round.d.ts +0 -1
  1726. package/node_modules/math-intrinsics/sign.d.ts +0 -3
  1727. package/node_modules/math-intrinsics/test/index.js +0 -192
  1728. package/node_modules/math-intrinsics/tsconfig.json +0 -3
  1729. package/node_modules/media-typer/HISTORY.md +0 -50
  1730. package/node_modules/media-typer/README.md +0 -94
  1731. package/node_modules/merge-descriptors/index.d.ts +0 -11
  1732. package/node_modules/merge-descriptors/readme.md +0 -55
  1733. package/node_modules/mime-db/HISTORY.md +0 -541
  1734. package/node_modules/mime-db/README.md +0 -109
  1735. package/node_modules/mime-types/HISTORY.md +0 -428
  1736. package/node_modules/mime-types/README.md +0 -126
  1737. package/node_modules/ms/readme.md +0 -59
  1738. package/node_modules/negotiator/README.md +0 -212
  1739. package/node_modules/negotiator/node_modules/content-type/README.md +0 -71
  1740. package/node_modules/negotiator/node_modules/content-type/dist/index.d.ts +0 -46
  1741. package/node_modules/negotiator/node_modules/content-type/dist/index.js.map +0 -1
  1742. package/node_modules/object-assign/readme.md +0 -61
  1743. package/node_modules/object-inspect/.eslintrc +0 -53
  1744. package/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  1745. package/node_modules/object-inspect/.nycrc +0 -13
  1746. package/node_modules/object-inspect/CHANGELOG.md +0 -424
  1747. package/node_modules/object-inspect/example/all.js +0 -23
  1748. package/node_modules/object-inspect/example/circular.js +0 -6
  1749. package/node_modules/object-inspect/example/fn.js +0 -5
  1750. package/node_modules/object-inspect/example/inspect.js +0 -10
  1751. package/node_modules/object-inspect/readme.markdown +0 -84
  1752. package/node_modules/object-inspect/test/bigint.js +0 -58
  1753. package/node_modules/object-inspect/test/browser/dom.js +0 -15
  1754. package/node_modules/object-inspect/test/circular.js +0 -16
  1755. package/node_modules/object-inspect/test/deep.js +0 -12
  1756. package/node_modules/object-inspect/test/element.js +0 -53
  1757. package/node_modules/object-inspect/test/err.js +0 -48
  1758. package/node_modules/object-inspect/test/fakes.js +0 -29
  1759. package/node_modules/object-inspect/test/fn.js +0 -76
  1760. package/node_modules/object-inspect/test/global.js +0 -17
  1761. package/node_modules/object-inspect/test/has.js +0 -15
  1762. package/node_modules/object-inspect/test/holes.js +0 -15
  1763. package/node_modules/object-inspect/test/indent-option.js +0 -271
  1764. package/node_modules/object-inspect/test/inspect.js +0 -139
  1765. package/node_modules/object-inspect/test/lowbyte.js +0 -12
  1766. package/node_modules/object-inspect/test/number.js +0 -58
  1767. package/node_modules/object-inspect/test/quoteStyle.js +0 -26
  1768. package/node_modules/object-inspect/test/toStringTag.js +0 -40
  1769. package/node_modules/object-inspect/test/undef.js +0 -12
  1770. package/node_modules/object-inspect/test/values.js +0 -261
  1771. package/node_modules/on-finished/README.md +0 -162
  1772. package/node_modules/once/README.md +0 -79
  1773. package/node_modules/open/index.d.ts +0 -158
  1774. package/node_modules/open/readme.md +0 -197
  1775. package/node_modules/parseurl/HISTORY.md +0 -58
  1776. package/node_modules/parseurl/README.md +0 -133
  1777. package/node_modules/path-key/index.d.ts +0 -40
  1778. package/node_modules/path-key/readme.md +0 -61
  1779. package/node_modules/path-to-regexp/Readme.md +0 -224
  1780. package/node_modules/path-to-regexp/dist/index.d.ts +0 -147
  1781. package/node_modules/path-to-regexp/dist/index.js.map +0 -1
  1782. package/node_modules/pkce-challenge/CHANGELOG.md +0 -114
  1783. package/node_modules/pkce-challenge/README.md +0 -55
  1784. package/node_modules/pkce-challenge/dist/index.browser.d.ts +0 -19
  1785. package/node_modules/pkce-challenge/dist/index.node.d.cts +0 -19
  1786. package/node_modules/pkce-challenge/dist/index.node.d.ts +0 -19
  1787. package/node_modules/powershell-utils/index.d.ts +0 -175
  1788. package/node_modules/powershell-utils/readme.md +0 -209
  1789. package/node_modules/proxy-addr/HISTORY.md +0 -167
  1790. package/node_modules/proxy-addr/README.md +0 -139
  1791. package/node_modules/qs/.editorconfig +0 -46
  1792. package/node_modules/qs/.github/FUNDING.yml +0 -12
  1793. package/node_modules/qs/.github/SECURITY.md +0 -11
  1794. package/node_modules/qs/.github/THREAT_MODEL.md +0 -80
  1795. package/node_modules/qs/.nycrc +0 -13
  1796. package/node_modules/qs/CHANGELOG.md +0 -937
  1797. package/node_modules/qs/README.md +0 -857
  1798. package/node_modules/qs/test/empty-keys-cases.js +0 -267
  1799. package/node_modules/qs/test/parse.js +0 -2629
  1800. package/node_modules/qs/test/stringify.js +0 -2217
  1801. package/node_modules/qs/test/utils.js +0 -880
  1802. package/node_modules/range-parser/HISTORY.md +0 -56
  1803. package/node_modules/range-parser/README.md +0 -85
  1804. package/node_modules/raw-body/README.md +0 -223
  1805. package/node_modules/raw-body/index.d.ts +0 -85
  1806. package/node_modules/require-from-string/readme.md +0 -56
  1807. package/node_modules/router/HISTORY.md +0 -228
  1808. package/node_modules/router/README.md +0 -416
  1809. package/node_modules/run-applescript/index.d.ts +0 -66
  1810. package/node_modules/run-applescript/readme.md +0 -78
  1811. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  1812. package/node_modules/safer-buffer/Readme.md +0 -156
  1813. package/node_modules/send/README.md +0 -317
  1814. package/node_modules/serve-static/README.md +0 -253
  1815. package/node_modules/setprototypeof/README.md +0 -31
  1816. package/node_modules/setprototypeof/index.d.ts +0 -2
  1817. package/node_modules/setprototypeof/test/index.js +0 -24
  1818. package/node_modules/shebang-command/readme.md +0 -34
  1819. package/node_modules/shebang-regex/index.d.ts +0 -22
  1820. package/node_modules/shebang-regex/readme.md +0 -33
  1821. package/node_modules/side-channel/.editorconfig +0 -9
  1822. package/node_modules/side-channel/.eslintrc +0 -12
  1823. package/node_modules/side-channel/.github/FUNDING.yml +0 -12
  1824. package/node_modules/side-channel/.nycrc +0 -13
  1825. package/node_modules/side-channel/CHANGELOG.md +0 -120
  1826. package/node_modules/side-channel/README.md +0 -61
  1827. package/node_modules/side-channel/index.d.ts +0 -14
  1828. package/node_modules/side-channel/test/index.js +0 -120
  1829. package/node_modules/side-channel/tsconfig.json +0 -9
  1830. package/node_modules/side-channel-list/.editorconfig +0 -9
  1831. package/node_modules/side-channel-list/.eslintrc +0 -11
  1832. package/node_modules/side-channel-list/.github/FUNDING.yml +0 -12
  1833. package/node_modules/side-channel-list/.nycrc +0 -13
  1834. package/node_modules/side-channel-list/CHANGELOG.md +0 -36
  1835. package/node_modules/side-channel-list/README.md +0 -62
  1836. package/node_modules/side-channel-list/index.d.ts +0 -13
  1837. package/node_modules/side-channel-list/list.d.ts +0 -14
  1838. package/node_modules/side-channel-list/test/index.js +0 -154
  1839. package/node_modules/side-channel-list/tsconfig.json +0 -9
  1840. package/node_modules/side-channel-map/.editorconfig +0 -9
  1841. package/node_modules/side-channel-map/.eslintrc +0 -11
  1842. package/node_modules/side-channel-map/.github/FUNDING.yml +0 -12
  1843. package/node_modules/side-channel-map/.nycrc +0 -13
  1844. package/node_modules/side-channel-map/CHANGELOG.md +0 -22
  1845. package/node_modules/side-channel-map/README.md +0 -62
  1846. package/node_modules/side-channel-map/index.d.ts +0 -15
  1847. package/node_modules/side-channel-map/test/index.js +0 -114
  1848. package/node_modules/side-channel-map/tsconfig.json +0 -9
  1849. package/node_modules/side-channel-weakmap/.editorconfig +0 -9
  1850. package/node_modules/side-channel-weakmap/.eslintrc +0 -12
  1851. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +0 -12
  1852. package/node_modules/side-channel-weakmap/.nycrc +0 -13
  1853. package/node_modules/side-channel-weakmap/CHANGELOG.md +0 -28
  1854. package/node_modules/side-channel-weakmap/README.md +0 -62
  1855. package/node_modules/side-channel-weakmap/index.d.ts +0 -15
  1856. package/node_modules/side-channel-weakmap/test/index.js +0 -114
  1857. package/node_modules/side-channel-weakmap/tsconfig.json +0 -9
  1858. package/node_modules/statuses/HISTORY.md +0 -87
  1859. package/node_modules/statuses/README.md +0 -139
  1860. package/node_modules/toidentifier/HISTORY.md +0 -9
  1861. package/node_modules/toidentifier/README.md +0 -61
  1862. package/node_modules/type-is/HISTORY.md +0 -292
  1863. package/node_modules/type-is/README.md +0 -198
  1864. package/node_modules/type-is/node_modules/content-type/README.md +0 -71
  1865. package/node_modules/type-is/node_modules/content-type/dist/index.d.ts +0 -46
  1866. package/node_modules/type-is/node_modules/content-type/dist/index.js.map +0 -1
  1867. package/node_modules/unpipe/HISTORY.md +0 -4
  1868. package/node_modules/unpipe/README.md +0 -43
  1869. package/node_modules/vary/HISTORY.md +0 -39
  1870. package/node_modules/vary/README.md +0 -101
  1871. package/node_modules/vscode-jsonrpc/README.md +0 -54
  1872. package/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  1873. package/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -22
  1874. package/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  1875. package/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  1876. package/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -367
  1877. package/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  1878. package/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  1879. package/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  1880. package/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  1881. package/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -55
  1882. package/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  1883. package/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  1884. package/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  1885. package/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  1886. package/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  1887. package/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  1888. package/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  1889. package/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -59
  1890. package/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -12
  1891. package/node_modules/vscode-jsonrpc/tsconfig.tsbuildinfo +0 -1
  1892. package/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
  1893. package/node_modules/which/CHANGELOG.md +0 -166
  1894. package/node_modules/which/README.md +0 -54
  1895. package/node_modules/wrappy/README.md +0 -36
  1896. package/node_modules/wsl-utils/index.d.ts +0 -180
  1897. package/node_modules/wsl-utils/readme.md +0 -223
  1898. package/node_modules/zod/README.md +0 -218
  1899. package/node_modules/zod/src/compile.ts +0 -56
  1900. package/node_modules/zod/src/index.ts +0 -7
  1901. package/node_modules/zod/src/locales/index.ts +0 -1
  1902. package/node_modules/zod/src/mini/index.ts +0 -3
  1903. package/node_modules/zod/src/v3/ZodError.ts +0 -340
  1904. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  1905. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  1906. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  1907. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  1908. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  1909. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  1910. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  1911. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  1912. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  1913. package/node_modules/zod/src/v3/errors.ts +0 -13
  1914. package/node_modules/zod/src/v3/external.ts +0 -6
  1915. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  1916. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  1917. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  1918. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  1919. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  1920. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  1921. package/node_modules/zod/src/v3/index.ts +0 -4
  1922. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  1923. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  1924. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  1925. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  1926. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  1927. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  1928. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  1929. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  1930. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  1931. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  1932. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  1933. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  1934. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  1935. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  1936. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  1937. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  1938. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  1939. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  1940. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  1941. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  1942. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  1943. package/node_modules/zod/src/v3/tests/error.test.ts +0 -586
  1944. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  1945. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  1946. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  1947. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  1948. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  1949. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
  1950. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  1951. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
  1952. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  1953. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  1954. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  1955. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  1956. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  1957. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  1958. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  1959. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  1960. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  1961. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  1962. package/node_modules/zod/src/v3/tests/object.test.ts +0 -431
  1963. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  1964. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  1965. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  1966. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  1967. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  1968. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  1969. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  1970. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  1971. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  1972. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
  1973. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  1974. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  1975. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  1976. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  1977. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  1978. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  1979. package/node_modules/zod/src/v3/tests/string.test.ts +0 -922
  1980. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  1981. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  1982. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  1983. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  1984. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  1985. package/node_modules/zod/src/v3/types.ts +0 -5138
  1986. package/node_modules/zod/src/v4/classic/checks.ts +0 -33
  1987. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  1988. package/node_modules/zod/src/v4/classic/compat.ts +0 -78
  1989. package/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
  1990. package/node_modules/zod/src/v4/classic/errors.ts +0 -97
  1991. package/node_modules/zod/src/v4/classic/external.ts +0 -57
  1992. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -944
  1993. package/node_modules/zod/src/v4/classic/in-out.ts +0 -45
  1994. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  1995. package/node_modules/zod/src/v4/classic/iso.ts +0 -20
  1996. package/node_modules/zod/src/v4/classic/parse.ts +0 -88
  1997. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2937
  1998. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  1999. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
  2000. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -291
  2001. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -402
  2002. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  2003. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  2004. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  2005. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -89
  2006. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  2007. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
  2008. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  2009. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
  2010. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
  2011. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  2012. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  2013. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
  2014. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  2015. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -985
  2016. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
  2017. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
  2018. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
  2019. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
  2020. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
  2021. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  2022. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  2023. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
  2024. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -942
  2025. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -305
  2026. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
  2027. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -1108
  2028. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  2029. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  2030. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  2031. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1467
  2032. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
  2033. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  2034. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
  2035. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
  2036. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +0 -81
  2037. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
  2038. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
  2039. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -319
  2040. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -127
  2041. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
  2042. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -215
  2043. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
  2044. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  2045. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
  2046. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
  2047. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  2048. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  2049. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -349
  2050. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  2051. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  2052. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  2053. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  2054. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -401
  2055. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -1006
  2056. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -235
  2057. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
  2058. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
  2059. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  2060. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  2061. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -144
  2062. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
  2063. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  2064. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  2065. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  2066. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +0 -141
  2067. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  2068. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
  2069. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
  2070. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -707
  2071. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
  2072. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
  2073. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  2074. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -196
  2075. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -153
  2076. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  2077. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1440
  2078. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
  2079. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -812
  2080. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  2081. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4733
  2082. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  2083. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
  2084. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
  2085. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  2086. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -645
  2087. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  2088. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  2089. package/node_modules/zod/src/v4/core/api.ts +0 -1875
  2090. package/node_modules/zod/src/v4/core/checks.ts +0 -1266
  2091. package/node_modules/zod/src/v4/core/compile.ts +0 -2322
  2092. package/node_modules/zod/src/v4/core/core.ts +0 -230
  2093. package/node_modules/zod/src/v4/core/doc.ts +0 -52
  2094. package/node_modules/zod/src/v4/core/errors.ts +0 -543
  2095. package/node_modules/zod/src/v4/core/index.ts +0 -19
  2096. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
  2097. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -934
  2098. package/node_modules/zod/src/v4/core/json-schema.ts +0 -148
  2099. package/node_modules/zod/src/v4/core/memoizer.ts +0 -331
  2100. package/node_modules/zod/src/v4/core/parse.ts +0 -309
  2101. package/node_modules/zod/src/v4/core/regexes.ts +0 -217
  2102. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  2103. package/node_modules/zod/src/v4/core/schemas.ts +0 -5226
  2104. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  2105. package/node_modules/zod/src/v4/core/tests/cached.test.ts +0 -54
  2106. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -1004
  2107. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +0 -445
  2108. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
  2109. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
  2110. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
  2111. package/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -2036
  2112. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +0 -140
  2113. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  2114. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  2115. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  2116. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
  2117. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  2118. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
  2119. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  2120. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  2121. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  2122. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  2123. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
  2124. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  2125. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +0 -85
  2126. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
  2127. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  2128. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  2129. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +0 -46
  2130. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  2131. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  2132. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
  2133. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -133
  2134. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -857
  2135. package/node_modules/zod/src/v4/core/util.ts +0 -1293
  2136. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  2137. package/node_modules/zod/src/v4/core/visit.ts +0 -193
  2138. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  2139. package/node_modules/zod/src/v4/index.ts +0 -4
  2140. package/node_modules/zod/src/v4/locales/ar.ts +0 -120
  2141. package/node_modules/zod/src/v4/locales/az.ts +0 -116
  2142. package/node_modules/zod/src/v4/locales/be.ts +0 -188
  2143. package/node_modules/zod/src/v4/locales/bg.ts +0 -133
  2144. package/node_modules/zod/src/v4/locales/bn.ts +0 -123
  2145. package/node_modules/zod/src/v4/locales/ca.ts +0 -121
  2146. package/node_modules/zod/src/v4/locales/ckb.ts +0 -140
  2147. package/node_modules/zod/src/v4/locales/cs.ts +0 -123
  2148. package/node_modules/zod/src/v4/locales/da.ts +0 -128
  2149. package/node_modules/zod/src/v4/locales/de.ts +0 -121
  2150. package/node_modules/zod/src/v4/locales/el.ts +0 -124
  2151. package/node_modules/zod/src/v4/locales/en.ts +0 -136
  2152. package/node_modules/zod/src/v4/locales/eo.ts +0 -123
  2153. package/node_modules/zod/src/v4/locales/es.ts +0 -145
  2154. package/node_modules/zod/src/v4/locales/fa.ts +0 -131
  2155. package/node_modules/zod/src/v4/locales/fi.ts +0 -126
  2156. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -121
  2157. package/node_modules/zod/src/v4/locales/fr.ts +0 -139
  2158. package/node_modules/zod/src/v4/locales/gu.ts +0 -123
  2159. package/node_modules/zod/src/v4/locales/he.ts +0 -253
  2160. package/node_modules/zod/src/v4/locales/hi.ts +0 -126
  2161. package/node_modules/zod/src/v4/locales/hr.ts +0 -135
  2162. package/node_modules/zod/src/v4/locales/hu.ts +0 -122
  2163. package/node_modules/zod/src/v4/locales/hy.ts +0 -175
  2164. package/node_modules/zod/src/v4/locales/id.ts +0 -120
  2165. package/node_modules/zod/src/v4/locales/index.ts +0 -63
  2166. package/node_modules/zod/src/v4/locales/is.ts +0 -124
  2167. package/node_modules/zod/src/v4/locales/it.ts +0 -121
  2168. package/node_modules/zod/src/v4/locales/ja.ts +0 -119
  2169. package/node_modules/zod/src/v4/locales/ka.ts +0 -128
  2170. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  2171. package/node_modules/zod/src/v4/locales/km.ts +0 -124
  2172. package/node_modules/zod/src/v4/locales/kn.ts +0 -126
  2173. package/node_modules/zod/src/v4/locales/ko.ts +0 -126
  2174. package/node_modules/zod/src/v4/locales/lt.ts +0 -243
  2175. package/node_modules/zod/src/v4/locales/mk.ts +0 -123
  2176. package/node_modules/zod/src/v4/locales/ms.ts +0 -120
  2177. package/node_modules/zod/src/v4/locales/ne.ts +0 -128
  2178. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  2179. package/node_modules/zod/src/v4/locales/nn.ts +0 -121
  2180. package/node_modules/zod/src/v4/locales/no.ts +0 -121
  2181. package/node_modules/zod/src/v4/locales/ota.ts +0 -122
  2182. package/node_modules/zod/src/v4/locales/pl.ts +0 -123
  2183. package/node_modules/zod/src/v4/locales/ps.ts +0 -131
  2184. package/node_modules/zod/src/v4/locales/pt-BR.ts +0 -161
  2185. package/node_modules/zod/src/v4/locales/pt.ts +0 -159
  2186. package/node_modules/zod/src/v4/locales/ro.ts +0 -132
  2187. package/node_modules/zod/src/v4/locales/ru.ts +0 -188
  2188. package/node_modules/zod/src/v4/locales/sk.ts +0 -123
  2189. package/node_modules/zod/src/v4/locales/sl.ts +0 -123
  2190. package/node_modules/zod/src/v4/locales/sv.ts +0 -124
  2191. package/node_modules/zod/src/v4/locales/ta.ts +0 -123
  2192. package/node_modules/zod/src/v4/locales/tg.ts +0 -135
  2193. package/node_modules/zod/src/v4/locales/th.ts +0 -124
  2194. package/node_modules/zod/src/v4/locales/tk.ts +0 -113
  2195. package/node_modules/zod/src/v4/locales/tr.ts +0 -116
  2196. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  2197. package/node_modules/zod/src/v4/locales/uk.ts +0 -122
  2198. package/node_modules/zod/src/v4/locales/ur.ts +0 -124
  2199. package/node_modules/zod/src/v4/locales/uz.ts +0 -120
  2200. package/node_modules/zod/src/v4/locales/vi.ts +0 -122
  2201. package/node_modules/zod/src/v4/locales/yo.ts +0 -129
  2202. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -121
  2203. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -120
  2204. package/node_modules/zod/src/v4/mini/checks.ts +0 -33
  2205. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  2206. package/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
  2207. package/node_modules/zod/src/v4/mini/external.ts +0 -52
  2208. package/node_modules/zod/src/v4/mini/in-out.ts +0 -45
  2209. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  2210. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  2211. package/node_modules/zod/src/v4/mini/parse.ts +0 -16
  2212. package/node_modules/zod/src/v4/mini/schemas.ts +0 -2051
  2213. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
  2214. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
  2215. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  2216. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
  2217. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
  2218. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -30
  2219. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
  2220. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
  2221. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
  2222. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
  2223. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1146
  2224. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
  2225. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
  2226. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  2227. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -341
  2228. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  2229. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -396
  2230. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  2231. package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
  2232. package/node_modules/zod-to-json-schema/.github/FUNDING.yml +0 -1
  2233. package/node_modules/zod-to-json-schema/.prettierrc.json +0 -1
  2234. package/node_modules/zod-to-json-schema/README.md +0 -390
  2235. package/node_modules/zod-to-json-schema/changelog.md +0 -83
  2236. package/node_modules/zod-to-json-schema/contributing.md +0 -9
  2237. package/node_modules/zod-to-json-schema/createIndex.ts +0 -32
  2238. package/node_modules/zod-to-json-schema/dist/types/Options.d.ts +0 -37
  2239. package/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +0 -17
  2240. package/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +0 -15
  2241. package/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +0 -1
  2242. package/node_modules/zod-to-json-schema/dist/types/index.d.ts +0 -40
  2243. package/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +0 -4
  2244. package/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +0 -34
  2245. package/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +0 -5
  2246. package/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +0 -12
  2247. package/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +0 -14
  2248. package/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +0 -4
  2249. package/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +0 -3
  2250. package/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +0 -3
  2251. package/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +0 -15
  2252. package/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +0 -6
  2253. package/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +0 -4
  2254. package/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +0 -6
  2255. package/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +0 -8
  2256. package/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +0 -9
  2257. package/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +0 -15
  2258. package/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +0 -6
  2259. package/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +0 -6
  2260. package/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +0 -5
  2261. package/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +0 -10
  2262. package/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +0 -13
  2263. package/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +0 -10
  2264. package/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +0 -4
  2265. package/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +0 -5
  2266. package/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +0 -4
  2267. package/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +0 -3
  2268. package/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +0 -13
  2269. package/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +0 -13
  2270. package/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +0 -73
  2271. package/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +0 -13
  2272. package/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +0 -6
  2273. package/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +0 -23
  2274. package/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +0 -4
  2275. package/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +0 -5
  2276. package/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +0 -10
  2277. package/node_modules/zod-to-json-schema/postcjs.ts +0 -3
  2278. package/node_modules/zod-to-json-schema/postesm.ts +0 -3
  2279. package/vendor/rho-workspace-plugin-agent-0.4.25.tgz +0 -0
@@ -1,2322 +0,0 @@
1
- import type * as checks from "./checks.js";
2
- import type * as core from "./core.js";
3
- import { $ZodAsyncError } from "./core.js";
4
- import { Doc } from "./doc.js";
5
- import { isBackEdge, isRecursiveSchema } from "./memoizer.js";
6
- import * as regexes from "./regexes.js";
7
- import {
8
- isValidBase64,
9
- isValidBase64URL,
10
- isValidCIDRv6,
11
- isValidCreditCard,
12
- isValidIBAN,
13
- isValidIPv6,
14
- isValidJWT,
15
- mergeValues,
16
- stripTabAndNewline,
17
- urlHostnameOk,
18
- urlProtocolOk,
19
- validateURL,
20
- } from "./schemas.js";
21
- import type { ParseContextInternal, ParsePayload, SomeType } from "./schemas.js";
22
- import * as util from "./util.js";
23
-
24
- /** @internal Sentinel the compiled fast path returns when validation fails. */
25
- export const INVALID: unique symbol = Symbol.for("zod.compile.invalid");
26
- /** @internal */
27
- export type INVALID = typeof INVALID;
28
-
29
- // Set on the parse ctx when a compiled wrapper falls back to the runtime, so nested compiled wrappers skip their fast paths for the rest of that parse.
30
- const FALLBACK_FLAG: unique symbol = Symbol.for("zod.compile.fallback");
31
-
32
- interface CompileFnOptions {
33
- debug?: boolean | undefined;
34
- /** Emit a validator instead of a parser: skip building the output value where nothing reads it. */
35
- assertOnly?: boolean | undefined;
36
- }
37
-
38
- type CompiledFn<T> = ((input: unknown) => T | INVALID) & {
39
- code?: string | undefined;
40
- /** False when this function's INVALID does not strictly mean "the runtime would reject". */
41
- definite?: boolean | undefined;
42
- };
43
-
44
- /** Raised when the schema contains async refinements or transforms. Surfaces only under `compile(schema, { strict: true })`. */
45
- export class ZodCompileAsyncError extends Error {
46
- constructor(message = "z.compile does not support async refinements, transforms, or checks") {
47
- super(message);
48
- this.name = "ZodCompileAsyncError";
49
- }
50
- }
51
-
52
- /**
53
- * Raised when the schema contains a feature whose semantics the fast path
54
- * can't fully model. Both the shim in `zod/compile` and the default
55
- * `compile()` fall back to the runtime parser for that schema; only
56
- * `compile(schema, { strict: true })` lets it surface.
57
- */
58
- export class ZodCompileUnsupportedError extends Error {
59
- /** Whether a container may absorb this refusal by running the child through the runtime (see `compileChild`). False when running only that node on the runtime is not equivalent to running the whole parse there — a runtime island gets no parse context, so a node that *consumes* issues rather than propagating them would finalize them against the wrong error map and still succeed. */
60
- readonly islandable: boolean;
61
-
62
- constructor(feature: string, islandable = true) {
63
- super(`z.compile does not support ${feature}; this schema must use the runtime parser`);
64
- this.name = "ZodCompileUnsupportedError";
65
- this.islandable = islandable;
66
- }
67
- }
68
-
69
- interface CompileContext {
70
- constants: Map<string, unknown>;
71
- constantCounter: number;
72
- varCounter: number;
73
- /** Cleared when a construct can return INVALID for something the interpreter throws on, so `validate` keeps its fallback. */
74
- definite: boolean;
75
- }
76
-
77
- // Union of all check types we support in AOT compilation
78
- type SupportedCheck =
79
- | checks.$ZodCheckLessThan
80
- | checks.$ZodCheckGreaterThan
81
- | checks.$ZodCheckMultipleOf
82
- | checks.$ZodCheckNumberFormat
83
- | checks.$ZodCheckBigIntFormat
84
- | checks.$ZodCheckMaxSize
85
- | checks.$ZodCheckMinSize
86
- | checks.$ZodCheckSizeEquals
87
- | checks.$ZodCheckMaxLength
88
- | checks.$ZodCheckMinLength
89
- | checks.$ZodCheckLengthEquals
90
- | checks.$ZodCheckStringFormat
91
- | checks.$ZodCheckProperty
92
- | checks.$ZodCheckProperties
93
- | checks.$ZodCheckMimeType
94
- | checks.$ZodCheckOverwrite
95
- | { _zod: { def: { check: "custom"; fn?: (value: unknown) => boolean }; check?: (payload: unknown) => unknown } };
96
-
97
- /**
98
- * Build the validator `validate` calls: the same codegen as the parser with the output construction
99
- * dropped. A schema the flag cannot express reuses the parser, which still answers correctly — it
100
- * just builds a value nothing reads.
101
- */
102
- function compileValidator(schema: SomeType, parser: CompiledFn<unknown>): CompiledFn<unknown> {
103
- try {
104
- return compileFn(schema, { assertOnly: true }) as CompiledFn<unknown>;
105
- } catch {
106
- return parser;
107
- }
108
- }
109
-
110
- export interface CompileOptions {
111
- /** Throw the refusal instead of returning the schema uncompiled. */
112
- strict?: boolean | undefined;
113
- }
114
-
115
- /**
116
- * AOT-compile a Zod schema. Returns a clone whose `_zod.run` calls a generated
117
- * fast path first and falls back to the original runtime parser on failure.
118
- *
119
- * - Forward direction only. Backward (encode), async, and `skipChecks` paths
120
- * bypass the fast path and use the runtime directly.
121
- * - Never throws. A schema the fast path can't model is returned unchanged and
122
- * keeps using the runtime parser. Pass `{ strict: true }` to get the refusal
123
- * as a thrown `ZodCompileUnsupportedError` / `ZodCompileAsyncError` instead.
124
- * - The original schema is unchanged. The clone shares children by reference.
125
- */
126
- export function compile<T extends SomeType>(schema: T, options?: CompileOptions): T {
127
- try {
128
- const parser = compileFn(schema);
129
- const clone = withParser(schema, parser);
130
- // withParser leaves the parser as its own validator; the generated assert-only variant is better when we have one
131
- clone._zod.bag.validator = compileValidator(schema, parser as CompiledFn<unknown>);
132
- return clone;
133
- } catch (err) {
134
- if (options?.strict) throw err;
135
- // a schema we can't compile still has to work, so hand it back untouched on the runtime parser — the same silent fallback global mode already does
136
- return schema;
137
- }
138
- }
139
-
140
- /**
141
- * Install an already-generated parser as a schema's fast path. Returns a clone; the original is
142
- * unchanged.
143
- *
144
- * The parser takes the input and returns the parsed value, or `INVALID` to hand the parse to the
145
- * runtime. It must be synchronous and forward-direction, and it must build fresh output rather than
146
- * return its input — Zod cannot check either, and a wrong *success* is returned to the caller as-is.
147
- *
148
- * `compile()` is the ordinary entry point. This is for a build-time or native compiler that produces
149
- * a parser where `new Function` is unavailable.
150
- */
151
- export function withParser<T extends SomeType>(schema: T, parser: (input: unknown) => core.output<T> | INVALID): T {
152
- // generated code never receives the parse context, so only the runtime can close a reference cycle; compileFn refuses these too
153
- if (isRecursiveSchema(schema as any)) {
154
- throw new ZodCompileUnsupportedError("a schema whose subtree contains a reference cycle");
155
- }
156
- const clone = util.clone(schema as any) as T;
157
-
158
- // Capture the source-of-truth runtime eagerly. If schema._zod.run is itself a shim installed by global-mode (`__originalRun` set), unwrap past it. Otherwise capturing the live property lazily would let a later self- replacement of schema._zod.run feed our wrapper back into itself.
159
- const liveRun = schema._zod.run as ((p: ParsePayload, c: ParseContextInternal) => any) & {
160
- __originalRun?: (p: ParsePayload, c: ParseContextInternal) => any;
161
- };
162
- const originalRun = liveRun.__originalRun ?? liveRun;
163
-
164
- // Delegate to the *original* schema's run on bypass/fallback, not the clone's. The original closed over its own `inst` at construction time, and issue payloads use that reference to derive things like the class name for `z.instanceof(Test)`; calling the clone's freshly-initialized run would push issues with `inst === clone` and diverge from the original schema's error messages.
165
- const wrapped = (payload: ParsePayload, ctx: ParseContextInternal): any => {
166
- if (
167
- ctx?.async ||
168
- ctx?.direction === "backward" ||
169
- ctx?.skipChecks ||
170
- (ctx as Record<symbol, unknown> | undefined)?.[FALLBACK_FLAG]
171
- ) {
172
- return originalRun(payload, ctx);
173
- }
174
-
175
- // A memoized back-edge: only the runtime can close a reference cycle, and a transform on one must raise $ZodCyclicError from its own parse.
176
- if (ctx && isBackEdge(ctx, payload.value)) {
177
- return originalRun(payload, ctx);
178
- }
179
-
180
- const out = parser(payload.value);
181
- if (out !== INVALID) {
182
- payload.value = out;
183
- return payload;
184
- }
185
- // Mark this parse as runtime-driven: under global mode every nested schema carries its own compiled wrapper, and without the flag the parent's runtime fallback re-enters each child's fast path, running user callbacks a third time on invalid input.
186
- if (ctx) (ctx as Record<symbol, unknown>)[FALLBACK_FLAG] = true;
187
- return originalRun(payload, ctx);
188
- };
189
- // Let later compiles of (or through) this run unwrap to the true runtime — both the global shim and repeated z.compile calls rely on this. The bag also carries the parser and the validator, so the standalone validate can skip the payload and wrapper on the happy path.
190
- (wrapped as { __originalRun?: typeof originalRun }).__originalRun = originalRun;
191
- clone._zod.bag.fallbackRun = originalRun;
192
- // a supplied parser answers `validate` too: one implementation means parse and validate cannot disagree, and its undefined `definite` keeps the runtime re-parse on every rejection
193
- clone._zod.bag.validator = parser as CompiledFn<unknown>;
194
- clone._zod.run = wrapped;
195
-
196
- // The fast parse/safeParse closures fall back through the source schema's methods. If the source is shim- or wrapper-managed, those methods route into a compiled run and would execute user callbacks a third time on invalid input — the plain method → wrapper path is exactly 2x, so skip.
197
- if (!liveRun.__originalRun) installCompiledUserMethods(clone, schema, parser as CompiledFn<core.output<T>>);
198
-
199
- return clone;
200
- }
201
-
202
- function installCompiledUserMethods<T extends SomeType>(
203
- target: T,
204
- source: T,
205
- parser: CompiledFn<core.output<T>>
206
- ): void {
207
- const targetAny = target as any;
208
- const sourceAny = source as any;
209
-
210
- if (typeof sourceAny.safeParse === "function") {
211
- const originalSafeParse = sourceAny.safeParse;
212
- targetAny.safeParse = (data: unknown, params?: unknown) => {
213
- const out = parser(data);
214
- if (out !== INVALID) {
215
- return { success: true, data: out };
216
- }
217
- return originalSafeParse(data, params);
218
- };
219
- }
220
-
221
- if (typeof sourceAny.parse === "function") {
222
- const originalParse = sourceAny.parse;
223
- targetAny.parse = (data: unknown, params?: unknown) => {
224
- const out = parser(data);
225
- if (out !== INVALID) {
226
- return out;
227
- }
228
- return originalParse(data, params);
229
- };
230
- }
231
- }
232
-
233
- /**
234
- * @internal Generate the standalone compiled function: a parser by default, a validator under
235
- * `assertOnly`. Returns the parsed value, `true` where nothing reads the output, or `INVALID`. Consumers use `compile()`.
236
- */
237
- export function compileFn<T extends SomeType>(schema: T, options?: CompileFnOptions): CompiledFn<core.output<T>> {
238
- // Cycle-breaking is keyed on the parse context, which generated code never receives. `shape` can be a getter that throws (z.pick() with an unrecognized mask key), so treat "can't tell" as recursive.
239
- let recursive = true;
240
- try {
241
- recursive = isRecursiveSchema(schema as any);
242
- } catch {}
243
- if (recursive) {
244
- throw new ZodCompileUnsupportedError("a schema whose subtree contains a reference cycle");
245
- }
246
-
247
- const ctx: CompileContext = {
248
- constants: new Map(),
249
- constantCounter: 0,
250
- varCounter: 0,
251
- definite: true,
252
- };
253
-
254
- const doc = new Doc(["input"]);
255
- const outputAccessor = generateCheck(doc, ctx, schema, "input", !options?.assertOnly);
256
- // In assert mode a root that built nothing has already returned INVALID on every failure, so reaching the end means valid.
257
- doc.write(outputAccessor === null ? `return true;` : `return ${outputAccessor};`);
258
-
259
- // Build the function with hoisted constants Always include INVALID as the first constant
260
- const constantNames = ["INVALID", ...ctx.constants.keys()];
261
- const constantValues = [INVALID, ...ctx.constants.values()];
262
-
263
- const code = doc.content.join("\n");
264
- const fullCode = options?.debug
265
- ? constantNames.length > 0
266
- ? `// Constants: ${constantNames.join(", ")}\n${code}`
267
- : code
268
- : "";
269
-
270
- const F = Function;
271
- const factoryCode = `return (input) => {\n${code}\n}`;
272
- let fn: CompiledFn<core.output<T>>;
273
- try {
274
- const factory = new F(...constantNames, factoryCode);
275
- fn = factory(...constantValues) as CompiledFn<core.output<T>>;
276
- } catch (err) {
277
- // Malformed generated code (or a CSP environment rejecting `new Function`) surfaces as a typed error so the global shim falls back to the runtime instead of crashing with a raw SyntaxError/EvalError.
278
- throw new ZodCompileUnsupportedError(`this schema (generated code failed to evaluate: ${(err as Error).message})`);
279
- }
280
- if (options?.debug) {
281
- fn.code = fullCode;
282
- }
283
- fn.definite = ctx.definite;
284
- return fn;
285
- }
286
-
287
- function addConstant(ctx: CompileContext, value: unknown): string {
288
- // Check if we already have this constant
289
- for (const [name, v] of ctx.constants) {
290
- if (v === value) return name;
291
- }
292
- const name = `c${ctx.constantCounter++}`;
293
- ctx.constants.set(name, value);
294
- return name;
295
- }
296
-
297
- /** Hoists a user-supplied callback. Anything the schema's author wrote can throw, and generated code can reject an earlier sibling before ever reaching it, so this clears `definite` — a rejection is then no longer proof that the interpreter would have rejected rather than thrown. */
298
- function addUserConstant(ctx: CompileContext, fn: unknown): string {
299
- ctx.definite = false;
300
- return addConstant(ctx, fn);
301
- }
302
-
303
- function newVar(ctx: CompileContext): string {
304
- return `v${ctx.varCounter++}`;
305
- }
306
-
307
- // Runs a child schema as a black box: its value, or INVALID for a failure or an async run.
308
- function runtimeRun(schema: SomeType, value: unknown): unknown {
309
- const result = (schema._zod.run as (p: ParsePayload, c: ParseContextInternal) => any)(
310
- { value, issues: [] },
311
- {} as ParseContextInternal
312
- );
313
- if (result && typeof (result as Promise<unknown>).then === "function") return INVALID;
314
- const r = result as { value: unknown; issues: unknown[] };
315
- return r.issues.length === 0 ? r.value : INVALID;
316
- }
317
-
318
- // Try to compile `schema` against `accessor`. If `generateCheck` throws
319
- // `ZodCompileUnsupportedError`, the doc + ctx state is rolled back and a
320
- // runtime island is emitted instead — the child schema is invoked through
321
- // `runtimeRun` at parse time and treated as a black box. Anything else thrown
322
- // propagates (e.g. `ZodCompileAsyncError`).
323
- function compileChild(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string;
324
- function compileChild(
325
- doc: Doc,
326
- ctx: CompileContext,
327
- schema: SomeType,
328
- accessor: string,
329
- needsValue: boolean
330
- ): string | null;
331
- // `null` means the node built no value because nothing reads it. The overloads keep that case out of the 20-odd callers that always want one, so only a caller passing needsValue has to handle it.
332
- function compileChild(
333
- doc: Doc,
334
- ctx: CompileContext,
335
- schema: SomeType,
336
- accessor: string,
337
- needsValue = true
338
- ): string | null {
339
- const contentLen = doc.content.length;
340
- const constantCount = ctx.constants.size;
341
- const constantCounter = ctx.constantCounter;
342
- const varCounter = ctx.varCounter;
343
- try {
344
- return generateCheck(doc, ctx, schema, accessor, needsValue);
345
- } catch (err) {
346
- if (!(err instanceof ZodCompileUnsupportedError) || !err.islandable) throw err;
347
- doc.content.length = contentLen;
348
- if (ctx.constants.size > constantCount) {
349
- const trailing = Array.from(ctx.constants.keys()).slice(constantCount);
350
- for (const k of trailing) ctx.constants.delete(k);
351
- }
352
- ctx.constantCounter = constantCounter;
353
- ctx.varCounter = varCounter;
354
- return emitRuntimeIsland(doc, ctx, schema, accessor);
355
- }
356
- }
357
-
358
- function emitRuntimeIsland(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
359
- // an islanded child answers INVALID for an async run too, which the interpreter throws for
360
- ctx.definite = false;
361
- const schemaConst = addConstant(ctx, schema);
362
- const runConst = addConstant(ctx, runtimeRun);
363
- const outVar = newVar(ctx);
364
- doc.write(`const ${outVar} = ${runConst}(${schemaConst}, ${accessor});`);
365
- doc.write(`if (${outVar} === INVALID) return INVALID;`);
366
- return outVar;
367
- }
368
-
369
- // Check classes whose `when` is auto-defaulted at init (checks.ts `when ??=`).
370
- const WHEN_DEFAULTED_CHECKS = new Set([
371
- "max_size",
372
- "min_size",
373
- "size_equals",
374
- "max_length",
375
- "min_length",
376
- "length_equals",
377
- ]);
378
-
379
- function generateChecks(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
380
- const schemaChecks = schema._zod.def.checks as SupportedCheck[] | undefined;
381
- if (!schemaChecks || schemaChecks.length === 0) return accessor;
382
-
383
- // Track current accessor - may change if overwrite checks are encountered
384
- let currentAccessor = accessor;
385
-
386
- for (const check of schemaChecks) {
387
- const def = check._zod.def;
388
- // A custom `when` skips a check the fast path always runs; the one auto-defaulted on size/length classes matches its bail-on-first-failure.
389
- if ((def as { when?: unknown }).when && !WHEN_DEFAULTED_CHECKS.has(def.check)) {
390
- throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
391
- }
392
- switch (def.check) {
393
- case "greater_than":
394
- generateGreaterThanCheck(doc, ctx, def, currentAccessor);
395
- break;
396
- case "less_than":
397
- generateLessThanCheck(doc, ctx, def, currentAccessor);
398
- break;
399
- case "multiple_of":
400
- generateMultipleOfCheck(doc, ctx, def, currentAccessor);
401
- break;
402
- case "number_format":
403
- generateNumberFormatCheck(doc, def, currentAccessor);
404
- break;
405
- case "min_length": {
406
- const min = numericOperand(def.minimum, "min_length");
407
- const len = codePointLengthVar(
408
- doc,
409
- ctx,
410
- currentAccessor,
411
- `${currentAccessor}.length >= ${min} && ${currentAccessor}.length < ${def.minimum * 2}`
412
- );
413
- doc.write(`if (${len} < ${min}) return INVALID;`);
414
- break;
415
- }
416
- case "max_length": {
417
- const max = numericOperand(def.maximum, "max_length");
418
- const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length > ${max}`);
419
- doc.write(`if (${len} > ${max}) return INVALID;`);
420
- break;
421
- }
422
- case "length_equals": {
423
- const exact = numericOperand(def.length, "length_equals");
424
- const len = codePointLengthVar(
425
- doc,
426
- ctx,
427
- currentAccessor,
428
- `${currentAccessor}.length >= ${exact} && ${currentAccessor}.length <= ${def.length * 2}`
429
- );
430
- doc.write(`if (${len} !== ${exact}) return INVALID;`);
431
- break;
432
- }
433
- case "min_size":
434
- doc.write(`if (${currentAccessor}.size < ${numericOperand(def.minimum, "min_size")}) return INVALID;`);
435
- break;
436
- case "max_size":
437
- doc.write(`if (${currentAccessor}.size > ${numericOperand(def.maximum, "max_size")}) return INVALID;`);
438
- break;
439
- case "size_equals":
440
- doc.write(`if (${currentAccessor}.size !== ${numericOperand(def.size, "size_equals")}) return INVALID;`);
441
- break;
442
- case "string_format":
443
- currentAccessor = generateStringFormatCheck(doc, ctx, def, currentAccessor);
444
- break;
445
- case "custom":
446
- currentAccessor = generateCustomRefineCheck(doc, ctx, check as CustomCheck, currentAccessor);
447
- break;
448
- case "bigint_format":
449
- generateBigIntFormatCheck(doc, def, currentAccessor);
450
- break;
451
- case "mime_type":
452
- generateMimeTypeCheck(doc, ctx, def, currentAccessor);
453
- break;
454
- case "property":
455
- generatePropertyCheck(doc, ctx, def, currentAccessor);
456
- break;
457
- case "properties":
458
- generatePropertiesChecks(doc, ctx, def, currentAccessor);
459
- break;
460
- case "overwrite": {
461
- // Overwrite transforms the value - create new variable for transformed result
462
- const newAccessor = newVar(ctx);
463
- generateOverwriteCheck(doc, ctx, check as checks.$ZodCheckOverwrite, currentAccessor, newAccessor);
464
- currentAccessor = newAccessor;
465
- break;
466
- }
467
- default: {
468
- void (def satisfies never);
469
- throw new ZodCompileUnsupportedError(`check type ${(def as { check: string }).check}`);
470
- }
471
- }
472
- }
473
-
474
- return currentAccessor;
475
- }
476
-
477
- // Emit the length operand for a length check, mirroring `$ZodCheckMinLength` and friends: strings measure in code points, everything else in `.length`. `inDoubt` is the caller's cheap UTF-16 bound test — outside it the unit count already settles the comparison, so the scan is skipped.
478
- function codePointLengthVar(doc: Doc, ctx: CompileContext, accessor: string, inDoubt: string): string {
479
- const cpLen = addConstant(ctx, util.codePointLength);
480
- const v = newVar(ctx);
481
- doc.write(`const ${v} = typeof ${accessor} === "string" && ${inDoubt} ? ${cpLen}(${accessor}) : ${accessor}.length;`);
482
- return v;
483
- }
484
-
485
- // Emit a source operand for a gt/lt bound. Numbers inline; Dates hoist as a constant (relational operators compare via valueOf). NaN and Invalid Date bounds can't compile to a comparison that matches runtime semantics.
486
- /**
487
- * A count bound reaches generated source verbatim, so a non-number would be
488
- * emitted as code rather than as a value — `min('0) {} evil(); if (0')` writes an
489
- * arbitrary statement into the function body. TypeScript types these as `number`
490
- * and fromJSONSchema guards them, so this is a backstop rather than a live hole,
491
- * but generated source is the one place a wrong type stops being a type error.
492
- */
493
- function numericOperand(value: unknown, label: string): string {
494
- if (typeof value !== "number" || !Number.isFinite(value)) {
495
- throw new ZodCompileUnsupportedError(`${label} bound of type ${typeof value}`);
496
- }
497
- return `${value}`;
498
- }
499
-
500
- function comparisonOperand(ctx: CompileContext, value: number | bigint | Date): string {
501
- if (typeof value === "bigint") return `${value}n`;
502
- if (typeof value === "number") {
503
- if (Number.isNaN(value)) throw new ZodCompileUnsupportedError("comparison check with NaN bound");
504
- return `${value}`;
505
- }
506
- if (value instanceof Date) {
507
- if (Number.isNaN(value.getTime())) {
508
- throw new ZodCompileUnsupportedError("comparison check with Invalid Date bound");
509
- }
510
- return addConstant(ctx, value);
511
- }
512
- throw new ZodCompileUnsupportedError(`comparison check bound of type ${typeof value}`);
513
- }
514
-
515
- function generateGreaterThanCheck(
516
- doc: Doc,
517
- ctx: CompileContext,
518
- def: checks.$ZodCheckGreaterThanDef,
519
- accessor: string
520
- ): void {
521
- const op = def.inclusive ? "<" : "<=";
522
- doc.write(`if (${accessor} ${op} ${comparisonOperand(ctx, def.value)}) return INVALID;`);
523
- }
524
-
525
- function generateLessThanCheck(
526
- doc: Doc,
527
- ctx: CompileContext,
528
- def: checks.$ZodCheckLessThanDef,
529
- accessor: string
530
- ): void {
531
- const op = def.inclusive ? ">" : ">=";
532
- doc.write(`if (${accessor} ${op} ${comparisonOperand(ctx, def.value)}) return INVALID;`);
533
- }
534
-
535
- function generateMultipleOfCheck(
536
- doc: Doc,
537
- ctx: CompileContext,
538
- def: checks.$ZodCheckMultipleOfDef,
539
- accessor: string
540
- ): void {
541
- if (typeof def.value === "bigint") {
542
- // a zero divisor has no compiled form: `x % 0n` throws
543
- if (def.value === BigInt(0)) throw new ZodCompileUnsupportedError("multiple_of check with a zero divisor");
544
- doc.write(`if (${accessor} % ${def.value}n !== 0n) return INVALID;`);
545
- } else {
546
- // Float `%` has well-known precision issues for sub-integer steps
547
- // (`1.5 % 0.1`, `2.5e-7 % 1e-7`). Defer to util.floatSafeRemainder so the
548
- // exact tolerance logic stays in one place — single function call is fine
549
- // since `multipleOf` runs at most once per number.
550
- const remainder = addConstant(ctx, util.floatSafeRemainder);
551
- doc.write(`if (${remainder}(${accessor}, ${numericOperand(def.value, "multiple_of")}) !== 0) return INVALID;`);
552
- }
553
- }
554
-
555
- function generateNumberFormatCheck(doc: Doc, def: checks.$ZodCheckNumberFormatDef, accessor: string): void {
556
- const format = def.format;
557
- switch (format) {
558
- case "safeint":
559
- doc.write(`if (!Number.isSafeInteger(${accessor})) return INVALID;`);
560
- break;
561
- case "int32":
562
- doc.write(
563
- `if (!Number.isInteger(${accessor}) || ${accessor} < -2147483648 || ${accessor} > 2147483647) return INVALID;`
564
- );
565
- break;
566
- case "uint32":
567
- doc.write(`if (!Number.isInteger(${accessor}) || ${accessor} < 0 || ${accessor} > 4294967295) return INVALID;`);
568
- break;
569
- case "float32":
570
- // Float32 range per util.NUMBER_FORMAT_RANGES
571
- doc.write(
572
- `if (!Number.isFinite(${accessor}) || ${accessor} < -3.4028234663852886e38 || ${accessor} > 3.4028234663852886e38) return INVALID;`
573
- );
574
- break;
575
- case "float64":
576
- doc.write(`if (!Number.isFinite(${accessor})) return INVALID;`);
577
- break;
578
- default: {
579
- void (format satisfies never);
580
- throw new ZodCompileUnsupportedError(`number format ${format}`);
581
- }
582
- }
583
- }
584
-
585
- function generateBigIntFormatCheck(doc: Doc, def: checks.$ZodCheckBigIntFormatDef, accessor: string): void {
586
- const format = def.format;
587
- if (!format) return; // undefined format means no range check
588
- switch (format) {
589
- case "int64":
590
- doc.write(`if (${accessor} < -9223372036854775808n || ${accessor} > 9223372036854775807n) return INVALID;`);
591
- break;
592
- case "uint64":
593
- doc.write(`if (${accessor} < 0n || ${accessor} > 18446744073709551615n) return INVALID;`);
594
- break;
595
- default: {
596
- void (format satisfies never);
597
- throw new ZodCompileUnsupportedError(`bigint format ${format}`);
598
- }
599
- }
600
- }
601
-
602
- function generateMimeTypeCheck(
603
- doc: Doc,
604
- ctx: CompileContext,
605
- def: checks.$ZodCheckMimeTypeDef,
606
- accessor: string
607
- ): void {
608
- const mimeTypes = def.mime;
609
- if (mimeTypes && mimeTypes.length > 0) {
610
- const mimeSet = addConstant(ctx, new Set(mimeTypes));
611
- doc.write(`if (!${mimeSet}.has(${accessor}.type)) return INVALID;`);
612
- }
613
- }
614
-
615
- // asserts each named property in place; children compile assert-only because z.properties never rebuilds its input
616
- function generatePropertiesChecks(
617
- doc: Doc,
618
- ctx: CompileContext,
619
- def: checks.$ZodCheckPropertiesDef,
620
- accessor: string
621
- ): void {
622
- // a custom `when` gates the assertion at runtime; inside a union a wrongly-run branch is absorbed as a branch failure rather than falling back, so refuse at codegen
623
- if (def.when) {
624
- throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
625
- }
626
- // matches the runtime gate: the base schema already typed the value, so only a nullish one is rejected
627
- doc.write(`if (${accessor} == null) return INVALID;`);
628
- const shape = def.shape as Record<string | symbol, SomeType>;
629
- for (const key of Reflect.ownKeys(shape)) {
630
- // a symbol has no source literal, so it is hoisted as a constant
631
- const keyExpr = typeof key === "symbol" ? addConstant(ctx, key) : util.esc(key);
632
- // cache the property read so a getter runs exactly once, matching the runtime
633
- const inputVar = newVar(ctx);
634
- doc.write(`const ${inputVar} = ${accessor}[${keyExpr}];`);
635
- compileChild(doc, ctx, shape[key]!, inputVar, false);
636
- }
637
- }
638
-
639
- function generatePropertyCheck(
640
- doc: Doc,
641
- ctx: CompileContext,
642
- def: checks.$ZodCheckPropertyDef,
643
- accessor: string
644
- ): void {
645
- const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`;
646
- generateCheck(doc, ctx, def.schema as SomeType, propAccessor);
647
- }
648
-
649
- function generateOverwriteCheck(
650
- doc: Doc,
651
- ctx: CompileContext,
652
- check: checks.$ZodCheckOverwrite,
653
- currentAccessor: string,
654
- newAccessor: string
655
- ): void {
656
- const tx = check._zod.def.tx;
657
- if (!tx) {
658
- throw new ZodCompileUnsupportedError("overwrite check without a transform function");
659
- }
660
-
661
- // Check for async transform
662
- if (isAsyncFunction(tx)) {
663
- throw new ZodCompileAsyncError("z.compile: async overwrite transforms are not supported");
664
- }
665
-
666
- // Hoist the transform function as a constant and apply it
667
- const txConst = addConstant(ctx, tx);
668
- doc.write(`const ${newAccessor} = ${txConst}(${currentAccessor});`);
669
- }
670
-
671
- type CustomCheck = {
672
- _zod: { def: { check: "custom"; fn?: (value: unknown) => boolean }; check?: (payload: unknown) => unknown };
673
- };
674
- /** A predicate that hands back a thenable is an async check reached synchronously, and the interpreter throws `$ZodAsyncError` for it. Returning INVALID instead would be a bail-out, and a union reads a bail-out as a rejected branch and answers with a later one — so the throw has to survive into generated code. */
675
- function throwAsync(): never {
676
- throw new $ZodAsyncError();
677
- }
678
-
679
- /** Shared `addIssue` for the spoofed payloads a refine, check or transform receives. Allocating one per call — a fresh closure plus a `this`-bound method on a fresh literal — pinned every payload-allocating schema at ~2.7M ops/sec against 135M for a plain object literal. It captures nothing per call; it only reaches `this.issues`. */
680
- function pushIssue(this: { issues: unknown[] }, issue: unknown): void {
681
- this.issues.push(issue);
682
- }
683
-
684
- function generateCustomRefineCheck(doc: Doc, ctx: CompileContext, check: CustomCheck, accessor: string): string {
685
- const def = check._zod.def;
686
-
687
- if (def.fn) {
688
- // Simple predicate function (from .refine())
689
- if (isAsyncFunction(def.fn)) {
690
- throw new ZodCompileAsyncError("z.compile: async .refine() predicates are not supported");
691
- }
692
- const fnConst = addUserConstant(ctx, def.fn);
693
- const throwAsyncConst = addConstant(ctx, throwAsync);
694
- const resVar = newVar(ctx);
695
- doc.write(`const ${resVar} = ${fnConst}(${accessor});`);
696
- // A thenable is truthy, so it would otherwise read as a pass. It is not a rejection either: the interpreter throws, and INVALID inside a union would just hand the parse to the next branch.
697
- doc.write(`if (${resVar} instanceof Promise) ${throwAsyncConst}();`);
698
- doc.write(`if (!${resVar}) return INVALID;`);
699
- // A `.refine()` predicate only answers yes or no; it cannot rewrite the value.
700
- return accessor;
701
- }
702
- if (check._zod.check) {
703
- if (isAsyncFunction(check._zod.check)) {
704
- throw new ZodCompileAsyncError("z.compile: async .superRefine() / check functions are not supported");
705
- }
706
- // SuperRefine or other check function - need to spoof context Create a helper that runs the check and returns true if no issues
707
- const checkFn = check._zod.check;
708
- // `$RefinementCtx` extends the parse payload, so a check may rewrite
709
- // `ctx.value` as well as push issues — `.superRefine((v, ctx) => { ctx.value =
710
- // v.trim() })` is a value transform. Returning only a boolean discarded that
711
- // write and emitted the untrimmed input. Hand the value back and thread it on.
712
- const helperFn = (value: unknown): unknown => {
713
- const fakePayload = { value, issues: [] as unknown[], addIssue: pushIssue };
714
- const result = checkFn(fakePayload);
715
- // Throw rather than return INVALID: the interpreter throws here, and a union would read INVALID as a rejected branch.
716
- if (result instanceof Promise) throwAsync();
717
- return fakePayload.issues.length === 0 ? fakePayload.value : INVALID;
718
- };
719
- const helperConst = addUserConstant(ctx, helperFn);
720
- const outVar = newVar(ctx);
721
- doc.write(`const ${outVar} = ${helperConst}(${accessor});`);
722
- doc.write(`if (${outVar} === INVALID) return INVALID;`);
723
- return outVar;
724
- }
725
- throw new ZodCompileUnsupportedError("custom check without a predicate or check function");
726
- }
727
-
728
- type StringFormatDef =
729
- | checks.$ZodCheckStringFormatDef
730
- | checks.$ZodCheckRegexDef
731
- | checks.$ZodCheckLowerCaseDef
732
- | checks.$ZodCheckUpperCaseDef
733
- | checks.$ZodCheckIncludesDef
734
- | checks.$ZodCheckStartsWithDef
735
- | checks.$ZodCheckEndsWithDef;
736
-
737
- type SupportedStringFormat = "regex" | "lowercase" | "uppercase" | "includes" | "starts_with" | "ends_with";
738
-
739
- /**
740
- * Built-in formats that validate with nothing but `def.pattern`, so compiling
741
- * the regex reproduces the runtime exactly. Deliberately an allowlist: a format
742
- * missing from it loses its fast path, while a format wrongly added to it
743
- * silently accepts input the runtime rejects. Formats that layer extra
744
- * validation over a shape-only pattern (`credit_card`, `base64`, `ipv6`, …) are
745
- * handled above by hoisting the runtime validator itself.
746
- */
747
- const PATTERN_IS_COMPLETE: Set<string> = new Set([
748
- "cidrv4",
749
- "cuid",
750
- "cuid2",
751
- "date",
752
- "datetime",
753
- "duration",
754
- "e164",
755
- "email",
756
- "emoji",
757
- "ends_with",
758
- "guid",
759
- "includes",
760
- "ipv4",
761
- "ksuid",
762
- "lowercase",
763
- "mac",
764
- "nanoid",
765
- "regex",
766
- "starts_with",
767
- "time",
768
- "ulid",
769
- "uppercase",
770
- "uuid",
771
- "xid",
772
- ]);
773
-
774
- // Returns the accessor holding the (possibly normalized) value after the check — url/normalize formats produce a new value like overwrite does. Never assigns to the incoming accessor: it may be a `const` or a property expression on user input.
775
- function generateStringFormatCheck(doc: Doc, ctx: CompileContext, def: StringFormatDef, accessor: string): string;
776
- function generateStringFormatCheck(
777
- doc: Doc,
778
- ctx: CompileContext,
779
- def: StringFormatDef,
780
- accessor: string,
781
- needsValue: boolean
782
- ): string | null;
783
- function generateStringFormatCheck(
784
- doc: Doc,
785
- ctx: CompileContext,
786
- def: StringFormatDef,
787
- accessor: string,
788
- needsValue = true
789
- ): string | null {
790
- // Some string formats do runtime validation beyond their advertised pattern. For cheap pure utility checks, hoist the runtime function and call it so the fast path stays correct without cloning the utility logic into codegen.
791
- const fmt = def.format;
792
- if (fmt === "base64") {
793
- const validator = addConstant(ctx, isValidBase64);
794
- doc.write(`if (!${validator}(${accessor})) return INVALID;`);
795
- return accessor;
796
- }
797
- if (fmt === "base64url") {
798
- const validator = addConstant(ctx, isValidBase64URL);
799
- doc.write(`if (!${validator}(${accessor})) return INVALID;`);
800
- return accessor;
801
- }
802
- if (fmt === "jwt") {
803
- const validator = addConstant(ctx, isValidJWT);
804
- const alg = addConstant(ctx, (def as unknown as { alg?: util.JWTAlgorithm }).alg ?? null);
805
- doc.write(`if (!${validator}(${accessor}, ${alg})) return INVALID;`);
806
- return accessor;
807
- }
808
- if (fmt === "ipv6") {
809
- const validator = addConstant(ctx, isValidIPv6);
810
- doc.write(`if (!${validator}(${accessor})) return INVALID;`);
811
- return accessor;
812
- }
813
- if (fmt === "cidrv6") {
814
- const validator = addConstant(ctx, isValidCIDRv6);
815
- doc.write(`if (!${validator}(${accessor})) return INVALID;`);
816
- return accessor;
817
- }
818
- if (fmt === "credit_card") {
819
- const validator = addConstant(ctx, isValidCreditCard);
820
- doc.write(`if (!${validator}(${accessor})) return INVALID;`);
821
- return accessor;
822
- }
823
- if (fmt === "iban") {
824
- const validator = addConstant(ctx, isValidIBAN);
825
- doc.write(`if (!${validator}(${accessor})) return INVALID;`);
826
- return accessor;
827
- }
828
- const formatDef = def as unknown as { normalize?: boolean; hostname?: unknown; protocol?: unknown };
829
- if (
830
- fmt === "url" ||
831
- fmt === "httpurl" ||
832
- formatDef.normalize ||
833
- formatDef.hostname !== undefined ||
834
- formatDef.protocol !== undefined
835
- ) {
836
- // Same three predicates the runtime calls, in the same order, so there is no second URL implementation to drift. Which options exist is known now, so the calls the runtime makes conditionally are emitted conditionally instead.
837
- const parseConst = addConstant(ctx, validateURL);
838
- const defConst = addConstant(ctx, def);
839
- const trimVar = newVar(ctx);
840
- const urlVar = newVar(ctx);
841
- doc.write(`const ${trimVar} = ${accessor}.trim();`);
842
- doc.write(`const ${urlVar} = ${parseConst}(${trimVar}, ${defConst});`);
843
- doc.write(`if (typeof ${urlVar} === "number") return INVALID;`);
844
- if (formatDef.hostname !== undefined) {
845
- const hostnameConst = addConstant(ctx, urlHostnameOk);
846
- doc.write(`if (!${hostnameConst}(${urlVar}, ${defConst}.hostname)) return INVALID;`);
847
- }
848
- if (formatDef.protocol !== undefined) {
849
- const protocolConst = addConstant(ctx, urlProtocolOk);
850
- doc.write(`if (!${protocolConst}(${urlVar}, ${defConst}.protocol)) return INVALID;`);
851
- }
852
- if (!needsValue) return null;
853
- const outputVar = newVar(ctx);
854
- const outputExpr = formatDef.normalize ? `${urlVar}.href` : `${addConstant(ctx, stripTabAndNewline)}(${trimVar})`;
855
- doc.write(`const ${outputVar} = ${outputExpr};`);
856
- return outputVar;
857
- }
858
-
859
- // A custom string format carries the predicate the runtime actually calls. Hoist and call it instead of testing `def.pattern`: the two only coincide when the format was built from a RegExp, and relying on that coupling is how supplemental validation gets dropped.
860
- const customFn = (def as unknown as { fn?: (input: string) => unknown }).fn;
861
- if (customFn) {
862
- if (isAsyncFunction(customFn)) throw new ZodCompileUnsupportedError(`async string format ${fmt}`);
863
- const fnConst = addConstant(ctx, customFn);
864
- doc.write(`if (!${fnConst}(${accessor})) return INVALID;`);
865
- return accessor;
866
- }
867
-
868
- // Formats whose `pattern` IS the whole check. An allowlist rather than `if (def.pattern)`, because credit_card, base64 and ipv6 carry a shape-only pattern and validate the rest separately.
869
- if (PATTERN_IS_COMPLETE.has(fmt) && def.pattern) {
870
- const patternConst = addConstant(ctx, def.pattern);
871
- doc.write(`${patternConst}.lastIndex = 0;`);
872
- doc.write(`if (!${patternConst}.test(${accessor})) return INVALID;`);
873
- return accessor;
874
- }
875
-
876
- const format = def.format as SupportedStringFormat;
877
- switch (format) {
878
- case "regex":
879
- // A regex check with a pattern returned above. Reaching here means there is no pattern to test, and accepting unconditionally would pass every input, so hand the schema back to the runtime.
880
- throw new ZodCompileUnsupportedError("regex format without a pattern");
881
- case "lowercase":
882
- doc.write(`if (${accessor} !== ${accessor}.toLowerCase()) return INVALID;`);
883
- break;
884
- case "uppercase":
885
- doc.write(`if (${accessor} !== ${accessor}.toUpperCase()) return INVALID;`);
886
- break;
887
- case "includes":
888
- doc.write(
889
- `if (!${accessor}.includes(${util.esc((def as checks.$ZodCheckIncludesDef).includes)})) return INVALID;`
890
- );
891
- break;
892
- case "starts_with": {
893
- const prefix = (def as checks.$ZodCheckStartsWithDef).prefix;
894
- doc.write(`if (${accessor}.slice(0, ${prefix.length}) !== ${util.esc(prefix)}) return INVALID;`);
895
- break;
896
- }
897
- case "ends_with": {
898
- const suffix = (def as checks.$ZodCheckEndsWithDef).suffix;
899
- doc.write(`if (${accessor}.slice(-${suffix.length}) !== ${util.esc(suffix)}) return INVALID;`);
900
- break;
901
- }
902
- default: {
903
- void (format satisfies never);
904
- throw new ZodCompileUnsupportedError(`string format ${format}`);
905
- }
906
- }
907
- return accessor;
908
- }
909
-
910
- // Union of all schema types we support in AOT compilation
911
- type SupportedSchemaType =
912
- | "string"
913
- | "number"
914
- | "boolean"
915
- | "bigint"
916
- | "symbol"
917
- | "undefined"
918
- | "null"
919
- | "any"
920
- | "unknown"
921
- | "never"
922
- | "void"
923
- | "nan"
924
- | "date"
925
- | "object"
926
- | "optional"
927
- | "nullable"
928
- | "array"
929
- | "literal"
930
- | "enum"
931
- | "readonly"
932
- | "success"
933
- | "default"
934
- | "prefault"
935
- | "nonoptional"
936
- | "tuple"
937
- | "union"
938
- | "intersection"
939
- | "record"
940
- | "map"
941
- | "set"
942
- | "file"
943
- | "template_literal"
944
- | "lazy"
945
- | "pipe"
946
- | "custom"
947
- | "transform"
948
- | "catch";
949
-
950
- function generateCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string;
951
- function generateCheck(
952
- doc: Doc,
953
- ctx: CompileContext,
954
- schema: SomeType,
955
- accessor: string,
956
- needsValue: boolean
957
- ): string | null;
958
- function generateCheck(
959
- doc: Doc,
960
- ctx: CompileContext,
961
- schema: SomeType,
962
- accessor: string,
963
- needsValue = true
964
- ): string | null {
965
- const def = schema._zod.def;
966
- const type = def.type as SupportedSchemaType;
967
-
968
- // A coercing schema would compile to the bare type test and reject what it should convert; inside a union that reads as a rejected branch, so refuse at codegen.
969
- if ((def as { coerce?: boolean }).coerce) {
970
- throw new ZodCompileUnsupportedError(`coercion (z.coerce.${type}())`);
971
- }
972
-
973
- // A node builds its output when its caller reads one, or when it carries checks of its own, since a check reads what was built. One polarity for the whole walk: this is what the node does, and it is what its children are told they need.
974
- const buildsValue = needsValue || !!def.checks?.length;
975
- let typeAccessor: string | null;
976
-
977
- switch (type) {
978
- case "string":
979
- typeAccessor = generateStringCheck(doc, ctx, schema, accessor, buildsValue);
980
- break;
981
- case "number":
982
- typeAccessor = generateNumberCheck(doc, schema, accessor);
983
- break;
984
- case "boolean":
985
- typeAccessor = generateBooleanCheck(doc, accessor);
986
- break;
987
- case "bigint":
988
- typeAccessor = generateBigIntCheck(doc, schema, accessor);
989
- break;
990
- case "symbol":
991
- typeAccessor = generateSymbolCheck(doc, accessor);
992
- break;
993
- case "undefined":
994
- typeAccessor = generateUndefinedCheck(doc, accessor);
995
- break;
996
- case "null":
997
- typeAccessor = generateNullCheck(doc, accessor);
998
- break;
999
- case "any":
1000
- case "unknown":
1001
- // No check needed - pass through
1002
- typeAccessor = accessor;
1003
- break;
1004
- case "never":
1005
- doc.write("return INVALID;");
1006
- typeAccessor = accessor;
1007
- break;
1008
- case "void":
1009
- typeAccessor = generateVoidCheck(doc, accessor);
1010
- break;
1011
- case "nan":
1012
- typeAccessor = generateNaNCheck(doc, accessor);
1013
- break;
1014
- case "date":
1015
- typeAccessor = generateDateCheck(doc, accessor);
1016
- break;
1017
- case "object":
1018
- typeAccessor = generateObjectCheck(doc, ctx, schema, accessor, buildsValue);
1019
- break;
1020
- case "optional":
1021
- typeAccessor = generateOptionalCheck(doc, ctx, schema, accessor, buildsValue);
1022
- break;
1023
- case "nullable":
1024
- typeAccessor = generateNullableCheck(doc, ctx, schema, accessor, buildsValue);
1025
- break;
1026
- case "array":
1027
- typeAccessor = generateArrayCheck(doc, ctx, schema, accessor, buildsValue);
1028
- break;
1029
- case "literal":
1030
- typeAccessor = generateLiteralCheck(doc, ctx, schema, accessor);
1031
- break;
1032
- case "enum":
1033
- typeAccessor = generateEnumCheck(doc, ctx, schema, accessor);
1034
- break;
1035
- case "readonly": {
1036
- const innerOut = generateWrapperCheck(doc, ctx, schema, accessor);
1037
- // Runtime freezes the parsed value (schemas.ts handleReadonlyResult).
1038
- const frozenVar = newVar(ctx);
1039
- doc.write(`const ${frozenVar} = Object.freeze(${innerOut});`);
1040
- typeAccessor = frozenVar;
1041
- break;
1042
- }
1043
- case "success":
1044
- // Runtime output is `issues.length === 0`. The fast path only reaches
1045
- // here when the inner check passed (failure returns INVALID and the
1046
- // runtime fallback reproduces the inner issues), so the output is
1047
- // always `true`.
1048
- generateWrapperCheck(doc, ctx, schema, accessor);
1049
- typeAccessor = "true";
1050
- break;
1051
- case "default":
1052
- case "prefault":
1053
- typeAccessor = generateDefaultCheck(doc, ctx, schema, accessor);
1054
- break;
1055
- case "nonoptional":
1056
- typeAccessor = generateNonOptionalCheck(doc, ctx, schema, accessor);
1057
- break;
1058
- case "tuple":
1059
- typeAccessor = generateTupleCheck(doc, ctx, schema, accessor);
1060
- break;
1061
- case "union":
1062
- typeAccessor = generateUnionCheck(doc, ctx, schema, accessor);
1063
- break;
1064
- case "intersection":
1065
- typeAccessor = generateIntersectionCheck(doc, ctx, schema, accessor);
1066
- break;
1067
- case "record":
1068
- typeAccessor = generateRecordCheck(doc, ctx, schema, accessor);
1069
- break;
1070
- case "map":
1071
- typeAccessor = generateMapCheck(doc, ctx, schema, accessor);
1072
- break;
1073
- case "set":
1074
- typeAccessor = generateSetCheck(doc, ctx, schema, accessor);
1075
- break;
1076
- case "file":
1077
- typeAccessor = generateFileCheck(doc, accessor);
1078
- break;
1079
- case "template_literal":
1080
- typeAccessor = generateTemplateLiteralCheck(doc, ctx, schema, accessor);
1081
- break;
1082
- case "lazy":
1083
- typeAccessor = generateLazyCheck(doc, ctx, schema, accessor);
1084
- break;
1085
- case "pipe":
1086
- typeAccessor = generatePipeCheck(doc, ctx, schema, accessor);
1087
- break;
1088
- case "custom":
1089
- typeAccessor = generateCustomCheck(doc, ctx, schema, accessor);
1090
- break;
1091
- case "transform":
1092
- typeAccessor = generateTransformCheck(doc, ctx, schema, accessor);
1093
- break;
1094
- case "catch":
1095
- typeAccessor = generateCatchCheck(doc, ctx, schema, accessor);
1096
- break;
1097
- default: {
1098
- void (type satisfies never);
1099
- throw new ZodCompileUnsupportedError(`schema type ${type}`);
1100
- }
1101
- }
1102
-
1103
- // a node that built nothing has no checks to run: not building requires an empty check list
1104
- if (typeAccessor === null) return null;
1105
-
1106
- // Generate checks after the type-specific validation (may transform value)
1107
- return generateChecks(doc, ctx, schema, typeAccessor);
1108
- }
1109
-
1110
- function generateStringCheck(
1111
- doc: Doc,
1112
- ctx: CompileContext,
1113
- schema: SomeType,
1114
- accessor: string,
1115
- needsValue = true
1116
- ): string | null {
1117
- doc.write(`if (typeof ${accessor} !== "string") return INVALID;`);
1118
-
1119
- // z.email() carries its format on the def, z.string().email() in def.checks; both route here so the format table has no second copy to drift from.
1120
- const def = schema._zod.def as unknown as StringFormatDef & { format?: string };
1121
- if (def.format === undefined) return accessor;
1122
- return generateStringFormatCheck(doc, ctx, def, accessor, needsValue);
1123
- }
1124
-
1125
- function generateNumberCheck(doc: Doc, schema: SomeType, accessor: string): string {
1126
- // Runtime z.number() rejects NaN and ±Infinity. Number.isFinite covers both.
1127
- doc.write(`if (typeof ${accessor} !== "number" || !Number.isFinite(${accessor})) return INVALID;`);
1128
-
1129
- // Mini factories like z.int(), z.int32(), z.uint32(), z.float32() bake a number_format check into the schema def itself (not into def.checks). Apply the same constraint here.
1130
- const def = schema._zod.def as unknown as { check?: string; format?: string };
1131
- if (def.check === "number_format" && def.format) {
1132
- generateNumberFormatCheck(doc, { format: def.format } as checks.$ZodCheckNumberFormatDef, accessor);
1133
- }
1134
- return accessor;
1135
- }
1136
-
1137
- function generateBooleanCheck(doc: Doc, accessor: string): string {
1138
- doc.write(`if (typeof ${accessor} !== "boolean") return INVALID;`);
1139
- return accessor;
1140
- }
1141
-
1142
- function generateBigIntCheck(doc: Doc, schema: SomeType, accessor: string): string {
1143
- doc.write(`if (typeof ${accessor} !== "bigint") return INVALID;`);
1144
-
1145
- // Handle bigint format (int64, uint64) directly on the schema def
1146
- const def = schema._zod.def as unknown as { format?: string };
1147
- if (def.format) {
1148
- switch (def.format) {
1149
- case "int64":
1150
- doc.write(`if (${accessor} < -9223372036854775808n || ${accessor} > 9223372036854775807n) return INVALID;`);
1151
- break;
1152
- case "uint64":
1153
- doc.write(`if (${accessor} < 0n || ${accessor} > 18446744073709551615n) return INVALID;`);
1154
- break;
1155
- }
1156
- }
1157
- return accessor;
1158
- }
1159
-
1160
- function generateSymbolCheck(doc: Doc, accessor: string): string {
1161
- doc.write(`if (typeof ${accessor} !== "symbol") return INVALID;`);
1162
- return accessor;
1163
- }
1164
-
1165
- function generateUndefinedCheck(doc: Doc, accessor: string): string {
1166
- doc.write(`if (${accessor} !== undefined) return INVALID;`);
1167
- return accessor;
1168
- }
1169
-
1170
- function generateNullCheck(doc: Doc, accessor: string): string {
1171
- doc.write(`if (${accessor} !== null) return INVALID;`);
1172
- return accessor;
1173
- }
1174
-
1175
- function generateVoidCheck(doc: Doc, accessor: string): string {
1176
- doc.write(`if (${accessor} !== undefined) return INVALID;`);
1177
- return accessor;
1178
- }
1179
-
1180
- function generateNaNCheck(doc: Doc, accessor: string): string {
1181
- doc.write(`if (typeof ${accessor} !== "number" || !Number.isNaN(${accessor})) return INVALID;`);
1182
- return accessor;
1183
- }
1184
-
1185
- function generateDateCheck(doc: Doc, accessor: string): string {
1186
- doc.write(`if (!(${accessor} instanceof Date) || Number.isNaN(${accessor}.getTime())) return INVALID;`);
1187
- return accessor;
1188
- }
1189
-
1190
- function generateObjectCheck(
1191
- doc: Doc,
1192
- ctx: CompileContext,
1193
- schema: SomeType,
1194
- accessor: string,
1195
- buildsValue = true
1196
- ): string | null {
1197
- const def = schema._zod.def as unknown as { shape: Record<string, SomeType>; catchall?: SomeType };
1198
-
1199
- // Check that input is a non-null, non-array object
1200
- doc.write(
1201
- `if (typeof ${accessor} !== "object" || ${accessor} === null || Array.isArray(${accessor})) return INVALID;`
1202
- );
1203
-
1204
- const shape = def.shape;
1205
- const keys = Object.keys(shape);
1206
- const symbolKeys = Object.getOwnPropertySymbols(shape);
1207
- // a symbol has no source literal, so it is hoisted as a constant; `keys` stays string-only where the emitted code uses `for...in`
1208
- const allKeys: (string | symbol)[] = symbolKeys.length ? [...keys, ...symbolKeys] : keys;
1209
- const keyExpr = (k: string | symbol) => (typeof k === "symbol" ? addConstant(ctx, k) : util.esc(k));
1210
- const propKey = (k: string | symbol) => (typeof k === "symbol" ? `[${keyExpr(k)}]` : util.esc(k));
1211
- const propShape = shape as Record<string | symbol, SomeType>;
1212
-
1213
- // `__proto__` as an own shape key can't be expressed in an output object literal (the literal form sets the prototype instead of an own property).
1214
- if (keys.includes("__proto__")) {
1215
- throw new ZodCompileUnsupportedError('object shape key "__proto__"');
1216
- }
1217
-
1218
- // Map from key to output accessor for that property
1219
- const propOutputs = new Map<string | symbol, string>();
1220
-
1221
- // Validate each property and collect output accessors
1222
- for (const key of allKeys) {
1223
- const propSchema = propShape[key]!;
1224
- const kx = keyExpr(key);
1225
- // Always cache the property read: the runtime reads input[key] exactly once, so a getter must not be re-read by checks or output assembly.
1226
- const inputVar = newVar(ctx);
1227
- doc.write(`const ${inputVar} = ${accessor}[${kx}];`);
1228
-
1229
- if (propSchema._zod.optin !== undefined) {
1230
- // Any optin rung means the key may be omitted. The runtime runs the property anyway and ignores issues only when the key is genuinely absent, which is what makes exactOptional compositional.
1231
- const outputVar = newVar(ctx);
1232
- doc.write(`let ${outputVar} = (() => {`);
1233
- doc.indented((d) => {
1234
- const outputAccessor = compileChild(d, ctx, propSchema, inputVar);
1235
- d.write(`return ${outputAccessor};`);
1236
- });
1237
- doc.write(`})();`);
1238
-
1239
- if (propSchema._zod.optout === "optional") {
1240
- doc.write(`if (${outputVar} === INVALID) {`);
1241
- doc.indented((d) => {
1242
- d.write(`if (${kx} in ${accessor}) return INVALID;`);
1243
- d.write(`${outputVar} = undefined;`);
1244
- });
1245
- doc.write(`}`);
1246
- } else {
1247
- doc.write(`if (${outputVar} === INVALID) return INVALID;`);
1248
- }
1249
- propOutputs.set(key, outputVar);
1250
- } else {
1251
- if (requiresPresenceCheck(propSchema)) {
1252
- doc.write(`if (!(${kx} in ${accessor})) return INVALID;`);
1253
- }
1254
-
1255
- // Generate check and get output accessor
1256
- const outputAccessor = compileChild(doc, ctx, propSchema, inputVar, buildsValue);
1257
- if (outputAccessor !== null) propOutputs.set(key, outputAccessor);
1258
- }
1259
- }
1260
-
1261
- // Handle catchall
1262
- const catchall = def.catchall;
1263
- let unknownKeysMode: "none" | "passthrough" | "schema" = "none";
1264
-
1265
- if (catchall) {
1266
- const catchallType = catchall._zod.def.type;
1267
-
1268
- if (catchallType === "never") {
1269
- // Strict: one `for...in`, as the runtime does, so inherited enumerable keys count. An undeclared `__proto__` is reported here and excluded only from the output (#6221); an own-key count would wrongly reject a class instance.
1270
- const condition = keys.map((k) => `k !== ${util.esc(k)}`).join(" && ") || "true";
1271
- doc.write(`for (const k in ${accessor}) {`);
1272
- doc.indented((d) => {
1273
- d.write(`if (${condition}) return INVALID;`);
1274
- });
1275
- doc.write(`}`);
1276
- } else if ((catchallType === "unknown" || catchallType === "any") && !catchall._zod.def.checks?.length) {
1277
- unknownKeysMode = "passthrough";
1278
- } else {
1279
- unknownKeysMode = "schema";
1280
- }
1281
- }
1282
- // else: strip mode (no catchall) - unknown keys ignored, only include known keys
1283
-
1284
- // defaulted required outputs keep their keys even when undefined
1285
- const outputVar = newVar(ctx);
1286
- const hasConditionalKeys = allKeys.some((k) => mayOmitUndefined(propShape[k]!) || dropsWhenAbsent(propShape[k]!));
1287
-
1288
- // Assert mode: every declared key is validated above, so the output literal and the unknown-key copy are pure waste. A `never` catchall already emitted its rejection loop; a schema catchall still has to validate the values it would otherwise have stored.
1289
- if (!buildsValue) {
1290
- if (unknownKeysMode === "schema") {
1291
- const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null;
1292
- doc.write(`for (const k in ${accessor}) {`);
1293
- doc.indented((d) => {
1294
- d.write(`if (k === "__proto__") continue;`);
1295
- if (knownSet) d.write(`if (${knownSet}.has(k)) continue;`);
1296
- const valVar = newVar(ctx);
1297
- d.write(`const ${valVar} = ${accessor}[k];`);
1298
- compileChild(d, ctx, catchall!, valVar, false);
1299
- });
1300
- doc.write(`}`);
1301
- }
1302
- return null;
1303
- }
1304
-
1305
- if (!hasConditionalKeys) {
1306
- const propLiterals = allKeys.map((k) => `${propKey(k)}: ${propOutputs.get(k)}`).join(", ");
1307
- doc.write(`const ${outputVar} = { ${propLiterals} };`);
1308
- } else {
1309
- doc.write(`const ${outputVar} = {};`);
1310
- for (const k of allKeys) {
1311
- const kx = keyExpr(k);
1312
- const out = propOutputs.get(k);
1313
- if (dropsWhenAbsent(propShape[k]!)) {
1314
- doc.write(`if (${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`);
1315
- } else if (mayOmitUndefined(propShape[k]!)) {
1316
- doc.write(`if (${out} !== undefined || ${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`);
1317
- } else {
1318
- doc.write(`${outputVar}[${kx}] = ${out};`);
1319
- }
1320
- }
1321
- }
1322
-
1323
- if (unknownKeysMode !== "none") {
1324
- // Unknown keys are written directly into the output after shape keys — for...in (like the runtime) so inherited enumerables participate.
1325
- const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null;
1326
- doc.write(`for (const k in ${accessor}) {`);
1327
- doc.indented((d) => {
1328
- // Skip __proto__: assigning obj["__proto__"] on a plain {} replaces the prototype via the setter rather than adding an own property. Mirrors the runtime catchall fix (#5898).
1329
- d.write(`if (k === "__proto__") continue;`);
1330
- if (knownSet) d.write(`if (${knownSet}.has(k)) continue;`);
1331
- if (unknownKeysMode === "passthrough") {
1332
- d.write(`${outputVar}[k] = ${accessor}[k];`);
1333
- } else {
1334
- const valVar = newVar(ctx);
1335
- d.write(`const ${valVar} = ${accessor}[k];`);
1336
- const catchallOut = compileChild(d, ctx, catchall!, valVar);
1337
- d.write(`${outputVar}[k] = ${catchallOut};`);
1338
- }
1339
- });
1340
- doc.write(`}`);
1341
- }
1342
-
1343
- return outputVar;
1344
- }
1345
-
1346
- function generateOptionalCheck(
1347
- doc: Doc,
1348
- ctx: CompileContext,
1349
- schema: SomeType,
1350
- accessor: string,
1351
- buildsValue = true
1352
- ): string | null {
1353
- const def = schema._zod.def as unknown as { innerType: SomeType };
1354
- if (isExactOptional(schema)) {
1355
- return generateCheck(doc, ctx, def.innerType, accessor, buildsValue);
1356
- }
1357
-
1358
- // Same question $ZodOptional asks: only the top rung of the optin ladder substitutes a value for an absent input, so only it is worth running on `undefined`. Every other rung leaves the value intact, which is the skip branch below.
1359
- if (def.innerType._zod.optin === "defaulted") {
1360
- const outputVar = newVar(ctx);
1361
- const branchVar = newVar(ctx);
1362
- doc.write(`let ${outputVar};`);
1363
- doc.write(`if (${accessor} === undefined) {`);
1364
- doc.indented((d) => {
1365
- d.write(`const ${branchVar} = (() => {`);
1366
- d.indented((d2) => {
1367
- const innerOutput = generateCheck(d2, ctx, def.innerType, accessor);
1368
- d2.write(`return ${innerOutput};`);
1369
- });
1370
- d.write(`})();`);
1371
- d.write(`if (${branchVar} !== INVALID) ${outputVar} = ${branchVar};`);
1372
- });
1373
- doc.write(`} else {`);
1374
- doc.indented((d) => {
1375
- const innerOutput = generateCheck(d, ctx, def.innerType, accessor);
1376
- d.write(`${outputVar} = ${innerOutput};`);
1377
- });
1378
- doc.write(`}`);
1379
- return outputVar;
1380
- }
1381
-
1382
- const outputVar = buildsValue ? newVar(ctx) : null;
1383
- if (outputVar) doc.write(`let ${outputVar};`);
1384
- doc.write(`if (${accessor} !== undefined) {`);
1385
- doc.indented((d) => {
1386
- const innerOutput = generateCheck(d, ctx, def.innerType, accessor, buildsValue);
1387
- if (outputVar && innerOutput !== null) d.write(`${outputVar} = ${innerOutput};`);
1388
- });
1389
- doc.write(`}`);
1390
- return outputVar;
1391
- }
1392
-
1393
- function isExactOptional(schema: SomeType): boolean {
1394
- return (schema._zod as { traits?: Set<string> }).traits?.has("$ZodExactOptional") === true;
1395
- }
1396
-
1397
- // A value-level fast path reads an absent key as `undefined`, so z.undefined(), z.any() and unions containing undefined would accept a missing property the runtime rejects.
1398
- function requiresPresenceCheck(schema: SomeType): boolean {
1399
- return schema._zod.optin === undefined && fastPathAcceptsAbsence(schema);
1400
- }
1401
-
1402
- function fastPathAcceptsAbsence(schema: SomeType): boolean {
1403
- // An island is handed `input[key]` and cannot tell absent from explicitly undefined, so report absence-accepting and let the object emit the presence guard (#6405).
1404
- if ((schema._zod.def as { coerce?: boolean }).coerce) return true;
1405
-
1406
- const def = schema._zod.def as {
1407
- type: string;
1408
- values?: unknown[];
1409
- innerType?: SomeType;
1410
- options?: SomeType[];
1411
- in?: SomeType;
1412
- out?: SomeType;
1413
- left?: SomeType;
1414
- right?: SomeType;
1415
- };
1416
-
1417
- switch (def.type) {
1418
- case "any":
1419
- case "unknown":
1420
- case "undefined":
1421
- case "void":
1422
- case "default":
1423
- case "prefault":
1424
- case "transform":
1425
- case "custom":
1426
- case "lazy":
1427
- return true;
1428
- case "string":
1429
- case "number":
1430
- case "boolean":
1431
- case "bigint":
1432
- case "symbol":
1433
- case "null":
1434
- case "never":
1435
- case "nan":
1436
- case "date":
1437
- case "object":
1438
- case "array":
1439
- case "tuple":
1440
- case "record":
1441
- case "map":
1442
- case "set":
1443
- case "file":
1444
- case "template_literal":
1445
- return false;
1446
- case "nonoptional":
1447
- // Normally rejects an absent key, but not when something inside supplies a value for it: `.default(v).optional().nonoptional()` accepts absence and yields v. Defer to the inner — over-reporting here only costs a presence check, and a fast path that wrongly rejects still falls back to the runtime.
1448
- return def.innerType ? fastPathAcceptsAbsence(def.innerType) : false;
1449
- case "literal":
1450
- return !!def.values?.includes(undefined);
1451
- case "enum":
1452
- return !!(schema._zod as unknown as { values?: Set<unknown> }).values?.has(undefined);
1453
- case "optional":
1454
- case "nullable":
1455
- case "readonly":
1456
- case "success":
1457
- return def.innerType ? fastPathAcceptsAbsence(def.innerType) : true;
1458
- case "catch":
1459
- // catch always produces a value (inner may fail → catchValue substitutes), so it accepts an absent key regardless of inner.
1460
- return true;
1461
- case "union":
1462
- return def.options ? def.options.some(fastPathAcceptsAbsence) : true;
1463
- case "intersection":
1464
- if (!def.left || !def.right) return true;
1465
- return fastPathAcceptsAbsence(def.left) && fastPathAcceptsAbsence(def.right);
1466
- case "pipe":
1467
- return def.in ? fastPathAcceptsAbsence(def.in) : true;
1468
- default:
1469
- return true;
1470
- }
1471
- }
1472
-
1473
- /** The middle rung permits absence without supplying anything in its place, so an absent key contributes nothing — mirrors the leading gate in `handlePropertyResult`. */
1474
- function dropsWhenAbsent(schema: SomeType): boolean {
1475
- return schema._zod.optin === "optional" && schema._zod.optout === "optional";
1476
- }
1477
-
1478
- function mayOmitUndefined(schema: SomeType): boolean {
1479
- return (schema._zod.optin !== "defaulted" || schema._zod.optout === "optional") && mayOutputUndefined(schema);
1480
- }
1481
-
1482
- // whether a schema's success-path output can be undefined
1483
- function mayOutputUndefined(schema: SomeType): boolean {
1484
- const def = schema._zod.def as {
1485
- type: string;
1486
- values?: unknown[];
1487
- innerType?: SomeType;
1488
- options?: SomeType[];
1489
- out?: SomeType;
1490
- left?: SomeType;
1491
- right?: SomeType;
1492
- };
1493
- switch (def.type) {
1494
- case "string":
1495
- case "number":
1496
- case "boolean":
1497
- case "bigint":
1498
- case "symbol":
1499
- case "null":
1500
- case "nan":
1501
- case "date":
1502
- case "object":
1503
- case "array":
1504
- case "tuple":
1505
- case "record":
1506
- case "map":
1507
- case "set":
1508
- case "file":
1509
- case "template_literal":
1510
- case "never":
1511
- case "success":
1512
- return false;
1513
- case "literal":
1514
- return !!def.values?.includes(undefined);
1515
- case "enum":
1516
- return !!(schema._zod as unknown as { values?: Set<unknown> }).values?.has(undefined);
1517
- case "optional":
1518
- return true;
1519
- case "nullable":
1520
- case "readonly":
1521
- case "nonoptional":
1522
- return def.innerType ? mayOutputUndefined(def.innerType) : true;
1523
- case "union":
1524
- return def.options ? def.options.some(mayOutputUndefined) : true;
1525
- case "intersection":
1526
- return !def.left || !def.right || mayOutputUndefined(def.left) || mayOutputUndefined(def.right);
1527
- case "pipe":
1528
- return def.out ? mayOutputUndefined(def.out) : true;
1529
- default:
1530
- // any/unknown/undefined/void/default/prefault/transform/custom/lazy/catch
1531
- return true;
1532
- }
1533
- }
1534
-
1535
- function generateNullableCheck(
1536
- doc: Doc,
1537
- ctx: CompileContext,
1538
- schema: SomeType,
1539
- accessor: string,
1540
- buildsValue = true
1541
- ): string | null {
1542
- const def = schema._zod.def as unknown as { innerType: SomeType };
1543
- const outputVar = buildsValue ? newVar(ctx) : null;
1544
- if (outputVar) doc.write(`let ${outputVar} = null;`);
1545
- doc.write(`if (${accessor} !== null) {`);
1546
- doc.indented((d) => {
1547
- const innerOutput = generateCheck(d, ctx, def.innerType, accessor, buildsValue);
1548
- if (outputVar && innerOutput !== null) d.write(`${outputVar} = ${innerOutput};`);
1549
- });
1550
- doc.write(`}`);
1551
- return outputVar;
1552
- }
1553
-
1554
- function generateSizeGate(doc: Doc, schema: SomeType, size: string): void {
1555
- for (const [max, check] of util.sizeCaps(schema._zod.def.checks)) {
1556
- doc.write(`if (${size} > ${numericOperand(max, check._zod.def.check)}) return INVALID;`);
1557
- }
1558
- }
1559
-
1560
- function generateArrayCheck(
1561
- doc: Doc,
1562
- ctx: CompileContext,
1563
- schema: SomeType,
1564
- accessor: string,
1565
- buildsValue = true
1566
- ): string | null {
1567
- const def = schema._zod.def as unknown as { element: SomeType };
1568
- doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
1569
- generateSizeGate(doc, schema, `${accessor}.length`);
1570
-
1571
- // Build a new array with validated/transformed elements.
1572
- const outputVar = buildsValue ? newVar(ctx) : null;
1573
- const iVar = newVar(ctx);
1574
- const elemVar = newVar(ctx);
1575
-
1576
- if (outputVar) doc.write(`const ${outputVar} = new Array(${accessor}.length);`);
1577
- doc.write(`for (let ${iVar} = 0; ${iVar} < ${accessor}.length; ${iVar}++) {`);
1578
- doc.indented((d) => {
1579
- d.write(`const ${elemVar} = ${accessor}[${iVar}];`);
1580
- const elemOutput = compileChild(d, ctx, def.element, elemVar, buildsValue);
1581
- if (outputVar && elemOutput !== null) d.write(`${outputVar}[${iVar}] = ${elemOutput};`);
1582
- });
1583
- doc.write(`}`);
1584
-
1585
- return outputVar;
1586
- }
1587
-
1588
- function generateLiteralCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1589
- const def = schema._zod.def as unknown as { values: unknown[] };
1590
- const values = def.values;
1591
-
1592
- // Anything but a single value goes through Set.has: multi-value so every value participates, empty so nothing does — values[0] would be undefined and compile to an `!== undefined` check that accepts it. Single-value stays inlined for speed.
1593
- if (values.length !== 1) {
1594
- const literalSet = addConstant(ctx, new Set(values));
1595
- doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`);
1596
- return accessor;
1597
- }
1598
-
1599
- const value = values[0];
1600
- // `$ZodLiteral` matches with `values.has`, i.e. SameValueZero, so NaN matches itself. `x !== NaN` is true for every input, which would reject everything — hand it to the same Set form the multi-value path uses.
1601
- if (typeof value === "number" && Number.isNaN(value)) {
1602
- const literalSet = addConstant(ctx, new Set(values));
1603
- doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`);
1604
- return accessor;
1605
- }
1606
- if (typeof value === "string") {
1607
- doc.write(`if (${accessor} !== ${util.esc(value)}) return INVALID;`);
1608
- } else if (typeof value === "number" || typeof value === "boolean") {
1609
- doc.write(`if (${accessor} !== ${value}) return INVALID;`);
1610
- } else if (value === null) {
1611
- doc.write(`if (${accessor} !== null) return INVALID;`);
1612
- } else if (value === undefined) {
1613
- doc.write(`if (${accessor} !== undefined) return INVALID;`);
1614
- } else if (typeof value === "bigint") {
1615
- doc.write(`if (${accessor} !== ${value}n) return INVALID;`);
1616
- } else {
1617
- throw new ZodCompileUnsupportedError(`literal type ${typeof value}`);
1618
- }
1619
- return accessor;
1620
- }
1621
-
1622
- function generateEnumCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1623
- const values = (schema._zod as unknown as { values?: Set<unknown> }).values;
1624
- // z.partialRecord and friends clear `_zod.values`, leaving no set to test membership against. Throw rather than emit INVALID so a union falls back whole instead of counting a false rejection.
1625
- if (!values) {
1626
- throw new ZodCompileUnsupportedError("enum schema without enumerated values");
1627
- }
1628
- const enumSet = addConstant(ctx, values);
1629
- doc.write(`if (!${enumSet}.has(${accessor})) return INVALID;`);
1630
- return accessor;
1631
- }
1632
-
1633
- function generateWrapperCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1634
- const def = schema._zod.def as unknown as { innerType: SomeType };
1635
- return generateCheck(doc, ctx, def.innerType, accessor);
1636
- }
1637
-
1638
- function generateDefaultCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1639
- const def = schema._zod.def as unknown as { innerType: SomeType };
1640
-
1641
- // `defaultValue` is an accessor on schemas built through the classic/mini
1642
- // factories and a plain data property on ones rebuilt programmatically
1643
- // (deepPartial and friends). Read it off the def either way — taking only
1644
- // `descriptor.get` silently dropped the default for the second kind, so
1645
- // `.default(v)` compiled to `undefined` instead of `v`.
1646
- const descriptor = Object.getOwnPropertyDescriptor(schema._zod.def, "defaultValue");
1647
- const defaultGetter = descriptor
1648
- ? () => (schema._zod.def as unknown as { defaultValue: unknown }).defaultValue
1649
- : undefined;
1650
-
1651
- // prefault differs from default: undefined-input is first replaced with the prefault value, then run through the inner schema.
1652
- if (schema._zod.def.type === "prefault") {
1653
- if (!defaultGetter) {
1654
- return generateCheck(doc, ctx, def.innerType, accessor);
1655
- }
1656
- const defaultFn = addConstant(ctx, defaultGetter);
1657
- const inputVar = newVar(ctx);
1658
- doc.write(`let ${inputVar} = ${accessor};`);
1659
- doc.write(`if (${accessor} === undefined) ${inputVar} = ${defaultFn}();`);
1660
- return generateCheck(doc, ctx, def.innerType, inputVar);
1661
- }
1662
-
1663
- const outputVar = newVar(ctx);
1664
-
1665
- // Default allows undefined (replaces with default value), otherwise validates inner type
1666
- if (defaultGetter) {
1667
- const defaultFn = addConstant(ctx, defaultGetter);
1668
- const cloneFn = addConstant(ctx, util.shallowClone);
1669
- doc.write(`let ${outputVar};`);
1670
- doc.write(`if (${accessor} === undefined) {`);
1671
- doc.indented((d) => {
1672
- // Shallow-clone the default so callers can mutate the result without affecting subsequent parses (#5855 — also covers Map/Set).
1673
- d.write(`${outputVar} = ${cloneFn}(${defaultFn}());`);
1674
- });
1675
- doc.write(`} else {`);
1676
- doc.indented((d) => {
1677
- const innerOutput = generateCheck(d, ctx, def.innerType, accessor);
1678
- d.write(`${outputVar} = ${innerOutput} === undefined ? ${cloneFn}(${defaultFn}()) : ${innerOutput};`);
1679
- });
1680
- doc.write(`}`);
1681
- } else {
1682
- doc.write(`let ${outputVar};`);
1683
- doc.write(`if (${accessor} !== undefined) {`);
1684
- doc.indented((d) => {
1685
- const innerOutput = generateCheck(d, ctx, def.innerType, accessor);
1686
- d.write(`${outputVar} = ${innerOutput};`);
1687
- });
1688
- doc.write(`}`);
1689
- }
1690
-
1691
- return outputVar;
1692
- }
1693
-
1694
- function generateNonOptionalCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1695
- const def = schema._zod.def as unknown as { innerType: SomeType };
1696
- // The runtime inspects what the inner produced, not what it was given: a catch can turn a defined input into undefined, a default an absent one into a value.
1697
- const innerOutput = generateCheck(doc, ctx, def.innerType, accessor);
1698
- const outputVar = newVar(ctx);
1699
- doc.write(`const ${outputVar} = ${innerOutput};`);
1700
- doc.write(`if (${outputVar} === undefined) return INVALID;`);
1701
- return outputVar;
1702
- }
1703
-
1704
- function generateTupleCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1705
- const def = schema._zod.def as unknown as { items: SomeType[]; rest: SomeType | null };
1706
- const items = def.items;
1707
- const rest = def.rest;
1708
-
1709
- doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
1710
-
1711
- // Mirror the runtime's getTupleOptStart: find the first index where every subsequent slot accepts `undefined` (i.e. is optional on input). Anything shorter than this is too_small; trailing absent slots are legal.
1712
- const optinStart = getTupleOptStart(items, "optin");
1713
- const optoutStart = getTupleOptStart(items, "optout");
1714
-
1715
- // Length bounds
1716
- if (rest) {
1717
- // With rest: minimum length is the last required input slot
1718
- doc.write(`if (${accessor}.length < ${optinStart}) return INVALID;`);
1719
- } else {
1720
- // No rest: input must be in [optinStart, items.length]
1721
- doc.write(`if (${accessor}.length < ${optinStart} || ${accessor}.length > ${items.length}) return INVALID;`);
1722
- }
1723
-
1724
- // Build the output in assignment order so absent optional-output tail slots can truncate while default/prefault slots still fill missing positions.
1725
- const outputVar = newVar(ctx);
1726
- doc.write(`const ${outputVar} = [];`);
1727
-
1728
- // Validate and collect each fixed item
1729
- for (let i = 0; i < items.length; i++) {
1730
- const itemSchema = items[i]!;
1731
- if (i >= optoutStart) {
1732
- doc.write(`if (${outputVar}.length === ${i}) {`);
1733
- doc.indented((d) => {
1734
- d.write(`if (${i} < ${accessor}.length) {`);
1735
- d.indented((d2) => {
1736
- const elemVar = newVar(ctx);
1737
- d2.write(`const ${elemVar} = ${accessor}[${i}];`);
1738
- const elemOutput = compileChild(d2, ctx, itemSchema, elemVar);
1739
- d2.write(`${outputVar}[${i}] = ${elemOutput};`);
1740
- });
1741
- d.write(`} else {`);
1742
- d.indented((d2) => {
1743
- // Middle rung: absence supplies nothing in its place, so truncate rather than running the item on `undefined` and keeping what it invents. Mirrors the leading gate in `handleTupleResults`.
1744
- if (dropsWhenAbsent(itemSchema)) {
1745
- d2.write(`${outputVar}.length = ${i};`);
1746
- return;
1747
- }
1748
- const elemVar = newVar(ctx);
1749
- const branchVar = newVar(ctx);
1750
- d2.write(`const ${elemVar} = undefined;`);
1751
- d2.write(`const ${branchVar} = (() => {`);
1752
- d2.indented((d3) => {
1753
- const elemOutput = compileChild(d3, ctx, itemSchema, elemVar);
1754
- d3.write(`return ${elemOutput};`);
1755
- });
1756
- d2.write(`})();`);
1757
- d2.write(`if (${branchVar} === INVALID || ${branchVar} === undefined) ${outputVar}.length = ${i};`);
1758
- d2.write(`else ${outputVar}[${i}] = ${branchVar};`);
1759
- });
1760
- d.write(`}`);
1761
- });
1762
- doc.write(`}`);
1763
- } else {
1764
- const elemVar = newVar(ctx);
1765
- doc.write(`const ${elemVar} = ${accessor}[${i}];`);
1766
- const elemOutput = compileChild(doc, ctx, itemSchema, elemVar);
1767
- doc.write(`${outputVar}[${i}] = ${elemOutput};`);
1768
- }
1769
- }
1770
-
1771
- // Validate and collect rest elements if present
1772
- if (rest) {
1773
- const iVar = newVar(ctx);
1774
- const elemVar = newVar(ctx);
1775
- doc.write(`for (let ${iVar} = ${items.length}; ${iVar} < ${accessor}.length; ${iVar}++) {`);
1776
- doc.indented((d) => {
1777
- d.write(`const ${elemVar} = ${accessor}[${iVar}];`);
1778
- const elemOutput = compileChild(d, ctx, rest, elemVar);
1779
- d.write(`${outputVar}[${iVar}] = ${elemOutput};`);
1780
- });
1781
- doc.write(`}`);
1782
- }
1783
-
1784
- return outputVar;
1785
- }
1786
-
1787
- function getTupleOptStart(items: SomeType[], key: "optin" | "optout"): number {
1788
- for (let i = items.length - 1; i >= 0; i--) {
1789
- // Mirrors the runtime: optin is a three-rung ladder so any rung above `undefined` permits an absent slot; optout stays two-valued.
1790
- const omittable = key === "optin" ? items[i]!._zod.optin !== undefined : items[i]!._zod.optout === "optional";
1791
- if (!omittable) return i + 1;
1792
- }
1793
- return 0;
1794
- }
1795
-
1796
- function generateUnionCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1797
- const def = schema._zod.def as unknown as {
1798
- options: SomeType[];
1799
- inclusive?: boolean;
1800
- discriminator?: string;
1801
- unionFallback?: boolean;
1802
- };
1803
- const options = def.options;
1804
-
1805
- if (def.discriminator) {
1806
- return generateDiscriminatedUnionCheck(
1807
- doc,
1808
- ctx,
1809
- def as { options: SomeType[]; discriminator: string; unionFallback?: boolean },
1810
- accessor
1811
- );
1812
- }
1813
-
1814
- // z.xor requires *exactly one* option to match. Match-counting in the fast path is only sound if every branch is exactly as strict as the runtime — any falsely-rejecting branch silently turns a multi-match rejection into an accept. Force the runtime for this rare combinator.
1815
- if (def.inclusive === false) {
1816
- throw new ZodCompileUnsupportedError("exclusive unions (z.xor)");
1817
- }
1818
-
1819
- if (options.length === 0) {
1820
- doc.write("return INVALID;");
1821
- return accessor;
1822
- }
1823
-
1824
- if (options.length === 1) {
1825
- return generateCheck(doc, ctx, options[0]!, accessor);
1826
- }
1827
-
1828
- // Check if all options are bare literals - use Set optimization. A literal option carrying checks (e.g. .refine) must take the general path or the Set would accept values its checks reject.
1829
- const allLiterals = options.every(
1830
- (opt) => opt._zod.def.type === "literal" && !(opt._zod.def.checks as unknown[] | undefined)?.length
1831
- );
1832
- if (allLiterals) {
1833
- const values = new Set(options.flatMap((opt) => (opt._zod.def as unknown as { values: unknown[] }).values));
1834
- const valuesConst = addConstant(ctx, values);
1835
- doc.write(`if (!${valuesConst}.has(${accessor})) return INVALID;`);
1836
- return accessor;
1837
- }
1838
-
1839
- // General case: try each option until one succeeds Use IIFEs that return the output or INVALID
1840
- const outputVar = newVar(ctx);
1841
- doc.write(`let ${outputVar};`);
1842
-
1843
- for (let i = 0; i < options.length; i++) {
1844
- const opt = options[i]!;
1845
-
1846
- if (i === 0) {
1847
- doc.write(`${outputVar} = (() => {`);
1848
- } else {
1849
- doc.write(`if (${outputVar} === INVALID) ${outputVar} = (() => {`);
1850
- }
1851
-
1852
- doc.indented((d) => {
1853
- // Generate check inside IIFE - returns INVALID on failure
1854
- const branchOutput = generateCheck(d, ctx, opt, accessor);
1855
- d.write(`return ${branchOutput};`);
1856
- });
1857
- doc.write(`})();`);
1858
- }
1859
-
1860
- doc.write(`if (${outputVar} === INVALID) return INVALID;`);
1861
- return outputVar;
1862
- }
1863
-
1864
- function generateDiscriminatedUnionCheck(
1865
- doc: Doc,
1866
- ctx: CompileContext,
1867
- def: { options: SomeType[]; discriminator: string; unionFallback?: boolean },
1868
- accessor: string
1869
- ): string {
1870
- if (def.unionFallback) {
1871
- throw new ZodCompileUnsupportedError("discriminated union with unionFallback");
1872
- }
1873
-
1874
- if (def.options.length === 0) {
1875
- doc.write("return INVALID;");
1876
- return accessor;
1877
- }
1878
-
1879
- const discVar = newVar(ctx);
1880
- const outputVar = newVar(ctx);
1881
- doc.write(`const ${discVar} = ${accessor}?.[${util.esc(def.discriminator)}];`);
1882
- doc.write(`let ${outputVar};`);
1883
-
1884
- let firstBranch = true;
1885
- const claimed = new Set<util.Primitive>();
1886
- for (const option of def.options) {
1887
- const values = option._zod.propValues?.[def.discriminator];
1888
- if (!values || values.size === 0) {
1889
- throw new ZodCompileUnsupportedError("discriminated union option without static discriminator values");
1890
- }
1891
-
1892
- // let the interpreter handle collisions instead of compiling first-match dispatch
1893
- for (const value of values) {
1894
- if (claimed.has(value)) {
1895
- throw new ZodCompileUnsupportedError(`duplicate discriminator value ${String(value)}`);
1896
- }
1897
- claimed.add(value);
1898
- }
1899
-
1900
- const conditions = Array.from(values, (value) => literalEquality(ctx, discVar, value));
1901
- const prefix = firstBranch ? "if" : "else if";
1902
- doc.write(`${prefix} (${conditions.join(" || ")}) {`);
1903
- doc.indented((d) => {
1904
- const branchOutput = generateCheck(d, ctx, option, accessor);
1905
- d.write(`${outputVar} = ${branchOutput};`);
1906
- });
1907
- doc.write(`}`);
1908
- firstBranch = false;
1909
- }
1910
-
1911
- doc.write(`else { return INVALID; }`);
1912
- return outputVar;
1913
- }
1914
-
1915
- function literalEquality(ctx: CompileContext, accessor: string, value: unknown): string {
1916
- if (typeof value === "string") return `${accessor} === ${util.esc(value)}`;
1917
- if (typeof value === "number") {
1918
- if (Number.isNaN(value)) return `Number.isNaN(${accessor})`;
1919
- return `${accessor} === ${value}`;
1920
- }
1921
- if (typeof value === "boolean") return `${accessor} === ${value}`;
1922
- if (value === null) return `${accessor} === null`;
1923
- if (value === undefined) return `${accessor} === undefined`;
1924
- if (typeof value === "bigint") return `${accessor} === ${value}n`;
1925
- if (typeof value === "symbol") {
1926
- const symbolConst = addConstant(ctx, value);
1927
- return `${accessor} === ${symbolConst}`;
1928
- }
1929
- throw new ZodCompileUnsupportedError(`literal discriminator value ${String(value)}`);
1930
- }
1931
-
1932
- function generateIntersectionCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1933
- const def = schema._zod.def as unknown as { left: SomeType; right: SomeType };
1934
- // An unmergeable merge, and a child failing before the merge is even reached, both return INVALID for a case the interpreter answers with a throw.
1935
- ctx.definite = false;
1936
- const leftOutput = compileChild(doc, ctx, def.left, accessor);
1937
- const rightOutput = compileChild(doc, ctx, def.right, accessor);
1938
-
1939
- // Hoist the runtime merge helper so recursive object/array merge semantics stay in one place. If the merge is invalid, return INVALID and let the runtime fallback construct canonical errors.
1940
- const mergeConst = addConstant(ctx, mergeValues);
1941
- const mergedVar = newVar(ctx);
1942
- doc.write(`const ${mergedVar} = ${mergeConst}(${leftOutput}, ${rightOutput});`);
1943
- doc.write(`if (!${mergedVar}.valid) return INVALID;`);
1944
- return `${mergedVar}.data`;
1945
- }
1946
-
1947
- function generateRecordCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
1948
- const def = schema._zod.def as unknown as { keyType: SomeType; valueType: SomeType };
1949
-
1950
- // Use util.isPlainObject (rejects Date, Map, Set, class instances, etc.) to match runtime behavior. Hoisted call instead of inline so this stays a single source of truth with the runtime parser.
1951
- const isPlainObjectConst = addConstant(ctx, util.isPlainObject);
1952
- doc.write(`if (!${isPlainObjectConst}(${accessor})) return INVALID;`);
1953
-
1954
- const outputVar = newVar(ctx);
1955
- const kVar = newVar(ctx);
1956
- const valVar = newVar(ctx);
1957
-
1958
- doc.write(`const ${outputVar} = {};`);
1959
-
1960
- // Exhaustive record. The runtime gates this on `values && !def.partial`, since z.partialRecord keeps its value set but makes every key optional; a loose record passes unrecognized keys through, which the per-key scan cannot express.
1961
- const recordDef = def as unknown as { mode?: string; partial?: boolean };
1962
- const keyValues = recordDef.partial ? undefined : (def.keyType._zod as unknown as { values?: Set<unknown> }).values;
1963
- if (keyValues) {
1964
- const inputKeys: Array<string | symbol> = [];
1965
- for (const key of keyValues) {
1966
- if (!(typeof key === "string" || typeof key === "number" || typeof key === "symbol")) {
1967
- throw new ZodCompileUnsupportedError(`record key value ${String(key)}`);
1968
- }
1969
-
1970
- const inputKey = typeof key === "number" ? key.toString() : key;
1971
- if (inputKey === "__proto__") {
1972
- // `out["__proto__"] = v` would hit the prototype setter on the output.
1973
- throw new ZodCompileUnsupportedError('record key "__proto__"');
1974
- }
1975
- inputKeys.push(inputKey);
1976
-
1977
- const keyConst = addConstant(ctx, key);
1978
- const outKey = generateCheck(doc, ctx, def.keyType, keyConst);
1979
- // Read the property once. Passing the raw expression let compileChild validate one read while the output write performed a second, so a getter could hand back a value nothing had checked.
1980
- const valueVar = newVar(ctx);
1981
- doc.write(`const ${valueVar} = ${accessor}[${literalPropertyKey(ctx, inputKey)}];`);
1982
- const valOutput = compileChild(doc, ctx, def.valueType, valueVar);
1983
- doc.write(`${outputVar}[${outKey}] = ${valOutput};`);
1984
- }
1985
-
1986
- // `mode: "loose"` changes only what happens to unrecognized keys, so it belongs here rather than the per-present-key scan. Passing them through matches the runtime, which skips `__proto__`.
1987
- const knownKeysConst = addConstant(ctx, new Set(inputKeys));
1988
- doc.write(`for (const ${kVar} in ${accessor}) {`);
1989
- doc.indented((d) => {
1990
- d.write(`if (${knownKeysConst}.has(${kVar})) continue;`);
1991
- if (recordDef.mode === "loose") {
1992
- d.write(`if (${kVar} !== "__proto__") ${outputVar}[${kVar}] = ${accessor}[${kVar}];`);
1993
- } else {
1994
- d.write(`return INVALID;`);
1995
- }
1996
- });
1997
- doc.write(`}`);
1998
- return outputVar;
1999
- }
2000
-
2001
- // The bare-string shortcut below only tests `typeof key === "string"`, so it
2002
- // is correct exclusively for a `z.string()` carrying nothing else. A string
2003
- // *format* lives on the def rather than in `checks` — `z.record(z.email(), …)`
2004
- // reads as a plain string here — and coercion rewrites the key, so both have
2005
- // to take the general path or the shortcut accepts keys the runtime rejects.
2006
- const keyDef = def.keyType._zod.def as { type: string; format?: string; coerce?: boolean; checks?: unknown[] };
2007
- const keyIsBareString =
2008
- keyDef.type === "string" && keyDef.format === undefined && !keyDef.coerce && (keyDef.checks?.length ?? 0) === 0;
2009
- if (!keyIsBareString) {
2010
- // A key schema with no value set is a constraint every key must satisfy
2011
- // (`z.email()`, `z.string().min(3)`, `z.number()`, a template literal).
2012
- // The runtime runs it against each own enumerable key and writes the value
2013
- // under the key it produced, so compile it once and call it per key.
2014
- const isLoose = (def as { mode?: string }).mode === "loose";
2015
- // the key compiles in its own context, so carry its verdict out: a key schema that can answer INVALID undecidably makes this validator undecidable too
2016
- const keyFn = compileFn(def.keyType);
2017
- if (keyFn.definite === false) ctx.definite = false;
2018
- const keyFast = addConstant(ctx, keyFn);
2019
- const numericConst = addConstant(ctx, regexes.number);
2020
- const outKeyVar = newVar(ctx);
2021
-
2022
- // the body runs once per string key and once per symbol key, since a key schema can accept symbols
2023
- emitOwnKeys(doc, ctx, accessor, kVar, (d) => {
2024
- d.write(`let ${outKeyVar} = ${keyFast}(${kVar});`);
2025
- // Numeric-string retry, mirroring the runtime: a key the schema rejects as a string is tried again as a number, so z.record(z.number(), …) matches the numeric keys JavaScript stringified on the way in.
2026
- d.write(
2027
- `if (${outKeyVar} === INVALID && typeof ${kVar} === "string" && ${numericConst}.test(${kVar})) ${outKeyVar} = ${keyFast}(Number(${kVar}));`
2028
- );
2029
- if (isLoose) {
2030
- // A loose record keeps a key its schema rejects, copying the value across unvalidated rather than failing the parse.
2031
- d.write(`if (${outKeyVar} === INVALID) { ${outputVar}[${kVar}] = ${accessor}[${kVar}]; continue; }`);
2032
- } else {
2033
- d.write(`if (${outKeyVar} === INVALID) return INVALID;`);
2034
- }
2035
- // The guard above tested the input key, but the schema can normalize an ordinary key into __proto__; re-check the one actually written under.
2036
- d.write(`if (${outKeyVar} === "__proto__") continue;`);
2037
- // Read once: the raw expression would be evaluated again by the output write below, so an accessor could return an unvalidated second value.
2038
- const valueVar = newVar(ctx);
2039
- d.write(`const ${valueVar} = ${accessor}[${kVar}];`);
2040
- const valOutput = compileChild(d, ctx, def.valueType, valueVar);
2041
- d.write(`${outputVar}[${outKeyVar}] = ${valOutput};`);
2042
- });
2043
- return outputVar;
2044
- }
2045
-
2046
- // Plain z.string() keys: every own enumerable string key's value is validated, and an own enumerable symbol key fails the string key schema, as it does in the runtime's Reflect.ownKeys walk.
2047
- emitOwnKeys(
2048
- doc,
2049
- ctx,
2050
- accessor,
2051
- kVar,
2052
- (d) => {
2053
- d.write(`const ${valVar} = ${accessor}[${kVar}];`);
2054
- const valOutput = compileChild(d, ctx, def.valueType, valVar);
2055
- d.write(`${outputVar}[${kVar}] = ${valOutput};`);
2056
- },
2057
- `return INVALID;`
2058
- );
2059
-
2060
- return outputVar;
2061
- }
2062
-
2063
- // Walks the own enumerable keys of a plain object in Reflect.ownKeys order — strings from getOwnPropertyNames, then symbols — instead of Reflect.ownKeys, whose accumulator made that walk 3–6x the cost of the loop it fed. Both snapshots are taken before any value is read and every key is rechecked with propertyIsEnumerable when visited, exactly the runtime's walk, so a getter that adds, deletes, hides or reveals a key mid-walk sees the runtime's verdict; for-in and Object.keys were no faster and each lost a case (for-in enumerates the prototype chain after the own keys, Object.keys drops a key that is non-enumerable at snapshot time). `body` is written once for the string loop and once for the symbol loop unless `onSymbol` replaces the latter.
2064
- function emitOwnKeys(
2065
- doc: Doc,
2066
- ctx: CompileContext,
2067
- accessor: string,
2068
- kVar: string,
2069
- body: (d: Doc) => void,
2070
- onSymbol?: string
2071
- ): void {
2072
- const propIsEnumerableConst = addConstant(ctx, Object.prototype.propertyIsEnumerable);
2073
- const symsVar = newVar(ctx);
2074
- const keysVar = newVar(ctx);
2075
- const iVar = newVar(ctx);
2076
- doc.write(`const ${symsVar} = Object.getOwnPropertySymbols(${accessor});`);
2077
- doc.write(`const ${keysVar} = Object.getOwnPropertyNames(${accessor});`);
2078
- doc.write(`for (let ${iVar} = 0; ${iVar} < ${keysVar}.length; ${iVar}++) {`);
2079
- doc.indented((d) => {
2080
- d.write(`const ${kVar} = ${keysVar}[${iVar}];`);
2081
- d.write(`if (${kVar} === "__proto__" || !${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);
2082
- body(d);
2083
- });
2084
- doc.write(`}`);
2085
- doc.write(`for (let ${iVar} = 0; ${iVar} < ${symsVar}.length; ${iVar}++) {`);
2086
- doc.indented((d) => {
2087
- d.write(`const ${kVar} = ${symsVar}[${iVar}];`);
2088
- d.write(`if (!${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);
2089
- if (onSymbol) d.write(onSymbol);
2090
- else body(d);
2091
- });
2092
- doc.write(`}`);
2093
- }
2094
-
2095
- function literalPropertyKey(ctx: CompileContext, key: string | symbol): string {
2096
- if (typeof key === "string") return util.esc(key);
2097
- return addConstant(ctx, key);
2098
- }
2099
-
2100
- function generateMapCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2101
- const def = schema._zod.def as unknown as { keyType: SomeType; valueType: SomeType };
2102
-
2103
- doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
2104
- generateSizeGate(doc, schema, `${accessor}.size`);
2105
-
2106
- const outputVar = newVar(ctx);
2107
- const kVar = newVar(ctx);
2108
- const valVar = newVar(ctx);
2109
-
2110
- doc.write(`const ${outputVar} = new Map();`);
2111
- doc.write(`for (const [${kVar}, ${valVar}] of ${accessor}) {`);
2112
- doc.indented((d) => {
2113
- const keyOutput = generateCheck(d, ctx, def.keyType, kVar);
2114
- const valOutput = generateCheck(d, ctx, def.valueType, valVar);
2115
- d.write(`${outputVar}.set(${keyOutput}, ${valOutput});`);
2116
- });
2117
- doc.write(`}`);
2118
-
2119
- return outputVar;
2120
- }
2121
-
2122
- function generateSetCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2123
- const def = schema._zod.def as unknown as { valueType: SomeType };
2124
-
2125
- doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
2126
- generateSizeGate(doc, schema, `${accessor}.size`);
2127
-
2128
- const outputVar = newVar(ctx);
2129
- const valVar = newVar(ctx);
2130
-
2131
- doc.write(`const ${outputVar} = new Set();`);
2132
- doc.write(`for (const ${valVar} of ${accessor}) {`);
2133
- doc.indented((d) => {
2134
- const valOutput = generateCheck(d, ctx, def.valueType, valVar);
2135
- d.write(`${outputVar}.add(${valOutput});`);
2136
- });
2137
- doc.write(`}`);
2138
-
2139
- return outputVar;
2140
- }
2141
-
2142
- function generateFileCheck(doc: Doc, accessor: string): string {
2143
- // Runtime $ZodFile is a bare `instanceof File`, including the implicit global lookup. The previous duck-typed fallback accepted arbitrary {name, size} objects in File-less environments — behavior the runtime never had.
2144
- doc.write(`if (!(${accessor} instanceof File)) return INVALID;`);
2145
- return accessor;
2146
- }
2147
-
2148
- function generateTemplateLiteralCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2149
- doc.write(`if (typeof ${accessor} !== "string") return INVALID;`);
2150
-
2151
- // Template literal schemas have a pre-computed pattern in _zod.pattern
2152
- const pattern = (schema._zod as unknown as { pattern: RegExp }).pattern;
2153
- if (pattern) {
2154
- const patternConst = addConstant(ctx, pattern);
2155
- doc.write(`${patternConst}.lastIndex = 0;`);
2156
- doc.write(`if (!${patternConst}.test(${accessor})) return INVALID;`);
2157
- }
2158
- return accessor;
2159
- }
2160
-
2161
- function generateLazyCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2162
- // For lazy schemas, we use a cached parser that falls back to runtime Zod parsing This handles recursive schemas correctly by avoiding infinite compilation loops
2163
- const def = schema._zod.def as unknown as { getter: () => SomeType };
2164
- const getterConst = addUserConstant(ctx, def.getter);
2165
- const cacheConst = addConstant(ctx, { parser: null as ((input: unknown) => unknown) | null });
2166
-
2167
- doc.write(`if (!${cacheConst}.parser) {`);
2168
- doc.indented((d) => {
2169
- d.write(`const inner = ${getterConst}();`);
2170
- d.write(`${cacheConst}.parser = function(input) {`);
2171
- d.indented((d2) => {
2172
- // Use runtime Zod parsing - this correctly handles recursive schemas Pass an empty ctx like runtimeRun does — runtime parsers read ctx.skipChecks/ctx.direction unconditionally and crash on undefined.
2173
- d2.write(`const result = inner._zod.run({ value: input, issues: [] }, {});`);
2174
- d2.write(`return result.issues.length === 0 ? result.value : INVALID;`);
2175
- });
2176
- d.write(`};`);
2177
- });
2178
- doc.write(`}`);
2179
-
2180
- const outputVar = newVar(ctx);
2181
- doc.write(`const ${outputVar} = ${cacheConst}.parser(${accessor});`);
2182
- doc.write(`if (${outputVar} === INVALID) return INVALID;`);
2183
- return outputVar;
2184
- }
2185
-
2186
- function generatePipeCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2187
- const def = schema._zod.def as unknown as {
2188
- in: SomeType;
2189
- out: SomeType;
2190
- transform?: (value: unknown, payload: unknown) => unknown;
2191
- };
2192
-
2193
- // Validate input type first
2194
- const inputOutput = generateCheck(doc, ctx, def.in, accessor);
2195
-
2196
- if (def.transform) {
2197
- // Apply transform and validate output. The transform may read its second `payload` argument (codec transforms like z.stringbool() push issues there) so wrap the call in a helper that spoofs a payload. Pushed issues signal INVALID and the wrapper falls back to the runtime, and a plain function handing back a promise answers INVALID too — union parity, but not a decidable rejection at the top level.
2198
- if (isAsyncFunction(def.transform)) {
2199
- throw new ZodCompileAsyncError("z.compile: async transforms in pipes are not supported");
2200
- }
2201
- const transformFn = def.transform;
2202
- const helperFn = (value: unknown): unknown => {
2203
- // `addIssue` has to be here: a transform reporting through it is reporting, not failing. Without it the call threw a TypeError that the old catch swallowed into a fallback, so every ctx.addIssue transform quietly lost its fast path and the real error was never visible.
2204
- const fakePayload = { value, issues: [] as unknown[], addIssue: pushIssue };
2205
- // A throw is deliberately not caught. The interpreter lets one propagate out of the whole parse; swallowing it into INVALID turned a thrown error into a merely-rejected union branch, so a later branch answered instead.
2206
- const result = transformFn(value, fakePayload as any);
2207
- if (result instanceof Promise) return INVALID;
2208
- return fakePayload.issues.length === 0 ? result : INVALID;
2209
- };
2210
- const helperConst = addUserConstant(ctx, helperFn);
2211
- const transformedVar = newVar(ctx);
2212
- doc.write(`const ${transformedVar} = ${helperConst}(${inputOutput});`);
2213
- doc.write(`if (${transformedVar} === INVALID) return INVALID;`);
2214
- return generateCheck(doc, ctx, def.out, transformedVar);
2215
- } else {
2216
- // No transform - validate output type on same value
2217
- return generateCheck(doc, ctx, def.out, inputOutput);
2218
- }
2219
- }
2220
-
2221
- function isAsyncFunction(fn: unknown): boolean {
2222
- return (
2223
- typeof fn === "function" &&
2224
- (fn.constructor.name === "AsyncFunction" ||
2225
- (fn as { [Symbol.toStringTag]?: string })[Symbol.toStringTag] === "AsyncFunction")
2226
- );
2227
- }
2228
-
2229
- function generateCustomCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2230
- const def = schema._zod.def as unknown as { fn?: (value: unknown) => boolean };
2231
-
2232
- if (def.fn) {
2233
- // Check for async function
2234
- if (isAsyncFunction(def.fn)) {
2235
- throw new ZodCompileAsyncError("z.compile: async custom predicates are not supported");
2236
- }
2237
- // Custom schema with a predicate function (e.g. z.instanceof). `isAsyncFunction` above is syntactic, so a plain function returning a promise reaches here, and a promise is truthy — it would read as a pass where the interpreter throws.
2238
- const fnConst = addUserConstant(ctx, def.fn);
2239
- const throwAsyncConst = addConstant(ctx, throwAsync);
2240
- const resVar = newVar(ctx);
2241
- doc.write(`const ${resVar} = ${fnConst}(${accessor});`);
2242
- doc.write(`if (${resVar} instanceof Promise) ${throwAsyncConst}();`);
2243
- doc.write(`if (!${resVar}) return INVALID;`);
2244
- } else {
2245
- throw new ZodCompileUnsupportedError("custom schema without a predicate function");
2246
- }
2247
- return accessor;
2248
- }
2249
-
2250
- // Runtime helper for a compiled `catch`: runs the inner schema once and returns its value when it succeeded. Anything else — a failure the catch would handle, or an async inner — returns INVALID so the interpreter takes over.
2251
- function runtimeCatch(innerSchema: SomeType, catchValue: () => unknown, value: unknown): unknown {
2252
- const result = (innerSchema._zod.run as (p: ParsePayload, c: ParseContextInternal) => any)(
2253
- { value, issues: [] },
2254
- {} as ParseContextInternal
2255
- );
2256
- if (result && typeof (result as Promise<unknown>).then === "function") return INVALID;
2257
- const r = result as { value: unknown; issues: any[] };
2258
- if (r.issues.length === 0) return r.value;
2259
- // Only reached for a catch value that ignores the parse context — codegen refuses the rest — so there are no issues to finalize and nothing here needs the caller's error map.
2260
- return catchValue();
2261
- }
2262
-
2263
- function generateCatchCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2264
- const def = schema._zod.def as unknown as {
2265
- innerType: SomeType;
2266
- catchValue: (ctx: any) => unknown;
2267
- };
2268
-
2269
- // An untagged catchValue is a user callback, and one reading `ctx.error` needs the caller's per-parse error map. Catch *succeeds*, so a wrong message there is unobservable — refuse at codegen, and not islandable either, since `runtimeRun` has no context to hand it.
2270
- if (!(def.catchValue as { [util.CONSTANT_CATCH]?: boolean })[util.CONSTANT_CATCH]) {
2271
- throw new ZodCompileUnsupportedError("catch with a callback (only a constant catch value compiles)", false);
2272
- }
2273
-
2274
- const outputVar = newVar(ctx);
2275
- doc.write(`let ${outputVar} = (() => {`);
2276
- doc.indented((d) => {
2277
- const innerOut = compileChild(d, ctx, def.innerType, accessor);
2278
- d.write(`return ${innerOut};`);
2279
- });
2280
- doc.write(`})();`);
2281
-
2282
- const innerConst = addConstant(ctx, def.innerType);
2283
- const catchConst = addUserConstant(ctx, def.catchValue);
2284
- const catchHelperConst = addConstant(ctx, runtimeCatch);
2285
- doc.write(`if (${outputVar} === INVALID) {`);
2286
- doc.indented((d) => {
2287
- d.write(`${outputVar} = ${catchHelperConst}(${innerConst}, ${catchConst}, ${accessor});`);
2288
- d.write(`if (${outputVar} === INVALID) return INVALID;`);
2289
- });
2290
- doc.write(`}`);
2291
- return outputVar;
2292
- }
2293
-
2294
- function generateTransformCheck(doc: Doc, ctx: CompileContext, schema: SomeType, accessor: string): string {
2295
- const def = schema._zod.def as unknown as {
2296
- transform: (value: unknown, payload: unknown) => unknown;
2297
- };
2298
-
2299
- if (def.transform) {
2300
- // Check for async transform
2301
- if (isAsyncFunction(def.transform)) {
2302
- throw new ZodCompileAsyncError("z.compile: async transforms are not supported");
2303
- }
2304
-
2305
- // Create a helper that runs the transform and returns the result or INVALID on error
2306
- const transformFn = def.transform;
2307
- const helperFn = (value: unknown): unknown => {
2308
- const fakePayload = { value, issues: [] as unknown[], addIssue: pushIssue };
2309
- // As in the pipe helper: a throw propagates, because the interpreter lets it out of the whole parse rather than treating it as a failed branch.
2310
- const result = transformFn(value, fakePayload);
2311
- if (result instanceof Promise) return INVALID;
2312
- return fakePayload.issues.length === 0 ? result : INVALID;
2313
- };
2314
- const helperConst = addUserConstant(ctx, helperFn);
2315
- const outputVar = newVar(ctx);
2316
- doc.write(`const ${outputVar} = ${helperConst}(${accessor});`);
2317
- doc.write(`if (${outputVar} === INVALID) return INVALID;`);
2318
- return outputVar;
2319
- }
2320
-
2321
- return accessor;
2322
- }