@claudiolabs/claudin 1.1.26 → 1.1.27

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 (914) hide show
  1. package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +1 -0
  2. package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +1 -0
  30. package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +110 -0
  31. package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +3 -0
  32. package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +1 -0
  35. package/dist/chunks/auth-1.1.27-d561ngfq.mjs +1 -0
  36. package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +1 -0
  41. package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +1 -0
  47. package/dist/chunks/btw-1.1.27-wx6yv865.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +4 -0
  51. package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +1 -0
  52. package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +1 -0
  55. package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +1 -0
  57. package/dist/chunks/cli-1.1.27-090g18py.mjs +2 -0
  58. package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +2 -0
  59. package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +4 -0
  60. package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +2 -0
  61. package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +2 -0
  62. package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +25 -0
  64. package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +2 -0
  65. package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +3 -0
  66. package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +2 -0
  67. package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +2 -0
  68. package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +2 -0
  69. package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +2 -0
  70. package/dist/chunks/cli-1.1.27-2922x4n2.mjs +5 -0
  71. package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +2 -0
  72. package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +2 -0
  73. package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +4 -0
  74. package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +6 -0
  75. package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +2 -0
  76. package/dist/chunks/cli-1.1.27-3qx1npht.mjs +2 -0
  77. package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +2 -0
  78. package/dist/chunks/cli-1.1.27-48ezce33.mjs +206 -0
  79. package/dist/chunks/cli-1.1.27-4an77vdm.mjs +2 -0
  80. package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +3 -0
  81. package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +24 -0
  82. package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +2 -0
  83. package/dist/chunks/cli-1.1.27-4xegg6js.mjs +2 -0
  84. package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +2 -0
  85. package/dist/chunks/cli-1.1.27-55evh9sy.mjs +21 -0
  86. package/dist/chunks/cli-1.1.27-575dbhvc.mjs +2 -0
  87. package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +2 -0
  88. package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +3 -0
  89. package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +2 -0
  90. package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +2 -0
  91. package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +2 -0
  92. package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +2 -0
  93. package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +60 -0
  94. package/dist/chunks/cli-1.1.27-704q0rhh.mjs +2 -0
  95. package/dist/chunks/cli-1.1.27-79504h3t.mjs +2 -0
  96. package/dist/chunks/cli-1.1.27-7a101p3z.mjs +2 -0
  97. package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +2 -0
  98. package/dist/chunks/cli-1.1.27-7hws4y92.mjs +4 -0
  99. package/dist/chunks/cli-1.1.27-7jakzfss.mjs +24 -0
  100. package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +4 -0
  101. package/dist/chunks/cli-1.1.27-7wrz865m.mjs +2 -0
  102. package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +2 -0
  103. package/dist/chunks/cli-1.1.27-83exfkej.mjs +2 -0
  104. package/dist/chunks/cli-1.1.27-8em170zt.mjs +2 -0
  105. package/dist/chunks/cli-1.1.27-8fve969w.mjs +2 -0
  106. package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +42 -0
  107. package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +2 -0
  108. package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +2 -0
  109. package/dist/chunks/cli-1.1.27-8zkr609d.mjs +4 -0
  110. package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +3 -0
  111. package/dist/chunks/cli-1.1.27-9427t707.mjs +2 -0
  112. package/dist/chunks/cli-1.1.27-94qc7asn.mjs +2 -0
  113. package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +2 -0
  114. package/dist/chunks/cli-1.1.27-96yksxag.mjs +2 -0
  115. package/dist/chunks/cli-1.1.27-98bpezgc.mjs +45 -0
  116. package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +2 -0
  117. package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +15 -0
  118. package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +2 -0
  119. package/dist/chunks/cli-1.1.27-9sswt66t.mjs +12 -0
  120. package/dist/chunks/cli-1.1.27-a454a3rb.mjs +2 -0
  121. package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +2 -0
  122. package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +24 -0
  123. package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +2 -0
  124. package/dist/chunks/cli-1.1.27-b42yen3p.mjs +2 -0
  125. package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +2 -0
  126. package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +15 -0
  127. package/dist/chunks/cli-1.1.27-byba8306.mjs +20 -0
  128. package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +2 -0
  129. package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +2 -0
  130. package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +2 -0
  131. package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +3 -0
  132. package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +2 -0
  133. package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +2 -0
  134. package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +2 -0
  135. package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +2 -0
  136. package/dist/chunks/cli-1.1.27-d4km9s81.mjs +2 -0
  137. package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +50 -0
  138. package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +3 -0
  139. package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +2 -0
  140. package/dist/chunks/cli-1.1.27-dfww0knt.mjs +2 -0
  141. package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +2 -0
  142. package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +2 -0
  143. package/dist/chunks/cli-1.1.27-e53f6at7.mjs +2 -0
  144. package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +2 -0
  145. package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +2 -0
  146. package/dist/chunks/cli-1.1.27-eypype7d.mjs +8 -0
  147. package/dist/chunks/cli-1.1.27-f218cppx.mjs +34 -0
  148. package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +2 -0
  149. package/dist/chunks/cli-1.1.27-fary910g.mjs +2 -0
  150. package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +2 -0
  151. package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +2 -0
  152. package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +2 -0
  153. package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +4 -0
  154. package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +5 -0
  155. package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +1 -0
  156. package/dist/chunks/cli-1.1.27-gan2msv5.mjs +3 -0
  157. package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +2 -0
  158. package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +2 -0
  159. package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +2 -0
  160. package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +2 -0
  161. package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +2 -0
  162. package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +9 -0
  163. package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +2 -0
  164. package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +2 -0
  165. package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +2 -0
  166. package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +6 -0
  167. package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +2 -0
  168. package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +20 -0
  169. package/dist/chunks/cli-1.1.27-j362egg2.mjs +2 -0
  170. package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +2 -0
  171. package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +2 -0
  172. package/dist/chunks/cli-1.1.27-jg3tymed.mjs +2 -0
  173. package/dist/chunks/cli-1.1.27-jh817v59.mjs +2 -0
  174. package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +2 -0
  175. package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +2 -0
  176. package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +3 -0
  177. package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +2 -0
  178. package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +2 -0
  179. package/dist/chunks/cli-1.1.27-k115ge4q.mjs +6 -0
  180. package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +2 -0
  181. package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +2 -0
  182. package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +2 -0
  183. package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +12 -0
  184. package/dist/chunks/cli-1.1.27-kerbk21s.mjs +2 -0
  185. package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +2 -0
  186. package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +2 -0
  187. package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +2 -0
  188. package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +3 -0
  189. package/dist/chunks/cli-1.1.27-m2n4m352.mjs +2 -0
  190. package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +2 -0
  191. package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +2 -0
  192. package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +4 -0
  193. package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +2 -0
  194. package/dist/chunks/cli-1.1.27-mqt20a61.mjs +2 -0
  195. package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +3 -0
  196. package/dist/chunks/cli-1.1.27-n09bs0db.mjs +2 -0
  197. package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +2 -0
  198. package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +2 -0
  199. package/dist/chunks/cli-1.1.27-nbgxr715.mjs +10 -0
  200. package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +58 -0
  201. package/dist/chunks/cli-1.1.27-nmp82pea.mjs +3 -0
  202. package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +3 -0
  203. package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +2 -0
  204. package/dist/chunks/cli-1.1.27-ny95570d.mjs +133 -0
  205. package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +2 -0
  206. package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +2 -0
  207. package/dist/chunks/cli-1.1.27-p99q7a22.mjs +133 -0
  208. package/dist/chunks/cli-1.1.27-pab2avnw.mjs +2 -0
  209. package/dist/chunks/cli-1.1.27-pyjha53q.mjs +2 -0
  210. package/dist/chunks/cli-1.1.27-q2msmggk.mjs +2 -0
  211. package/dist/chunks/cli-1.1.27-q830jx95.mjs +2 -0
  212. package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +2 -0
  213. package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +2 -0
  214. package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +2 -0
  215. package/dist/chunks/cli-1.1.27-r2qyxh4t.mjs +26 -0
  216. package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +4 -0
  217. package/dist/chunks/cli-1.1.27-r335xv52.mjs +6 -0
  218. package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +25 -0
  219. package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +2 -0
  220. package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +7 -0
  221. package/dist/chunks/cli-1.1.27-rct7c74m.mjs +2 -0
  222. package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +2 -0
  223. package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +2 -0
  224. package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +2 -0
  225. package/dist/chunks/cli-1.1.27-s62prq89.mjs +2 -0
  226. package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +2 -0
  227. package/dist/chunks/cli-1.1.27-scfswqdr.mjs +2 -0
  228. package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +58 -0
  229. package/dist/chunks/cli-1.1.27-sngxwsap.mjs +2 -0
  230. package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +2 -0
  231. package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +2 -0
  232. package/dist/chunks/cli-1.1.27-t13xq38e.mjs +2 -0
  233. package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +2 -0
  234. package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +2 -0
  235. package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +6 -0
  236. package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +17 -0
  237. package/dist/chunks/cli-1.1.27-tpefzkds.mjs +4 -0
  238. package/dist/chunks/cli-1.1.27-tw693ept.mjs +2 -0
  239. package/dist/chunks/cli-1.1.27-v24sqtag.mjs +24 -0
  240. package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +2 -0
  241. package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +15 -0
  242. package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +6 -0
  243. package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +39 -0
  244. package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +2 -0
  245. package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +5522 -0
  246. package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +2 -0
  247. package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +2 -0
  248. package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +2 -0
  249. package/dist/chunks/cli-1.1.27-wtthtmes.mjs +3 -0
  250. package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +2 -0
  251. package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +17 -0
  252. package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +16 -0
  253. package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +7 -0
  254. package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +2 -0
  255. package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +2 -0
  256. package/dist/chunks/cli-1.1.27-y712t8h2.mjs +2 -0
  257. package/dist/chunks/cli-1.1.27-y935z28w.mjs +2 -0
  258. package/dist/chunks/cli-1.1.27-yghv5btz.mjs +2 -0
  259. package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +18 -0
  260. package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +2 -0
  261. package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +9 -0
  262. package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +2 -0
  263. package/dist/chunks/cli-1.1.27-zr523fbq.mjs +3 -0
  264. package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +1 -0
  265. package/dist/chunks/color-1.1.27-58s1yrz1.mjs +1 -0
  266. package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +3 -0
  267. package/dist/chunks/config-1.1.27-7vwe1qph.mjs +1 -0
  268. package/dist/chunks/config-1.1.27-ymfcbn84.mjs +1 -0
  269. package/dist/chunks/constants-1.1.27-3r2715sd.mjs +1 -0
  270. package/dist/chunks/context-1.1.27-yznf0qn9.mjs +1 -0
  271. package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +1 -0
  272. package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +1 -0
  273. package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +1 -0
  274. package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +9 -0
  275. package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +1 -0
  276. package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +1 -0
  277. package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +1 -0
  278. package/dist/chunks/debug-1.1.27-42bn4afg.mjs +1 -0
  279. package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +1534 -0
  280. package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +1 -0
  281. package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +1 -0
  282. package/dist/chunks/detection-1.1.27-0974kbef.mjs +1 -0
  283. package/dist/chunks/diff-1.1.27-1cb81w47.mjs +1 -0
  284. package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +1 -0
  285. package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +1 -0
  286. package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +1 -0
  287. package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +13 -0
  288. package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +1 -0
  289. package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +1 -0
  290. package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +1 -0
  291. package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +1 -0
  292. package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +1 -0
  293. package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +1 -0
  294. package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +1 -0
  295. package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +1 -0
  296. package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +1 -0
  297. package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +1 -0
  298. package/dist/chunks/export-1.1.27-tda60v40.mjs +2 -0
  299. package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +1 -0
  301. package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +1 -0
  302. package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +1 -0
  304. package/dist/chunks/git-1.1.27-pe9yjmar.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +1 -0
  306. package/dist/chunks/goal-1.1.27-da40b321.mjs +4 -0
  307. package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +1 -0
  308. package/dist/chunks/headless-1.1.27-gwzekzne.mjs +2 -0
  309. package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +6 -0
  310. package/dist/chunks/help-1.1.27-gwcwagyv.mjs +1 -0
  311. package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +3 -0
  312. package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +1 -0
  313. package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +79 -0
  314. package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +3 -0
  315. package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +1 -0
  316. package/dist/chunks/import-1.1.27-69zkqd7t.mjs +261 -0
  317. package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +1 -0
  318. package/dist/chunks/index-1.1.27-03qtf3bh.mjs +9 -0
  319. package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +1 -0
  320. package/dist/chunks/index-1.1.27-4td4kk2r.mjs +2 -0
  321. package/dist/chunks/index-1.1.27-72s4gvww.mjs +1 -0
  322. package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +9 -0
  323. package/dist/chunks/index-1.1.27-949q66tk.mjs +1 -0
  324. package/dist/chunks/index-1.1.27-9w6rbss1.mjs +1 -0
  325. package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +5 -0
  326. package/dist/chunks/index-1.1.27-9za77x22.mjs +2 -0
  327. package/dist/chunks/index-1.1.27-av965j5w.mjs +1 -0
  328. package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +1 -0
  329. package/dist/chunks/index-1.1.27-dzzkz91c.mjs +1 -0
  330. package/dist/chunks/index-1.1.27-ed0cj234.mjs +30 -0
  331. package/dist/chunks/index-1.1.27-fz6pezpj.mjs +1 -0
  332. package/dist/chunks/index-1.1.27-haym7ds6.mjs +1 -0
  333. package/dist/chunks/index-1.1.27-k2zye2ba.mjs +1 -0
  334. package/dist/chunks/index-1.1.27-ktav82bw.mjs +1 -0
  335. package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +1 -0
  336. package/dist/chunks/index-1.1.27-r6ypg71x.mjs +1 -0
  337. package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +1 -0
  338. package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +23 -0
  339. package/dist/chunks/index-1.1.27-spc0z43g.mjs +1 -0
  340. package/dist/chunks/index-1.1.27-xvd24vg3.mjs +1 -0
  341. package/dist/chunks/init-1.1.27-kbwzggfn.mjs +1 -0
  342. package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +1 -0
  343. package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +1 -0
  344. package/dist/chunks/insights-1.1.27-r17n37gt.mjs +870 -0
  345. package/dist/chunks/install-1.1.27-rst7c5sr.mjs +1 -0
  346. package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +149 -0
  347. package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +1 -0
  348. package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +1 -0
  350. package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +2 -0
  351. package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +1 -0
  355. package/dist/chunks/log-1.1.27-trbh6pmv.mjs +1 -0
  356. package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +1 -0
  357. package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +1 -0
  359. package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +17 -0
  360. package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +4 -0
  361. package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +1 -0
  362. package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +72 -0
  363. package/dist/chunks/model-1.1.27-968y8qcm.mjs +2 -0
  364. package/dist/chunks/model-1.1.27-p2b82a7t.mjs +1 -0
  365. package/dist/chunks/node-1.1.27-bghx5g4n.mjs +1 -0
  366. package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +15 -0
  367. package/dist/chunks/oauth-1.1.27-19qatx62.mjs +1 -0
  368. package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +14 -0
  369. package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +1 -0
  370. package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +1 -0
  372. package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +1 -0
  373. package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +1 -0
  374. package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +3 -0
  375. package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +1 -0
  376. package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +1 -0
  377. package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +1 -0
  378. package/dist/chunks/plugin-1.1.27-benemmgh.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +1 -0
  380. package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +9 -0
  381. package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +2 -0
  382. package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +57 -0
  383. package/dist/chunks/process-1.1.27-1en4vj8c.mjs +1 -0
  384. package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +1 -0
  385. package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +9 -0
  386. package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +1 -0
  387. package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +1 -0
  388. package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +1 -0
  389. package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +13 -0
  390. package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +2 -0
  391. package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +1 -0
  392. package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +6 -0
  393. package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +1 -0
  394. package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +26 -0
  395. package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +1 -0
  396. package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +5 -0
  397. package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +2 -0
  398. package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +1 -0
  399. package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +1 -0
  400. package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +1 -0
  401. package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +1 -0
  402. package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +1 -0
  403. package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +1 -0
  404. package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +2 -0
  405. package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +1 -0
  406. package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +1 -0
  407. package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +10 -0
  408. package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +1 -0
  410. package/dist/chunks/session-1.1.27-bv5zha49.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +1 -0
  413. package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +1 -0
  414. package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +1 -0
  415. package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +12 -0
  416. package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +1 -0
  417. package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +1 -0
  418. package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +1 -0
  420. package/dist/chunks/state-1.1.27-fpyqkxby.mjs +1 -0
  421. package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +1 -0
  422. package/dist/chunks/status-1.1.27-7vscpczw.mjs +1 -0
  423. package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +1 -0
  425. package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +1 -0
  426. package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +1 -0
  428. package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +1 -0
  429. package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +1 -0
  430. package/dist/chunks/theme-1.1.27-dzme81zx.mjs +1 -0
  431. package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +1 -0
  432. package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +1 -0
  433. package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +1 -0
  434. package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +1 -0
  435. package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +1 -0
  436. package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +69 -0
  438. package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +4 -0
  440. package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +72 -0
  441. package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +1 -0
  442. package/dist/chunks/upload-1.1.27-9natjvcx.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +1 -0
  445. package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +1 -0
  446. package/dist/chunks/util-1.1.27-m60qqy4m.mjs +1 -0
  447. package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +1 -0
  448. package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +1 -0
  449. package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +13 -0
  450. package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +1 -0
  451. package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +132 -0
  452. package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +1 -0
  453. package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +1 -0
  454. package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +1 -0
  455. package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +7 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +9 -9
  458. package/dist/chunks/AgentTool-1.1.26-pww3rzse.mjs +0 -1
  459. package/dist/chunks/App-1.1.26-4vaezrz4.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-1.1.26-rngrjmp0.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-1.1.26-n2977m3p.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-1.1.26-9y3h164v.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-1.1.26-qzf3wf2e.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.26-4rsh36df.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-1.1.26-g1kknwq5.mjs +0 -1
  466. package/dist/chunks/DiffDialog-1.1.26-4bt5rf4c.mjs +0 -6
  467. package/dist/chunks/Doctor-1.1.26-jnzpfe2z.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-1.1.26-h4ha2k3s.mjs +0 -6
  469. package/dist/chunks/ITermBackend-1.1.26-6vq713nq.mjs +0 -1
  470. package/dist/chunks/InvalidConfigDialog-1.1.26-5mpbyw8j.mjs +0 -1
  471. package/dist/chunks/InvalidSettingsDialog-1.1.26-y240kr8g.mjs +0 -1
  472. package/dist/chunks/MigrationDialog-1.1.26-bhdbn3pv.mjs +0 -1
  473. package/dist/chunks/Onboarding-1.1.26-v8am83rd.mjs +0 -1
  474. package/dist/chunks/ProviderManager-1.1.26-22a8rbdy.mjs +0 -1
  475. package/dist/chunks/REPL-1.1.26-z72g0j0z.mjs +0 -1
  476. package/dist/chunks/ResumeConversation-1.1.26-gh9s3rjn.mjs +0 -1
  477. package/dist/chunks/SnapshotUpdateDialog-1.1.26-r40qtar2.mjs +0 -1
  478. package/dist/chunks/TeleportProgress-1.1.26-23se9f85.mjs +0 -1
  479. package/dist/chunks/TeleportRepoMismatchDialog-1.1.26-7r52d8rv.mjs +0 -1
  480. package/dist/chunks/TeleportResumeWrapper-1.1.26-k6atzshz.mjs +0 -1
  481. package/dist/chunks/TmuxBackend-1.1.26-ym3spr0b.mjs +0 -9
  482. package/dist/chunks/ToolSearchTool-1.1.26-c332beft.mjs +0 -1
  483. package/dist/chunks/TrustDialog-1.1.26-sqqx0vck.mjs +0 -1
  484. package/dist/chunks/activeProvider-1.1.26-maqce1gv.mjs +0 -1
  485. package/dist/chunks/add-dir-1.1.26-qcws8kjg.mjs +0 -1
  486. package/dist/chunks/agentTypes-1.1.26-fw01kwc9.mjs +0 -1
  487. package/dist/chunks/agents-1.1.26-dasaamxr.mjs +0 -3
  488. package/dist/chunks/agents-1.1.26-p33pq694.mjs +0 -110
  489. package/dist/chunks/api-1.1.26-msb1jnzq.mjs +0 -1
  490. package/dist/chunks/asciicast-1.1.26-vf9e0v5b.mjs +0 -1
  491. package/dist/chunks/assistant-1.1.26-h2aycjkn.mjs +0 -1
  492. package/dist/chunks/auth-1.1.26-dk7wnv7t.mjs +0 -1
  493. package/dist/chunks/auth-1.1.26-q8xgzm5r.mjs +0 -1
  494. package/dist/chunks/autoMode-1.1.26-zrzav382.mjs +0 -52
  495. package/dist/chunks/autoModeSetup-1.1.26-x7k5ammk.mjs +0 -44
  496. package/dist/chunks/autoUpdater-1.1.26-6hmytwm6.mjs +0 -1
  497. package/dist/chunks/backgroundHousekeeping-1.1.26-09grqe05.mjs +0 -1
  498. package/dist/chunks/branch-1.1.26-e1qfc78k.mjs +0 -4
  499. package/dist/chunks/bridge-1.1.26-h1bxacst.mjs +0 -2
  500. package/dist/chunks/bridgeConfig-1.1.26-vpz1r911.mjs +0 -1
  501. package/dist/chunks/bridgeEnabled-1.1.26-xkeegvk7.mjs +0 -1
  502. package/dist/chunks/bridgeMain-1.1.26-dnv31x02.mjs +0 -88
  503. package/dist/chunks/bridgePointer-1.1.26-d2zjebn5.mjs +0 -1
  504. package/dist/chunks/btw-1.1.26-9hcjg1vm.mjs +0 -1
  505. package/dist/chunks/buddy-1.1.26-20xpa564.mjs +0 -3
  506. package/dist/chunks/cache-probe-1.1.26-p18jjck5.mjs +0 -21
  507. package/dist/chunks/cacheStats-1.1.26-tndvbhbh.mjs +0 -4
  508. package/dist/chunks/caches-1.1.26-g9aneehb.mjs +0 -1
  509. package/dist/chunks/cd-1.1.26-1mhwbmvw.mjs +0 -3
  510. package/dist/chunks/claudeDesktop-1.1.26-8970gddx.mjs +0 -1
  511. package/dist/chunks/claudemd-1.1.26-a0wvdz6h.mjs +0 -1
  512. package/dist/chunks/clear-1.1.26-8f7hbzks.mjs +0 -1
  513. package/dist/chunks/clearTerminal-1.1.26-yxrgchg6.mjs +0 -1
  514. package/dist/chunks/cli-1.1.26-01erqdx7.mjs +0 -6
  515. package/dist/chunks/cli-1.1.26-0qa3rcd8.mjs +0 -6
  516. package/dist/chunks/cli-1.1.26-132vkvj1.mjs +0 -2
  517. package/dist/chunks/cli-1.1.26-14kc3afb.mjs +0 -3
  518. package/dist/chunks/cli-1.1.26-14n169e4.mjs +0 -2
  519. package/dist/chunks/cli-1.1.26-16s9pjdh.mjs +0 -2
  520. package/dist/chunks/cli-1.1.26-1mbz2mcm.mjs +0 -2
  521. package/dist/chunks/cli-1.1.26-1v8jg7nn.mjs +0 -2
  522. package/dist/chunks/cli-1.1.26-1vdqjs9c.mjs +0 -21
  523. package/dist/chunks/cli-1.1.26-1ze7r6x4.mjs +0 -24
  524. package/dist/chunks/cli-1.1.26-28qe790b.mjs +0 -2
  525. package/dist/chunks/cli-1.1.26-2dzytde4.mjs +0 -2
  526. package/dist/chunks/cli-1.1.26-2fbt2m4z.mjs +0 -4
  527. package/dist/chunks/cli-1.1.26-2j0g9z56.mjs +0 -2
  528. package/dist/chunks/cli-1.1.26-2k53vhr6.mjs +0 -2
  529. package/dist/chunks/cli-1.1.26-2msjf68r.mjs +0 -2
  530. package/dist/chunks/cli-1.1.26-2s2gpj0g.mjs +0 -2
  531. package/dist/chunks/cli-1.1.26-31negda3.mjs +0 -2
  532. package/dist/chunks/cli-1.1.26-32vewh62.mjs +0 -6
  533. package/dist/chunks/cli-1.1.26-38m8cha0.mjs +0 -2
  534. package/dist/chunks/cli-1.1.26-3c44vscp.mjs +0 -2
  535. package/dist/chunks/cli-1.1.26-3gepexgn.mjs +0 -66
  536. package/dist/chunks/cli-1.1.26-3hemew00.mjs +0 -3
  537. package/dist/chunks/cli-1.1.26-3htpgh4y.mjs +0 -2
  538. package/dist/chunks/cli-1.1.26-3k8e9a3k.mjs +0 -2
  539. package/dist/chunks/cli-1.1.26-3p2ch222.mjs +0 -2
  540. package/dist/chunks/cli-1.1.26-3z39qjr1.mjs +0 -24
  541. package/dist/chunks/cli-1.1.26-4aztw2ex.mjs +0 -2
  542. package/dist/chunks/cli-1.1.26-4cj6rr02.mjs +0 -2
  543. package/dist/chunks/cli-1.1.26-4jbtcb3c.mjs +0 -17
  544. package/dist/chunks/cli-1.1.26-4jn0r6an.mjs +0 -2
  545. package/dist/chunks/cli-1.1.26-516p6zzp.mjs +0 -2
  546. package/dist/chunks/cli-1.1.26-55ayan24.mjs +0 -133
  547. package/dist/chunks/cli-1.1.26-5fv3wdye.mjs +0 -2
  548. package/dist/chunks/cli-1.1.26-5p6865dd.mjs +0 -2
  549. package/dist/chunks/cli-1.1.26-6ac72fwz.mjs +0 -5
  550. package/dist/chunks/cli-1.1.26-6c5rgjbj.mjs +0 -2
  551. package/dist/chunks/cli-1.1.26-6g0bq6h6.mjs +0 -26
  552. package/dist/chunks/cli-1.1.26-6p5bpbzy.mjs +0 -2
  553. package/dist/chunks/cli-1.1.26-6qzbf8mr.mjs +0 -3
  554. package/dist/chunks/cli-1.1.26-6v5e8fy8.mjs +0 -2
  555. package/dist/chunks/cli-1.1.26-73s95190.mjs +0 -4
  556. package/dist/chunks/cli-1.1.26-79g0hfrb.mjs +0 -4
  557. package/dist/chunks/cli-1.1.26-79j24jxp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.26-7h1213xq.mjs +0 -1
  559. package/dist/chunks/cli-1.1.26-7pa47kxq.mjs +0 -2
  560. package/dist/chunks/cli-1.1.26-7q7jw0ck.mjs +0 -2
  561. package/dist/chunks/cli-1.1.26-7ssnr221.mjs +0 -4
  562. package/dist/chunks/cli-1.1.26-851khk0n.mjs +0 -2
  563. package/dist/chunks/cli-1.1.26-89reg5gc.mjs +0 -2
  564. package/dist/chunks/cli-1.1.26-8h5tr358.mjs +0 -2
  565. package/dist/chunks/cli-1.1.26-8vq4pfa8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.26-8wng8tbf.mjs +0 -2
  567. package/dist/chunks/cli-1.1.26-945rz3ns.mjs +0 -2
  568. package/dist/chunks/cli-1.1.26-97w71raz.mjs +0 -2
  569. package/dist/chunks/cli-1.1.26-9kzdvxzw.mjs +0 -2
  570. package/dist/chunks/cli-1.1.26-9mg6k159.mjs +0 -2
  571. package/dist/chunks/cli-1.1.26-9x90xrtz.mjs +0 -2
  572. package/dist/chunks/cli-1.1.26-ab2xbv4t.mjs +0 -2
  573. package/dist/chunks/cli-1.1.26-abp7zq8a.mjs +0 -7
  574. package/dist/chunks/cli-1.1.26-agrrdhst.mjs +0 -12
  575. package/dist/chunks/cli-1.1.26-aj61ygn7.mjs +0 -2
  576. package/dist/chunks/cli-1.1.26-arx4za97.mjs +0 -2
  577. package/dist/chunks/cli-1.1.26-avyt487s.mjs +0 -4
  578. package/dist/chunks/cli-1.1.26-b3m57q7j.mjs +0 -24
  579. package/dist/chunks/cli-1.1.26-b5xvjyj6.mjs +0 -2
  580. package/dist/chunks/cli-1.1.26-bc7nnmyt.mjs +0 -4
  581. package/dist/chunks/cli-1.1.26-bmzjvqhh.mjs +0 -2
  582. package/dist/chunks/cli-1.1.26-bs6j2409.mjs +0 -2
  583. package/dist/chunks/cli-1.1.26-bv6bd469.mjs +0 -2
  584. package/dist/chunks/cli-1.1.26-c1s0antn.mjs +0 -2
  585. package/dist/chunks/cli-1.1.26-c9m56qw1.mjs +0 -4
  586. package/dist/chunks/cli-1.1.26-cdkkrgj3.mjs +0 -6
  587. package/dist/chunks/cli-1.1.26-chwpygff.mjs +0 -2
  588. package/dist/chunks/cli-1.1.26-cmeam5fv.mjs +0 -4
  589. package/dist/chunks/cli-1.1.26-crwbhf2k.mjs +0 -2
  590. package/dist/chunks/cli-1.1.26-d6m0sag3.mjs +0 -2
  591. package/dist/chunks/cli-1.1.26-dq31hqw9.mjs +0 -2
  592. package/dist/chunks/cli-1.1.26-dyyg0r9f.mjs +0 -2
  593. package/dist/chunks/cli-1.1.26-e807ek7h.mjs +0 -3
  594. package/dist/chunks/cli-1.1.26-e8stbnjk.mjs +0 -2
  595. package/dist/chunks/cli-1.1.26-eb90p21t.mjs +0 -10
  596. package/dist/chunks/cli-1.1.26-edg965cj.mjs +0 -2
  597. package/dist/chunks/cli-1.1.26-etwfcg1g.mjs +0 -2
  598. package/dist/chunks/cli-1.1.26-exd0gw3b.mjs +0 -3
  599. package/dist/chunks/cli-1.1.26-f0cvk9rp.mjs +0 -3
  600. package/dist/chunks/cli-1.1.26-f624n21e.mjs +0 -2
  601. package/dist/chunks/cli-1.1.26-fcnssbje.mjs +0 -2
  602. package/dist/chunks/cli-1.1.26-ft1bty40.mjs +0 -45
  603. package/dist/chunks/cli-1.1.26-g0jbhnrw.mjs +0 -3
  604. package/dist/chunks/cli-1.1.26-g1a27741.mjs +0 -3
  605. package/dist/chunks/cli-1.1.26-g3eqp15d.mjs +0 -2
  606. package/dist/chunks/cli-1.1.26-g54bqv9d.mjs +0 -2
  607. package/dist/chunks/cli-1.1.26-g825efx8.mjs +0 -3
  608. package/dist/chunks/cli-1.1.26-grerq74y.mjs +0 -4
  609. package/dist/chunks/cli-1.1.26-gt65gs27.mjs +0 -2
  610. package/dist/chunks/cli-1.1.26-h2bzv8a9.mjs +0 -2
  611. package/dist/chunks/cli-1.1.26-h8pwf3e5.mjs +0 -34
  612. package/dist/chunks/cli-1.1.26-hc0z3th3.mjs +0 -2
  613. package/dist/chunks/cli-1.1.26-hgr89jmg.mjs +0 -2
  614. package/dist/chunks/cli-1.1.26-hk66nk4j.mjs +0 -2
  615. package/dist/chunks/cli-1.1.26-hkn2maax.mjs +0 -12
  616. package/dist/chunks/cli-1.1.26-hwb66n0d.mjs +0 -20
  617. package/dist/chunks/cli-1.1.26-hxty6b5t.mjs +0 -24
  618. package/dist/chunks/cli-1.1.26-j0ggtb42.mjs +0 -2
  619. package/dist/chunks/cli-1.1.26-j0pfn318.mjs +0 -2
  620. package/dist/chunks/cli-1.1.26-j3g54xq9.mjs +0 -25
  621. package/dist/chunks/cli-1.1.26-j522h2zj.mjs +0 -2
  622. package/dist/chunks/cli-1.1.26-j5jzf8nr.mjs +0 -2
  623. package/dist/chunks/cli-1.1.26-jaq75h39.mjs +0 -2
  624. package/dist/chunks/cli-1.1.26-jcshhf4v.mjs +0 -2
  625. package/dist/chunks/cli-1.1.26-jp74zrnt.mjs +0 -2
  626. package/dist/chunks/cli-1.1.26-jstehae2.mjs +0 -25
  627. package/dist/chunks/cli-1.1.26-jv1escq9.mjs +0 -9
  628. package/dist/chunks/cli-1.1.26-jz95bmqy.mjs +0 -2
  629. package/dist/chunks/cli-1.1.26-k287xjcs.mjs +0 -2
  630. package/dist/chunks/cli-1.1.26-k827q3s7.mjs +0 -2
  631. package/dist/chunks/cli-1.1.26-kb5qx4tp.mjs +0 -15
  632. package/dist/chunks/cli-1.1.26-kk4ymgvj.mjs +0 -2
  633. package/dist/chunks/cli-1.1.26-kmpjjneg.mjs +0 -50
  634. package/dist/chunks/cli-1.1.26-krj2sk8f.mjs +0 -2
  635. package/dist/chunks/cli-1.1.26-ktfnpsqn.mjs +0 -2
  636. package/dist/chunks/cli-1.1.26-kvt0v6vq.mjs +0 -5459
  637. package/dist/chunks/cli-1.1.26-kvy3vgrt.mjs +0 -20
  638. package/dist/chunks/cli-1.1.26-kz0et72d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.26-m2ajjr1n.mjs +0 -2
  640. package/dist/chunks/cli-1.1.26-m3gpc1yq.mjs +0 -6
  641. package/dist/chunks/cli-1.1.26-m8mebydd.mjs +0 -3
  642. package/dist/chunks/cli-1.1.26-mb749hsh.mjs +0 -2
  643. package/dist/chunks/cli-1.1.26-mdtsa5pq.mjs +0 -2
  644. package/dist/chunks/cli-1.1.26-mvjefec1.mjs +0 -206
  645. package/dist/chunks/cli-1.1.26-n0thzakv.mjs +0 -2
  646. package/dist/chunks/cli-1.1.26-n43rh2dq.mjs +0 -2
  647. package/dist/chunks/cli-1.1.26-nbkw9wa7.mjs +0 -2
  648. package/dist/chunks/cli-1.1.26-nkp41vem.mjs +0 -2
  649. package/dist/chunks/cli-1.1.26-np0se5jr.mjs +0 -2
  650. package/dist/chunks/cli-1.1.26-nr4x1ay3.mjs +0 -6
  651. package/dist/chunks/cli-1.1.26-nv2mgz6h.mjs +0 -60
  652. package/dist/chunks/cli-1.1.26-p2gpyynf.mjs +0 -2
  653. package/dist/chunks/cli-1.1.26-pdpvbn6t.mjs +0 -2
  654. package/dist/chunks/cli-1.1.26-pejnbqtd.mjs +0 -2
  655. package/dist/chunks/cli-1.1.26-pf85an2q.mjs +0 -2
  656. package/dist/chunks/cli-1.1.26-phdsw9kw.mjs +0 -2
  657. package/dist/chunks/cli-1.1.26-pp0zr4bw.mjs +0 -39
  658. package/dist/chunks/cli-1.1.26-pttfqxxh.mjs +0 -2
  659. package/dist/chunks/cli-1.1.26-pttr45sa.mjs +0 -2
  660. package/dist/chunks/cli-1.1.26-pzpydjmr.mjs +0 -2
  661. package/dist/chunks/cli-1.1.26-q4vaz10d.mjs +0 -2
  662. package/dist/chunks/cli-1.1.26-q77fmxtz.mjs +0 -2
  663. package/dist/chunks/cli-1.1.26-q9msymy9.mjs +0 -7
  664. package/dist/chunks/cli-1.1.26-qf02kggq.mjs +0 -2
  665. package/dist/chunks/cli-1.1.26-qr2ee3t2.mjs +0 -2
  666. package/dist/chunks/cli-1.1.26-qw49rw3y.mjs +0 -17
  667. package/dist/chunks/cli-1.1.26-qymrzn5k.mjs +0 -2
  668. package/dist/chunks/cli-1.1.26-r4ewzysx.mjs +0 -3
  669. package/dist/chunks/cli-1.1.26-rbxsj403.mjs +0 -8
  670. package/dist/chunks/cli-1.1.26-rgz7nebj.mjs +0 -2
  671. package/dist/chunks/cli-1.1.26-rkdk0vdh.mjs +0 -2
  672. package/dist/chunks/cli-1.1.26-rpd6k1rg.mjs +0 -2
  673. package/dist/chunks/cli-1.1.26-rr47cs5n.mjs +0 -2
  674. package/dist/chunks/cli-1.1.26-rrq5hxxh.mjs +0 -9
  675. package/dist/chunks/cli-1.1.26-rtk9fw0k.mjs +0 -2
  676. package/dist/chunks/cli-1.1.26-rzrs3g9w.mjs +0 -2
  677. package/dist/chunks/cli-1.1.26-sfz2mk5a.mjs +0 -15
  678. package/dist/chunks/cli-1.1.26-snnmp5qx.mjs +0 -2
  679. package/dist/chunks/cli-1.1.26-ssxrwqk2.mjs +0 -2
  680. package/dist/chunks/cli-1.1.26-swdk2n55.mjs +0 -2
  681. package/dist/chunks/cli-1.1.26-sx40y42s.mjs +0 -2
  682. package/dist/chunks/cli-1.1.26-syjzv1v1.mjs +0 -18
  683. package/dist/chunks/cli-1.1.26-t05x8de5.mjs +0 -2
  684. package/dist/chunks/cli-1.1.26-ta82bxzt.mjs +0 -3
  685. package/dist/chunks/cli-1.1.26-tcbtd5f6.mjs +0 -2
  686. package/dist/chunks/cli-1.1.26-tgtv1jp3.mjs +0 -16
  687. package/dist/chunks/cli-1.1.26-thxyzhdj.mjs +0 -42
  688. package/dist/chunks/cli-1.1.26-txmxmpj4.mjs +0 -2
  689. package/dist/chunks/cli-1.1.26-tyvfnyw1.mjs +0 -2
  690. package/dist/chunks/cli-1.1.26-v0vv0v6c.mjs +0 -58
  691. package/dist/chunks/cli-1.1.26-v440gznh.mjs +0 -3
  692. package/dist/chunks/cli-1.1.26-v6fnwae1.mjs +0 -2
  693. package/dist/chunks/cli-1.1.26-v7k7gw6h.mjs +0 -2
  694. package/dist/chunks/cli-1.1.26-vb3pa5k9.mjs +0 -2
  695. package/dist/chunks/cli-1.1.26-vne421we.mjs +0 -133
  696. package/dist/chunks/cli-1.1.26-vpdrb404.mjs +0 -2
  697. package/dist/chunks/cli-1.1.26-vxzeagvf.mjs +0 -2
  698. package/dist/chunks/cli-1.1.26-vypd5zf6.mjs +0 -5
  699. package/dist/chunks/cli-1.1.26-w94mate8.mjs +0 -2
  700. package/dist/chunks/cli-1.1.26-w9hym0b4.mjs +0 -2
  701. package/dist/chunks/cli-1.1.26-wy5w6zkt.mjs +0 -2
  702. package/dist/chunks/cli-1.1.26-x64s4kth.mjs +0 -2
  703. package/dist/chunks/cli-1.1.26-x82tpywr.mjs +0 -2
  704. package/dist/chunks/cli-1.1.26-xdcmgkcr.mjs +0 -15
  705. package/dist/chunks/cli-1.1.26-xkj6kd3c.mjs +0 -2
  706. package/dist/chunks/cli-1.1.26-xnqas0g4.mjs +0 -2
  707. package/dist/chunks/cli-1.1.26-xrb5tnj3.mjs +0 -2
  708. package/dist/chunks/cli-1.1.26-xrqbcbv5.mjs +0 -2
  709. package/dist/chunks/cli-1.1.26-xspr3ymb.mjs +0 -2
  710. package/dist/chunks/cli-1.1.26-xwryqq86.mjs +0 -2
  711. package/dist/chunks/cli-1.1.26-xzbv3dzb.mjs +0 -2
  712. package/dist/chunks/cli-1.1.26-y82xxzhw.mjs +0 -2
  713. package/dist/chunks/cli-1.1.26-yz9ks5m0.mjs +0 -2
  714. package/dist/chunks/cli-1.1.26-z2cjynpf.mjs +0 -2
  715. package/dist/chunks/cli-1.1.26-z5qgpexv.mjs +0 -3
  716. package/dist/chunks/cli-1.1.26-zb5hq3ry.mjs +0 -2
  717. package/dist/chunks/cli-1.1.26-zsf06fnj.mjs +0 -2
  718. package/dist/chunks/cli-1.1.26-zy2fcj67.mjs +0 -2
  719. package/dist/chunks/cli-1.1.26-zyt75y9a.mjs +0 -2
  720. package/dist/chunks/client-1.1.26-5m13dtqt.mjs +0 -1
  721. package/dist/chunks/color-1.1.26-hc4gee57.mjs +0 -1
  722. package/dist/chunks/compact-1.1.26-k29q801r.mjs +0 -3
  723. package/dist/chunks/config-1.1.26-20jye461.mjs +0 -1
  724. package/dist/chunks/config-1.1.26-f3tsx9mm.mjs +0 -1
  725. package/dist/chunks/constants-1.1.26-vyt7y0vq.mjs +0 -1
  726. package/dist/chunks/context-1.1.26-xg3zeq1z.mjs +0 -1
  727. package/dist/chunks/context-noninteractive-1.1.26-n05p37yd.mjs +0 -1
  728. package/dist/chunks/conversation-1.1.26-g9vfc7p7.mjs +0 -1
  729. package/dist/chunks/copilotHeaders-1.1.26-gr7hc6j5.mjs +0 -1
  730. package/dist/chunks/copy-1.1.26-t50s90xg.mjs +0 -9
  731. package/dist/chunks/cost-1.1.26-9hp3110j.mjs +0 -1
  732. package/dist/chunks/createSSHSession-1.1.26-hpzpfpqk.mjs +0 -1
  733. package/dist/chunks/createSession-1.1.26-4mxab0d8.mjs +0 -1
  734. package/dist/chunks/debug-1.1.26-m7p7fchf.mjs +0 -1
  735. package/dist/chunks/defaultActionDeps-1.1.26-0fr1vrkt.mjs +0 -1534
  736. package/dist/chunks/desktop-1.1.26-1qjp6a2c.mjs +0 -1
  737. package/dist/chunks/detectRepository-1.1.26-pmahtt3f.mjs +0 -1
  738. package/dist/chunks/detection-1.1.26-1wrkcwrj.mjs +0 -1
  739. package/dist/chunks/diff-1.1.26-c4nqg8fb.mjs +0 -1
  740. package/dist/chunks/doctor-1.1.26-0jtnwy0r.mjs +0 -1
  741. package/dist/chunks/doctorDiagnostic-1.1.26-x38xj5dq.mjs +0 -1
  742. package/dist/chunks/earlyInput-1.1.26-gp0650zq.mjs +0 -1
  743. package/dist/chunks/effort-1.1.26-8w1e6q0y.mjs +0 -13
  744. package/dist/chunks/engine-1.1.26-jt09gh12.mjs +0 -1
  745. package/dist/chunks/envLessBridgeConfig-1.1.26-p0x7avh5.mjs +0 -1
  746. package/dist/chunks/envUtils-1.1.26-p89sr6v4.mjs +0 -1
  747. package/dist/chunks/environmentSelection-1.1.26-d8vnmed1.mjs +0 -1
  748. package/dist/chunks/environments-1.1.26-fz5c214j.mjs +0 -1
  749. package/dist/chunks/errors-1.1.26-6bzb64g6.mjs +0 -1
  750. package/dist/chunks/exampleCommands-1.1.26-s4bn18p7.mjs +0 -1
  751. package/dist/chunks/execFileNoThrow-1.1.26-xh0x0cbp.mjs +0 -1
  752. package/dist/chunks/exit-1.1.26-55716s6k.mjs +0 -1
  753. package/dist/chunks/explorer-1.1.26-969pqrwa.mjs +0 -1
  754. package/dist/chunks/export-1.1.26-mgccr0ea.mjs +0 -2
  755. package/dist/chunks/extra-usage-1.1.26-sbe56spy.mjs +0 -1
  756. package/dist/chunks/extra-usage-noninteractive-1.1.26-h08e3n8t.mjs +0 -1
  757. package/dist/chunks/fast-1.1.26-rbaqsfka.mjs +0 -1
  758. package/dist/chunks/feedback-1.1.26-2m81mwds.mjs +0 -14
  759. package/dist/chunks/firstPartyEventLogger-1.1.26-ckqh8nb4.mjs +0 -1
  760. package/dist/chunks/git-1.1.26-0he7ww02.mjs +0 -1
  761. package/dist/chunks/githubModelsCredentials-1.1.26-xj1mdstq.mjs +0 -1
  762. package/dist/chunks/goal-1.1.26-n5s850gv.mjs +0 -4
  763. package/dist/chunks/growthbook-1.1.26-ka05jsbm.mjs +0 -1
  764. package/dist/chunks/headless-1.1.26-q9en6pe9.mjs +0 -2
  765. package/dist/chunks/heapdump-1.1.26-7ewvqmvf.mjs +0 -6
  766. package/dist/chunks/help-1.1.26-brf53t1m.mjs +0 -1
  767. package/dist/chunks/hookChains-1.1.26-rkf6y8rc.mjs +0 -3
  768. package/dist/chunks/hooks-1.1.26-9pdav42n.mjs +0 -1
  769. package/dist/chunks/hooks-1.1.26-szkj02ez.mjs +0 -79
  770. package/dist/chunks/ide-1.1.26-m5p57hjq.mjs +0 -3
  771. package/dist/chunks/image-processor-napi-1.1.26-rekvc35q.mjs +0 -1
  772. package/dist/chunks/import-1.1.26-7gbx5jy9.mjs +0 -261
  773. package/dist/chunks/inboundAttachments-1.1.26-tzg5nege.mjs +0 -1
  774. package/dist/chunks/index-1.1.26-1xcc10z3.mjs +0 -1
  775. package/dist/chunks/index-1.1.26-46seym0e.mjs +0 -1
  776. package/dist/chunks/index-1.1.26-4qsakkwp.mjs +0 -1
  777. package/dist/chunks/index-1.1.26-62wb3t76.mjs +0 -5
  778. package/dist/chunks/index-1.1.26-7dq7zd2s.mjs +0 -2
  779. package/dist/chunks/index-1.1.26-924a690m.mjs +0 -1
  780. package/dist/chunks/index-1.1.26-9hqzzjph.mjs +0 -1
  781. package/dist/chunks/index-1.1.26-bmzaqft1.mjs +0 -1
  782. package/dist/chunks/index-1.1.26-cpb34jqj.mjs +0 -9
  783. package/dist/chunks/index-1.1.26-cpx6j4xt.mjs +0 -1
  784. package/dist/chunks/index-1.1.26-gyna59qe.mjs +0 -1
  785. package/dist/chunks/index-1.1.26-h45zww68.mjs +0 -30
  786. package/dist/chunks/index-1.1.26-matsx1ed.mjs +0 -1
  787. package/dist/chunks/index-1.1.26-pm334xks.mjs +0 -1
  788. package/dist/chunks/index-1.1.26-qrbfj1zz.mjs +0 -1
  789. package/dist/chunks/index-1.1.26-sh5v696c.mjs +0 -1
  790. package/dist/chunks/index-1.1.26-srjepzh3.mjs +0 -2
  791. package/dist/chunks/index-1.1.26-syyhrh9b.mjs +0 -23
  792. package/dist/chunks/index-1.1.26-te4885d9.mjs +0 -1
  793. package/dist/chunks/index-1.1.26-tyjd8na6.mjs +0 -1
  794. package/dist/chunks/index-1.1.26-vk1z10tp.mjs +0 -1
  795. package/dist/chunks/index-1.1.26-vpyv4546.mjs +0 -9
  796. package/dist/chunks/index-1.1.26-xc6bagza.mjs +0 -1
  797. package/dist/chunks/init-1.1.26-bnpznn1w.mjs +0 -1
  798. package/dist/chunks/initReplBridge-1.1.26-c4s4p9cb.mjs +0 -1
  799. package/dist/chunks/ink-1.1.26-vgbt5egw.mjs +0 -1
  800. package/dist/chunks/insights-1.1.26-vcx1pevy.mjs +0 -870
  801. package/dist/chunks/install-1.1.26-4y132asw.mjs +0 -1
  802. package/dist/chunks/install-github-app-1.1.26-93zf234q.mjs +0 -149
  803. package/dist/chunks/install-slack-app-1.1.26-mhrfx4re.mjs +0 -1
  804. package/dist/chunks/instrumentation-1.1.26-c4qjkj2f.mjs +0 -1
  805. package/dist/chunks/interactiveHelpers-1.1.26-d3arqch8.mjs +0 -1
  806. package/dist/chunks/keybindings-1.1.26-vn76vb0k.mjs +0 -2
  807. package/dist/chunks/knowledge-1.1.26-tqdt6kx8.mjs +0 -2
  808. package/dist/chunks/latestVersionCache-1.1.26-nefaqy0s.mjs +0 -1
  809. package/dist/chunks/loadAgentsDir-1.1.26-w9zj8h13.mjs +0 -1
  810. package/dist/chunks/loadPluginHooks-1.1.26-p32pd0zg.mjs +0 -1
  811. package/dist/chunks/log-1.1.26-esy3mc70.mjs +0 -1
  812. package/dist/chunks/main-1.1.26-mj3gcxpm.mjs +0 -1
  813. package/dist/chunks/managedEnv-1.1.26-z6q7c9s8.mjs +0 -1
  814. package/dist/chunks/mcp-1.1.26-4c7syme5.mjs +0 -17
  815. package/dist/chunks/mcp-1.1.26-fhs36m57.mjs +0 -1
  816. package/dist/chunks/mcp-1.1.26-nadsprjm.mjs +0 -4
  817. package/dist/chunks/mcpb-1.1.26-ek6r8msb.mjs +0 -1
  818. package/dist/chunks/memory-1.1.26-b3m4e86v.mjs +0 -72
  819. package/dist/chunks/model-1.1.26-fhssfrx1.mjs +0 -1
  820. package/dist/chunks/model-1.1.26-v4t85ag1.mjs +0 -2
  821. package/dist/chunks/node-1.1.26-y7ck63cv.mjs +0 -15
  822. package/dist/chunks/oauth-1.1.26-8bftajjg.mjs +0 -1
  823. package/dist/chunks/openaiShim-1.1.26-wvmheb4c.mjs +0 -14
  824. package/dist/chunks/output-style-1.1.26-rgrmrr2a.mjs +0 -1
  825. package/dist/chunks/package-SHMK2LJE-1.1.26-grxx0tgk.mjs +0 -1
  826. package/dist/chunks/parseConnectUrl-1.1.26-64n8w8aa.mjs +0 -1
  827. package/dist/chunks/parser-1.1.26-p8fcgcbm.mjs +0 -1
  828. package/dist/chunks/passes-1.1.26-65c9vjm7.mjs +0 -1
  829. package/dist/chunks/permissions-1.1.26-bvde1j7e.mjs +0 -1
  830. package/dist/chunks/permissions-1.1.26-xx4tbm19.mjs +0 -3
  831. package/dist/chunks/plan-1.1.26-0p7zmpya.mjs +0 -1
  832. package/dist/chunks/plist-1.1.26-emtpv6yq.mjs +0 -1
  833. package/dist/chunks/plugin-1.1.26-6mz4s6ce.mjs +0 -29
  834. package/dist/chunks/pluginStartupCheck-1.1.26-zsxa12d4.mjs +0 -1
  835. package/dist/chunks/plugins-1.1.26-z4gc0hj4.mjs +0 -9
  836. package/dist/chunks/preActionHook-1.1.26-zja64r0y.mjs +0 -2
  837. package/dist/chunks/print-1.1.26-4jbs3r8a.mjs +0 -57
  838. package/dist/chunks/process-1.1.26-nkvbv24g.mjs +0 -1
  839. package/dist/chunks/processBashCommand-1.1.26-881sdvc5.mjs +0 -1
  840. package/dist/chunks/processSlashCommand-1.1.26-watbp07x.mjs +0 -9
  841. package/dist/chunks/prompt-1.1.26-734yg5r7.mjs +0 -1
  842. package/dist/chunks/prompt-1.1.26-ta9d8xgm.mjs +0 -1
  843. package/dist/chunks/prompts-1.1.26-cacdrcnk.mjs +0 -1
  844. package/dist/chunks/protocolHandler-1.1.26-qfw93skn.mjs +0 -13
  845. package/dist/chunks/provider-1.1.26-yk3xh49r.mjs +0 -2
  846. package/dist/chunks/providerProfiles-1.1.26-srvwhkc8.mjs +0 -1
  847. package/dist/chunks/providerValidation-1.1.26-57a6s8yj.mjs +0 -6
  848. package/dist/chunks/rate-limit-options-1.1.26-14exf6fk.mjs +0 -1
  849. package/dist/chunks/registerSubcommands-1.1.26-1yddk8hw.mjs +0 -26
  850. package/dist/chunks/registry-1.1.26-z88679pc.mjs +0 -1
  851. package/dist/chunks/release-notes-1.1.26-e7dkgbnp.mjs +0 -5
  852. package/dist/chunks/reload-plugins-1.1.26-6r85z0m0.mjs +0 -2
  853. package/dist/chunks/remote-env-1.1.26-rg1652ey.mjs +0 -1
  854. package/dist/chunks/remoteBridgeCore-1.1.26-jmhet39g.mjs +0 -1
  855. package/dist/chunks/remoteSession-1.1.26-5rva0545.mjs +0 -1
  856. package/dist/chunks/rename-1.1.26-vp06xehr.mjs +0 -1
  857. package/dist/chunks/replBridgeHandle-1.1.26-cs214vs7.mjs +0 -1
  858. package/dist/chunks/replLauncher-1.1.26-j0wpsd4v.mjs +0 -1
  859. package/dist/chunks/resume-1.1.26-agfxxd17.mjs +0 -2
  860. package/dist/chunks/rewind-1.1.26-dr3rgj2z.mjs +0 -1
  861. package/dist/chunks/rootOptions-1.1.26-nc1jrtkg.mjs +0 -1
  862. package/dist/chunks/runWorkflowHeadless-1.1.26-4xq2d4x0.mjs +0 -10
  863. package/dist/chunks/sandbox-adapter-1.1.26-v5bmtrnt.mjs +0 -1
  864. package/dist/chunks/sandbox-toggle-1.1.26-5pxvxje1.mjs +0 -1
  865. package/dist/chunks/session-1.1.26-7ejzc2bx.mjs +0 -2
  866. package/dist/chunks/sessionDiscovery-1.1.26-n6vex16t.mjs +0 -1
  867. package/dist/chunks/sessionFileAccessHooks-1.1.26-q07mz5fe.mjs +0 -1
  868. package/dist/chunks/sessionStorage-1.1.26-3x2gtfk1.mjs +0 -1
  869. package/dist/chunks/settings-1.1.26-5hc0bpnb.mjs +0 -1
  870. package/dist/chunks/setup-1.1.26-2qatx87q.mjs +0 -12
  871. package/dist/chunks/sinks-1.1.26-0d001pg9.mjs +0 -1
  872. package/dist/chunks/skills-1.1.26-5q1xvy1e.mjs +0 -1
  873. package/dist/chunks/startupProfiler-1.1.26-76scq5n6.mjs +0 -1
  874. package/dist/chunks/startupUpdateCheck-1.1.26-jw39czgq.mjs +0 -1
  875. package/dist/chunks/state-1.1.26-zh2a5cb0.mjs +0 -1
  876. package/dist/chunks/stats-1.1.26-3yvhzgsr.mjs +0 -1
  877. package/dist/chunks/status-1.1.26-ey3zzjzf.mjs +0 -1
  878. package/dist/chunks/stickers-1.1.26-pnx0arwe.mjs +0 -1
  879. package/dist/chunks/subprocessEnv-1.1.26-93d936pm.mjs +0 -1
  880. package/dist/chunks/tasks-1.1.26-05xaegas.mjs +0 -1
  881. package/dist/chunks/teamHelpers-1.1.26-zn888hhw.mjs +0 -1
  882. package/dist/chunks/teammateModeSnapshot-1.1.26-bhkgw59h.mjs +0 -1
  883. package/dist/chunks/teleport-1.1.26-9m3eaa2j.mjs +0 -1
  884. package/dist/chunks/terminalSetup-1.1.26-p0bvd0b7.mjs +0 -1
  885. package/dist/chunks/theme-1.1.26-ys6mqfn7.mjs +0 -1
  886. package/dist/chunks/thinkback-1.1.26-v4qbcex4.mjs +0 -1
  887. package/dist/chunks/thinkback-play-1.1.26-6gg066vk.mjs +0 -1
  888. package/dist/chunks/toolPool-1.1.26-g4p6wj1v.mjs +0 -1
  889. package/dist/chunks/toolSearch-1.1.26-0whd6fnj.mjs +0 -1
  890. package/dist/chunks/tools-1.1.26-m8c4e11h.mjs +0 -1
  891. package/dist/chunks/trustedDevice-1.1.26-w86xceqp.mjs +0 -1
  892. package/dist/chunks/turndown.cjs-1.1.26-kk4sc8q3.mjs +0 -69
  893. package/dist/chunks/types-1.1.26-myrve966.mjs +0 -1
  894. package/dist/chunks/ultrareviewCommand-1.1.26-fyxh8eqb.mjs +0 -4
  895. package/dist/chunks/update-1.1.26-96yjt7je.mjs +0 -72
  896. package/dist/chunks/upgrade-1.1.26-x2geqcxm.mjs +0 -1
  897. package/dist/chunks/upload-1.1.26-vpwb30tf.mjs +0 -7
  898. package/dist/chunks/upstreamproxy-1.1.26-xe96amnx.mjs +0 -14
  899. package/dist/chunks/url-handler-napi-1.1.26-2v7h396d.mjs +0 -1
  900. package/dist/chunks/usage-1.1.26-pbyahcbc.mjs +0 -1
  901. package/dist/chunks/util-1.1.26-f55brgp6.mjs +0 -1
  902. package/dist/chunks/utils-1.1.26-ntj5p9c6.mjs +0 -1
  903. package/dist/chunks/vim-1.1.26-n3dckyqd.mjs +0 -1
  904. package/dist/chunks/watchLoop-1.1.26-shv6pr8d.mjs +0 -13
  905. package/dist/chunks/watcher-1.1.26-bdahcrvk.mjs +0 -1
  906. package/dist/chunks/wiki-1.1.26-9q9evb0p.mjs +0 -132
  907. package/dist/chunks/workflows-1.1.26-pv1pmcm0.mjs +0 -1
  908. package/dist/chunks/worktree-1.1.26-k3z8qg36.mjs +0 -1
  909. package/dist/chunks/worktreeModeEnabled-1.1.26-c966pdm7.mjs +0 -1
  910. package/dist/chunks/wrapper-1.1.26-smg8ftbk.mjs +0 -7
  911. /package/dist/chunks/{cli-1.1.26-t8fgt5kw.mjs → cli-1.1.27-097en7tp.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.26-sgj6knz9.mjs → cli-1.1.27-5mn2zxpk.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.26-rbz29dt9.mjs → cli-1.1.27-f8njyndt.mjs} +0 -0
  914. /package/dist/chunks/{cli-1.1.26-nqygxkhw.mjs → cli-1.1.27-sgvc7y72.mjs} +0 -0
@@ -1,24 +0,0 @@
1
- import{_g as _Q,ah as iQ}from"./cli-1.1.26-vypd5zf6.mjs";import{Ri as WQ,Si as zX}from"./cli-1.1.26-jstehae2.mjs";import{EK as GQ,FK as KQ,GK as VQ,HK as OQ,IG as SJ,JG as YQ,JK as NQ,MK as IJ,NK as nJ,OK as rJ,PK as gQ,aq as ZQ,bq as uQ,dt as CQ,nt as qX,wK as JJ,xK as mJ}from"./cli-1.1.26-kvt0v6vq.mjs";import{RY as bJ,SY as aJ,dZ as BQ,fZ as ZX,iZ as FQ,jZ as $X,pZ as zJ,qZ as iJ}from"./cli-1.1.26-j0pfn318.mjs";import{A1 as CJ,B1 as oJ,E1 as N,G1 as M,Q1 as t,XZ as LJ,YZ as lJ,_1 as e,j2 as WJ,o0 as BJ,z1 as FJ}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as q,N4 as _,O4 as s}from"./cli-1.1.26-qf02kggq.mjs";import{P4 as AJ}from"./cli-1.1.26-kz0et72d.mjs";import{T9 as i,U9 as dJ}from"./cli-1.1.26-32vewh62.mjs";import{Fha as x,Nha as DJ}from"./cli-1.1.26-mvjefec1.mjs";import{Sha as f,Tha as pJ,Vha as n,Zha as uJ,cia as vJ,iia as kQ}from"./cli-1.1.26-79g0hfrb.mjs";import{Uja as UQ,Wja as aQ}from"./cli-1.1.26-pf85an2q.mjs";import{_ta as OJ,cua as qJ,dua as oQ}from"./cli-1.1.26-zb5hq3ry.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let A of HJ(H.agents))if(K+=1,!A.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((A)=>!A.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",A=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return A+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),A=eJ(J),W=Math.min(U,Math.max(0,A.length-1)),X=A[W],{done:I,total:w}=tJ(J),[S]=BJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=A.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[A,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...A.filter(($)=>$.runId!==J.runId)]:A).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((B)=>Math.max(0,B-1));else if(Y.downArrow)O(),S((B)=>Math.min(Math.max(0,P-1),B+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(AJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),A=J.instructions.trim();return`---
2
- ${H}
3
- ---
4
- ${A?`${A}
5
- `:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((A,W)=>({...A,name:W===U?K:A.name,handbackTo:A.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[A]=BJ(),W=FJ(A),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.26-fw01kwc9.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),B=C-1,u=X&&B>=0?X.steps[B]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
6
- `:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,B).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,B,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&B>=0)P((G)=>({...G,steps:qQ(G.steps,B,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,B,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,B,P]),jQ=E.useCallback(()=>{if(B<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==B)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,B,P]),gJ=E.useCallback((Q)=>{if(!X||B<0)return;let Z=B+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(B,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,B,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
7
- `):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(AJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,A]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{A(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((B)=>Math.max(0,B-1));else if(P.downArrow)w((B)=>Math.min(H.length-1,B+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let B=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,B?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
8
- name: ${J}
9
- description: What this workflow does
10
- steps:
11
- - name: explore
12
- agents: [explorer]
13
- - name: synthesize
14
- agents: [synthesizer]
15
- handbackTo: [explore]
16
- - name: done
17
- ---
18
- Describe the goal and any house rules for this workflow.
19
- `;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(AJ(),1)});function AQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return BQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[A,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
20
- <status>${c.status}</status>
21
- <summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
22
- <result>${$}</result>
23
- </task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:A==="running",inverse:A==="running",children:[" ","Running"," "]}),_(M,{bold:A==="library",inverse:A==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(A==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(AQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(AQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(AJ(),1)});
24
- export{NZ as dc,YX as ec};
@@ -1,2 +0,0 @@
1
- import{xc as t,yc as DJ}from"./cli-1.1.26-2msjf68r.mjs";import{si as r,ti as IJ}from"./cli-1.1.26-v0vv0v6c.mjs";import{Az as c,Bz as MJ,Hx as XJ,IH as s,IS as h,Im as d,ME as YJ,MH as yJ,NH as l,Nm as _J,OH as TJ,TE as jJ,TO as $J,UE as PJ,Ym as m,ZE as o,_E as xJ,_j as p,cn as wJ,jG as a,jo as JJ,kG as LJ,lU as bJ,sm as g,vm as UJ}from"./cli-1.1.26-kvt0v6vq.mjs";import{mW as u,nW as f,yW as BJ}from"./cli-1.1.26-2s2gpj0g.mjs";import{O7 as QJ}from"./cli-1.1.26-tgtv1jp3.mjs";import{Fha as U,Iea as I,Nha as k,Uea as D,Vea as zJ,aba as KJ,wha as A,xha as NJ}from"./cli-1.1.26-mvjefec1.mjs";import{Xia as GJ}from"./cli-1.1.26-chwpygff.mjs";import{Ika as b,Lka as C}from"./cli-1.1.26-n0thzakv.mjs";import{Bla as VJ,Lla as y,Ola as WJ,tla as qJ,xla as W}from"./cli-1.1.26-nr4x1ay3.mjs";import{qma as e}from"./cli-1.1.26-7ssnr221.mjs";import{Ema as ZJ,tma as _}from"./cli-1.1.26-dyyg0r9f.mjs";import{_pa as F,hsa as S,ppa as H}from"./cli-1.1.26-4aztw2ex.mjs";import{$ta as CJ}from"./cli-1.1.26-zb5hq3ry.mjs";xJ();IJ();S();GJ();C();KJ();h();QJ();qJ();$J();JJ();k();e();h();XJ();YJ();function j(){}S();C();NJ();WJ();ZJ();VJ();MJ();k();LJ();_J();bJ();TJ();BJ();zJ();wJ();UJ();import{join as Z}from"path";var AJ=30;function N(){let q=((I()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function i(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function vJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function P(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(vJ(K.name)<J)if(await W().unlink(Z(X,K.name)),q)$.messages++;else $.errors++}catch(Y){U(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")U(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await P(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Q)=>Q.isDirectory()&&Q.name.startsWith("mcp-logs-")).map((Q)=>Z($,Q.name));for(let Q of Y)G=i(G,await P(Q,J,!0)),await V(Q,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")U(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function FJ(){let X=N(),J={messages:0,errors:0},q=p(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Z(q,K.name),Q;try{Q=await $.readdir(Y)}catch{J.errors++;continue}for(let z of Q)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await w(Z(Y,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Z(Y,z.name),B=Z(L,m),O;try{O=await $.readdir(B)}catch{await V(L,$);continue}for(let M of O)if(M.isFile())try{if(await w(Z(B,M.name),X,$))J.messages++}catch{J.errors++}else if(M.isDirectory()){let T=Z(B,M.name),R;try{R=await $.readdir(T)}catch{continue}for(let E of R){if(!E.isFile())continue;try{if(await w(Z(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(B,$),await V(L,$)}await V(Y,$)}return J}async function x(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Q of Y){if(!Q.isFile()||!Q.name.endsWith(J))continue;try{if(await w(Z(X,Q.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function OJ(){let X=d(),J=await x(X,".md"),q=Z(_(),"plans");if(q!==X){let $=await x(q,".md");return i(J,$)}return J}async function RJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));await Promise.all(Y.map(async(Q)=>{try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){U($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));for(let Q of Y)try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){U($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Z(_(),"tasks"),G=f(u()),K;try{K=await q.readdir($)}catch{return J}for(let Y of K){if(!Y.isDirectory()||Y.name===G)continue;let Q=Z($,Y.name);try{if(await hJ(Q,q)<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){U($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Z(X,G.name));if(K>q)q=K}catch{}}return q}async function SJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Z(_(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Z($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function n(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){y("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await FJ(),await OJ(),await RJ(),await EJ(),await kJ(),await SJ(),await c(),await a(N());let J=await g(N());if(J>0)b("",{removed:J})}yJ();DJ();var pJ=(PJ(),CJ(jJ));var v=600000;function mX(){r(),j(),pJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await n();if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}await s()}setTimeout(J,v).unref()}
2
- export{mX as Ka};
@@ -1,4 +0,0 @@
1
- import{LS as UJ,OL as DJ,PL as BJ,QL as lJ,iT as jJ,jT as $V,kp as IJ,mp as pJ,uj as cJ}from"./cli-1.1.26-kvt0v6vq.mjs";import{Caa as qJ,Fha as G,Gaa as gJ,Iea as m,Mfa as YJ,Nha as dJ,S$ as WJ,Vea as uJ,X$ as l,fga as hJ,taa as mJ,w$ as p,x$ as fJ}from"./cli-1.1.26-mvjefec1.mjs";import{Uja as U,Wja as PJ}from"./cli-1.1.26-pf85an2q.mjs";import{Ika as f,Lka as SJ}from"./cli-1.1.26-n0thzakv.mjs";import{Bla as bJ,Lla as Q,Ola as kJ,xla as VJ}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as JJ,qma as yJ}from"./cli-1.1.26-7ssnr221.mjs";import{eoa as AJ,foa as zJ}from"./cli-1.1.26-4aztw2ex.mjs";import{_ta as wJ,cua as _J}from"./cli-1.1.26-zb5hq3ry.mjs";class c{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],q=-1/0,{paths:I,lowerPaths:A,charBits:F,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((F[M]&$)!==$)continue;let B=Z?I[M]:A[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let N=1;N<Y;N++){if(E=B.indexOf(X[N],h+1),E===-1)continue J;y[N]=E;let K=E-h-1;if(K===0)u+=4;else C+=3+K*1;h=E}if(H.length===W&&_+u-C<=q)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=HJ(S,y[N],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((N,K)=>N.fuzzScore-K.fuzzScore),q=H[0].fuzzScore}else if(T>q){let N=0,K=H.length;while(N<K){let d=N+K>>1;if(H[d].fuzzScore<T)N=d+1;else K=d}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!x)x=new c;return x}function vV(){x=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function FJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!x||L.length===0)return;let W=await KJ(J),Z=[...L,...$J,...XJ,...J,...W],V=FJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await x.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=xJ.default(),_=!1,H=X.flatMap((A)=>Y.map((F)=>O.join(A,F))),q=await Promise.all(H.map((A)=>V.readFile(A,{encoding:"utf8"}).catch(()=>null)));for(let[A,F]of q.entries()){if(F===null)continue;$.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await p(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
- `).filter(Boolean),H=OJ(_,V,Y),q=await EJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=p(l(),A,{timeout:1e4,cwd:V}).then(async(j)=>{if(F!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
- `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function KJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],q=await KJ(H);XJ=q;let I=[...q,...H],A=FJ(I);if(A!==r)await W.loadFromFileListAsync(I).done,r=A,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function NJ(){if(v)return;let J=sJ();if(x){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return NJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;NJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=x?VV(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var xJ,x=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();pJ();uJ();zJ();xJ=wJ(cJ(),1);ZJ=AJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
- export{c as Ai,MJ as Bi,jV as Ci,vV as Di,RV as Ei,GV as Fi,NJ as Gi,CV as Hi,LV as Ii,ZV as Ji};
@@ -1,2 +0,0 @@
1
- import{KI as U,LI as w}from"./cli-1.1.26-kvt0v6vq.mjs";import{E1 as N,G1 as O,f0 as f,j2 as k}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as M,N4 as H,O4 as R}from"./cli-1.1.26-qf02kggq.mjs";import{_ta as Y,cua as Z}from"./cli-1.1.26-zb5hq3ry.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
2
- export{_ as dh,A as eh};
@@ -1,2 +0,0 @@
1
- import{oo as T,po as Cq,vy as Pq,zy as uq}from"./cli-1.1.26-kvt0v6vq.mjs";import{IZ as Uq,JZ as Iq,MZ as kq}from"./cli-1.1.26-h8pwf3e5.mjs";import{E1 as L,G1 as O,f0 as aq,j2 as hq}from"./cli-1.1.26-nv2mgz6h.mjs";import{M4 as J,N4 as Q,O4 as vq}from"./cli-1.1.26-qf02kggq.mjs";import{E6 as bq,F6 as Mq,Y6 as Sq}from"./cli-1.1.26-tgtv1jp3.mjs";import{Mfa as Rq,fga as fq,rca as Nq,tca as Bq,vaa as Xq,waa as jq}from"./cli-1.1.26-mvjefec1.mjs";import{Xia as nq}from"./cli-1.1.26-chwpygff.mjs";import{_ta as yq,cua as Gq}from"./cli-1.1.26-zb5hq3ry.mjs";function dq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function eq(Y,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return Y.length>0&&!/^\s/.test(Y)&&!Y.startsWith("\x1B")}var Wq=Gq(()=>{kq();fq();Bq()});function V(Y){return Y.replace(/\+/g," + ")}function LH(Y){let q=Eq.c(99),{dimColor:H,fixedWidth:Dq,gap:x,paddingX:l}=Y,m=T("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=V(m),q[0]=m,q[1]=p;else p=q[1];let d=p,e=T("app:toggleTodos","Global","ctrl+t"),B;if(q[2]!==e)B=V(e),q[2]=e,q[3]=B;else B=q[3];let s=B,i=T("chat:undo","Chat","ctrl+_"),f;if(q[4]!==i)f=V(i),q[4]=i,q[5]=f;else f=q[5];let r=f,$=T("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=V($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=T("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=V(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Hq=T("chat:modelPicker","Chat","alt+p"),n;if(q[10]!==Hq)n=V(Hq),q[10]=Hq,q[11]=n;else n=q[11];let Jq=n,Lq=T("chat:fastMode","Chat","alt+o"),j;if(q[12]!==Lq)j=V(Lq),q[12]=Lq,q[13]=j;else j=q[13];let Oq=j,Qq=T("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Qq)S=V(Qq),q[14]=Qq,q[15]=S;else S=q[15];let Tq=S,Vq=T("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Vq)a=V(Vq),q[16]=Vq,q[17]=a;else a=q[17];let Fq=a,Yq=T("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Yq)h=V(Yq),q[18]=Yq,q[19]=h;else h=q[19];let Zq=h,gq=V(T("chat:increaseEffort","Chat","shift+right")),_q=V(T("chat:openDiff","Chat","ctrl+g")),pq=V(T("chat:openExplorer","Chat","ctrl+e")),C;if(q[20]!==H||q[21]!==Fq)C=null,q[20]=H,q[21]=Fq,q[22]=C;else C=q[22];let wq=C,zq=Dq?28:void 0,Z;if(q[23]!==H)Z=J(L,{children:J(O,{dimColor:H,children:"! for bash mode"})}),q[23]=H,q[24]=Z;else Z=q[24];let w;if(q[25]!==H)w=J(L,{children:J(O,{dimColor:H,children:"/ for commands"})}),q[25]=H,q[26]=w;else w=q[26];let z;if(q[27]!==H)z=J(L,{children:J(O,{dimColor:H,children:"@ for file paths"})}),q[27]=H,q[28]=z;else z=q[28];let A;if(q[29]!==H)A=J(L,{children:J(O,{dimColor:H,children:"& for background"})}),q[29]=H,q[30]=A;else A=q[30];let D;if(q[31]!==H)D=J(L,{children:J(O,{dimColor:H,children:"/btw for side question"})}),q[31]=H,q[32]=D;else D=q[32];let F;if(q[33]!==zq||q[34]!==Z||q[35]!==w||q[36]!==z||q[37]!==A||q[38]!==D)F=Q(L,{flexDirection:"column",width:zq,children:[Z,w,z,A,D,J(L,{children:Q(O,{dimColor:H,children:[pq," for file explorer"]})}),J(L,{children:Q(O,{dimColor:H,children:[_q," for diff reviewer"]})})]}),q[33]=zq,q[34]=Z,q[35]=w,q[36]=z,q[37]=A,q[38]=D,q[39]=F;else F=q[39];let Aq=Dq?35:void 0,G;if(q[40]!==H)G=J(L,{children:J(O,{dimColor:H,children:"double tap esc to clear input"})}),q[40]=H,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==H)N=J(L,{children:Q(O,{dimColor:H,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=H,q[44]=N;else N=q[44];let R;if(q[45]!==H||q[46]!==d)R=J(L,{children:Q(O,{dimColor:H,children:[d," for verbose output"]})}),q[45]=H,q[46]=d,q[47]=R;else R=q[47];let U;if(q[48]!==H||q[49]!==s)U=J(L,{children:Q(O,{dimColor:H,children:[s," to toggle tasks"]})}),q[48]=H,q[49]=s,q[50]=U;else U=q[50];let u;if(q[51]===Symbol.for("react.memo_cache_sentinel"))u=Kq(),q[51]=u;else u=q[51];let I;if(q[52]!==H)I=J(L,{children:J(O,{dimColor:H,children:u})}),q[52]=H,q[53]=I;else I=q[53];let K;if(q[54]!==Aq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==wq)K=Q(L,{flexDirection:"column",width:Aq,children:[G,N,R,U,wq,I]}),q[54]=Aq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=wq,q[61]=K;else K=q[61];let W;if(q[62]!==H||q[63]!==r)W=J(L,{children:Q(O,{dimColor:H,children:[r," to undo"]})}),q[62]=H,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==H)v=Xq()!=="windows"&&J(L,{children:J(O,{dimColor:H,children:"ctrl + z to suspend"})}),q[65]=H,q[66]=v;else v=q[66];let X;if(q[67]!==H||q[68]!==Zq)X=J(L,{children:Q(O,{dimColor:H,children:[Zq," to paste images"]})}),q[67]=H,q[68]=Zq,q[69]=X;else X=q[69];let b;if(q[70]!==H||q[71]!==Jq)b=J(L,{children:Q(O,{dimColor:H,children:[Jq," to switch model"]})}),q[70]=H,q[71]=Jq,q[72]=b;else b=q[72];let M;if(q[73]!==H||q[74]!==Oq)M=bq()&&Mq()&&J(L,{children:Q(O,{dimColor:H,children:[Oq," to toggle fast mode"]})}),q[73]=H,q[74]=Oq,q[75]=M;else M=q[75];let P;if(q[76]!==H||q[77]!==o)P=J(L,{children:Q(O,{dimColor:H,children:[o," to stash prompt"]})}),q[76]=H,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==H||q[80]!==Tq)E=J(L,{children:Q(O,{dimColor:H,children:[Tq," to edit in $EDITOR"]})}),q[79]=H,q[80]=Tq,q[81]=E;else E=q[81];let g;if(q[82]!==H)g=Pq()&&J(L,{children:J(O,{dimColor:H,children:"/keybindings to customize"})}),q[82]=H,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=Q(L,{flexDirection:"column",children:[W,v,X,b,J(L,{children:Q(O,{dimColor:H,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let c;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)c=Q(L,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=c;else c=q[98];return c}var Eq;var cq=Gq(()=>{hq();jq();uq();Cq();nq();Sq();Wq();vq();Eq=yq(aq(),1)});
2
- export{dq as Uf,eq as Vf,Wq as Wf,LH as Xf,cq as Yf};
@@ -1,2 +0,0 @@
1
- import{c4 as y,g4 as V}from"./cli-1.1.26-tcbtd5f6.mjs";import{rca as q,tca as Q,v$ as p,x$ as K}from"./cli-1.1.26-mvjefec1.mjs";import{cua as J}from"./cli-1.1.26-zb5hq3ry.mjs";function g(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function F(){return W||null}async function P(){return(await p(y,["-V"])).code===0}function l(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function w(){return(await p(Y,["session","list"])).code===0}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
2
- export{g as T3,D as U3,F as V3,P as W3,l as X3,Y as Y3,w as Z3,Z as _3};
@@ -1,2 +0,0 @@
1
- import{m5 as M,n5 as D}from"./cli-1.1.26-ta82bxzt.mjs";import{Dga as l,Gga as L,Hga as c,kga as F,qha as S,sga as _,tha as p}from"./cli-1.1.26-mvjefec1.mjs";import{Ema as m,yma as Y}from"./cli-1.1.26-dyyg0r9f.mjs";import{cua as B}from"./cli-1.1.26-zb5hq3ry.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:T}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||E}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,j=J?.scope?.trim()||C,$=j===C?[j]:[j,C],z="Device code request failed.",y=b(R(J?.domain));for(let V of $){let W=await Z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let x=await W.text().catch(()=>"");z=`Device code request failed: ${W.status} ${x}`;let k=/invalid_scope/i.test(x);if(V!==C&&k)continue;throw new q(z)}let X=await W.json(),N=X.device_code,K=X.user_code,w=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof w!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:w,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(z)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let j=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,z=Q?.fetchImpl??fetch,y=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(j*1000);continue}if(N==="slow_down"){j=typeof X.interval==="number"?X.interval:j+5,await P(j*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},j=Z.fetchImpl??fetch,$=h(R(Z.domain)),z=await j($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!z.ok){let K=await z.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${z.status} ${K}`)}let y=await z.json(),V=y.token,W=y.expires_at,X=y.refresh_in,N=y.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var E="Iv1.b507a08c87ecfe98",T="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{D();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function g(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),z=$+"=".repeat((4-$.length%4)%4),y=Buffer.from(z,"base64").toString("utf8"),V=JSON.parse(y);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function jJ(){if(!g())return;if(Y())return;if(a())return}async function yJ(){if(!g())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,j=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!j&&!$)return!1;if((j?d(j):"expired")==="valid")return!1;if(!$)return!1;let y=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:y});if(!n(V.token,$,y).success)return!1;let X=F().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)_(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let j=J.trim();if(!j)return{success:!1,warning:"Token is empty."};let $=L(),z=$.read()||{},y=z[U],V=Q?.trim(),W={accessToken:j};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(y?.oauthAccessToken?.trim())W.oauthAccessToken=y.oauthAccessToken.trim();let N=Z?.trim()||y?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...z,[U]:W};return $.update(X)}function zJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
- export{R as k3,r as l3,o as m3,e as n3,I as o3,O as p3,U as q3,VJ as r3,a as s3,WJ as t3,jJ as u3,yJ as v3,n as w3,zJ as x3,s as y3};
@@ -1,4 +0,0 @@
1
- import{Zta as Z}from"./cli-1.1.26-qw49rw3y.mjs";import{aua as Y,dua as O}from"./cli-1.1.26-zb5hq3ry.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
- export{ye as Sta};
@@ -1,6 +0,0 @@
1
- import{cua as b}from"./cli-1.1.26-zb5hq3ry.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 R3,oq as S3};
@@ -1,2 +0,0 @@
1
- import{cua as C}from"./cli-1.1.26-zb5hq3ry.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
2
- export{O as Cia,Q as Dia,R as Eia,S as Fia,T as Gia,U as Hia,W as Iia,X as Jia,Y as Kia,Z as Lia,$ as Mia,v as Nia,w as Oia,P as Pia,B as Qia,D as Ria,h as Sia,N as Tia,m as Uia,c as Via,F as Wia,J as Xia};
@@ -1,4 +0,0 @@
1
- import{Ae as c,Ee as Eq}from"./cli-1.1.26-txmxmpj4.mjs";import{$M as Lq,BM as n,Cp as t,Ep as Mq,HM as e,IM as P,Ip as i,Kp as Rq,MM as jq,NM as O,OM as qq,Op as A,QM as I,Qp as D,RM as Gq,Rp as Aq,Sp as h,Tp as S,Up as Fq,XM as Cq,_M as b,cN as Hq,cu as l,dN as Jq,du as wq,fM as v,fN as vq,gM as m,gN as y,hN as Qq,iM as Oq,iN as Xq,jN as Yq,kN as $q,lN as d,oN as Dq,yp as s,zp as Tq}from"./cli-1.1.26-kvt0v6vq.mjs";import{Dea as F,Fea as L,Fha as a,Nha as Bq,Vea as _q,_da as V,gea as Kq}from"./cli-1.1.26-mvjefec1.mjs";import{Bla as xq,xla as p}from"./cli-1.1.26-nr4x1ay3.mjs";import{ima as o,lma as N,qma as Wq}from"./cli-1.1.26-7ssnr221.mjs";import{hsa as Uq,ooa as f}from"./cli-1.1.26-4aztw2ex.mjs";import{cua as Zq}from"./cli-1.1.26-zb5hq3ry.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(U){a(o(U));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,x=`${Z.name}@${Y}`,Q=await Jq({pluginId:x,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${x} (scope: ${H})${Q.depNote}`,pluginId:x,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),x=F(Z),Q,$;if(z)Q=Object.keys(x?.enabledPlugins??{}).find((W)=>W===q||W===z.name||W.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let W=yq(q);if(!W)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=W.pluginId,$=W.pluginName}let B=zq(H),U=O().plugins[Q],M=U?.find((W)=>W.scope===H&&W.projectPath===B);if(!M){let{scope:W}=kq(Q);if(W!==H&&U&&U.length>0){if(W==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${W} scope, not ${H}. Use --scope ${W} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...x?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),x=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&x===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?x===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:U}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(U)return{success:!1,message:`Failed to ${X} plugin: ${U.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function UG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),x=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let U=await Yq(G.source,{manifest:{name:G.name}});Q=U.path,B=!0,K=U.gitCommitSha,$=await b(q,G.source,U.manifest,U.path,G.version,U.gitCommitSha)}else{let U;try{U=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=U.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let U=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===U||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:x,alreadyUpToDate:!0,scope:Y};U=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,U,$,K),_&&_!==U){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((W)=>W.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${x||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:x,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{Uq();Rq();Wq();xq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as ne,HG as oe,JG as pe,QG as qe,kq as re,XG as se,YG as te,$G as ue,zG as ve,ZG as we,UG as xe,hq as ye};
@@ -1,2 +0,0 @@
1
- import{D$ as X,H$ as k,Z$ as Y,taa as I}from"./cli-1.1.26-mvjefec1.mjs";import{iia as $}from"./cli-1.1.26-79g0hfrb.mjs";import{cua as Z}from"./cli-1.1.26-zb5hq3ry.mjs";import{stat as M}from"fs/promises";import{join as Q,sep as U}from"path";async function b(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await M(J);return q}catch{return}}var W=Z(()=>{$();k();I()});
2
- export{b as Kb,W as Lb};
@@ -1,2 +0,0 @@
1
- import{f5 as N,k5 as $}from"./cli-1.1.26-xrb5tnj3.mjs";import{Z8 as M,d6 as L,g6 as Y,x9 as Z}from"./cli-1.1.26-tgtv1jp3.mjs";import{Fha as Q,Nha as X}from"./cli-1.1.26-mvjefec1.mjs";import{Gka as J,Hka as V}from"./cli-1.1.26-hk66nk4j.mjs";import{ima as P,qma as S}from"./cli-1.1.26-7ssnr221.mjs";import{Cta as W,kta as K}from"./cli-1.1.26-hxty6b5t.mjs";import{cua as R}from"./cli-1.1.26-zb5hq3ry.mjs";async function f(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
- export{f as qY,j as rY,b as sY};
@@ -1,2 +0,0 @@
1
- import{vb as c}from"./cli-1.1.26-m2ajjr1n.mjs";import{Ac as v,Ec as Wq}from"./cli-1.1.26-krj2sk8f.mjs";import{Hc as I,Ic as S,Jc as $,Kc as Xq}from"./cli-1.1.26-etwfcg1g.mjs";import{Fp as C,Gz as A,Hp as r,Hz as Bq,Lz as _,Nz as Gq,VL as f,WL as Tq,Zu as N,_u as e,fG as E,gG as Qq,iE as M,ky as L,lN as P,ly as h,ny as qq,oE as Jq,oN as Vq}from"./cli-1.1.26-kvt0v6vq.mjs";import{P4 as s}from"./cli-1.1.26-kz0et72d.mjs";import{Fha as F,Nha as a,_aa as w,aba as t,q$ as D,s$ as n}from"./cli-1.1.26-mvjefec1.mjs";import{Ika as x,Lka as d}from"./cli-1.1.26-n0thzakv.mjs";import{Lla as j,Ola as o}from"./cli-1.1.26-nr4x1ay3.mjs";import{ima as y,qma as l}from"./cli-1.1.26-7ssnr221.mjs";import{_ta as p}from"./cli-1.1.26-zb5hq3ry.mjs";Qq();d();Gq();qq();Xq();t();o();n();l();a();e();Tq();Jq();Bq();r();var V=p(s(),1);Wq();Vq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=E(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await P();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await f(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await M()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};x("",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{hq as ub};
@@ -1,2 +0,0 @@
1
- import{Gsa as M,Hsa as Y}from"./cli-1.1.26-jz95bmqy.mjs";import{cua as W}from"./cli-1.1.26-zb5hq3ry.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDIN_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
- export{$ as rma,N as sma,X as tma,_ as uma,j as vma,U as wma,I as xma,S as yma,T as zma,c as Ama,L as Bma,w as Cma,z as Dma,k as Ema};
@@ -1,3 +0,0 @@
1
- import{e3 as S,f3 as D,j3 as N}from"./cli-1.1.26-g3eqp15d.mjs";import{Fha as X,Jfa as B,Mfa as O,Nha as E,ffa as H,fga as d,gfa as P}from"./cli-1.1.26-mvjefec1.mjs";import{ima as U,qma as f}from"./cli-1.1.26-7ssnr221.mjs";import{Ema as b,tma as W}from"./cli-1.1.26-dyyg0r9f.mjs";import{Zpa as T,hsa as M}from"./cli-1.1.26-4aztw2ex.mjs";import{Cta as y,kta as j}from"./cli-1.1.26-hxty6b5t.mjs";import{_ta as R,cua as p}from"./cli-1.1.26-zb5hq3ry.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
- `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
3
- export{zq as Nf,Jq as Of,C as Pf,h as Qf,Kq as Rf,Qq as Sf,c as Tf};
@@ -1,2 +0,0 @@
1
- import{Jc as x,Kc as o}from"./cli-1.1.26-etwfcg1g.mjs";import{Av as v,Fp as Y,Gz as $,Hp as g,Hz as d,KA as K,Lz as y,MA as m,Nz as u,VL as O,WL as a,fM as R,iE as M,iM as i,lN as W,oE as l,oN as t,uv as Z}from"./cli-1.1.26-kvt0v6vq.mjs";import{Fha as X,Nha as h}from"./cli-1.1.26-mvjefec1.mjs";import{Lla as I,Ola as c}from"./cli-1.1.26-nr4x1ay3.mjs";import{jma as V,qma as f}from"./cli-1.1.26-7ssnr221.mjs";import{hsa as _,ooa as U}from"./cli-1.1.26-4aztw2ex.mjs";import{cua as C}from"./cli-1.1.26-zb5hq3ry.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
2
- export{Lj as Fc,p as Gc};