@claudiolabs/claudin 0.6.2 → 0.6.4

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 (853) hide show
  1. package/dist/chunks/AgentTool-0.6.4-rbaf1y65.mjs +1 -0
  2. package/dist/chunks/App-0.6.4-rq289jnp.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.4-7d5f28j9.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.4-phb69d3e.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.4-9bf4j0dx.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.4-62rbe590.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.4-5xv95y7k.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.4-7ng7n8ac.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.4-ydwpx8jz.mjs +3 -0
  10. package/dist/chunks/Doctor-0.6.4-r3nh0zs5.mjs +1 -0
  11. package/dist/chunks/Grove-0.6.4-8mwvr7ha.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.6.4-w345qte9.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.6.4-e1xk1r00.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.6.4-7pz7en7r.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.6.4-xgqr16p1.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.6.4-2735sbgf.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.6.4-q840wtmd.mjs +1 -0
  18. package/dist/chunks/REPL-0.6.4-k1gbkvvz.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.6.4-mpzvada2.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.6.4-jctmc6zk.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.6.4-gq0hnh6t.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.6.4-21sqsahr.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.6.4-fjbh45wb.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.6.4-5w2x0jdm.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.6.4-5qd1qqs9.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.6.4-rj702s6d.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.6.4-wdg63cg4.mjs +1 -0
  28. package/dist/chunks/add-dir-0.6.4-kchsbt43.mjs +1 -0
  29. package/dist/chunks/agents-0.6.4-99qwf49d.mjs +110 -0
  30. package/dist/chunks/agents-0.6.4-rdvzbjcr.mjs +3 -0
  31. package/dist/chunks/api-0.6.4-9emwrek2.mjs +1 -0
  32. package/dist/chunks/asciicast-0.6.4-v9b43g5d.mjs +1 -0
  33. package/dist/chunks/assistant-0.6.4-f4m6fp3b.mjs +1 -0
  34. package/dist/chunks/auth-0.6.4-767mww9n.mjs +1 -0
  35. package/dist/chunks/auth-0.6.4-sgz2927j.mjs +1 -0
  36. package/dist/chunks/autoMode-0.6.4-n865xxhg.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.6.4-bvb6j5ck.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.6.4-fercqr2y.mjs +1 -0
  39. package/dist/chunks/branch-0.6.4-0hvhjqr5.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.6.4-dgames2b.mjs +1 -0
  41. package/dist/chunks/btw-0.6.4-fprrp4ch.mjs +1 -0
  42. package/dist/chunks/buddy-0.6.4-0d1rrwbv.mjs +3 -0
  43. package/dist/chunks/cacache-0.6.4-6yj2mrct.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.6.4-x5tn2a2e.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.6.4-ar55ww2f.mjs +4 -0
  46. package/dist/chunks/caches-0.6.4-54fb2qc2.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.6.4-h06j868n.mjs +1 -0
  48. package/dist/chunks/claudemd-0.6.4-35r4255p.mjs +1 -0
  49. package/dist/chunks/clear-0.6.4-6chw4mjb.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.6.4-81zcpvka.mjs +1 -0
  51. package/dist/chunks/cli-0.6.4-00191v0e.mjs +10 -0
  52. package/dist/chunks/cli-0.6.4-02v7f4p3.mjs +2 -0
  53. package/dist/chunks/cli-0.6.4-0gnhakty.mjs +42 -0
  54. package/dist/chunks/cli-0.6.4-0m6t3msa.mjs +2 -0
  55. package/dist/chunks/cli-0.6.4-0ngrseg8.mjs +15 -0
  56. package/dist/chunks/cli-0.6.4-167h8t8x.mjs +2 -0
  57. package/dist/chunks/cli-0.6.4-1ery4vpn.mjs +50 -0
  58. package/dist/chunks/cli-0.6.4-1k1e5y32.mjs +2 -0
  59. package/dist/chunks/cli-0.6.4-1mgm8ymv.mjs +3 -0
  60. package/dist/chunks/cli-0.6.4-1nzpzrfm.mjs +2 -0
  61. package/dist/chunks/cli-0.6.4-1qryxm4s.mjs +21 -0
  62. package/dist/chunks/cli-0.6.4-1s60014f.mjs +2 -0
  63. package/dist/chunks/cli-0.6.4-28pnb4ka.mjs +18 -0
  64. package/dist/chunks/cli-0.6.4-29860mke.mjs +2 -0
  65. package/dist/chunks/cli-0.6.4-2d65trmc.mjs +2 -0
  66. package/dist/chunks/cli-0.6.4-2dm4scsb.mjs +2 -0
  67. package/dist/chunks/cli-0.6.4-2dwdm1v9.mjs +2 -0
  68. package/dist/chunks/cli-0.6.4-2fqxn556.mjs +2 -0
  69. package/dist/chunks/cli-0.6.4-2mytx51g.mjs +16 -0
  70. package/dist/chunks/cli-0.6.4-2q70rra3.mjs +2 -0
  71. package/dist/chunks/cli-0.6.4-2qaa0gp3.mjs +2 -0
  72. package/dist/chunks/cli-0.6.4-2sh53v7p.mjs +7 -0
  73. package/dist/chunks/cli-0.6.4-2y7ay1jf.mjs +2 -0
  74. package/dist/chunks/cli-0.6.4-3d8syj43.mjs +15 -0
  75. package/dist/chunks/cli-0.6.4-3rqg480e.mjs +2 -0
  76. package/dist/chunks/cli-0.6.4-43y102gt.mjs +2 -0
  77. package/dist/chunks/cli-0.6.4-48fcth51.mjs +2 -0
  78. package/dist/chunks/cli-0.6.4-4b3h6h1j.mjs +2 -0
  79. package/dist/chunks/cli-0.6.4-4dtvmfyr.mjs +24 -0
  80. package/dist/chunks/cli-0.6.4-4g9qybcx.mjs +5324 -0
  81. package/dist/chunks/cli-0.6.4-4jc68p21.mjs +2 -0
  82. package/dist/chunks/cli-0.6.4-4mfc5kte.mjs +2 -0
  83. package/dist/chunks/cli-0.6.4-4qg60938.mjs +5 -0
  84. package/dist/chunks/cli-0.6.4-4qyz0e3r.mjs +2 -0
  85. package/dist/chunks/cli-0.6.4-55a83gct.mjs +2 -0
  86. package/dist/chunks/cli-0.6.4-5eshcq2g.mjs +2 -0
  87. package/dist/chunks/cli-0.6.4-5j8b83wg.mjs +2 -0
  88. package/dist/chunks/cli-0.6.4-6czv84g6.mjs +2 -0
  89. package/dist/chunks/cli-0.6.4-771h1906.mjs +2 -0
  90. package/dist/chunks/cli-0.6.4-78evvtpq.mjs +2 -0
  91. package/dist/chunks/cli-0.6.4-7djzrbzn.mjs +4 -0
  92. package/dist/chunks/cli-0.6.4-7htjg50k.mjs +2 -0
  93. package/dist/chunks/cli-0.6.4-7jvtehkv.mjs +2 -0
  94. package/dist/chunks/cli-0.6.4-7keg9eew.mjs +45 -0
  95. package/dist/chunks/cli-0.6.4-7xp2yhpq.mjs +2 -0
  96. package/dist/chunks/cli-0.6.4-89pes3g1.mjs +2 -0
  97. package/dist/chunks/cli-0.6.4-8jwbt311.mjs +4 -0
  98. package/dist/chunks/cli-0.6.4-95vk17cy.mjs +2 -0
  99. package/dist/chunks/cli-0.6.4-96m5w0az.mjs +2 -0
  100. package/dist/chunks/cli-0.6.4-9ab34q29.mjs +2 -0
  101. package/dist/chunks/cli-0.6.4-9j2480tb.mjs +3 -0
  102. package/dist/chunks/cli-0.6.4-9k5r0pfb.mjs +1 -0
  103. package/dist/chunks/cli-0.6.4-9wdpd5tf.mjs +2 -0
  104. package/dist/chunks/cli-0.6.4-9ydhssth.mjs +2 -0
  105. package/dist/chunks/cli-0.6.4-9z6f4aka.mjs +2 -0
  106. package/dist/chunks/cli-0.6.4-a1der2pe.mjs +2 -0
  107. package/dist/chunks/cli-0.6.4-a4wjm2rf.mjs +58 -0
  108. package/dist/chunks/cli-0.6.4-a7tb1zsc.mjs +3 -0
  109. package/dist/chunks/cli-0.6.4-aprgpdp6.mjs +2 -0
  110. package/dist/chunks/cli-0.6.4-bbsbw8kz.mjs +2 -0
  111. package/dist/chunks/cli-0.6.4-bgwzkgj9.mjs +2 -0
  112. package/dist/chunks/cli-0.6.4-btcax77x.mjs +2 -0
  113. package/dist/chunks/cli-0.6.4-bvrcy0gs.mjs +2 -0
  114. package/dist/chunks/cli-0.6.4-cgktpczq.mjs +2 -0
  115. package/dist/chunks/cli-0.6.4-cp53mw1m.mjs +2 -0
  116. package/dist/chunks/cli-0.6.4-cttwajrp.mjs +2 -0
  117. package/dist/chunks/cli-0.6.4-cxhs267r.mjs +2 -0
  118. package/dist/chunks/cli-0.6.4-cy7jqdcj.mjs +2 -0
  119. package/dist/chunks/cli-0.6.4-da88vvgh.mjs +2 -0
  120. package/dist/chunks/cli-0.6.4-dhyghbjg.mjs +2 -0
  121. package/dist/chunks/cli-0.6.4-dny0rntq.mjs +2 -0
  122. package/dist/chunks/cli-0.6.4-dtrjgbbz.mjs +2 -0
  123. package/dist/chunks/cli-0.6.4-dvh5yb9z.mjs +2 -0
  124. package/dist/chunks/cli-0.6.4-dz01y28k.mjs +133 -0
  125. package/dist/chunks/cli-0.6.4-dzer59m8.mjs +2 -0
  126. package/dist/chunks/cli-0.6.4-e0pqs0qg.mjs +4 -0
  127. package/dist/chunks/cli-0.6.4-e4nxzjbd.mjs +3 -0
  128. package/dist/chunks/cli-0.6.4-ehexec8h.mjs +2 -0
  129. package/dist/chunks/cli-0.6.4-ejrq8g7w.mjs +2 -0
  130. package/dist/chunks/cli-0.6.4-ekg42ba5.mjs +2 -0
  131. package/dist/chunks/cli-0.6.4-em2mfvpg.mjs +193 -0
  132. package/dist/chunks/cli-0.6.4-ex2d76ze.mjs +4 -0
  133. package/dist/chunks/cli-0.6.4-eykta4ak.mjs +2 -0
  134. package/dist/chunks/cli-0.6.4-f1ya630v.mjs +39 -0
  135. package/dist/chunks/cli-0.6.4-f51bqfv1.mjs +4 -0
  136. package/dist/chunks/cli-0.6.4-fg71wev8.mjs +2 -0
  137. package/dist/chunks/cli-0.6.4-fh1fzqd2.mjs +133 -0
  138. package/dist/chunks/cli-0.6.4-fhcsv0k7.mjs +2 -0
  139. package/dist/chunks/cli-0.6.4-fppw8yjy.mjs +2 -0
  140. package/dist/chunks/cli-0.6.4-g1kweb8j.mjs +17 -0
  141. package/dist/chunks/cli-0.6.4-g1qw18ad.mjs +2 -0
  142. package/dist/chunks/cli-0.6.4-g2a0w8wh.mjs +3 -0
  143. package/dist/chunks/cli-0.6.4-g37ywszt.mjs +2 -0
  144. package/dist/chunks/cli-0.6.4-gbc9szsq.mjs +20 -0
  145. package/dist/chunks/cli-0.6.4-gdvys9qy.mjs +2 -0
  146. package/dist/chunks/cli-0.6.4-ge6qg76s.mjs +18 -0
  147. package/dist/chunks/cli-0.6.4-ggxbtbd1.mjs +2 -0
  148. package/dist/chunks/cli-0.6.4-ghagvvva.mjs +2 -0
  149. package/dist/chunks/cli-0.6.4-gyb3cp0m.mjs +15 -0
  150. package/dist/chunks/cli-0.6.4-h2c5gxa3.mjs +2 -0
  151. package/dist/chunks/cli-0.6.4-h598qtx2.mjs +2 -0
  152. package/dist/chunks/cli-0.6.4-h9ncym59.mjs +2 -0
  153. package/dist/chunks/cli-0.6.4-hb3rny4x.mjs +3 -0
  154. package/dist/chunks/cli-0.6.4-hhaw00mw.mjs +2 -0
  155. package/dist/chunks/cli-0.6.4-hk0wy6ay.mjs +2 -0
  156. package/dist/chunks/cli-0.6.4-hrs590q0.mjs +2 -0
  157. package/dist/chunks/cli-0.6.4-hx250zvn.mjs +2 -0
  158. package/dist/chunks/cli-0.6.4-j61ta5y1.mjs +2 -0
  159. package/dist/chunks/cli-0.6.4-j7hr5rd4.mjs +2 -0
  160. package/dist/chunks/cli-0.6.4-jc2r75s6.mjs +2 -0
  161. package/dist/chunks/cli-0.6.4-jg4xm27s.mjs +2 -0
  162. package/dist/chunks/cli-0.6.4-jh0d8t91.mjs +9 -0
  163. package/dist/chunks/cli-0.6.4-jk0aqvhn.mjs +2 -0
  164. package/dist/chunks/cli-0.6.4-jmvxa7qj.mjs +2 -0
  165. package/dist/chunks/cli-0.6.4-jn11nc5a.mjs +2 -0
  166. package/dist/chunks/cli-0.6.4-jra8pavs.mjs +2 -0
  167. package/dist/chunks/cli-0.6.4-jrweqe5y.mjs +2 -0
  168. package/dist/chunks/cli-0.6.4-jvfz5yaf.mjs +2 -0
  169. package/dist/chunks/cli-0.6.4-k2azfhje.mjs +12 -0
  170. package/dist/chunks/cli-0.6.4-k498jsqp.mjs +9 -0
  171. package/dist/chunks/cli-0.6.4-k6a4gc0p.mjs +3 -0
  172. package/dist/chunks/cli-0.6.4-k76c1cdx.mjs +2 -0
  173. package/dist/chunks/cli-0.6.4-kkwh828j.mjs +2 -0
  174. package/dist/chunks/cli-0.6.4-ksf3bj49.mjs +2 -0
  175. package/dist/chunks/cli-0.6.4-kygb95p8.mjs +2 -0
  176. package/dist/chunks/cli-0.6.4-m0b0hm20.mjs +2 -0
  177. package/dist/chunks/cli-0.6.4-n3wmzz8w.mjs +2 -0
  178. package/dist/chunks/cli-0.6.4-n9mgjg26.mjs +2 -0
  179. package/dist/chunks/cli-0.6.4-nscxc6w9.mjs +2 -0
  180. package/dist/chunks/cli-0.6.4-p1yyrrqa.mjs +2 -0
  181. package/dist/chunks/cli-0.6.4-p56yx5pd.mjs +3 -0
  182. package/dist/chunks/cli-0.6.4-p7mvm2y6.mjs +5 -0
  183. package/dist/chunks/cli-0.6.4-pd75v1wy.mjs +6 -0
  184. package/dist/chunks/cli-0.6.4-pg577m2t.mjs +18 -0
  185. package/dist/chunks/cli-0.6.4-pjk8hxs1.mjs +4 -0
  186. package/dist/chunks/cli-0.6.4-pp4r33sa.mjs +4 -0
  187. package/dist/chunks/cli-0.6.4-pqdfmet2.mjs +4 -0
  188. package/dist/chunks/cli-0.6.4-prdj94yp.mjs +4 -0
  189. package/dist/chunks/cli-0.6.4-prv34fmj.mjs +2 -0
  190. package/dist/chunks/cli-0.6.4-q45r4rnd.mjs +2 -0
  191. package/dist/chunks/cli-0.6.4-qcpjz3yn.mjs +2 -0
  192. package/dist/chunks/cli-0.6.4-qxhfaxsk.mjs +2 -0
  193. package/dist/chunks/cli-0.6.4-rdtbn65d.mjs +2 -0
  194. package/dist/chunks/cli-0.6.4-rf4gtxa6.mjs +2 -0
  195. package/dist/chunks/cli-0.6.4-rqmfmwew.mjs +4 -0
  196. package/dist/chunks/cli-0.6.4-rw4dqk3e.mjs +2 -0
  197. package/dist/chunks/cli-0.6.4-s062axqp.mjs +67 -0
  198. package/dist/chunks/cli-0.6.4-sebyspe3.mjs +2 -0
  199. package/dist/chunks/cli-0.6.4-sg59x1y7.mjs +2 -0
  200. package/dist/chunks/cli-0.6.4-sk4r23n0.mjs +2 -0
  201. package/dist/chunks/cli-0.6.4-spysehd5.mjs +2 -0
  202. package/dist/chunks/cli-0.6.4-sz5jkrwv.mjs +8 -0
  203. package/dist/chunks/cli-0.6.4-t13eh9gb.mjs +2 -0
  204. package/dist/chunks/cli-0.6.4-t87tgqs2.mjs +2 -0
  205. package/dist/chunks/cli-0.6.4-tda6fzwk.mjs +2 -0
  206. package/dist/chunks/cli-0.6.4-tgtxrvzn.mjs +3 -0
  207. package/dist/chunks/cli-0.6.4-ttyv846t.mjs +2 -0
  208. package/dist/chunks/cli-0.6.4-v050kzdd.mjs +2 -0
  209. package/dist/chunks/cli-0.6.4-v2fsc12w.mjs +2 -0
  210. package/dist/chunks/cli-0.6.4-v3ym5bjk.mjs +2 -0
  211. package/dist/chunks/cli-0.6.4-vawbj80d.mjs +5 -0
  212. package/dist/chunks/cli-0.6.4-vekd5qeh.mjs +3 -0
  213. package/dist/chunks/cli-0.6.4-vg82smm8.mjs +24 -0
  214. package/dist/chunks/cli-0.6.4-vyqg6c95.mjs +3 -0
  215. package/dist/chunks/cli-0.6.4-vyyncn9y.mjs +34 -0
  216. package/dist/chunks/cli-0.6.4-wpzc8xj5.mjs +3 -0
  217. package/dist/chunks/cli-0.6.4-x0pe866a.mjs +2 -0
  218. package/dist/chunks/cli-0.6.4-x3pc9zn1.mjs +6 -0
  219. package/dist/chunks/cli-0.6.4-x6d6qxpg.mjs +2 -0
  220. package/dist/chunks/cli-0.6.4-x6npewbm.mjs +6 -0
  221. package/dist/chunks/cli-0.6.4-x7ss8dse.mjs +2 -0
  222. package/dist/chunks/cli-0.6.4-x84dfqja.mjs +2 -0
  223. package/dist/chunks/cli-0.6.4-xf6vdp7p.mjs +2 -0
  224. package/dist/chunks/cli-0.6.4-xgmmcr56.mjs +25 -0
  225. package/dist/chunks/cli-0.6.4-xh0mhy0q.mjs +2 -0
  226. package/dist/chunks/cli-0.6.4-xj949nnt.mjs +2 -0
  227. package/dist/chunks/cli-0.6.4-xm44y40c.mjs +2 -0
  228. package/dist/chunks/cli-0.6.4-y9nrcnx6.mjs +2 -0
  229. package/dist/chunks/cli-0.6.4-yak49q2f.mjs +12 -0
  230. package/dist/chunks/cli-0.6.4-ymgdd6a7.mjs +2 -0
  231. package/dist/chunks/cli-0.6.4-yrfkm9my.mjs +2 -0
  232. package/dist/chunks/cli-0.6.4-ysvx8vre.mjs +12 -0
  233. package/dist/chunks/cli-0.6.4-yxqfeka0.mjs +2 -0
  234. package/dist/chunks/cli-0.6.4-z0j0rsqe.mjs +2 -0
  235. package/dist/chunks/cli-0.6.4-z3hp0qzv.mjs +59 -0
  236. package/dist/chunks/cli-0.6.4-z63xq66c.mjs +2 -0
  237. package/dist/chunks/cli-0.6.4-zgzya3hb.mjs +17 -0
  238. package/dist/chunks/cli-0.6.4-zkfpt86n.mjs +2 -0
  239. package/dist/chunks/cli-0.6.4-zss3bwjp.mjs +2 -0
  240. package/dist/chunks/cli-0.6.4-ztqssjbf.mjs +2 -0
  241. package/dist/chunks/client-0.6.4-ba2mtgjd.mjs +1 -0
  242. package/dist/chunks/color-0.6.4-2g7drx0s.mjs +1 -0
  243. package/dist/chunks/compact-0.6.4-tnqd9mmn.mjs +3 -0
  244. package/dist/chunks/config-0.6.4-3bhr23pq.mjs +1 -0
  245. package/dist/chunks/config-0.6.4-x56wgtde.mjs +1 -0
  246. package/dist/chunks/constants-0.6.4-cy9scgrh.mjs +1 -0
  247. package/dist/chunks/context-0.6.4-sjcg7yxa.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.6.4-630bqrtn.mjs +1 -0
  249. package/dist/chunks/conversation-0.6.4-4wkb13gm.mjs +1 -0
  250. package/dist/chunks/copilotHeaders-0.6.4-6ygmq0rm.mjs +1 -0
  251. package/dist/chunks/copy-0.6.4-bgxrhckq.mjs +9 -0
  252. package/dist/chunks/cost-0.6.4-w83wc8ng.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.6.4-xcjsx731.mjs +1 -0
  254. package/dist/chunks/createSession-0.6.4-wsz3r56j.mjs +1 -0
  255. package/dist/chunks/debug-0.6.4-98yk6kds.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.6.4-gnr6f4bm.mjs +1365 -0
  257. package/dist/chunks/desktop-0.6.4-hpbrkj08.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.6.4-jtg1wvsa.mjs +1 -0
  259. package/dist/chunks/detection-0.6.4-dqwz1bq1.mjs +1 -0
  260. package/dist/chunks/diff-0.6.4-6mtph9me.mjs +1 -0
  261. package/dist/chunks/doctor-0.6.4-rhc37adv.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.6.4-dwt35xp9.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.6.4-gwc98r30.mjs +1 -0
  264. package/dist/chunks/effort-0.6.4-gat4neps.mjs +10 -0
  265. package/dist/chunks/envUtils-0.6.4-y2b3abdc.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.6.4-xxrzk7m6.mjs +1 -0
  267. package/dist/chunks/environments-0.6.4-h1v61wzy.mjs +1 -0
  268. package/dist/chunks/errors-0.6.4-ca74wb6q.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.6.4-g36htc09.mjs +1 -0
  270. package/dist/chunks/exit-0.6.4-z7yj01cx.mjs +1 -0
  271. package/dist/chunks/export-0.6.4-ffzrse4n.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.6.4-d23skk9c.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.6.4-0akfkh19.mjs +1 -0
  274. package/dist/chunks/fast-0.6.4-dy9ew4g1.mjs +1 -0
  275. package/dist/chunks/feedback-0.6.4-5pw5kr6j.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.6.4-58n8gvjr.mjs +1 -0
  277. package/dist/chunks/git-0.6.4-5p9es5sh.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.6.4-c75tjtm6.mjs +1 -0
  279. package/dist/chunks/goal-0.6.4-05yfbtf5.mjs +4 -0
  280. package/dist/chunks/grove-0.6.4-3mxw3jbp.mjs +1 -0
  281. package/dist/chunks/growthbook-0.6.4-w1a2ja8q.mjs +1 -0
  282. package/dist/chunks/headless-0.6.4-1b8pxyk6.mjs +2 -0
  283. package/dist/chunks/heapdump-0.6.4-ckft18df.mjs +6 -0
  284. package/dist/chunks/help-0.6.4-1qswzq2t.mjs +1 -0
  285. package/dist/chunks/hookChains-0.6.4-mc6w2yn4.mjs +3 -0
  286. package/dist/chunks/hooks-0.6.4-zqycdaww.mjs +1 -0
  287. package/dist/chunks/hooks-0.6.4-zw8ak2ae.mjs +79 -0
  288. package/dist/chunks/ide-0.6.4-kjaythhf.mjs +3 -0
  289. package/dist/chunks/image-processor-napi-0.6.4-9n32xq4y.mjs +1 -0
  290. package/dist/chunks/index-0.6.4-1eqjmyfc.mjs +1 -0
  291. package/dist/chunks/index-0.6.4-5x2zgy8s.mjs +1 -0
  292. package/dist/chunks/index-0.6.4-6er8ykqb.mjs +1 -0
  293. package/dist/chunks/index-0.6.4-6z8pdxeg.mjs +1 -0
  294. package/dist/chunks/index-0.6.4-8gxkz67a.mjs +1 -0
  295. package/dist/chunks/index-0.6.4-ay6td6v7.mjs +1 -0
  296. package/dist/chunks/index-0.6.4-bf4fb2rv.mjs +1 -0
  297. package/dist/chunks/index-0.6.4-cs4qnyse.mjs +9 -0
  298. package/dist/chunks/index-0.6.4-d8a7z3cd.mjs +1 -0
  299. package/dist/chunks/index-0.6.4-e1xb3q84.mjs +1 -0
  300. package/dist/chunks/index-0.6.4-fapqkd13.mjs +30 -0
  301. package/dist/chunks/index-0.6.4-fsypm1g5.mjs +1 -0
  302. package/dist/chunks/index-0.6.4-j1dpgmwz.mjs +5 -0
  303. package/dist/chunks/index-0.6.4-k5z3btpk.mjs +1 -0
  304. package/dist/chunks/index-0.6.4-kv8v270h.mjs +1 -0
  305. package/dist/chunks/index-0.6.4-nn5ynnfb.mjs +2 -0
  306. package/dist/chunks/index-0.6.4-np003dn4.mjs +2 -0
  307. package/dist/chunks/index-0.6.4-qtcndy07.mjs +1 -0
  308. package/dist/chunks/index-0.6.4-s0gg7sga.mjs +1 -0
  309. package/dist/chunks/index-0.6.4-scbwf11t.mjs +9 -0
  310. package/dist/chunks/index-0.6.4-sqrhv68x.mjs +17 -0
  311. package/dist/chunks/index-0.6.4-w93mdh3w.mjs +1 -0
  312. package/dist/chunks/init-0.6.4-ccs2p8cg.mjs +1 -0
  313. package/dist/chunks/initReplBridge-0.6.4-7cnffgw6.mjs +1 -0
  314. package/dist/chunks/ink-0.6.4-kv9v236j.mjs +1 -0
  315. package/dist/chunks/insights-0.6.4-v475bskf.mjs +870 -0
  316. package/dist/chunks/install-0.6.4-9x6x6d7w.mjs +1 -0
  317. package/dist/chunks/install-github-app-0.6.4-e0hnh1ac.mjs +149 -0
  318. package/dist/chunks/install-slack-app-0.6.4-5m1bq4zr.mjs +1 -0
  319. package/dist/chunks/instrumentation-0.6.4-j0dm5kvt.mjs +1 -0
  320. package/dist/chunks/interactiveHelpers-0.6.4-trjfh09v.mjs +1 -0
  321. package/dist/chunks/keybindings-0.6.4-52xyg2q7.mjs +2 -0
  322. package/dist/chunks/knowledge-0.6.4-3pd8yspr.mjs +2 -0
  323. package/dist/chunks/latestVersionCache-0.6.4-6nv1r43c.mjs +1 -0
  324. package/dist/chunks/loadAgentsDir-0.6.4-2f1egc65.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.6.4-6bdefjx0.mjs +1 -0
  326. package/dist/chunks/loadPluginHooks-0.6.4-jg6hn8q1.mjs +1 -0
  327. package/dist/chunks/log-0.6.4-byx1v0aw.mjs +1 -0
  328. package/dist/chunks/main-0.6.4-7kgs4wzg.mjs +1 -0
  329. package/dist/chunks/managedEnv-0.6.4-seg7a473.mjs +1 -0
  330. package/dist/chunks/mcp-0.6.4-fme3jax5.mjs +17 -0
  331. package/dist/chunks/mcp-0.6.4-gw2k9j0s.mjs +4 -0
  332. package/dist/chunks/mcp-0.6.4-hz4ymzf8.mjs +1 -0
  333. package/dist/chunks/mcpb-0.6.4-rm87xg1m.mjs +1 -0
  334. package/dist/chunks/memory-0.6.4-hdem4rfy.mjs +3 -0
  335. package/dist/chunks/mobile-0.6.4-xga427dx.mjs +2 -0
  336. package/dist/chunks/model-0.6.4-e7swq7hs.mjs +1 -0
  337. package/dist/chunks/model-0.6.4-raaz0pn8.mjs +2 -0
  338. package/dist/chunks/node-0.6.4-2mhf46p7.mjs +12 -0
  339. package/dist/chunks/oauth-0.6.4-de05kmr6.mjs +1 -0
  340. package/dist/chunks/openaiShim-0.6.4-shaa1wsv.mjs +14 -0
  341. package/dist/chunks/output-style-0.6.4-gfd6r8hz.mjs +1 -0
  342. package/dist/chunks/package-D6422PQU-0.6.4-syh17p64.mjs +1 -0
  343. package/dist/chunks/parseConnectUrl-0.6.4-k2eex22j.mjs +1 -0
  344. package/dist/chunks/parser-0.6.4-43t4x7r9.mjs +1 -0
  345. package/dist/chunks/passes-0.6.4-tbj019p0.mjs +1 -0
  346. package/dist/chunks/permissions-0.6.4-d0fw76d7.mjs +3 -0
  347. package/dist/chunks/plan-0.6.4-084fq0kq.mjs +1 -0
  348. package/dist/chunks/plist-0.6.4-439zn1sw.mjs +1 -0
  349. package/dist/chunks/plugin-0.6.4-mnsbmvwr.mjs +29 -0
  350. package/dist/chunks/pluginStartupCheck-0.6.4-t2kn51a4.mjs +1 -0
  351. package/dist/chunks/plugins-0.6.4-630t2jf7.mjs +9 -0
  352. package/dist/chunks/preActionHook-0.6.4-gfadf2sk.mjs +2 -0
  353. package/dist/chunks/print-0.6.4-pw4vrnzd.mjs +57 -0
  354. package/dist/chunks/privacy-settings-0.6.4-b97bep23.mjs +1 -0
  355. package/dist/chunks/process-0.6.4-yewqx1g2.mjs +1 -0
  356. package/dist/chunks/processBashCommand-0.6.4-64reh5jq.mjs +1 -0
  357. package/dist/chunks/processSlashCommand-0.6.4-46w7k3kw.mjs +9 -0
  358. package/dist/chunks/prompt-0.6.4-1dfbspxp.mjs +1 -0
  359. package/dist/chunks/prompt-0.6.4-ax8j0qse.mjs +1 -0
  360. package/dist/chunks/prompts-0.6.4-avjtc7j4.mjs +1 -0
  361. package/dist/chunks/protocolHandler-0.6.4-z0382sns.mjs +13 -0
  362. package/dist/chunks/provider-0.6.4-dww4c5j2.mjs +2 -0
  363. package/dist/chunks/providerProfiles-0.6.4-phwwz4cg.mjs +1 -0
  364. package/dist/chunks/providerValidation-0.6.4-zctdw7r7.mjs +6 -0
  365. package/dist/chunks/rate-limit-options-0.6.4-sydaxbv7.mjs +1 -0
  366. package/dist/chunks/registerSubcommands-0.6.4-ejhhvkd5.mjs +34 -0
  367. package/dist/chunks/registry-0.6.4-kb0x4rx3.mjs +1 -0
  368. package/dist/chunks/release-notes-0.6.4-es6sgycw.mjs +5 -0
  369. package/dist/chunks/reload-plugins-0.6.4-z5560vpf.mjs +2 -0
  370. package/dist/chunks/remote-env-0.6.4-6ypd7mgt.mjs +1 -0
  371. package/dist/chunks/remoteBridgeCore-0.6.4-r2nre1by.mjs +1 -0
  372. package/dist/chunks/remoteSession-0.6.4-jhazvxam.mjs +1 -0
  373. package/dist/chunks/rename-0.6.4-wnm225zc.mjs +1 -0
  374. package/dist/chunks/replBridgeHandle-0.6.4-90waxyt2.mjs +1 -0
  375. package/dist/chunks/replLauncher-0.6.4-fqvqymes.mjs +1 -0
  376. package/dist/chunks/resume-0.6.4-2edgjvxb.mjs +2 -0
  377. package/dist/chunks/rewind-0.6.4-43tzjabn.mjs +1 -0
  378. package/dist/chunks/rootOptions-0.6.4-efwh7nb7.mjs +1 -0
  379. package/dist/chunks/sandbox-adapter-0.6.4-7ccq9g0r.mjs +1 -0
  380. package/dist/chunks/sandbox-toggle-0.6.4-ca6p1txa.mjs +1 -0
  381. package/dist/chunks/session-0.6.4-xqz0b6bv.mjs +2 -0
  382. package/dist/chunks/sessionDiscovery-0.6.4-zhn2re2r.mjs +1 -0
  383. package/dist/chunks/sessionFileAccessHooks-0.6.4-0s8vv82b.mjs +1 -0
  384. package/dist/chunks/sessionStorage-0.6.4-k27431kx.mjs +1 -0
  385. package/dist/chunks/settings-0.6.4-xg6qae4k.mjs +1 -0
  386. package/dist/chunks/setup-0.6.4-zc0wstra.mjs +5 -0
  387. package/dist/chunks/sinks-0.6.4-3rycgm4d.mjs +1 -0
  388. package/dist/chunks/skills-0.6.4-jwf0fht6.mjs +1 -0
  389. package/dist/chunks/startupProfiler-0.6.4-6c1wp85a.mjs +1 -0
  390. package/dist/chunks/startupUpdateCheck-0.6.4-xqbvq5b5.mjs +1 -0
  391. package/dist/chunks/state-0.6.4-p0ddysh2.mjs +1 -0
  392. package/dist/chunks/stats-0.6.4-hys6q4f4.mjs +6 -0
  393. package/dist/chunks/status-0.6.4-5f8q60ey.mjs +1 -0
  394. package/dist/chunks/stickers-0.6.4-tftjq5eh.mjs +1 -0
  395. package/dist/chunks/subprocessEnv-0.6.4-gz5jdaaq.mjs +1 -0
  396. package/dist/chunks/tasks-0.6.4-s9qwaetv.mjs +1 -0
  397. package/dist/chunks/teamHelpers-0.6.4-h72qp38f.mjs +1 -0
  398. package/dist/chunks/teammateModeSnapshot-0.6.4-ezcvghhw.mjs +1 -0
  399. package/dist/chunks/teleport-0.6.4-e668czw7.mjs +1 -0
  400. package/dist/chunks/terminalSetup-0.6.4-53azbkac.mjs +1 -0
  401. package/dist/chunks/theme-0.6.4-zhw8bpdv.mjs +1 -0
  402. package/dist/chunks/thinkback-0.6.4-cpckywc7.mjs +1 -0
  403. package/dist/chunks/thinkback-play-0.6.4-ke47vrva.mjs +1 -0
  404. package/dist/chunks/toolPool-0.6.4-whn705s5.mjs +1 -0
  405. package/dist/chunks/toolSearch-0.6.4-80h4rrgj.mjs +1 -0
  406. package/dist/chunks/tools-0.6.4-4kf64373.mjs +1 -0
  407. package/dist/chunks/trustedDevice-0.6.4-zbvda07m.mjs +1 -0
  408. package/dist/chunks/turndown.cjs-0.6.4-ghgzppms.mjs +69 -0
  409. package/dist/chunks/ultrareviewCommand-0.6.4-r028gcax.mjs +4 -0
  410. package/dist/chunks/update-0.6.4-a233wpzj.mjs +86 -0
  411. package/dist/chunks/upgrade-0.6.4-mx4jnstf.mjs +1 -0
  412. package/dist/chunks/upstreamproxy-0.6.4-4cmr0qtj.mjs +14 -0
  413. package/dist/chunks/url-handler-napi-0.6.4-vt0a3wdc.mjs +1 -0
  414. package/dist/chunks/usage-0.6.4-8kncs1zq.mjs +1 -0
  415. package/dist/chunks/util-0.6.4-afjsm52j.mjs +1 -0
  416. package/dist/chunks/utils-0.6.4-r5qbctxg.mjs +1 -0
  417. package/dist/chunks/vim-0.6.4-qb1hpv1s.mjs +1 -0
  418. package/dist/chunks/watcher-0.6.4-w81paz2g.mjs +1 -0
  419. package/dist/chunks/wiki-0.6.4-3wc3s65f.mjs +132 -0
  420. package/dist/chunks/worktree-0.6.4-hy75224j.mjs +1 -0
  421. package/dist/chunks/worktreeModeEnabled-0.6.4-7wyg7p08.mjs +1 -0
  422. package/dist/chunks/wrapper-0.6.4-vqj09efm.mjs +7 -0
  423. package/dist/claudin-vscode.vsix +0 -0
  424. package/dist/cli.mjs +2 -2
  425. package/package.json +1 -1
  426. package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +0 -1
  427. package/dist/chunks/App-0.6.2-81hq55t1.mjs +0 -1
  428. package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +0 -1
  429. package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +0 -1
  430. package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +0 -1
  431. package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +0 -1
  432. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +0 -1
  433. package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +0 -1
  434. package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +0 -3
  435. package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +0 -1
  436. package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +0 -1
  437. package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +0 -1
  438. package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +0 -1
  439. package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +0 -1
  440. package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +0 -1
  441. package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +0 -1
  442. package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +0 -1
  443. package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +0 -1
  444. package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +0 -1
  445. package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +0 -1
  446. package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +0 -1
  447. package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +0 -1
  448. package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +0 -1
  449. package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +0 -9
  450. package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +0 -1
  451. package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +0 -1
  452. package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +0 -1
  453. package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +0 -1
  454. package/dist/chunks/agents-0.6.2-pwkawpda.mjs +0 -110
  455. package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +0 -3
  456. package/dist/chunks/api-0.6.2-r9z30232.mjs +0 -1
  457. package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +0 -1
  458. package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +0 -1
  459. package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +0 -1
  460. package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +0 -1
  461. package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +0 -48
  462. package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +0 -1
  463. package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +0 -1
  464. package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +0 -4
  465. package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +0 -1
  466. package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +0 -1
  467. package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +0 -3
  468. package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +0 -1
  469. package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +0 -21
  470. package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +0 -4
  471. package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +0 -1
  472. package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +0 -1
  473. package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +0 -1
  474. package/dist/chunks/clear-0.6.2-301n503a.mjs +0 -1
  475. package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +0 -1
  476. package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +0 -42
  477. package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +0 -4
  478. package/dist/chunks/cli-0.6.2-0p39svq8.mjs +0 -2
  479. package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +0 -2
  480. package/dist/chunks/cli-0.6.2-1ahapm20.mjs +0 -2
  481. package/dist/chunks/cli-0.6.2-1b9hx344.mjs +0 -2
  482. package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +0 -2
  483. package/dist/chunks/cli-0.6.2-1hrabb68.mjs +0 -3
  484. package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +0 -9
  485. package/dist/chunks/cli-0.6.2-1y907j57.mjs +0 -2
  486. package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +0 -2
  487. package/dist/chunks/cli-0.6.2-26qywcgz.mjs +0 -2
  488. package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +0 -2
  489. package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +0 -3
  490. package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +0 -2
  491. package/dist/chunks/cli-0.6.2-2z19ppek.mjs +0 -15
  492. package/dist/chunks/cli-0.6.2-334vw6ys.mjs +0 -2
  493. package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +0 -2
  494. package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +0 -2
  495. package/dist/chunks/cli-0.6.2-3rgtxc9f.mjs +0 -2
  496. package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +0 -2
  497. package/dist/chunks/cli-0.6.2-42d88f3r.mjs +0 -2
  498. package/dist/chunks/cli-0.6.2-43f0sknv.mjs +0 -2
  499. package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +0 -2
  500. package/dist/chunks/cli-0.6.2-4a5t390f.mjs +0 -2
  501. package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +0 -15
  502. package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +0 -2
  503. package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +0 -39
  504. package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +0 -5323
  505. package/dist/chunks/cli-0.6.2-4py7r63v.mjs +0 -2
  506. package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +0 -59
  507. package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +0 -2
  508. package/dist/chunks/cli-0.6.2-5jempndm.mjs +0 -133
  509. package/dist/chunks/cli-0.6.2-657fbmws.mjs +0 -2
  510. package/dist/chunks/cli-0.6.2-6bacgc39.mjs +0 -3
  511. package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +0 -5
  512. package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +0 -2
  513. package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +0 -3
  514. package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +0 -3
  515. package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +0 -4
  516. package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +0 -2
  517. package/dist/chunks/cli-0.6.2-7egesyh9.mjs +0 -4
  518. package/dist/chunks/cli-0.6.2-7rmm482v.mjs +0 -12
  519. package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +0 -2
  520. package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +0 -25
  521. package/dist/chunks/cli-0.6.2-83ennmm8.mjs +0 -21
  522. package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +0 -2
  523. package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +0 -5
  524. package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +0 -10
  525. package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +0 -2
  526. package/dist/chunks/cli-0.6.2-974c5e67.mjs +0 -9
  527. package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +0 -2
  528. package/dist/chunks/cli-0.6.2-9mwrq250.mjs +0 -3
  529. package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +0 -2
  530. package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +0 -2
  531. package/dist/chunks/cli-0.6.2-9qtj477e.mjs +0 -2
  532. package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +0 -2
  533. package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +0 -4
  534. package/dist/chunks/cli-0.6.2-a8atyp18.mjs +0 -2
  535. package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +0 -2
  536. package/dist/chunks/cli-0.6.2-aq30pg47.mjs +0 -2
  537. package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +0 -6
  538. package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +0 -2
  539. package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +0 -2
  540. package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +0 -2
  541. package/dist/chunks/cli-0.6.2-bkff60ff.mjs +0 -2
  542. package/dist/chunks/cli-0.6.2-br678d1b.mjs +0 -8
  543. package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +0 -2
  544. package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +0 -2
  545. package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +0 -2
  546. package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +0 -4
  547. package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +0 -2
  548. package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +0 -2
  549. package/dist/chunks/cli-0.6.2-d3evezft.mjs +0 -1
  550. package/dist/chunks/cli-0.6.2-d3y2w089.mjs +0 -2
  551. package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +0 -2
  552. package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +0 -12
  553. package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +0 -2
  554. package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +0 -2
  555. package/dist/chunks/cli-0.6.2-dv8abe56.mjs +0 -7
  556. package/dist/chunks/cli-0.6.2-dx6qfese.mjs +0 -2
  557. package/dist/chunks/cli-0.6.2-dy4zwces.mjs +0 -2
  558. package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +0 -2
  559. package/dist/chunks/cli-0.6.2-e26khw0m.mjs +0 -6
  560. package/dist/chunks/cli-0.6.2-e66qz53g.mjs +0 -2
  561. package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +0 -16
  562. package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +0 -45
  563. package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +0 -5
  564. package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +0 -2
  565. package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +0 -2
  566. package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +0 -2
  567. package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +0 -2
  568. package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +0 -2
  569. package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +0 -6
  570. package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +0 -2
  571. package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +0 -2
  572. package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +0 -2
  573. package/dist/chunks/cli-0.6.2-grf75vb7.mjs +0 -2
  574. package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +0 -2
  575. package/dist/chunks/cli-0.6.2-h72p44ws.mjs +0 -24
  576. package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +0 -2
  577. package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +0 -193
  578. package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +0 -2
  579. package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +0 -2
  580. package/dist/chunks/cli-0.6.2-hqmcear6.mjs +0 -2
  581. package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +0 -34
  582. package/dist/chunks/cli-0.6.2-j05kmd43.mjs +0 -2
  583. package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +0 -2
  584. package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +0 -2
  585. package/dist/chunks/cli-0.6.2-jrb4f391.mjs +0 -15
  586. package/dist/chunks/cli-0.6.2-jrpted0b.mjs +0 -2
  587. package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +0 -2
  588. package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +0 -2
  589. package/dist/chunks/cli-0.6.2-k9v931hm.mjs +0 -2
  590. package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +0 -2
  591. package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +0 -2
  592. package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +0 -4
  593. package/dist/chunks/cli-0.6.2-ky1drj50.mjs +0 -2
  594. package/dist/chunks/cli-0.6.2-mabejxsw.mjs +0 -4
  595. package/dist/chunks/cli-0.6.2-majp93c4.mjs +0 -2
  596. package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +0 -2
  597. package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +0 -3
  598. package/dist/chunks/cli-0.6.2-n9610c8k.mjs +0 -2
  599. package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +0 -2
  600. package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +0 -2
  601. package/dist/chunks/cli-0.6.2-nwzye174.mjs +0 -2
  602. package/dist/chunks/cli-0.6.2-p0jszyht.mjs +0 -3
  603. package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +0 -58
  604. package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +0 -2
  605. package/dist/chunks/cli-0.6.2-q45wdma3.mjs +0 -3
  606. package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +0 -2
  607. package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +0 -2
  608. package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +0 -2
  609. package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +0 -2
  610. package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +0 -2
  611. package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +0 -2
  612. package/dist/chunks/cli-0.6.2-r4p904h3.mjs +0 -67
  613. package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +0 -2
  614. package/dist/chunks/cli-0.6.2-rde30n8x.mjs +0 -2
  615. package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +0 -2
  616. package/dist/chunks/cli-0.6.2-red287ya.mjs +0 -2
  617. package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +0 -2
  618. package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +0 -2
  619. package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +0 -17
  620. package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +0 -24
  621. package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +0 -2
  622. package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +0 -2
  623. package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +0 -2
  624. package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +0 -2
  625. package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +0 -2
  626. package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +0 -133
  627. package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +0 -2
  628. package/dist/chunks/cli-0.6.2-t038jmme.mjs +0 -3
  629. package/dist/chunks/cli-0.6.2-t3e59m32.mjs +0 -2
  630. package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +0 -2
  631. package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +0 -2
  632. package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +0 -2
  633. package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +0 -2
  634. package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +0 -50
  635. package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +0 -20
  636. package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +0 -2
  637. package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +0 -2
  638. package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +0 -2
  639. package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +0 -2
  640. package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +0 -2
  641. package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +0 -18
  642. package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +0 -2
  643. package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +0 -3
  644. package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +0 -2
  645. package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +0 -2
  646. package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +0 -12
  647. package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +0 -2
  648. package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +0 -2
  649. package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +0 -18
  650. package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +0 -2
  651. package/dist/chunks/cli-0.6.2-yep449sd.mjs +0 -17
  652. package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +0 -2
  653. package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +0 -2
  654. package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +0 -4
  655. package/dist/chunks/cli-0.6.2-yysvdabq.mjs +0 -2
  656. package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +0 -4
  657. package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +0 -3
  658. package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +0 -4
  659. package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +0 -2
  660. package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +0 -18
  661. package/dist/chunks/cli-0.6.2-zaahyems.mjs +0 -2
  662. package/dist/chunks/cli-0.6.2-zftyh47j.mjs +0 -2
  663. package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +0 -2
  664. package/dist/chunks/cli-0.6.2-zs4qp487.mjs +0 -2
  665. package/dist/chunks/client-0.6.2-8b0s065m.mjs +0 -1
  666. package/dist/chunks/color-0.6.2-jza3jez4.mjs +0 -1
  667. package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +0 -3
  668. package/dist/chunks/config-0.6.2-qjwjrd75.mjs +0 -1
  669. package/dist/chunks/config-0.6.2-xac3sjb7.mjs +0 -1
  670. package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +0 -1
  671. package/dist/chunks/context-0.6.2-w965073f.mjs +0 -1
  672. package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +0 -1
  673. package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +0 -1
  674. package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +0 -1
  675. package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +0 -9
  676. package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +0 -1
  677. package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +0 -1
  678. package/dist/chunks/createSession-0.6.2-axgp009k.mjs +0 -1
  679. package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +0 -1
  680. package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +0 -1365
  681. package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +0 -1
  682. package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +0 -1
  683. package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +0 -1
  684. package/dist/chunks/diff-0.6.2-md180qh9.mjs +0 -1
  685. package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +0 -1
  686. package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +0 -1
  687. package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +0 -1
  688. package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +0 -10
  689. package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +0 -1
  690. package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +0 -1
  691. package/dist/chunks/environments-0.6.2-fe197syt.mjs +0 -1
  692. package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +0 -1
  693. package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +0 -1
  694. package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +0 -1
  695. package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +0 -2
  696. package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +0 -1
  697. package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +0 -1
  698. package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +0 -1
  699. package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +0 -14
  700. package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +0 -1
  701. package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +0 -1
  702. package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +0 -1
  703. package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +0 -4
  704. package/dist/chunks/grove-0.6.2-a2wgccag.mjs +0 -1
  705. package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +0 -1
  706. package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +0 -2
  707. package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +0 -6
  708. package/dist/chunks/help-0.6.2-c49svpae.mjs +0 -1
  709. package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +0 -3
  710. package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +0 -1
  711. package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +0 -79
  712. package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +0 -3
  713. package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +0 -1
  714. package/dist/chunks/index-0.6.2-1kk3erm5.mjs +0 -9
  715. package/dist/chunks/index-0.6.2-21nak3ad.mjs +0 -1
  716. package/dist/chunks/index-0.6.2-2vns8v9p.mjs +0 -1
  717. package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +0 -1
  718. package/dist/chunks/index-0.6.2-3g92ew8z.mjs +0 -1
  719. package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +0 -1
  720. package/dist/chunks/index-0.6.2-88m8k4cp.mjs +0 -1
  721. package/dist/chunks/index-0.6.2-93bh3w93.mjs +0 -1
  722. package/dist/chunks/index-0.6.2-9e0qz384.mjs +0 -1
  723. package/dist/chunks/index-0.6.2-emm65q8h.mjs +0 -17
  724. package/dist/chunks/index-0.6.2-ff57yvh3.mjs +0 -1
  725. package/dist/chunks/index-0.6.2-g6xy97jv.mjs +0 -1
  726. package/dist/chunks/index-0.6.2-h37g7n0s.mjs +0 -9
  727. package/dist/chunks/index-0.6.2-h8jkf613.mjs +0 -5
  728. package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +0 -1
  729. package/dist/chunks/index-0.6.2-jw83xhc8.mjs +0 -2
  730. package/dist/chunks/index-0.6.2-mehn31e3.mjs +0 -30
  731. package/dist/chunks/index-0.6.2-naw1d8mg.mjs +0 -2
  732. package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +0 -1
  733. package/dist/chunks/index-0.6.2-qn0re7sj.mjs +0 -1
  734. package/dist/chunks/index-0.6.2-tftj6wdh.mjs +0 -1
  735. package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +0 -1
  736. package/dist/chunks/init-0.6.2-47k2caay.mjs +0 -1
  737. package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +0 -1
  738. package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +0 -1
  739. package/dist/chunks/insights-0.6.2-st861yg4.mjs +0 -870
  740. package/dist/chunks/install-0.6.2-webkhwz9.mjs +0 -1
  741. package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +0 -149
  742. package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +0 -1
  743. package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +0 -1
  744. package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +0 -1
  745. package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +0 -2
  746. package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +0 -2
  747. package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +0 -1
  748. package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +0 -1
  749. package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +0 -1
  750. package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +0 -1
  751. package/dist/chunks/log-0.6.2-h02k5q0p.mjs +0 -1
  752. package/dist/chunks/main-0.6.2-51xvrsbq.mjs +0 -1
  753. package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +0 -1
  754. package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +0 -17
  755. package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +0 -4
  756. package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +0 -1
  757. package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +0 -1
  758. package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +0 -3
  759. package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +0 -2
  760. package/dist/chunks/model-0.6.2-49f9g2vz.mjs +0 -2
  761. package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +0 -1
  762. package/dist/chunks/node-0.6.2-40bknjza.mjs +0 -12
  763. package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +0 -1
  764. package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +0 -14
  765. package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +0 -1
  766. package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +0 -1
  767. package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +0 -1
  768. package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +0 -1
  769. package/dist/chunks/passes-0.6.2-kadygcw6.mjs +0 -1
  770. package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +0 -3
  771. package/dist/chunks/plan-0.6.2-hzbsezab.mjs +0 -1
  772. package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +0 -1
  773. package/dist/chunks/plugin-0.6.2-pr48413e.mjs +0 -29
  774. package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +0 -1
  775. package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +0 -9
  776. package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +0 -2
  777. package/dist/chunks/print-0.6.2-ng7p0m66.mjs +0 -57
  778. package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +0 -1
  779. package/dist/chunks/process-0.6.2-7k26fk4b.mjs +0 -1
  780. package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +0 -1
  781. package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +0 -9
  782. package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +0 -1
  783. package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +0 -1
  784. package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +0 -1
  785. package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +0 -13
  786. package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +0 -2
  787. package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +0 -1
  788. package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +0 -6
  789. package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +0 -1
  790. package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +0 -34
  791. package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +0 -1
  792. package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +0 -5
  793. package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +0 -2
  794. package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +0 -1
  795. package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +0 -1
  796. package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +0 -1
  797. package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +0 -1
  798. package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +0 -1
  799. package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +0 -1
  800. package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +0 -2
  801. package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +0 -1
  802. package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +0 -1
  803. package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +0 -1
  804. package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +0 -1
  805. package/dist/chunks/session-0.6.2-k41jbqwf.mjs +0 -2
  806. package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +0 -1
  807. package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +0 -1
  808. package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +0 -1
  809. package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +0 -1
  810. package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +0 -5
  811. package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +0 -1
  812. package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +0 -1
  813. package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +0 -1
  814. package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +0 -1
  815. package/dist/chunks/state-0.6.2-nymhw7ey.mjs +0 -1
  816. package/dist/chunks/stats-0.6.2-skm9nakv.mjs +0 -6
  817. package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +0 -1
  818. package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +0 -1
  819. package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +0 -1
  820. package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +0 -1
  821. package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +0 -1
  822. package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +0 -1
  823. package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +0 -1
  824. package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +0 -1
  825. package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +0 -1
  826. package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +0 -1
  827. package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +0 -1
  828. package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +0 -1
  829. package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +0 -1
  830. package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +0 -1
  831. package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +0 -1
  832. package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +0 -69
  833. package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +0 -4
  834. package/dist/chunks/update-0.6.2-p8edrwg4.mjs +0 -86
  835. package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +0 -1
  836. package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +0 -14
  837. package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +0 -1
  838. package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +0 -1
  839. package/dist/chunks/util-0.6.2-yet75ms4.mjs +0 -1
  840. package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +0 -1
  841. package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +0 -1
  842. package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +0 -1
  843. package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +0 -132
  844. package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +0 -1
  845. package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +0 -1
  846. package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +0 -7
  847. /package/dist/chunks/{cli-0.6.2-7p1ykg1m.mjs → cli-0.6.4-0dsecg4e.mjs} +0 -0
  848. /package/dist/chunks/{cli-0.6.2-1e5p6hw6.mjs → cli-0.6.4-a772rm3j.mjs} +0 -0
  849. /package/dist/chunks/{cli-0.6.2-adegz2m3.mjs → cli-0.6.4-ms7sef7r.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.6.2-hb4fz4pd.mjs → cli-0.6.4-p7q1dk2n.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.6.2-hkgnx8g7.mjs → cli-0.6.4-pdn08sja.mjs} +0 -0
  852. /package/dist/chunks/{cli-0.6.2-3eaaj6e5.mjs → cli-0.6.4-sd36e6nd.mjs} +0 -0
  853. /package/dist/chunks/{cli-0.6.2-qk6j042k.mjs → cli-0.6.4-vs7kwtc6.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{hpa as e}from"./cli-0.6.2-3rgtxc9f.mjs";function o(){return!0}var t=()=>{};
2
- export{o as gR,t as hR};
@@ -1,2 +0,0 @@
1
- import{Kn as L,Ln as D,Mn as O,Pn as _,QI as R,Qn as S,UI as b,XI as w,bJ as M,dJ as P,iJ as m,jJ as h,nJ as c}from"./cli-0.6.2-4p9wa0p6.mjs";import{A$ as T,Ada as N,Eaa as B,Gaa as A,Ida as j,Jaa as C,Taa as E,s$ as x}from"./cli-0.6.2-hhjx89cr.mjs";import{ofa as U,pfa as v}from"./cli-0.6.2-d3ykxc81.mjs";import{eha as G,hha as F}from"./cli-0.6.2-g6c6hjc6.mjs";import{hpa as y}from"./cli-0.6.2-3rgtxc9f.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
2
- export{qq as td,zq as ud,Jq as vd,Kq as wd,p as xd,Qq as yd,Vq as zd,a as Ad};
@@ -1,7 +0,0 @@
1
- import{IR as t,JR as E,LR as a,MR as o,NR as s,SR as GQ}from"./cli-0.6.2-zftyh47j.mjs";import{B0 as r,z0 as N}from"./cli-0.6.2-4a5t390f.mjs";import{S3 as U,T3 as I}from"./cli-0.6.2-ea8z1e2e.mjs";import{j5 as n,q5 as KQ}from"./cli-0.6.2-1wj8sm5y.mjs";import{J7 as Y,L7 as h}from"./cli-0.6.2-hhjx89cr.mjs";import{cga as u,ega as ZQ}from"./cli-0.6.2-vqt5hqzr.mjs";import{Jga as k,Kga as R,Oga as y,eha as K,hha as b}from"./cli-0.6.2-g6c6hjc6.mjs";import{Fha as F,yha as H,zha as i}from"./cli-0.6.2-0f9sh5z8.mjs";import{Koa as jQ,soa as e}from"./cli-0.6.2-xnn1c5kd.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();a();I();r();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=t(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}jQ();b();h();F();a();I();y();r();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
2
-
3
- `,Z))!==-1){let $=Q.slice(Z,z);if(Z=z+2,!$.trim())continue;let J={},G=!1;for(let X of $.split(`
4
- `)){if(X.startsWith(":")){G=!0;continue}let q=X.indexOf(":");if(q===-1)continue;let L=X.slice(0,q),O=X[q+1]===" "?X.slice(q+2):X.slice(q+1);switch(L){case"event":J.event=O;break;case"id":J.id=O;break;case"data":J.data=J.data?J.data+`
5
- `+O:O;break}}if(J.data||G)W.push(J)}return{frames:W,remaining:Q.slice(Z)}}class _Q{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(Q,W={},Z,z,$,J){this.url=Q;if(this.headers=W,this.sessionId=Z,this.refreshHeaders=z,this.getAuthHeaders=J??E,this.postUrl=RQ(Q),$!==void 0&&$>0)this.lastSequenceNum=$;K(`SSETransport: SSE URL = ${Q.href}`),K(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){K(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let Q=Date.now(),W=new URL(this.url.href);if(this.lastSequenceNum>0)W.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Z=this.getAuthHeaders(),z={...this.headers,...Z,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":N()};if(Z.Cookie)delete z.Authorization;if(this.lastSequenceNum>0)z["Last-Event-ID"]=String(this.lastSequenceNum);K(`SSETransport: Opening ${W.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(W.href,{headers:z,signal:this.abortController.signal});if(!$.ok){let G=PQ.has($.status);if(K(`SSETransport: HTTP ${$.status}${G?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:$.status}),G){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){K("SSETransport: No response body"),this.handleConnectionError();return}let J=Date.now()-Q;K("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:J}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Connection error: ${H($)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(Q){let W=Q.getReader(),Z=new TextDecoder,z="";try{while(!0){let{done:$,value:J}=await W.read();if($)break;z+=Z.decode(J,kQ);let{frames:G,remaining:X}=AQ(z);z=X;for(let q of G){if(this.resetLivenessTimer(),q.id){let L=parseInt(q.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))K(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let O=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<O)this.seenSequenceNums.delete(_)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(q.event&&q.data)this.handleSSEFrame(q.event,q.data);else if(q.data)K("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{W.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")K("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(Q,W){if(Q!=="client_event"){K(`SSETransport: Unexpected SSE event type '${Q}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:Q});return}let Z;try{Z=R(W)}catch($){K(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let z=Z.payload;if(z&&typeof z==="object"&&"type"in z){let $=this.sessionId?` session=${this.sessionId}`:"";K(`SSETransport: Event seq=${Z.sequence_num} event_id=${Z.event_id} event_type=${Z.event_type} payload_type=${String(z.type)}${$}`),Y("info","cli_sse_message_received"),this.onData?.(k(z)+`
6
- `)}else K(`SSETransport: Ignoring client_event with no type in payload: event_id=${Z.event_id}`);this.onEventCallback?.(Z)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;let W=Q-this.reconnectStartTime;if(W<UQ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),K("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Z=Math.min(BQ*Math.pow(2,this.reconnectAttempts-1),HQ),z=Math.max(0,Z+Z*0.25*(2*Math.random()-1));K(`SSETransport: Reconnecting in ${Math.round(z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(W/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},z)}else K(`SSETransport: Reconnection time budget exhausted after ${Math.round(W/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:W}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,K("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,CQ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0){K("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Z={...W,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()};K(`SSETransport: POST body keys=${Object.keys(Q).join(",")}`);for(let z=1;z<=A;z++){try{let J=await e.post(this.postUrl,Q,{headers:Z,validateStatus:xQ});if(J.status===200||J.status===201){K(`SSETransport: POST success type=${Q.type}`);return}if(K(`SSETransport: POST ${J.status} body=${k(J.data).slice(0,200)}`),J.status>=400&&J.status<500&&J.status!==429){K(`SSETransport: POST returned ${J.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:J.status});return}K(`SSETransport: POST returned ${J.status}, attempt ${z}/${A}`),Y("warn","cli_sse_post_retryable_error",{status:J.status,attempt:z})}catch(J){K(`SSETransport: POST error: ${J.message}, attempt ${z}/${A}`),Y("warn","cli_sse_post_network_error",{attempt:z})}if(z===A){K(`SSETransport: POST failed after ${A} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(TQ*Math.pow(2,z-1),NQ);await U($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(Q){this.onData=Q}setOnClose(Q){this.onCloseCallback=Q}setOnEvent(Q){this.onEventCallback=Q}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function RQ(Q){let W=Q.pathname;if(W.endsWith("/stream"))W=W.slice(0,-7);return`${Q.protocol}//${Q.host}${W}`}
7
- export{FQ as n,x as o,M as p,OQ as q,_Q as r};
@@ -1,2 +0,0 @@
1
- import{hpa as M}from"./cli-0.6.2-3rgtxc9f.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
2
- export{V as z6,W as A6,X as B6,Z as C6,Y as D6};
@@ -1,2 +0,0 @@
1
- import{Dc as K,Ec as Y}from"./cli-0.6.2-qkzrj9jv.mjs";import{Xj as G,YJ as J,Yj as B,ak as U,bk as V,bo as H,co as W,eK as X}from"./cli-0.6.2-4p9wa0p6.mjs";import{epa as q,hpa as v}from"./cli-0.6.2-3rgtxc9f.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
- export{P as zc,C as Ac,A as Bc,D as Cc};
@@ -1,2 +0,0 @@
1
- import{lu as g,mu as Zf,ou as _f,xm as Xf,ym as Uf}from"./cli-0.6.2-4p9wa0p6.mjs";import{mW as Wf,nW as Tf}from"./cli-0.6.2-vfdaj8xa.mjs";import{RW as n,RY as a,XW as s,YW as If,iY as F,jY as cf,kY as r,mY as q,qY as Vf}from"./cli-0.6.2-4r69ge5f.mjs";import{o0 as Qf,p0 as H,q0 as X,r0 as T}from"./cli-0.6.2-jrpted0b.mjs";import{s0 as Rf}from"./cli-0.6.2-d3y2w089.mjs";import{A2 as Jf,B2 as hf,G2 as M,J2 as p,K2 as Ef,h2 as Nf,j2 as b,k2 as _,l2 as Hf,n2 as j,q2 as qf,s2 as zf}from"./cli-0.6.2-ea8z1e2e.mjs";import{s5 as i,t5 as yf}from"./cli-0.6.2-aqxemf9h.mjs";import{A_ as w,Gaa as Gf,Jba as l,P_ as Bf,Taa as Cf,cca as Pf}from"./cli-0.6.2-hhjx89cr.mjs";import{Xda as mf,dea as Of}from"./cli-0.6.2-73vnf2t2.mjs";import{cga as D,ega as Lf}from"./cli-0.6.2-vqt5hqzr.mjs";import{dpa as x,hpa as o}from"./cli-0.6.2-3rgtxc9f.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
2
- export{U as Hd,ff as Id,Df as Jd,H0 as Kd,xf as Ld};
@@ -1,6 +0,0 @@
1
- import{hpa as b}from"./cli-0.6.2-3rgtxc9f.mjs";var K$,L$,F$=(_)=>typeof _==="string"?{...L$,name:_}:{...L$,..._};var S_=b(()=>{K$=Symbol("Let zodToJsonSchema decide on which parser to use"),L$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"}});var O,f$,B,T=(_)=>{switch(typeof _){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(_)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":if(Array.isArray(_))return B.array;if(_===null)return B.null;if(_.then&&typeof _.then==="function"&&_.catch&&typeof _.catch==="function")return B.promise;if(typeof Map<"u"&&_ instanceof Map)return B.map;if(typeof Set<"u"&&_ instanceof Set)return B.set;if(typeof Date<"u"&&_ instanceof Date)return B.date;return B.object;default:return B.unknown}};var __=b(()=>{(function(_){_.assertEqual=(W)=>{};function $(W){}_.assertIs=$;function q(W){throw Error()}_.assertNever=q,_.arrayToEnum=(W)=>{let X={};for(let H of W)X[H]=H;return X},_.getValidEnumValues=(W)=>{let X=_.objectKeys(W).filter((Y)=>typeof W[W[Y]]!=="number"),H={};for(let Y of X)H[Y]=W[Y];return _.objectValues(H)},_.objectValues=(W)=>{return _.objectKeys(W).map(function(X){return W[X]})},_.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let X=[];for(let H in W)if(Object.prototype.hasOwnProperty.call(W,H))X.push(H);return X},_.find=(W,X)=>{for(let H of W)if(X(H))return H;return},_.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function J(W,X=" | "){return W.map((H)=>typeof H==="string"?`'${H}'`:H).join(X)}_.joinValues=J,_.jsonStringifyReplacer=(W,X)=>{if(typeof X==="bigint")return X.toString();return X}})(O||(O={}));(function(_){_.mergeShapes=($,q)=>{return{...$,...q}}})(f$||(f$={}));B=O.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var G,f;var v_=b(()=>{__();G=O.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);f=class f extends Error{get errors(){return this.issues}constructor(_){super();this.issues=[],this.addIssue=(q)=>{this.issues=[...this.issues,q]},this.addIssues=(q=[])=>{this.issues=[...this.issues,...q]};let $=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,$);else this.__proto__=$;this.name="ZodError",this.issues=_}format(_){let $=_||function(W){return W.message},q={_errors:[]},J=(W)=>{for(let X of W.issues)if(X.code==="invalid_union")X.unionErrors.map(J);else if(X.code==="invalid_return_type")J(X.returnTypeError);else if(X.code==="invalid_arguments")J(X.argumentsError);else if(X.path.length===0)q._errors.push($(X));else{let H=q,Y=0;while(Y<X.path.length){let Q=X.path[Y];if(Y!==X.path.length-1)H[Q]=H[Q]||{_errors:[]};else H[Q]=H[Q]||{_errors:[]},H[Q]._errors.push($(X));H=H[Q],Y++}}};return J(this),q}static assert(_){if(!(_ instanceof f))throw Error(`Not a ZodError: ${_}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,O.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(_=($)=>$.message){let $=Object.create(null),q=[];for(let J of this.issues)if(J.path.length>0){let W=J.path[0];$[W]=$[W]||[],$[W].push(_(J))}else q.push(_(J));return{formErrors:q,fieldErrors:$}}get formErrors(){return this.flatten()}};f.create=(_)=>{return new f(_)}});var bq=(_,$)=>{let q;switch(_.code){case G.invalid_type:if(_.received===B.undefined)q="Required";else q=`Expected ${_.expected}, received ${_.received}`;break;case G.invalid_literal:q=`Invalid literal value, expected ${JSON.stringify(_.expected,O.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:q=`Unrecognized key(s) in object: ${O.joinValues(_.keys,", ")}`;break;case G.invalid_union:q="Invalid input";break;case G.invalid_union_discriminator:q=`Invalid discriminator value. Expected ${O.joinValues(_.options)}`;break;case G.invalid_enum_value:q=`Invalid enum value. Expected ${O.joinValues(_.options)}, received '${_.received}'`;break;case G.invalid_arguments:q="Invalid function arguments";break;case G.invalid_return_type:q="Invalid function return type";break;case G.invalid_date:q="Invalid date";break;case G.invalid_string:if(typeof _.validation==="object")if("includes"in _.validation){if(q=`Invalid input: must include "${_.validation.includes}"`,typeof _.validation.position==="number")q=`${q} at one or more positions greater than or equal to ${_.validation.position}`}else if("startsWith"in _.validation)q=`Invalid input: must start with "${_.validation.startsWith}"`;else if("endsWith"in _.validation)q=`Invalid input: must end with "${_.validation.endsWith}"`;else O.assertNever(_.validation);else if(_.validation!=="regex")q=`Invalid ${_.validation}`;else q="Invalid";break;case G.too_small:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at least":"more than"} ${_.minimum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at least":"over"} ${_.minimum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="bigint")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(_.minimum))}`;else q="Invalid input";break;case G.too_big:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at most":"less than"} ${_.maximum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at most":"under"} ${_.maximum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="bigint")q=`BigInt must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly":_.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(_.maximum))}`;else q="Invalid input";break;case G.custom:q="Invalid input";break;case G.invalid_intersection_types:q="Intersection results could not be merged";break;case G.not_multiple_of:q=`Number must be a multiple of ${_.multipleOf}`;break;case G.not_finite:q="Number must be finite";break;default:q=$.defaultError,O.assertNever(_)}return{message:q}},Z;var y_=b(()=>{v_();__();Z=bq});function $_(){return zq}var zq;var j_=b(()=>{y_();zq=Z});function D(_,$){let q=$_(),J=A_({issueData:$,data:_.data,path:_.path,errorMaps:[_.common.contextualErrorMap,_.schemaErrorMap,q,q===Z?void 0:Z].filter((W)=>!!W)});_.common.issues.push(J)}class L{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(_,$){let q=[];for(let J of $){if(J.status==="aborted")return z;if(J.status==="dirty")_.dirty();q.push(J.value)}return{status:_.value,value:q}}static async mergeObjectAsync(_,$){let q=[];for(let J of $){let W=await J.key,X=await J.value;q.push({key:W,value:X})}return L.mergeObjectSync(_,q)}static mergeObjectSync(_,$){let q={};for(let J of $){let{key:W,value:X}=J;if(W.status==="aborted")return z;if(X.status==="aborted")return z;if(W.status==="dirty")_.dirty();if(X.status==="dirty")_.dirty();if(W.value!=="__proto__"&&(typeof X.value<"u"||J.alwaysSet))q[W.value]=X.value}return{status:_.value,value:q}}}var A_=(_)=>{let{data:$,path:q,errorMaps:J,issueData:W}=_,X=[...q,...W.path||[]],H={...W,path:X};if(W.message!==void 0)return{...W,path:X,message:W.message};let Y="",Q=J.filter((v)=>!!v).slice().reverse();for(let v of Q)Y=v(H,{data:$,defaultError:Y}).message;return{...W,path:X,message:Y}},z,c=(_)=>({status:"dirty",value:_}),K=(_)=>({status:"valid",value:_}),x_=(_)=>_.status==="aborted",n_=(_)=>_.status==="dirty",i=(_)=>_.status==="valid",q_=(_)=>typeof Promise<"u"&&_ instanceof Promise;var Z_=b(()=>{j_();y_();z=Object.freeze({status:"aborted"})});var g$=()=>{};var w;var C$=b(()=>{(function(_){_.errToObj=($)=>typeof $==="string"?{message:$}:$||{},_.toString=($)=>typeof $==="string"?$:$?.message})(w||(w={}))});class C{constructor(_,$,q,J){this._cachedPath=[],this.parent=_,this.data=$,this._path=q,this._key=J}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function j(_){if(!_)return{};let{errorMap:$,invalid_type_error:q,required_error:J,description:W}=_;if($&&(q||J))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if($)return{errorMap:$,description:W};return{errorMap:(H,Y)=>{let{message:Q}=_;if(H.code==="invalid_enum_value")return{message:Q??Y.defaultError};if(typeof Y.data>"u")return{message:Q??J??Y.defaultError};if(H.code!=="invalid_type")return{message:Y.defaultError};return{message:Q??q??Y.defaultError}},description:W}}class A{get description(){return this._def.description}_getType(_){return T(_.data)}_getOrReturnCtx(_,$){return $||{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}_processInputParams(_){return{status:new L,ctx:{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}}_parseSync(_){let $=this._parse(_);if(q_($))throw Error("Synchronous parse encountered promise.");return $}_parseAsync(_){let $=this._parse(_);return Promise.resolve($)}parse(_,$){let q=this.safeParse(_,$);if(q.success)return q.data;throw q.error}safeParse(_,$){let q={common:{issues:[],async:$?.async??!1,contextualErrorMap:$?.errorMap},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parseSync({data:_,path:q.path,parent:q});return k$(q,J)}"~validate"(_){let $={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)};if(!this["~standard"].async)try{let q=this._parseSync({data:_,path:[],parent:$});return i(q)?{value:q.value}:{issues:$.common.issues}}catch(q){if(q?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;$.common={issues:[],async:!0}}return this._parseAsync({data:_,path:[],parent:$}).then((q)=>i(q)?{value:q.value}:{issues:$.common.issues})}async parseAsync(_,$){let q=await this.safeParseAsync(_,$);if(q.success)return q.data;throw q.error}async safeParseAsync(_,$){let q={common:{issues:[],contextualErrorMap:$?.errorMap,async:!0},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parse({data:_,path:q.path,parent:q}),W=await(q_(J)?J:Promise.resolve(J));return k$(q,W)}refine(_,$){let q=(J)=>{if(typeof $==="string"||typeof $>"u")return{message:$};else if(typeof $==="function")return $(J);else return $};return this._refinement((J,W)=>{let X=_(J),H=()=>W.addIssue({code:G.custom,...q(J)});if(typeof Promise<"u"&&X instanceof Promise)return X.then((Y)=>{if(!Y)return H(),!1;else return!0});if(!X)return H(),!1;else return!0})}refinement(_,$){return this._refinement((q,J)=>{if(!_(q))return J.addIssue(typeof $==="function"?$(q,J):$),!1;else return!0})}_refinement(_){return new l({schema:this,typeName:M.ZodEffects,effect:{type:"refinement",refinement:_}})}superRefine(_){return this._refinement(_)}constructor(_){this.spa=this.safeParseAsync,this._def=_,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:($)=>this["~validate"]($)}}optional(){return m.create(this,this._def)}nullable(){return u.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return P.create(this)}promise(){return e.create(this,this._def)}or(_){return Q_.create([this,_],this._def)}and(_){return Y_.create(this,_,this._def)}transform(_){return new l({...j(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:_}})}default(_){let $=typeof _==="function"?_:()=>_;return new D_({...j(this._def),innerType:this,defaultValue:$,typeName:M.ZodDefault})}brand(){return new r_({typeName:M.ZodBranded,type:this,...j(this._def)})}catch(_){let $=typeof _==="function"?_:()=>_;return new w_({...j(this._def),innerType:this,catchValue:$,typeName:M.ZodCatch})}describe(_){return new this.constructor({...this._def,description:_})}pipe(_){return K_.create(this,_)}readonly(){return b_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function P$(_){let $="[0-5]\\d";if(_.precision)$=`${$}\\.\\d{${_.precision}}`;else if(_.precision==null)$=`${$}(\\.\\d+)?`;let q=_.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${$})${q}`}function kq(_){return new RegExp(`^${P$(_)}$`)}function Iq(_){let $=`${I$}T${P$(_)}`,q=[];if(q.push(_.local?"Z?":"Z"),_.offset)q.push("([+-]\\d{2}:?\\d{2})");return $=`${$}(${q.join("|")})`,new RegExp(`^${$}$`)}function Pq(_,$){if(($==="v4"||!$)&&Rq.test(_))return!0;if(($==="v6"||!$)&&Kq.test(_))return!0;return!1}function mq(_,$){if(!Nq.test(_))return!1;try{let[q]=_.split(".");if(!q)return!1;let J=q.replace(/-/g,"+").replace(/_/g,"/").padEnd(q.length+(4-q.length%4)%4,"="),W=JSON.parse(atob(J));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if($&&W.alg!==$)return!1;return!0}catch{return!1}}function lq(_,$){if(($==="v4"||!$)&&Lq.test(_))return!0;if(($==="v6"||!$)&&Fq.test(_))return!0;return!1}function Tq(_,$){let q=(_.toString().split(".")[1]||"").length,J=($.toString().split(".")[1]||"").length,W=q>J?q:J,X=Number.parseInt(_.toFixed(W).replace(".","")),H=Number.parseInt($.toFixed(W).replace(".",""));return X%H/10**W}function d(_){if(_ instanceof U){let $={};for(let q in _.shape){let J=_.shape[q];$[q]=m.create(d(J))}return new U({..._._def,shape:()=>$})}else if(_ instanceof P)return new P({..._._def,type:d(_.element)});else if(_ instanceof m)return m.create(d(_.unwrap()));else if(_ instanceof u)return u.create(d(_.unwrap()));else if(_ instanceof n)return n.create(_.items.map(($)=>d($)));else return _}function p_(_,$){let q=T(_),J=T($);if(_===$)return{valid:!0,data:_};else if(q===B.object&&J===B.object){let W=O.objectKeys($),X=O.objectKeys(_).filter((Y)=>W.indexOf(Y)!==-1),H={..._,...$};for(let Y of X){let Q=p_(_[Y],$[Y]);if(!Q.valid)return{valid:!1};H[Y]=Q.data}return{valid:!0,data:H}}else if(q===B.array&&J===B.array){if(_.length!==$.length)return{valid:!1};let W=[];for(let X=0;X<_.length;X++){let H=_[X],Y=$[X],Q=p_(H,Y);if(!Q.valid)return{valid:!1};W.push(Q.data)}return{valid:!0,data:W}}else if(q===B.date&&J===B.date&&+_===+$)return{valid:!0,data:_};else return{valid:!1}}function m$(_,$){return new o({values:_,typeName:M.ZodEnum,...j($)})}var k$=(_,$)=>{if(i($))return{success:!0,data:$.value};else{if(!_.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let q=new f(_.common.issues);return this._error=q,this._error}}}},Sq,vq,jq,Aq,Oq,Nq,Eq,Uq,Vq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",u_,Rq,Lq,Kq,Fq,fq,gq,I$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Cq,y,t,a,O_,W_,N_,X_,H_,E_,r,x,U_,P,U,Q_,h=(_)=>{if(_ instanceof G_)return h(_.schema);else if(_ instanceof l)return h(_.innerType());else if(_ instanceof M_)return[_.value];else if(_ instanceof o)return _.options;else if(_ instanceof B_)return O.objectValues(_.enum);else if(_ instanceof D_)return h(_._def.innerType);else if(_ instanceof X_)return[void 0];else if(_ instanceof H_)return[null];else if(_ instanceof m)return[void 0,...h(_.unwrap())];else if(_ instanceof u)return[null,...h(_.unwrap())];else if(_ instanceof r_)return h(_.unwrap());else if(_ instanceof b_)return h(_.unwrap());else if(_ instanceof w_)return h(_._def.innerType);else return[]},i_,Y_,n,V_,R_,s,J_,G_,M_,o,B_,e,l,m,u,D_,w_,L_,D3,r_,K_,b_,w3,M,b3,z3,S3,v3,j3,A3,O3,N3,E3,U3,V3,R3,L3,K3,F3,f3,g3,C3,k3,I3,P3,m3,l3,T3,h3,y3,x3,n3,Z3,u3,p3,i3,r3,o3;var l$=b(()=>{v_();j_();C$();Z_();__();Sq=/^c[^\s-]{8,}$/i,vq=/^[0-9a-z]+$/,jq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Aq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Oq=/^[a-z0-9_-]{21}$/i,Nq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Eq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Uq=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Rq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Lq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Kq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fq=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Cq=new RegExp(`^${I$}$`);y=class y extends A{_parse(_){if(this._def.coerce)_.data=String(_.data);if(this._getType(_)!==B.string){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.string,received:W.parsedType}),z}let q=new L,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.length<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="max"){if(_.data.length>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="length"){let X=_.data.length>W.value,H=_.data.length<W.value;if(X||H){if(J=this._getOrReturnCtx(_,J),X)D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(H)D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});q.dirty()}}else if(W.kind==="email"){if(!Uq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"email",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="emoji"){if(!u_)u_=new RegExp(Vq,"u");if(!u_.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"emoji",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="uuid"){if(!Aq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"uuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="nanoid"){if(!Oq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"nanoid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid"){if(!Sq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid2"){if(!vq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid2",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ulid"){if(!jq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"ulid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="url")try{new URL(_.data)}catch{J=this._getOrReturnCtx(_,J),D(J,{validation:"url",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"regex",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="trim")_.data=_.data.trim();else if(W.kind==="includes"){if(!_.data.includes(W.value,W.position))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),q.dirty()}else if(W.kind==="toLowerCase")_.data=_.data.toLowerCase();else if(W.kind==="toUpperCase")_.data=_.data.toUpperCase();else if(W.kind==="startsWith"){if(!_.data.startsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{startsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="endsWith"){if(!_.data.endsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{endsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="datetime"){if(!Iq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"datetime",message:W.message}),q.dirty()}else if(W.kind==="date"){if(!Cq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"date",message:W.message}),q.dirty()}else if(W.kind==="time"){if(!kq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"time",message:W.message}),q.dirty()}else if(W.kind==="duration"){if(!Eq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"duration",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ip"){if(!Pq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"ip",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="jwt"){if(!mq(_.data,W.alg))J=this._getOrReturnCtx(_,J),D(J,{validation:"jwt",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cidr"){if(!lq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"cidr",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64"){if(!fq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64url"){if(!gq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64url",code:G.invalid_string,message:W.message}),q.dirty()}else O.assertNever(W);return{status:q.value,value:_.data}}_regex(_,$,q){return this.refinement((J)=>_.test(J),{validation:$,code:G.invalid_string,...w.errToObj(q)})}_addCheck(_){return new y({...this._def,checks:[...this._def.checks,_]})}email(_){return this._addCheck({kind:"email",...w.errToObj(_)})}url(_){return this._addCheck({kind:"url",...w.errToObj(_)})}emoji(_){return this._addCheck({kind:"emoji",...w.errToObj(_)})}uuid(_){return this._addCheck({kind:"uuid",...w.errToObj(_)})}nanoid(_){return this._addCheck({kind:"nanoid",...w.errToObj(_)})}cuid(_){return this._addCheck({kind:"cuid",...w.errToObj(_)})}cuid2(_){return this._addCheck({kind:"cuid2",...w.errToObj(_)})}ulid(_){return this._addCheck({kind:"ulid",...w.errToObj(_)})}base64(_){return this._addCheck({kind:"base64",...w.errToObj(_)})}base64url(_){return this._addCheck({kind:"base64url",...w.errToObj(_)})}jwt(_){return this._addCheck({kind:"jwt",...w.errToObj(_)})}ip(_){return this._addCheck({kind:"ip",...w.errToObj(_)})}cidr(_){return this._addCheck({kind:"cidr",...w.errToObj(_)})}datetime(_){if(typeof _==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:_});return this._addCheck({kind:"datetime",precision:typeof _?.precision>"u"?null:_?.precision,offset:_?.offset??!1,local:_?.local??!1,...w.errToObj(_?.message)})}date(_){return this._addCheck({kind:"date",message:_})}time(_){if(typeof _==="string")return this._addCheck({kind:"time",precision:null,message:_});return this._addCheck({kind:"time",precision:typeof _?.precision>"u"?null:_?.precision,...w.errToObj(_?.message)})}duration(_){return this._addCheck({kind:"duration",...w.errToObj(_)})}regex(_,$){return this._addCheck({kind:"regex",regex:_,...w.errToObj($)})}includes(_,$){return this._addCheck({kind:"includes",value:_,position:$?.position,...w.errToObj($?.message)})}startsWith(_,$){return this._addCheck({kind:"startsWith",value:_,...w.errToObj($)})}endsWith(_,$){return this._addCheck({kind:"endsWith",value:_,...w.errToObj($)})}min(_,$){return this._addCheck({kind:"min",value:_,...w.errToObj($)})}max(_,$){return this._addCheck({kind:"max",value:_,...w.errToObj($)})}length(_,$){return this._addCheck({kind:"length",value:_,...w.errToObj($)})}nonempty(_){return this.min(1,w.errToObj(_))}trim(){return new y({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new y({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new y({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((_)=>_.kind==="datetime")}get isDate(){return!!this._def.checks.find((_)=>_.kind==="date")}get isTime(){return!!this._def.checks.find((_)=>_.kind==="time")}get isDuration(){return!!this._def.checks.find((_)=>_.kind==="duration")}get isEmail(){return!!this._def.checks.find((_)=>_.kind==="email")}get isURL(){return!!this._def.checks.find((_)=>_.kind==="url")}get isEmoji(){return!!this._def.checks.find((_)=>_.kind==="emoji")}get isUUID(){return!!this._def.checks.find((_)=>_.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((_)=>_.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((_)=>_.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((_)=>_.kind==="cuid2")}get isULID(){return!!this._def.checks.find((_)=>_.kind==="ulid")}get isIP(){return!!this._def.checks.find((_)=>_.kind==="ip")}get isCIDR(){return!!this._def.checks.find((_)=>_.kind==="cidr")}get isBase64(){return!!this._def.checks.find((_)=>_.kind==="base64")}get isBase64url(){return!!this._def.checks.find((_)=>_.kind==="base64url")}get minLength(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxLength(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};y.create=(_)=>{return new y({checks:[],typeName:M.ZodString,coerce:_?.coerce??!1,...j(_)})};t=class t extends A{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(_){if(this._def.coerce)_.data=Number(_.data);if(this._getType(_)!==B.number){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.number,received:W.parsedType}),z}let q=void 0,J=new L;for(let W of this._def.checks)if(W.kind==="int"){if(!O.isInteger(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.invalid_type,expected:"integer",received:"float",message:W.message}),J.dirty()}else if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(Tq(_.data,W.value)!==0)q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else if(W.kind==="finite"){if(!Number.isFinite(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_finite,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new t({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new t({...this._def,checks:[...this._def.checks,_]})}int(_){return this._addCheck({kind:"int",message:w.toString(_)})}positive(_){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}finite(_){return this._addCheck({kind:"finite",message:w.toString(_)})}safe(_){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(_)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(_)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}get isInt(){return!!this._def.checks.find((_)=>_.kind==="int"||_.kind==="multipleOf"&&O.isInteger(_.value))}get isFinite(){let _=null,$=null;for(let q of this._def.checks)if(q.kind==="finite"||q.kind==="int"||q.kind==="multipleOf")return!0;else if(q.kind==="min"){if($===null||q.value>$)$=q.value}else if(q.kind==="max"){if(_===null||q.value<_)_=q.value}return Number.isFinite($)&&Number.isFinite(_)}};t.create=(_)=>{return new t({checks:[],typeName:M.ZodNumber,coerce:_?.coerce||!1,...j(_)})};a=class a extends A{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(_){if(this._def.coerce)try{_.data=BigInt(_.data)}catch{return this._getInvalidInput(_)}if(this._getType(_)!==B.bigint)return this._getInvalidInput(_);let q=void 0,J=new L;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(_.data%W.value!==BigInt(0))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}_getInvalidInput(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.bigint,received:$.parsedType}),z}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new a({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new a({...this._def,checks:[...this._def.checks,_]})}positive(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};a.create=(_)=>{return new a({checks:[],typeName:M.ZodBigInt,coerce:_?.coerce??!1,...j(_)})};O_=class O_ extends A{_parse(_){if(this._def.coerce)_.data=Boolean(_.data);if(this._getType(_)!==B.boolean){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.boolean,received:q.parsedType}),z}return K(_.data)}};O_.create=(_)=>{return new O_({typeName:M.ZodBoolean,coerce:_?.coerce||!1,...j(_)})};W_=class W_ extends A{_parse(_){if(this._def.coerce)_.data=new Date(_.data);if(this._getType(_)!==B.date){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.date,received:W.parsedType}),z}if(Number.isNaN(_.data.getTime())){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_date}),z}let q=new L,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.getTime()<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),q.dirty()}else if(W.kind==="max"){if(_.data.getTime()>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),q.dirty()}else O.assertNever(W);return{status:q.value,value:new Date(_.data.getTime())}}_addCheck(_){return new W_({...this._def,checks:[...this._def.checks,_]})}min(_,$){return this._addCheck({kind:"min",value:_.getTime(),message:w.toString($)})}max(_,$){return this._addCheck({kind:"max",value:_.getTime(),message:w.toString($)})}get minDate(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _!=null?new Date(_):null}get maxDate(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _!=null?new Date(_):null}};W_.create=(_)=>{return new W_({checks:[],coerce:_?.coerce||!1,typeName:M.ZodDate,...j(_)})};N_=class N_ extends A{_parse(_){if(this._getType(_)!==B.symbol){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.symbol,received:q.parsedType}),z}return K(_.data)}};N_.create=(_)=>{return new N_({typeName:M.ZodSymbol,...j(_)})};X_=class X_ extends A{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.undefined,received:q.parsedType}),z}return K(_.data)}};X_.create=(_)=>{return new X_({typeName:M.ZodUndefined,...j(_)})};H_=class H_ extends A{_parse(_){if(this._getType(_)!==B.null){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.null,received:q.parsedType}),z}return K(_.data)}};H_.create=(_)=>{return new H_({typeName:M.ZodNull,...j(_)})};E_=class E_ extends A{constructor(){super(...arguments);this._any=!0}_parse(_){return K(_.data)}};E_.create=(_)=>{return new E_({typeName:M.ZodAny,...j(_)})};r=class r extends A{constructor(){super(...arguments);this._unknown=!0}_parse(_){return K(_.data)}};r.create=(_)=>{return new r({typeName:M.ZodUnknown,...j(_)})};x=class x extends A{_parse(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.never,received:$.parsedType}),z}};x.create=(_)=>{return new x({typeName:M.ZodNever,...j(_)})};U_=class U_ extends A{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.void,received:q.parsedType}),z}return K(_.data)}};U_.create=(_)=>{return new U_({typeName:M.ZodVoid,...j(_)})};P=class P extends A{_parse(_){let{ctx:$,status:q}=this._processInputParams(_),J=this._def;if($.parsedType!==B.array)return D($,{code:G.invalid_type,expected:B.array,received:$.parsedType}),z;if(J.exactLength!==null){let X=$.data.length>J.exactLength.value,H=$.data.length<J.exactLength.value;if(X||H)D($,{code:X?G.too_big:G.too_small,minimum:H?J.exactLength.value:void 0,maximum:X?J.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:J.exactLength.message}),q.dirty()}if(J.minLength!==null){if($.data.length<J.minLength.value)D($,{code:G.too_small,minimum:J.minLength.value,type:"array",inclusive:!0,exact:!1,message:J.minLength.message}),q.dirty()}if(J.maxLength!==null){if($.data.length>J.maxLength.value)D($,{code:G.too_big,maximum:J.maxLength.value,type:"array",inclusive:!0,exact:!1,message:J.maxLength.message}),q.dirty()}if($.common.async)return Promise.all([...$.data].map((X,H)=>{return J.type._parseAsync(new C($,X,$.path,H))})).then((X)=>{return L.mergeArray(q,X)});let W=[...$.data].map((X,H)=>{return J.type._parseSync(new C($,X,$.path,H))});return L.mergeArray(q,W)}get element(){return this._def.type}min(_,$){return new P({...this._def,minLength:{value:_,message:w.toString($)}})}max(_,$){return new P({...this._def,maxLength:{value:_,message:w.toString($)}})}length(_,$){return new P({...this._def,exactLength:{value:_,message:w.toString($)}})}nonempty(_){return this.min(1,_)}};P.create=(_,$)=>{return new P({type:_,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...j($)})};U=class U extends A{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let _=this._def.shape(),$=O.objectKeys(_);return this._cached={shape:_,keys:$},this._cached}_parse(_){if(this._getType(_)!==B.object){let Q=this._getOrReturnCtx(_);return D(Q,{code:G.invalid_type,expected:B.object,received:Q.parsedType}),z}let{status:q,ctx:J}=this._processInputParams(_),{shape:W,keys:X}=this._getCached(),H=[];if(!(this._def.catchall instanceof x&&this._def.unknownKeys==="strip")){for(let Q in J.data)if(!X.includes(Q))H.push(Q)}let Y=[];for(let Q of X){let v=W[Q],R=J.data[Q];Y.push({key:{status:"valid",value:Q},value:v._parse(new C(J,R,J.path,Q)),alwaysSet:Q in J.data})}if(this._def.catchall instanceof x){let Q=this._def.unknownKeys;if(Q==="passthrough")for(let v of H)Y.push({key:{status:"valid",value:v},value:{status:"valid",value:J.data[v]}});else if(Q==="strict"){if(H.length>0)D(J,{code:G.unrecognized_keys,keys:H}),q.dirty()}else if(Q==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let Q=this._def.catchall;for(let v of H){let R=J.data[v];Y.push({key:{status:"valid",value:v},value:Q._parse(new C(J,R,J.path,v)),alwaysSet:v in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let Q=[];for(let v of Y){let R=await v.key,R$=await v.value;Q.push({key:R,value:R$,alwaysSet:v.alwaysSet})}return Q}).then((Q)=>{return L.mergeObjectSync(q,Q)});else return L.mergeObjectSync(q,Y)}get shape(){return this._def.shape()}strict(_){return w.errToObj,new U({...this._def,unknownKeys:"strict",..._!==void 0?{errorMap:($,q)=>{let J=this._def.errorMap?.($,q).message??q.defaultError;if($.code==="unrecognized_keys")return{message:w.errToObj(_).message??J};return{message:J}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(_){return new U({...this._def,shape:()=>({...this._def.shape(),..._})})}merge(_){return new U({unknownKeys:_._def.unknownKeys,catchall:_._def.catchall,shape:()=>({...this._def.shape(),..._._def.shape()}),typeName:M.ZodObject})}setKey(_,$){return this.augment({[_]:$})}catchall(_){return new U({...this._def,catchall:_})}pick(_){let $={};for(let q of O.objectKeys(_))if(_[q]&&this.shape[q])$[q]=this.shape[q];return new U({...this._def,shape:()=>$})}omit(_){let $={};for(let q of O.objectKeys(this.shape))if(!_[q])$[q]=this.shape[q];return new U({...this._def,shape:()=>$})}deepPartial(){return d(this)}partial(_){let $={};for(let q of O.objectKeys(this.shape)){let J=this.shape[q];if(_&&!_[q])$[q]=J;else $[q]=J.optional()}return new U({...this._def,shape:()=>$})}required(_){let $={};for(let q of O.objectKeys(this.shape))if(_&&!_[q])$[q]=this.shape[q];else{let W=this.shape[q];while(W instanceof m)W=W._def.innerType;$[q]=W}return new U({...this._def,shape:()=>$})}keyof(){return m$(O.objectKeys(this.shape))}};U.create=(_,$)=>{return new U({shape:()=>_,unknownKeys:"strip",catchall:x.create(),typeName:M.ZodObject,...j($)})};U.strictCreate=(_,$)=>{return new U({shape:()=>_,unknownKeys:"strict",catchall:x.create(),typeName:M.ZodObject,...j($)})};U.lazycreate=(_,$)=>{return new U({shape:_,unknownKeys:"strip",catchall:x.create(),typeName:M.ZodObject,...j($)})};Q_=class Q_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=this._def.options;function J(W){for(let H of W)if(H.result.status==="valid")return H.result;for(let H of W)if(H.result.status==="dirty")return $.common.issues.push(...H.ctx.common.issues),H.result;let X=W.map((H)=>new f(H.ctx.common.issues));return D($,{code:G.invalid_union,unionErrors:X}),z}if($.common.async)return Promise.all(q.map(async(W)=>{let X={...$,common:{...$.common,issues:[]},parent:null};return{result:await W._parseAsync({data:$.data,path:$.path,parent:X}),ctx:X}})).then(J);else{let W=void 0,X=[];for(let Y of q){let Q={...$,common:{...$.common,issues:[]},parent:null},v=Y._parseSync({data:$.data,path:$.path,parent:Q});if(v.status==="valid")return v;else if(v.status==="dirty"&&!W)W={result:v,ctx:Q};if(Q.common.issues.length)X.push(Q.common.issues)}if(W)return $.common.issues.push(...W.ctx.common.issues),W.result;let H=X.map((Y)=>new f(Y));return D($,{code:G.invalid_union,unionErrors:H}),z}}get options(){return this._def.options}};Q_.create=(_,$)=>{return new Q_({options:_,typeName:M.ZodUnion,...j($)})};i_=class i_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.object)return D($,{code:G.invalid_type,expected:B.object,received:$.parsedType}),z;let q=this.discriminator,J=$.data[q],W=this.optionsMap.get(J);if(!W)return D($,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[q]}),z;if($.common.async)return W._parseAsync({data:$.data,path:$.path,parent:$});else return W._parseSync({data:$.data,path:$.path,parent:$})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(_,$,q){let J=new Map;for(let W of $){let X=h(W.shape[_]);if(!X.length)throw Error(`A discriminator value for key \`${_}\` could not be extracted from all schema options`);for(let H of X){if(J.has(H))throw Error(`Discriminator property ${String(_)} has duplicate value ${String(H)}`);J.set(H,W)}}return new i_({typeName:M.ZodDiscriminatedUnion,discriminator:_,options:$,optionsMap:J,...j(q)})}};Y_=class Y_ extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=(W,X)=>{if(x_(W)||x_(X))return z;let H=p_(W.value,X.value);if(!H.valid)return D(q,{code:G.invalid_intersection_types}),z;if(n_(W)||n_(X))$.dirty();return{status:$.value,value:H.data}};if(q.common.async)return Promise.all([this._def.left._parseAsync({data:q.data,path:q.path,parent:q}),this._def.right._parseAsync({data:q.data,path:q.path,parent:q})]).then(([W,X])=>J(W,X));else return J(this._def.left._parseSync({data:q.data,path:q.path,parent:q}),this._def.right._parseSync({data:q.data,path:q.path,parent:q}))}};Y_.create=(_,$,q)=>{return new Y_({left:_,right:$,typeName:M.ZodIntersection,...j(q)})};n=class n extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.array)return D(q,{code:G.invalid_type,expected:B.array,received:q.parsedType}),z;if(q.data.length<this._def.items.length)return D(q,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;if(!this._def.rest&&q.data.length>this._def.items.length)D(q,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$.dirty();let W=[...q.data].map((X,H)=>{let Y=this._def.items[H]||this._def.rest;if(!Y)return null;return Y._parse(new C(q,X,q.path,H))}).filter((X)=>!!X);if(q.common.async)return Promise.all(W).then((X)=>{return L.mergeArray($,X)});else return L.mergeArray($,W)}get items(){return this._def.items}rest(_){return new n({...this._def,rest:_})}};n.create=(_,$)=>{if(!Array.isArray(_))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new n({items:_,typeName:M.ZodTuple,rest:null,...j($)})};V_=class V_ extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.object)return D(q,{code:G.invalid_type,expected:B.object,received:q.parsedType}),z;let J=[],W=this._def.keyType,X=this._def.valueType;for(let H in q.data)J.push({key:W._parse(new C(q,H,q.path,H)),value:X._parse(new C(q,q.data[H],q.path,H)),alwaysSet:H in q.data});if(q.common.async)return L.mergeObjectAsync($,J);else return L.mergeObjectSync($,J)}get element(){return this._def.valueType}static create(_,$,q){if($ instanceof A)return new V_({keyType:_,valueType:$,typeName:M.ZodRecord,...j(q)});return new V_({keyType:y.create(),valueType:_,typeName:M.ZodRecord,...j($)})}};R_=class R_ extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.map)return D(q,{code:G.invalid_type,expected:B.map,received:q.parsedType}),z;let J=this._def.keyType,W=this._def.valueType,X=[...q.data.entries()].map(([H,Y],Q)=>{return{key:J._parse(new C(q,H,q.path,[Q,"key"])),value:W._parse(new C(q,Y,q.path,[Q,"value"]))}});if(q.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let Y of X){let Q=await Y.key,v=await Y.value;if(Q.status==="aborted"||v.status==="aborted")return z;if(Q.status==="dirty"||v.status==="dirty")$.dirty();H.set(Q.value,v.value)}return{status:$.value,value:H}})}else{let H=new Map;for(let Y of X){let{key:Q,value:v}=Y;if(Q.status==="aborted"||v.status==="aborted")return z;if(Q.status==="dirty"||v.status==="dirty")$.dirty();H.set(Q.value,v.value)}return{status:$.value,value:H}}}};R_.create=(_,$,q)=>{return new R_({valueType:$,keyType:_,typeName:M.ZodMap,...j(q)})};s=class s extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.set)return D(q,{code:G.invalid_type,expected:B.set,received:q.parsedType}),z;let J=this._def;if(J.minSize!==null){if(q.data.size<J.minSize.value)D(q,{code:G.too_small,minimum:J.minSize.value,type:"set",inclusive:!0,exact:!1,message:J.minSize.message}),$.dirty()}if(J.maxSize!==null){if(q.data.size>J.maxSize.value)D(q,{code:G.too_big,maximum:J.maxSize.value,type:"set",inclusive:!0,exact:!1,message:J.maxSize.message}),$.dirty()}let W=this._def.valueType;function X(Y){let Q=new Set;for(let v of Y){if(v.status==="aborted")return z;if(v.status==="dirty")$.dirty();Q.add(v.value)}return{status:$.value,value:Q}}let H=[...q.data.values()].map((Y,Q)=>W._parse(new C(q,Y,q.path,Q)));if(q.common.async)return Promise.all(H).then((Y)=>X(Y));else return X(H)}min(_,$){return new s({...this._def,minSize:{value:_,message:w.toString($)}})}max(_,$){return new s({...this._def,maxSize:{value:_,message:w.toString($)}})}size(_,$){return this.min(_,$).max(_,$)}nonempty(_){return this.min(1,_)}};s.create=(_,$)=>{return new s({valueType:_,minSize:null,maxSize:null,typeName:M.ZodSet,...j($)})};J_=class J_ extends A{constructor(){super(...arguments);this.validate=this.implement}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.function)return D($,{code:G.invalid_type,expected:B.function,received:$.parsedType}),z;function q(H,Y){return A_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_arguments,argumentsError:Y}})}function J(H,Y){return A_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_return_type,returnTypeError:Y}})}let W={errorMap:$.common.contextualErrorMap},X=$.data;if(this._def.returns instanceof e){let H=this;return K(async function(...Y){let Q=new f([]),v=await H._def.args.parseAsync(Y,W).catch((h_)=>{throw Q.addIssue(q(Y,h_)),Q}),R=await Reflect.apply(X,this,v);return await H._def.returns._def.type.parseAsync(R,W).catch((h_)=>{throw Q.addIssue(J(R,h_)),Q})})}else{let H=this;return K(function(...Y){let Q=H._def.args.safeParse(Y,W);if(!Q.success)throw new f([q(Y,Q.error)]);let v=Reflect.apply(X,this,Q.data),R=H._def.returns.safeParse(v,W);if(!R.success)throw new f([J(v,R.error)]);return R.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(..._){return new J_({...this._def,args:n.create(_).rest(r.create())})}returns(_){return new J_({...this._def,returns:_})}implement(_){return this.parse(_)}strictImplement(_){return this.parse(_)}static create(_,$,q){return new J_({args:_?_:n.create([]).rest(r.create()),returns:$||r.create(),typeName:M.ZodFunction,...j(q)})}};G_=class G_ extends A{get schema(){return this._def.getter()}_parse(_){let{ctx:$}=this._processInputParams(_);return this._def.getter()._parse({data:$.data,path:$.path,parent:$})}};G_.create=(_,$)=>{return new G_({getter:_,typeName:M.ZodLazy,...j($)})};M_=class M_ extends A{_parse(_){if(_.data!==this._def.value){let $=this._getOrReturnCtx(_);return D($,{received:$.data,code:G.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:_.data}}get value(){return this._def.value}};M_.create=(_,$)=>{return new M_({value:_,typeName:M.ZodLiteral,...j($)})};o=class o extends A{_parse(_){if(typeof _.data!=="string"){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{expected:O.joinValues(q),received:$.parsedType,code:G.invalid_type}),z}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(_.data)){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{received:$.data,code:G.invalid_enum_value,options:q}),z}return K(_.data)}get options(){return this._def.values}get enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Values(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}extract(_,$=this._def){return o.create(_,{...this._def,...$})}exclude(_,$=this._def){return o.create(this.options.filter((q)=>!_.includes(q)),{...this._def,...$})}};o.create=m$;B_=class B_ extends A{_parse(_){let $=O.getValidEnumValues(this._def.values),q=this._getOrReturnCtx(_);if(q.parsedType!==B.string&&q.parsedType!==B.number){let J=O.objectValues($);return D(q,{expected:O.joinValues(J),received:q.parsedType,code:G.invalid_type}),z}if(!this._cache)this._cache=new Set(O.getValidEnumValues(this._def.values));if(!this._cache.has(_.data)){let J=O.objectValues($);return D(q,{received:q.data,code:G.invalid_enum_value,options:J}),z}return K(_.data)}get enum(){return this._def.values}};B_.create=(_,$)=>{return new B_({values:_,typeName:M.ZodNativeEnum,...j($)})};e=class e extends A{unwrap(){return this._def.type}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.promise&&$.common.async===!1)return D($,{code:G.invalid_type,expected:B.promise,received:$.parsedType}),z;let q=$.parsedType===B.promise?$.data:Promise.resolve($.data);return K(q.then((J)=>{return this._def.type.parseAsync(J,{path:$.path,errorMap:$.common.contextualErrorMap})}))}};e.create=(_,$)=>{return new e({type:_,typeName:M.ZodPromise,...j($)})};l=class l extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=this._def.effect||null,W={addIssue:(X)=>{if(D(q,X),X.fatal)$.abort();else $.dirty()},get path(){return q.path}};if(W.addIssue=W.addIssue.bind(W),J.type==="preprocess"){let X=J.transform(q.data,W);if(q.common.async)return Promise.resolve(X).then(async(H)=>{if($.value==="aborted")return z;let Y=await this._def.schema._parseAsync({data:H,path:q.path,parent:q});if(Y.status==="aborted")return z;if(Y.status==="dirty")return c(Y.value);if($.value==="dirty")return c(Y.value);return Y});else{if($.value==="aborted")return z;let H=this._def.schema._parseSync({data:X,path:q.path,parent:q});if(H.status==="aborted")return z;if(H.status==="dirty")return c(H.value);if($.value==="dirty")return c(H.value);return H}}if(J.type==="refinement"){let X=(H)=>{let Y=J.refinement(H,W);if(q.common.async)return Promise.resolve(Y);if(Y instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(q.common.async===!1){let H=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(H.status==="aborted")return z;if(H.status==="dirty")$.dirty();return X(H.value),{status:$.value,value:H.value}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((H)=>{if(H.status==="aborted")return z;if(H.status==="dirty")$.dirty();return X(H.value).then(()=>{return{status:$.value,value:H.value}})})}if(J.type==="transform")if(q.common.async===!1){let X=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(!i(X))return z;let H=J.transform(X.value,W);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:$.value,value:H}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((X)=>{if(!i(X))return z;return Promise.resolve(J.transform(X.value,W)).then((H)=>({status:$.value,value:H}))});O.assertNever(J)}};l.create=(_,$,q)=>{return new l({schema:_,typeName:M.ZodEffects,effect:$,...j(q)})};l.createWithPreprocess=(_,$,q)=>{return new l({schema:$,effect:{type:"preprocess",transform:_},typeName:M.ZodEffects,...j(q)})};m=class m extends A{_parse(_){if(this._getType(_)===B.undefined)return K(void 0);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};m.create=(_,$)=>{return new m({innerType:_,typeName:M.ZodOptional,...j($)})};u=class u extends A{_parse(_){if(this._getType(_)===B.null)return K(null);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};u.create=(_,$)=>{return new u({innerType:_,typeName:M.ZodNullable,...j($)})};D_=class D_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;if($.parsedType===B.undefined)q=this._def.defaultValue();return this._def.innerType._parse({data:q,path:$.path,parent:$})}removeDefault(){return this._def.innerType}};D_.create=(_,$)=>{return new D_({innerType:_,typeName:M.ZodDefault,defaultValue:typeof $.default==="function"?$.default:()=>$.default,...j($)})};w_=class w_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q={...$,common:{...$.common,issues:[]}},J=this._def.innerType._parse({data:q.data,path:q.path,parent:{...q}});if(q_(J))return J.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}});else return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}}removeCatch(){return this._def.innerType}};w_.create=(_,$)=>{return new w_({innerType:_,typeName:M.ZodCatch,catchValue:typeof $.catch==="function"?$.catch:()=>$.catch,...j($)})};L_=class L_ extends A{_parse(_){if(this._getType(_)!==B.nan){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.nan,received:q.parsedType}),z}return{status:"valid",value:_.data}}};L_.create=(_)=>{return new L_({typeName:M.ZodNaN,...j(_)})};D3=Symbol("zod_brand");r_=class r_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;return this._def.type._parse({data:q,path:$.path,parent:$})}unwrap(){return this._def.type}};K_=class K_ extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:q.data,path:q.path,parent:q});if(W.status==="aborted")return z;if(W.status==="dirty")return $.dirty(),c(W.value);else return this._def.out._parseAsync({data:W.value,path:q.path,parent:q})})();else{let J=this._def.in._parseSync({data:q.data,path:q.path,parent:q});if(J.status==="aborted")return z;if(J.status==="dirty")return $.dirty(),{status:"dirty",value:J.value};else return this._def.out._parseSync({data:J.value,path:q.path,parent:q})}}static create(_,$){return new K_({in:_,out:$,typeName:M.ZodPipeline})}};b_=class b_ extends A{_parse(_){let $=this._def.innerType._parse(_),q=(J)=>{if(i(J))J.value=Object.freeze(J.value);return J};return q_($)?$.then((J)=>q(J)):q($)}unwrap(){return this._def.innerType}};b_.create=(_,$)=>{return new b_({innerType:_,typeName:M.ZodReadonly,...j($)})};w3={object:U.lazycreate};(function(_){_.ZodString="ZodString",_.ZodNumber="ZodNumber",_.ZodNaN="ZodNaN",_.ZodBigInt="ZodBigInt",_.ZodBoolean="ZodBoolean",_.ZodDate="ZodDate",_.ZodSymbol="ZodSymbol",_.ZodUndefined="ZodUndefined",_.ZodNull="ZodNull",_.ZodAny="ZodAny",_.ZodUnknown="ZodUnknown",_.ZodNever="ZodNever",_.ZodVoid="ZodVoid",_.ZodArray="ZodArray",_.ZodObject="ZodObject",_.ZodUnion="ZodUnion",_.ZodDiscriminatedUnion="ZodDiscriminatedUnion",_.ZodIntersection="ZodIntersection",_.ZodTuple="ZodTuple",_.ZodRecord="ZodRecord",_.ZodMap="ZodMap",_.ZodSet="ZodSet",_.ZodFunction="ZodFunction",_.ZodLazy="ZodLazy",_.ZodLiteral="ZodLiteral",_.ZodEnum="ZodEnum",_.ZodEffects="ZodEffects",_.ZodNativeEnum="ZodNativeEnum",_.ZodOptional="ZodOptional",_.ZodNullable="ZodNullable",_.ZodDefault="ZodDefault",_.ZodCatch="ZodCatch",_.ZodPromise="ZodPromise",_.ZodBranded="ZodBranded",_.ZodPipeline="ZodPipeline",_.ZodReadonly="ZodReadonly"})(M||(M={}));b3=y.create,z3=t.create,S3=L_.create,v3=a.create,j3=O_.create,A3=W_.create,O3=N_.create,N3=X_.create,E3=H_.create,U3=E_.create,V3=r.create,R3=x.create,L3=U_.create,K3=P.create,F3=U.create,f3=U.strictCreate,g3=Q_.create,C3=i_.create,k3=Y_.create,I3=n.create,P3=V_.create,m3=R_.create,l3=s.create,T3=J_.create,h3=G_.create,y3=M_.create,x3=o.create,n3=B_.create,Z3=e.create,u3=l.create,p3=m.create,i3=u.create,r3=l.createWithPreprocess,o3=K_.create});var T$=b(()=>{j_();Z_();g$();__();l$();v_()});var F_=b(()=>{T$()});var f_=(_,$)=>{let q=0;for(;q<_.length&&q<$.length;q++)if(_[q]!==$[q])break;return[(_.length-q).toString(),...$.slice(q)].join("/")};var g_=()=>{};function E(_){if(_.target!=="openAi")return{};let $=[..._.basePath,_.definitionPath,_.openAiAnyTypeName];return _.flags.hasReferencedOpenAiAnyType=!0,{$ref:_.$refStrategy==="relative"?f_($,_.currentPath):$.join("/")}}var g=b(()=>{g_()});function o_(_,$,q,J){if(!J?.errorMessages)return;if(q)_.errorMessage={..._.errorMessage,[$]:q}}function N(_,$,q,J,W){_[$]=q,o_(_,$,J,W)}var p=()=>{};function h$(_,$){let q={type:"array"};if(_.type?._def&&_.type?._def?.typeName!==M.ZodAny)q.items=S(_.type._def,{...$,currentPath:[...$.currentPath,"items"]});if(_.minLength)N(q,"minItems",_.minLength.value,_.minLength.message,$);if(_.maxLength)N(q,"maxItems",_.maxLength.value,_.maxLength.message,$);if(_.exactLength)N(q,"minItems",_.exactLength.value,_.exactLength.message,$),N(q,"maxItems",_.exactLength.value,_.exactLength.message,$);return q}var c_=b(()=>{F_();p();V()});function y$(_,$){let q={type:"integer",format:"int64"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var d_=b(()=>{p()});function x$(){return{type:"boolean"}}var t_=()=>{};function C_(_,$){return S(_.type._def,$)}var k_=b(()=>{V()});var n$=(_,$)=>{return S(_.innerType._def,$)};var a_=b(()=>{V()});function s_(_,$,q){let J=q??$.dateStrategy;if(Array.isArray(J))return{anyOf:J.map((W,X)=>s_(_,$,W))};switch(J){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return hq(_,$)}}var hq=(_,$)=>{let q={type:"integer",format:"unix-time"};if($.target==="openApi3")return q;for(let J of _.checks)switch(J.kind){case"min":N(q,"minimum",J.value,J.message,$);break;case"max":N(q,"maximum",J.value,J.message,$);break}return q};var e_=b(()=>{p()});function Z$(_,$){return{...S(_.innerType._def,$),default:_.defaultValue()}}var _$=b(()=>{V()});function u$(_,$){return $.effectStrategy==="input"?S(_.schema._def,$):E($)}var $$=b(()=>{V();g()});function p$(_){return{type:"string",enum:Array.from(_.values)}}var q$=()=>{};function i$(_,$){let q=[S(_.left._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),S(_.right._def,{...$,currentPath:[...$.currentPath,"allOf","1"]})].filter((X)=>!!X),J=$.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,W=[];return q.forEach((X)=>{if(yq(X)){if(W.push(...X.allOf),X.unevaluatedProperties===void 0)J=void 0}else{let H=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Y,...Q}=X;H=Q}else J=void 0;W.push(H)}}),W.length?{allOf:W,...J}:void 0}var yq=(_)=>{if("type"in _&&_.type==="string")return!1;return"allOf"in _};var J$=b(()=>{V()});function r$(_,$){let q=typeof _.value;if(q!=="bigint"&&q!=="number"&&q!=="boolean"&&q!=="string")return{type:Array.isArray(_.value)?"array":"object"};if($.target==="openApi3")return{type:q==="bigint"?"integer":q,enum:[_.value]};return{type:q==="bigint"?"integer":q,const:_.value}}var W$=()=>{};function I_(_,$){let q={type:"string"};if(_.checks)for(let J of _.checks)switch(J.kind){case"min":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$);break;case"max":N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"email":switch($.emailStrategy){case"format:email":I(q,"email",J.message,$);break;case"format:idn-email":I(q,"idn-email",J.message,$);break;case"pattern:zod":F(q,k.email,J.message,$);break}break;case"url":I(q,"uri",J.message,$);break;case"uuid":I(q,"uuid",J.message,$);break;case"regex":F(q,J.regex,J.message,$);break;case"cuid":F(q,k.cuid,J.message,$);break;case"cuid2":F(q,k.cuid2,J.message,$);break;case"startsWith":F(q,RegExp(`^${H$(J.value,$)}`),J.message,$);break;case"endsWith":F(q,RegExp(`${H$(J.value,$)}$`),J.message,$);break;case"datetime":I(q,"date-time",J.message,$);break;case"date":I(q,"date",J.message,$);break;case"time":I(q,"time",J.message,$);break;case"duration":I(q,"duration",J.message,$);break;case"length":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$),N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"includes":{F(q,RegExp(H$(J.value,$)),J.message,$);break}case"ip":{if(J.version!=="v6")I(q,"ipv4",J.message,$);if(J.version!=="v4")I(q,"ipv6",J.message,$);break}case"base64url":F(q,k.base64url,J.message,$);break;case"jwt":F(q,k.jwt,J.message,$);break;case"cidr":{if(J.version!=="v6")F(q,k.ipv4Cidr,J.message,$);if(J.version!=="v4")F(q,k.ipv6Cidr,J.message,$);break}case"emoji":F(q,k.emoji(),J.message,$);break;case"ulid":{F(q,k.ulid,J.message,$);break}case"base64":{switch($.base64Strategy){case"format:binary":{I(q,"binary",J.message,$);break}case"contentEncoding:base64":{N(q,"contentEncoding","base64",J.message,$);break}case"pattern:zod":{F(q,k.base64,J.message,$);break}}break}case"nanoid":F(q,k.nanoid,J.message,$);case"toLowerCase":case"toUpperCase":case"trim":break;default:((W)=>{})(J)}return q}function H$(_,$){return $.patternStrategy==="escape"?nq(_):_}function nq(_){let $="";for(let q=0;q<_.length;q++){if(!xq.has(_[q]))$+="\\";$+=_[q]}return $}function I(_,$,q,J){if(_.format||_.anyOf?.some((W)=>W.format)){if(!_.anyOf)_.anyOf=[];if(_.format){if(_.anyOf.push({format:_.format,..._.errorMessage&&J.errorMessages&&{errorMessage:{format:_.errorMessage.format}}}),delete _.format,_.errorMessage){if(delete _.errorMessage.format,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.anyOf.push({format:$,...q&&J.errorMessages&&{errorMessage:{format:q}}})}else N(_,"format",$,q,J)}function F(_,$,q,J){if(_.pattern||_.allOf?.some((W)=>W.pattern)){if(!_.allOf)_.allOf=[];if(_.pattern){if(_.allOf.push({pattern:_.pattern,..._.errorMessage&&J.errorMessages&&{errorMessage:{pattern:_.errorMessage.pattern}}}),delete _.pattern,_.errorMessage){if(delete _.errorMessage.pattern,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.allOf.push({pattern:o$($,J),...q&&J.errorMessages&&{errorMessage:{pattern:q}}})}else N(_,"pattern",o$($,J),q,J)}function o$(_,$){if(!$.applyRegexFlags||!_.flags)return _.source;let q={i:_.flags.includes("i"),m:_.flags.includes("m"),s:_.flags.includes("s")},J=q.i?_.source.toLowerCase():_.source,W="",X=!1,H=!1,Y=!1;for(let Q=0;Q<J.length;Q++){if(X){W+=J[Q],X=!1;continue}if(q.i){if(H){if(J[Q].match(/[a-z]/)){if(Y)W+=J[Q],W+=`${J[Q-2]}-${J[Q]}`.toUpperCase(),Y=!1;else if(J[Q+1]==="-"&&J[Q+2]?.match(/[a-z]/))W+=J[Q],Y=!0;else W+=`${J[Q]}${J[Q].toUpperCase()}`;continue}}else if(J[Q].match(/[a-z]/)){W+=`[${J[Q]}${J[Q].toUpperCase()}]`;continue}}if(q.m){if(J[Q]==="^"){W+=`(^|(?<=[\r
2
- ]))`;continue}else if(J[Q]==="$"){W+=`($|(?=[\r
3
- ]))`;continue}}if(q.s&&J[Q]==="."){W+=H?`${J[Q]}\r
4
- `:`[${J[Q]}\r
5
- ]`;continue}if(W+=J[Q],J[Q]==="\\")X=!0;else if(H&&J[Q]==="]")H=!1;else if(!H&&J[Q]==="[")H=!0}try{new RegExp(W)}catch{return console.warn(`Could not convert regex pattern at ${$.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),_.source}return W}var X$=void 0,k,xq;var P_=b(()=>{p();k={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(X$===void 0)X$=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return X$},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};xq=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});function m_(_,$){if($.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if($.target==="openApi3"&&_.keyType?._def.typeName===M.ZodEnum)return{type:"object",required:_.keyType._def.values,properties:_.keyType._def.values.reduce((J,W)=>({...J,[W]:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"properties",W]})??E($)}),{}),additionalProperties:$.rejectedAdditionalProperties};let q={type:"object",additionalProperties:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]})??$.allowedAdditionalProperties};if($.target==="openApi3")return q;if(_.keyType?._def.typeName===M.ZodString&&_.keyType._def.checks?.length){let{type:J,...W}=I_(_.keyType._def,$);return{...q,propertyNames:W}}else if(_.keyType?._def.typeName===M.ZodEnum)return{...q,propertyNames:{enum:_.keyType._def.values}};else if(_.keyType?._def.typeName===M.ZodBranded&&_.keyType._def.type._def.typeName===M.ZodString&&_.keyType._def.type._def.checks?.length){let{type:J,...W}=C_(_.keyType._def,$);return{...q,propertyNames:W}}return q}var l_=b(()=>{F_();V();P_();k_();g()});function c$(_,$){if($.mapStrategy==="record")return m_(_,$);let q=S(_.keyType._def,{...$,currentPath:[...$.currentPath,"items","items","0"]})||E($),J=S(_.valueType._def,{...$,currentPath:[...$.currentPath,"items","items","1"]})||E($);return{type:"array",maxItems:125,items:{type:"array",items:[q,J],minItems:2,maxItems:2}}}var Q$=b(()=>{V();l_();g()});function d$(_){let $=_.values,J=Object.keys(_.values).filter((X)=>{return typeof $[$[X]]!=="number"}).map((X)=>$[X]),W=Array.from(new Set(J.map((X)=>typeof X)));return{type:W.length===1?W[0]==="string"?"string":"number":["string","number"],enum:J}}var Y$=()=>{};function t$(_){return _.target==="openAi"?void 0:{not:E({..._,currentPath:[..._.currentPath,"not"]})}}var G$=b(()=>{g()});function a$(_){return _.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var M$=()=>{};function e$(_,$){if($.target==="openApi3")return s$(_,$);let q=_.options instanceof Map?Array.from(_.options.values()):_.options;if(q.every((J)=>(J._def.typeName in z_)&&(!J._def.checks||!J._def.checks.length))){let J=q.reduce((W,X)=>{let H=z_[X._def.typeName];return H&&!W.includes(H)?[...W,H]:W},[]);return{type:J.length>1?J:J[0]}}else if(q.every((J)=>J._def.typeName==="ZodLiteral"&&!J.description)){let J=q.reduce((W,X)=>{let H=typeof X._def.value;switch(H){case"string":case"number":case"boolean":return[...W,H];case"bigint":return[...W,"integer"];case"object":if(X._def.value===null)return[...W,"null"];case"symbol":case"undefined":case"function":default:return W}},[]);if(J.length===q.length){let W=J.filter((X,H,Y)=>Y.indexOf(X)===H);return{type:W.length>1?W:W[0],enum:q.reduce((X,H)=>{return X.includes(H._def.value)?X:[...X,H._def.value]},[])}}}else if(q.every((J)=>J._def.typeName==="ZodEnum"))return{type:"string",enum:q.reduce((J,W)=>[...J,...W._def.values.filter((X)=>!J.includes(X))],[])};return s$(_,$)}var z_,s$=(_,$)=>{let q=(_.options instanceof Map?Array.from(_.options.values()):_.options).map((J,W)=>S(J._def,{...$,currentPath:[...$.currentPath,"anyOf",`${W}`]})).filter((J)=>!!J&&(!$.strictUnions||typeof J==="object"&&Object.keys(J).length>0));return q.length?{anyOf:q}:void 0};var T_=b(()=>{V();z_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"}});function _q(_,$){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(_.innerType._def.typeName)&&(!_.innerType._def.checks||!_.innerType._def.checks.length)){if($.target==="openApi3")return{type:z_[_.innerType._def.typeName],nullable:!0};return{type:[z_[_.innerType._def.typeName],"null"]}}if($.target==="openApi3"){let J=S(_.innerType._def,{...$,currentPath:[...$.currentPath]});if(J&&"$ref"in J)return{allOf:[J],nullable:!0};return J&&{...J,nullable:!0}}let q=S(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","0"]});return q&&{anyOf:[q,{type:"null"}]}}var B$=b(()=>{V();T_()});function $q(_,$){let q={type:"number"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"int":q.type="integer",o_(q,"type",J.message,$);break;case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var D$=b(()=>{p()});function qq(_,$){let q=$.target==="openAi",J={type:"object",properties:{}},W=[],X=_.shape();for(let Y in X){let Q=X[Y];if(Q===void 0||Q._def===void 0)continue;let v=uq(Q);if(v&&q){if(Q._def.typeName==="ZodOptional")Q=Q._def.innerType;if(!Q.isNullable())Q=Q.nullable();v=!1}let R=S(Q._def,{...$,currentPath:[...$.currentPath,"properties",Y],propertyPath:[...$.currentPath,"properties",Y]});if(R===void 0)continue;if(J.properties[Y]=R,!v)W.push(Y)}if(W.length)J.required=W;let H=Zq(_,$);if(H!==void 0)J.additionalProperties=H;return J}function Zq(_,$){if(_.catchall._def.typeName!=="ZodNever")return S(_.catchall._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]});switch(_.unknownKeys){case"passthrough":return $.allowedAdditionalProperties;case"strict":return $.rejectedAdditionalProperties;case"strip":return $.removeAdditionalStrategy==="strict"?$.allowedAdditionalProperties:$.rejectedAdditionalProperties}}function uq(_){try{return _.isOptional()}catch{return!0}}var w$=b(()=>{V()});var Jq=(_,$)=>{if($.currentPath.toString()===$.propertyPath?.toString())return S(_.innerType._def,$);let q=S(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","1"]});return q?{anyOf:[{not:E($)},q]}:E($)};var b$=b(()=>{V();g()});var Wq=(_,$)=>{if($.pipeStrategy==="input")return S(_.in._def,$);else if($.pipeStrategy==="output")return S(_.out._def,$);let q=S(_.in._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),J=S(_.out._def,{...$,currentPath:[...$.currentPath,"allOf",q?"1":"0"]});return{allOf:[q,J].filter((W)=>W!==void 0)}};var z$=b(()=>{V()});function Xq(_,$){return S(_.type._def,$)}var S$=b(()=>{V()});function Hq(_,$){let J={type:"array",uniqueItems:!0,items:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"items"]})};if(_.minSize)N(J,"minItems",_.minSize.value,_.minSize.message,$);if(_.maxSize)N(J,"maxItems",_.maxSize.value,_.maxSize.message,$);return J}var v$=b(()=>{p();V()});function Qq(_,$){if(_.rest)return{type:"array",minItems:_.items.length,items:_.items.map((q,J)=>S(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[]),additionalItems:S(_.rest._def,{...$,currentPath:[...$.currentPath,"additionalItems"]})};else return{type:"array",minItems:_.items.length,maxItems:_.items.length,items:_.items.map((q,J)=>S(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[])}}var j$=b(()=>{V()});function Yq(_){return{not:E(_)}}var A$=b(()=>{g()});function Gq(_){return E(_)}var O$=b(()=>{g()});var Mq=(_,$)=>{return S(_.innerType._def,$)};var N$=b(()=>{V()});var Bq=(_,$,q)=>{switch($){case M.ZodString:return I_(_,q);case M.ZodNumber:return $q(_,q);case M.ZodObject:return qq(_,q);case M.ZodBigInt:return y$(_,q);case M.ZodBoolean:return x$();case M.ZodDate:return s_(_,q);case M.ZodUndefined:return Yq(q);case M.ZodNull:return a$(q);case M.ZodArray:return h$(_,q);case M.ZodUnion:case M.ZodDiscriminatedUnion:return e$(_,q);case M.ZodIntersection:return i$(_,q);case M.ZodTuple:return Qq(_,q);case M.ZodRecord:return m_(_,q);case M.ZodLiteral:return r$(_,q);case M.ZodEnum:return p$(_);case M.ZodNativeEnum:return d$(_);case M.ZodNullable:return _q(_,q);case M.ZodOptional:return Jq(_,q);case M.ZodMap:return c$(_,q);case M.ZodSet:return Hq(_,q);case M.ZodLazy:return()=>_.getter()._def;case M.ZodPromise:return Xq(_,q);case M.ZodNaN:case M.ZodNever:return t$(q);case M.ZodEffects:return u$(_,q);case M.ZodAny:return E(q);case M.ZodUnknown:return Gq(q);case M.ZodDefault:return Z$(_,q);case M.ZodBranded:return C_(_,q);case M.ZodReadonly:return Mq(_,q);case M.ZodCatch:return n$(_,q);case M.ZodPipeline:return Wq(_,q);case M.ZodFunction:case M.ZodVoid:case M.ZodSymbol:return;default:return((J)=>{return})($)}};var E$=b(()=>{F_();g();c_();d_();t_();k_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();l_();v$();P_();j$();A$();T_();O$();N$()});function S(_,$,q=!1){let J=$.seen.get(_);if($.override){let Y=$.override?.(_,$,J,q);if(Y!==K$)return Y}if(J&&!q){let Y=pq(J,$);if(Y!==void 0)return Y}let W={def:_,path:$.currentPath,jsonSchema:void 0};$.seen.set(_,W);let X=Bq(_,_.typeName,$),H=typeof X==="function"?S(X(),$):X;if(H)iq(_,$,H);if($.postProcess){let Y=$.postProcess(H,_,$);return W.jsonSchema=H,Y}return W.jsonSchema=H,H}var pq=(_,$)=>{switch($.$refStrategy){case"root":return{$ref:_.path.join("/")};case"relative":return{$ref:f_($.currentPath,_.path)};case"none":case"seen":{if(_.path.length<$.currentPath.length&&_.path.every((q,J)=>$.currentPath[J]===q))return console.warn(`Recursive reference detected at ${$.currentPath.join("/")}! Defaulting to any`),E($);return $.$refStrategy==="seen"?E($):void 0}}},iq=(_,$,q)=>{if(_.description){if(q.description=_.description,$.markdownDescription)q.markdownDescription=_.description}return q};var V=b(()=>{S_();E$();g_();g()});var Dq=(_)=>{let $=F$(_),q=$.name!==void 0?[...$.basePath,$.definitionPath,$.name]:$.basePath;return{...$,flags:{hasReferencedOpenAiAnyType:!1},currentPath:q,propertyPath:void 0,seen:new Map(Object.entries($.definitions).map(([J,W])=>[W._def,{def:W._def,path:[...$.basePath,$.definitionPath,J],jsonSchema:void 0}]))}};var U$=b(()=>{S_()});var rq=(_,$)=>{let q=Dq($),J=typeof $==="object"&&$.definitions?Object.entries($.definitions).reduce((Q,[v,R])=>({...Q,[v]:S(R._def,{...q,currentPath:[...q.basePath,q.definitionPath,v]},!0)??E(q)}),{}):void 0,W=typeof $==="string"?$:$?.nameStrategy==="title"?void 0:$?.name,X=S(_._def,W===void 0?q:{...q,currentPath:[...q.basePath,q.definitionPath,W]},!1)??E(q),H=typeof $==="object"&&$.name!==void 0&&$.nameStrategy==="title"?$.name:void 0;if(H!==void 0)X.title=H;if(q.flags.hasReferencedOpenAiAnyType){if(!J)J={};if(!J[q.openAiAnyTypeName])J[q.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:q.$refStrategy==="relative"?"1":[...q.basePath,q.definitionPath,q.openAiAnyTypeName].join("/")}}}let Y=W===void 0?J?{...X,[q.definitionPath]:J}:X:{$ref:[...q.$refStrategy==="relative"?[]:q.basePath,q.definitionPath,W].join("/"),[q.definitionPath]:{...J,[W]:X}};if(q.target==="jsonSchema7")Y.$schema="http://json-schema.org/draft-07/schema#";else if(q.target==="jsonSchema2019-09"||q.target==="openAi")Y.$schema="https://json-schema.org/draft/2019-09/schema#";if(q.target==="openAi"&&(("anyOf"in Y)||("oneOf"in Y)||("allOf"in Y)||("type"in Y)&&Array.isArray(Y.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return Y};var V$=b(()=>{V();U$();g()});var wq=()=>{};var oq=b(()=>{V$();S_();U$();p();g_();V();wq();g();c_();d_();t_();k_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();N$();l_();v$();P_();j$();A$();T_();O$();E$();V$()});
6
- export{rq as OZ,oq as PZ};
@@ -1,2 +0,0 @@
1
- import{oe as R,qe as d}from"./cli-0.6.2-657fbmws.mjs";import{tV as j,wV as c}from"./cli-0.6.2-g1m1mc2w.mjs";import{eha as K,hha as D}from"./cli-0.6.2-g6c6hjc6.mjs";import{Fha as h,yha as C}from"./cli-0.6.2-0f9sh5z8.mjs";import{hpa as I,ipa as J}from"./cli-0.6.2-3rgtxc9f.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.6.2-ndpcgcx5.mjs"),{getOrganizationUUID:Z}=await import("./client-0.6.2-8b0s065m.mjs"),{getOauthConfig:V}=await import("./oauth-0.6.2-newhjxdv.mjs"),{getOAuthHeaders:P}=await import("./api-0.6.2-r9z30232.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.6.2-d1chqsq7.mjs"),{getDefaultBranch:_}=await import("./git-0.6.2-nt9s7t3d.mjs"),{getMainLoopModel:M}=await import("./model-0.6.2-pcd5ta0c.mjs"),{default:T}=await import("./index-0.6.2-2vns8v9p.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.6.2-d1chqsq7.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.2-ndpcgcx5.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.2-8b0s065m.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.2-newhjxdv.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.2-r9z30232.mjs"),{default:G}=await import("./index-0.6.2-2vns8v9p.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.2-ndpcgcx5.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.2-8b0s065m.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.2-newhjxdv.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.2-r9z30232.mjs"),{default:G}=await import("./index-0.6.2-2vns8v9p.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.6.2-ndpcgcx5.mjs"),{getOrganizationUUID:Y}=await import("./client-0.6.2-8b0s065m.mjs"),{getOauthConfig:z}=await import("./oauth-0.6.2-newhjxdv.mjs"),{getOAuthHeaders:G}=await import("./api-0.6.2-r9z30232.mjs"),{default:L}=await import("./index-0.6.2-2vns8v9p.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
- export{i as ge,r as he,t as ie,o as je,p as ke};