@tickernelz/wardmote-adapter-utils 0.0.0 → 2026.1108.1

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