@tickernelz/paperclip-pro-adapter-utils 2026.925.0

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 (1826) hide show
  1. package/README.md +37 -0
  2. package/dist/acpx-engine/cli.d.ts +2 -0
  3. package/dist/acpx-engine/cli.d.ts.map +1 -0
  4. package/dist/acpx-engine/cli.js +128 -0
  5. package/dist/acpx-engine/cli.js.map +1 -0
  6. package/dist/acpx-engine/composed-run-characterization.test.d.ts +2 -0
  7. package/dist/acpx-engine/composed-run-characterization.test.d.ts.map +1 -0
  8. package/dist/acpx-engine/composed-run-characterization.test.js +739 -0
  9. package/dist/acpx-engine/composed-run-characterization.test.js.map +1 -0
  10. package/dist/acpx-engine/constants.d.ts +20 -0
  11. package/dist/acpx-engine/constants.d.ts.map +1 -0
  12. package/dist/acpx-engine/constants.js +37 -0
  13. package/dist/acpx-engine/constants.js.map +1 -0
  14. package/dist/acpx-engine/execute-identity.test.d.ts +2 -0
  15. package/dist/acpx-engine/execute-identity.test.d.ts.map +1 -0
  16. package/dist/acpx-engine/execute-identity.test.js +218 -0
  17. package/dist/acpx-engine/execute-identity.test.js.map +1 -0
  18. package/dist/acpx-engine/execute.d.ts +325 -0
  19. package/dist/acpx-engine/execute.d.ts.map +1 -0
  20. package/dist/acpx-engine/execute.js +4448 -0
  21. package/dist/acpx-engine/execute.js.map +1 -0
  22. package/dist/acpx-engine/execute.test.d.ts +2 -0
  23. package/dist/acpx-engine/execute.test.d.ts.map +1 -0
  24. package/dist/acpx-engine/execute.test.js +6694 -0
  25. package/dist/acpx-engine/execute.test.js.map +1 -0
  26. package/dist/acpx-engine/index.d.ts +6 -0
  27. package/dist/acpx-engine/index.d.ts.map +1 -0
  28. package/dist/acpx-engine/index.js +6 -0
  29. package/dist/acpx-engine/index.js.map +1 -0
  30. package/dist/acpx-engine/local-process-control.d.ts +5 -0
  31. package/dist/acpx-engine/local-process-control.d.ts.map +1 -0
  32. package/dist/acpx-engine/local-process-control.js +39 -0
  33. package/dist/acpx-engine/local-process-control.js.map +1 -0
  34. package/dist/acpx-engine/local-process-control.test.d.ts +2 -0
  35. package/dist/acpx-engine/local-process-control.test.d.ts.map +1 -0
  36. package/dist/acpx-engine/local-process-control.test.js +38 -0
  37. package/dist/acpx-engine/local-process-control.test.js.map +1 -0
  38. package/dist/acpx-engine/operator-stop.test.d.ts +2 -0
  39. package/dist/acpx-engine/operator-stop.test.d.ts.map +1 -0
  40. package/dist/acpx-engine/operator-stop.test.js +107 -0
  41. package/dist/acpx-engine/operator-stop.test.js.map +1 -0
  42. package/dist/acpx-engine/remote-spawn-smoke.test.d.ts +2 -0
  43. package/dist/acpx-engine/remote-spawn-smoke.test.d.ts.map +1 -0
  44. package/dist/acpx-engine/remote-spawn-smoke.test.js +151 -0
  45. package/dist/acpx-engine/remote-spawn-smoke.test.js.map +1 -0
  46. package/dist/acpx-engine/run-contracts.d.ts +413 -0
  47. package/dist/acpx-engine/run-contracts.d.ts.map +1 -0
  48. package/dist/acpx-engine/run-contracts.js +20 -0
  49. package/dist/acpx-engine/run-contracts.js.map +1 -0
  50. package/dist/acpx-engine/run-contracts.test.d.ts +2 -0
  51. package/dist/acpx-engine/run-contracts.test.d.ts.map +1 -0
  52. package/dist/acpx-engine/run-contracts.test.js +57 -0
  53. package/dist/acpx-engine/run-contracts.test.js.map +1 -0
  54. package/dist/acpx-engine/run-coordinator.d.ts +57 -0
  55. package/dist/acpx-engine/run-coordinator.d.ts.map +1 -0
  56. package/dist/acpx-engine/run-coordinator.js +63 -0
  57. package/dist/acpx-engine/run-coordinator.js.map +1 -0
  58. package/dist/acpx-engine/run-coordinator.test.d.ts +2 -0
  59. package/dist/acpx-engine/run-coordinator.test.d.ts.map +1 -0
  60. package/dist/acpx-engine/run-coordinator.test.js +160 -0
  61. package/dist/acpx-engine/run-coordinator.test.js.map +1 -0
  62. package/dist/acpx-engine/run-fault-matrix.test.d.ts +2 -0
  63. package/dist/acpx-engine/run-fault-matrix.test.d.ts.map +1 -0
  64. package/dist/acpx-engine/run-fault-matrix.test.js +829 -0
  65. package/dist/acpx-engine/run-fault-matrix.test.js.map +1 -0
  66. package/dist/acpx-engine/run-resource-ledger.d.ts +30 -0
  67. package/dist/acpx-engine/run-resource-ledger.d.ts.map +1 -0
  68. package/dist/acpx-engine/run-resource-ledger.js +148 -0
  69. package/dist/acpx-engine/run-resource-ledger.js.map +1 -0
  70. package/dist/acpx-engine/run-resource-ledger.test.d.ts +2 -0
  71. package/dist/acpx-engine/run-resource-ledger.test.d.ts.map +1 -0
  72. package/dist/acpx-engine/run-resource-ledger.test.js +154 -0
  73. package/dist/acpx-engine/run-resource-ledger.test.js.map +1 -0
  74. package/dist/acpx-engine/run-site-host.d.ts +73 -0
  75. package/dist/acpx-engine/run-site-host.d.ts.map +1 -0
  76. package/dist/acpx-engine/run-site-host.js +65 -0
  77. package/dist/acpx-engine/run-site-host.js.map +1 -0
  78. package/dist/acpx-engine/run-site-host.test.d.ts +2 -0
  79. package/dist/acpx-engine/run-site-host.test.d.ts.map +1 -0
  80. package/dist/acpx-engine/run-site-host.test.js +98 -0
  81. package/dist/acpx-engine/run-site-host.test.js.map +1 -0
  82. package/dist/acpx-engine/run-site-sandbox.d.ts +142 -0
  83. package/dist/acpx-engine/run-site-sandbox.d.ts.map +1 -0
  84. package/dist/acpx-engine/run-site-sandbox.js +278 -0
  85. package/dist/acpx-engine/run-site-sandbox.js.map +1 -0
  86. package/dist/acpx-engine/run-site-sandbox.test.d.ts +2 -0
  87. package/dist/acpx-engine/run-site-sandbox.test.d.ts.map +1 -0
  88. package/dist/acpx-engine/run-site-sandbox.test.js +275 -0
  89. package/dist/acpx-engine/run-site-sandbox.test.js.map +1 -0
  90. package/dist/acpx-engine/session-codec.d.ts +3 -0
  91. package/dist/acpx-engine/session-codec.d.ts.map +1 -0
  92. package/dist/acpx-engine/session-codec.js +49 -0
  93. package/dist/acpx-engine/session-codec.js.map +1 -0
  94. package/dist/acpx-engine/session-reuse-store.d.ts +62 -0
  95. package/dist/acpx-engine/session-reuse-store.d.ts.map +1 -0
  96. package/dist/acpx-engine/session-reuse-store.js +134 -0
  97. package/dist/acpx-engine/session-reuse-store.js.map +1 -0
  98. package/dist/acpx-engine/session-reuse-store.test.d.ts +2 -0
  99. package/dist/acpx-engine/session-reuse-store.test.d.ts.map +1 -0
  100. package/dist/acpx-engine/session-reuse-store.test.js +134 -0
  101. package/dist/acpx-engine/session-reuse-store.test.js.map +1 -0
  102. package/dist/acpx-engine/settlement-characterization.test.d.ts +2 -0
  103. package/dist/acpx-engine/settlement-characterization.test.d.ts.map +1 -0
  104. package/dist/acpx-engine/settlement-characterization.test.js +880 -0
  105. package/dist/acpx-engine/settlement-characterization.test.js.map +1 -0
  106. package/dist/acpx-engine/settlement-sequence.d.ts +77 -0
  107. package/dist/acpx-engine/settlement-sequence.d.ts.map +1 -0
  108. package/dist/acpx-engine/settlement-sequence.js +119 -0
  109. package/dist/acpx-engine/settlement-sequence.js.map +1 -0
  110. package/dist/acpx-engine/settlement-sequence.test.d.ts +2 -0
  111. package/dist/acpx-engine/settlement-sequence.test.d.ts.map +1 -0
  112. package/dist/acpx-engine/settlement-sequence.test.js +272 -0
  113. package/dist/acpx-engine/settlement-sequence.test.js.map +1 -0
  114. package/dist/acpx-engine/spawn-smoke.test.d.ts +2 -0
  115. package/dist/acpx-engine/spawn-smoke.test.d.ts.map +1 -0
  116. package/dist/acpx-engine/spawn-smoke.test.js +184 -0
  117. package/dist/acpx-engine/spawn-smoke.test.js.map +1 -0
  118. package/dist/acpx-engine/startup-cancellation.d.ts +8 -0
  119. package/dist/acpx-engine/startup-cancellation.d.ts.map +1 -0
  120. package/dist/acpx-engine/startup-cancellation.js +92 -0
  121. package/dist/acpx-engine/startup-cancellation.js.map +1 -0
  122. package/dist/acpx-engine/startup-cancellation.test.d.ts +2 -0
  123. package/dist/acpx-engine/startup-cancellation.test.d.ts.map +1 -0
  124. package/dist/acpx-engine/startup-cancellation.test.js +115 -0
  125. package/dist/acpx-engine/startup-cancellation.test.js.map +1 -0
  126. package/dist/acpx-engine/startup-characterization.test.d.ts +2 -0
  127. package/dist/acpx-engine/startup-characterization.test.d.ts.map +1 -0
  128. package/dist/acpx-engine/startup-characterization.test.js +742 -0
  129. package/dist/acpx-engine/startup-characterization.test.js.map +1 -0
  130. package/dist/acpx-engine/startup-timing.d.ts +419 -0
  131. package/dist/acpx-engine/startup-timing.d.ts.map +1 -0
  132. package/dist/acpx-engine/startup-timing.js +616 -0
  133. package/dist/acpx-engine/startup-timing.js.map +1 -0
  134. package/dist/acpx-engine/startup-timing.test.d.ts +2 -0
  135. package/dist/acpx-engine/startup-timing.test.d.ts.map +1 -0
  136. package/dist/acpx-engine/startup-timing.test.js +619 -0
  137. package/dist/acpx-engine/startup-timing.test.js.map +1 -0
  138. package/dist/acpx-engine/turn-characterization.test.d.ts +2 -0
  139. package/dist/acpx-engine/turn-characterization.test.d.ts.map +1 -0
  140. package/dist/acpx-engine/turn-characterization.test.js +566 -0
  141. package/dist/acpx-engine/turn-characterization.test.js.map +1 -0
  142. package/dist/acpx-engine/turn-sequence.d.ts +54 -0
  143. package/dist/acpx-engine/turn-sequence.d.ts.map +1 -0
  144. package/dist/acpx-engine/turn-sequence.js +75 -0
  145. package/dist/acpx-engine/turn-sequence.js.map +1 -0
  146. package/dist/acpx-engine/turn-sequence.test.d.ts +2 -0
  147. package/dist/acpx-engine/turn-sequence.test.d.ts.map +1 -0
  148. package/dist/acpx-engine/turn-sequence.test.js +177 -0
  149. package/dist/acpx-engine/turn-sequence.test.js.map +1 -0
  150. package/dist/acpx-engine/ui.d.ts +3 -0
  151. package/dist/acpx-engine/ui.d.ts.map +1 -0
  152. package/dist/acpx-engine/ui.js +162 -0
  153. package/dist/acpx-engine/ui.js.map +1 -0
  154. package/dist/billing.d.ts +2 -0
  155. package/dist/billing.d.ts.map +1 -0
  156. package/dist/billing.js +16 -0
  157. package/dist/billing.js.map +1 -0
  158. package/dist/billing.test.d.ts +2 -0
  159. package/dist/billing.test.d.ts.map +1 -0
  160. package/dist/billing.test.js +14 -0
  161. package/dist/billing.test.js.map +1 -0
  162. package/dist/bridge-transport-contract.d.ts +43 -0
  163. package/dist/bridge-transport-contract.d.ts.map +1 -0
  164. package/dist/bridge-transport-contract.js +33 -0
  165. package/dist/bridge-transport-contract.js.map +1 -0
  166. package/dist/chat-file-delivery.d.ts +10 -0
  167. package/dist/chat-file-delivery.d.ts.map +1 -0
  168. package/dist/chat-file-delivery.js +38 -0
  169. package/dist/chat-file-delivery.js.map +1 -0
  170. package/dist/chat-file-delivery.test.d.ts +2 -0
  171. package/dist/chat-file-delivery.test.d.ts.map +1 -0
  172. package/dist/chat-file-delivery.test.js +92 -0
  173. package/dist/chat-file-delivery.test.js.map +1 -0
  174. package/dist/command-managed-runtime.d.ts +162 -0
  175. package/dist/command-managed-runtime.d.ts.map +1 -0
  176. package/dist/command-managed-runtime.js +456 -0
  177. package/dist/command-managed-runtime.js.map +1 -0
  178. package/dist/command-managed-runtime.test.d.ts +2 -0
  179. package/dist/command-managed-runtime.test.d.ts.map +1 -0
  180. package/dist/command-managed-runtime.test.js +908 -0
  181. package/dist/command-managed-runtime.test.js.map +1 -0
  182. package/dist/command-redaction.d.ts +15 -0
  183. package/dist/command-redaction.d.ts.map +1 -0
  184. package/dist/command-redaction.js +97 -0
  185. package/dist/command-redaction.js.map +1 -0
  186. package/dist/command-redaction.test.d.ts +2 -0
  187. package/dist/command-redaction.test.d.ts.map +1 -0
  188. package/dist/command-redaction.test.js +80 -0
  189. package/dist/command-redaction.test.js.map +1 -0
  190. package/dist/duplex-frame-codec.d.ts +124 -0
  191. package/dist/duplex-frame-codec.d.ts.map +1 -0
  192. package/dist/duplex-frame-codec.js +134 -0
  193. package/dist/duplex-frame-codec.js.map +1 -0
  194. package/dist/duplex-frame-codec.test.d.ts +2 -0
  195. package/dist/duplex-frame-codec.test.d.ts.map +1 -0
  196. package/dist/duplex-frame-codec.test.js +172 -0
  197. package/dist/duplex-frame-codec.test.js.map +1 -0
  198. package/dist/duplex-observability.d.ts +220 -0
  199. package/dist/duplex-observability.d.ts.map +1 -0
  200. package/dist/duplex-observability.js +248 -0
  201. package/dist/duplex-observability.js.map +1 -0
  202. package/dist/duplex-observability.test.d.ts +2 -0
  203. package/dist/duplex-observability.test.d.ts.map +1 -0
  204. package/dist/duplex-observability.test.js +55 -0
  205. package/dist/duplex-observability.test.js.map +1 -0
  206. package/dist/env-bindings.d.ts +17 -0
  207. package/dist/env-bindings.d.ts.map +1 -0
  208. package/dist/env-bindings.js +98 -0
  209. package/dist/env-bindings.js.map +1 -0
  210. package/dist/env-bindings.test.d.ts +2 -0
  211. package/dist/env-bindings.test.d.ts.map +1 -0
  212. package/dist/env-bindings.test.js +66 -0
  213. package/dist/env-bindings.test.js.map +1 -0
  214. package/dist/exclude-patterns.d.ts +4 -0
  215. package/dist/exclude-patterns.d.ts.map +1 -0
  216. package/dist/exclude-patterns.js +26 -0
  217. package/dist/exclude-patterns.js.map +1 -0
  218. package/dist/execution-target-sandbox.test.d.ts +2 -0
  219. package/dist/execution-target-sandbox.test.d.ts.map +1 -0
  220. package/dist/execution-target-sandbox.test.js +6522 -0
  221. package/dist/execution-target-sandbox.test.js.map +1 -0
  222. package/dist/execution-target-stdin-race.test.d.ts +2 -0
  223. package/dist/execution-target-stdin-race.test.d.ts.map +1 -0
  224. package/dist/execution-target-stdin-race.test.js +1842 -0
  225. package/dist/execution-target-stdin-race.test.js.map +1 -0
  226. package/dist/execution-target.d.ts +537 -0
  227. package/dist/execution-target.d.ts.map +1 -0
  228. package/dist/execution-target.js +3877 -0
  229. package/dist/execution-target.js.map +1 -0
  230. package/dist/execution-target.test.d.ts +2 -0
  231. package/dist/execution-target.test.d.ts.map +1 -0
  232. package/dist/execution-target.test.js +346 -0
  233. package/dist/execution-target.test.js.map +1 -0
  234. package/dist/git-workspace-sync.d.ts +193 -0
  235. package/dist/git-workspace-sync.d.ts.map +1 -0
  236. package/dist/git-workspace-sync.js +786 -0
  237. package/dist/git-workspace-sync.js.map +1 -0
  238. package/dist/git-workspace-sync.test.d.ts +2 -0
  239. package/dist/git-workspace-sync.test.d.ts.map +1 -0
  240. package/dist/git-workspace-sync.test.js +830 -0
  241. package/dist/git-workspace-sync.test.js.map +1 -0
  242. package/dist/github-launcher-environment.test.d.ts +2 -0
  243. package/dist/github-launcher-environment.test.d.ts.map +1 -0
  244. package/dist/github-launcher-environment.test.js +285 -0
  245. package/dist/github-launcher-environment.test.js.map +1 -0
  246. package/dist/github-launcher.d.ts +8 -0
  247. package/dist/github-launcher.d.ts.map +1 -0
  248. package/dist/github-launcher.js +127 -0
  249. package/dist/github-launcher.js.map +1 -0
  250. package/dist/github-launcher.test.d.ts +2 -0
  251. package/dist/github-launcher.test.d.ts.map +1 -0
  252. package/dist/github-launcher.test.js +166 -0
  253. package/dist/github-launcher.test.js.map +1 -0
  254. package/dist/http2-bridge-server.d.ts +465 -0
  255. package/dist/http2-bridge-server.d.ts.map +1 -0
  256. package/dist/http2-bridge-server.js +1087 -0
  257. package/dist/http2-bridge-server.js.map +1 -0
  258. package/dist/http2-bridge-server.test.d.ts +2 -0
  259. package/dist/http2-bridge-server.test.d.ts.map +1 -0
  260. package/dist/http2-bridge-server.test.js +2129 -0
  261. package/dist/http2-bridge-server.test.js.map +1 -0
  262. package/dist/index.d.ts +20 -0
  263. package/dist/index.d.ts.map +1 -0
  264. package/dist/index.js +12 -0
  265. package/dist/index.js.map +1 -0
  266. package/dist/local-process-sandbox.d.ts +41 -0
  267. package/dist/local-process-sandbox.d.ts.map +1 -0
  268. package/dist/local-process-sandbox.js +432 -0
  269. package/dist/local-process-sandbox.js.map +1 -0
  270. package/dist/local-process-sandbox.test.d.ts +2 -0
  271. package/dist/local-process-sandbox.test.d.ts.map +1 -0
  272. package/dist/local-process-sandbox.test.js +399 -0
  273. package/dist/local-process-sandbox.test.js.map +1 -0
  274. package/dist/log-redaction.d.ts +9 -0
  275. package/dist/log-redaction.d.ts.map +1 -0
  276. package/dist/log-redaction.js +88 -0
  277. package/dist/log-redaction.js.map +1 -0
  278. package/dist/login-capability.d.ts +88 -0
  279. package/dist/login-capability.d.ts.map +1 -0
  280. package/dist/login-capability.js +78 -0
  281. package/dist/login-capability.js.map +1 -0
  282. package/dist/login-capability.test.d.ts +2 -0
  283. package/dist/login-capability.test.d.ts.map +1 -0
  284. package/dist/login-capability.test.js +78 -0
  285. package/dist/login-capability.test.js.map +1 -0
  286. package/dist/login-pty-transport.d.ts +80 -0
  287. package/dist/login-pty-transport.d.ts.map +1 -0
  288. package/dist/login-pty-transport.js +75 -0
  289. package/dist/login-pty-transport.js.map +1 -0
  290. package/dist/login-pty-transport.test.d.ts +2 -0
  291. package/dist/login-pty-transport.test.d.ts.map +1 -0
  292. package/dist/login-pty-transport.test.js +185 -0
  293. package/dist/login-pty-transport.test.js.map +1 -0
  294. package/dist/login-runner-lifecycle.d.ts +70 -0
  295. package/dist/login-runner-lifecycle.d.ts.map +1 -0
  296. package/dist/login-runner-lifecycle.js +52 -0
  297. package/dist/login-runner-lifecycle.js.map +1 -0
  298. package/dist/login-runner-lifecycle.test.d.ts +2 -0
  299. package/dist/login-runner-lifecycle.test.d.ts.map +1 -0
  300. package/dist/login-runner-lifecycle.test.js +122 -0
  301. package/dist/login-runner-lifecycle.test.js.map +1 -0
  302. package/dist/mcp-isolation.integration.test.d.ts +2 -0
  303. package/dist/mcp-isolation.integration.test.d.ts.map +1 -0
  304. package/dist/mcp-isolation.integration.test.js +202 -0
  305. package/dist/mcp-isolation.integration.test.js.map +1 -0
  306. package/dist/paperclip-runner-permissions.d.ts +110 -0
  307. package/dist/paperclip-runner-permissions.d.ts.map +1 -0
  308. package/dist/paperclip-runner-permissions.js +150 -0
  309. package/dist/paperclip-runner-permissions.js.map +1 -0
  310. package/dist/paperclip-runner-permissions.test.d.ts +2 -0
  311. package/dist/paperclip-runner-permissions.test.d.ts.map +1 -0
  312. package/dist/paperclip-runner-permissions.test.js +47 -0
  313. package/dist/paperclip-runner-permissions.test.js.map +1 -0
  314. package/dist/published-exports.test.d.ts +2 -0
  315. package/dist/published-exports.test.d.ts.map +1 -0
  316. package/dist/published-exports.test.js +17 -0
  317. package/dist/published-exports.test.js.map +1 -0
  318. package/dist/remote-execution-env.d.ts +2 -0
  319. package/dist/remote-execution-env.d.ts.map +1 -0
  320. package/dist/remote-execution-env.js +46 -0
  321. package/dist/remote-execution-env.js.map +1 -0
  322. package/dist/remote-managed-runtime.d.ts +45 -0
  323. package/dist/remote-managed-runtime.d.ts.map +1 -0
  324. package/dist/remote-managed-runtime.js +183 -0
  325. package/dist/remote-managed-runtime.js.map +1 -0
  326. package/dist/remote-managed-runtime.test.d.ts +2 -0
  327. package/dist/remote-managed-runtime.test.d.ts.map +1 -0
  328. package/dist/remote-managed-runtime.test.js +294 -0
  329. package/dist/remote-managed-runtime.test.js.map +1 -0
  330. package/dist/runner-connectivity.d.ts +61 -0
  331. package/dist/runner-connectivity.d.ts.map +1 -0
  332. package/dist/runner-connectivity.js +81 -0
  333. package/dist/runner-connectivity.js.map +1 -0
  334. package/dist/runner-connectivity.test.d.ts +2 -0
  335. package/dist/runner-connectivity.test.d.ts.map +1 -0
  336. package/dist/runner-connectivity.test.js +183 -0
  337. package/dist/runner-connectivity.test.js.map +1 -0
  338. package/dist/runtime-progress.d.ts +48 -0
  339. package/dist/runtime-progress.d.ts.map +1 -0
  340. package/dist/runtime-progress.js +99 -0
  341. package/dist/runtime-progress.js.map +1 -0
  342. package/dist/runtime-progress.test.d.ts +2 -0
  343. package/dist/runtime-progress.test.d.ts.map +1 -0
  344. package/dist/runtime-progress.test.js +240 -0
  345. package/dist/runtime-progress.test.js.map +1 -0
  346. package/dist/sandbox-callback-bridge-body.d.ts +12 -0
  347. package/dist/sandbox-callback-bridge-body.d.ts.map +1 -0
  348. package/dist/sandbox-callback-bridge-body.js +39 -0
  349. package/dist/sandbox-callback-bridge-body.js.map +1 -0
  350. package/dist/sandbox-callback-bridge-body.test.d.ts +2 -0
  351. package/dist/sandbox-callback-bridge-body.test.d.ts.map +1 -0
  352. package/dist/sandbox-callback-bridge-body.test.js +31 -0
  353. package/dist/sandbox-callback-bridge-body.test.js.map +1 -0
  354. package/dist/sandbox-callback-bridge.d.ts +268 -0
  355. package/dist/sandbox-callback-bridge.d.ts.map +1 -0
  356. package/dist/sandbox-callback-bridge.js +2357 -0
  357. package/dist/sandbox-callback-bridge.js.map +1 -0
  358. package/dist/sandbox-callback-bridge.test.d.ts +2 -0
  359. package/dist/sandbox-callback-bridge.test.d.ts.map +1 -0
  360. package/dist/sandbox-callback-bridge.test.js +3253 -0
  361. package/dist/sandbox-callback-bridge.test.js.map +1 -0
  362. package/dist/sandbox-file-sync.test.d.ts +2 -0
  363. package/dist/sandbox-file-sync.test.d.ts.map +1 -0
  364. package/dist/sandbox-file-sync.test.js +419 -0
  365. package/dist/sandbox-file-sync.test.js.map +1 -0
  366. package/dist/sandbox-install-command.d.ts +2 -0
  367. package/dist/sandbox-install-command.d.ts.map +1 -0
  368. package/dist/sandbox-install-command.js +47 -0
  369. package/dist/sandbox-install-command.js.map +1 -0
  370. package/dist/sandbox-install-command.test.d.ts +2 -0
  371. package/dist/sandbox-install-command.test.d.ts.map +1 -0
  372. package/dist/sandbox-install-command.test.js +22 -0
  373. package/dist/sandbox-install-command.test.js.map +1 -0
  374. package/dist/sandbox-managed-runtime.d.ts +417 -0
  375. package/dist/sandbox-managed-runtime.d.ts.map +1 -0
  376. package/dist/sandbox-managed-runtime.js +1337 -0
  377. package/dist/sandbox-managed-runtime.js.map +1 -0
  378. package/dist/sandbox-managed-runtime.test.d.ts +2 -0
  379. package/dist/sandbox-managed-runtime.test.d.ts.map +1 -0
  380. package/dist/sandbox-managed-runtime.test.js +3746 -0
  381. package/dist/sandbox-managed-runtime.test.js.map +1 -0
  382. package/dist/sandbox-run-log-stream.d.ts +44 -0
  383. package/dist/sandbox-run-log-stream.d.ts.map +1 -0
  384. package/dist/sandbox-run-log-stream.js +203 -0
  385. package/dist/sandbox-run-log-stream.js.map +1 -0
  386. package/dist/sandbox-shell.d.ts +3 -0
  387. package/dist/sandbox-shell.d.ts.map +1 -0
  388. package/dist/sandbox-shell.js +7 -0
  389. package/dist/sandbox-shell.js.map +1 -0
  390. package/dist/server-utils-env.test.d.ts +2 -0
  391. package/dist/server-utils-env.test.d.ts.map +1 -0
  392. package/dist/server-utils-env.test.js +15 -0
  393. package/dist/server-utils-env.test.js.map +1 -0
  394. package/dist/server-utils.d.ts +617 -0
  395. package/dist/server-utils.d.ts.map +1 -0
  396. package/dist/server-utils.js +3258 -0
  397. package/dist/server-utils.js.map +1 -0
  398. package/dist/server-utils.test.d.ts +2 -0
  399. package/dist/server-utils.test.d.ts.map +1 -0
  400. package/dist/server-utils.test.js +3047 -0
  401. package/dist/server-utils.test.js.map +1 -0
  402. package/dist/session-compaction.d.ts +25 -0
  403. package/dist/session-compaction.d.ts.map +1 -0
  404. package/dist/session-compaction.js +165 -0
  405. package/dist/session-compaction.js.map +1 -0
  406. package/dist/skill-library-manifest.d.ts +6 -0
  407. package/dist/skill-library-manifest.d.ts.map +1 -0
  408. package/dist/skill-library-manifest.js +53 -0
  409. package/dist/skill-library-manifest.js.map +1 -0
  410. package/dist/skill-library-manifest.test.d.ts +2 -0
  411. package/dist/skill-library-manifest.test.d.ts.map +1 -0
  412. package/dist/skill-library-manifest.test.js +84 -0
  413. package/dist/skill-library-manifest.test.js.map +1 -0
  414. package/dist/skills-staging-follow-symlinks.test.d.ts +2 -0
  415. package/dist/skills-staging-follow-symlinks.test.d.ts.map +1 -0
  416. package/dist/skills-staging-follow-symlinks.test.js +126 -0
  417. package/dist/skills-staging-follow-symlinks.test.js.map +1 -0
  418. package/dist/ssh-fixture.test.d.ts +2 -0
  419. package/dist/ssh-fixture.test.d.ts.map +1 -0
  420. package/dist/ssh-fixture.test.js +832 -0
  421. package/dist/ssh-fixture.test.js.map +1 -0
  422. package/dist/ssh.d.ts +124 -0
  423. package/dist/ssh.d.ts.map +1 -0
  424. package/dist/ssh.js +1667 -0
  425. package/dist/ssh.js.map +1 -0
  426. package/dist/sync-operation-schedule.d.ts +17 -0
  427. package/dist/sync-operation-schedule.d.ts.map +1 -0
  428. package/dist/sync-operation-schedule.js +66 -0
  429. package/dist/sync-operation-schedule.js.map +1 -0
  430. package/dist/sync-operation-schedule.test.d.ts +2 -0
  431. package/dist/sync-operation-schedule.test.d.ts.map +1 -0
  432. package/dist/sync-operation-schedule.test.js +130 -0
  433. package/dist/sync-operation-schedule.test.js.map +1 -0
  434. package/dist/test-support/mcp-isolation-harness.d.ts +23 -0
  435. package/dist/test-support/mcp-isolation-harness.d.ts.map +1 -0
  436. package/dist/test-support/mcp-isolation-harness.js +67 -0
  437. package/dist/test-support/mcp-isolation-harness.js.map +1 -0
  438. package/dist/types.d.ts +780 -0
  439. package/dist/types.d.ts.map +1 -0
  440. package/dist/types.js +5 -0
  441. package/dist/types.js.map +1 -0
  442. package/dist/workspace-restore-merge.d.ts +77 -0
  443. package/dist/workspace-restore-merge.d.ts.map +1 -0
  444. package/dist/workspace-restore-merge.js +396 -0
  445. package/dist/workspace-restore-merge.js.map +1 -0
  446. package/dist/workspace-restore-merge.test.d.ts +2 -0
  447. package/dist/workspace-restore-merge.test.d.ts.map +1 -0
  448. package/dist/workspace-restore-merge.test.js +438 -0
  449. package/dist/workspace-restore-merge.test.js.map +1 -0
  450. package/dist/workspace-restore-teardown.d.ts +29 -0
  451. package/dist/workspace-restore-teardown.d.ts.map +1 -0
  452. package/dist/workspace-restore-teardown.js +34 -0
  453. package/dist/workspace-restore-teardown.js.map +1 -0
  454. package/dist/workspace-restore-teardown.test.d.ts +2 -0
  455. package/dist/workspace-restore-teardown.test.d.ts.map +1 -0
  456. package/dist/workspace-restore-teardown.test.js +71 -0
  457. package/dist/workspace-restore-teardown.test.js.map +1 -0
  458. package/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
  459. package/node_modules/@agentclientprotocol/sdk/README.md +70 -0
  460. package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1803 -0
  461. package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1869 -0
  462. package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
  463. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
  464. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +5036 -0
  465. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
  466. package/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +89 -0
  467. package/node_modules/@agentclientprotocol/sdk/dist/connection.js +490 -0
  468. package/node_modules/@agentclientprotocol/sdk/dist/connection.js.map +1 -0
  469. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +1 -0
  470. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +507 -0
  471. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js.map +1 -0
  472. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +26 -0
  473. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js +96 -0
  474. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js.map +1 -0
  475. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +1 -0
  476. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +77 -0
  477. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js.map +1 -0
  478. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
  479. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +232 -0
  480. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
  481. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
  482. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +132 -0
  483. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
  484. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +9 -0
  485. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +221 -0
  486. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +1 -0
  487. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +2 -0
  488. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js +86 -0
  489. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js.map +1 -0
  490. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +2 -0
  491. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js +112 -0
  492. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js.map +1 -0
  493. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +2 -0
  494. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js +88 -0
  495. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js.map +1 -0
  496. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +33 -0
  497. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js +435 -0
  498. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js.map +1 -0
  499. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +1 -0
  500. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +1380 -0
  501. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js.map +1 -0
  502. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +603 -0
  503. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +1076 -0
  504. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
  505. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +1 -0
  506. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +917 -0
  507. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js.map +1 -0
  508. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +22 -0
  509. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js +64 -0
  510. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js.map +1 -0
  511. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +1 -0
  512. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +45 -0
  513. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js.map +1 -0
  514. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +17 -0
  515. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js +426 -0
  516. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js.map +1 -0
  517. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +1 -0
  518. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +499 -0
  519. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js.map +1 -0
  520. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +37 -0
  521. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +474 -0
  522. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +1 -0
  523. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +1 -0
  524. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +535 -0
  525. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +1 -0
  526. package/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +11 -0
  527. package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +69 -0
  528. package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +1 -0
  529. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +1 -0
  530. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +82 -0
  531. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +1 -0
  532. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +183 -0
  533. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +207 -0
  534. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -0
  535. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +51 -0
  536. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +52 -0
  537. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
  538. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +6219 -0
  539. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
  540. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
  541. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +15215 -0
  542. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +3084 -0
  543. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
  544. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +30 -0
  545. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +98 -0
  546. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -0
  547. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +1 -0
  548. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +93 -0
  549. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js.map +1 -0
  550. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +1 -0
  551. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +261 -0
  552. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js.map +1 -0
  553. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +1 -0
  554. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +536 -0
  555. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js.map +1 -0
  556. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +2 -0
  557. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js +88 -0
  558. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js.map +1 -0
  559. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +1 -0
  560. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +53 -0
  561. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js.map +1 -0
  562. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +1 -0
  563. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +992 -0
  564. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js.map +1 -0
  565. package/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +81 -0
  566. package/node_modules/@agentclientprotocol/sdk/dist/server.js +386 -0
  567. package/node_modules/@agentclientprotocol/sdk/dist/server.js.map +1 -0
  568. package/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +1 -0
  569. package/node_modules/@agentclientprotocol/sdk/dist/server.test.js +1116 -0
  570. package/node_modules/@agentclientprotocol/sdk/dist/server.test.js.map +1 -0
  571. package/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +4 -0
  572. package/node_modules/@agentclientprotocol/sdk/dist/sse.js +91 -0
  573. package/node_modules/@agentclientprotocol/sdk/dist/sse.js.map +1 -0
  574. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +1 -0
  575. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +126 -0
  576. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js.map +1 -0
  577. package/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +35 -0
  578. package/node_modules/@agentclientprotocol/sdk/dist/stream.js +115 -0
  579. package/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
  580. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +1 -0
  581. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +195 -0
  582. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js.map +1 -0
  583. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +8 -0
  584. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js +51 -0
  585. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js.map +1 -0
  586. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +24 -0
  587. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js +163 -0
  588. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js.map +1 -0
  589. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +9 -0
  590. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js +74 -0
  591. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js.map +1 -0
  592. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +957 -0
  593. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1484 -0
  594. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -0
  595. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +1 -0
  596. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +1287 -0
  597. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +1 -0
  598. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +946 -0
  599. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +1046 -0
  600. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -0
  601. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +42 -0
  602. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +43 -0
  603. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +1 -0
  604. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +6208 -0
  605. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js +3 -0
  606. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +1 -0
  607. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +33267 -0
  608. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +3199 -0
  609. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -0
  610. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +14 -0
  611. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js +357 -0
  612. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js.map +1 -0
  613. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +54 -0
  614. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js +253 -0
  615. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js.map +1 -0
  616. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +1 -0
  617. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +836 -0
  618. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js.map +1 -0
  619. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +13 -0
  620. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js +78 -0
  621. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js.map +1 -0
  622. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +1 -0
  623. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +42 -0
  624. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js.map +1 -0
  625. package/node_modules/@agentclientprotocol/sdk/package.json +104 -0
  626. package/node_modules/@agentclientprotocol/sdk/schema/schema.json +8967 -0
  627. package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +10242 -0
  628. package/node_modules/@clack/core/LICENSE +9 -0
  629. package/node_modules/@clack/core/README.md +22 -0
  630. package/node_modules/@clack/core/dist/index.d.mts +503 -0
  631. package/node_modules/@clack/core/dist/index.mjs +1003 -0
  632. package/node_modules/@clack/core/package.json +63 -0
  633. package/node_modules/@clack/prompts/LICENSE +9 -0
  634. package/node_modules/@clack/prompts/README.md +396 -0
  635. package/node_modules/@clack/prompts/dist/index.d.mts +949 -0
  636. package/node_modules/@clack/prompts/dist/index.mjs +1423 -0
  637. package/node_modules/@clack/prompts/package.json +67 -0
  638. package/node_modules/@esbuild/linux-x64/README.md +3 -0
  639. package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  640. package/node_modules/@esbuild/linux-x64/package.json +20 -0
  641. package/node_modules/acpx/LICENSE +21 -0
  642. package/node_modules/acpx/README.md +424 -0
  643. package/node_modules/acpx/dist/cli-CxsS1XQp.js +197 -0
  644. package/node_modules/acpx/dist/cli-CxsS1XQp.js.map +1 -0
  645. package/node_modules/acpx/dist/cli.d.ts +14 -0
  646. package/node_modules/acpx/dist/cli.d.ts.map +1 -0
  647. package/node_modules/acpx/dist/cli.js +2683 -0
  648. package/node_modules/acpx/dist/cli.js.map +1 -0
  649. package/node_modules/acpx/dist/client-DwNyFauq.d.ts +192 -0
  650. package/node_modules/acpx/dist/client-DwNyFauq.d.ts.map +1 -0
  651. package/node_modules/acpx/dist/flags-Bjq_XQ4-.js +260 -0
  652. package/node_modules/acpx/dist/flags-Bjq_XQ4-.js.map +1 -0
  653. package/node_modules/acpx/dist/flows-Db_LZKu9.js +1920 -0
  654. package/node_modules/acpx/dist/flows-Db_LZKu9.js.map +1 -0
  655. package/node_modules/acpx/dist/flows.d.ts +318 -0
  656. package/node_modules/acpx/dist/flows.d.ts.map +1 -0
  657. package/node_modules/acpx/dist/flows.js +2 -0
  658. package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js +6210 -0
  659. package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js.map +1 -0
  660. package/node_modules/acpx/dist/output-CjdF5rHk.js +4593 -0
  661. package/node_modules/acpx/dist/output-CjdF5rHk.js.map +1 -0
  662. package/node_modules/acpx/dist/runtime.d.ts +472 -0
  663. package/node_modules/acpx/dist/runtime.d.ts.map +1 -0
  664. package/node_modules/acpx/dist/runtime.js +1711 -0
  665. package/node_modules/acpx/dist/runtime.js.map +1 -0
  666. package/node_modules/acpx/dist/session-options-jkYbBxGE.d.ts +278 -0
  667. package/node_modules/acpx/dist/session-options-jkYbBxGE.d.ts.map +1 -0
  668. package/node_modules/acpx/package.json +129 -0
  669. package/node_modules/acpx/skills/acpx/SKILL.md +617 -0
  670. package/node_modules/b4a/LICENSE +201 -0
  671. package/node_modules/b4a/README.md +153 -0
  672. package/node_modules/b4a/browser.js +546 -0
  673. package/node_modules/b4a/index.d.ts +144 -0
  674. package/node_modules/b4a/index.js +193 -0
  675. package/node_modules/b4a/lib/ascii.js +31 -0
  676. package/node_modules/b4a/lib/base64.js +64 -0
  677. package/node_modules/b4a/lib/hex.js +51 -0
  678. package/node_modules/b4a/lib/latin1.js +31 -0
  679. package/node_modules/b4a/lib/utf16le.js +40 -0
  680. package/node_modules/b4a/lib/utf8.js +144 -0
  681. package/node_modules/b4a/package.json +54 -0
  682. package/node_modules/b4a/react-native.js +5 -0
  683. package/node_modules/b4a/runtime.d.ts +14 -0
  684. package/node_modules/bare-events/LICENSE +201 -0
  685. package/node_modules/bare-events/README.md +25 -0
  686. package/node_modules/bare-events/global.d.ts +15 -0
  687. package/node_modules/bare-events/global.js +5 -0
  688. package/node_modules/bare-events/index.d.ts +89 -0
  689. package/node_modules/bare-events/index.js +397 -0
  690. package/node_modules/bare-events/lib/errors.js +23 -0
  691. package/node_modules/bare-events/package.json +63 -0
  692. package/node_modules/bare-events/web.d.ts +79 -0
  693. package/node_modules/bare-events/web.js +417 -0
  694. package/node_modules/bare-fs/CMakeLists.txt +13 -0
  695. package/node_modules/bare-fs/LICENSE +201 -0
  696. package/node_modules/bare-fs/README.md +33 -0
  697. package/node_modules/bare-fs/binding.c +2913 -0
  698. package/node_modules/bare-fs/binding.js +1 -0
  699. package/node_modules/bare-fs/index.d.ts +1502 -0
  700. package/node_modules/bare-fs/index.js +2855 -0
  701. package/node_modules/bare-fs/lib/constants.d.ts +50 -0
  702. package/node_modules/bare-fs/lib/constants.js +49 -0
  703. package/node_modules/bare-fs/lib/errors.d.ts +13 -0
  704. package/node_modules/bare-fs/lib/errors.js +55 -0
  705. package/node_modules/bare-fs/package.json +74 -0
  706. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  707. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  708. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  709. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  710. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  711. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  712. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  713. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  714. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  715. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  716. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  717. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  718. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  719. package/node_modules/bare-fs/promises.d.ts +480 -0
  720. package/node_modules/bare-fs/promises.js +119 -0
  721. package/node_modules/bare-path/CMakeLists.txt +13 -0
  722. package/node_modules/bare-path/LICENSE +201 -0
  723. package/node_modules/bare-path/NOTICE +28 -0
  724. package/node_modules/bare-path/README.md +19 -0
  725. package/node_modules/bare-path/binding.c +106 -0
  726. package/node_modules/bare-path/binding.js +1 -0
  727. package/node_modules/bare-path/index.d.ts +27 -0
  728. package/node_modules/bare-path/index.js +9 -0
  729. package/node_modules/bare-path/lib/constants.js +11 -0
  730. package/node_modules/bare-path/lib/posix.js +263 -0
  731. package/node_modules/bare-path/lib/shared.js +81 -0
  732. package/node_modules/bare-path/lib/win32.js +564 -0
  733. package/node_modules/bare-path/package.json +47 -0
  734. package/node_modules/bare-path/prebuilds/android-arm/bare-path.bare +0 -0
  735. package/node_modules/bare-path/prebuilds/android-arm64/bare-path.bare +0 -0
  736. package/node_modules/bare-path/prebuilds/android-ia32/bare-path.bare +0 -0
  737. package/node_modules/bare-path/prebuilds/android-x64/bare-path.bare +0 -0
  738. package/node_modules/bare-path/prebuilds/darwin-arm64/bare-path.bare +0 -0
  739. package/node_modules/bare-path/prebuilds/darwin-x64/bare-path.bare +0 -0
  740. package/node_modules/bare-path/prebuilds/ios-arm64/bare-path.bare +0 -0
  741. package/node_modules/bare-path/prebuilds/ios-arm64-simulator/bare-path.bare +0 -0
  742. package/node_modules/bare-path/prebuilds/ios-x64-simulator/bare-path.bare +0 -0
  743. package/node_modules/bare-path/prebuilds/linux-arm64/bare-path.bare +0 -0
  744. package/node_modules/bare-path/prebuilds/linux-x64/bare-path.bare +0 -0
  745. package/node_modules/bare-path/prebuilds/win32-arm64/bare-path.bare +0 -0
  746. package/node_modules/bare-path/prebuilds/win32-x64/bare-path.bare +0 -0
  747. package/node_modules/bare-stream/LICENSE +201 -0
  748. package/node_modules/bare-stream/README.md +354 -0
  749. package/node_modules/bare-stream/global.d.ts +31 -0
  750. package/node_modules/bare-stream/global.js +15 -0
  751. package/node_modules/bare-stream/index.d.ts +235 -0
  752. package/node_modules/bare-stream/index.js +493 -0
  753. package/node_modules/bare-stream/package.json +75 -0
  754. package/node_modules/bare-stream/promises.js +3 -0
  755. package/node_modules/bare-stream/web.d.ts +152 -0
  756. package/node_modules/bare-stream/web.js +607 -0
  757. package/node_modules/bare-url/CMakeLists.txt +36 -0
  758. package/node_modules/bare-url/LICENSE +201 -0
  759. package/node_modules/bare-url/README.md +33 -0
  760. package/node_modules/bare-url/binding.c +422 -0
  761. package/node_modules/bare-url/binding.js +1 -0
  762. package/node_modules/bare-url/global.d.ts +24 -0
  763. package/node_modules/bare-url/global.js +2 -0
  764. package/node_modules/bare-url/index.d.ts +96 -0
  765. package/node_modules/bare-url/index.js +676 -0
  766. package/node_modules/bare-url/lib/errors.d.ts +10 -0
  767. package/node_modules/bare-url/lib/errors.js +33 -0
  768. package/node_modules/bare-url/lib/url-search-params.d.ts +66 -0
  769. package/node_modules/bare-url/lib/url-search-params.js +276 -0
  770. package/node_modules/bare-url/package.json +54 -0
  771. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  772. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  773. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  774. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  775. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  776. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  777. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  778. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  779. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  780. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  781. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  782. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  783. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  784. package/node_modules/commander/LICENSE +22 -0
  785. package/node_modules/commander/Readme.md +1172 -0
  786. package/node_modules/commander/index.js +21 -0
  787. package/node_modules/commander/lib/argument.js +147 -0
  788. package/node_modules/commander/lib/command.js +2790 -0
  789. package/node_modules/commander/lib/error.js +36 -0
  790. package/node_modules/commander/lib/help.js +731 -0
  791. package/node_modules/commander/lib/option.js +377 -0
  792. package/node_modules/commander/lib/suggestSimilar.js +99 -0
  793. package/node_modules/commander/package-support.json +19 -0
  794. package/node_modules/commander/package.json +64 -0
  795. package/node_modules/commander/typings/index.d.ts +1113 -0
  796. package/node_modules/esbuild/LICENSE.md +21 -0
  797. package/node_modules/esbuild/README.md +3 -0
  798. package/node_modules/esbuild/bin/esbuild +223 -0
  799. package/node_modules/esbuild/install.js +300 -0
  800. package/node_modules/esbuild/lib/main.d.ts +720 -0
  801. package/node_modules/esbuild/lib/main.js +2536 -0
  802. package/node_modules/esbuild/package.json +74 -0
  803. package/node_modules/events-universal/LICENSE +201 -0
  804. package/node_modules/events-universal/README.md +17 -0
  805. package/node_modules/events-universal/bare.js +1 -0
  806. package/node_modules/events-universal/default.js +1 -0
  807. package/node_modules/events-universal/index.js +1 -0
  808. package/node_modules/events-universal/package.json +39 -0
  809. package/node_modules/events-universal/react-native.js +1 -0
  810. package/node_modules/fast-fifo/LICENSE +21 -0
  811. package/node_modules/fast-fifo/README.md +78 -0
  812. package/node_modules/fast-fifo/fixed-size.js +39 -0
  813. package/node_modules/fast-fifo/index.js +48 -0
  814. package/node_modules/fast-fifo/package.json +28 -0
  815. package/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
  816. package/node_modules/fast-string-truncated-width/dist/index.js +111 -0
  817. package/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
  818. package/node_modules/fast-string-truncated-width/dist/types.js +2 -0
  819. package/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
  820. package/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
  821. package/node_modules/fast-string-truncated-width/license +21 -0
  822. package/node_modules/fast-string-truncated-width/package.json +35 -0
  823. package/node_modules/fast-string-truncated-width/readme.md +59 -0
  824. package/node_modules/fast-string-width/dist/index.d.ts +4 -0
  825. package/node_modules/fast-string-width/dist/index.js +14 -0
  826. package/node_modules/fast-string-width/license +21 -0
  827. package/node_modules/fast-string-width/package.json +34 -0
  828. package/node_modules/fast-string-width/readme.md +42 -0
  829. package/node_modules/fast-wrap-ansi/LICENSE +23 -0
  830. package/node_modules/fast-wrap-ansi/README.md +26 -0
  831. package/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
  832. package/node_modules/fast-wrap-ansi/lib/main.js +218 -0
  833. package/node_modules/fast-wrap-ansi/package.json +51 -0
  834. package/node_modules/sisteransi/license +21 -0
  835. package/node_modules/sisteransi/package.json +34 -0
  836. package/node_modules/sisteransi/readme.md +113 -0
  837. package/node_modules/sisteransi/src/index.js +58 -0
  838. package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  839. package/node_modules/skillflag/LICENSE +21 -0
  840. package/node_modules/skillflag/README.md +44 -0
  841. package/node_modules/skillflag/dist/bin/skill-install.d.ts +3 -0
  842. package/node_modules/skillflag/dist/bin/skill-install.d.ts.map +1 -0
  843. package/node_modules/skillflag/dist/bin/skill-install.js +6 -0
  844. package/node_modules/skillflag/dist/bin/skill-install.js.map +1 -0
  845. package/node_modules/skillflag/dist/bin/skillflag.d.ts +3 -0
  846. package/node_modules/skillflag/dist/bin/skillflag.d.ts.map +1 -0
  847. package/node_modules/skillflag/dist/bin/skillflag.js +25 -0
  848. package/node_modules/skillflag/dist/bin/skillflag.js.map +1 -0
  849. package/node_modules/skillflag/dist/core/digest.d.ts +2 -0
  850. package/node_modules/skillflag/dist/core/digest.d.ts.map +1 -0
  851. package/node_modules/skillflag/dist/core/digest.js +15 -0
  852. package/node_modules/skillflag/dist/core/digest.js.map +1 -0
  853. package/node_modules/skillflag/dist/core/errors.d.ts +6 -0
  854. package/node_modules/skillflag/dist/core/errors.d.ts.map +1 -0
  855. package/node_modules/skillflag/dist/core/errors.js +13 -0
  856. package/node_modules/skillflag/dist/core/errors.js.map +1 -0
  857. package/node_modules/skillflag/dist/core/export.d.ts +2 -0
  858. package/node_modules/skillflag/dist/core/export.d.ts.map +1 -0
  859. package/node_modules/skillflag/dist/core/export.js +28 -0
  860. package/node_modules/skillflag/dist/core/export.js.map +1 -0
  861. package/node_modules/skillflag/dist/core/list.d.ts +21 -0
  862. package/node_modules/skillflag/dist/core/list.d.ts.map +1 -0
  863. package/node_modules/skillflag/dist/core/list.js +71 -0
  864. package/node_modules/skillflag/dist/core/list.js.map +1 -0
  865. package/node_modules/skillflag/dist/core/paths.d.ts +15 -0
  866. package/node_modules/skillflag/dist/core/paths.d.ts.map +1 -0
  867. package/node_modules/skillflag/dist/core/paths.js +149 -0
  868. package/node_modules/skillflag/dist/core/paths.js.map +1 -0
  869. package/node_modules/skillflag/dist/core/show.d.ts +2 -0
  870. package/node_modules/skillflag/dist/core/show.d.ts.map +1 -0
  871. package/node_modules/skillflag/dist/core/show.js +8 -0
  872. package/node_modules/skillflag/dist/core/show.js.map +1 -0
  873. package/node_modules/skillflag/dist/core/skillflag.d.ts +3 -0
  874. package/node_modules/skillflag/dist/core/skillflag.d.ts.map +1 -0
  875. package/node_modules/skillflag/dist/core/skillflag.js +2 -0
  876. package/node_modules/skillflag/dist/core/skillflag.js.map +1 -0
  877. package/node_modules/skillflag/dist/core/tar.d.ts +16 -0
  878. package/node_modules/skillflag/dist/core/tar.d.ts.map +1 -0
  879. package/node_modules/skillflag/dist/core/tar.js +140 -0
  880. package/node_modules/skillflag/dist/core/tar.js.map +1 -0
  881. package/node_modules/skillflag/dist/index.d.ts +5 -0
  882. package/node_modules/skillflag/dist/index.d.ts.map +1 -0
  883. package/node_modules/skillflag/dist/index.js +3 -0
  884. package/node_modules/skillflag/dist/index.js.map +1 -0
  885. package/node_modules/skillflag/dist/install/cli.d.ts +57 -0
  886. package/node_modules/skillflag/dist/install/cli.d.ts.map +1 -0
  887. package/node_modules/skillflag/dist/install/cli.js +653 -0
  888. package/node_modules/skillflag/dist/install/cli.js.map +1 -0
  889. package/node_modules/skillflag/dist/install/copy.d.ts +2 -0
  890. package/node_modules/skillflag/dist/install/copy.d.ts.map +1 -0
  891. package/node_modules/skillflag/dist/install/copy.js +19 -0
  892. package/node_modules/skillflag/dist/install/copy.js.map +1 -0
  893. package/node_modules/skillflag/dist/install/errors.d.ts +6 -0
  894. package/node_modules/skillflag/dist/install/errors.d.ts.map +1 -0
  895. package/node_modules/skillflag/dist/install/errors.js +13 -0
  896. package/node_modules/skillflag/dist/install/errors.js.map +1 -0
  897. package/node_modules/skillflag/dist/install/extract.d.ts +3 -0
  898. package/node_modules/skillflag/dist/install/extract.d.ts.map +1 -0
  899. package/node_modules/skillflag/dist/install/extract.js +76 -0
  900. package/node_modules/skillflag/dist/install/extract.js.map +1 -0
  901. package/node_modules/skillflag/dist/install/install.d.ts +21 -0
  902. package/node_modules/skillflag/dist/install/install.d.ts.map +1 -0
  903. package/node_modules/skillflag/dist/install/install.js +35 -0
  904. package/node_modules/skillflag/dist/install/install.js.map +1 -0
  905. package/node_modules/skillflag/dist/install/resolve.d.ts +12 -0
  906. package/node_modules/skillflag/dist/install/resolve.d.ts.map +1 -0
  907. package/node_modules/skillflag/dist/install/resolve.js +119 -0
  908. package/node_modules/skillflag/dist/install/resolve.js.map +1 -0
  909. package/node_modules/skillflag/dist/install/validate.d.ts +7 -0
  910. package/node_modules/skillflag/dist/install/validate.d.ts.map +1 -0
  911. package/node_modules/skillflag/dist/install/validate.js +28 -0
  912. package/node_modules/skillflag/dist/install/validate.js.map +1 -0
  913. package/node_modules/skillflag/dist/shared/frontmatter.d.ts +2 -0
  914. package/node_modules/skillflag/dist/shared/frontmatter.d.ts.map +1 -0
  915. package/node_modules/skillflag/dist/shared/frontmatter.js +28 -0
  916. package/node_modules/skillflag/dist/shared/frontmatter.js.map +1 -0
  917. package/node_modules/skillflag/dist/skillflag.d.ts +29 -0
  918. package/node_modules/skillflag/dist/skillflag.d.ts.map +1 -0
  919. package/node_modules/skillflag/dist/skillflag.js +230 -0
  920. package/node_modules/skillflag/dist/skillflag.js.map +1 -0
  921. package/node_modules/skillflag/dist/utils/collections.d.ts +3 -0
  922. package/node_modules/skillflag/dist/utils/collections.d.ts.map +1 -0
  923. package/node_modules/skillflag/dist/utils/collections.js +18 -0
  924. package/node_modules/skillflag/dist/utils/collections.js.map +1 -0
  925. package/node_modules/skillflag/package.json +78 -0
  926. package/node_modules/skillflag/skills/skillflag/SKILL.md +144 -0
  927. package/node_modules/streamx/LICENSE +21 -0
  928. package/node_modules/streamx/README.md +550 -0
  929. package/node_modules/streamx/index.d.ts +198 -0
  930. package/node_modules/streamx/index.js +1314 -0
  931. package/node_modules/streamx/lib/errors.d.ts +13 -0
  932. package/node_modules/streamx/lib/errors.js +47 -0
  933. package/node_modules/streamx/package.json +51 -0
  934. package/node_modules/streamx/runtime.d.ts +55 -0
  935. package/node_modules/tar-stream/LICENSE +21 -0
  936. package/node_modules/tar-stream/README.md +183 -0
  937. package/node_modules/tar-stream/constants.js +14 -0
  938. package/node_modules/tar-stream/extract.js +418 -0
  939. package/node_modules/tar-stream/headers.js +322 -0
  940. package/node_modules/tar-stream/index.d.ts +60 -0
  941. package/node_modules/tar-stream/index.js +2 -0
  942. package/node_modules/tar-stream/pack.js +287 -0
  943. package/node_modules/tar-stream/package.json +50 -0
  944. package/node_modules/teex/LICENSE +21 -0
  945. package/node_modules/teex/README.md +31 -0
  946. package/node_modules/teex/example.js +16 -0
  947. package/node_modules/teex/index.js +52 -0
  948. package/node_modules/teex/package.json +26 -0
  949. package/node_modules/teex/test.js +68 -0
  950. package/node_modules/text-decoder/LICENSE +201 -0
  951. package/node_modules/text-decoder/README.md +36 -0
  952. package/node_modules/text-decoder/index.js +64 -0
  953. package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  954. package/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
  955. package/node_modules/text-decoder/package.json +39 -0
  956. package/node_modules/tsx/LICENSE +21 -0
  957. package/node_modules/tsx/README.md +32 -0
  958. package/node_modules/tsx/dist/cjs/api/index.cjs +2 -0
  959. package/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
  960. package/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
  961. package/node_modules/tsx/dist/cjs/api/index.mjs +2 -0
  962. package/node_modules/tsx/dist/cjs/index.cjs +1 -0
  963. package/node_modules/tsx/dist/cli.mjs +55 -0
  964. package/node_modules/tsx/dist/client-XItNFmsq.cjs +1 -0
  965. package/node_modules/tsx/dist/esm/api/index.cjs +2 -0
  966. package/node_modules/tsx/dist/esm/api/index.d.cts +37 -0
  967. package/node_modules/tsx/dist/esm/api/index.d.mts +37 -0
  968. package/node_modules/tsx/dist/esm/api/index.mjs +2 -0
  969. package/node_modules/tsx/dist/esm/index.mjs +2 -0
  970. package/node_modules/tsx/dist/index-Bqjv9TxC.mjs +1 -0
  971. package/node_modules/tsx/dist/index-DE3OBZuV.mjs +14 -0
  972. package/node_modules/tsx/dist/lexer-CGfpMDSb.cjs +3 -0
  973. package/node_modules/tsx/dist/lexer-CanA6ArK.mjs +3 -0
  974. package/node_modules/tsx/dist/loader.mjs +2 -0
  975. package/node_modules/tsx/dist/package-Dj0mHsMt.mjs +1 -0
  976. package/node_modules/tsx/dist/patch-repl.cjs +1 -0
  977. package/node_modules/tsx/dist/preflight.cjs +1 -0
  978. package/node_modules/tsx/dist/register-B1c7OH6V.cjs +23 -0
  979. package/node_modules/tsx/dist/register-nyXW-TH3.mjs +2 -0
  980. package/node_modules/tsx/dist/repl.mjs +4 -0
  981. package/node_modules/tsx/dist/require-CBjy4Foe.mjs +10 -0
  982. package/node_modules/tsx/dist/require-CVaYn9z3.cjs +1 -0
  983. package/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
  984. package/node_modules/tsx/dist/temporary-directory-Du7LpLp9.mjs +1 -0
  985. package/node_modules/tsx/package.json +70 -0
  986. package/node_modules/zod/LICENSE +21 -0
  987. package/node_modules/zod/README.md +218 -0
  988. package/node_modules/zod/compile.cjs +96 -0
  989. package/node_modules/zod/compile.d.cts +1 -0
  990. package/node_modules/zod/compile.d.ts +1 -0
  991. package/node_modules/zod/compile.js +52 -0
  992. package/node_modules/zod/index.cjs +52 -0
  993. package/node_modules/zod/index.d.cts +3 -0
  994. package/node_modules/zod/index.d.ts +3 -0
  995. package/node_modules/zod/index.js +7 -0
  996. package/node_modules/zod/locales/index.cjs +36 -0
  997. package/node_modules/zod/locales/index.d.cts +1 -0
  998. package/node_modules/zod/locales/index.d.ts +1 -0
  999. package/node_modules/zod/locales/index.js +1 -0
  1000. package/node_modules/zod/locales/package.json +7 -0
  1001. package/node_modules/zod/mini/index.cjs +51 -0
  1002. package/node_modules/zod/mini/index.d.cts +3 -0
  1003. package/node_modules/zod/mini/index.d.ts +3 -0
  1004. package/node_modules/zod/mini/index.js +3 -0
  1005. package/node_modules/zod/mini/package.json +7 -0
  1006. package/node_modules/zod/package.json +147 -0
  1007. package/node_modules/zod/src/compile.ts +56 -0
  1008. package/node_modules/zod/src/index.ts +7 -0
  1009. package/node_modules/zod/src/locales/index.ts +1 -0
  1010. package/node_modules/zod/src/mini/index.ts +3 -0
  1011. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  1012. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  1013. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  1014. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  1015. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  1016. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  1017. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  1018. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  1019. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  1020. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  1021. package/node_modules/zod/src/v3/errors.ts +13 -0
  1022. package/node_modules/zod/src/v3/external.ts +6 -0
  1023. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  1024. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  1025. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  1026. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  1027. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  1028. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  1029. package/node_modules/zod/src/v3/index.ts +4 -0
  1030. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  1031. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  1032. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  1033. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  1034. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  1035. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  1036. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  1037. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  1038. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  1039. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  1040. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  1041. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  1042. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  1043. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  1044. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  1045. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  1046. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  1047. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  1048. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  1049. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  1050. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  1051. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  1052. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  1053. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  1054. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  1055. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  1056. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  1057. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  1058. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  1059. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  1060. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  1061. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  1062. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  1063. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  1064. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  1065. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  1066. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  1067. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  1068. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  1069. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  1070. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  1071. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  1072. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  1073. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  1074. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  1075. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  1076. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  1077. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  1078. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  1079. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  1080. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  1081. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  1082. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  1083. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  1084. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  1085. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  1086. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  1087. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  1088. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  1089. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  1090. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  1091. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  1092. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  1093. package/node_modules/zod/src/v3/types.ts +5138 -0
  1094. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  1095. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  1096. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  1097. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  1098. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  1099. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  1100. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  1101. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  1102. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  1103. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  1104. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  1105. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  1106. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  1107. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  1108. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  1109. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  1110. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  1111. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  1112. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  1113. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  1114. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  1115. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  1116. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  1117. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  1118. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  1119. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  1120. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  1121. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  1122. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  1123. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  1124. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  1125. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  1126. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  1127. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  1128. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  1129. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  1130. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  1131. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  1132. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  1133. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  1134. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  1135. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  1136. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  1137. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  1138. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  1139. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  1140. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  1141. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  1142. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  1143. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  1144. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  1145. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  1146. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  1147. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  1148. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  1149. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  1150. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  1151. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  1152. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  1153. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  1154. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  1155. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  1156. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  1157. package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
  1158. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  1159. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  1160. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  1161. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  1162. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  1163. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  1164. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  1165. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  1166. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  1167. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  1168. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  1169. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  1170. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  1171. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  1172. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  1173. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  1174. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  1175. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  1176. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  1177. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  1178. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  1179. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  1180. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  1181. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  1182. package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
  1183. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  1184. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  1185. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  1186. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  1187. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  1188. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  1189. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  1190. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  1191. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  1192. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  1193. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  1194. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  1195. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  1196. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  1197. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  1198. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  1199. package/node_modules/zod/src/v4/core/compile.ts +2313 -0
  1200. package/node_modules/zod/src/v4/core/core.ts +230 -0
  1201. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  1202. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  1203. package/node_modules/zod/src/v4/core/index.ts +19 -0
  1204. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  1205. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  1206. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  1207. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  1208. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  1209. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  1210. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  1211. package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
  1212. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  1213. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  1214. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  1215. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  1216. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  1217. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  1218. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  1219. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  1220. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  1221. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  1222. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  1223. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  1224. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  1225. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  1226. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  1227. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  1228. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  1229. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  1230. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  1231. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  1232. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  1233. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  1234. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  1235. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  1236. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  1237. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  1238. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  1239. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  1240. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  1241. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  1242. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  1243. package/node_modules/zod/src/v4/core/util.ts +1280 -0
  1244. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  1245. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  1246. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  1247. package/node_modules/zod/src/v4/index.ts +4 -0
  1248. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  1249. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  1250. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  1251. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  1252. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  1253. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  1254. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  1255. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  1256. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  1257. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  1258. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  1259. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  1260. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  1261. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  1262. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  1263. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  1264. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  1265. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  1266. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  1267. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  1268. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  1269. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  1270. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  1271. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  1272. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  1273. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  1274. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  1275. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  1276. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  1277. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  1278. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  1279. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  1280. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  1281. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  1282. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  1283. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  1284. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  1285. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  1286. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1287. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  1288. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  1289. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  1290. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  1291. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  1292. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  1293. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  1294. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  1295. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  1296. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  1297. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  1298. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  1299. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  1300. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  1301. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  1302. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  1303. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  1304. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  1305. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  1306. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  1307. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  1308. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  1309. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  1310. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  1311. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  1312. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  1313. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  1314. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  1315. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  1316. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  1317. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1318. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  1319. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  1320. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  1321. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  1322. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  1323. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  1324. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  1325. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  1326. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  1327. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  1328. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  1329. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  1330. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  1331. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  1332. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  1333. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  1334. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1335. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  1336. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  1337. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  1338. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  1339. package/node_modules/zod/v3/ZodError.cjs +167 -0
  1340. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1341. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1342. package/node_modules/zod/v3/ZodError.js +143 -0
  1343. package/node_modules/zod/v3/errors.cjs +36 -0
  1344. package/node_modules/zod/v3/errors.d.cts +5 -0
  1345. package/node_modules/zod/v3/errors.d.ts +5 -0
  1346. package/node_modules/zod/v3/errors.js +9 -0
  1347. package/node_modules/zod/v3/external.cjs +41 -0
  1348. package/node_modules/zod/v3/external.d.cts +6 -0
  1349. package/node_modules/zod/v3/external.d.ts +6 -0
  1350. package/node_modules/zod/v3/external.js +6 -0
  1351. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  1352. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1353. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1354. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1355. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  1356. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1357. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1358. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1359. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  1360. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1361. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1362. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1363. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  1364. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1365. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1366. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1367. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  1368. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1369. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1370. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1371. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  1372. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1373. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1374. package/node_modules/zod/v3/helpers/util.js +133 -0
  1375. package/node_modules/zod/v3/index.cjs +52 -0
  1376. package/node_modules/zod/v3/index.d.cts +4 -0
  1377. package/node_modules/zod/v3/index.d.ts +4 -0
  1378. package/node_modules/zod/v3/index.js +4 -0
  1379. package/node_modules/zod/v3/locales/en.cjs +112 -0
  1380. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  1381. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  1382. package/node_modules/zod/v3/locales/en.js +109 -0
  1383. package/node_modules/zod/v3/package.json +7 -0
  1384. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  1385. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1386. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1387. package/node_modules/zod/v3/standard-schema.js +1 -0
  1388. package/node_modules/zod/v3/types.cjs +3798 -0
  1389. package/node_modules/zod/v3/types.d.cts +1034 -0
  1390. package/node_modules/zod/v3/types.d.ts +1034 -0
  1391. package/node_modules/zod/v3/types.js +3697 -0
  1392. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  1393. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1394. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1395. package/node_modules/zod/v4/classic/checks.js +1 -0
  1396. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  1397. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1398. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1399. package/node_modules/zod/v4/classic/coerce.js +17 -0
  1400. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  1401. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  1402. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  1403. package/node_modules/zod/v4/classic/compat.js +31 -0
  1404. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1405. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  1406. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  1407. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1408. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  1409. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  1410. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  1411. package/node_modules/zod/v4/classic/errors.js +57 -0
  1412. package/node_modules/zod/v4/classic/external.cjs +97 -0
  1413. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  1414. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  1415. package/node_modules/zod/v4/classic/external.js +17 -0
  1416. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  1417. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1418. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1419. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  1420. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1421. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1422. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1423. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1424. package/node_modules/zod/v4/classic/index.cjs +52 -0
  1425. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  1426. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  1427. package/node_modules/zod/v4/classic/index.js +4 -0
  1428. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  1429. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  1430. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  1431. package/node_modules/zod/v4/classic/iso.js +15 -0
  1432. package/node_modules/zod/v4/classic/package.json +7 -0
  1433. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  1434. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  1435. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  1436. package/node_modules/zod/v4/classic/parse.js +16 -0
  1437. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  1438. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  1439. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  1440. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  1441. package/node_modules/zod/v4/core/api.cjs +1269 -0
  1442. package/node_modules/zod/v4/core/api.d.cts +335 -0
  1443. package/node_modules/zod/v4/core/api.d.ts +335 -0
  1444. package/node_modules/zod/v4/core/api.js +1107 -0
  1445. package/node_modules/zod/v4/core/checks.cjs +561 -0
  1446. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  1447. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  1448. package/node_modules/zod/v4/core/checks.js +516 -0
  1449. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  1450. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  1451. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  1452. package/node_modules/zod/v4/core/compile.js +1858 -0
  1453. package/node_modules/zod/v4/core/core.cjs +167 -0
  1454. package/node_modules/zod/v4/core/core.d.cts +82 -0
  1455. package/node_modules/zod/v4/core/core.d.ts +82 -0
  1456. package/node_modules/zod/v4/core/core.js +141 -0
  1457. package/node_modules/zod/v4/core/doc.cjs +61 -0
  1458. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  1459. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  1460. package/node_modules/zod/v4/core/doc.js +38 -0
  1461. package/node_modules/zod/v4/core/errors.cjs +317 -0
  1462. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  1463. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  1464. package/node_modules/zod/v4/core/errors.js +267 -0
  1465. package/node_modules/zod/v4/core/index.cjs +70 -0
  1466. package/node_modules/zod/v4/core/index.d.cts +19 -0
  1467. package/node_modules/zod/v4/core/index.d.ts +19 -0
  1468. package/node_modules/zod/v4/core/index.js +19 -0
  1469. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  1470. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1471. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1472. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  1473. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  1474. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  1475. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  1476. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  1477. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  1478. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  1479. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  1480. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1481. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  1482. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1483. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1484. package/node_modules/zod/v4/core/memoizer.js +311 -0
  1485. package/node_modules/zod/v4/core/package.json +7 -0
  1486. package/node_modules/zod/v4/core/parse.cjs +233 -0
  1487. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  1488. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  1489. package/node_modules/zod/v4/core/parse.js +175 -0
  1490. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  1491. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  1492. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  1493. package/node_modules/zod/v4/core/regexes.js +156 -0
  1494. package/node_modules/zod/v4/core/registries.cjs +75 -0
  1495. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1496. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1497. package/node_modules/zod/v4/core/registries.js +51 -0
  1498. package/node_modules/zod/v4/core/schemas.cjs +2669 -0
  1499. package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
  1500. package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
  1501. package/node_modules/zod/v4/core/schemas.js +2606 -0
  1502. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  1503. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1504. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1505. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1506. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  1507. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  1508. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  1509. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  1510. package/node_modules/zod/v4/core/util.cjs +949 -0
  1511. package/node_modules/zod/v4/core/util.d.cts +278 -0
  1512. package/node_modules/zod/v4/core/util.d.ts +278 -0
  1513. package/node_modules/zod/v4/core/util.js +859 -0
  1514. package/node_modules/zod/v4/core/versions.cjs +27 -0
  1515. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1516. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1517. package/node_modules/zod/v4/core/versions.js +5 -0
  1518. package/node_modules/zod/v4/core/visit.cjs +214 -0
  1519. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  1520. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  1521. package/node_modules/zod/v4/core/visit.js +169 -0
  1522. package/node_modules/zod/v4/index.cjs +51 -0
  1523. package/node_modules/zod/v4/index.d.cts +3 -0
  1524. package/node_modules/zod/v4/index.d.ts +3 -0
  1525. package/node_modules/zod/v4/index.js +4 -0
  1526. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  1527. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1528. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1529. package/node_modules/zod/v4/locales/ar.js +111 -0
  1530. package/node_modules/zod/v4/locales/az.cjs +137 -0
  1531. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  1532. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1533. package/node_modules/zod/v4/locales/az.js +110 -0
  1534. package/node_modules/zod/v4/locales/be.cjs +195 -0
  1535. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  1536. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1537. package/node_modules/zod/v4/locales/be.js +168 -0
  1538. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  1539. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1540. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1541. package/node_modules/zod/v4/locales/bg.js +125 -0
  1542. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  1543. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1544. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1545. package/node_modules/zod/v4/locales/bn.js +113 -0
  1546. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  1547. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1548. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1549. package/node_modules/zod/v4/locales/ca.js +112 -0
  1550. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1551. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1552. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1553. package/node_modules/zod/v4/locales/ckb.js +133 -0
  1554. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  1555. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1556. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1557. package/node_modules/zod/v4/locales/cs.js +116 -0
  1558. package/node_modules/zod/v4/locales/da.cjs +147 -0
  1559. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  1560. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  1561. package/node_modules/zod/v4/locales/da.js +120 -0
  1562. package/node_modules/zod/v4/locales/de.cjs +140 -0
  1563. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  1564. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1565. package/node_modules/zod/v4/locales/de.js +113 -0
  1566. package/node_modules/zod/v4/locales/el.cjs +139 -0
  1567. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  1568. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  1569. package/node_modules/zod/v4/locales/el.js +112 -0
  1570. package/node_modules/zod/v4/locales/en.cjs +152 -0
  1571. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1572. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  1573. package/node_modules/zod/v4/locales/en.js +125 -0
  1574. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  1575. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1576. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1577. package/node_modules/zod/v4/locales/eo.js +114 -0
  1578. package/node_modules/zod/v4/locales/es.cjs +163 -0
  1579. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  1580. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1581. package/node_modules/zod/v4/locales/es.js +136 -0
  1582. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  1583. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1584. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1585. package/node_modules/zod/v4/locales/fa.js +119 -0
  1586. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  1587. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1588. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1589. package/node_modules/zod/v4/locales/fi.js +117 -0
  1590. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1591. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1592. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1593. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1594. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  1595. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1596. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1597. package/node_modules/zod/v4/locales/fr.js +129 -0
  1598. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  1599. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1600. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1601. package/node_modules/zod/v4/locales/gu.js +113 -0
  1602. package/node_modules/zod/v4/locales/he.cjs +248 -0
  1603. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  1604. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1605. package/node_modules/zod/v4/locales/he.js +221 -0
  1606. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  1607. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1608. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1609. package/node_modules/zod/v4/locales/hi.js +111 -0
  1610. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  1611. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1612. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1613. package/node_modules/zod/v4/locales/hr.js +126 -0
  1614. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  1615. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1616. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1617. package/node_modules/zod/v4/locales/hu.js +113 -0
  1618. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  1619. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1620. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1621. package/node_modules/zod/v4/locales/hy.js +158 -0
  1622. package/node_modules/zod/v4/locales/id.cjs +138 -0
  1623. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  1624. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1625. package/node_modules/zod/v4/locales/id.js +111 -0
  1626. package/node_modules/zod/v4/locales/index.cjs +152 -0
  1627. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  1628. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  1629. package/node_modules/zod/v4/locales/index.js +63 -0
  1630. package/node_modules/zod/v4/locales/is.cjs +141 -0
  1631. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  1632. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  1633. package/node_modules/zod/v4/locales/is.js +114 -0
  1634. package/node_modules/zod/v4/locales/it.cjs +140 -0
  1635. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  1636. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1637. package/node_modules/zod/v4/locales/it.js +113 -0
  1638. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  1639. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1640. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1641. package/node_modules/zod/v4/locales/ja.js +112 -0
  1642. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  1643. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1644. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1645. package/node_modules/zod/v4/locales/ka.js +117 -0
  1646. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  1647. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1648. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1649. package/node_modules/zod/v4/locales/kh.js +5 -0
  1650. package/node_modules/zod/v4/locales/km.cjs +142 -0
  1651. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  1652. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  1653. package/node_modules/zod/v4/locales/km.js +115 -0
  1654. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  1655. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1656. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1657. package/node_modules/zod/v4/locales/kn.js +116 -0
  1658. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  1659. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1660. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1661. package/node_modules/zod/v4/locales/ko.js +116 -0
  1662. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  1663. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1664. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1665. package/node_modules/zod/v4/locales/lt.js +207 -0
  1666. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  1667. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1668. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1669. package/node_modules/zod/v4/locales/mk.js +114 -0
  1670. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  1671. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1672. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1673. package/node_modules/zod/v4/locales/ms.js +112 -0
  1674. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  1675. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1676. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1677. package/node_modules/zod/v4/locales/ne.js +111 -0
  1678. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  1679. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1680. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1681. package/node_modules/zod/v4/locales/nl.js +115 -0
  1682. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  1683. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1684. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1685. package/node_modules/zod/v4/locales/nn.js +113 -0
  1686. package/node_modules/zod/v4/locales/no.cjs +140 -0
  1687. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  1688. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1689. package/node_modules/zod/v4/locales/no.js +113 -0
  1690. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  1691. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1692. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1693. package/node_modules/zod/v4/locales/ota.js +114 -0
  1694. package/node_modules/zod/v4/locales/package.json +7 -0
  1695. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  1696. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1697. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1698. package/node_modules/zod/v4/locales/pl.js +114 -0
  1699. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  1700. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1701. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1702. package/node_modules/zod/v4/locales/ps.js +119 -0
  1703. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1704. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1705. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1706. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1707. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  1708. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1709. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1710. package/node_modules/zod/v4/locales/pt.js +142 -0
  1711. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  1712. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1713. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1714. package/node_modules/zod/v4/locales/ro.js +122 -0
  1715. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  1716. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1717. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1718. package/node_modules/zod/v4/locales/ru.js +168 -0
  1719. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  1720. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1721. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1722. package/node_modules/zod/v4/locales/sk.js +116 -0
  1723. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  1724. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1725. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1726. package/node_modules/zod/v4/locales/sl.js +114 -0
  1727. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  1728. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1729. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1730. package/node_modules/zod/v4/locales/sv.js +115 -0
  1731. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  1732. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1733. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1734. package/node_modules/zod/v4/locales/ta.js +115 -0
  1735. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  1736. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1737. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1738. package/node_modules/zod/v4/locales/tg.js +117 -0
  1739. package/node_modules/zod/v4/locales/th.cjs +142 -0
  1740. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  1741. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1742. package/node_modules/zod/v4/locales/th.js +115 -0
  1743. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  1744. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1745. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1746. package/node_modules/zod/v4/locales/tk.js +107 -0
  1747. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  1748. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1749. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1750. package/node_modules/zod/v4/locales/tr.js +110 -0
  1751. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  1752. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1753. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1754. package/node_modules/zod/v4/locales/ua.js +5 -0
  1755. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  1756. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1757. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1758. package/node_modules/zod/v4/locales/uk.js +113 -0
  1759. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  1760. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1761. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1762. package/node_modules/zod/v4/locales/ur.js +115 -0
  1763. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  1764. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1765. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1766. package/node_modules/zod/v4/locales/uz.js +113 -0
  1767. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  1768. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1769. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1770. package/node_modules/zod/v4/locales/vi.js +113 -0
  1771. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  1772. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1773. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1774. package/node_modules/zod/v4/locales/yo.js +112 -0
  1775. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1776. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1777. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1778. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1779. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1780. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1781. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1782. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1783. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  1784. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1785. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1786. package/node_modules/zod/v4/mini/checks.js +1 -0
  1787. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1788. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1789. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1790. package/node_modules/zod/v4/mini/coerce.js +22 -0
  1791. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1792. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1793. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1794. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1795. package/node_modules/zod/v4/mini/external.cjs +95 -0
  1796. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  1797. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  1798. package/node_modules/zod/v4/mini/external.js +16 -0
  1799. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1800. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1801. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1802. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1803. package/node_modules/zod/v4/mini/index.cjs +51 -0
  1804. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1805. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1806. package/node_modules/zod/v4/mini/index.js +3 -0
  1807. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  1808. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1809. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1810. package/node_modules/zod/v4/mini/iso.js +34 -0
  1811. package/node_modules/zod/v4/mini/package.json +7 -0
  1812. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  1813. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1814. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1815. package/node_modules/zod/v4/mini/parse.js +1 -0
  1816. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1817. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1818. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1819. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  1820. package/node_modules/zod/v4/package.json +7 -0
  1821. package/node_modules/zod/v4-mini/index.cjs +51 -0
  1822. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  1823. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  1824. package/node_modules/zod/v4-mini/index.js +3 -0
  1825. package/node_modules/zod/v4-mini/package.json +7 -0
  1826. package/package.json +50 -0
@@ -0,0 +1,3084 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { defaultOnError, excludeKnownTags, preserveCustomPayload, requiredDefaultOnError, vecSkipError, } from "../schema-deserialize.js";
3
+ import * as z from "zod/v4";
4
+ /**
5
+ * JSON RPC Request Id
6
+ *
7
+ * An identifier established by the Client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification. The value SHOULD normally not be Null \[1\] and Numbers SHOULD NOT contain fractional parts \[2\]
8
+ *
9
+ * The Server MUST reply with the same value in the Response object if included. This member is used to correlate the context between the two objects.
10
+ *
11
+ * \[1\] The use of Null as a value for the id member in a Request object is discouraged, because this specification uses a value of Null for Responses with an unknown id. Also, because JSON-RPC 1.0 uses an id value of Null for Notifications this could cause confusion in handling.
12
+ *
13
+ * \[2\] Fractional parts may be problematic, since many decimal fractions cannot be represented exactly as binary fractions.
14
+ */
15
+ export const zRequestId = z.union([z.number(), z.string()]).nullable();
16
+ /**
17
+ * A unique identifier for a conversation session between a client and agent.
18
+ *
19
+ * Sessions maintain their own context, conversation history, and state,
20
+ * allowing multiple independent interactions with the same agent.
21
+ *
22
+ * See protocol docs: [Session ID](https://agentclientprotocol.com/protocol/session-setup#session-id)
23
+ */
24
+ export const zSessionId = z.string();
25
+ /**
26
+ * Request to write content to a text file.
27
+ *
28
+ * Only available if the client supports the `fs.writeTextFile` capability.
29
+ */
30
+ export const zWriteTextFileRequest = z.object({
31
+ sessionId: zSessionId,
32
+ path: z.string(),
33
+ content: z.string(),
34
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
35
+ });
36
+ /**
37
+ * Request to read content from a text file.
38
+ *
39
+ * Only available if the client supports the `fs.readTextFile` capability.
40
+ */
41
+ export const zReadTextFileRequest = z.object({
42
+ sessionId: zSessionId,
43
+ path: z.string(),
44
+ line: defaultOnError(z
45
+ .int()
46
+ .gte(0)
47
+ .max(4294967295, {
48
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
49
+ })
50
+ .nullish(), () => undefined),
51
+ limit: defaultOnError(z
52
+ .int()
53
+ .gte(0)
54
+ .max(4294967295, {
55
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
56
+ })
57
+ .nullish(), () => undefined),
58
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
59
+ });
60
+ /**
61
+ * Unique identifier for a tool call within a session.
62
+ */
63
+ export const zToolCallId = z.string();
64
+ /**
65
+ * Categories of tools that can be invoked.
66
+ *
67
+ * Tool kinds help clients choose appropriate icons and optimize how they
68
+ * display tool execution progress.
69
+ *
70
+ * See protocol docs: [Creating](https://agentclientprotocol.com/protocol/tool-calls#creating)
71
+ */
72
+ export const zToolKind = z.union([
73
+ z.literal("read"),
74
+ z.literal("edit"),
75
+ z.literal("delete"),
76
+ z.literal("move"),
77
+ z.literal("search"),
78
+ z.literal("execute"),
79
+ z.literal("think"),
80
+ z.literal("fetch"),
81
+ z.literal("switch_mode"),
82
+ z.literal("other"),
83
+ ]);
84
+ /**
85
+ * Execution status of a tool call.
86
+ *
87
+ * Tool calls progress through different statuses during their lifecycle.
88
+ *
89
+ * See protocol docs: [Status](https://agentclientprotocol.com/protocol/tool-calls#status)
90
+ */
91
+ export const zToolCallStatus = z.union([
92
+ z.literal("pending"),
93
+ z.literal("in_progress"),
94
+ z.literal("completed"),
95
+ z.literal("failed"),
96
+ ]);
97
+ /**
98
+ * The sender or recipient of messages and data in a conversation.
99
+ */
100
+ export const zRole = z.union([z.literal("assistant"), z.literal("user")]);
101
+ /**
102
+ * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
103
+ */
104
+ export const zAnnotations = z.object({
105
+ audience: defaultOnError(vecSkipError(zRole).nullish(), () => undefined),
106
+ lastModified: defaultOnError(z.string().nullish(), () => undefined),
107
+ priority: defaultOnError(z.number().nullish(), () => undefined),
108
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
109
+ });
110
+ /**
111
+ * Text provided to or from an LLM.
112
+ */
113
+ export const zTextContent = z.object({
114
+ annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
115
+ text: z.string(),
116
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
117
+ });
118
+ /**
119
+ * An image provided to or from an LLM.
120
+ */
121
+ export const zImageContent = z.object({
122
+ annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
123
+ data: z.string(),
124
+ mimeType: z.string(),
125
+ uri: defaultOnError(z.string().nullish(), () => undefined),
126
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
127
+ });
128
+ /**
129
+ * Audio provided to or from an LLM.
130
+ */
131
+ export const zAudioContent = z.object({
132
+ annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
133
+ data: z.string(),
134
+ mimeType: z.string(),
135
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
136
+ });
137
+ /**
138
+ * A resource that the server is capable of reading, included in a prompt or tool call result.
139
+ */
140
+ export const zResourceLink = z.object({
141
+ annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
142
+ description: defaultOnError(z.string().nullish(), () => undefined),
143
+ mimeType: defaultOnError(z.string().nullish(), () => undefined),
144
+ name: z.string(),
145
+ size: defaultOnError(z.number().nullish(), () => undefined),
146
+ title: defaultOnError(z.string().nullish(), () => undefined),
147
+ uri: z.string(),
148
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
149
+ });
150
+ /**
151
+ * Text-based resource contents.
152
+ */
153
+ export const zTextResourceContents = z.object({
154
+ mimeType: defaultOnError(z.string().nullish(), () => undefined),
155
+ text: z.string(),
156
+ uri: z.string(),
157
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
158
+ });
159
+ /**
160
+ * Binary resource contents.
161
+ */
162
+ export const zBlobResourceContents = z.object({
163
+ blob: z.string(),
164
+ mimeType: defaultOnError(z.string().nullish(), () => undefined),
165
+ uri: z.string(),
166
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
167
+ });
168
+ /**
169
+ * Resource content that can be embedded in a message.
170
+ */
171
+ export const zEmbeddedResourceResource = z.union([
172
+ zTextResourceContents,
173
+ zBlobResourceContents,
174
+ ]);
175
+ /**
176
+ * The contents of a resource, embedded into a prompt or tool call result.
177
+ */
178
+ export const zEmbeddedResource = z.object({
179
+ annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
180
+ resource: zEmbeddedResourceResource,
181
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
182
+ });
183
+ /**
184
+ * Content blocks represent displayable information in the Agent Client Protocol.
185
+ *
186
+ * They provide a structured way to handle various types of user-facing content—whether
187
+ * it's text from language models, images for analysis, or embedded resources for context.
188
+ *
189
+ * Content blocks appear in:
190
+ * - User prompts sent via `session/prompt`
191
+ * - Language model output streamed through `session/update` notifications
192
+ * - Progress updates and results from tool calls
193
+ *
194
+ * This structure is compatible with the Model Context Protocol (MCP), enabling
195
+ * agents to seamlessly forward content from MCP tool outputs without transformation.
196
+ *
197
+ * See protocol docs: [Content](https://agentclientprotocol.com/protocol/content)
198
+ */
199
+ export const zContentBlock = z.union([
200
+ zTextContent.and(z.object({
201
+ type: z.literal("text"),
202
+ })),
203
+ zImageContent.and(z.object({
204
+ type: z.literal("image"),
205
+ })),
206
+ zAudioContent.and(z.object({
207
+ type: z.literal("audio"),
208
+ })),
209
+ zResourceLink.and(z.object({
210
+ type: z.literal("resource_link"),
211
+ })),
212
+ zEmbeddedResource.and(z.object({
213
+ type: z.literal("resource"),
214
+ })),
215
+ ]);
216
+ /**
217
+ * Standard content block (text, images, resources).
218
+ */
219
+ export const zContent = z.object({
220
+ content: zContentBlock,
221
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
222
+ });
223
+ /**
224
+ * A diff representing file modifications.
225
+ *
226
+ * Shows changes to files in a format suitable for display in the client UI.
227
+ *
228
+ * See protocol docs: [Content](https://agentclientprotocol.com/protocol/tool-calls#content)
229
+ */
230
+ export const zDiff = z.object({
231
+ path: z.string(),
232
+ oldText: defaultOnError(z.string().nullish(), () => undefined),
233
+ newText: z.string(),
234
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
235
+ });
236
+ /**
237
+ * Typed identifier used for terminal values on the wire.
238
+ */
239
+ export const zTerminalId = z.string();
240
+ /**
241
+ * Embed a terminal created with `terminal/create` by its id.
242
+ *
243
+ * The terminal must be added before calling `terminal/release`.
244
+ *
245
+ * See protocol docs: [Terminal](https://agentclientprotocol.com/protocol/terminals)
246
+ */
247
+ export const zTerminal = z.object({
248
+ terminalId: zTerminalId,
249
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
250
+ });
251
+ /**
252
+ * Content produced by a tool call.
253
+ *
254
+ * Tool calls can produce different types of content including
255
+ * standard content blocks (text, images) or file diffs.
256
+ *
257
+ * See protocol docs: [Content](https://agentclientprotocol.com/protocol/tool-calls#content)
258
+ */
259
+ export const zToolCallContent = z.union([
260
+ zContent.and(z.object({
261
+ type: z.literal("content"),
262
+ })),
263
+ zDiff.and(z.object({
264
+ type: z.literal("diff"),
265
+ })),
266
+ zTerminal.and(z.object({
267
+ type: z.literal("terminal"),
268
+ })),
269
+ ]);
270
+ /**
271
+ * A file location being accessed or modified by a tool.
272
+ *
273
+ * Enables clients to implement "follow-along" features that track
274
+ * which files the agent is working with in real-time.
275
+ *
276
+ * See protocol docs: [Following the Agent](https://agentclientprotocol.com/protocol/tool-calls#following-the-agent)
277
+ */
278
+ export const zToolCallLocation = z.object({
279
+ path: z.string(),
280
+ line: defaultOnError(z
281
+ .int()
282
+ .gte(0)
283
+ .max(4294967295, {
284
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
285
+ })
286
+ .nullish(), () => undefined),
287
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
288
+ });
289
+ /**
290
+ * An update to an existing tool call.
291
+ *
292
+ * Used to report progress and results as tools execute. All fields except
293
+ * the tool call ID are optional - only changed fields need to be included.
294
+ *
295
+ * See protocol docs: [Updating](https://agentclientprotocol.com/protocol/tool-calls#updating)
296
+ */
297
+ export const zToolCallUpdate = z.object({
298
+ toolCallId: zToolCallId,
299
+ kind: defaultOnError(zToolKind.nullish(), () => undefined),
300
+ status: defaultOnError(zToolCallStatus.nullish(), () => undefined),
301
+ title: defaultOnError(z.string().nullish(), () => undefined),
302
+ name: defaultOnError(z.string().nullish(), () => undefined),
303
+ content: defaultOnError(vecSkipError(zToolCallContent).nullish(), () => undefined),
304
+ locations: defaultOnError(vecSkipError(zToolCallLocation).nullish(), () => undefined),
305
+ rawInput: defaultOnError(z.unknown().optional(), () => undefined),
306
+ rawOutput: defaultOnError(z.unknown().optional(), () => undefined),
307
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
308
+ });
309
+ /**
310
+ * Unique identifier for a permission option.
311
+ */
312
+ export const zPermissionOptionId = z.string();
313
+ /**
314
+ * The type of permission option being presented to the user.
315
+ *
316
+ * Helps clients choose appropriate icons and UI treatment.
317
+ */
318
+ export const zPermissionOptionKind = z.union([
319
+ z.literal("allow_once"),
320
+ z.literal("allow_always"),
321
+ z.literal("reject_once"),
322
+ z.literal("reject_always"),
323
+ ]);
324
+ /**
325
+ * An option presented to the user when requesting permission.
326
+ */
327
+ export const zPermissionOption = z.object({
328
+ optionId: zPermissionOptionId,
329
+ name: z.string(),
330
+ kind: zPermissionOptionKind,
331
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
332
+ });
333
+ /**
334
+ * Request for user permission to execute a tool call.
335
+ *
336
+ * Sent when the agent needs authorization before performing a sensitive operation.
337
+ *
338
+ * See protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/tool-calls#requesting-permission)
339
+ */
340
+ export const zRequestPermissionRequest = z.object({
341
+ sessionId: zSessionId,
342
+ toolCall: zToolCallUpdate,
343
+ options: z.array(zPermissionOption),
344
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
345
+ });
346
+ /**
347
+ * An environment variable to set when launching an MCP server.
348
+ */
349
+ export const zEnvVariable = z.object({
350
+ name: z.string(),
351
+ value: z.string(),
352
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
353
+ });
354
+ /**
355
+ * Request to create a new terminal and execute a command.
356
+ */
357
+ export const zCreateTerminalRequest = z.object({
358
+ sessionId: zSessionId,
359
+ command: z.string(),
360
+ args: defaultOnError(vecSkipError(z.string()).optional(), () => []),
361
+ env: defaultOnError(vecSkipError(zEnvVariable).optional(), () => []),
362
+ cwd: defaultOnError(z.string().nullish(), () => undefined),
363
+ outputByteLimit: defaultOnError(z.number().nullish(), () => undefined),
364
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
365
+ });
366
+ /**
367
+ * Request to get the current output and status of a terminal.
368
+ */
369
+ export const zTerminalOutputRequest = z.object({
370
+ sessionId: zSessionId,
371
+ terminalId: zTerminalId,
372
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
373
+ });
374
+ /**
375
+ * Request to release a terminal and free its resources.
376
+ */
377
+ export const zReleaseTerminalRequest = z.object({
378
+ sessionId: zSessionId,
379
+ terminalId: zTerminalId,
380
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
381
+ });
382
+ /**
383
+ * Request to wait for a terminal command to exit.
384
+ */
385
+ export const zWaitForTerminalExitRequest = z.object({
386
+ sessionId: zSessionId,
387
+ terminalId: zTerminalId,
388
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
389
+ });
390
+ /**
391
+ * Request to kill a terminal without releasing it.
392
+ */
393
+ export const zKillTerminalRequest = z.object({
394
+ sessionId: zSessionId,
395
+ terminalId: zTerminalId,
396
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
397
+ });
398
+ /**
399
+ * Session-scoped elicitation, optionally tied to a specific tool call.
400
+ *
401
+ * When `tool_call_id` is set, the elicitation is tied to a specific tool call.
402
+ * This is useful when an agent receives an elicitation from an MCP server
403
+ * during a tool call and needs to redirect it to the user.
404
+ */
405
+ export const zElicitationSessionScope = z.object({
406
+ sessionId: zSessionId,
407
+ toolCallId: defaultOnError(zToolCallId.nullish(), () => undefined),
408
+ });
409
+ /**
410
+ * Request-scoped elicitation, tied to a specific JSON-RPC request outside of a session
411
+ * (e.g., during auth/configuration phases before any session is started).
412
+ */
413
+ export const zElicitationRequestScope = z.object({
414
+ requestId: zRequestId,
415
+ });
416
+ /**
417
+ * Object schema type.
418
+ */
419
+ export const zElicitationSchemaType = z.literal("object");
420
+ /**
421
+ * String format types for string properties in elicitation schemas.
422
+ */
423
+ export const zStringFormat = z.union([
424
+ z.literal("email"),
425
+ z.literal("uri"),
426
+ z.literal("date"),
427
+ z.literal("date-time"),
428
+ ]);
429
+ /**
430
+ * A titled enum option with a const value, human-readable title, and optional description.
431
+ */
432
+ export const zEnumOption = z.object({
433
+ const: z.string(),
434
+ title: z.string(),
435
+ description: defaultOnError(z.string().nullish(), () => undefined),
436
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
437
+ });
438
+ /**
439
+ * Schema for string properties in an elicitation form.
440
+ *
441
+ * When `enum` or `oneOf` is set, this represents a single-select enum
442
+ * with `"type": "string"`.
443
+ */
444
+ export const zStringPropertySchema = z.object({
445
+ title: defaultOnError(z.string().nullish(), () => undefined),
446
+ description: defaultOnError(z.string().nullish(), () => undefined),
447
+ minLength: z
448
+ .int()
449
+ .gte(0)
450
+ .max(4294967295, {
451
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
452
+ })
453
+ .nullish(),
454
+ maxLength: z
455
+ .int()
456
+ .gte(0)
457
+ .max(4294967295, {
458
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
459
+ })
460
+ .nullish(),
461
+ pattern: z.string().nullish(),
462
+ format: zStringFormat.nullish(),
463
+ default: defaultOnError(z.string().nullish(), () => undefined),
464
+ enum: z.array(z.string()).nullish(),
465
+ oneOf: z.array(zEnumOption).nullish(),
466
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
467
+ });
468
+ /**
469
+ * Schema for number (floating-point) properties in an elicitation form.
470
+ */
471
+ export const zNumberPropertySchema = z.object({
472
+ title: defaultOnError(z.string().nullish(), () => undefined),
473
+ description: defaultOnError(z.string().nullish(), () => undefined),
474
+ minimum: z.number().nullish(),
475
+ maximum: z.number().nullish(),
476
+ default: defaultOnError(z.number().nullish(), () => undefined),
477
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
478
+ });
479
+ /**
480
+ * Schema for integer properties in an elicitation form.
481
+ */
482
+ export const zIntegerPropertySchema = z.object({
483
+ title: defaultOnError(z.string().nullish(), () => undefined),
484
+ description: defaultOnError(z.string().nullish(), () => undefined),
485
+ minimum: z.number().nullish(),
486
+ maximum: z.number().nullish(),
487
+ default: defaultOnError(z.number().nullish(), () => undefined),
488
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
489
+ });
490
+ /**
491
+ * Schema for boolean properties in an elicitation form.
492
+ */
493
+ export const zBooleanPropertySchema = z.object({
494
+ title: defaultOnError(z.string().nullish(), () => undefined),
495
+ description: defaultOnError(z.string().nullish(), () => undefined),
496
+ default: defaultOnError(z.boolean().nullish(), () => undefined),
497
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
498
+ });
499
+ /**
500
+ * String item schema for multi-select enum properties.
501
+ */
502
+ export const zStringMultiSelectItems = z.object({
503
+ enum: z.array(z.string()),
504
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
505
+ });
506
+ /**
507
+ * Items definition for titled multi-select enum properties.
508
+ */
509
+ export const zTitledMultiSelectItems = z.object({
510
+ anyOf: z.array(zEnumOption),
511
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
512
+ });
513
+ /**
514
+ * Items for a multi-select (array) property schema.
515
+ *
516
+ * Custom variants (unknown `type` values) keep their extra
517
+ * properties exactly as received; unlike known variants, those keys
518
+ * bypass lenient-field salvage and arrive unvalidated.
519
+ */
520
+ export const zMultiSelectItems = preserveCustomPayload(z.union([
521
+ zStringMultiSelectItems.and(z.object({
522
+ type: z.literal("string"),
523
+ })),
524
+ excludeKnownTags(z.object({
525
+ type: z.string(),
526
+ }), "type", ["string"]),
527
+ zTitledMultiSelectItems,
528
+ ]), "type", ["string"]);
529
+ /**
530
+ * Schema for multi-select (array) properties in an elicitation form.
531
+ */
532
+ export const zMultiSelectPropertySchema = z.object({
533
+ title: defaultOnError(z.string().nullish(), () => undefined),
534
+ description: defaultOnError(z.string().nullish(), () => undefined),
535
+ minItems: z.number().nullish(),
536
+ maxItems: z.number().nullish(),
537
+ items: zMultiSelectItems,
538
+ default: defaultOnError(vecSkipError(z.string()).nullish(), () => undefined),
539
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
540
+ });
541
+ /**
542
+ * Property schema for elicitation form fields.
543
+ *
544
+ * Each variant corresponds to a JSON Schema `"type"` value.
545
+ * Single-select enums use the `String` variant with `enum` or `oneOf` set.
546
+ * Multi-select enums use the `Array` variant.
547
+ *
548
+ * Custom variants (unknown `type` values) keep their extra
549
+ * properties exactly as received; unlike known variants, those keys
550
+ * bypass lenient-field salvage and arrive unvalidated.
551
+ */
552
+ export const zElicitationPropertySchema = preserveCustomPayload(z.union([
553
+ zStringPropertySchema.and(z.object({
554
+ type: z.literal("string"),
555
+ })),
556
+ zNumberPropertySchema.and(z.object({
557
+ type: z.literal("number"),
558
+ })),
559
+ zIntegerPropertySchema.and(z.object({
560
+ type: z.literal("integer"),
561
+ })),
562
+ zBooleanPropertySchema.and(z.object({
563
+ type: z.literal("boolean"),
564
+ })),
565
+ zMultiSelectPropertySchema.and(z.object({
566
+ type: z.literal("array"),
567
+ })),
568
+ excludeKnownTags(z.object({
569
+ type: z.string(),
570
+ }), "type", ["array", "boolean", "integer", "number", "string"]),
571
+ ]), "type", ["array", "boolean", "integer", "number", "string"]);
572
+ /**
573
+ * Type-safe elicitation schema for requesting structured user input.
574
+ *
575
+ * This represents a JSON Schema object with primitive-typed properties,
576
+ * as required by the elicitation specification.
577
+ */
578
+ export const zElicitationSchema = z.object({
579
+ type: defaultOnError(zElicitationSchemaType.optional().default("object"), () => "object"),
580
+ title: defaultOnError(z.string().nullish(), () => undefined),
581
+ properties: z
582
+ .record(z.string(), zElicitationPropertySchema)
583
+ .optional()
584
+ .default({}),
585
+ required: z.array(z.string()).nullish(),
586
+ description: defaultOnError(z.string().nullish(), () => undefined),
587
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
588
+ });
589
+ /**
590
+ * Form-based elicitation mode where the client renders a form from the provided schema.
591
+ */
592
+ export const zElicitationFormMode = z.intersection(z.union([zElicitationSessionScope, zElicitationRequestScope]), z.object({
593
+ requestedSchema: zElicitationSchema,
594
+ }));
595
+ /**
596
+ * Unique identifier for an elicitation.
597
+ */
598
+ export const zElicitationId = z.string();
599
+ /**
600
+ * URL-based elicitation mode where the client directs the user to a URL.
601
+ */
602
+ export const zElicitationUrlMode = z.intersection(z.union([zElicitationSessionScope, zElicitationRequestScope]), z.object({
603
+ elicitationId: zElicitationId,
604
+ url: z.url(),
605
+ }));
606
+ /**
607
+ * Request from the agent to elicit structured user input.
608
+ *
609
+ * The agent sends this to the client to request information from the user,
610
+ * either via a form or by directing them to a URL.
611
+ * Elicitations are tied to a session (optionally a tool call) or a request.
612
+ *
613
+ * Custom variants (unknown `mode` values) keep their extra
614
+ * properties exactly as received; unlike known variants, those keys
615
+ * bypass lenient-field salvage and arrive unvalidated.
616
+ */
617
+ export const zCreateElicitationRequest = preserveCustomPayload(z.intersection(z.union([
618
+ zElicitationFormMode.and(z.object({
619
+ mode: z.literal("form"),
620
+ })),
621
+ zElicitationUrlMode.and(z.object({
622
+ mode: z.literal("url"),
623
+ })),
624
+ excludeKnownTags(z.intersection(z.union([zElicitationSessionScope, zElicitationRequestScope]), z.object({
625
+ mode: z.string(),
626
+ })), "mode", ["form", "url"]),
627
+ ]), z.object({
628
+ message: z.string(),
629
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
630
+ })), "mode", ["form", "url"]);
631
+ /**
632
+ * **UNSTABLE**
633
+ *
634
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
635
+ *
636
+ * Unique identifier for an MCP server using the ACP transport.
637
+ *
638
+ * The value is opaque and generated by the ACP component providing the MCP server. It is
639
+ * used by `mcp/connect` to route connection requests back to the component that declared the
640
+ * server.
641
+ *
642
+ * @experimental
643
+ */
644
+ export const zMcpServerAcpId = z.string();
645
+ /**
646
+ * **UNSTABLE**
647
+ *
648
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
649
+ *
650
+ * Request parameters for `mcp/connect`.
651
+ *
652
+ * @experimental
653
+ */
654
+ export const zConnectMcpRequest = z.object({
655
+ serverId: zMcpServerAcpId,
656
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
657
+ });
658
+ /**
659
+ * **UNSTABLE**
660
+ *
661
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
662
+ *
663
+ * A unique identifier for an active MCP-over-ACP connection.
664
+ *
665
+ * @experimental
666
+ */
667
+ export const zMcpConnectionId = z.string();
668
+ /**
669
+ * **UNSTABLE**
670
+ *
671
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
672
+ *
673
+ * Request parameters for `mcp/message`.
674
+ *
675
+ * @experimental
676
+ */
677
+ export const zMessageMcpRequest = z.object({
678
+ connectionId: zMcpConnectionId,
679
+ method: z.string(),
680
+ params: z.record(z.string(), z.unknown()).nullish(),
681
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
682
+ });
683
+ /**
684
+ * **UNSTABLE**
685
+ *
686
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
687
+ *
688
+ * Request parameters for `mcp/disconnect`.
689
+ *
690
+ * @experimental
691
+ */
692
+ export const zDisconnectMcpRequest = z.object({
693
+ connectionId: zMcpConnectionId,
694
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
695
+ });
696
+ /**
697
+ * Allows for sending an arbitrary request that is not part of the ACP spec.
698
+ * Extension methods provide a way to add custom functionality while maintaining
699
+ * protocol compatibility.
700
+ *
701
+ * See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
702
+ */
703
+ export const zExtRequest = z.unknown();
704
+ /**
705
+ * A JSON-RPC request object.
706
+ */
707
+ export const zAgentRequest = z.object({
708
+ id: zRequestId,
709
+ method: z.string(),
710
+ params: z
711
+ .union([
712
+ zWriteTextFileRequest,
713
+ zReadTextFileRequest,
714
+ zRequestPermissionRequest,
715
+ zCreateTerminalRequest,
716
+ zTerminalOutputRequest,
717
+ zReleaseTerminalRequest,
718
+ zWaitForTerminalExitRequest,
719
+ zKillTerminalRequest,
720
+ zCreateElicitationRequest,
721
+ zConnectMcpRequest,
722
+ zMessageMcpRequest,
723
+ zDisconnectMcpRequest,
724
+ zExtRequest,
725
+ ])
726
+ .nullish(),
727
+ });
728
+ /**
729
+ * Protocol version identifier.
730
+ *
731
+ * This version is only bumped for breaking changes.
732
+ * Non-breaking changes should be introduced via capabilities.
733
+ */
734
+ export const zProtocolVersion = z.int().gte(0).lte(65535);
735
+ /**
736
+ * Prompt capabilities supported by the agent in `session/prompt` requests.
737
+ *
738
+ * Baseline agent functionality requires support for [`ContentBlock::Text`]
739
+ * and [`ContentBlock::ResourceLink`] in prompt requests.
740
+ *
741
+ * Other variants must be explicitly opted in to.
742
+ * Capabilities for different types of content in prompt requests.
743
+ *
744
+ * Indicates which content types beyond the baseline (text and resource links)
745
+ * the agent can process.
746
+ *
747
+ * See protocol docs: [Prompt Capabilities](https://agentclientprotocol.com/protocol/initialization#prompt-capabilities)
748
+ */
749
+ export const zPromptCapabilities = z.object({
750
+ image: defaultOnError(z.boolean().optional().default(false), () => false),
751
+ audio: defaultOnError(z.boolean().optional().default(false), () => false),
752
+ embeddedContext: defaultOnError(z.boolean().optional().default(false), () => false),
753
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
754
+ });
755
+ /**
756
+ * MCP capabilities supported by the agent
757
+ */
758
+ export const zMcpCapabilities = z.object({
759
+ http: defaultOnError(z.boolean().optional().default(false), () => false),
760
+ sse: defaultOnError(z.boolean().optional().default(false), () => false),
761
+ acp: defaultOnError(z.boolean().optional().default(false), () => false),
762
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
763
+ });
764
+ /**
765
+ * Capabilities for the `session/list` method.
766
+ *
767
+ * Supplying `{}` means the agent supports listing sessions.
768
+ */
769
+ export const zSessionListCapabilities = z.object({
770
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
771
+ });
772
+ /**
773
+ * Capabilities for the `session/delete` method.
774
+ *
775
+ * Supplying `{}` means the agent supports deleting sessions from `session/list`.
776
+ */
777
+ export const zSessionDeleteCapabilities = z.object({
778
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
779
+ });
780
+ /**
781
+ * Capabilities for additional session directories support.
782
+ *
783
+ * Supplying `{}` means the agent supports the `additionalDirectories` field on
784
+ * supported session lifecycle requests. Agents that also support
785
+ * `session/list` may return `SessionInfo.additionalDirectories` to report the
786
+ * complete ordered additional-root list associated with a listed session.
787
+ */
788
+ export const zSessionAdditionalDirectoriesCapabilities = z.object({
789
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
790
+ });
791
+ /**
792
+ * **UNSTABLE**
793
+ *
794
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
795
+ *
796
+ * Capabilities for the `session/fork` method.
797
+ *
798
+ * Supplying `{}` means the agent supports forking sessions.
799
+ *
800
+ * @experimental
801
+ */
802
+ export const zSessionForkCapabilities = z.object({
803
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
804
+ });
805
+ /**
806
+ * Capabilities for the `session/resume` method.
807
+ *
808
+ * Supplying `{}` means the agent supports resuming sessions.
809
+ */
810
+ export const zSessionResumeCapabilities = z.object({
811
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
812
+ });
813
+ /**
814
+ * Capabilities for the `session/close` method.
815
+ *
816
+ * Supplying `{}` means the agent supports closing sessions.
817
+ */
818
+ export const zSessionCloseCapabilities = z.object({
819
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
820
+ });
821
+ /**
822
+ * Session capabilities supported by the agent.
823
+ *
824
+ * As a baseline, all Agents **MUST** support `session/new`, `session/prompt`, `session/cancel`, and `session/update`.
825
+ *
826
+ * Optionally, they **MAY** support other session methods and notifications by specifying additional capabilities.
827
+ *
828
+ * Note: `session/load` is still handled by the top-level `load_session` capability. This will be unified in future versions of the protocol.
829
+ *
830
+ * See protocol docs: [Session Capabilities](https://agentclientprotocol.com/protocol/initialization#session-capabilities)
831
+ */
832
+ export const zSessionCapabilities = z.object({
833
+ list: defaultOnError(zSessionListCapabilities.nullish(), () => undefined),
834
+ delete: defaultOnError(zSessionDeleteCapabilities.nullish(), () => undefined),
835
+ additionalDirectories: defaultOnError(zSessionAdditionalDirectoriesCapabilities.nullish(), () => undefined),
836
+ fork: defaultOnError(zSessionForkCapabilities.nullish(), () => undefined),
837
+ resume: defaultOnError(zSessionResumeCapabilities.nullish(), () => undefined),
838
+ close: defaultOnError(zSessionCloseCapabilities.nullish(), () => undefined),
839
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
840
+ });
841
+ /**
842
+ * Logout capabilities supported by the agent.
843
+ *
844
+ * Supplying `{}` means the agent supports the logout method.
845
+ */
846
+ export const zLogoutCapabilities = z.object({
847
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
848
+ });
849
+ /**
850
+ * Authentication-related capabilities supported by the agent.
851
+ */
852
+ export const zAgentAuthCapabilities = z.object({
853
+ logout: defaultOnError(zLogoutCapabilities.nullish(), () => undefined),
854
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
855
+ });
856
+ /**
857
+ * **UNSTABLE**
858
+ *
859
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
860
+ *
861
+ * Provider configuration capabilities supported by the agent.
862
+ *
863
+ * Supplying `{}` means the agent supports provider configuration methods.
864
+ *
865
+ * @experimental
866
+ */
867
+ export const zProvidersCapabilities = z.object({
868
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
869
+ });
870
+ /**
871
+ * Marker for `document/didOpen` capability support.
872
+ */
873
+ export const zNesDocumentDidOpenCapabilities = z.object({
874
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
875
+ });
876
+ /**
877
+ * How the agent wants document changes delivered.
878
+ */
879
+ export const zTextDocumentSyncKind = z.union([
880
+ z.literal("full"),
881
+ z.literal("incremental"),
882
+ ]);
883
+ /**
884
+ * Capabilities for `document/didChange` events.
885
+ */
886
+ export const zNesDocumentDidChangeCapabilities = z.object({
887
+ syncKind: zTextDocumentSyncKind,
888
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
889
+ });
890
+ /**
891
+ * Marker for `document/didClose` capability support.
892
+ */
893
+ export const zNesDocumentDidCloseCapabilities = z.object({
894
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
895
+ });
896
+ /**
897
+ * Marker for `document/didSave` capability support.
898
+ */
899
+ export const zNesDocumentDidSaveCapabilities = z.object({
900
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
901
+ });
902
+ /**
903
+ * Marker for `document/didFocus` capability support.
904
+ */
905
+ export const zNesDocumentDidFocusCapabilities = z.object({
906
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
907
+ });
908
+ /**
909
+ * Document event capabilities the agent wants to receive.
910
+ */
911
+ export const zNesDocumentEventCapabilities = z.object({
912
+ didOpen: defaultOnError(zNesDocumentDidOpenCapabilities.nullish(), () => undefined),
913
+ didChange: defaultOnError(zNesDocumentDidChangeCapabilities.nullish(), () => undefined),
914
+ didClose: defaultOnError(zNesDocumentDidCloseCapabilities.nullish(), () => undefined),
915
+ didSave: defaultOnError(zNesDocumentDidSaveCapabilities.nullish(), () => undefined),
916
+ didFocus: defaultOnError(zNesDocumentDidFocusCapabilities.nullish(), () => undefined),
917
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
918
+ });
919
+ /**
920
+ * Event capabilities the agent can consume.
921
+ */
922
+ export const zNesEventCapabilities = z.object({
923
+ document: defaultOnError(zNesDocumentEventCapabilities.nullish(), () => undefined),
924
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
925
+ });
926
+ /**
927
+ * Capabilities for recent files context.
928
+ */
929
+ export const zNesRecentFilesCapabilities = z.object({
930
+ maxCount: defaultOnError(z
931
+ .int()
932
+ .gte(0)
933
+ .max(4294967295, {
934
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
935
+ })
936
+ .nullish(), () => undefined),
937
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
938
+ });
939
+ /**
940
+ * Capabilities for related snippets context.
941
+ */
942
+ export const zNesRelatedSnippetsCapabilities = z.object({
943
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
944
+ });
945
+ /**
946
+ * Capabilities for edit history context.
947
+ */
948
+ export const zNesEditHistoryCapabilities = z.object({
949
+ maxCount: defaultOnError(z
950
+ .int()
951
+ .gte(0)
952
+ .max(4294967295, {
953
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
954
+ })
955
+ .nullish(), () => undefined),
956
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
957
+ });
958
+ /**
959
+ * Capabilities for user actions context.
960
+ */
961
+ export const zNesUserActionsCapabilities = z.object({
962
+ maxCount: defaultOnError(z
963
+ .int()
964
+ .gte(0)
965
+ .max(4294967295, {
966
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
967
+ })
968
+ .nullish(), () => undefined),
969
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
970
+ });
971
+ /**
972
+ * Capabilities for open files context.
973
+ */
974
+ export const zNesOpenFilesCapabilities = z.object({
975
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
976
+ });
977
+ /**
978
+ * Capabilities for diagnostics context.
979
+ */
980
+ export const zNesDiagnosticsCapabilities = z.object({
981
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
982
+ });
983
+ /**
984
+ * Context capabilities the agent wants attached to each suggestion request.
985
+ */
986
+ export const zNesContextCapabilities = z.object({
987
+ recentFiles: defaultOnError(zNesRecentFilesCapabilities.nullish(), () => undefined),
988
+ relatedSnippets: defaultOnError(zNesRelatedSnippetsCapabilities.nullish(), () => undefined),
989
+ editHistory: defaultOnError(zNesEditHistoryCapabilities.nullish(), () => undefined),
990
+ userActions: defaultOnError(zNesUserActionsCapabilities.nullish(), () => undefined),
991
+ openFiles: defaultOnError(zNesOpenFilesCapabilities.nullish(), () => undefined),
992
+ diagnostics: defaultOnError(zNesDiagnosticsCapabilities.nullish(), () => undefined),
993
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
994
+ });
995
+ /**
996
+ * NES capabilities advertised by the agent during initialization.
997
+ */
998
+ export const zNesCapabilities = z.object({
999
+ events: defaultOnError(zNesEventCapabilities.nullish(), () => undefined),
1000
+ context: defaultOnError(zNesContextCapabilities.nullish(), () => undefined),
1001
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1002
+ });
1003
+ /**
1004
+ * The encoding used for character offsets in positions.
1005
+ *
1006
+ * Follows the same conventions as LSP 3.17. The default is UTF-16.
1007
+ */
1008
+ export const zPositionEncodingKind = z.union([
1009
+ z.literal("utf-16"),
1010
+ z.literal("utf-32"),
1011
+ z.literal("utf-8"),
1012
+ ]);
1013
+ /**
1014
+ * Capabilities supported by the agent.
1015
+ *
1016
+ * Advertised during initialization to inform the client about
1017
+ * available features and content types.
1018
+ *
1019
+ * See protocol docs: [Agent Capabilities](https://agentclientprotocol.com/protocol/initialization#agent-capabilities)
1020
+ */
1021
+ export const zAgentCapabilities = z.object({
1022
+ loadSession: defaultOnError(z.boolean().optional().default(false), () => false),
1023
+ promptCapabilities: defaultOnError(zPromptCapabilities.optional().default({
1024
+ image: false,
1025
+ audio: false,
1026
+ embeddedContext: false,
1027
+ }), () => ({
1028
+ image: false,
1029
+ audio: false,
1030
+ embeddedContext: false,
1031
+ })),
1032
+ mcpCapabilities: defaultOnError(zMcpCapabilities.optional().default({
1033
+ http: false,
1034
+ sse: false,
1035
+ acp: false,
1036
+ }), () => ({
1037
+ http: false,
1038
+ sse: false,
1039
+ acp: false,
1040
+ })),
1041
+ sessionCapabilities: defaultOnError(zSessionCapabilities.optional().default({}), () => ({})),
1042
+ auth: defaultOnError(zAgentAuthCapabilities.optional().default({}), () => ({})),
1043
+ providers: defaultOnError(zProvidersCapabilities.nullish(), () => undefined),
1044
+ nes: defaultOnError(zNesCapabilities.nullish(), () => undefined),
1045
+ positionEncoding: defaultOnError(zPositionEncodingKind.nullish(), () => undefined),
1046
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1047
+ });
1048
+ /**
1049
+ * Typed identifier used for auth method values on the wire.
1050
+ */
1051
+ export const zAuthMethodId = z.string();
1052
+ /**
1053
+ * Terminal-based authentication method.
1054
+ *
1055
+ * The client runs the configured agent program as a separate interactive
1056
+ * process for the user to authenticate via a TUI. Agents MUST advertise this
1057
+ * method only when the client enabled its terminal authentication capability.
1058
+ * A zero exit status signals success; any other termination signals failure.
1059
+ * The client MUST NOT pass this method to `authenticate`.
1060
+ */
1061
+ export const zAuthMethodTerminal = z.object({
1062
+ id: zAuthMethodId,
1063
+ name: z.string(),
1064
+ description: defaultOnError(z.string().nullish(), () => undefined),
1065
+ args: defaultOnError(vecSkipError(z.string()).optional(), () => []),
1066
+ env: defaultOnError(z.record(z.string(), z.string()).optional(), () => undefined),
1067
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1068
+ });
1069
+ /**
1070
+ * Agent handles authentication itself through `authenticate`.
1071
+ *
1072
+ * This is the default authentication method type.
1073
+ */
1074
+ export const zAuthMethodAgent = z.object({
1075
+ id: zAuthMethodId,
1076
+ name: z.string(),
1077
+ description: defaultOnError(z.string().nullish(), () => undefined),
1078
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1079
+ });
1080
+ /**
1081
+ * Describes an available authentication method.
1082
+ *
1083
+ * The `type` field acts as the discriminator in the serialized JSON form.
1084
+ * When no `type` is present, the method is treated as `agent`.
1085
+ */
1086
+ export const zAuthMethod = z.union([
1087
+ zAuthMethodTerminal.and(z.object({
1088
+ type: z.literal("terminal"),
1089
+ })),
1090
+ zAuthMethodAgent,
1091
+ ]);
1092
+ /**
1093
+ * Metadata about the implementation of the client or agent.
1094
+ * Describes the name and version of an ACP implementation, with an optional
1095
+ * title for UI representation.
1096
+ */
1097
+ export const zImplementation = z.object({
1098
+ name: z.string(),
1099
+ title: defaultOnError(z.string().nullish(), () => undefined),
1100
+ version: z.string(),
1101
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1102
+ });
1103
+ /**
1104
+ * Response to the `initialize` method.
1105
+ *
1106
+ * Contains the negotiated protocol version and agent capabilities.
1107
+ *
1108
+ * See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
1109
+ */
1110
+ export const zInitializeResponse = z.object({
1111
+ protocolVersion: zProtocolVersion,
1112
+ agentCapabilities: defaultOnError(zAgentCapabilities.optional().default({
1113
+ loadSession: false,
1114
+ promptCapabilities: {
1115
+ image: false,
1116
+ audio: false,
1117
+ embeddedContext: false,
1118
+ },
1119
+ mcpCapabilities: {
1120
+ http: false,
1121
+ sse: false,
1122
+ acp: false,
1123
+ },
1124
+ sessionCapabilities: {},
1125
+ auth: {},
1126
+ }), () => ({
1127
+ loadSession: false,
1128
+ promptCapabilities: {
1129
+ image: false,
1130
+ audio: false,
1131
+ embeddedContext: false,
1132
+ },
1133
+ mcpCapabilities: {
1134
+ http: false,
1135
+ sse: false,
1136
+ acp: false,
1137
+ },
1138
+ sessionCapabilities: {},
1139
+ auth: {},
1140
+ })),
1141
+ authMethods: defaultOnError(vecSkipError(zAuthMethod).optional().default([]), () => []),
1142
+ agentInfo: defaultOnError(zImplementation.nullish(), () => undefined),
1143
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1144
+ });
1145
+ /**
1146
+ * Response to the `authenticate` method.
1147
+ */
1148
+ export const zAuthenticateResponse = z.object({
1149
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1150
+ });
1151
+ /**
1152
+ * **UNSTABLE**
1153
+ *
1154
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1155
+ *
1156
+ * Unique identifier for a configurable LLM provider.
1157
+ *
1158
+ * @experimental
1159
+ */
1160
+ export const zProviderId = z.string();
1161
+ /**
1162
+ * **UNSTABLE**
1163
+ *
1164
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1165
+ *
1166
+ * Well-known API protocol identifiers for LLM providers.
1167
+ *
1168
+ * Agents and clients MUST handle unknown protocol identifiers gracefully.
1169
+ *
1170
+ * Protocol names beginning with `_` are free for custom use, like other ACP extension methods.
1171
+ * Protocol names that do not begin with `_` are reserved for the ACP spec.
1172
+ *
1173
+ * @experimental
1174
+ */
1175
+ export const zLlmProtocol = z.union([
1176
+ z.literal("anthropic"),
1177
+ z.literal("openai"),
1178
+ z.literal("azure"),
1179
+ z.literal("vertex"),
1180
+ z.literal("bedrock"),
1181
+ z.string(),
1182
+ ]);
1183
+ /**
1184
+ * **UNSTABLE**
1185
+ *
1186
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1187
+ *
1188
+ * Current effective non-secret routing configuration for a provider.
1189
+ *
1190
+ * @experimental
1191
+ */
1192
+ export const zProviderCurrentConfig = z.object({
1193
+ apiType: zLlmProtocol,
1194
+ baseUrl: z.string(),
1195
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1196
+ });
1197
+ /**
1198
+ * **UNSTABLE**
1199
+ *
1200
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1201
+ *
1202
+ * Information about a configurable LLM provider.
1203
+ *
1204
+ * @experimental
1205
+ */
1206
+ export const zProviderInfo = z.object({
1207
+ providerId: zProviderId,
1208
+ supported: requiredDefaultOnError(vecSkipError(zLlmProtocol), () => []),
1209
+ required: z.boolean(),
1210
+ current: zProviderCurrentConfig.nullish(),
1211
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1212
+ });
1213
+ /**
1214
+ * **UNSTABLE**
1215
+ *
1216
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1217
+ *
1218
+ * Response to `providers/list`.
1219
+ *
1220
+ * @experimental
1221
+ */
1222
+ export const zListProvidersResponse = z.object({
1223
+ providers: z.array(zProviderInfo),
1224
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1225
+ });
1226
+ /**
1227
+ * **UNSTABLE**
1228
+ *
1229
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1230
+ *
1231
+ * Response to `providers/set`.
1232
+ *
1233
+ * @experimental
1234
+ */
1235
+ export const zSetProviderResponse = z.object({
1236
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1237
+ });
1238
+ /**
1239
+ * **UNSTABLE**
1240
+ *
1241
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1242
+ *
1243
+ * Response to `providers/disable`.
1244
+ *
1245
+ * @experimental
1246
+ */
1247
+ export const zDisableProviderResponse = z.object({
1248
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1249
+ });
1250
+ /**
1251
+ * Response to the `logout` method.
1252
+ */
1253
+ export const zLogoutResponse = z.object({
1254
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1255
+ });
1256
+ /**
1257
+ * Unique identifier for a Session Mode.
1258
+ */
1259
+ export const zSessionModeId = z.string();
1260
+ /**
1261
+ * A mode the agent can operate in.
1262
+ *
1263
+ * See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
1264
+ */
1265
+ export const zSessionMode = z.object({
1266
+ id: zSessionModeId,
1267
+ name: z.string(),
1268
+ description: defaultOnError(z.string().nullish(), () => undefined),
1269
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1270
+ });
1271
+ /**
1272
+ * The set of modes and the one currently active.
1273
+ */
1274
+ export const zSessionModeState = z.object({
1275
+ currentModeId: zSessionModeId,
1276
+ availableModes: requiredDefaultOnError(vecSkipError(zSessionMode), () => []),
1277
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1278
+ });
1279
+ /**
1280
+ * Unique identifier for a session configuration option.
1281
+ */
1282
+ export const zSessionConfigId = z.string();
1283
+ /**
1284
+ * Semantic category for a session configuration option.
1285
+ *
1286
+ * This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
1287
+ * session mode selector vs thought/reasoning level) for UX purposes (keyboard shortcuts, icons,
1288
+ * placement). It MUST NOT be required for correctness. Clients MUST handle missing or unknown
1289
+ * categories gracefully.
1290
+ *
1291
+ * Category names beginning with `_` are free for custom use, like other ACP extension methods.
1292
+ * Category names that do not begin with `_` are reserved for the ACP spec.
1293
+ */
1294
+ export const zSessionConfigOptionCategory = z.union([
1295
+ z.literal("mode"),
1296
+ z.literal("model"),
1297
+ z.literal("model_config"),
1298
+ z.literal("thought_level"),
1299
+ z.string(),
1300
+ ]);
1301
+ /**
1302
+ * Unique identifier for a session configuration option value.
1303
+ */
1304
+ export const zSessionConfigValueId = z.string();
1305
+ /**
1306
+ * A possible value for a session configuration option.
1307
+ */
1308
+ export const zSessionConfigSelectOption = z.object({
1309
+ value: zSessionConfigValueId,
1310
+ name: z.string(),
1311
+ description: defaultOnError(z.string().nullish(), () => undefined),
1312
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1313
+ });
1314
+ /**
1315
+ * Unique identifier for a session configuration option value group.
1316
+ */
1317
+ export const zSessionConfigGroupId = z.string();
1318
+ /**
1319
+ * A group of possible values for a session configuration option.
1320
+ */
1321
+ export const zSessionConfigSelectGroup = z.object({
1322
+ group: zSessionConfigGroupId,
1323
+ name: z.string(),
1324
+ options: requiredDefaultOnError(vecSkipError(zSessionConfigSelectOption), () => []),
1325
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1326
+ });
1327
+ /**
1328
+ * Possible values for a session configuration option.
1329
+ */
1330
+ export const zSessionConfigSelectOptions = z.union([
1331
+ z.array(zSessionConfigSelectOption),
1332
+ z.array(zSessionConfigSelectGroup),
1333
+ ]);
1334
+ /**
1335
+ * A single-value selector (dropdown) session configuration option payload.
1336
+ */
1337
+ export const zSessionConfigSelect = z.object({
1338
+ currentValue: zSessionConfigValueId,
1339
+ options: zSessionConfigSelectOptions,
1340
+ });
1341
+ /**
1342
+ * A boolean on/off toggle session configuration option payload.
1343
+ */
1344
+ export const zSessionConfigBoolean = z.object({
1345
+ currentValue: z.boolean(),
1346
+ });
1347
+ /**
1348
+ * A session configuration option selector and its current state.
1349
+ */
1350
+ export const zSessionConfigOption = z.intersection(z.union([
1351
+ zSessionConfigSelect.and(z.object({
1352
+ type: z.literal("select"),
1353
+ })),
1354
+ zSessionConfigBoolean.and(z.object({
1355
+ type: z.literal("boolean"),
1356
+ })),
1357
+ ]), z.object({
1358
+ id: zSessionConfigId,
1359
+ name: z.string(),
1360
+ description: defaultOnError(z.string().nullish(), () => undefined),
1361
+ category: defaultOnError(zSessionConfigOptionCategory.nullish(), () => undefined),
1362
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1363
+ }));
1364
+ /**
1365
+ * Response from creating a new session.
1366
+ *
1367
+ * See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/session-setup#creating-a-session)
1368
+ */
1369
+ export const zNewSessionResponse = z.object({
1370
+ sessionId: zSessionId,
1371
+ modes: defaultOnError(zSessionModeState.nullish(), () => undefined),
1372
+ configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => undefined),
1373
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1374
+ });
1375
+ /**
1376
+ * Response from loading an existing session.
1377
+ */
1378
+ export const zLoadSessionResponse = z.object({
1379
+ modes: defaultOnError(zSessionModeState.nullish(), () => undefined),
1380
+ configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => undefined),
1381
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1382
+ });
1383
+ /**
1384
+ * Information about a session returned by session/list
1385
+ */
1386
+ export const zSessionInfo = z.object({
1387
+ sessionId: zSessionId,
1388
+ cwd: z.string(),
1389
+ additionalDirectories: defaultOnError(vecSkipError(z.string()).optional(), () => []),
1390
+ title: defaultOnError(z.string().nullish(), () => undefined),
1391
+ updatedAt: defaultOnError(z.string().nullish(), () => undefined),
1392
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1393
+ });
1394
+ /**
1395
+ * Response from listing sessions.
1396
+ */
1397
+ export const zListSessionsResponse = z.object({
1398
+ sessions: requiredDefaultOnError(vecSkipError(zSessionInfo), () => []),
1399
+ nextCursor: defaultOnError(z.string().nullish(), () => undefined),
1400
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1401
+ });
1402
+ /**
1403
+ * Response from deleting a session.
1404
+ */
1405
+ export const zDeleteSessionResponse = z.object({
1406
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1407
+ });
1408
+ /**
1409
+ * **UNSTABLE**
1410
+ *
1411
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1412
+ *
1413
+ * Response from forking an existing session.
1414
+ *
1415
+ * @experimental
1416
+ */
1417
+ export const zForkSessionResponse = z.object({
1418
+ sessionId: zSessionId,
1419
+ modes: defaultOnError(zSessionModeState.nullish(), () => undefined),
1420
+ configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => undefined),
1421
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1422
+ });
1423
+ /**
1424
+ * Response from resuming an existing session.
1425
+ */
1426
+ export const zResumeSessionResponse = z.object({
1427
+ modes: defaultOnError(zSessionModeState.nullish(), () => undefined),
1428
+ configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => undefined),
1429
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1430
+ });
1431
+ /**
1432
+ * Response from closing a session.
1433
+ */
1434
+ export const zCloseSessionResponse = z.object({
1435
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1436
+ });
1437
+ /**
1438
+ * Response to `session/set_mode` method.
1439
+ */
1440
+ export const zSetSessionModeResponse = z.object({
1441
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1442
+ });
1443
+ /**
1444
+ * Response to `session/set_config_option` method.
1445
+ */
1446
+ export const zSetSessionConfigOptionResponse = z.object({
1447
+ configOptions: requiredDefaultOnError(vecSkipError(zSessionConfigOption), () => []),
1448
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1449
+ });
1450
+ /**
1451
+ * Reasons why an agent stops processing a prompt turn.
1452
+ *
1453
+ * See protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/prompt-turn#stop-reasons)
1454
+ */
1455
+ export const zStopReason = z.union([
1456
+ z.literal("end_turn"),
1457
+ z.literal("max_tokens"),
1458
+ z.literal("max_turn_requests"),
1459
+ z.literal("refusal"),
1460
+ z.literal("cancelled"),
1461
+ ]);
1462
+ /**
1463
+ * **UNSTABLE**
1464
+ *
1465
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1466
+ *
1467
+ * Token usage information for a prompt turn.
1468
+ *
1469
+ * @experimental
1470
+ */
1471
+ export const zUsage = z.object({
1472
+ totalTokens: z.number(),
1473
+ inputTokens: z.number(),
1474
+ outputTokens: z.number(),
1475
+ thoughtTokens: defaultOnError(z.number().nullish(), () => undefined),
1476
+ cachedReadTokens: defaultOnError(z.number().nullish(), () => undefined),
1477
+ cachedWriteTokens: defaultOnError(z.number().nullish(), () => undefined),
1478
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1479
+ });
1480
+ /**
1481
+ * Response from processing a user prompt.
1482
+ *
1483
+ * See protocol docs: [Check for Completion](https://agentclientprotocol.com/protocol/prompt-turn#4-check-for-completion)
1484
+ */
1485
+ export const zPromptResponse = z.object({
1486
+ stopReason: zStopReason,
1487
+ usage: defaultOnError(zUsage.nullish(), () => undefined),
1488
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1489
+ });
1490
+ /**
1491
+ * Response to `nes/start`.
1492
+ */
1493
+ export const zStartNesResponse = z.object({
1494
+ sessionId: zSessionId,
1495
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1496
+ });
1497
+ /**
1498
+ * Unique identifier for a next edit suggestion.
1499
+ */
1500
+ export const zNesSuggestionId = z.string();
1501
+ /**
1502
+ * A zero-based position in a text document.
1503
+ *
1504
+ * The meaning of `character` depends on the negotiated position encoding.
1505
+ */
1506
+ export const zPosition = z.object({
1507
+ line: z.int().gte(0).max(4294967295, {
1508
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
1509
+ }),
1510
+ character: z.int().gte(0).max(4294967295, {
1511
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
1512
+ }),
1513
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1514
+ });
1515
+ /**
1516
+ * A range in a text document, expressed as start and end positions.
1517
+ */
1518
+ export const zRange = z.object({
1519
+ start: zPosition,
1520
+ end: zPosition,
1521
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1522
+ });
1523
+ /**
1524
+ * A text edit within a suggestion.
1525
+ */
1526
+ export const zNesTextEdit = z.object({
1527
+ range: zRange,
1528
+ newText: z.string(),
1529
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1530
+ });
1531
+ /**
1532
+ * A text edit suggestion.
1533
+ */
1534
+ export const zNesEditSuggestion = z.object({
1535
+ id: zNesSuggestionId,
1536
+ uri: z.string(),
1537
+ edits: z.array(zNesTextEdit),
1538
+ cursorPosition: defaultOnError(zPosition.nullish(), () => undefined),
1539
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1540
+ });
1541
+ /**
1542
+ * A jump-to-location suggestion.
1543
+ */
1544
+ export const zNesJumpSuggestion = z.object({
1545
+ id: zNesSuggestionId,
1546
+ uri: z.string(),
1547
+ position: zPosition,
1548
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1549
+ });
1550
+ /**
1551
+ * A rename symbol suggestion.
1552
+ */
1553
+ export const zNesRenameSuggestion = z.object({
1554
+ id: zNesSuggestionId,
1555
+ uri: z.string(),
1556
+ position: zPosition,
1557
+ newName: z.string(),
1558
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1559
+ });
1560
+ /**
1561
+ * A search-and-replace suggestion.
1562
+ */
1563
+ export const zNesSearchAndReplaceSuggestion = z.object({
1564
+ id: zNesSuggestionId,
1565
+ uri: z.string(),
1566
+ search: z.string(),
1567
+ replace: z.string(),
1568
+ isRegex: z.boolean().nullish(),
1569
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1570
+ });
1571
+ /**
1572
+ * A suggestion returned by the agent.
1573
+ */
1574
+ export const zNesSuggestion = z.union([
1575
+ zNesEditSuggestion.and(z.object({
1576
+ kind: z.literal("edit"),
1577
+ })),
1578
+ zNesJumpSuggestion.and(z.object({
1579
+ kind: z.literal("jump"),
1580
+ })),
1581
+ zNesRenameSuggestion.and(z.object({
1582
+ kind: z.literal("rename"),
1583
+ })),
1584
+ zNesSearchAndReplaceSuggestion.and(z.object({
1585
+ kind: z.literal("searchAndReplace"),
1586
+ })),
1587
+ ]);
1588
+ /**
1589
+ * Response to `nes/suggest`.
1590
+ */
1591
+ export const zSuggestNesResponse = z.object({
1592
+ suggestions: z.array(zNesSuggestion),
1593
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1594
+ });
1595
+ /**
1596
+ * Response from closing an NES session.
1597
+ */
1598
+ export const zCloseNesResponse = z.object({
1599
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1600
+ });
1601
+ /**
1602
+ * Allows for sending an arbitrary response to an [`ExtRequest`] that is not part of the ACP spec.
1603
+ * Extension methods provide a way to add custom functionality while maintaining
1604
+ * protocol compatibility.
1605
+ *
1606
+ * See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
1607
+ */
1608
+ export const zExtResponse = z.unknown();
1609
+ /**
1610
+ * **UNSTABLE**
1611
+ *
1612
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1613
+ *
1614
+ * Response to `mcp/message`.
1615
+ *
1616
+ * This is the inner MCP response result payload. Any JSON value is valid.
1617
+ *
1618
+ * @experimental
1619
+ */
1620
+ export const zMessageMcpResponse = z.unknown();
1621
+ /**
1622
+ * Predefined error codes for common JSON-RPC and ACP-specific errors.
1623
+ *
1624
+ * These codes follow the JSON-RPC 2.0 specification for standard errors
1625
+ * and use the reserved range (-32000 to -32099) for protocol-specific errors.
1626
+ */
1627
+ export const zErrorCode = z.union([
1628
+ z.literal(-32700),
1629
+ z.literal(-32600),
1630
+ z.literal(-32601),
1631
+ z.literal(-32602),
1632
+ z.literal(-32603),
1633
+ z.literal(-32800),
1634
+ z.literal(-32000),
1635
+ z.literal(-32002),
1636
+ z
1637
+ .int()
1638
+ .min(-2147483648, {
1639
+ error: "Invalid value: Expected int32 to be >= -2147483648",
1640
+ })
1641
+ .max(2147483647, {
1642
+ error: "Invalid value: Expected int32 to be <= 2147483647",
1643
+ }),
1644
+ ]);
1645
+ /**
1646
+ * JSON-RPC error object.
1647
+ *
1648
+ * Represents an error that occurred during method execution, following the
1649
+ * JSON-RPC 2.0 error object specification with optional additional data.
1650
+ *
1651
+ * See protocol docs: [JSON-RPC Error Object](https://www.jsonrpc.org/specification#error_object)
1652
+ */
1653
+ export const zError = z.object({
1654
+ code: zErrorCode,
1655
+ message: z.string(),
1656
+ data: defaultOnError(z.unknown().optional(), () => undefined),
1657
+ });
1658
+ /**
1659
+ * A JSON-RPC response object.
1660
+ */
1661
+ export const zAgentResponse = z.union([
1662
+ z.object({
1663
+ id: zRequestId,
1664
+ result: z.union([
1665
+ zInitializeResponse,
1666
+ zAuthenticateResponse,
1667
+ zListProvidersResponse,
1668
+ zSetProviderResponse,
1669
+ zDisableProviderResponse,
1670
+ zLogoutResponse,
1671
+ zNewSessionResponse,
1672
+ zLoadSessionResponse,
1673
+ zListSessionsResponse,
1674
+ zDeleteSessionResponse,
1675
+ zForkSessionResponse,
1676
+ zResumeSessionResponse,
1677
+ zCloseSessionResponse,
1678
+ zSetSessionModeResponse,
1679
+ zSetSessionConfigOptionResponse,
1680
+ zPromptResponse,
1681
+ zStartNesResponse,
1682
+ zSuggestNesResponse,
1683
+ zCloseNesResponse,
1684
+ zExtResponse,
1685
+ zMessageMcpResponse,
1686
+ ]),
1687
+ }),
1688
+ z.object({
1689
+ id: zRequestId,
1690
+ error: zError,
1691
+ }),
1692
+ ]);
1693
+ /**
1694
+ * Unique identifier for a message within a session.
1695
+ */
1696
+ export const zMessageId = z.string();
1697
+ /**
1698
+ * A streamed item of content
1699
+ */
1700
+ export const zContentChunk = z.object({
1701
+ content: zContentBlock,
1702
+ messageId: defaultOnError(zMessageId.nullish(), () => undefined),
1703
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1704
+ });
1705
+ /**
1706
+ * Represents a tool call that the language model has requested.
1707
+ *
1708
+ * Tool calls are actions that the agent executes on behalf of the language model,
1709
+ * such as reading files, executing code, or fetching data from external sources.
1710
+ *
1711
+ * See protocol docs: [Tool Calls](https://agentclientprotocol.com/protocol/tool-calls)
1712
+ */
1713
+ export const zToolCall = z.object({
1714
+ toolCallId: zToolCallId,
1715
+ title: z.string(),
1716
+ name: defaultOnError(z.string().nullish(), () => undefined),
1717
+ kind: defaultOnError(zToolKind.optional(), () => undefined),
1718
+ status: defaultOnError(zToolCallStatus.optional(), () => undefined),
1719
+ content: defaultOnError(vecSkipError(zToolCallContent).optional(), () => []),
1720
+ locations: defaultOnError(vecSkipError(zToolCallLocation).optional(), () => []),
1721
+ rawInput: defaultOnError(z.unknown().optional(), () => undefined),
1722
+ rawOutput: defaultOnError(z.unknown().optional(), () => undefined),
1723
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1724
+ });
1725
+ /**
1726
+ * Priority levels for plan entries.
1727
+ *
1728
+ * Used to indicate the relative importance or urgency of different
1729
+ * tasks in the execution plan.
1730
+ * See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/agent-plan#plan-entries)
1731
+ */
1732
+ export const zPlanEntryPriority = z.union([
1733
+ z.literal("high"),
1734
+ z.literal("medium"),
1735
+ z.literal("low"),
1736
+ ]);
1737
+ /**
1738
+ * Status of a plan entry in the execution flow.
1739
+ *
1740
+ * Tracks the lifecycle of each task from planning through completion.
1741
+ * See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/agent-plan#plan-entries)
1742
+ */
1743
+ export const zPlanEntryStatus = z.union([
1744
+ z.literal("pending"),
1745
+ z.literal("in_progress"),
1746
+ z.literal("completed"),
1747
+ ]);
1748
+ /**
1749
+ * A single entry in the execution plan.
1750
+ *
1751
+ * Represents a task or goal that the assistant intends to accomplish
1752
+ * as part of fulfilling the user's request.
1753
+ * See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/agent-plan#plan-entries)
1754
+ */
1755
+ export const zPlanEntry = z.object({
1756
+ content: z.string(),
1757
+ priority: zPlanEntryPriority,
1758
+ status: zPlanEntryStatus,
1759
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1760
+ });
1761
+ /**
1762
+ * An execution plan for accomplishing complex tasks.
1763
+ *
1764
+ * Plans consist of multiple entries representing individual tasks or goals.
1765
+ * Agents report plans to clients to provide visibility into their execution strategy.
1766
+ * Plans can evolve during execution as the agent discovers new requirements or completes tasks.
1767
+ *
1768
+ * See protocol docs: [Agent Plan](https://agentclientprotocol.com/protocol/agent-plan)
1769
+ */
1770
+ export const zPlan = z.object({
1771
+ entries: requiredDefaultOnError(vecSkipError(zPlanEntry), () => []),
1772
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1773
+ });
1774
+ /**
1775
+ * **UNSTABLE**
1776
+ *
1777
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1778
+ *
1779
+ * Unique identifier for a plan within a session.
1780
+ *
1781
+ * @experimental
1782
+ */
1783
+ export const zPlanId = z.string();
1784
+ /**
1785
+ * **UNSTABLE**
1786
+ *
1787
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1788
+ *
1789
+ * A plan represented as structured entries.
1790
+ *
1791
+ * @experimental
1792
+ */
1793
+ export const zPlanItems = z.object({
1794
+ planId: zPlanId,
1795
+ entries: requiredDefaultOnError(vecSkipError(zPlanEntry), () => []),
1796
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1797
+ });
1798
+ /**
1799
+ * **UNSTABLE**
1800
+ *
1801
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1802
+ *
1803
+ * A plan represented by a file URI.
1804
+ *
1805
+ * @experimental
1806
+ */
1807
+ export const zPlanFile = z.object({
1808
+ planId: zPlanId,
1809
+ uri: z.string(),
1810
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1811
+ });
1812
+ /**
1813
+ * **UNSTABLE**
1814
+ *
1815
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1816
+ *
1817
+ * A plan represented as raw markdown content.
1818
+ *
1819
+ * @experimental
1820
+ */
1821
+ export const zPlanMarkdown = z.object({
1822
+ planId: zPlanId,
1823
+ content: z.string(),
1824
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1825
+ });
1826
+ /**
1827
+ * **UNSTABLE**
1828
+ *
1829
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1830
+ *
1831
+ * Updated content for a plan.
1832
+ *
1833
+ * @experimental
1834
+ */
1835
+ export const zPlanUpdateContent = z.union([
1836
+ zPlanItems.and(z.object({
1837
+ type: z.literal("items"),
1838
+ })),
1839
+ zPlanFile.and(z.object({
1840
+ type: z.literal("file"),
1841
+ })),
1842
+ zPlanMarkdown.and(z.object({
1843
+ type: z.literal("markdown"),
1844
+ })),
1845
+ ]);
1846
+ /**
1847
+ * **UNSTABLE**
1848
+ *
1849
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1850
+ *
1851
+ * A content update for a plan identified by ID.
1852
+ *
1853
+ * @experimental
1854
+ */
1855
+ export const zPlanUpdate = z.object({
1856
+ plan: zPlanUpdateContent,
1857
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1858
+ });
1859
+ /**
1860
+ * **UNSTABLE**
1861
+ *
1862
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1863
+ *
1864
+ * Removal notice for a plan identified by ID.
1865
+ *
1866
+ * @experimental
1867
+ */
1868
+ export const zPlanRemoved = z.object({
1869
+ planId: zPlanId,
1870
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1871
+ });
1872
+ /**
1873
+ * All text that was typed after the command name is provided as input.
1874
+ */
1875
+ export const zUnstructuredCommandInput = z.object({
1876
+ hint: z.string(),
1877
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1878
+ });
1879
+ /**
1880
+ * unstructured
1881
+ *
1882
+ * All text that was typed after the command name is provided as input.
1883
+ */
1884
+ export const zAvailableCommandInput = zUnstructuredCommandInput;
1885
+ /**
1886
+ * Information about a command.
1887
+ */
1888
+ export const zAvailableCommand = z.object({
1889
+ name: z.string(),
1890
+ description: z.string(),
1891
+ input: defaultOnError(zAvailableCommandInput.nullish(), () => undefined),
1892
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1893
+ });
1894
+ /**
1895
+ * Available commands are ready or have changed
1896
+ */
1897
+ export const zAvailableCommandsUpdate = z.object({
1898
+ availableCommands: requiredDefaultOnError(vecSkipError(zAvailableCommand), () => []),
1899
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1900
+ });
1901
+ /**
1902
+ * The current mode of the session has changed
1903
+ *
1904
+ * See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
1905
+ */
1906
+ export const zCurrentModeUpdate = z.object({
1907
+ currentModeId: zSessionModeId,
1908
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1909
+ });
1910
+ /**
1911
+ * Session configuration options have been updated.
1912
+ */
1913
+ export const zConfigOptionUpdate = z.object({
1914
+ configOptions: requiredDefaultOnError(vecSkipError(zSessionConfigOption), () => []),
1915
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1916
+ });
1917
+ /**
1918
+ * Update to session metadata. All fields are optional to support partial updates.
1919
+ *
1920
+ * Agents send this notification to update session information like title or custom metadata.
1921
+ * This allows clients to display dynamic session names and track session state changes.
1922
+ */
1923
+ export const zSessionInfoUpdate = z.object({
1924
+ title: defaultOnError(z.string().nullish(), () => undefined),
1925
+ updatedAt: defaultOnError(z.string().nullish(), () => undefined),
1926
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1927
+ });
1928
+ /**
1929
+ * Cost information for a session.
1930
+ */
1931
+ export const zCost = z.object({
1932
+ amount: z.number(),
1933
+ currency: z.string(),
1934
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1935
+ });
1936
+ /**
1937
+ * Context window and cost update for a session.
1938
+ */
1939
+ export const zUsageUpdate = z.object({
1940
+ used: z.number(),
1941
+ size: z.number(),
1942
+ cost: defaultOnError(zCost.nullish(), () => undefined),
1943
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1944
+ });
1945
+ /**
1946
+ * **UNSTABLE**
1947
+ *
1948
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1949
+ *
1950
+ * Severity hint for a session notice.
1951
+ *
1952
+ * @experimental
1953
+ */
1954
+ export const zNoticeSeverity = z.union([
1955
+ z.literal("info"),
1956
+ z.literal("warning"),
1957
+ z.literal("error"),
1958
+ z.string(),
1959
+ ]);
1960
+ /**
1961
+ * **UNSTABLE**
1962
+ *
1963
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1964
+ *
1965
+ * Fire-and-forget advisory information for the user.
1966
+ *
1967
+ * Notices are live events rather than session history. Agents must not rely on
1968
+ * a notice being received, displayed, or seen by the user.
1969
+ * Agents MUST only send notices when the Client advertised
1970
+ * [`ClientSessionCapabilities::notices`]. Otherwise, Agents may use an agent
1971
+ * message when the information should still be surfaced to the user.
1972
+ *
1973
+ * See RFD: [Session Notices](https://agentclientprotocol.com/rfds/session-notices)
1974
+ *
1975
+ * @experimental
1976
+ */
1977
+ export const zNotice = z.object({
1978
+ severity: zNoticeSeverity,
1979
+ title: z.string().min(1),
1980
+ description: defaultOnError(z.string().nullish(), () => undefined),
1981
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
1982
+ });
1983
+ /**
1984
+ * **UNSTABLE**
1985
+ *
1986
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1987
+ *
1988
+ * Unique identifier for a context compaction within a session.
1989
+ *
1990
+ * @experimental
1991
+ */
1992
+ export const zCompactionId = z.string();
1993
+ /**
1994
+ * **UNSTABLE**
1995
+ *
1996
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
1997
+ *
1998
+ * Lifecycle state of a context compaction.
1999
+ *
2000
+ * @experimental
2001
+ */
2002
+ export const zCompactionStatus = z.union([
2003
+ z.literal("in_progress"),
2004
+ z.literal("completed"),
2005
+ z.literal("failed"),
2006
+ z.literal("cancelled"),
2007
+ z.string(),
2008
+ ]);
2009
+ /**
2010
+ * **UNSTABLE**
2011
+ *
2012
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2013
+ *
2014
+ * A context compaction upsert. The first update fixes the compaction's
2015
+ * timeline position. Later updates with the same ID patch that entity in place.
2016
+ * Agents MUST only send this update when the Client advertised
2017
+ * [`ClientSessionCapabilities::compaction`].
2018
+ *
2019
+ * `summary`, `error`, and `_meta` have patch semantics: omission leaves the
2020
+ * stored value unchanged, `null` clears it, and a concrete value replaces it.
2021
+ * `summary: []` also clears the retained summary. A non-empty summary is only
2022
+ * valid with `completed`; `error` is only valid with `failed`.
2023
+ *
2024
+ * @experimental
2025
+ */
2026
+ export const zCompactionUpdate = z.object({
2027
+ compactionId: zCompactionId,
2028
+ status: zCompactionStatus,
2029
+ summary: defaultOnError(vecSkipError(zContentBlock).nullish(), () => undefined),
2030
+ error: defaultOnError(z.string().nullish(), () => undefined),
2031
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2032
+ });
2033
+ /**
2034
+ * **UNSTABLE**
2035
+ *
2036
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2037
+ *
2038
+ * A content block appended to the retained summary of an in-progress
2039
+ * compaction. Agents send chunks only after an `in_progress` update and before
2040
+ * the terminal update for the same ID. Agents MUST only send this update when
2041
+ * the Client advertised [`ClientSessionCapabilities::compaction`].
2042
+ *
2043
+ * @experimental
2044
+ */
2045
+ export const zCompactionSummaryChunk = z.object({
2046
+ compactionId: zCompactionId,
2047
+ content: zContentBlock,
2048
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2049
+ });
2050
+ /**
2051
+ * Different types of updates that can be sent during session processing.
2052
+ *
2053
+ * These updates provide real-time feedback about the agent's progress.
2054
+ *
2055
+ * See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output)
2056
+ */
2057
+ export const zSessionUpdate = z.union([
2058
+ zContentChunk.and(z.object({
2059
+ sessionUpdate: z.literal("user_message_chunk"),
2060
+ })),
2061
+ zContentChunk.and(z.object({
2062
+ sessionUpdate: z.literal("agent_message_chunk"),
2063
+ })),
2064
+ zContentChunk.and(z.object({
2065
+ sessionUpdate: z.literal("agent_thought_chunk"),
2066
+ })),
2067
+ zToolCall.and(z.object({
2068
+ sessionUpdate: z.literal("tool_call"),
2069
+ })),
2070
+ zToolCallUpdate.and(z.object({
2071
+ sessionUpdate: z.literal("tool_call_update"),
2072
+ })),
2073
+ zPlan.and(z.object({
2074
+ sessionUpdate: z.literal("plan"),
2075
+ })),
2076
+ zPlanUpdate.and(z.object({
2077
+ sessionUpdate: z.literal("plan_update"),
2078
+ })),
2079
+ zPlanRemoved.and(z.object({
2080
+ sessionUpdate: z.literal("plan_removed"),
2081
+ })),
2082
+ zAvailableCommandsUpdate.and(z.object({
2083
+ sessionUpdate: z.literal("available_commands_update"),
2084
+ })),
2085
+ zCurrentModeUpdate.and(z.object({
2086
+ sessionUpdate: z.literal("current_mode_update"),
2087
+ })),
2088
+ zConfigOptionUpdate.and(z.object({
2089
+ sessionUpdate: z.literal("config_option_update"),
2090
+ })),
2091
+ zSessionInfoUpdate.and(z.object({
2092
+ sessionUpdate: z.literal("session_info_update"),
2093
+ })),
2094
+ zUsageUpdate.and(z.object({
2095
+ sessionUpdate: z.literal("usage_update"),
2096
+ })),
2097
+ zNotice.and(z.object({
2098
+ sessionUpdate: z.literal("notice"),
2099
+ })),
2100
+ zCompactionUpdate.and(z.object({
2101
+ sessionUpdate: z.literal("compaction_update"),
2102
+ })),
2103
+ zCompactionSummaryChunk.and(z.object({
2104
+ sessionUpdate: z.literal("compaction_summary_chunk"),
2105
+ })),
2106
+ ]);
2107
+ /**
2108
+ * Notification containing a session update from the agent.
2109
+ *
2110
+ * Used to stream real-time progress and results during prompt processing.
2111
+ *
2112
+ * See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output)
2113
+ */
2114
+ export const zSessionNotification = z.object({
2115
+ sessionId: zSessionId,
2116
+ update: zSessionUpdate,
2117
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2118
+ });
2119
+ /**
2120
+ * Notification sent by the agent when a URL-based elicitation is complete.
2121
+ */
2122
+ export const zCompleteElicitationNotification = z.object({
2123
+ elicitationId: zElicitationId,
2124
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2125
+ });
2126
+ /**
2127
+ * **UNSTABLE**
2128
+ *
2129
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2130
+ *
2131
+ * Notification parameters for `mcp/message`.
2132
+ *
2133
+ * This is used when the wrapped MCP message is a notification and the outer JSON-RPC
2134
+ * envelope has no `id`.
2135
+ *
2136
+ * @experimental
2137
+ */
2138
+ export const zMessageMcpNotification = z.object({
2139
+ connectionId: zMcpConnectionId,
2140
+ method: z.string(),
2141
+ params: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2142
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2143
+ });
2144
+ /**
2145
+ * Allows the Agent to send an arbitrary notification that is not part of the ACP spec.
2146
+ * Extension notifications provide a way to send one-way messages for custom functionality
2147
+ * while maintaining protocol compatibility.
2148
+ *
2149
+ * See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
2150
+ */
2151
+ export const zExtNotification = z.unknown();
2152
+ /**
2153
+ * A JSON-RPC notification object.
2154
+ */
2155
+ export const zAgentNotification = z.object({
2156
+ method: z.string(),
2157
+ params: z
2158
+ .union([
2159
+ zSessionNotification,
2160
+ zCompleteElicitationNotification,
2161
+ zMessageMcpNotification,
2162
+ zExtNotification,
2163
+ ])
2164
+ .nullish(),
2165
+ });
2166
+ /**
2167
+ * File system capabilities that a client may support.
2168
+ *
2169
+ * See protocol docs: [FileSystem](https://agentclientprotocol.com/protocol/initialization#filesystem)
2170
+ */
2171
+ export const zFileSystemCapabilities = z.object({
2172
+ readTextFile: defaultOnError(z.boolean().optional().default(false), () => false),
2173
+ writeTextFile: defaultOnError(z.boolean().optional().default(false), () => false),
2174
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2175
+ });
2176
+ /**
2177
+ * **UNSTABLE**
2178
+ *
2179
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2180
+ *
2181
+ * Client support for ID-addressed context compaction updates.
2182
+ *
2183
+ * @experimental
2184
+ */
2185
+ export const zCompactionCapabilities = z.record(z.string(), z.unknown());
2186
+ /**
2187
+ * Capabilities for boolean session configuration options.
2188
+ *
2189
+ * Supplying `{}` means the client supports boolean session configuration options.
2190
+ */
2191
+ export const zBooleanConfigOptionCapabilities = z.object({
2192
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2193
+ });
2194
+ /**
2195
+ * Session configuration option capabilities supported by the client.
2196
+ */
2197
+ export const zSessionConfigOptionsCapabilities = z.object({
2198
+ boolean: defaultOnError(zBooleanConfigOptionCapabilities.nullish(), () => undefined),
2199
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2200
+ });
2201
+ /**
2202
+ * **UNSTABLE**
2203
+ *
2204
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2205
+ *
2206
+ * Client support for presenting live advisory notices to the user.
2207
+ *
2208
+ * @experimental
2209
+ */
2210
+ export const zNoticeCapabilities = z.record(z.string(), z.unknown());
2211
+ /**
2212
+ * Session-related capabilities supported by the client.
2213
+ */
2214
+ export const zClientSessionCapabilities = z.object({
2215
+ compaction: defaultOnError(zCompactionCapabilities.nullish(), () => undefined),
2216
+ configOptions: defaultOnError(zSessionConfigOptionsCapabilities.nullish(), () => undefined),
2217
+ notices: defaultOnError(zNoticeCapabilities.nullish(), () => undefined),
2218
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2219
+ });
2220
+ /**
2221
+ * **UNSTABLE**
2222
+ *
2223
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2224
+ *
2225
+ * Capabilities for receiving `plan_update` and `plan_removed` session updates.
2226
+ *
2227
+ * @experimental
2228
+ */
2229
+ export const zPlanCapabilities = z.object({
2230
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2231
+ });
2232
+ /**
2233
+ * Authentication capabilities supported by the client.
2234
+ *
2235
+ * Advertised during initialization to inform the agent which authentication
2236
+ * method types the client can handle. This governs opt-in types that require
2237
+ * additional client-side support.
2238
+ */
2239
+ export const zAuthCapabilities = z.object({
2240
+ terminal: defaultOnError(z.boolean().optional().default(false), () => false),
2241
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2242
+ });
2243
+ /**
2244
+ * Form-based elicitation capabilities.
2245
+ *
2246
+ * Supplying `{}` means the client supports form-based elicitation.
2247
+ */
2248
+ export const zElicitationFormCapabilities = z.object({
2249
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2250
+ });
2251
+ /**
2252
+ * URL-based elicitation capabilities.
2253
+ *
2254
+ * Supplying `{}` means the client supports URL-based elicitation.
2255
+ */
2256
+ export const zElicitationUrlCapabilities = z.object({
2257
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2258
+ });
2259
+ /**
2260
+ * Elicitation capabilities supported by the client.
2261
+ */
2262
+ export const zElicitationCapabilities = z.object({
2263
+ form: defaultOnError(zElicitationFormCapabilities.nullish(), () => undefined),
2264
+ url: defaultOnError(zElicitationUrlCapabilities.nullish(), () => undefined),
2265
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2266
+ });
2267
+ /**
2268
+ * Marker for jump suggestion support.
2269
+ */
2270
+ export const zNesJumpCapabilities = z.object({
2271
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2272
+ });
2273
+ /**
2274
+ * Marker for rename suggestion support.
2275
+ */
2276
+ export const zNesRenameCapabilities = z.object({
2277
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2278
+ });
2279
+ /**
2280
+ * Marker for search and replace suggestion support.
2281
+ */
2282
+ export const zNesSearchAndReplaceCapabilities = z.object({
2283
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2284
+ });
2285
+ /**
2286
+ * NES capabilities advertised by the client during initialization.
2287
+ */
2288
+ export const zClientNesCapabilities = z.object({
2289
+ jump: defaultOnError(zNesJumpCapabilities.nullish(), () => undefined),
2290
+ rename: defaultOnError(zNesRenameCapabilities.nullish(), () => undefined),
2291
+ searchAndReplace: defaultOnError(zNesSearchAndReplaceCapabilities.nullish(), () => undefined),
2292
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2293
+ });
2294
+ /**
2295
+ * Capabilities supported by the client.
2296
+ *
2297
+ * Advertised during initialization to inform the agent about
2298
+ * available features and methods.
2299
+ *
2300
+ * See protocol docs: [Client Capabilities](https://agentclientprotocol.com/protocol/initialization#client-capabilities)
2301
+ */
2302
+ export const zClientCapabilities = z.object({
2303
+ fs: defaultOnError(zFileSystemCapabilities
2304
+ .optional()
2305
+ .default({ readTextFile: false, writeTextFile: false }), () => ({ readTextFile: false, writeTextFile: false })),
2306
+ terminal: defaultOnError(z.boolean().optional().default(false), () => false),
2307
+ session: defaultOnError(zClientSessionCapabilities.nullish(), () => undefined),
2308
+ plan: defaultOnError(zPlanCapabilities.nullish(), () => undefined),
2309
+ auth: defaultOnError(zAuthCapabilities.optional().default({ terminal: false }), () => ({ terminal: false })),
2310
+ elicitation: defaultOnError(zElicitationCapabilities.nullish(), () => undefined),
2311
+ nes: defaultOnError(zClientNesCapabilities.nullish(), () => undefined),
2312
+ positionEncodings: defaultOnError(vecSkipError(zPositionEncodingKind).optional(), () => []),
2313
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2314
+ });
2315
+ /**
2316
+ * Request parameters for the initialize method.
2317
+ *
2318
+ * Sent by the client to establish connection and negotiate capabilities.
2319
+ *
2320
+ * See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
2321
+ */
2322
+ export const zInitializeRequest = z.object({
2323
+ protocolVersion: zProtocolVersion,
2324
+ clientCapabilities: defaultOnError(zClientCapabilities.optional().default({
2325
+ fs: { readTextFile: false, writeTextFile: false },
2326
+ terminal: false,
2327
+ auth: { terminal: false },
2328
+ }), () => ({
2329
+ fs: { readTextFile: false, writeTextFile: false },
2330
+ terminal: false,
2331
+ auth: { terminal: false },
2332
+ })),
2333
+ clientInfo: defaultOnError(zImplementation.nullish(), () => undefined),
2334
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2335
+ });
2336
+ /**
2337
+ * Request parameters for the authenticate method.
2338
+ *
2339
+ * Specifies which authentication method to use.
2340
+ */
2341
+ export const zAuthenticateRequest = z.object({
2342
+ methodId: zAuthMethodId,
2343
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2344
+ });
2345
+ /**
2346
+ * **UNSTABLE**
2347
+ *
2348
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2349
+ *
2350
+ * Request parameters for `providers/list`.
2351
+ *
2352
+ * @experimental
2353
+ */
2354
+ export const zListProvidersRequest = z.object({
2355
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2356
+ });
2357
+ /**
2358
+ * **UNSTABLE**
2359
+ *
2360
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2361
+ *
2362
+ * Request parameters for `providers/set`.
2363
+ *
2364
+ * Replaces the full configuration for one provider ID.
2365
+ *
2366
+ * @experimental
2367
+ */
2368
+ export const zSetProviderRequest = z.object({
2369
+ providerId: zProviderId,
2370
+ apiType: zLlmProtocol,
2371
+ baseUrl: z.string(),
2372
+ headers: z.record(z.string(), z.string()).optional(),
2373
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2374
+ });
2375
+ /**
2376
+ * **UNSTABLE**
2377
+ *
2378
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2379
+ *
2380
+ * Request parameters for `providers/disable`.
2381
+ *
2382
+ * @experimental
2383
+ */
2384
+ export const zDisableProviderRequest = z.object({
2385
+ providerId: zProviderId,
2386
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2387
+ });
2388
+ /**
2389
+ * Request parameters for the logout method.
2390
+ *
2391
+ * Terminates the current authenticated session.
2392
+ */
2393
+ export const zLogoutRequest = z.object({
2394
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2395
+ });
2396
+ /**
2397
+ * An HTTP header to set when making requests to the MCP server.
2398
+ */
2399
+ export const zHttpHeader = z.object({
2400
+ name: z.string(),
2401
+ value: z.string(),
2402
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2403
+ });
2404
+ /**
2405
+ * HTTP transport configuration for MCP.
2406
+ */
2407
+ export const zMcpServerHttp = z.object({
2408
+ name: z.string(),
2409
+ url: z.string(),
2410
+ headers: z.array(zHttpHeader),
2411
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2412
+ });
2413
+ /**
2414
+ * SSE transport configuration for MCP.
2415
+ */
2416
+ export const zMcpServerSse = z.object({
2417
+ name: z.string(),
2418
+ url: z.string(),
2419
+ headers: z.array(zHttpHeader),
2420
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2421
+ });
2422
+ /**
2423
+ * **UNSTABLE**
2424
+ *
2425
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2426
+ *
2427
+ * ACP transport configuration for MCP.
2428
+ *
2429
+ * The MCP server is provided by an ACP component and communicates over the ACP channel
2430
+ * using `mcp/connect`, `mcp/message`, and `mcp/disconnect`.
2431
+ *
2432
+ * @experimental
2433
+ */
2434
+ export const zMcpServerAcp = z.object({
2435
+ name: z.string(),
2436
+ serverId: zMcpServerAcpId,
2437
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2438
+ });
2439
+ /**
2440
+ * Stdio transport configuration for MCP.
2441
+ */
2442
+ export const zMcpServerStdio = z.object({
2443
+ name: z.string(),
2444
+ command: z.string(),
2445
+ args: z.array(z.string()),
2446
+ env: z.array(zEnvVariable),
2447
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2448
+ });
2449
+ /**
2450
+ * Configuration for connecting to an MCP (Model Context Protocol) server.
2451
+ *
2452
+ * MCP servers provide tools and context that the agent can use when
2453
+ * processing prompts.
2454
+ *
2455
+ * See protocol docs: [MCP Servers](https://agentclientprotocol.com/protocol/session-setup#mcp-servers)
2456
+ */
2457
+ export const zMcpServer = z.union([
2458
+ zMcpServerHttp.and(z.object({
2459
+ type: z.literal("http"),
2460
+ })),
2461
+ zMcpServerSse.and(z.object({
2462
+ type: z.literal("sse"),
2463
+ })),
2464
+ zMcpServerAcp.and(z.object({
2465
+ type: z.literal("acp"),
2466
+ })),
2467
+ zMcpServerStdio,
2468
+ ]);
2469
+ /**
2470
+ * Request parameters for creating a new session.
2471
+ *
2472
+ * See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/session-setup#creating-a-session)
2473
+ */
2474
+ export const zNewSessionRequest = z.object({
2475
+ cwd: z.string(),
2476
+ additionalDirectories: defaultOnError(vecSkipError(z.string()).optional(), () => []),
2477
+ mcpServers: requiredDefaultOnError(vecSkipError(zMcpServer), () => []),
2478
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2479
+ });
2480
+ /**
2481
+ * Request parameters for loading an existing session.
2482
+ *
2483
+ * Only available if the Agent supports the `loadSession` capability.
2484
+ *
2485
+ * See protocol docs: [Loading Sessions](https://agentclientprotocol.com/protocol/session-setup#loading-sessions)
2486
+ */
2487
+ export const zLoadSessionRequest = z.object({
2488
+ mcpServers: requiredDefaultOnError(vecSkipError(zMcpServer), () => []),
2489
+ cwd: z.string(),
2490
+ additionalDirectories: defaultOnError(vecSkipError(z.string()).optional(), () => []),
2491
+ sessionId: zSessionId,
2492
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2493
+ });
2494
+ /**
2495
+ * Request parameters for listing existing sessions.
2496
+ *
2497
+ * Only available if the Agent supports the `sessionCapabilities.list` capability.
2498
+ */
2499
+ export const zListSessionsRequest = z.object({
2500
+ cwd: z.string().nullish(),
2501
+ cursor: z.string().nullish(),
2502
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2503
+ });
2504
+ /**
2505
+ * Request parameters for deleting an existing session from `session/list`.
2506
+ *
2507
+ * Only available if the Agent supports the `sessionCapabilities.delete` capability.
2508
+ */
2509
+ export const zDeleteSessionRequest = z.object({
2510
+ sessionId: zSessionId,
2511
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2512
+ });
2513
+ /**
2514
+ * **UNSTABLE**
2515
+ *
2516
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2517
+ *
2518
+ * Request parameters for forking an existing session.
2519
+ *
2520
+ * Creates a new session based on the context of an existing one, allowing
2521
+ * operations like generating summaries without affecting the original session's history.
2522
+ *
2523
+ * Only available if the Agent supports the `session.fork` capability.
2524
+ *
2525
+ * @experimental
2526
+ */
2527
+ export const zForkSessionRequest = z.object({
2528
+ sessionId: zSessionId,
2529
+ cwd: z.string(),
2530
+ additionalDirectories: defaultOnError(vecSkipError(z.string()).optional(), () => []),
2531
+ mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
2532
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2533
+ });
2534
+ /**
2535
+ * Request parameters for resuming an existing session.
2536
+ *
2537
+ * Resumes an existing session without returning previous messages (unlike `session/load`).
2538
+ * This is useful for agents that can resume sessions but don't implement full session loading.
2539
+ *
2540
+ * Only available if the Agent supports the `sessionCapabilities.resume` capability.
2541
+ */
2542
+ export const zResumeSessionRequest = z.object({
2543
+ sessionId: zSessionId,
2544
+ cwd: z.string(),
2545
+ additionalDirectories: defaultOnError(vecSkipError(z.string()).optional(), () => []),
2546
+ mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
2547
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2548
+ });
2549
+ /**
2550
+ * Request parameters for closing an active session.
2551
+ *
2552
+ * If supported, the agent **must** cancel any ongoing work related to the session
2553
+ * (treat it as if `session/cancel` was called) and then free up any resources
2554
+ * associated with the session.
2555
+ *
2556
+ * Only available if the Agent supports the `sessionCapabilities.close` capability.
2557
+ */
2558
+ export const zCloseSessionRequest = z.object({
2559
+ sessionId: zSessionId,
2560
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2561
+ });
2562
+ /**
2563
+ * Request parameters for setting a session mode.
2564
+ */
2565
+ export const zSetSessionModeRequest = z.object({
2566
+ sessionId: zSessionId,
2567
+ modeId: zSessionModeId,
2568
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2569
+ });
2570
+ /**
2571
+ * Request parameters for setting a session configuration option.
2572
+ */
2573
+ export const zSetSessionConfigOptionRequest = z.intersection(z.union([
2574
+ z.object({
2575
+ value: z.boolean(),
2576
+ type: z.literal("boolean"),
2577
+ }),
2578
+ z.object({
2579
+ value: zSessionConfigValueId,
2580
+ }),
2581
+ ]), z.object({
2582
+ sessionId: zSessionId,
2583
+ configId: zSessionConfigId,
2584
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2585
+ }));
2586
+ /**
2587
+ * Request parameters for sending a user prompt to the agent.
2588
+ *
2589
+ * Contains the user's message and any additional context.
2590
+ *
2591
+ * See protocol docs: [User Message](https://agentclientprotocol.com/protocol/prompt-turn#1-user-message)
2592
+ */
2593
+ export const zPromptRequest = z.object({
2594
+ sessionId: zSessionId,
2595
+ prompt: z.array(zContentBlock),
2596
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2597
+ });
2598
+ /**
2599
+ * A workspace folder.
2600
+ */
2601
+ export const zWorkspaceFolder = z.object({
2602
+ uri: z.string(),
2603
+ name: z.string(),
2604
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2605
+ });
2606
+ /**
2607
+ * Repository metadata for an NES session.
2608
+ */
2609
+ export const zNesRepository = z.object({
2610
+ name: z.string(),
2611
+ owner: z.string(),
2612
+ remoteUrl: z.string(),
2613
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2614
+ });
2615
+ /**
2616
+ * Request to start an NES session.
2617
+ */
2618
+ export const zStartNesRequest = z.object({
2619
+ workspaceUri: defaultOnError(z.string().nullish(), () => undefined),
2620
+ workspaceFolders: z.array(zWorkspaceFolder).nullish(),
2621
+ repository: defaultOnError(zNesRepository.nullish(), () => undefined),
2622
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2623
+ });
2624
+ /**
2625
+ * What triggered the suggestion request.
2626
+ */
2627
+ export const zNesTriggerKind = z.union([
2628
+ z.literal("automatic"),
2629
+ z.literal("diagnostic"),
2630
+ z.literal("manual"),
2631
+ ]);
2632
+ /**
2633
+ * A recently accessed file.
2634
+ */
2635
+ export const zNesRecentFile = z.object({
2636
+ uri: z.string(),
2637
+ languageId: z.string(),
2638
+ text: z.string(),
2639
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2640
+ });
2641
+ /**
2642
+ * A code excerpt from a file.
2643
+ */
2644
+ export const zNesExcerpt = z.object({
2645
+ startLine: z.int().gte(0).max(4294967295, {
2646
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
2647
+ }),
2648
+ endLine: z.int().gte(0).max(4294967295, {
2649
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
2650
+ }),
2651
+ text: z.string(),
2652
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2653
+ });
2654
+ /**
2655
+ * A related code snippet from a file.
2656
+ */
2657
+ export const zNesRelatedSnippet = z.object({
2658
+ uri: z.string(),
2659
+ excerpts: z.array(zNesExcerpt),
2660
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2661
+ });
2662
+ /**
2663
+ * An entry in the edit history.
2664
+ */
2665
+ export const zNesEditHistoryEntry = z.object({
2666
+ uri: z.string(),
2667
+ diff: z.string(),
2668
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2669
+ });
2670
+ /**
2671
+ * A user action (typing, cursor movement, etc.).
2672
+ */
2673
+ export const zNesUserAction = z.object({
2674
+ action: z.string(),
2675
+ uri: z.string(),
2676
+ position: zPosition,
2677
+ timestampMs: z.number(),
2678
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2679
+ });
2680
+ /**
2681
+ * An open file in the editor.
2682
+ */
2683
+ export const zNesOpenFile = z.object({
2684
+ uri: z.string(),
2685
+ languageId: z.string(),
2686
+ visibleRange: defaultOnError(zRange.nullish(), () => undefined),
2687
+ lastFocusedMs: defaultOnError(z.number().nullish(), () => undefined),
2688
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2689
+ });
2690
+ /**
2691
+ * Severity of a diagnostic.
2692
+ */
2693
+ export const zNesDiagnosticSeverity = z.union([
2694
+ z.literal("error"),
2695
+ z.literal("warning"),
2696
+ z.literal("information"),
2697
+ z.literal("hint"),
2698
+ ]);
2699
+ /**
2700
+ * A diagnostic (error, warning, etc.).
2701
+ */
2702
+ export const zNesDiagnostic = z.object({
2703
+ uri: z.string(),
2704
+ range: zRange,
2705
+ severity: zNesDiagnosticSeverity,
2706
+ message: z.string(),
2707
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2708
+ });
2709
+ /**
2710
+ * Context attached to a suggestion request.
2711
+ */
2712
+ export const zNesSuggestContext = z.object({
2713
+ recentFiles: z.array(zNesRecentFile).nullish(),
2714
+ relatedSnippets: z.array(zNesRelatedSnippet).nullish(),
2715
+ editHistory: z.array(zNesEditHistoryEntry).nullish(),
2716
+ userActions: z.array(zNesUserAction).nullish(),
2717
+ openFiles: z.array(zNesOpenFile).nullish(),
2718
+ diagnostics: z.array(zNesDiagnostic).nullish(),
2719
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2720
+ });
2721
+ /**
2722
+ * Request for a code suggestion.
2723
+ */
2724
+ export const zSuggestNesRequest = z.object({
2725
+ sessionId: zSessionId,
2726
+ uri: z.string(),
2727
+ version: z.number(),
2728
+ position: zPosition,
2729
+ selection: zRange.nullish(),
2730
+ triggerKind: zNesTriggerKind,
2731
+ context: zNesSuggestContext.nullish(),
2732
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2733
+ });
2734
+ /**
2735
+ * Request to close an NES session.
2736
+ *
2737
+ * The agent **must** cancel any ongoing work related to the NES session
2738
+ * and then free up any resources associated with the session.
2739
+ */
2740
+ export const zCloseNesRequest = z.object({
2741
+ sessionId: zSessionId,
2742
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2743
+ });
2744
+ /**
2745
+ * A JSON-RPC request object.
2746
+ */
2747
+ export const zClientRequest = z.object({
2748
+ id: zRequestId,
2749
+ method: z.string(),
2750
+ params: z
2751
+ .union([
2752
+ zInitializeRequest,
2753
+ zAuthenticateRequest,
2754
+ zListProvidersRequest,
2755
+ zSetProviderRequest,
2756
+ zDisableProviderRequest,
2757
+ zLogoutRequest,
2758
+ zNewSessionRequest,
2759
+ zLoadSessionRequest,
2760
+ zListSessionsRequest,
2761
+ zDeleteSessionRequest,
2762
+ zForkSessionRequest,
2763
+ zResumeSessionRequest,
2764
+ zCloseSessionRequest,
2765
+ zSetSessionModeRequest,
2766
+ zSetSessionConfigOptionRequest,
2767
+ zPromptRequest,
2768
+ zStartNesRequest,
2769
+ zSuggestNesRequest,
2770
+ zCloseNesRequest,
2771
+ zMessageMcpRequest,
2772
+ zExtRequest,
2773
+ ])
2774
+ .nullish(),
2775
+ });
2776
+ /**
2777
+ * Response to `fs/write_text_file`
2778
+ */
2779
+ export const zWriteTextFileResponse = z.object({
2780
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2781
+ });
2782
+ /**
2783
+ * Response containing the contents of a text file.
2784
+ */
2785
+ export const zReadTextFileResponse = z.object({
2786
+ content: z.string(),
2787
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2788
+ });
2789
+ /**
2790
+ * The user selected one of the provided options.
2791
+ */
2792
+ export const zSelectedPermissionOutcome = z.object({
2793
+ optionId: zPermissionOptionId,
2794
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2795
+ });
2796
+ /**
2797
+ * The outcome of a permission request.
2798
+ */
2799
+ export const zRequestPermissionOutcome = z.union([
2800
+ z.object({
2801
+ outcome: z.literal("cancelled"),
2802
+ }),
2803
+ zSelectedPermissionOutcome.and(z.object({
2804
+ outcome: z.literal("selected"),
2805
+ })),
2806
+ ]);
2807
+ /**
2808
+ * Response to a permission request.
2809
+ */
2810
+ export const zRequestPermissionResponse = z.object({
2811
+ outcome: zRequestPermissionOutcome,
2812
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2813
+ });
2814
+ /**
2815
+ * Response containing the ID of the created terminal.
2816
+ */
2817
+ export const zCreateTerminalResponse = z.object({
2818
+ terminalId: zTerminalId,
2819
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2820
+ });
2821
+ /**
2822
+ * Exit status of a terminal command.
2823
+ */
2824
+ export const zTerminalExitStatus = z.object({
2825
+ exitCode: defaultOnError(z
2826
+ .int()
2827
+ .gte(0)
2828
+ .max(4294967295, {
2829
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
2830
+ })
2831
+ .nullish(), () => undefined),
2832
+ signal: defaultOnError(z.string().nullish(), () => undefined),
2833
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2834
+ });
2835
+ /**
2836
+ * Response containing the terminal output and exit status.
2837
+ */
2838
+ export const zTerminalOutputResponse = z.object({
2839
+ output: z.string(),
2840
+ truncated: z.boolean(),
2841
+ exitStatus: defaultOnError(zTerminalExitStatus.nullish(), () => undefined),
2842
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2843
+ });
2844
+ /**
2845
+ * Response to terminal/release method
2846
+ */
2847
+ export const zReleaseTerminalResponse = z.object({
2848
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2849
+ });
2850
+ /**
2851
+ * Response containing the exit status of a terminal command.
2852
+ */
2853
+ export const zWaitForTerminalExitResponse = z.object({
2854
+ exitCode: defaultOnError(z
2855
+ .int()
2856
+ .gte(0)
2857
+ .max(4294967295, {
2858
+ error: "Invalid value: Expected uint32 to be <= 4294967295",
2859
+ })
2860
+ .nullish(), () => undefined),
2861
+ signal: defaultOnError(z.string().nullish(), () => undefined),
2862
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2863
+ });
2864
+ /**
2865
+ * Response to `terminal/kill` method
2866
+ */
2867
+ export const zKillTerminalResponse = z.object({
2868
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2869
+ });
2870
+ /**
2871
+ * Allowed wire representations for [`ElicitationContentValue`].
2872
+ */
2873
+ export const zElicitationContentValue = z.union([
2874
+ z.string(),
2875
+ z.number(),
2876
+ z.number(),
2877
+ z.boolean(),
2878
+ z.array(z.string()),
2879
+ ]);
2880
+ /**
2881
+ * The user accepted the elicitation and provided content.
2882
+ */
2883
+ export const zElicitationAcceptAction = z.object({
2884
+ content: z.record(z.string(), zElicitationContentValue).nullish(),
2885
+ });
2886
+ /**
2887
+ * Response from the client to an elicitation request.
2888
+ *
2889
+ * Custom variants (unknown `action` values) keep their extra
2890
+ * properties exactly as received; unlike known variants, those keys
2891
+ * bypass lenient-field salvage and arrive unvalidated.
2892
+ */
2893
+ export const zCreateElicitationResponse = preserveCustomPayload(z.intersection(z.union([
2894
+ zElicitationAcceptAction.and(z.object({
2895
+ action: z.literal("accept"),
2896
+ })),
2897
+ z.object({
2898
+ action: z.literal("decline"),
2899
+ }),
2900
+ z.object({
2901
+ action: z.literal("cancel"),
2902
+ }),
2903
+ excludeKnownTags(z.object({
2904
+ action: z.string(),
2905
+ }), "action", ["accept", "cancel", "decline"]),
2906
+ ]), z.object({
2907
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2908
+ })), "action", ["accept", "cancel", "decline"]);
2909
+ /**
2910
+ * **UNSTABLE**
2911
+ *
2912
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2913
+ *
2914
+ * Response to `mcp/connect`.
2915
+ *
2916
+ * @experimental
2917
+ */
2918
+ export const zConnectMcpResponse = z.object({
2919
+ connectionId: zMcpConnectionId,
2920
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2921
+ });
2922
+ /**
2923
+ * **UNSTABLE**
2924
+ *
2925
+ * This capability is not part of the spec yet, and may be removed or changed at any point.
2926
+ *
2927
+ * Response to `mcp/disconnect`.
2928
+ *
2929
+ * @experimental
2930
+ */
2931
+ export const zDisconnectMcpResponse = z.object({
2932
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2933
+ });
2934
+ /**
2935
+ * A JSON-RPC response object.
2936
+ */
2937
+ export const zClientResponse = z.union([
2938
+ z.object({
2939
+ id: zRequestId,
2940
+ result: z.union([
2941
+ zWriteTextFileResponse,
2942
+ zReadTextFileResponse,
2943
+ zRequestPermissionResponse,
2944
+ zCreateTerminalResponse,
2945
+ zTerminalOutputResponse,
2946
+ zReleaseTerminalResponse,
2947
+ zWaitForTerminalExitResponse,
2948
+ zKillTerminalResponse,
2949
+ zCreateElicitationResponse,
2950
+ zConnectMcpResponse,
2951
+ zDisconnectMcpResponse,
2952
+ zMessageMcpResponse,
2953
+ zExtResponse,
2954
+ ]),
2955
+ }),
2956
+ z.object({
2957
+ id: zRequestId,
2958
+ error: zError,
2959
+ }),
2960
+ ]);
2961
+ /**
2962
+ * Notification to cancel ongoing operations for a session.
2963
+ *
2964
+ * See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/prompt-turn#cancellation)
2965
+ */
2966
+ export const zCancelNotification = z.object({
2967
+ sessionId: zSessionId,
2968
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2969
+ });
2970
+ /**
2971
+ * Notification sent when a file is opened in the editor.
2972
+ */
2973
+ export const zDidOpenDocumentNotification = z.object({
2974
+ sessionId: zSessionId,
2975
+ uri: z.string(),
2976
+ languageId: z.string(),
2977
+ version: z.number(),
2978
+ text: z.string(),
2979
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2980
+ });
2981
+ /**
2982
+ * A content change event for a document.
2983
+ *
2984
+ * When `range` is `None`, `text` is the full content of the document.
2985
+ * When `range` is `Some`, `text` replaces the given range.
2986
+ */
2987
+ export const zTextDocumentContentChangeEvent = z.object({
2988
+ range: zRange.nullish(),
2989
+ text: z.string(),
2990
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
2991
+ });
2992
+ /**
2993
+ * Notification sent when a file is edited.
2994
+ */
2995
+ export const zDidChangeDocumentNotification = z.object({
2996
+ sessionId: zSessionId,
2997
+ uri: z.string(),
2998
+ version: z.number(),
2999
+ contentChanges: requiredDefaultOnError(vecSkipError(zTextDocumentContentChangeEvent), () => []),
3000
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3001
+ });
3002
+ /**
3003
+ * Notification sent when a file is closed.
3004
+ */
3005
+ export const zDidCloseDocumentNotification = z.object({
3006
+ sessionId: zSessionId,
3007
+ uri: z.string(),
3008
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3009
+ });
3010
+ /**
3011
+ * Notification sent when a file is saved.
3012
+ */
3013
+ export const zDidSaveDocumentNotification = z.object({
3014
+ sessionId: zSessionId,
3015
+ uri: z.string(),
3016
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3017
+ });
3018
+ /**
3019
+ * Notification sent when a file becomes the active editor tab.
3020
+ */
3021
+ export const zDidFocusDocumentNotification = z.object({
3022
+ sessionId: zSessionId,
3023
+ uri: z.string(),
3024
+ version: z.number(),
3025
+ position: zPosition,
3026
+ visibleRange: zRange,
3027
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3028
+ });
3029
+ /**
3030
+ * Notification sent when a suggestion is accepted.
3031
+ */
3032
+ export const zAcceptNesNotification = z.object({
3033
+ sessionId: zSessionId,
3034
+ id: zNesSuggestionId,
3035
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3036
+ });
3037
+ /**
3038
+ * The reason a suggestion was rejected.
3039
+ */
3040
+ export const zNesRejectReason = z.union([
3041
+ z.literal("rejected"),
3042
+ z.literal("ignored"),
3043
+ z.literal("replaced"),
3044
+ z.literal("cancelled"),
3045
+ ]);
3046
+ /**
3047
+ * Notification sent when a suggestion is rejected.
3048
+ */
3049
+ export const zRejectNesNotification = z.object({
3050
+ sessionId: zSessionId,
3051
+ id: zNesSuggestionId,
3052
+ reason: defaultOnError(zNesRejectReason.nullish(), () => undefined),
3053
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3054
+ });
3055
+ /**
3056
+ * A JSON-RPC notification object.
3057
+ */
3058
+ export const zClientNotification = z.object({
3059
+ method: z.string(),
3060
+ params: z
3061
+ .union([
3062
+ zCancelNotification,
3063
+ zDidOpenDocumentNotification,
3064
+ zDidChangeDocumentNotification,
3065
+ zDidCloseDocumentNotification,
3066
+ zDidSaveDocumentNotification,
3067
+ zDidFocusDocumentNotification,
3068
+ zAcceptNesNotification,
3069
+ zRejectNesNotification,
3070
+ zMessageMcpNotification,
3071
+ zExtNotification,
3072
+ ])
3073
+ .nullish(),
3074
+ });
3075
+ /**
3076
+ * Notification to cancel an ongoing request.
3077
+ *
3078
+ * See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/cancellation)
3079
+ */
3080
+ export const zCancelRequestNotification = z.object({
3081
+ requestId: zRequestId,
3082
+ _meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
3083
+ });
3084
+ //# sourceMappingURL=zod.gen.js.map