@claudiolabs/claudin 1.1.23 → 1.1.25

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 (912) hide show
  1. package/dist/chunks/AgentTool-1.1.25-wemjscyz.mjs +1 -0
  2. package/dist/chunks/App-1.1.25-k5h3kma3.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.25-z8vqxm93.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.25-qmr6qf3r.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.25-78m4mvsv.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.25-htk8qebw.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.25-8evt7epy.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.25-3nbcvm6d.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.25-7n5581yw.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.25-zvcm13vd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.25-jazr0v5h.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.25-tb139x32.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.25-h27j1v12.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.25-7gxkqb1q.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.25-21kzry6a.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.25-z4ps8td0.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.25-dekvcwna.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.25-x77jymbq.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.25-z1n7c0cp.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.25-ye8czpf8.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.25-qy9dcwtf.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.25-se513tcw.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.25-shafx13k.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.25-q9jqjghn.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.25-c9b16qp6.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.25-4x0h3a7n.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.25-9z82gazg.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.25-3eark7aj.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.25-88qbcwen.mjs +1 -0
  30. package/dist/chunks/agents-1.1.25-58s95cy7.mjs +110 -0
  31. package/dist/chunks/agents-1.1.25-rprb9rf9.mjs +3 -0
  32. package/dist/chunks/api-1.1.25-ceedtxx2.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.25-dtyww79s.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.25-12s5z3q2.mjs +1 -0
  35. package/dist/chunks/auth-1.1.25-cd9y34xe.mjs +1 -0
  36. package/dist/chunks/auth-1.1.25-gphkwwnp.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.25-zdd4g2rn.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.25-17zj185q.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.25-tb3pf0cw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.25-mtctkars.mjs +1 -0
  41. package/dist/chunks/branch-1.1.25-ytfahhwq.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.25-kkjx4g4j.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.25-9h63taqc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.25-yq7hv80q.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.25-rmcdgp77.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.25-x3jjj2ek.mjs +1 -0
  47. package/dist/chunks/btw-1.1.25-xdh8rhdz.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.25-aj90p6ww.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.25-4wztx76s.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.25-9bd12my6.mjs +4 -0
  51. package/dist/chunks/caches-1.1.25-2ewrwm5x.mjs +1 -0
  52. package/dist/chunks/cd-1.1.25-9yhaw8rp.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.25-bw8arps4.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.25-f621m88g.mjs +1 -0
  55. package/dist/chunks/clear-1.1.25-jk3ztva0.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.25-7jtejen6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.25-0m4pyzaf.mjs +2 -0
  58. package/dist/chunks/cli-1.1.25-0q6rqkec.mjs +58 -0
  59. package/dist/chunks/cli-1.1.25-12b1rzfj.mjs +2 -0
  60. package/dist/chunks/cli-1.1.25-14jerc0x.mjs +2 -0
  61. package/dist/chunks/cli-1.1.25-1c4t0f2p.mjs +2 -0
  62. package/dist/chunks/cli-1.1.25-1c633j9v.mjs +2 -0
  63. package/dist/chunks/cli-1.1.25-1gz0w81n.mjs +2 -0
  64. package/dist/chunks/cli-1.1.25-1hx796kk.mjs +2 -0
  65. package/dist/chunks/cli-1.1.25-1s7ketx0.mjs +2 -0
  66. package/dist/chunks/cli-1.1.25-1sf51thg.mjs +3 -0
  67. package/dist/chunks/cli-1.1.25-221zdn3h.mjs +4 -0
  68. package/dist/chunks/cli-1.1.25-24f6az0s.mjs +2 -0
  69. package/dist/chunks/cli-1.1.25-2gjxmbsj.mjs +2 -0
  70. package/dist/chunks/cli-1.1.25-2gtabky3.mjs +60 -0
  71. package/dist/chunks/cli-1.1.25-2wd0qj2d.mjs +2 -0
  72. package/dist/chunks/cli-1.1.25-2we0778z.mjs +2 -0
  73. package/dist/chunks/cli-1.1.25-2zepg15b.mjs +2 -0
  74. package/dist/chunks/cli-1.1.25-32br2csx.mjs +2 -0
  75. package/dist/chunks/cli-1.1.25-32qfxqyg.mjs +2 -0
  76. package/dist/chunks/cli-1.1.25-348yqf3d.mjs +2 -0
  77. package/dist/chunks/cli-1.1.25-37rs38eq.mjs +2 -0
  78. package/dist/chunks/cli-1.1.25-3dd0c7xd.mjs +4 -0
  79. package/dist/chunks/cli-1.1.25-3ev2q4bm.mjs +4 -0
  80. package/dist/chunks/cli-1.1.25-3hnrfkxc.mjs +2 -0
  81. package/dist/chunks/cli-1.1.25-3nhwpx0q.mjs +3 -0
  82. package/dist/chunks/cli-1.1.25-3nm4kgwz.mjs +2 -0
  83. package/dist/chunks/cli-1.1.25-3qj0n5y0.mjs +21 -0
  84. package/dist/chunks/cli-1.1.25-3tnd3xyt.mjs +3 -0
  85. package/dist/chunks/cli-1.1.25-3v5624jg.mjs +2 -0
  86. package/dist/chunks/cli-1.1.25-3vtsr7s2.mjs +2 -0
  87. package/dist/chunks/cli-1.1.25-45mx738r.mjs +3 -0
  88. package/dist/chunks/cli-1.1.25-4cgvw7e3.mjs +2 -0
  89. package/dist/chunks/cli-1.1.25-4d1zk1ar.mjs +12 -0
  90. package/dist/chunks/cli-1.1.25-4h4yaa4x.mjs +2 -0
  91. package/dist/chunks/cli-1.1.25-4yjtqfa0.mjs +2 -0
  92. package/dist/chunks/cli-1.1.25-54q2vnck.mjs +2 -0
  93. package/dist/chunks/cli-1.1.25-5f8d8bx1.mjs +2 -0
  94. package/dist/chunks/cli-1.1.25-5g78avtr.mjs +2 -0
  95. package/dist/chunks/cli-1.1.25-5n21xpvc.mjs +16 -0
  96. package/dist/chunks/cli-1.1.25-5qknjpxc.mjs +2 -0
  97. package/dist/chunks/cli-1.1.25-5r495hn7.mjs +4 -0
  98. package/dist/chunks/cli-1.1.25-5s22yhkx.mjs +3 -0
  99. package/dist/chunks/cli-1.1.25-5s65r14h.mjs +2 -0
  100. package/dist/chunks/cli-1.1.25-5ye3ascx.mjs +2 -0
  101. package/dist/chunks/cli-1.1.25-639mzh6g.mjs +2 -0
  102. package/dist/chunks/cli-1.1.25-63kkff0g.mjs +2 -0
  103. package/dist/chunks/cli-1.1.25-683ggh08.mjs +2 -0
  104. package/dist/chunks/cli-1.1.25-687hxtdb.mjs +1 -0
  105. package/dist/chunks/cli-1.1.25-69shxnnp.mjs +2 -0
  106. package/dist/chunks/cli-1.1.25-6bb29bw7.mjs +2 -0
  107. package/dist/chunks/cli-1.1.25-6panntay.mjs +17 -0
  108. package/dist/chunks/cli-1.1.25-6pthkv1w.mjs +4 -0
  109. package/dist/chunks/cli-1.1.25-6r6r7rep.mjs +4 -0
  110. package/dist/chunks/cli-1.1.25-6t9phfap.mjs +2 -0
  111. package/dist/chunks/cli-1.1.25-6vwz5vma.mjs +2 -0
  112. package/dist/chunks/cli-1.1.25-6wcggeyr.mjs +25 -0
  113. package/dist/chunks/cli-1.1.25-6wjrv08c.mjs +6 -0
  114. package/dist/chunks/cli-1.1.25-746dypse.mjs +2 -0
  115. package/dist/chunks/cli-1.1.25-74ys7518.mjs +42 -0
  116. package/dist/chunks/cli-1.1.25-7d3fdbq5.mjs +17 -0
  117. package/dist/chunks/cli-1.1.25-7d7cptk6.mjs +10 -0
  118. package/dist/chunks/cli-1.1.25-7qert3s4.mjs +2 -0
  119. package/dist/chunks/cli-1.1.25-7qxwpfwh.mjs +2 -0
  120. package/dist/chunks/cli-1.1.25-7wsdhgky.mjs +2 -0
  121. package/dist/chunks/cli-1.1.25-82ht7pxh.mjs +2 -0
  122. package/dist/chunks/cli-1.1.25-8byrahks.mjs +2 -0
  123. package/dist/chunks/cli-1.1.25-8eznzbsa.mjs +5 -0
  124. package/dist/chunks/cli-1.1.25-8hv1dfrb.mjs +2 -0
  125. package/dist/chunks/cli-1.1.25-8k2bszzr.mjs +2 -0
  126. package/dist/chunks/cli-1.1.25-8v1gw0tw.mjs +9 -0
  127. package/dist/chunks/cli-1.1.25-8vqmp6g5.mjs +20 -0
  128. package/dist/chunks/cli-1.1.25-9f27xm90.mjs +25 -0
  129. package/dist/chunks/cli-1.1.25-9grz07r4.mjs +34 -0
  130. package/dist/chunks/cli-1.1.25-9m237kwt.mjs +2 -0
  131. package/dist/chunks/cli-1.1.25-9xqq9dsw.mjs +3 -0
  132. package/dist/chunks/cli-1.1.25-9yhnadye.mjs +24 -0
  133. package/dist/chunks/cli-1.1.25-9z7tyxc4.mjs +2 -0
  134. package/dist/chunks/cli-1.1.25-a0zejb5c.mjs +2 -0
  135. package/dist/chunks/cli-1.1.25-am98khq7.mjs +2 -0
  136. package/dist/chunks/cli-1.1.25-anhj1nnt.mjs +2 -0
  137. package/dist/chunks/cli-1.1.25-anvsm1cs.mjs +2 -0
  138. package/dist/chunks/cli-1.1.25-b1hj5x42.mjs +2 -0
  139. package/dist/chunks/cli-1.1.25-ba3yrxg9.mjs +2 -0
  140. package/dist/chunks/cli-1.1.25-bmjvmtgk.mjs +2 -0
  141. package/dist/chunks/cli-1.1.25-bvg3kwg7.mjs +4 -0
  142. package/dist/chunks/cli-1.1.25-cc10r97z.mjs +2 -0
  143. package/dist/chunks/cli-1.1.25-cmsea0j8.mjs +15 -0
  144. package/dist/chunks/cli-1.1.25-csgmna38.mjs +2 -0
  145. package/dist/chunks/cli-1.1.25-ctfh8503.mjs +2 -0
  146. package/dist/chunks/cli-1.1.25-d029ezbm.mjs +2 -0
  147. package/dist/chunks/cli-1.1.25-d15hk64v.mjs +2 -0
  148. package/dist/chunks/cli-1.1.25-d6ybhba5.mjs +2 -0
  149. package/dist/chunks/cli-1.1.25-dc92c5gy.mjs +2 -0
  150. package/dist/chunks/cli-1.1.25-df9x7s0j.mjs +2 -0
  151. package/dist/chunks/cli-1.1.25-dn7m24cg.mjs +2 -0
  152. package/dist/chunks/cli-1.1.25-drtfsgw8.mjs +3 -0
  153. package/dist/chunks/cli-1.1.25-dw0mshd5.mjs +2 -0
  154. package/dist/chunks/cli-1.1.25-e2ng6vcx.mjs +2 -0
  155. package/dist/chunks/cli-1.1.25-ed14rf9g.mjs +2 -0
  156. package/dist/chunks/cli-1.1.25-eqtpax1f.mjs +6 -0
  157. package/dist/chunks/cli-1.1.25-etb23y0w.mjs +4 -0
  158. package/dist/chunks/cli-1.1.25-ex6f69yn.mjs +2 -0
  159. package/dist/chunks/cli-1.1.25-f424x1de.mjs +2 -0
  160. package/dist/chunks/cli-1.1.25-f57233sm.mjs +8 -0
  161. package/dist/chunks/cli-1.1.25-f5ag59tm.mjs +4 -0
  162. package/dist/chunks/cli-1.1.25-f6w108cp.mjs +6 -0
  163. package/dist/chunks/cli-1.1.25-f9pk1asa.mjs +7 -0
  164. package/dist/chunks/cli-1.1.25-fr1nw6bz.mjs +2 -0
  165. package/dist/chunks/cli-1.1.25-fwh7d55c.mjs +2 -0
  166. package/dist/chunks/cli-1.1.25-g6y71why.mjs +24 -0
  167. package/dist/chunks/cli-1.1.25-gba9rrnp.mjs +15 -0
  168. package/dist/chunks/cli-1.1.25-gezpvyzq.mjs +2 -0
  169. package/dist/chunks/cli-1.1.25-gm5mfwmy.mjs +2 -0
  170. package/dist/chunks/cli-1.1.25-gmvcd8bm.mjs +2 -0
  171. package/dist/chunks/cli-1.1.25-gnsqbh0h.mjs +2 -0
  172. package/dist/chunks/cli-1.1.25-gsngwhfp.mjs +2 -0
  173. package/dist/chunks/cli-1.1.25-gz32rhhs.mjs +2 -0
  174. package/dist/chunks/cli-1.1.25-h164y8f5.mjs +2 -0
  175. package/dist/chunks/cli-1.1.25-h6ag26rc.mjs +2 -0
  176. package/dist/chunks/cli-1.1.25-hdgk2770.mjs +2 -0
  177. package/dist/chunks/cli-1.1.25-hjvawqyb.mjs +2 -0
  178. package/dist/chunks/cli-1.1.25-hjwttff4.mjs +2 -0
  179. package/dist/chunks/cli-1.1.25-hpfkk20r.mjs +2 -0
  180. package/dist/chunks/cli-1.1.25-j6x483np.mjs +2 -0
  181. package/dist/chunks/cli-1.1.25-jaz67hdc.mjs +2 -0
  182. package/dist/chunks/cli-1.1.25-jk7skh2n.mjs +2 -0
  183. package/dist/chunks/cli-1.1.25-jmv6jw6b.mjs +2 -0
  184. package/dist/chunks/cli-1.1.25-jsn4we2f.mjs +2 -0
  185. package/dist/chunks/cli-1.1.25-k6kqfxnq.mjs +2 -0
  186. package/dist/chunks/cli-1.1.25-k6v3tvg9.mjs +2 -0
  187. package/dist/chunks/cli-1.1.25-k9qcf2mf.mjs +2 -0
  188. package/dist/chunks/cli-1.1.25-kdamwjt1.mjs +2 -0
  189. package/dist/chunks/cli-1.1.25-kn1yv4f6.mjs +2 -0
  190. package/dist/chunks/cli-1.1.25-kpah4ttt.mjs +2 -0
  191. package/dist/chunks/cli-1.1.25-kpv8j6wf.mjs +2 -0
  192. package/dist/chunks/cli-1.1.25-kvwevqsc.mjs +18 -0
  193. package/dist/chunks/cli-1.1.25-m0h0ddew.mjs +2 -0
  194. package/dist/chunks/cli-1.1.25-m86a8tmc.mjs +2 -0
  195. package/dist/chunks/cli-1.1.25-n10jmzvk.mjs +2 -0
  196. package/dist/chunks/cli-1.1.25-n5gb4kx8.mjs +2 -0
  197. package/dist/chunks/cli-1.1.25-n6df4vnz.mjs +2 -0
  198. package/dist/chunks/cli-1.1.25-nh2xj15f.mjs +2 -0
  199. package/dist/chunks/cli-1.1.25-njrez2x5.mjs +12 -0
  200. package/dist/chunks/cli-1.1.25-nmw9agm4.mjs +133 -0
  201. package/dist/chunks/cli-1.1.25-nmxbk4dt.mjs +2 -0
  202. package/dist/chunks/cli-1.1.25-np8863pb.mjs +3 -0
  203. package/dist/chunks/cli-1.1.25-ntfm6tbg.mjs +2 -0
  204. package/dist/chunks/cli-1.1.25-nwdtve8h.mjs +2 -0
  205. package/dist/chunks/cli-1.1.25-nxvqf4sh.mjs +2 -0
  206. package/dist/chunks/cli-1.1.25-p2kmhxd3.mjs +3 -0
  207. package/dist/chunks/cli-1.1.25-p9j8prqh.mjs +2 -0
  208. package/dist/chunks/cli-1.1.25-pcamey8m.mjs +2 -0
  209. package/dist/chunks/cli-1.1.25-peepax79.mjs +66 -0
  210. package/dist/chunks/cli-1.1.25-pgs0x971.mjs +50 -0
  211. package/dist/chunks/cli-1.1.25-px1h2b7d.mjs +2 -0
  212. package/dist/chunks/cli-1.1.25-pxq7zyjb.mjs +2 -0
  213. package/dist/chunks/cli-1.1.25-pzp73p0x.mjs +2 -0
  214. package/dist/chunks/cli-1.1.25-q257pczz.mjs +133 -0
  215. package/dist/chunks/cli-1.1.25-q5qj0wfa.mjs +18 -0
  216. package/dist/chunks/cli-1.1.25-q5tqh3tz.mjs +2 -0
  217. package/dist/chunks/cli-1.1.25-q88hb4qg.mjs +5459 -0
  218. package/dist/chunks/cli-1.1.25-qd1b1zr7.mjs +3 -0
  219. package/dist/chunks/cli-1.1.25-qd1q5w85.mjs +2 -0
  220. package/dist/chunks/cli-1.1.25-qgnyys4j.mjs +6 -0
  221. package/dist/chunks/cli-1.1.25-qp9j9ma3.mjs +24 -0
  222. package/dist/chunks/cli-1.1.25-qpb14xj4.mjs +2 -0
  223. package/dist/chunks/cli-1.1.25-qtjt3cq9.mjs +2 -0
  224. package/dist/chunks/cli-1.1.25-r0dwt4a0.mjs +2 -0
  225. package/dist/chunks/cli-1.1.25-r2a8d0xg.mjs +26 -0
  226. package/dist/chunks/cli-1.1.25-rbapdr02.mjs +2 -0
  227. package/dist/chunks/cli-1.1.25-rbnjv023.mjs +2 -0
  228. package/dist/chunks/cli-1.1.25-rf05pze2.mjs +2 -0
  229. package/dist/chunks/cli-1.1.25-rf0c9c9r.mjs +3 -0
  230. package/dist/chunks/cli-1.1.25-rg5rxmym.mjs +9 -0
  231. package/dist/chunks/cli-1.1.25-rkh9pz84.mjs +2 -0
  232. package/dist/chunks/cli-1.1.25-rqzwndms.mjs +45 -0
  233. package/dist/chunks/cli-1.1.25-rwg08ga2.mjs +39 -0
  234. package/dist/chunks/cli-1.1.25-s1ykc389.mjs +2 -0
  235. package/dist/chunks/cli-1.1.25-s54emewd.mjs +206 -0
  236. package/dist/chunks/cli-1.1.25-s9sv7xk9.mjs +2 -0
  237. package/dist/chunks/cli-1.1.25-sjqg08ww.mjs +2 -0
  238. package/dist/chunks/cli-1.1.25-sm3q65hz.mjs +2 -0
  239. package/dist/chunks/cli-1.1.25-svtt1qhf.mjs +5 -0
  240. package/dist/chunks/cli-1.1.25-sz3dey5y.mjs +2 -0
  241. package/dist/chunks/cli-1.1.25-t6rdfhp9.mjs +3 -0
  242. package/dist/chunks/cli-1.1.25-t80ab9f0.mjs +7 -0
  243. package/dist/chunks/cli-1.1.25-tftyt531.mjs +3 -0
  244. package/dist/chunks/cli-1.1.25-tj3kqgbv.mjs +2 -0
  245. package/dist/chunks/cli-1.1.25-tz7k6gjy.mjs +2 -0
  246. package/dist/chunks/cli-1.1.25-vc7150xz.mjs +2 -0
  247. package/dist/chunks/cli-1.1.25-vkg5fb0z.mjs +2 -0
  248. package/dist/chunks/cli-1.1.25-vwe1fsde.mjs +2 -0
  249. package/dist/chunks/cli-1.1.25-wcw9vrkz.mjs +2 -0
  250. package/dist/chunks/cli-1.1.25-wd0p9nmj.mjs +24 -0
  251. package/dist/chunks/cli-1.1.25-wtrb99c9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.25-wy18zt7a.mjs +3 -0
  253. package/dist/chunks/cli-1.1.25-x26vkphq.mjs +6 -0
  254. package/dist/chunks/cli-1.1.25-x4ww7pe7.mjs +2 -0
  255. package/dist/chunks/cli-1.1.25-xbxtyfje.mjs +2 -0
  256. package/dist/chunks/cli-1.1.25-y0f45gyf.mjs +2 -0
  257. package/dist/chunks/cli-1.1.25-y4xjnn7w.mjs +2 -0
  258. package/dist/chunks/cli-1.1.25-ybe971qx.mjs +15 -0
  259. package/dist/chunks/cli-1.1.25-yctc3qt8.mjs +2 -0
  260. package/dist/chunks/cli-1.1.25-yf3nnsg1.mjs +2 -0
  261. package/dist/chunks/cli-1.1.25-z31z20wf.mjs +2 -0
  262. package/dist/chunks/cli-1.1.25-zk74mh7n.mjs +2 -0
  263. package/dist/chunks/cli-1.1.25-zpzhf7zc.mjs +2 -0
  264. package/dist/chunks/cli-1.1.25-zqqpy89q.mjs +6 -0
  265. package/dist/chunks/cli-1.1.25-zrj2zpkp.mjs +2 -0
  266. package/dist/chunks/client-1.1.25-08n7ywgz.mjs +1 -0
  267. package/dist/chunks/color-1.1.25-n45p3cdv.mjs +1 -0
  268. package/dist/chunks/compact-1.1.25-qqv3fce7.mjs +3 -0
  269. package/dist/chunks/config-1.1.25-bvznkf41.mjs +1 -0
  270. package/dist/chunks/config-1.1.25-n6dtcns2.mjs +1 -0
  271. package/dist/chunks/constants-1.1.25-g61cz55f.mjs +1 -0
  272. package/dist/chunks/context-1.1.25-e3n1bdyd.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.25-6drmca9m.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.25-5xfam12e.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.25-n3q0s4gz.mjs +1 -0
  276. package/dist/chunks/copy-1.1.25-wcjjc2td.mjs +9 -0
  277. package/dist/chunks/cost-1.1.25-czrc10qr.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.25-q7sr5mgy.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.25-abgdr9mn.mjs +1 -0
  280. package/dist/chunks/debug-1.1.25-4284each.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.25-bh5e3czf.mjs +1534 -0
  282. package/dist/chunks/desktop-1.1.25-kb98q9vj.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.25-a7pfgy12.mjs +1 -0
  284. package/dist/chunks/detection-1.1.25-8nzvw5jn.mjs +1 -0
  285. package/dist/chunks/diff-1.1.25-dhnj1tfb.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.25-0x83n5n5.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.25-qmg4yght.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.25-jz9ewwc0.mjs +1 -0
  289. package/dist/chunks/effort-1.1.25-6gemkp3j.mjs +13 -0
  290. package/dist/chunks/engine-1.1.25-hb7ppn8y.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.25-32s3yykr.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.25-trphmt1z.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.25-jew2phex.mjs +1 -0
  294. package/dist/chunks/environments-1.1.25-nkh2j8kv.mjs +1 -0
  295. package/dist/chunks/errors-1.1.25-0t1vtdpj.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.25-n2ktzve3.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.25-2f72pb95.mjs +1 -0
  298. package/dist/chunks/exit-1.1.25-302bsne4.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.25-f47vrcdd.mjs +1 -0
  300. package/dist/chunks/export-1.1.25-655jmasp.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.25-9f3dc9de.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.25-wjzcb1d3.mjs +1 -0
  303. package/dist/chunks/fast-1.1.25-k4a1t9tc.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.25-crmhd8kn.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.25-pr01pvjg.mjs +1 -0
  306. package/dist/chunks/git-1.1.25-r40xnnqg.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.25-8r84eppg.mjs +1 -0
  308. package/dist/chunks/goal-1.1.25-2fz16dne.mjs +4 -0
  309. package/dist/chunks/growthbook-1.1.25-vr1d3g20.mjs +1 -0
  310. package/dist/chunks/headless-1.1.25-b7ma19kx.mjs +2 -0
  311. package/dist/chunks/heapdump-1.1.25-s74fnvr9.mjs +6 -0
  312. package/dist/chunks/help-1.1.25-jphw3nwb.mjs +1 -0
  313. package/dist/chunks/hookChains-1.1.25-wad3j7ae.mjs +3 -0
  314. package/dist/chunks/hooks-1.1.25-5psxtbt2.mjs +79 -0
  315. package/dist/chunks/hooks-1.1.25-n6f1dkc7.mjs +1 -0
  316. package/dist/chunks/ide-1.1.25-21kw5qe1.mjs +3 -0
  317. package/dist/chunks/image-processor-napi-1.1.25-jymb540y.mjs +1 -0
  318. package/dist/chunks/import-1.1.25-71q60jx1.mjs +261 -0
  319. package/dist/chunks/inboundAttachments-1.1.25-qg5v4c4j.mjs +1 -0
  320. package/dist/chunks/index-1.1.25-0f94rjfd.mjs +1 -0
  321. package/dist/chunks/index-1.1.25-0n1ksx20.mjs +2 -0
  322. package/dist/chunks/index-1.1.25-1n597wy3.mjs +1 -0
  323. package/dist/chunks/index-1.1.25-1rwmhexf.mjs +1 -0
  324. package/dist/chunks/index-1.1.25-6160t93h.mjs +30 -0
  325. package/dist/chunks/index-1.1.25-645qcmbw.mjs +9 -0
  326. package/dist/chunks/index-1.1.25-70ggh135.mjs +1 -0
  327. package/dist/chunks/index-1.1.25-7nk5p28a.mjs +1 -0
  328. package/dist/chunks/index-1.1.25-7p7qd15b.mjs +23 -0
  329. package/dist/chunks/index-1.1.25-8z7y79bf.mjs +1 -0
  330. package/dist/chunks/index-1.1.25-affe6cxt.mjs +9 -0
  331. package/dist/chunks/index-1.1.25-bec2ajvp.mjs +1 -0
  332. package/dist/chunks/index-1.1.25-f64qrtc9.mjs +5 -0
  333. package/dist/chunks/index-1.1.25-g7v9zhk1.mjs +1 -0
  334. package/dist/chunks/index-1.1.25-g99896ns.mjs +1 -0
  335. package/dist/chunks/index-1.1.25-hcbmys9p.mjs +1 -0
  336. package/dist/chunks/index-1.1.25-j8rm4qgs.mjs +2 -0
  337. package/dist/chunks/index-1.1.25-kh02yd5c.mjs +1 -0
  338. package/dist/chunks/index-1.1.25-m6k2vy2a.mjs +1 -0
  339. package/dist/chunks/index-1.1.25-pmn6pnjv.mjs +1 -0
  340. package/dist/chunks/index-1.1.25-t0kaa1dy.mjs +1 -0
  341. package/dist/chunks/index-1.1.25-xfdfregs.mjs +1 -0
  342. package/dist/chunks/index-1.1.25-ychm6aj7.mjs +1 -0
  343. package/dist/chunks/init-1.1.25-x7cr3p65.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.25-zcgy02rq.mjs +1 -0
  345. package/dist/chunks/ink-1.1.25-evxr7syt.mjs +1 -0
  346. package/dist/chunks/insights-1.1.25-0zz5y2cs.mjs +870 -0
  347. package/dist/chunks/install-1.1.25-nghrpc4k.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.25-1tb3cz5k.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.25-vsp3sc6d.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.25-e9arjmhp.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.25-dvn7nkzf.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.25-7tf4nkft.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.25-gchxmcv2.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.25-gzy09f8s.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.25-3fvea40c.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.25-1b1z5t2x.mjs +1 -0
  357. package/dist/chunks/log-1.1.25-rhpcv45j.mjs +1 -0
  358. package/dist/chunks/main-1.1.25-hpaj9gzw.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.25-19sxqzbj.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.25-bkgk2vye.mjs +1 -0
  361. package/dist/chunks/mcp-1.1.25-n5bde32b.mjs +17 -0
  362. package/dist/chunks/mcp-1.1.25-wsfk73n2.mjs +4 -0
  363. package/dist/chunks/mcpb-1.1.25-jwd1ff98.mjs +1 -0
  364. package/dist/chunks/memory-1.1.25-ae4515h6.mjs +72 -0
  365. package/dist/chunks/model-1.1.25-kdc32s97.mjs +1 -0
  366. package/dist/chunks/model-1.1.25-x3hpj8mx.mjs +2 -0
  367. package/dist/chunks/node-1.1.25-bmakbgcc.mjs +15 -0
  368. package/dist/chunks/oauth-1.1.25-dpw2v0gf.mjs +1 -0
  369. package/dist/chunks/openaiShim-1.1.25-frxz7cxz.mjs +14 -0
  370. package/dist/chunks/output-style-1.1.25-ja0xn44t.mjs +1 -0
  371. package/dist/chunks/package-SHMK2LJE-1.1.25-n5senjea.mjs +1 -0
  372. package/dist/chunks/parseConnectUrl-1.1.25-2w1mb832.mjs +1 -0
  373. package/dist/chunks/parser-1.1.25-226xm2zk.mjs +1 -0
  374. package/dist/chunks/passes-1.1.25-3pbcz45a.mjs +1 -0
  375. package/dist/chunks/permissions-1.1.25-3yb8c211.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.25-g8395q9y.mjs +3 -0
  377. package/dist/chunks/plan-1.1.25-335rgqar.mjs +1 -0
  378. package/dist/chunks/plist-1.1.25-4gx9kzb9.mjs +1 -0
  379. package/dist/chunks/plugin-1.1.25-7twsr9qb.mjs +29 -0
  380. package/dist/chunks/pluginStartupCheck-1.1.25-h43rcveq.mjs +1 -0
  381. package/dist/chunks/plugins-1.1.25-36r120jp.mjs +9 -0
  382. package/dist/chunks/preActionHook-1.1.25-mq77hmkq.mjs +2 -0
  383. package/dist/chunks/print-1.1.25-nyqwpaw6.mjs +57 -0
  384. package/dist/chunks/process-1.1.25-40rkvfxz.mjs +1 -0
  385. package/dist/chunks/processBashCommand-1.1.25-4rt9wd52.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-1.1.25-50jz8vq4.mjs +9 -0
  387. package/dist/chunks/prompt-1.1.25-ab2m25ry.mjs +1 -0
  388. package/dist/chunks/prompt-1.1.25-tsf93p18.mjs +1 -0
  389. package/dist/chunks/prompts-1.1.25-7asah358.mjs +1 -0
  390. package/dist/chunks/protocolHandler-1.1.25-fjma0898.mjs +13 -0
  391. package/dist/chunks/provider-1.1.25-jcm6xct3.mjs +2 -0
  392. package/dist/chunks/providerProfiles-1.1.25-86yene25.mjs +1 -0
  393. package/dist/chunks/providerValidation-1.1.25-gbve71cz.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-1.1.25-n6v741p7.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-1.1.25-d988tp7q.mjs +26 -0
  396. package/dist/chunks/registry-1.1.25-jda5me4n.mjs +1 -0
  397. package/dist/chunks/release-notes-1.1.25-depx979r.mjs +5 -0
  398. package/dist/chunks/reload-plugins-1.1.25-nc27sfgy.mjs +2 -0
  399. package/dist/chunks/remote-env-1.1.25-adtemst2.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-1.1.25-vyw0r3a7.mjs +1 -0
  401. package/dist/chunks/remoteSession-1.1.25-f1hb7zcj.mjs +1 -0
  402. package/dist/chunks/rename-1.1.25-r9khtthn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-1.1.25-5tbm27ae.mjs +1 -0
  404. package/dist/chunks/replLauncher-1.1.25-dy1jxrha.mjs +1 -0
  405. package/dist/chunks/resume-1.1.25-qcctpvst.mjs +2 -0
  406. package/dist/chunks/rewind-1.1.25-2tpvsdz2.mjs +1 -0
  407. package/dist/chunks/rootOptions-1.1.25-6gjd4t0k.mjs +1 -0
  408. package/dist/chunks/runWorkflowHeadless-1.1.25-1x11b1xy.mjs +10 -0
  409. package/dist/chunks/sandbox-adapter-1.1.25-2qsj3g4r.mjs +1 -0
  410. package/dist/chunks/sandbox-toggle-1.1.25-tn86q9kj.mjs +1 -0
  411. package/dist/chunks/session-1.1.25-tpnhf7nk.mjs +2 -0
  412. package/dist/chunks/sessionDiscovery-1.1.25-z48aepj2.mjs +1 -0
  413. package/dist/chunks/sessionFileAccessHooks-1.1.25-w9mqv7x2.mjs +1 -0
  414. package/dist/chunks/sessionStorage-1.1.25-f61wmxkh.mjs +1 -0
  415. package/dist/chunks/settings-1.1.25-5f0ye0zf.mjs +1 -0
  416. package/dist/chunks/setup-1.1.25-hq096wz8.mjs +12 -0
  417. package/dist/chunks/sinks-1.1.25-k89ee9jd.mjs +1 -0
  418. package/dist/chunks/skills-1.1.25-zny3acfm.mjs +1 -0
  419. package/dist/chunks/startupProfiler-1.1.25-jrb54jgv.mjs +1 -0
  420. package/dist/chunks/startupUpdateCheck-1.1.25-0e8arnxt.mjs +1 -0
  421. package/dist/chunks/state-1.1.25-2f0mn1s8.mjs +1 -0
  422. package/dist/chunks/stats-1.1.25-w4v85n4m.mjs +1 -0
  423. package/dist/chunks/status-1.1.25-vyxf29s0.mjs +1 -0
  424. package/dist/chunks/stickers-1.1.25-db9b5d86.mjs +1 -0
  425. package/dist/chunks/subprocessEnv-1.1.25-b06h7dn5.mjs +1 -0
  426. package/dist/chunks/tasks-1.1.25-d44s3czy.mjs +1 -0
  427. package/dist/chunks/teamHelpers-1.1.25-yy2zwqy3.mjs +1 -0
  428. package/dist/chunks/teammateModeSnapshot-1.1.25-45w75v4y.mjs +1 -0
  429. package/dist/chunks/teleport-1.1.25-5be1s310.mjs +1 -0
  430. package/dist/chunks/terminalSetup-1.1.25-b5a4adgd.mjs +1 -0
  431. package/dist/chunks/theme-1.1.25-wkyf9b5k.mjs +1 -0
  432. package/dist/chunks/thinkback-1.1.25-6575xnpn.mjs +1 -0
  433. package/dist/chunks/thinkback-play-1.1.25-amw47kg0.mjs +1 -0
  434. package/dist/chunks/toolPool-1.1.25-h7pp3y85.mjs +1 -0
  435. package/dist/chunks/toolSearch-1.1.25-brpn0e66.mjs +1 -0
  436. package/dist/chunks/tools-1.1.25-t4rr3y1m.mjs +1 -0
  437. package/dist/chunks/trustedDevice-1.1.25-dgx4z9gb.mjs +1 -0
  438. package/dist/chunks/turndown.cjs-1.1.25-9c24hgzw.mjs +69 -0
  439. package/dist/chunks/types-1.1.25-tj3y8ycy.mjs +1 -0
  440. package/dist/chunks/ultrareviewCommand-1.1.25-kj7js02p.mjs +4 -0
  441. package/dist/chunks/update-1.1.25-fn4tnxnw.mjs +72 -0
  442. package/dist/chunks/upgrade-1.1.25-zd805a6y.mjs +1 -0
  443. package/dist/chunks/upload-1.1.25-nhsynsbb.mjs +7 -0
  444. package/dist/chunks/upstreamproxy-1.1.25-bh4an4es.mjs +14 -0
  445. package/dist/chunks/url-handler-napi-1.1.25-z7v66h19.mjs +1 -0
  446. package/dist/chunks/usage-1.1.25-0frq9der.mjs +1 -0
  447. package/dist/chunks/util-1.1.25-hqbcvpk3.mjs +1 -0
  448. package/dist/chunks/utils-1.1.25-mqy166xe.mjs +1 -0
  449. package/dist/chunks/vim-1.1.25-0gnwfzcy.mjs +1 -0
  450. package/dist/chunks/watchLoop-1.1.25-dnpy6c6e.mjs +13 -0
  451. package/dist/chunks/watcher-1.1.25-43n00zw0.mjs +1 -0
  452. package/dist/chunks/wiki-1.1.25-mvay6amg.mjs +132 -0
  453. package/dist/chunks/workflows-1.1.25-a2drn8b3.mjs +1 -0
  454. package/dist/chunks/worktree-1.1.25-cghd8r64.mjs +1 -0
  455. package/dist/chunks/worktreeModeEnabled-1.1.25-a15vww7v.mjs +1 -0
  456. package/dist/chunks/wrapper-1.1.25-chacpj74.mjs +7 -0
  457. package/dist/cli.mjs +2 -2
  458. package/package.json +9 -9
  459. package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +0 -1
  460. package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +0 -1
  461. package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +0 -1
  462. package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +0 -1
  463. package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +0 -1
  464. package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +0 -1
  465. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +0 -1
  466. package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +0 -1
  467. package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +0 -6
  468. package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +0 -1
  469. package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +0 -6
  470. package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +0 -1
  474. package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +0 -1
  475. package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +0 -1
  476. package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +0 -1
  484. package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +0 -1
  485. package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +0 -1
  486. package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +0 -1
  487. package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +0 -1
  488. package/dist/chunks/agents-1.1.23-13ae3y31.mjs +0 -110
  489. package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +0 -3
  490. package/dist/chunks/api-1.1.23-sadzsv9h.mjs +0 -1
  491. package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +0 -1
  492. package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +0 -1
  493. package/dist/chunks/auth-1.1.23-2mazt66r.mjs +0 -1
  494. package/dist/chunks/auth-1.1.23-f804wpq0.mjs +0 -1
  495. package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +0 -52
  496. package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +0 -44
  497. package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +0 -1
  498. package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +0 -1
  499. package/dist/chunks/branch-1.1.23-df4c0964.mjs +0 -4
  500. package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +0 -2
  501. package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +0 -1
  502. package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +0 -1
  503. package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +0 -88
  504. package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +0 -1
  505. package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +0 -1
  506. package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +0 -3
  507. package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +0 -21
  508. package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +0 -4
  509. package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +0 -1
  510. package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +0 -1
  511. package/dist/chunks/claudemd-1.1.23-av012etb.mjs +0 -1
  512. package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +0 -1
  513. package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +0 -1
  514. package/dist/chunks/cli-1.1.23-08g4ya29.mjs +0 -2
  515. package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +0 -4
  516. package/dist/chunks/cli-1.1.23-13w02myd.mjs +0 -2
  517. package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +0 -2
  518. package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +0 -5
  519. package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +0 -3
  520. package/dist/chunks/cli-1.1.23-1fexxp20.mjs +0 -2
  521. package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +0 -4
  522. package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +0 -2
  523. package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +0 -2
  524. package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +0 -2
  525. package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +0 -24
  526. package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +0 -4
  527. package/dist/chunks/cli-1.1.23-2g7503ny.mjs +0 -133
  528. package/dist/chunks/cli-1.1.23-2gax24jg.mjs +0 -2
  529. package/dist/chunks/cli-1.1.23-2swa87qn.mjs +0 -2
  530. package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +0 -2
  531. package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +0 -7
  532. package/dist/chunks/cli-1.1.23-3hnz7314.mjs +0 -2
  533. package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +0 -2
  534. package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +0 -2
  535. package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +0 -24
  536. package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +0 -2
  537. package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +0 -2
  538. package/dist/chunks/cli-1.1.23-4q364wmc.mjs +0 -26
  539. package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +0 -2
  540. package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +0 -3
  541. package/dist/chunks/cli-1.1.23-4z00tj56.mjs +0 -20
  542. package/dist/chunks/cli-1.1.23-534g4n3n.mjs +0 -2
  543. package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +0 -2
  544. package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +0 -2
  545. package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +0 -3
  546. package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +0 -2
  547. package/dist/chunks/cli-1.1.23-61q858yx.mjs +0 -24
  548. package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +0 -6
  549. package/dist/chunks/cli-1.1.23-6801e7pm.mjs +0 -34
  550. package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +0 -2
  551. package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +0 -2
  552. package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +0 -3
  553. package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +0 -2
  554. package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +0 -2
  555. package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +0 -2
  556. package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +0 -3
  557. package/dist/chunks/cli-1.1.23-6svwd47h.mjs +0 -2
  558. package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +0 -4
  559. package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +0 -2
  560. package/dist/chunks/cli-1.1.23-7081am2r.mjs +0 -60
  561. package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +0 -2
  562. package/dist/chunks/cli-1.1.23-7672wfdw.mjs +0 -2
  563. package/dist/chunks/cli-1.1.23-79fjt009.mjs +0 -2
  564. package/dist/chunks/cli-1.1.23-7btdskbp.mjs +0 -2
  565. package/dist/chunks/cli-1.1.23-7jpcmnjc.mjs +0 -2
  566. package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +0 -2
  567. package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +0 -2
  568. package/dist/chunks/cli-1.1.23-7p15pph2.mjs +0 -2
  569. package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +0 -2
  570. package/dist/chunks/cli-1.1.23-89dm39zw.mjs +0 -2
  571. package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +0 -2
  572. package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +0 -2
  573. package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +0 -1
  574. package/dist/chunks/cli-1.1.23-8tv84m75.mjs +0 -2
  575. package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +0 -4
  576. package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +0 -6
  577. package/dist/chunks/cli-1.1.23-913hrrgx.mjs +0 -2
  578. package/dist/chunks/cli-1.1.23-91n79mdp.mjs +0 -2
  579. package/dist/chunks/cli-1.1.23-971f3zzk.mjs +0 -2
  580. package/dist/chunks/cli-1.1.23-9b08qsth.mjs +0 -2
  581. package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +0 -2
  582. package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +0 -2
  583. package/dist/chunks/cli-1.1.23-9qe28y65.mjs +0 -16
  584. package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +0 -2
  585. package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +0 -2
  586. package/dist/chunks/cli-1.1.23-9zrhw582.mjs +0 -2
  587. package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +0 -12
  588. package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +0 -18
  589. package/dist/chunks/cli-1.1.23-a95wepyn.mjs +0 -66
  590. package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +0 -2
  591. package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +0 -7
  592. package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +0 -2
  593. package/dist/chunks/cli-1.1.23-akghy19s.mjs +0 -58
  594. package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +0 -2
  595. package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +0 -2
  596. package/dist/chunks/cli-1.1.23-beazn1ym.mjs +0 -45
  597. package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +0 -15
  598. package/dist/chunks/cli-1.1.23-bghc6n12.mjs +0 -2
  599. package/dist/chunks/cli-1.1.23-bkd2235z.mjs +0 -2
  600. package/dist/chunks/cli-1.1.23-bqb900hx.mjs +0 -2
  601. package/dist/chunks/cli-1.1.23-btem08d6.mjs +0 -2
  602. package/dist/chunks/cli-1.1.23-btq83yzw.mjs +0 -2
  603. package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +0 -2
  604. package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +0 -2
  605. package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +0 -2
  606. package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +0 -3
  607. package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +0 -2
  608. package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +0 -2
  609. package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +0 -2
  610. package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +0 -50
  611. package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +0 -2
  612. package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +0 -2
  613. package/dist/chunks/cli-1.1.23-dm6get34.mjs +0 -42
  614. package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +0 -2
  615. package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +0 -2
  616. package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +0 -2
  617. package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +0 -2
  618. package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +0 -2
  619. package/dist/chunks/cli-1.1.23-e3zf752q.mjs +0 -2
  620. package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +0 -2
  621. package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +0 -9
  622. package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +0 -2
  623. package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +0 -15
  624. package/dist/chunks/cli-1.1.23-f001cyx3.mjs +0 -2
  625. package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +0 -2
  626. package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +0 -2
  627. package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +0 -2
  628. package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +0 -3
  629. package/dist/chunks/cli-1.1.23-fxt20eva.mjs +0 -2
  630. package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +0 -2
  631. package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +0 -6
  632. package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +0 -2
  633. package/dist/chunks/cli-1.1.23-g6b9c447.mjs +0 -2
  634. package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +0 -2
  635. package/dist/chunks/cli-1.1.23-gm82gspk.mjs +0 -2
  636. package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +0 -2
  637. package/dist/chunks/cli-1.1.23-gqzmsste.mjs +0 -2
  638. package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +0 -25
  639. package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +0 -17
  640. package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +0 -17
  641. package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +0 -2
  642. package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +0 -2
  643. package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +0 -2
  644. package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +0 -2
  645. package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +0 -5456
  646. package/dist/chunks/cli-1.1.23-j1834bmw.mjs +0 -8
  647. package/dist/chunks/cli-1.1.23-j50f02dv.mjs +0 -3
  648. package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +0 -9
  649. package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +0 -2
  650. package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +0 -2
  651. package/dist/chunks/cli-1.1.23-jax91df0.mjs +0 -2
  652. package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +0 -2
  653. package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +0 -2
  654. package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +0 -4
  655. package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +0 -2
  656. package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +0 -6
  657. package/dist/chunks/cli-1.1.23-keftnbc6.mjs +0 -206
  658. package/dist/chunks/cli-1.1.23-kqechz3h.mjs +0 -3
  659. package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +0 -4
  660. package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +0 -4
  661. package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +0 -2
  662. package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +0 -2
  663. package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +0 -2
  664. package/dist/chunks/cli-1.1.23-n0182x8j.mjs +0 -2
  665. package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +0 -2
  666. package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +0 -2
  667. package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +0 -2
  668. package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +0 -2
  669. package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +0 -12
  670. package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +0 -2
  671. package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +0 -3
  672. package/dist/chunks/cli-1.1.23-qn9572e2.mjs +0 -2
  673. package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +0 -2
  674. package/dist/chunks/cli-1.1.23-r21frpa6.mjs +0 -6
  675. package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +0 -2
  676. package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +0 -2
  677. package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +0 -2
  678. package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +0 -25
  679. package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +0 -2
  680. package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +0 -2
  681. package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +0 -2
  682. package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +0 -2
  683. package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +0 -2
  684. package/dist/chunks/cli-1.1.23-s21f8qza.mjs +0 -2
  685. package/dist/chunks/cli-1.1.23-s2pn202f.mjs +0 -4
  686. package/dist/chunks/cli-1.1.23-s943evpq.mjs +0 -2
  687. package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +0 -21
  688. package/dist/chunks/cli-1.1.23-sch1s17t.mjs +0 -2
  689. package/dist/chunks/cli-1.1.23-se379e5e.mjs +0 -15
  690. package/dist/chunks/cli-1.1.23-swf2c8db.mjs +0 -2
  691. package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +0 -2
  692. package/dist/chunks/cli-1.1.23-v22erb37.mjs +0 -2
  693. package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +0 -5
  694. package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +0 -2
  695. package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +0 -3
  696. package/dist/chunks/cli-1.1.23-vdp0r91n.mjs +0 -2
  697. package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +0 -2
  698. package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +0 -2
  699. package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +0 -2
  700. package/dist/chunks/cli-1.1.23-vyf2j831.mjs +0 -2
  701. package/dist/chunks/cli-1.1.23-w16rdkte.mjs +0 -3
  702. package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +0 -3
  703. package/dist/chunks/cli-1.1.23-wd48c77m.mjs +0 -24
  704. package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +0 -18
  705. package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +0 -2
  706. package/dist/chunks/cli-1.1.23-wnxxa385.mjs +0 -4
  707. package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +0 -39
  708. package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +0 -2
  709. package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +0 -3
  710. package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +0 -2
  711. package/dist/chunks/cli-1.1.23-xgst7vty.mjs +0 -2
  712. package/dist/chunks/cli-1.1.23-xkt2056f.mjs +0 -2
  713. package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +0 -2
  714. package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +0 -2
  715. package/dist/chunks/cli-1.1.23-y3ea6683.mjs +0 -2
  716. package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +0 -2
  717. package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +0 -2
  718. package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +0 -133
  719. package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +0 -2
  720. package/dist/chunks/cli-1.1.23-zb8savhy.mjs +0 -6
  721. package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +0 -2
  722. package/dist/chunks/client-1.1.23-mcea9qxt.mjs +0 -1
  723. package/dist/chunks/color-1.1.23-e9h5ff51.mjs +0 -1
  724. package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +0 -3
  725. package/dist/chunks/config-1.1.23-j8frjsmx.mjs +0 -1
  726. package/dist/chunks/config-1.1.23-kedfvs1w.mjs +0 -1
  727. package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +0 -1
  728. package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +0 -1
  729. package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +0 -1
  730. package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +0 -1
  731. package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +0 -1
  732. package/dist/chunks/copy-1.1.23-vydqekfj.mjs +0 -9
  733. package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +0 -1
  734. package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +0 -1
  735. package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +0 -1
  736. package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +0 -1
  737. package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +0 -1534
  738. package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +0 -1
  739. package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +0 -1
  740. package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +0 -1
  741. package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +0 -1
  742. package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +0 -1
  743. package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +0 -1
  744. package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +0 -1
  745. package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +0 -13
  746. package/dist/chunks/engine-1.1.23-zted98hq.mjs +0 -1
  747. package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +0 -1
  748. package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +0 -1
  749. package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +0 -1
  750. package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +0 -1
  751. package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +0 -1
  752. package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +0 -1
  753. package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +0 -1
  754. package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +0 -1
  755. package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +0 -1
  756. package/dist/chunks/export-1.1.23-811x7m0f.mjs +0 -2
  757. package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +0 -1
  758. package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +0 -1
  759. package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +0 -1
  760. package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +0 -14
  761. package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +0 -1
  762. package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +0 -1
  763. package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +0 -1
  764. package/dist/chunks/goal-1.1.23-cmzk221k.mjs +0 -4
  765. package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +0 -1
  766. package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +0 -2
  767. package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +0 -6
  768. package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +0 -1
  769. package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +0 -3
  770. package/dist/chunks/hooks-1.1.23-nh96m542.mjs +0 -1
  771. package/dist/chunks/hooks-1.1.23-pggycv75.mjs +0 -79
  772. package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +0 -3
  773. package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +0 -1
  774. package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +0 -1
  775. package/dist/chunks/index-1.1.23-04w67ps4.mjs +0 -1
  776. package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +0 -2
  777. package/dist/chunks/index-1.1.23-16krzxwz.mjs +0 -1
  778. package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +0 -2
  779. package/dist/chunks/index-1.1.23-5xkpaxba.mjs +0 -1
  780. package/dist/chunks/index-1.1.23-87bctdxv.mjs +0 -1
  781. package/dist/chunks/index-1.1.23-894gw6j8.mjs +0 -1
  782. package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +0 -9
  783. package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +0 -1
  784. package/dist/chunks/index-1.1.23-hzafkcpn.mjs +0 -30
  785. package/dist/chunks/index-1.1.23-jfybaapb.mjs +0 -9
  786. package/dist/chunks/index-1.1.23-mbvmhq60.mjs +0 -1
  787. package/dist/chunks/index-1.1.23-nq44z8sn.mjs +0 -1
  788. package/dist/chunks/index-1.1.23-p84yrb6r.mjs +0 -1
  789. package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +0 -23
  790. package/dist/chunks/index-1.1.23-v3pvt45w.mjs +0 -1
  791. package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +0 -1
  792. package/dist/chunks/index-1.1.23-vw0ns36r.mjs +0 -1
  793. package/dist/chunks/index-1.1.23-xb876pe7.mjs +0 -5
  794. package/dist/chunks/index-1.1.23-xfzxwabm.mjs +0 -1
  795. package/dist/chunks/index-1.1.23-yjt3kte0.mjs +0 -1
  796. package/dist/chunks/index-1.1.23-ymq59t45.mjs +0 -1
  797. package/dist/chunks/index-1.1.23-ytps69pn.mjs +0 -1
  798. package/dist/chunks/init-1.1.23-68d7nbfy.mjs +0 -1
  799. package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +0 -1
  800. package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +0 -1
  801. package/dist/chunks/insights-1.1.23-hnbtjced.mjs +0 -870
  802. package/dist/chunks/install-1.1.23-ayas8qxr.mjs +0 -1
  803. package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +0 -149
  804. package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +0 -1
  805. package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +0 -1
  806. package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +0 -1
  807. package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +0 -2
  808. package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +0 -2
  809. package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +0 -1
  810. package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +0 -1
  811. package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +0 -1
  812. package/dist/chunks/log-1.1.23-raemwqxy.mjs +0 -1
  813. package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +0 -1
  814. package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +0 -1
  815. package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +0 -17
  816. package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +0 -4
  817. package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +0 -1
  818. package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +0 -1
  819. package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +0 -72
  820. package/dist/chunks/model-1.1.23-m65499d4.mjs +0 -1
  821. package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +0 -2
  822. package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +0 -14
  823. package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +0 -1
  824. package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +0 -14
  825. package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +0 -1
  826. package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +0 -1
  827. package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +0 -1
  828. package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +0 -1
  829. package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +0 -1
  830. package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +0 -3
  831. package/dist/chunks/permissions-1.1.23-r2894sce.mjs +0 -1
  832. package/dist/chunks/plan-1.1.23-z731dw1m.mjs +0 -1
  833. package/dist/chunks/plist-1.1.23-5761s0b4.mjs +0 -1
  834. package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +0 -29
  835. package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +0 -1
  836. package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +0 -9
  837. package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +0 -2
  838. package/dist/chunks/print-1.1.23-g988xjb3.mjs +0 -57
  839. package/dist/chunks/process-1.1.23-eh0mn414.mjs +0 -1
  840. package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +0 -1
  841. package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +0 -9
  842. package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +0 -1
  843. package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +0 -1
  844. package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +0 -1
  845. package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +0 -13
  846. package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +0 -2
  847. package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +0 -1
  848. package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +0 -6
  849. package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +0 -1
  850. package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +0 -26
  851. package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +0 -1
  852. package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +0 -5
  853. package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +0 -2
  854. package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +0 -1
  855. package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +0 -1
  856. package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +0 -1
  857. package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +0 -1
  858. package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +0 -1
  859. package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +0 -1
  860. package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +0 -2
  861. package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +0 -1
  862. package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +0 -1
  863. package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +0 -10
  864. package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +0 -1
  865. package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +0 -1
  866. package/dist/chunks/session-1.1.23-mws1tmy1.mjs +0 -2
  867. package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +0 -1
  868. package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +0 -1
  869. package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +0 -1
  870. package/dist/chunks/settings-1.1.23-3fm1v708.mjs +0 -1
  871. package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +0 -12
  872. package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +0 -1
  873. package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +0 -1
  874. package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +0 -1
  875. package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +0 -1
  876. package/dist/chunks/state-1.1.23-jxkq1t17.mjs +0 -1
  877. package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +0 -6
  878. package/dist/chunks/status-1.1.23-zkcmaawr.mjs +0 -1
  879. package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +0 -1
  880. package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +0 -1
  881. package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +0 -1
  882. package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +0 -1
  883. package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +0 -1
  884. package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +0 -1
  885. package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +0 -1
  886. package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +0 -1
  887. package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +0 -1
  888. package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +0 -1
  889. package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +0 -1
  890. package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +0 -1
  891. package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +0 -1
  892. package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +0 -1
  893. package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +0 -69
  894. package/dist/chunks/types-1.1.23-pca5g3df.mjs +0 -1
  895. package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +0 -4
  896. package/dist/chunks/update-1.1.23-3xmkkhns.mjs +0 -72
  897. package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +0 -1
  898. package/dist/chunks/upload-1.1.23-cx2aj445.mjs +0 -7
  899. package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +0 -14
  900. package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +0 -1
  901. package/dist/chunks/usage-1.1.23-bndk03g2.mjs +0 -1
  902. package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +0 -1
  903. package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +0 -1
  904. package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +0 -1
  905. package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +0 -13
  906. package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +0 -1
  907. package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +0 -132
  908. package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +0 -1
  909. package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +0 -1
  910. package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +0 -1
  911. package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +0 -7
  912. /package/dist/chunks/{cli-1.1.23-qgdfjtj2.mjs → cli-1.1.25-cpt1h3j8.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{kV as O,lV as S}from"./cli-1.1.23-dd8dp11f.mjs";import{$_ as D,A$ as B,B$ as M,Ifa as k,Uba as R,Wba as _,Y$ as I,a$ as x,gha as G,oha as y,tfa as z,ufa as A}from"./cli-1.1.23-keftnbc6.mjs";import{vja as q,xja as v}from"./cli-1.1.23-7ke90t8x.mjs";import{hsa as K,isa as W}from"./cli-1.1.23-rpxkp0kh.mjs";W();v();k();_();x();I();y();S();var b=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function F(L){return!b.some((Q)=>Q.test(L))}function P(L,Q){let J=[],X=new Set,U=new Map;for(let H=1;J.length<Q&&H<=Q;H++)for(let V of L){if(J.length>=Q)break;if(!F(V))continue;let Y=Math.max(V.lastIndexOf("/"),V.lastIndexOf("\\")),Z=Y>=0?V.slice(Y+1):V;if(!Z||X.has(Z))continue;let $=Y>=0?V.slice(0,Y):".";if((U.get($)??0)>=H)continue;J.push(Z),X.add(Z),U.set($,(U.get($)??0)+1)}return J.length>=Q?J:[]}async function N(){if(R.platform==="win32")return[];if(!await M())return[];try{let L=await O(),Q=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],J=new Map,X=(H)=>{for(let V of H.split(`
2
- `)){let Y=V.trim();if(Y)J.set(Y,(J.get(Y)??0)+1)}};if(L){let{stdout:H}=await D("git",[...Q,`--author=${L}`],{cwd:q()});X(H)}if(J.size<10){let{stdout:H}=await D(B(),Q,{cwd:q()});X(H)}let U=Array.from(J.entries()).sort((H,V)=>V[1]-H[1]).map(([H])=>H);return P(U,5)}catch(L){return G(L),[]}}var T=604800000;function E(L){let Q=z(),J=Q.exampleFiles?.length?Q.exampleFiles:["<filepath>"],U=[...["fix lint errors","fix typecheck errors",`how does ${J[0]} work?`,`refactor ${J[Math.floor(J.length/2)]}`,"how do I log an error?",`edit ${J[J.length-1]} to...`,`write a test for ${J[0]}`,"create a util logging.py that..."]];for(let H=U.length-1;H>0;H--){let V=Math.floor(Math.random()*(H+1));[U[H],U[V]]=[U[V],U[H]]}return U.slice(0,L).map((H)=>`Try "${H}"`)}var d=K((L)=>{return E(L)}),p=K(async()=>{let L=z(),Q=Date.now(),J=L.exampleFilesGeneratedAt??0;if(Q-J>T)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((X)=>{if(X.length)A((U)=>({...U,exampleFiles:X,exampleFilesGeneratedAt:Date.now()}))})});
3
- export{P as Ha,d as Ia,p as Ja};
@@ -1,4 +0,0 @@
1
- import{Tg as oJ,Ug as ZX}from"./cli-1.1.23-mg8gngc9.mjs";import{Vg as aJ,Wg as sJ,Xg as s0,Zg as qX}from"./cli-1.1.23-sch1s17t.mjs";import{$g as sX}from"./cli-1.1.23-dspgg8gk.mjs";import{nh as a0,oh as tY,ph as rJ,qh as eY}from"./cli-1.1.23-cmmvjc9g.mjs";import{th as nJ,uh as sY}from"./cli-1.1.23-971f3zzk.mjs";import{vh as VY,wh as O0,yh as uJ,zh as iJ}from"./cli-1.1.23-xafxg4a2.mjs";import{aj as JY,bj as rX}from"./cli-1.1.23-2swa87qn.mjs";import{AH as Tq,BH as jq,CH as $q,CL as U0,DG as iZ,DH as wq,DL as aq,EG as fY,EH as _q,EL as sq,Eo as dY,FG as xJ,FH as bq,FL as tq,GG as lY,GH as vq,Gm as qY,HG as cJ,HH as gq,Hm as nX,IG as nY,IH as mq,Iz as Aq,JH as pq,Jz as bZ,KG as iq,KH as LY,Kj as bQ,Lz as aX,NN as sZ,Nj as Oq,ON as Qq,Rp as bJ,Ry as oX,Sj as wX,Sp as uY,VT as hY,aJ as dJ,ao as PZ,ay as EZ,bJ as rY,bo as cY,by as vJ,co as T,cy as gJ,dU as qQ,do as cZ,dy as yq,eQ as vQ,eo as qZ,fo as E0,io as uZ,jQ as _X,jo as g0,nU as JQ,oU as QQ,po as r0,rU as YX,tG as JJ,to as _J,uG as jY,xL as o0,yL as oY,yT as uq,ym as ZY,zm as lX}from"./cli-1.1.23-hynrf6x1.mjs";import{CV as iY,xV as mJ,yV as pJ}from"./cli-1.1.23-6fa2z4j7.mjs";import{kX as lJ,sX as aY}from"./cli-1.1.23-5nf6hd1y.mjs";import{$Y as GY,AY as X0,NY as b,OY as wJ,PY as lZ,SY as XY,TY as qG,VY as dZ,WY as T0,YY as M0,aZ as JG,zY as RZ}from"./cli-1.1.23-ah6fas1q.mjs";import{PZ as $Z,S0 as $J,T1 as SZ,YZ as xZ,ZZ as TJ,c0 as f0,e0 as iX,l0 as n0,m0 as jJ,m1 as U,o1 as K,q0 as xY,y1 as eQ}from"./cli-1.1.23-7081am2r.mjs";import{o4 as WZ,p4 as G,q4 as z,r4 as x}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as FZ}from"./cli-1.1.23-534g4n3n.mjs";import{D4 as CQ,E4 as kX}from"./cli-1.1.23-z1mvb05m.mjs";import{B6 as pY,N8 as tQ,Q5 as nZ,R5 as mY,a7 as Pq,a9 as uX,f7 as fJ,h6 as Y0,i6 as i0,j5 as sQ,k6 as CJ,l6 as l0,n6 as SJ,n7 as k0,p5 as dX,r7 as yJ,s6 as hJ}from"./cli-1.1.23-9qe28y65.mjs";import{w9 as KZ,x9 as OJ}from"./cli-1.1.23-r21frpa6.mjs";import{Cca as vY,Gga as HQ,Ifa as IJ,Iga as WQ,J_ as CZ,K_ as v0,Mga as zQ,Qga as GX,Tga as wZ,Wga as EJ,eea as d0,gea as ZZ,gha as MZ,jea as u0,kfa as y,nfa as f,ofa as RJ,oha as I0,tfa as BJ,tga as GQ,uca as PJ,vca as AJ,wca as LJ,wea as gY,wga as VQ,xca as MJ,xfa as UJ,xga as XX,yfa as kJ,zga as KQ}from"./cli-1.1.23-keftnbc6.mjs";import{Dha as D0,Eha as LZ,Fha as aQ,Kha as S0,Lha as Jq}from"./cli-1.1.23-2cqrzcwp.mjs";import{bia as NJ}from"./cli-1.1.23-3hnz7314.mjs";import{mia as FJ,yia as bY}from"./cli-1.1.23-e3g5ahaf.mjs";import{vja as L0,xja as fq}from"./cli-1.1.23-7ke90t8x.mjs";import{jka as S,mka as _Y}from"./cli-1.1.23-j9tza8qb.mjs";import{Wka as cX,mla as _Z,pla as qq}from"./cli-1.1.23-kc1tbe8y.mjs";import{Rla as Dq,Tla as $X}from"./cli-1.1.23-6vn61k3h.mjs";import{$la as XQ,Zla as zJ,fma as DJ}from"./cli-1.1.23-fxyf1cph.mjs";import{Kra as hq,Lna as Sq,Loa as Nq,Lpa as c0,Mpa as WJ,Woa as oQ,aoa as uQ,boa as iQ,eoa as lQ,yoa as nQ,zoa as rQ}from"./cli-1.1.23-wkvjbzna.mjs";import{Bta as d,Fta as r}from"./cli-1.1.23-bdj1ne1r.mjs";function MY(){let q=Sq(),Q=uq(q)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.23"},{label:"Session name",value:Q},{label:"Session ID",value:q},{label:"cwd",value:L0()},...gq(),...mq()]}function RY({mainLoopModel:q,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:pq(q)},...jq(Z.clients,Y.options.ideInstallationStatus,Q),...$q(Z.clients,Q),...Tq(),..._q()]}async function xq(){return[...await bq(),...await vq(),...await wq()]}function BY(q){let Z=R0.c(8),{value:Q}=q;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let W;if(Z[2]!==Q.length)W=(D,N)=>z(K,{children:[D,N<Q.length-1?",":""]},N),Z[2]=Q.length,Z[3]=W;else W=Z[3];Y=Q.map(W),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:Y}),Z[4]=Y,Z[5]=V;else V=Z[5];return V}if(typeof Q==="string"){let Y;if(Z[6]!==Q)Y=G(K,{children:Q}),Z[6]=Q,Z[7]=Y;else Y=Z[7];return Y}return Q}function cq(q){let Z=R0.c(20),{context:Q,diagnosticsPromise:Y}=q,V=EZ(EY),W=EZ(IY),[D]=xZ(),N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=MY(),Z[0]=N;else N=Z[0];let L;if(Z[1]!==Q||Z[2]!==V||Z[3]!==W||Z[4]!==D)L=RY({mainLoopModel:V,mcp:W,theme:D,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=W,Z[4]=D,Z[5]=L;else L=Z[5];let M;if(Z[6]!==L)M=[N,L],Z[6]=L,Z[7]=M;else M=Z[7];let H=M,O=dZ()?1:void 0,F;if(Z[8]!==H)F=H.map(UY),Z[8]=H,Z[9]=F;else F=Z[9];let P;if(Z[10]!==Y)P=G(B0.Suspense,{fallback:null,children:G(CY,{promise:Y})}),Z[10]=Y,Z[11]=P;else P=Z[11];let R;if(Z[12]!==O||Z[13]!==F||Z[14]!==P)R=z(U,{flexDirection:"column",gap:1,flexGrow:O,children:[F,P]}),Z[12]=O,Z[13]=F,Z[14]=P,Z[15]=R;else R=Z[15];let I;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))I=G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),Z[16]=I;else I=Z[16];let k;if(Z[17]!==O||Z[18]!==R)k=z(U,{flexDirection:"column",flexGrow:O,children:[R,I]}),Z[17]=O,Z[18]=R,Z[19]=k;else k=Z[19];return k}function UY(q,Z){return q.length>0&&G(U,{flexDirection:"column",children:q.map(kY)},Z)}function kY(q,Z){let{label:Q,value:Y}=q;return z(U,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(BY,{value:Y})]},Z)}function IY(q){return q.mcp}function EY(q){return q.mainLoopModel}function CY(q){let Z=R0.c(5),{promise:Q}=q,Y=B0.use(Q);if(Y.length===0)return null;let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=G(K,{bold:!0,children:"System Diagnostics"}),Z[0]=V;else V=Z[0];let W;if(Z[1]!==Y)W=Y.map(SY),Z[1]=Y,Z[2]=W;else W=Z[2];let D;if(Z[3]!==W)D=z(U,{flexDirection:"column",paddingBottom:1,children:[V,W]}),Z[3]=W,Z[4]=D;else D=Z[4];return D}function SY(q,Z){return z(U,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:CZ.warning}),typeof q==="string"?G(K,{wrap:"wrap",children:q}):q]},Z)}var R0,B0;var dq=r(()=>{v0();hq();M0();SZ();yq();fq();hY();LY();cZ();x();R0=d($Z(),1),B0=d(FZ(),1)});function nq(q){let Z=lq.c(17),{currentVersion:Q,onChoice:Y}=q,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let W=V,D;if(Z[2]!==Y)D=function(){Y("cancel")},Z[2]=Y,Z[3]=D;else D=Z[3];let N=D,L;if(Z[4]!==Q)L=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=L;else L=Z[5];let M;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=M;else M=Z[6];let H;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))H={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=H;else H=Z[7];let O=`Stay on current version (${Q}) until stable catches up`,F;if(Z[8]!==O)F=[H,{label:O,value:"stay"}],Z[8]=O,Z[9]=F;else F=Z[9];let P;if(Z[10]!==W||Z[11]!==F)P=G(iZ,{options:F,onChange:W}),Z[10]=W,Z[11]=F,Z[12]=P;else P=Z[12];let R;if(Z[13]!==N||Z[14]!==L||Z[15]!==P)R=z(uZ,{title:"Switch to Stable Channel",onCancel:N,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[L,M,P]}),Z[13]=N,Z[14]=L,Z[15]=P,Z[16]=R;else R=Z[16];return R}var lq;var rq=r(()=>{SZ();iq();g0();x();lq=d($Z(),1)});function oq(q){return Object.entries(q).map(([Z,Q])=>({label:Q?.name??yY,value:Z,description:Q?.description??TY}))}function ZJ(q){let Z=eq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:W}=q,D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D=[],Z[0]=D;else D=Z[0];let[N,L]=q0.useState(D),[M,H]=q0.useState(!0),O,F;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))O=()=>{sq(L0()).then((u)=>{let m=oq(u);L(m),H(!1)}).catch(()=>{let u=oq(aq);L(u),H(!1)})},F=[],Z[1]=O,Z[2]=F;else O=Z[1],F=Z[2];q0.useEffect(O,F);let P;if(Z[3]!==Y)P=(u)=>{Y(u)},Z[3]=Y,Z[4]=P;else P=Z[4];let R=P,I=!W,k=!W,_;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))_=G(U,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=_;else _=Z[5];let t;if(Z[6]!==R||Z[7]!==Q||Z[8]!==M||Z[9]!==N)t=z(U,{flexDirection:"column",gap:1,children:[_,M?G(K,{dimColor:!0,children:"Loading output styles…"}):G(iZ,{options:N,onChange:R,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=R,Z[7]=Q,Z[8]=M,Z[9]=N,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(uZ,{title:"Preferred output style",onCancel:V,hideInputGuide:I,hideBorder:k,children:t}),Z[11]=V,Z[12]=I,Z[13]=k,Z[14]=t,Z[15]=w;else w=Z[15];return w}var eq,q0,yY="Default",TY="Claudin completes coding tasks efficiently and provides concise responses";var qJ=r(()=>{tq();SZ();fq();fY();g0();x();eq=d($Z(),1),q0=d(FZ(),1)});function YJ(q){let Z=QJ.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=q,[W,D]=m0.useState(Q),[N,L]=m0.useState((Q??"").length),M;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))M={context:"Settings"},Z[0]=M;else M=Z[0];b("confirm:no",V,M);let H;if(Z[1]!==W||Z[2]!==Y)H=function(){let w=W?.trim();Y(w||void 0)},Z[1]=W,Z[2]=Y,Z[3]=H;else H=Z[3];let O=H,F;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))F=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=F;else F=Z[4];let P;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))P=G(K,{children:CZ.pointer}),Z[5]=P;else P=Z[5];let R=W??"",I;if(Z[6]!==N||Z[7]!==O||Z[8]!==R)I=z(U,{flexDirection:"row",gap:1,children:[P,G(JJ,{value:R,onChange:D,onSubmit:O,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${CZ.ellipsis}`,columns:60,cursorOffset:N,onChangeCursorOffset:L})]}),Z[6]=N,Z[7]=O,Z[8]=R,Z[9]=I;else I=Z[9];let k;if(Z[10]===Symbol.for("react.memo_cache_sentinel"))k=G(K,{dimColor:!0,children:"Leave empty for default (English)"}),Z[10]=k;else k=Z[10];let _;if(Z[11]!==I)_=z(U,{flexDirection:"column",gap:1,children:[F,I,k]}),Z[11]=I,Z[12]=_;else _=Z[12];return _}var QJ,m0;var XJ=r(()=>{v0();SZ();lZ();jY();x();QJ=d($Z(),1),m0=d(FZ(),1)});function GJ(q,{grouped:Z=!0}={}){if(!Z)return q.map((W)=>({kind:"setting",id:W.id,item:W}));let Q=new Map;for(let W of q){let D=Q.get(W.id);if(D)D.push(W);else Q.set(W.id,[W])}let Y=[],V=(W,D)=>{if(D.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${W.id}`});Y.push({kind:"header",id:`header:${W.id}`,label:W.label});for(let N of D)Y.push({kind:"setting",id:N.id,item:N})};for(let W of $Y){let D=[];for(let N of W.settingIds){let L=Q.get(N);if(!L)continue;D.push(...L),Q.delete(N)}V(W,D)}return V(wY,[...Q.values()].flat()),Y}function hZ(q){return q?.kind==="setting"}function Q0(q){return q.findIndex((Z)=>hZ(Z))}function p0(q){for(let Z=q.length-1;Z>=0;Z--)if(hZ(q[Z]))return Z;return-1}function J0(q,Z,Q){for(let Y=Z+Q;Y>=0&&Y<q.length;Y+=Q)if(hZ(q[Y]))return Y;return hZ(q[Z])?Z:Q0(q)}function VJ(q,Z,Q){if(Q===1){for(let V=Z+1;V<q.length;V++)if(q[V]?.kind==="header")return J0(q,V,1);return p0(q)}let Y=-1;for(let V=Z-1;V>=0;V--)if(q[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(q[V]?.kind==="header")return J0(q,V,1);return Q0(q)}function x0(q){return q.reduce((Z,Q)=>hZ(Q)?Z+1:Z,0)}var $Y,wY;var KJ=r(()=>{$Y=[{id:"model",label:"Model & thinking",settingIds:["model","thinkingEnabled","fastMode","outputStyle","language","autoCompactEnabled"]},{id:"agents",label:"Agents & workflows",settingIds:["autoBackgroundAgentsEnabled","workflowsDefaultBackground","teammateMode","teammateDefaultModel"]},{id:"tools",label:"Tools & permissions",settingIds:["defaultPermissionMode","useAutoModeDuringPlan","bashOutputFilterEnabled","bashOutputFilterCapEnabled","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","collapseFileWritesEnabled","showCacheStats","spinnerTipsEnabled","prefersReducedMotion","prStatusFooterEnabled","promptSuggestionEnabled","editorMode","inlineImagesMode"]},{id:"terminal",label:"Terminal",settingIds:["terminalRenderer","frameRate","terminalProgressBarEnabled","showStatusInTerminalTab","copyOnSelect","copyFullResponse"]},{id:"notifications",label:"Notifications",settingIds:["notifChannel","taskCompleteNotifEnabled","inputNeededNotifEnabled","agentPushNotifEnabled"]},{id:"integrations",label:"Integrations",settingIds:["diffTool","autoConnectIde","autoInstallIdeExtension","remoteControlAtStartup"]},{id:"context",label:"Context & privacy",settingIds:["thinkingHistoryRedactionEnabled","narrationHistoryRedactionEnabled","showExternalIncludesDialog"]},{id:"updates",label:"Updates & account",settingIds:["autoUpdatesChannel","apiKey"]}],wY={id:"other",label:"Other",settingIds:[]}});function eJ({onClose:q,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:W,focusHeader:D}=uJ(),N=dZ(),[,L]=xZ(),M=TJ(),[H,O]=v.useState(f()),F=l.useRef(f()),[P,R]=v.useState(u0()),I=l.useRef(u0()),[k,_]=v.useState(P?.outputStyle||U0),t=l.useRef(k),[w,u]=v.useState(P?.language),m=l.useRef(w),[j,QZ]=v.useState(0),[o,YZ]=v.useState(0),[n,zZ]=v.useState(!0),jZ=$J(),[e]=v.useState(()=>n0()),{rows:vZ,columns:XZ}=RZ(),F0=Math.max(24,Math.min(44,XZ-18)),C=V??Math.min(Math.floor(vZ*0.8),30),p=Math.max(5,C-10),BZ=EZ((J)=>J.mainLoopModel),N0=EZ((J)=>J.verbose),gZ=EZ((J)=>J.thinkingEnabled),mZ=EZ((J)=>Y0()?J.fastMode:!1),pZ=EZ((J)=>J.promptSuggestionEnabled),j0=!1,GZ=vJ(),[tZ,E]=v.useState({}),$=l.useRef(gZ),[a]=v.useState(()=>d0("localSettings")),[VZ]=v.useState(()=>d0("userSettings")),HZ=l.useRef(M),eZ=gJ(),[UZ]=v.useState(()=>{let J=eZ.getState();return{mainLoopModel:J.mainLoopModel,mainLoopModelForSession:J.mainLoopModelForSession,verbose:J.verbose,thinkingEnabled:J.thinkingEnabled,fastMode:J.fastMode,promptSuggestionEnabled:J.promptSuggestionEnabled,isBriefOnly:J.isBriefOnly,replBridgeEnabled:J.replBridgeEnabled,replBridgeOutboundOnly:J.replBridgeOutboundOnly,settings:J.settings}}),[$0]=v.useState(()=>c0()),NZ=l.useRef(!1),[HY,Z0]=v.useState(!1),[i,g]=v.useState(null),{query:kZ,setQuery:P0,cursorOffset:WY}=xJ({isActive:n&&i===null&&!W,onExit:()=>zZ(!1),onExitUp:D,passthroughCtrlKeys:["c","d"]}),Mq=n&&!W;l.useEffect(()=>{Y?.(Mq)},[Mq,Y]);let zY=_J(Z.options.mcpClients),DY=!zJ(process.env.CLAUDIN_DISABLE_FILE_CHECKPOINTING),Rq=l.use(qQ(!0)),OY=QQ(Rq),IZ=kJ();function Bq(J){S("",{from_model:BZ,to_model:J}),GZ((A)=>({...A,mainLoopModel:J,mainLoopModelForSession:null})),E((A)=>{let B=k0(J)+(rJ(J,!1,fJ())?" · Billed as extra usage":"");if("model"in A){let{model:h,...DZ}=A;return{...DZ,model:B}}return{...A,model:B}})}function FY(J){y((X)=>({...X,verbose:J})),O({...f(),verbose:J}),GZ((X)=>({...X,verbose:J})),E((X)=>{if("verbose"in X){let{verbose:A,...B}=X;return B}return{...X,verbose:J}})}let w0=[{id:"autoCompactEnabled",label:"Auto-compact",value:H.autoCompactEnabled,type:"boolean",onChange(J){y((X)=>({...X,autoCompactEnabled:J})),O({...f(),autoCompactEnabled:J}),S("",{enabled:J})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:H.thinkingHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,thinkingHistoryRedactionEnabled:J})),O({...f(),thinkingHistoryRedactionEnabled:J}),S("claudin_thinking_history_redaction_setting_changed",{enabled:J})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:H.narrationHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,narrationHistoryRedactionEnabled:J})),O({...f(),narrationHistoryRedactionEnabled:J}),S("claudin_narration_history_redaction_setting_changed",{enabled:J})}},{id:"showCacheStats",label:"Cache stats display",value:H.showCacheStats,options:["off","compact","full"],type:"enum",onChange(J){let X=J==="off"||J==="compact"||J==="full"?J:"compact";y((A)=>({...A,showCacheStats:X})),O({...f(),showCacheStats:X}),S("",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:H.toolResultSummarizerEnabled,type:"boolean",onChange(J){y((X)=>({...X,toolResultSummarizerEnabled:J})),O({...f(),toolResultSummarizerEnabled:J}),S("claudin_tool_result_summarizer_setting_changed",{enabled:J})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:H.bashOutputFilterEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterEnabled:J})),O({...f(),bashOutputFilterEnabled:J}),S("claudin_bash_output_filter_setting_changed",{enabled:J})}},{id:"bashOutputFilterCapEnabled",label:"Bash output line cap",value:H.bashOutputFilterCapEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterCapEnabled:J})),O({...f(),bashOutputFilterCapEnabled:J}),S("claudin_bash_output_filter_cap_setting_changed",{enabled:J})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:H.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(J){y((X)=>({...X,autoBackgroundAgentsEnabled:J})),O({...f(),autoBackgroundAgentsEnabled:J}),S("claudin_auto_background_agents_setting_changed",{enabled:J})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:H.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,repeatedFailureHintEnabled:J})),O({...f(),repeatedFailureHintEnabled:J}),S("claudin_repeated_failure_hint_setting_changed",{enabled:J})}},{id:"collapseFileWritesEnabled",label:"Collapse file writes",value:H.collapseFileWritesEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,collapseFileWritesEnabled:J})),O({...f(),collapseFileWritesEnabled:J}),S("claudin_collapse_file_writes_setting_changed",{enabled:J})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:H.workflowsDefaultBackground===!0,type:"boolean",onChange(J){y((X)=>({...X,workflowsDefaultBackground:J})),O({...f(),workflowsDefaultBackground:J})}},{id:"inlineImagesMode",label:"Inline terminal images",value:H.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(J){let X=J==="auto"||J==="enable"||J==="disable"?J:"auto";y((A)=>({...A,inlineImagesMode:X})),O({...f(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:P?.spinnerTipsEnabled??!0,type:"boolean",onChange(J){ZZ("localSettings",{spinnerTipsEnabled:J}),R((X)=>({...X,spinnerTipsEnabled:J})),S("",{enabled:J})}},{id:"prefersReducedMotion",label:"Reduce motion",value:P?.prefersReducedMotion??!1,type:"boolean",onChange(J){ZZ("localSettings",{prefersReducedMotion:J}),R((X)=>({...X,prefersReducedMotion:J})),GZ((X)=>({...X,settings:{...X.settings,prefersReducedMotion:J}})),S("",{enabled:J})}},{id:"thinkingEnabled",label:"Thinking mode",value:gZ??!0,type:"boolean",onChange(J){GZ((X)=>({...X,thinkingEnabled:J})),ZZ("userSettings",{alwaysThinkingEnabled:J?void 0:!1}),S("",{enabled:J})}},...Y0()&&i0()?[{id:"fastMode",label:`Fast mode (${CJ} only)`,value:!!mZ,type:"boolean",onChange(J){if(hJ(),ZZ("userSettings",{fastMode:J?!0:void 0}),J)GZ((X)=>({...X,mainLoopModel:l0(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:l0(),"Fast mode":"ON"}));else GZ((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:pZ,type:"boolean",onChange(J){GZ((X)=>({...X,promptSuggestionEnabled:J})),ZZ("userSettings",{promptSuggestionEnabled:J?void 0:!1})}},...DY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:H.fileCheckpointingEnabled,type:"boolean",onChange(J){y((X)=>({...X,fileCheckpointingEnabled:J})),O({...f(),fileCheckpointingEnabled:J}),S("",{enabled:J})}}]:[],{id:"verbose",label:"Verbose output",value:N0,type:"boolean",onChange:FY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:H.terminalProgressBarEnabled,type:"boolean",onChange(J){y((X)=>({...X,terminalProgressBarEnabled:J})),O({...f(),terminalProgressBarEnabled:J}),S("",{enabled:J})}},...FJ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:H.showStatusInTerminalTab??!1,type:"boolean",onChange(J){y((X)=>({...X,showStatusInTerminalTab:J})),O({...f(),showStatusInTerminalTab:J}),S("",{enabled:J})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:H.showTurnDuration,type:"boolean",onChange(J){y((X)=>({...X,showTurnDuration:J})),O({...f(),showTurnDuration:J}),S("",{enabled:J})}},{id:"defaultPermissionMode",label:"Default permission mode",value:P?.permissions?.defaultMode||"default",options:(()=>{let J=["default","plan"],X=NJ,A=["bypassPermissions"];return[...J,...X.filter((B)=>!J.includes(B)&&!A.includes(B))]})(),type:"enum",onChange(J){let X=LJ(J),A=PJ(X)?AJ(X):X,B=ZZ("userSettings",{permissions:{...P?.permissions,defaultMode:A}});if(B.error){MZ(B.error);return}R((h)=>({...h,permissions:{...h?.permissions,defaultMode:A}})),E((h)=>({...h,defaultPermissionMode:J})),S("",{setting:"defaultPermissionMode",value:J})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:P?.useAutoModeDuringPlan??!0,type:"boolean",onChange(J){ZZ("userSettings",{useAutoModeDuringPlan:J}),R((X)=>({...X,useAutoModeDuringPlan:J})),GZ((X)=>{let A=o0(X.toolPermissionContext);if(A===X.toolPermissionContext)return X;return{...X,toolPermissionContext:A}}),E((X)=>({...X,"Use auto mode during plan":J}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:H.respectGitignore,type:"boolean",onChange(J){y((X)=>({...X,respectGitignore:J})),O({...f(),respectGitignore:J}),S("",{enabled:J})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:H.copyFullResponse,type:"boolean",onChange(J){y((X)=>({...X,copyFullResponse:J})),O({...f(),copyFullResponse:J}),S("",{setting:"copyFullResponse",value:String(J)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:H.copyOnSelect??!0,type:"boolean",onChange(J){y((X)=>({...X,copyOnSelect:J})),O({...f(),copyOnSelect:J}),S("",{setting:"copyOnSelect",value:String(J)})}}]:[],{id:"terminalRenderer",label:jJ()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:n0()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(J){let X=J==="fullscreen";y((A)=>({...A,flickerFreeMode:X})),O({...f(),flickerFreeMode:X}),S("",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:sJ()?`Frame rate (env, ${s0()}fps)`:`Frame rate (${s0()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:H.renderFrameRate??"auto",options:[...aJ],type:"enum",onChange(J){y((X)=>({...X,renderFrameRate:J})),O({...f(),renderFrameRate:J}),S("",{setting:"renderFrameRate",value:String(J)})}},IZ?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:P?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:M,type:"managedEnum",onChange:L},{id:"notifChannel",label:"Notifications",value:H.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(J){y((X)=>({...X,preferredNotifChannel:J})),O({...f(),preferredNotifChannel:J})}},{id:"outputStyle",label:"Output style",value:k,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:H.editorMode==="emacs"?"normal":H.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(J){y((X)=>({...X,editorMode:J})),O({...f(),editorMode:J}),S("",{mode:J,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:H.prStatusFooterEnabled??!0,type:"boolean",onChange(J){y((X)=>{if(X.prStatusFooterEnabled===J)return X;return{...X,prStatusFooterEnabled:J}}),O({...f(),prStatusFooterEnabled:J}),S("",{enabled:J})}},{id:"model",label:"Model",value:BZ===null?"Default (recommended)":BZ,type:"managedEnum",onChange:Bq},...zY?[{id:"diffTool",label:"Diff tool",value:H.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(J){y((X)=>({...X,diffTool:J})),O({...f(),diffTool:J}),S("",{tool:J,source:"config_panel"})}}]:[],...!r0()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:H.autoConnectIde??!1,type:"boolean",onChange(J){y((X)=>({...X,autoConnectIde:J})),O({...f(),autoConnectIde:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...r0()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:H.autoInstallIdeExtension??!0,type:"boolean",onChange(J){y((X)=>({...X,autoInstallIdeExtension:J})),O({...f(),autoInstallIdeExtension:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...bJ()?(()=>{let J=mJ();return[{id:"teammateMode",label:J?`Teammate mode [overridden: ${J}]`:"Teammate mode",value:H.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(A){if(A!=="auto"&&A!=="tmux"&&A!=="in-process")return;pJ(A),y((B)=>({...B,teammateMode:A})),O({...f(),teammateMode:A}),S("",{mode:A})}},{id:"teammateDefaultModel",label:"Default teammate model",value:HJ(H.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...lJ()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:H.remoteControlAtStartup===void 0?"default":String(H.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(J){if(J==="default")y((A)=>{if(A.remoteControlAtStartup===void 0)return A;let B={...A};return delete B.remoteControlAtStartup,B}),O({...f(),remoteControlAtStartup:void 0});else{let A=J==="true";y((B)=>{if(B.remoteControlAtStartup===A)return B;return{...B,remoteControlAtStartup:A}}),O({...f(),remoteControlAtStartup:A})}let X=RJ();GZ((A)=>{if(A.replBridgeEnabled===X&&!A.replBridgeOutboundOnly)return A;return{...A,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...OY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(BJ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let J=wZ(),X=J?.transport==="anthropic"?J.apiKey?.trim():void 0;if(!X)return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:nZ(X)})]}),searchText:"Use custom API key",value:Boolean(H.customApiKeyResponses?.approved?.includes(nZ(X))),type:"boolean",onChange(A){y((B)=>{let h={...B};if(!h.customApiKeyResponses)h.customApiKeyResponses={approved:[],rejected:[]};if(!h.customApiKeyResponses.approved)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[]};if(!h.customApiKeyResponses.rejected)h.customApiKeyResponses={...h.customApiKeyResponses,rejected:[]};{let DZ=nZ(X);if(A)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[...(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),DZ],rejected:(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ)};else h.customApiKeyResponses={...h.customApiKeyResponses,approved:(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),rejected:[...(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ),DZ]}}return h}),O(f())}}]})()],Uq=l.useMemo(()=>{if(!kZ)return w0;let J=kZ.toLowerCase();return w0.filter((X)=>{if(X.id.toLowerCase().includes(J))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(J)})},[w0,kZ]),s=l.useMemo(()=>GJ(Uq,{grouped:kZ===""}),[Uq,kZ]),kq=x0(s.slice(0,o)),Iq=x0(s.slice(o+p));l.useEffect(()=>{if(j>=s.length){let J=Math.max(0,p0(s));QZ(J),YZ(Math.max(0,J-p+1));return}if(!hZ(s[j])){let J=Math.max(0,J0(s,j,1));QZ(J),YZ((X)=>J>=X+p?J-p+1:X);return}YZ((J)=>{if(j<J)return j;if(j>=J+p)return j-p+1;return J})},[s,j,p]);let _0=v.useCallback((J)=>{YZ((X)=>{if(J<X)return J;if(J>=X+p)return J-p+1;return X})},[p]),NY=v.useCallback(()=>{if(i!==null)return;let J=Object.entries(tZ).map(([OZ,Cq])=>{return S("",{key:OZ,value:Cq}),`Set ${OZ} to ${KZ.bold(Cq)}`}),X=wZ(),B=X?.transport==="anthropic"?X.apiKey?.trim():void 0,h=Boolean(B&&F.current.customApiKeyResponses?.approved?.includes(nZ(B))),DZ=Boolean(B&&H.customApiKeyResponses?.approved?.includes(nZ(B)));if(h!==DZ)J.push(`${DZ?"Enabled":"Disabled"} custom API key`),S("",{key:"env.ANTHROPIC_API_KEY",value:DZ});if(H.theme!==F.current.theme)J.push(`Set theme to ${KZ.bold(H.theme)}`);if(H.preferredNotifChannel!==F.current.preferredNotifChannel)J.push(`Set notifications to ${KZ.bold(H.preferredNotifChannel)}`);if(k!==t.current)J.push(`Set output style to ${KZ.bold(k)}`);if(w!==m.current)J.push(`Set response language to ${KZ.bold(w??"Default (English)")}`);if(H.editorMode!==F.current.editorMode)J.push(`Set editor mode to ${KZ.bold(H.editorMode||"emacs")}`);if(H.diffTool!==F.current.diffTool)J.push(`Set diff tool to ${KZ.bold(H.diffTool)}`);if(H.autoConnectIde!==F.current.autoConnectIde)J.push(`${H.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(H.autoInstallIdeExtension!==F.current.autoInstallIdeExtension)J.push(`${H.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(H.autoCompactEnabled!==F.current.autoCompactEnabled)J.push(`${H.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(H.thinkingHistoryRedactionEnabled!==F.current.thinkingHistoryRedactionEnabled)J.push(`${H.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(H.narrationHistoryRedactionEnabled!==F.current.narrationHistoryRedactionEnabled)J.push(`${H.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(H.toolResultSummarizerEnabled!==F.current.toolResultSummarizerEnabled)J.push(`${H.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(H.autoBackgroundAgentsEnabled!==F.current.autoBackgroundAgentsEnabled)J.push(`${H.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(H.workflowsDefaultBackground!==F.current.workflowsDefaultBackground)J.push(`${H.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(H.bashOutputFilterEnabled!==F.current.bashOutputFilterEnabled)J.push(`${H.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(H.bashOutputFilterCapEnabled!==F.current.bashOutputFilterCapEnabled)J.push(`${H.bashOutputFilterCapEnabled!==!1?"Enabled":"Disabled"} bash output line cap`);if(H.repeatedFailureHintEnabled!==F.current.repeatedFailureHintEnabled)J.push(`${H.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(H.collapseFileWritesEnabled!==F.current.collapseFileWritesEnabled)J.push(`${H.collapseFileWritesEnabled!==!1?"Enabled":"Disabled"} collapse file writes`);if(H.respectGitignore!==F.current.respectGitignore)J.push(`${H.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(H.copyFullResponse!==F.current.copyFullResponse)J.push(`${H.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(H.copyOnSelect!==F.current.copyOnSelect)J.push(`${H.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(H.flickerFreeMode!==F.current.flickerFreeMode)J.push(`Set terminal UI renderer to ${KZ.bold(H.flickerFreeMode?"fullscreen":"default")}`);if(H.renderFrameRate!==F.current.renderFrameRate)J.push(`Set frame rate to ${KZ.bold(H.renderFrameRate??"auto")} (applies on restart)`);if(H.terminalProgressBarEnabled!==F.current.terminalProgressBarEnabled)J.push(`${H.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(H.showStatusInTerminalTab!==F.current.showStatusInTerminalTab)J.push(`${H.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(H.showTurnDuration!==F.current.showTurnDuration)J.push(`${H.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(H.remoteControlAtStartup!==F.current.remoteControlAtStartup){let OZ=H.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${H.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;J.push(OZ)}if(P?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)J.push(`Set auto-update channel to ${KZ.bold(P?.autoUpdatesChannel??"latest")}`);if(J.length>0)q(J.join(`
2
- `));else q("Config dialog dismissed",{display:"system"})},[i,tZ,H,BZ,k,w,P?.autoUpdatesChannel,Y0()?P?.fastMode:void 0,q]),Eq=v.useCallback(()=>{if(M!==HZ.current)L(HZ.current);y(()=>F.current);let J=a;ZZ("localSettings",{spinnerTipsEnabled:J?.spinnerTipsEnabled,prefersReducedMotion:J?.prefersReducedMotion,defaultView:J?.defaultView,outputStyle:J?.outputStyle});let X=VZ;ZZ("userSettings",{alwaysThinkingEnabled:X?.alwaysThinkingEnabled,fastMode:X?.fastMode,promptSuggestionEnabled:X?.promptSuggestionEnabled,autoUpdatesChannel:X?.autoUpdatesChannel,minimumVersion:X?.minimumVersion,language:X?.language,...{useAutoModeDuringPlan:X?.useAutoModeDuringPlan},syntaxHighlightingDisabled:X?.syntaxHighlightingDisabled,permissions:X?.permissions===void 0?void 0:{...X.permissions,defaultMode:X.permissions.defaultMode}});let A=UZ;if(GZ((B)=>({...B,mainLoopModel:A.mainLoopModel,mainLoopModelForSession:A.mainLoopModelForSession,verbose:A.verbose,thinkingEnabled:A.thinkingEnabled,fastMode:A.fastMode,promptSuggestionEnabled:A.promptSuggestionEnabled,isBriefOnly:A.isBriefOnly,replBridgeEnabled:A.replBridgeEnabled,replBridgeOutboundOnly:A.replBridgeOutboundOnly,settings:A.settings,toolPermissionContext:o0(B.toolPermissionContext)})),c0()!==$0)WJ($0)},[M,L,a,VZ,UZ,$0,GZ]),PY=v.useCallback(()=>{if(i!==null)return;if(NZ.current)Eq();q("Config dialog dismissed",{display:"system"})},[i,Eq,q]);b("confirm:no",PY,{context:"Settings",isActive:i===null&&!n&&!W}),b("settings:close",NY,{context:"Settings",isActive:i===null&&!n&&!W});let b0=v.useCallback(()=>{let J=s[j];if(!hZ(J))return;let X=J.item;if(!X.onChange)return;if(X.type==="boolean"){if(NZ.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===$.current)Z0(!1);else if(Z.messages.some((h)=>h.type==="assistant"))Z0(!0)}return}if(X.id==="theme"||X.id==="model"||X.id==="teammateDefaultModel"||X.id==="showExternalIncludesDialog"||X.id==="outputStyle"||X.id==="language")switch(X.id){case"theme":g("Theme"),Q(!0);return;case"model":g("Model"),Q(!0);return;case"teammateDefaultModel":g("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":g("ExternalIncludes"),Q(!0);return;case"outputStyle":g("OutputStyle"),Q(!0);return;case"language":g("Language"),Q(!0);return}if(X.id==="autoUpdatesChannel"){if(IZ){g("EnableAutoUpdates"),Q(!0);return}if((P?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else NZ.current=!0,ZZ("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((B)=>({...B,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("",{channel:"latest"});return}if(X.type==="enum"){NZ.current=!0;let B=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[B]);return}},[IZ,s,j,P?.autoUpdatesChannel,Q]),A0=(J)=>{Z0(!1);let X=J0(s,j,J);if(X<0)return;QZ(X),_0(X)};wJ({"select:previous":()=>{let J=Q0(s);if(J<0||j<=J)Z0(!1),zZ(!0),YZ(0);else A0(-1)},"select:next":()=>A0(1),"scroll:lineUp":()=>A0(-1),"scroll:lineDown":()=>A0(1),"select:accept":b0,"settings:search":()=>{zZ(!0),P0("")}},{context:"Settings",isActive:i===null&&!n&&!W});let AY=v.useCallback((J)=>{if(i!==null)return;if(W)return;if(n){if(J.key==="escape"){if(J.preventDefault(),kZ.length>0)P0("");else zZ(!1);return}if(J.key==="return"||J.key==="down"||J.key==="wheeldown")J.preventDefault(),zZ(!1),QZ(Math.max(0,Q0(s))),YZ(0);return}if(J.key==="left"||J.key==="right"||J.key==="tab"){J.preventDefault(),b0();return}if(J.key==="["||J.key==="]"){J.preventDefault();let X=VJ(s,j,J.key==="["?-1:1);if(X>=0)Z0(!1),QZ(X),_0(X);return}if(J.ctrl||J.meta)return;if(J.key==="j"||J.key==="k"||J.key==="/")return;if(J.key.length===1&&J.key!==" ")J.preventDefault(),zZ(!0),P0(J.key)},[i,W,n,kZ,P0,b0,s,j,_0]);return G(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:AY,children:i==="Theme"?z(WZ,{children:[G(nJ,{onThemeSelect:(J)=>{NZ.current=!0,L(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(U,{children:G(K,{dimColor:!0,italic:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):i==="Model"?z(WZ,{children:[G(a0,{initial:BZ,onSelect:(J,X)=>{NZ.current=!0,Bq(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:Y0()?mZ&&SJ(BZ)&&i0():!1}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="TeammateModel"?z(WZ,{children:[G(a0,{initial:H.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(J,X)=>{if(g(null),Q(!1),H.teammateDefaultModel===void 0&&J===null)return;NZ.current=!0,y((A)=>A.teammateDefaultModel===J?A:{...A,teammateDefaultModel:J}),O({...f(),teammateDefaultModel:J}),E((A)=>({...A,teammateDefaultModel:HJ(J)})),S("",{model:J})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="ExternalIncludes"?z(WZ,{children:[G(oJ,{onDone:()=>{g(null),Q(!1)},externalIncludes:JQ(Rq)}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):i==="OutputStyle"?z(WZ,{children:[G(ZJ,{initialStyle:k,onComplete:(J)=>{NZ.current=!0,_(J??U0),g(null),Q(!1),ZZ("localSettings",{outputStyle:J}),S("",{style:J??U0,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="Language"?z(WZ,{children:[G(YJ,{initialLanguage:w,onComplete:(J)=>{NZ.current=!0,u(J),g(null),Q(!1),ZZ("userSettings",{language:J}),S("",{language:J??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):i==="EnableAutoUpdates"?G(uZ,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:IZ?.type!=="config"?z(WZ,{children:[G(K,{children:IZ?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),IZ?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",IZ.envVar," to re-enable auto-updates."]})]}):G(iZ,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(J)=>{NZ.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),O({...f(),autoUpdates:!0}),ZZ("userSettings",{autoUpdatesChannel:J,minimumVersion:void 0}),R((X)=>({...X,autoUpdatesChannel:J,minimumVersion:void 0})),S("",{channel:J})}})}):i==="ChannelDowngrade"?G(nq,{currentVersion:"99.0.0",onChoice:(J)=>{if(g(null),Q(!1),J==="cancel")return;NZ.current=!0;let X={autoUpdatesChannel:"stable"};if(J==="stay")X.minimumVersion="99.0.0";ZZ("userSettings",X),R((A)=>({...A,...X})),S("",{channel:"stable",minimum_version_set:J==="stay"})}}):z(U,{flexDirection:"column",gap:1,marginY:N?void 0:1,children:[G(cJ,{query:kZ,isFocused:n&&!W,isTerminalFocused:jZ,cursorOffset:WY,placeholder:"Search settings…"}),G(U,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',kZ,'"']}):z(WZ,{children:[kq>0&&z(K,{dimColor:!0,children:[CZ.arrowUp," ",kq," more above"]}),s.slice(o,o+p).map((J,X)=>{let A=o+X;if(J.kind==="spacer")return G(K,{children:" "},J.id);if(J.kind==="header")return z(K,{dimColor:!0,children:[" ",J.label]},J.id);let B=J.item,h=A===j&&!W&&!n;return G(l.Fragment,{children:z(U,{children:[G(U,{width:F0,flexShrink:0,paddingRight:1,children:z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:[h?CZ.pointer:" "," ",B.label]})}),G(U,{children:B.type==="boolean"?z(WZ,{children:[G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()}),HY&&B.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):B.id==="theme"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:JX[B.value.toString()]??B.value.toString()}):B.id==="notifChannel"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:G(QX,{value:B.value.toString()})}):B.id==="defaultPermissionMode"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:MJ(B.value)}):B.id==="autoUpdatesChannel"&&IZ?z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",UJ(IZ),")"]})]}):G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()})},h?"selected":"unselected")]})},B.id)}),Iq>0&&z(K,{dimColor:!0,children:[CZ.arrowDown," ",Iq," more below"]})]})}),W?G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"←/→ tab",action:"switch"}),G(PZ,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(qZ,{children:[G(K,{children:"Type to filter"}),G(PZ,{shortcut:"Enter/↓",action:"select"}),G(PZ,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),G(T,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),G(T,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function HJ(q){if(q===void 0)return k0(dJ());if(q===null)return"Default (leader's model)";return k0(q)}function QX(q){let Z=tJ.c(4),{value:Q}=q;switch(Q){case"auto":return"Auto";case"iterm2":{let Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["iTerm2 ",G(K,{dimColor:!0,children:"(OSC 9)"})]}),Z[0]=Y;else Y=Z[0];return Y}case"terminal_bell":{let Y;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Terminal Bell ",G(K,{dimColor:!0,children:"(\\a)"})]}),Z[1]=Y;else Y=Z[1];return Y}case"kitty":{let Y;if(Z[2]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Kitty ",G(K,{dimColor:!0,children:"(OSC 99)"})]}),Z[2]=Y;else Y=Z[2];return Y}case"ghostty":{let Y;if(Z[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Ghostty ",G(K,{dimColor:!0,children:"(OSC 777)"})]}),Z[3]=Y;else Y=Z[3];return Y}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var tJ,l,v,JX;var ZQ=r(()=>{SZ();lZ();v0();IJ();mY();EJ();IJ();OJ();vY();oY();I0();_Y();aY();sY();yq();tY();yJ();eY();ZX();rq();g0();iq();qJ();XJ();YX();cY();cZ();E0();iJ();M0();nY();dY();gY();hq();tq();DJ();bY();uY();iY();rY();lY();X0();pY();xY();qX();KJ();x();tJ=d($Z(),1),l=d(FZ(),1),v=d(FZ(),1);JX={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function V0(q){return typeof q==="object"&&q!==null}function AZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function rZ(q){return typeof q==="number"&&Number.isFinite(q)?q:void 0}function t0(q){return typeof q==="boolean"?q:void 0}function e0(q){let Z=rZ(q);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function C0(q){if(!V0(q))return;let Z=rZ(q.used_percent)??rZ(q.usedPercent);if(Z===void 0)return;let Q=rZ(q.window_minutes)??rZ(q.windowDurationMins)??(()=>{let V=rZ(q.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=e0(q.resets_at)??e0(q.resetsAt)??e0(q.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(q){if(!V0(q))return;let Z=t0(q.has_credits)??t0(q.hasCredits)??!1,Q=t0(q.unlimited)??!1,Y=AZ(q.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function G0(q,Z){if(!V0(q))return;let Q=AZ(q.limit_name)??AZ(q.limitName)??AZ(q.limit_id)??AZ(q.limitId)??Z,Y=C0(q.primary)??C0(q.primary_window),V=C0(q.secondary)??C0(q.secondary_window),W=DQ(q.credits);if(!Y&&!V&&!W)return;return{limitName:Q,primary:Y,secondary:V,credits:W}}function Zq(q,Z="codex"){if(Array.isArray(q))return q.map((Q,Y)=>G0(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!V0(q))return[];return Object.entries(q).map(([Q,Y])=>G0(Y,Q)).filter((Q)=>Q!==void 0)}function VX(q){let Z=AZ(q.plan_type)??AZ(q.planType),Q=[],Y=DQ(q.credits),V=G0(q.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let W=G0(q.code_review_rate_limit,"code review");if(W)Q.push(W);return Q.push(...Zq(q.additional_rate_limits??q.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function KX(q){if(Array.isArray(q))return{snapshots:Zq(q)};if(!V0(q))return{snapshots:[]};if("rate_limit"in q||"code_review_rate_limit"in q||"additional_rate_limits"in q||"credits"in q)return VX(q);let Z=q.rate_limits??q.rateLimits??q.rate_limits_by_limit_id??q.rateLimitsByLimitId;if(Z!==void 0)return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Zq(Z)};let Q=G0(q,"codex");return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Q?[Q]:[]}}function oZ(q){if(!q)return q;return q[0].toUpperCase()+q.slice(1)}function YQ(q,Z){if(q===void 0||q<=0)return Z;if(q===10080)return"weekly";if(q%1440===0)return`${q/1440}d`;if(q%60===0)return`${q/60}h`;return`${q}m`}function HX(q){let Z=q?.trim();if(!Z)return;let Q=Number.parseInt(Z,10);if(Number.isFinite(Q)&&`${Q}`===Z&&Q>0)return`${Q}`;let Y=Number.parseFloat(Z);if(Number.isFinite(Y)&&Y>0)return`${Math.round(Y)}`;return}function WX(q){if(!q?.hasCredits)return;if(q.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=HX(q.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function OQ(q){let Z=[];for(let Q of q){let Y=Q.limitName.trim()||"codex",V=WX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let D=Y.toLowerCase()!=="codex",N=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),L=D&&N===1;if(D&&!L)Z.push({kind:"text",label:`${oZ(Y)} limit`,value:""});if(Q.primary){let M=oZ(YQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let M=oZ(YQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function FQ(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>oZ(Z.toLowerCase())).join(" ")}function zX(q=KQ){return new URL("/backend-api/wham/usage",q).toString()}async function NQ(){let q=await VQ().catch(async(V)=>{return _Z(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await GQ()}}),Z=WQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=zQ({storedCredentials:q.credentials});if(!Q.apiKey){let V=XQ()?"":", choose Codex OAuth in /provider",W=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${W}.`)}if(!Q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let Y=await fetch(zX(Z.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!Y.ok){let V=await Y.text().catch(()=>"unknown error");throw Error(`Codex usage error ${Y.status}: ${V}`)}return KX(await Y.json())}var PQ=r(()=>{XX();qq();DJ();GX()});function DX({label:q,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),W=`${Math.floor(V)}% used`,D=Q?`Resets ${S0(Q,!0,!0)}`:void 0;if(Y>=62)return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:q}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]}),D?G(K,{dimColor:!0,children:D}):null]});return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),D?z(WZ,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",D]})]}):null]}),G(sZ,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]})}function OX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function LQ(){let[q,Z]=aZ.useState(null),[Q,Y]=aZ.useState(null),[V,W]=aZ.useState(!0),{columns:D}=RZ(),N=D-2,L=Math.min(N,80),M=AQ.useCallback(async()=>{W(!0),Y(null);try{Z(await NQ())}catch(F){MZ(F),Y(F instanceof Error?F.message:"Failed to load Codex usage")}finally{W(!1)}},[]);if(aZ.useEffect(()=>{M()},[M]),b("settings:retry",()=>{M()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading Codex usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let H=OQ(q.snapshots),O=FQ(q.planType);return z(U,{flexDirection:"column",gap:1,width:"100%",children:[O?z(K,{dimColor:!0,children:["Plan: ",O]}):null,H.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,H.map((F,P)=>F.kind==="window"?G(DX,{label:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,maxWidth:L},`${F.label}-${P}`):G(OX,{label:F.label,value:F.value},`${F.label}-${P}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var AQ,aZ;var MQ=r(()=>{X0();SZ();lZ();PQ();Jq();I0();cZ();E0();Qq();x();AQ=d(FZ(),1),aZ=d(FZ(),1)});var K0="https://api.minimax.io/v1",H0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var Yq=()=>{};function fZ(q){return typeof q==="object"&&q!==null}function JZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function Gq(q){if(typeof q==="number"&&Number.isFinite(q))return q;if(typeof q==="string"&&q.trim()){let Z=Number.parseFloat(q);if(Number.isFinite(Z))return Z}return}function h0(q){return Math.max(0,Math.min(100,Math.round(q)))}function FX(q){if(typeof q==="string"){let Y=Date.parse(q);return Number.isNaN(Y)?q:new Date(Y).toISOString()}let Z=Gq(q);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(q,Z){let Q=Gq(q);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return FX(q)}function W0(q,Z){for(let Q of Z){let Y=Gq(q[Q]);if(Y!==void 0)return Y}return}function PX(q,Z){for(let Q of Z)if(q[Q]!==void 0)return NX(q[Q],Q);return}function z0(q,Z){return Z.some((Q)=>q[Q]!==void 0)}function UQ(q){return q?q[0].toUpperCase()+q.slice(1):q}function AX(q){if(!q)return"MiniMax";let Z=q.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>UQ(Q.toLowerCase())).join(" ")}function LX(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>UQ(Z.toLowerCase())).join(" ")}function kQ(q,Z){let Q=W0(q,Z.percentKeys),Y=W0(q,Z.remainingPercentKeys),V=W0(q,Z.totalKeys),W=W0(q,Z.remainingKeys),D=W0(q,Z.usedKeys),N=V!==void 0&&D!==void 0?V-D:W,L;if(V!==void 0&&V>0&&D!==void 0)L=h0(D/V*100);else if(V!==void 0&&V>0&&W!==void 0)L=h0((V-W)/V*100);else if(Q!==void 0)L=h0(Q);else if(Y!==void 0)L=h0(100-Y);if(L===void 0)return;return{label:Z.label,usedPercent:L,remaining:N,total:V,resetsAt:PX(q,Z.resetKeys)}}function MX(q){let Z=JZ(q.label)??JZ(q.name)??JZ(q.window_name)??JZ(q.windowName)??"Limit";return kQ(q,{label:Z,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function BX(q){if(z0(q,RX))return!0;return IQ.some((Z)=>z0(q,Z.totalKeys)||z0(q,Z.remainingKeys)||z0(q,Z.usedKeys)||z0(q,Z.percentKeys))}function Xq(q,Z){if(!fZ(q))return;let Q=IQ.map((V)=>kQ(q,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=MX(q);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:JZ(q.limit_name)??JZ(q.limitName)??JZ(q.model_name)??JZ(q.modelName)??JZ(q.name)??Z,windows:Q}}function RQ(q,Z="MiniMax"){if(Array.isArray(q))return q.map((Q,Y)=>Xq(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!fZ(q))return[];if(BX(q)){let Q=Xq(q,Z);return Q?[Q]:[]}return Object.entries(q).map(([Q,Y])=>Xq(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(q=H0,Z){return{availability:"unknown",planType:Z,snapshots:[],message:q}}function Vq(q){if(!fZ(q))return BQ();let Z=LX(JZ(q.plan_type)??JZ(q.planType)??JZ(q.subscription_type)??JZ(q.subscriptionType)??JZ(q.plan_name)??JZ(q.planName)),Y=[q.data,q.result,q.model_remains,q.modelRemains,q.remains,q.usage,q.quotas,q.models,fZ(q.data)?q.data.model_remains:void 0,fZ(q.data)?q.data.modelRemains:void 0,fZ(q.data)?q.data.models:void 0,fZ(q.data)?q.data.quotas:void 0,fZ(q.data)?q.data.remains:void 0].flatMap((W)=>RQ(W)).filter((W,D,N)=>{let L=`${W.limitName}:${W.windows.map((M)=>M.label).join("|")}`;return N.findIndex((M)=>`${M.limitName}:${M.windows.map((H)=>H.label).join("|")}`===L)===D});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(q);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function UX(q){if(q.remaining===void 0||q.total===void 0||q.total<=0)return;return`${q.remaining}/${q.total} remaining`}function Kq(q){let Z=[];for(let Q of q){let Y=AX(Q.limitName),V=Y.toLowerCase()!=="minimax",W=V&&Q.windows.length===1;if(V&&!W)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let D of Q.windows)Z.push({kind:"window",label:W?`${Y} ${D.label}`:D.label,usedPercent:D.usedPercent,resetsAt:D.resetsAt,extraSubtext:UX(D)})}return Z}var IQ,RX;var Hq=r(()=>{Yq();IQ=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],RX=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function IX(q){return q.replace(/\/+$/,"")}function EX(q=wZ()?.baseUrl??K0){let Z=q.trim();return Z?IX(Z):K0}function CX(q){let Z=q??wZ()?.baseUrl;if(!Z?.trim())return{baseUrl:K0,usedDefault:!0};return{baseUrl:EX(Z),usedDefault:!1}}function EQ(q){return{availability:"unknown",snapshots:[],message:q}}function SQ(q){let{baseUrl:Z,usedDefault:Q}=CX(q);try{let Y=new URL(`${Z}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}catch{if(Q){let Y=new URL(`${K0}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}throw Error(`MiniMax usage base URL is invalid: ${Z}`)}}async function Wq(){let q=wZ()?.apiKey;if(!q)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=SQ(),Q=[],Y=null;for(let V of Z){let W;try{W=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q}`,"Content-Type":"application/json","User-Agent":CQ()},signal:AbortSignal.timeout(5000)})}catch(N){_Z(`[minimax] usage request failed for ${V}: ${N instanceof Error?N.message:String(N)}`,{level:"warn"}),Y=N instanceof Error?N:Error(String(N));continue}if(!W.ok){let N=await W.text().catch(()=>"");if([400,401,403,404].includes(W.status)){Q.push({status:W.status,body:N});continue}Y=Error(`MiniMax usage error ${W.status}: ${N||"unknown error"}`);continue}let D=Vq(await W.json());if(D.availability==="available")return D}if(Q.length>0){let V=Q[Q.length-1];return _Z(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),EQ(H0)}if(Y)throw Y;return EQ(H0)}var hQ=r(()=>{EJ();qq();kX();Yq();Hq()});var fQ=r(()=>{Hq();hQ()});function fX(q){let Z=Math.max(1,Math.ceil(q/60000)),Q=Math.floor(Z/1440),Y=Math.floor(Z%1440/60),V=Z%60;if(Q>0)return Y>0?`${Q}d ${Y}h`:`${Q}d`;if(Y>0)return V>0?`${Y}h ${V}m`:`${Y}h`;return`${V}m`}function yX(q,Z){if(!q)return;let Q=Date.parse(q);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${fX(Y)}`}function TX({label:q,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:W}){let D=Math.max(0,Math.min(100,Z)),N=`${Math.floor(D)}% used`,L=yX(Q,W),M=[N,Y].filter((H)=>Boolean(H));return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),L?z(K,{dimColor:!0,children:[" · ",L]}):null]}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:D/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),M.length>0?G(K,{dimColor:!0,children:M.join(" · ")}):null]})]})}function jX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function TQ(){let[q,Z]=yZ.useState(null),[Q,Y]=yZ.useState(null),[V,W]=yZ.useState(!0),[D,N]=yZ.useState(()=>Date.now()),{columns:L}=RZ(),M=L-2,H=Math.min(M,80),O=yQ.useCallback(async()=>{W(!0),Y(null);try{Z(await Wq())}catch(P){MZ(P),Y(P instanceof Error?P.message:"Failed to load MiniMax usage")}finally{W(!1)}},[]);if(yZ.useEffect(()=>{O()},[O]),yZ.useEffect(()=>{let P=setInterval(()=>{N(Date.now())},SX);return()=>clearInterval(P)},[]),b("settings:retry",()=>{O()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading MiniMax usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let F=q.availability==="available"?Kq(q.snapshots):[];return z(U,{flexDirection:"column",gap:1,width:"100%",children:[q.planType?z(K,{dimColor:!0,children:["Plan: ",q.planType]}):null,q.availability==="unknown"?G(K,{dimColor:!0,children:q.message}):F.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,F.map((P,R)=>P.kind==="window"?G(TX,{label:P.label,usedPercent:P.usedPercent,resetsAt:P.resetsAt,extraSubtext:P.extraSubtext,maxWidth:H,nowMs:D},`${P.label}-${R}`):G(jX,{label:P.label,value:P.value},`${P.label}-${R}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var yQ,yZ,SX=30000,hX=18;var jQ=r(()=>{X0();SZ();lZ();fQ();I0();cZ();E0();Qq();x();yQ=d(FZ(),1),yZ=d(FZ(),1)});function $Q({providerLabel:q}){return z(U,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",q,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var wQ=r(()=>{SZ();cZ();x()});import{readdir as gQ,readFile as mQ}from"fs/promises";import{join as zq}from"path";async function _Q(q,Z){let Q;try{Q=await mQ(q,"utf-8")}catch(V){if(!Dq(V))_Z(`usageContribution: skip ${q}: ${String(V)}`);return 0}if(Q.length>Oq)return 0;let Y=0;for(let V of Q.split(`
3
- `)){if(!V)continue;let W;try{W=JSON.parse(V)}catch{continue}if(W.type!=="assistant")continue;if(!W.timestamp)continue;let D=Date.parse(W.timestamp);if(Number.isNaN(D)||D<Z)continue;let N=W.message?.usage;if(!N)continue;Y+=(N.input_tokens??0)+(N.output_tokens??0)+(N.cache_creation_input_tokens??0)+(N.cache_read_input_tokens??0)}return Y}async function pQ(q){let Z;try{Z=await gQ(q,{withFileTypes:!0})}catch(Y){if(Dq(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=zq(q,Y.name);if(Y.isDirectory())Q.push(...await pQ(V));else if(Y.isFile()&&pX.test(Y.name))Q.push(V)}return Q}async function xX(q){let Z=q.replace(/\.jsonl$/,".meta.json");try{let Q=await mQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function Fq(q){let Z=Date.now()-bX[q],Q={window:q,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=bQ(),V;try{V=await gQ(Y,{withFileTypes:!0})}catch{return Q}let W=V.filter((O)=>O.isDirectory()).map((O)=>zq(Y,O.name)),D=0,N=0,L=0,M=new Map;for(let O=0;O<W.length;O++){let F=W[O],P=await vQ(F);for(let[R,I]of P){if(I.mtime<Z)continue;let k=I.size>Oq?0:await _Q(I.path,Z),_=0,t=zq(F,R,"subagents");for(let u of await pQ(t)){let m=await _Q(u,Z);if(m<=0)continue;_+=m;let j=await xX(u);M.set(j,(M.get(j)??0)+m)}let w=k+_;if(w<=0)continue;if(L++,D+=w,_/w>vX)N+=w}if(O%10===9)await new Promise((R)=>setImmediate(R))}if(D===0)return Q;let H=[...M.entries()].map(([O,F])=>({agentType:O,tokens:F,pct:F/D*100})).filter((O)=>O.tokens/D>=gX).sort((O,F)=>F.tokens-O.tokens).slice(0,mX);return{window:q,totalTokens:D,sessionCount:L,subagentHeavyPct:N/D*100,agentBreakdown:H}}var bX,vX=0.5,gX=0.05,mX=5,pX;var xQ=r(()=>{qq();$X();wX();_X();bX={day:86400000,week:604800000},pX=/^agent-.*\.jsonl$/});function cQ(q){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:W,linesRemoved:D,modelUsage:N,unknownCost:L,bytesSaved:M}=q,H=Object.entries(N);if(Q===0&&H.length===0&&W===0&&D===0)return null;let O={};for(let[P,R]of H){let I=Pq(P);if(!O[I])O[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=O[I];k.inputTokens+=R.inputTokens,k.outputTokens+=R.outputTokens,k.cacheReadInputTokens+=R.cacheReadInputTokens,k.cacheCreationInputTokens+=R.cacheCreationInputTokens,k.webSearchRequests+=R.webSearchRequests,k.costUSD+=R.costUSD}let F=Object.entries(O);return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:bZ(Q)}),L&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",D0(Y)]}),z(K,{children:["Total duration (wall): ",D0(V)]}),z(K,{children:["Total code changes: ",W," ",W===1?"line":"lines"," added, ",D," ",D===1?"line":"lines"," removed"]}),M!==void 0&&M>0&&z(K,{children:["Context tokens saved: ~",aQ(M/ZY)," tokens"]}),F.length>0&&G(K,{children:"Usage by model:"}),F.map(([P,R])=>{let I=`${LZ(R.inputTokens)} input, ${LZ(R.outputTokens)} output`;if(R.cacheReadInputTokens>0)I+=`, ${LZ(R.cacheReadInputTokens)} cache read`;if(R.cacheCreationInputTokens>0)I+=`, ${LZ(R.cacheCreationInputTokens)} cache write`;if(R.webSearchRequests>0)I+=`, ${LZ(R.webSearchRequests)} web search`;return I+=` (${bZ(R.costUSD)})`,z(K,{children:[`${P}:`.padStart(21)," ",I]},P)})]})}function dQ(q={}){let Z=q.view??"global",[,Q]=c.useReducer((D)=>D+1,0);c.useEffect(()=>{let D=setInterval(()=>Q(),1000);return()=>clearInterval(D)},[]);let Y=Nq();if(Z==="session"){let D=uQ(),N=oQ(),L=nQ(),M=rQ();return G(cQ,{title:"Current session",totalCost:D,apiDuration:iQ(),wallDuration:lQ(),linesAdded:L,linesRemoved:M,modelUsage:N,unknownCost:Y,bytesSaved:qY()})}let V=Aq();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(U,{flexDirection:"column",gap:1,children:[G(cQ,{title:"Project total (all sessions)",totalCost:V.totalCost,apiDuration:V.totalAPIDuration,wallDuration:V.totalDuration,linesAdded:V.totalLinesAdded,linesRemoved:V.totalLinesRemoved,modelUsage:V.modelUsage,unknownCost:Y}),G(K,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function Lq(q={}){if((q.view??"global")==="session")return G(U,{flexDirection:"column",gap:1,width:"100%",children:G(dQ,{view:"session"})});let Q=sQ();if(Q==="firstParty")return G(ZG,{});let Y;if(Q==="codex")Y=G(LQ,{});else if(Q==="minimax")Y=G(TQ,{});else{let V={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Q]??"this provider";Y=G($Q,{providerLabel:V})}return z(U,{flexDirection:"column",gap:1,width:"100%",children:[G(dQ,{view:"global"}),Y,G(eX,{})]})}function eX(){let[q,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,W]=c.useState(!0),D=y0.useCallback(async(M)=>{W(!0);try{Y(await Fq(M))}catch(H){MZ(H),Y(null)}finally{W(!1)}},[]);c.useEffect(()=>{D(q)},[D,q]),b("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),b("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let N=q==="day"?"last 24h":"last week",L=Q?.agentBreakdown[0];return z(U,{flexDirection:"column",width:"100%",children:[G(K,{bold:!0,children:"What's driving your token usage?"}),G(K,{dimColor:!0,children:"Approximate, based on local sessions on this machine — does not include other devices."}),G(K,{dimColor:!0,children:`${N[0].toUpperCase()}${N.slice(1)} · a characteristic of your usage, not a full breakdown`}),V&&!Q?G(K,{dimColor:!0,children:"Analyzing local sessions…"}):!Q||Q.totalTokens===0?G(K,{dimColor:!0,children:`No local session activity in the ${N}.`}):z(U,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(U,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:QY})]}),L&&G(U,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(L.pct)}% of your token usage came from subagents under '${L.agentType}'.`})}),Q.agentBreakdown.length>0&&z(U,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((M)=>z(K,{children:[G(K,{children:M.agentType.padEnd(24)}),G(K,{children:`${Math.round(M.pct)}%`})]},M.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function ZG(){let q=xZ(),Z=RZ(),{columns:Q}=Z,{rows:Y}=T0(Z),V=Math.min(Math.max(20,Q-2),80),W=Math.min(50,Math.max(20,V-14)),D=Math.max(15,Math.min(Math.floor(Y*0.8),30)),N=Math.max(5,D-3),[L,M]=c.useState(null),[H,O]=c.useState(null),[F,P]=c.useState(!0),[R,I]=c.useState("day"),[k,_]=c.useState(null),[t,w]=c.useState(!0),[u,m]=c.useState(0),[,j]=c.useReducer((E)=>E+1,0),QZ=y0.useCallback(async()=>{P(!0),O(null);try{M(await JY())}catch(E){MZ(E),O(E?.message||"Failed to load usage data")}finally{P(!1)}},[]),o=y0.useCallback(async(E)=>{w(!0);try{_(await Fq(E))}catch($){MZ($),_(null)}finally{w(!1)}},[]);c.useEffect(()=>{QZ()},[QZ]),c.useEffect(()=>{o(R)},[o,R]),c.useEffect(()=>{let E=setInterval(()=>j(),1000);return()=>clearInterval(E)},[]);let YZ=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),zZ=()=>m((E)=>Math.max(0,E-N)),jZ=()=>m((E)=>E+N),e={context:"Settings",isActive:!0};b("select:previous",YZ,e),b("select:next",n,e),b("scroll:lineUp",YZ,e),b("scroll:lineDown",n,e),b("scroll:pageUp",zZ,e),b("scroll:pageDown",jZ,e),b("settings:usageDay",()=>I("day"),e),b("settings:usageWeek",()=>I("week"),e),b("settings:retry",()=>{QZ(),o(R)},{context:"Settings",isActive:!!H&&!F});let vZ=(E)=>KZ.bold(E),XZ=(E)=>KZ.dim(E),F0=(E)=>{let $=Math.min(1,Math.max(0,E)),a=Math.floor($*W),VZ="█".repeat(a),HZ=" ".repeat(Math.max(0,W-a));return f0(VZ,q.rate_limit_fill,"foreground")+f0(HZ,q.rate_limit_empty,"background")},C=[],p=Aq();C.push(vZ("Project total (all sessions)")),C.push("Total cost: "+bZ(p.totalCost)+(Nq()?XZ(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+D0(p.totalAPIDuration)),C.push("Total duration (wall): "+D0(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let BZ={};for(let[E,$]of Object.entries(p.modelUsage)){let a=Pq(E),VZ=BZ[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};VZ.inputTokens+=$.inputTokens,VZ.outputTokens+=$.outputTokens,VZ.cacheReadInputTokens+=$.cacheReadInputTokens,VZ.cacheCreationInputTokens+=$.cacheCreationInputTokens,VZ.webSearchRequests+=$.webSearchRequests,VZ.costUSD+=$.costUSD}let N0=Object.entries(BZ);if(N0.length>0)C.push("Usage by model:");for(let[E,$]of N0){let a=`${LZ($.inputTokens)} input, ${LZ($.outputTokens)} output`;if($.cacheReadInputTokens>0)a+=`, ${LZ($.cacheReadInputTokens)} cache read`;if($.cacheCreationInputTokens>0)a+=`, ${LZ($.cacheCreationInputTokens)} cache write`;if($.webSearchRequests>0)a+=`, ${LZ($.webSearchRequests)} web search`;a+=` (${bZ($.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(XZ("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),F&&!L)C.push(XZ("Loading usage data…"));else if(H)C.push(f0(`Could not load rate-limit data: ${H}`,q.error,"foreground")),C.push(XZ("(cost/usage totals above are unaffected) · r to retry"));else if(L){let E=tQ(),$=E==="max"||E==="team"||E===null,a=[["Current session",L.five_hour],["Current week (all models)",L.seven_day],...$?[["Current week (Sonnet only)",L.seven_day_sonnet]]:[]];if(!a.some(([,eZ])=>eZ))C.push(XZ("/usage is only available for subscription plans."));let VZ=!0;for(let[eZ,UZ]of a){if(!UZ||UZ.utilization===null)continue;if(!VZ)C.push("");if(VZ=!1,C.push(vZ(eZ)),C.push(`${F0(UZ.utilization/100)} ${Math.floor(UZ.utilization)}% used`),UZ.resets_at)C.push(XZ(`Resets ${S0(UZ.resets_at,!0,!0)}`))}let HZ=L.extra_usage;if(HZ?.is_enabled&&typeof HZ.used_credits==="number"&&typeof HZ.utilization==="number"&&HZ.monthly_limit!=null)C.push(""),C.push(vZ("Extra usage")),C.push(`${F0(HZ.utilization/100)} ${Math.floor(HZ.utilization)}% used`),C.push(XZ(`${bZ(HZ.used_credits/100,2)} / ${bZ(HZ.monthly_limit/100,2)} spent`))}C.push("");let gZ=R==="day"?"last 24h":"last week";if(C.push(vZ("What's driving your token usage?")),C.push(XZ("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(XZ(`${gZ[0].toUpperCase()}${gZ.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(XZ("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(XZ(`No local session activity in the ${gZ}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(XZ(QY));let E=k.agentBreakdown[0];if(E)C.push(""),C.push(`${Math.round(E.pct)}% of your token usage came from subagents under '${E.agentType}'.`);if(k.agentBreakdown.length>0){C.push(""),C.push("Subagents".padEnd(24)+"% of usage");for(let $ of k.agentBreakdown)C.push($.agentType.padEnd(24)+`${Math.round($.pct)}%`)}}let mZ=Math.max(0,C.length-N);if(u>mZ)m(mZ);let pZ=Math.min(u,mZ),j0=C.slice(pZ,pZ+N),GZ=pZ,tZ=C.length-(pZ+j0.length);return z(U,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:GZ>0?`↑ ${GZ} more above`:" "}),G(eQ,{lines:j0,width:V}),G(K,{dimColor:!0,children:tZ>0?`↓ ${tZ} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var tX,y0,c,QY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var YY=r(()=>{oX();aX();yJ();Jq();nX();lX();uX();OJ();X0();SZ();iX();M0();lZ();rX();Jq();I0();dX();cX();cZ();E0();Qq();sX();MQ();jQ();wQ();xQ();x();tX=d($Z(),1),y0=d(FZ(),1),c=d(FZ(),1)});function N9(q){let Z=KY.c(25),{onClose:Q,context:Y,defaultTab:V}=q,[W,D]=TZ.useState(V),[N,L]=TZ.useState(!1),[M,H]=TZ.useState(!1),[O,F]=TZ.useState(!1),P=dZ(),{rows:R}=T0(RZ()),I=P?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[k]=TZ.useState(QG);XY();let _;if(Z[0]!==Q||Z[1]!==N)_=()=>{if(N)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=N,Z[2]=_;else _=Z[2];let t=_,w=!N&&!(W==="Config"&&M)&&!(W==="Gates"&&O),u;if(Z[3]!==w)u={context:"Settings",isActive:w},Z[3]=w,Z[4]=u;else u=Z[4];b("confirm:no",t,u);let m;if(Z[5]!==Y||Z[6]!==k)m=G(O0,{title:"Status",children:G(cq,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let j;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)j=G(O0,{title:"Config",children:G(TZ.Suspense,{fallback:null,children:G(eJ,{context:Y,onClose:Q,setTabsHidden:L,onIsSearchModeChange:H,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=j;else j=Z[11];let QZ;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))QZ=[G(O0,{title:"Usage",children:G(Lq,{view:"global"})},"usage"),G(O0,{title:"Session",children:G(Lq,{view:"session"})},"session")],Z[12]=QZ;else QZ=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let YZ;if(Z[15]!==m||Z[16]!==j||Z[17]!==o)YZ=[m,j,...QZ,...o],Z[15]=m,Z[16]=j,Z[17]=o,Z[18]=YZ;else YZ=Z[18];let n=YZ,zZ=V!=="Config"&&V!=="Gates",jZ=N||P?void 0:I,e;if(Z[19]!==W||Z[20]!==jZ||Z[21]!==zZ||Z[22]!==n||Z[23]!==N)e=G(GY,{color:"permission",children:G(VY,{color:"permission",selectedTab:W,onTabChange:D,hidden:N,initialHeaderFocused:zZ,contentHeight:jZ,children:n})}),Z[19]=W,Z[20]=jZ,Z[21]=zZ,Z[22]=n,Z[23]=N,Z[24]=e;else e=Z[24];return e}function QG(){return xq().catch(YG)}function YG(){return[]}var KY,TZ;var XG=r(()=>{lZ();qG();X0();M0();JG();iJ();dq();ZQ();YY();x();KY=d($Z(),1),TZ=d(FZ(),1)});
4
- export{N9 as Rg,XG as Sg};
@@ -1,4 +0,0 @@
1
- import{ig as IJ,jg as bQ}from"./cli-1.1.23-cf9wpsc7.mjs";import{tg as eq,ug as sq,vg as aJ}from"./cli-1.1.23-afsrnsz6.mjs";import{wg as AJ,xg as OQ}from"./cli-1.1.23-hemwg8ag.mjs";import{yg as vJ,zg as AQ}from"./cli-1.1.23-3vzk6gte.mjs";import{Ag as nq,Bg as rJ}from"./cli-1.1.23-e3zf752q.mjs";import{Cg as wq,Dg as tq,Eg as oJ}from"./cli-1.1.23-gqpma6kp.mjs";import{Fg as bJ,Gg as hQ}from"./cli-1.1.23-cp5z31eb.mjs";import{$t as UQ,CR as Iq,FR as JQ,Ho as NJ,Io as BQ,OJ as hJ,PJ as OJ,QJ as WQ,_t as BJ,aU as Fq,au as UJ,ay as g,bu as wJ,cp as h,cu as wQ,dU as ZJ,dp as lq,dy as FQ,gU as zJ,kH as kq,lH as RQ,ly as pq,mH as LJ,mR as QJ,my as jq,nH as PJ,oH as WJ,oR as qQ,oy as _q,pH as PQ,py as jJ,rU as QQ}from"./cli-1.1.23-hynrf6x1.mjs";import{aV as FJ,cV as HJ,fV as HQ}from"./cli-1.1.23-eyrgaj5n.mjs";import{KW as RJ,OW as LQ}from"./cli-1.1.23-69bhvv0j.mjs";import{$Y as Cq,OY as XJ,PY as XQ,SY as yJ,TY as yQ,aZ as NQ}from"./cli-1.1.23-ah6fas1q.mjs";import{PZ as Oq,T1 as bq,m1 as N,o1 as Q}from"./cli-1.1.23-7081am2r.mjs";import{o4 as R,p4 as K,q4 as Z,r4 as c}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as VQ}from"./cli-1.1.23-534g4n3n.mjs";import{H7 as VJ,I7 as KQ,T6 as oq,_6 as KJ,r7 as iq}from"./cli-1.1.23-9qe28y65.mjs";import{Bda as Aq,Iaa as Mq,J_ as $,Jda as xJ,K_ as zQ,dba as YQ,jea as GJ,wea as GQ,xda as aq,yda as gJ}from"./cli-1.1.23-keftnbc6.mjs";import{Wla as YJ,fma as ZQ}from"./cli-1.1.23-fxyf1cph.mjs";import{Kra as rq,Rna as Hq}from"./cli-1.1.23-wkvjbzna.mjs";import{Bta as Bq,Fta as Uq}from"./cli-1.1.23-bdj1ne1r.mjs";function Tq(){let J=dq.c(2);if(!pq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=_q();if(G.length===0){V=null;break q}let Y=G.filter(cJ),X=G.filter(TJ);q=Z(N,{flexDirection:"column",marginTop:1,marginBottom:1,children:[K(Q,{bold:!0,color:Y.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(N,{children:[K(Q,{dimColor:!0,children:"Location: "}),K(Q,{dimColor:!0,children:jq()})]}),Z(N,{marginLeft:1,flexDirection:"column",marginTop:1,children:[Y.map(dJ),X.map(_J)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function _J(J,q){return Z(N,{flexDirection:"column",children:[Z(N,{children:[K(Q,{dimColor:!0,children:"└ "}),K(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&K(N,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function dJ(J,q){return Z(N,{flexDirection:"column",children:[Z(N,{children:[K(Q,{dimColor:!0,children:"└ "}),K(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&K(N,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function TJ(J){return J.severity==="warning"}function cJ(J){return J.severity==="error"}var dq;var cq=Uq(()=>{bq();jJ();c();dq=Bq(Oq(),1)});function gq(){let J=$q.c(2);if(!h.isSupportedPlatform())return null;if(!h.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=h.checkDependencies(),Y=G.errors.length>0,X=G.warnings.length>0;if(!Y&&!X){V=null;break q}q=Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",K(Q,{color:Y?"error":"warning",children:Y?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map($J),G.warnings.map(lJ),Y&&K(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function lJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function $J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var $q;var xq=Uq(()=>{bq();lq();c();$q=Bq(Oq(),1)});async function iJ(){let J=zJ(await ZJ());if(J.length===0)return null;let q=J.sort((G,Y)=>Y.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${Fq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${Fq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:Fq}}async function nJ(J){if(!J)return null;let q=tq(J);if(q<=wq)return null;let V=J.activeAgents.filter((Y)=>Y.source!=="built-in").map((Y)=>{let X=`${Y.agentType}: ${Y.whenToUse}`;return{name:Y.agentType,tokens:Iq(X)}}).sort((Y,X)=>X.tokens-Y.tokens),G=V.slice(0,5).map((Y)=>`${Y.name}: ~${Y.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${wq.toLocaleString()})`,details:G,currentValue:q,threshold:wq}}async function eJ(J,q,V){let G=J.filter((Y)=>Y.isMcp);if(G.length===0)return null;try{let Y=oq(),{mcpToolTokens:X,mcpToolDetails:U}=await QJ(J,q,V,Y);if(X<=l)return null;let B=new Map;for(let L of U){let x=L.name.split("__")[1]||"unknown",y=B.get(x)||{count:0,tokens:0};B.set(x,{count:y.count+1,tokens:y.tokens+L.tokens})}let H=Array.from(B.entries()).sort((L,w)=>w[1].tokens-L[1].tokens),z=H.slice(0,5).map(([L,w])=>`${L}: ${w.count} tools (~${w.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(Y){let X=G.reduce((U,B)=>{let H=(B.name?.length||0)+B.description.length;return U+Iq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function sJ(J){let q=await J(),V=h.isSandboxingEnabled()&&h.isAutoAllowBashIfSandboxedEnabled(),G=nq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let Y=G.flatMap((X)=>[`${aq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${Aq(G.length,"unreachable permission rule")} detected`,details:Y,currentValue:G.length,threshold:0}}async function tJ(){let J=Hq(),{findings:q}=await eq({root:J});if(q.length===0)return null;let V=q.filter((Y)=>Y.severity==="error"),G=q.map((Y)=>`${sq(J,Y.file)}: ${Y.message}`);return{type:"rule_files",severity:V.length>0?"error":"warning",message:`${q.length} rule ${Aq(q.length,"file problem")} detected`,details:G,currentValue:q.length,threshold:0}}async function qJ(J,q,V){let[G,Y,X,U,B]=await Promise.all([iJ(),nJ(q),eJ(J,V,q),sJ(V),tJ()]);return{claudeMdWarning:G,agentWarning:Y,mcpWarning:X,unreachableRulesWarning:U,ruleFilesWarning:B}}var l=25000;var JJ=Uq(()=>{rq();JQ();qQ();QQ();iq();gJ();rJ();aJ();lq();oJ();xJ()});import{join as vq}from"path";function IQ(J){let q=Dq.c(8),{promise:V}=J,G=F.use(V);if(!G.latest){let B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=K(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=B;else B=q[0];return B}let Y;if(q[1]!==G.stable)Y=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=Y;else Y=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let U;if(q[5]!==Y||q[6]!==X)U=Z(R,{children:[Y,X]}),q[5]=Y,q[6]=X,q[7]=U;else U=q[7];return U}function xZ(J){let q=Dq.c(84),{onDone:V}=J,G=g(rQ),Y=g(xQ),X=g(gQ),U=g($Q);yJ();let B;if(q[0]!==Y)B=Y||[],q[0]=Y,q[1]=B;else B=q[1];let H=B,[z,L]=F.useState(null),[w,x]=F.useState(null),[y,MJ]=F.useState(null),[W,Sq]=F.useState(null),Rq=vJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=kq().then(cQ),q[2]=r;else r=q[2];let CJ=r,kJ=GJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Rq)a=Rq.filter(TQ),q[3]=Rq,q[4]=a;else a=q[4];let o=a,i;if(q[5]===Symbol.for("react.memo_cache_sentinel"))i=[{name:"BASH_MAX_OUTPUT_LENGTH",default:wJ,upperLimit:UJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:OJ,upperLimit:hJ},{name:"CLAUDIN_MAX_OUTPUT_TOKENS",...VJ(KJ())}].map(dQ).filter(_Q),q[5]=i;else i=q[5];let Eq=i,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{kq().then(L),(async()=>{let P=vq(YJ(),"agents"),fq=vq(Hq(),".claudin","agents"),{activeAgents:uq,allAgents:DJ,failedFiles:mq}=G,[SJ,EJ]=await Promise.all([Mq(P),Mq(fq)]),fJ={activeAgents:uq.map(jQ),userAgentsDir:P,projectAgentsDir:fq,userDirExists:SJ,projectDirExists:EJ,failedFiles:mq};x(fJ);let uJ=await qJ(H,{activeAgents:uq,allAgents:DJ,failedFiles:mq},async()=>X);if(MJ(uJ),LJ()){let hq=vq(RJ(),"claude","locks"),mJ=WJ(hq),pJ=PJ(hq);Sq({enabled:!0,locks:pJ,locksDir:hq,staleLocksCleaned:mJ})}else Sq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];F.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claudin diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(XJ(qq,Jq),!z){let P;if(q[16]===Symbol.for("react.memo_cache_sentinel"))P=K(Cq,{children:K(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=P;else P=q[16];return P}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=K(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let b;if(q[21]!==z.packageManager)b=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=b;else b=q[22];let A;if(q[23]!==z.installationPath)A=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=A;else A=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let v;if(q[27]!==z.configInstallMethod)v=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=v;else v=q[28];let Lq=z.ripgrepStatus.working?"OK":"Not working",Pq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",M;if(q[29]!==Lq||q[30]!==Pq)M=Z(Q,{children:["└ Search: ",Lq," (",Pq,")"]}),q[29]=Lq,q[30]=Pq,q[31]=M;else M=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(R,{children:[K(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
- `)[0]]}),K(Q,{dimColor:!0,children:z.recommendation.split(`
3
- `)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(R,{children:[K(Q,{}),K(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(pQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(R,{children:[K(Q,{}),z.warnings.map(mQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==o)S=o.length>0&&Z(N,{flexDirection:"column",marginTop:1,marginBottom:1,children:[K(Q,{bold:!0,children:"Invalid Settings"}),K(IJ,{errors:o})]}),q[38]=o,q[39]=S;else S=q[39];let E;if(q[40]!==O||q[41]!==b||q[42]!==A||q[43]!==I||q[44]!==v||q[45]!==M||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)E=Z(N,{flexDirection:"column",children:[Qq,O,b,A,I,v,M,C,k,D,S]}),q[40]=O,q[41]=b,q[42]=A,q[43]=I,q[44]=v,q[45]=M,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=E;else E=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=K(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let Wq=z.packageManager?"Managed by package manager":z.autoUpdates,f;if(q[52]!==Wq)f=Z(Q,{children:["└ Auto-updates:"," ",Wq]}),q[52]=Wq,q[53]=f;else f=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",kJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=K(F.Suspense,{fallback:null,children:K(IQ,{promise:CJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==f||q[59]!==u)m=Z(N,{flexDirection:"column",children:[Zq,f,u,zq,Yq]}),q[58]=f,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=K(gq,{}),Kq=K(bJ,{}),Vq=K(Tq,{}),Xq=Eq.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Environment Variables"}),Eq.map(uQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==W)p=W?.enabled&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Version Locks"}),W.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",W.staleLocksCleaned," stale lock(s)"]}),W.locks.length===0?K(Q,{dimColor:!0,children:"└ No active version locks"}):W.locks.map(fQ)]}),q[65]=W,q[66]=p;else p=q[66];let j;if(q[67]!==w)j=w?.failedFiles&&w.failedFiles.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",w.failedFiles.length," agent file(s):"]}),w.failedFiles.map(EQ)]}),q[67]=w,q[68]=j;else j=q[68];let _;if(q[69]!==U)_=U.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",U.length," plugin error(s) detected:"]}),U.map(SQ)]}),q[69]=U,q[70]=_;else _=q[70];let d;if(q[71]!==y)d=y?.unreachableRulesWarning&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.unreachableRulesWarning.message]})]}),y.unreachableRulesWarning.details.map(DQ)]}),q[71]=y,q[72]=d;else d=q[72];let T;if(q[73]!==y)T=y&&(y.claudeMdWarning||y.agentWarning||y.mcpWarning||y.ruleFilesWarning)&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Context Usage Warnings"}),y.claudeMdWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),y.claudeMdWarning.details.map(kQ)]}),y.agentWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),y.agentWarning.details.map(CQ)]}),y.mcpWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),y.mcpWarning.details.map(MQ)]}),y.ruleFilesWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:y.ruleFilesWarning.severity==="error"?"error":"warning",children:[$.warning," ",y.ruleFilesWarning.message]})]}),Z(Q,{children:[" ","└ Rules:"]}),y.ruleFilesWarning.details.map(vQ)]})]}),q[73]=y,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=K(N,{children:K(AJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==E||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Cq,{children:[E,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=E,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function vQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function CQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function kQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function DQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function SQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",NJ(J)]},q)}function EQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function fQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?K(Q,{children:"(running)"}):K(Q,{color:"warning",children:"(stale)"})]},q)}function uQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",K(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function mQ(J,q){return Z(N,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function pQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function jQ(J){return{agentType:J.agentType,source:J.source}}function _Q(J){return J.status!=="valid"}function dQ(J){let q=process.env[J.name],V=BJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function TQ(J){return J.mcpErrorMetadata===void 0}function cQ(J){return(J.installationType==="native"?HJ:FJ)().catch(lQ)}function lQ(){return{latest:null,stable:null}}function $Q(J){return J.plugins.errors}function gQ(J){return J.toolPermissionContext}function xQ(J){return J.mcp.tools}function rQ(J){return J.agentDefinitions}var Dq,F;var aQ=Uq(()=>{zQ();cq();hQ();KQ();iq();ZQ();rq();NQ();OQ();xq();bQ();AQ();yQ();bq();XQ();FQ();BQ();HQ();JJ();RQ();UQ();YQ();PQ();GQ();wQ();WQ();LQ();c();Dq=Bq(Oq(),1),F=Bq(VQ(),1)});
4
- export{xZ as gg,aQ as hg};
@@ -1,2 +0,0 @@
1
- import{DG as I,KG as _,io as T,jo as j}from"./cli-1.1.23-hynrf6x1.mjs";import{PZ as S,T1 as g,m1 as P,o1 as J,s1 as C}from"./cli-1.1.23-7081am2r.mjs";import{p4 as G,q4 as H,r4 as R}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as v}from"./cli-1.1.23-534g4n3n.mjs";import{Ifa as h,ufa as B}from"./cli-1.1.23-keftnbc6.mjs";import{jka as W,mka as D}from"./cli-1.1.23-j9tza8qb.mjs";import{Bta as f,Fta as p}from"./cli-1.1.23-bdj1ne1r.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
2
- export{l as Tg,r as Ug};
@@ -1,2 +0,0 @@
1
- import{PZ as O}from"./cli-1.1.23-7081am2r.mjs";import{p4 as X,r4 as Q}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as b}from"./cli-1.1.23-534g4n3n.mjs";import{Ifa as P,ufa as W}from"./cli-1.1.23-keftnbc6.mjs";import{Bta as U}from"./cli-1.1.23-bdj1ne1r.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
- export{V as kb,C as lb};
@@ -1,2 +0,0 @@
1
- import{Hc as k,Ic as P}from"./cli-1.1.23-bkd2235z.mjs";import{Oc as O,Pc as A,Qc as f}from"./cli-1.1.23-6f46jqfm.mjs";import{a9 as E,l8 as U,p8 as V,u8 as j}from"./cli-1.1.23-9qe28y65.mjs";import{Cca as x,Ifa as G,Pfa as I,ega as h,gha as K,kfa as N,nfa as J,oha as b,ufa as Y,vca as X,wca as H}from"./cli-1.1.23-keftnbc6.mjs";import{Lla as F,Tla as L}from"./cli-1.1.23-6vn61k3h.mjs";import{Kra as T,_oa as W}from"./cli-1.1.23-wkvjbzna.mjs";import{Fta as y}from"./cli-1.1.23-bdj1ne1r.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
- export{d as Cc,l as Dc,S as Ec,u as Fc};
@@ -1,2 +0,0 @@
1
- import{PZ as Z,T1 as k,o1 as K}from"./cli-1.1.23-7081am2r.mjs";import{q4 as J,r4 as H}from"./cli-1.1.23-hdrz15yh.mjs";import{J_ as v,K_ as Y}from"./cli-1.1.23-keftnbc6.mjs";import{Bta as V,Fta as X}from"./cli-1.1.23-bdj1ne1r.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
- export{N as Ah,C as Bh};
@@ -1,2 +0,0 @@
1
- import{I$ as T,Y$ as $}from"./cli-1.1.23-keftnbc6.mjs";import{vja as J,xja as Y}from"./cli-1.1.23-7ke90t8x.mjs";import{mla as E,pla as X}from"./cli-1.1.23-kc1tbe8y.mjs";import{Fta as V}from"./cli-1.1.23-bdj1ne1r.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
2
- export{j as u_,P as v_,Z as w_,S as x_,Q as y_,D as z_,_ as A_};
@@ -1,2 +0,0 @@
1
- import{H3 as y,L3 as V}from"./cli-1.1.23-g6b9c447.mjs";import{Uba as q,Wba as Q,__ as p,a$ as K}from"./cli-1.1.23-keftnbc6.mjs";import{Fta as J}from"./cli-1.1.23-bdj1ne1r.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 w3,D as x3,F as y3,P as z3,l as A3,Y as B3,w as C3,Z as D3};
@@ -1,2 +0,0 @@
1
- import{jka as X,mka as z}from"./cli-1.1.23-j9tza8qb.mjs";import{Rka as Z,Wka as O,mla as $,pla as P}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as Y,Tla as H}from"./cli-1.1.23-6vn61k3h.mjs";import{Fta as x}from"./cli-1.1.23-bdj1ne1r.mjs";function y(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function U(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function j(q){let K=typeof q==="string"?q:Z(q),J=y(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function h(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function m(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var A=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
- export{U as pf,j as qf,h as rf,m as sf,D as tf,L as uf,A as vf};
@@ -1,2 +0,0 @@
1
- import{Fta as M}from"./cli-1.1.23-bdj1ne1r.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
- export{W as $ja,Q as aka,K as bka,X as cka,Y as dka,Z as eka,y as fka,G as gka,h as hka,w as ika};
@@ -1,12 +0,0 @@
1
- import{Cg as $Z,Dg as uZ,Eg as pz}from"./cli-1.1.23-gqpma6kp.mjs";import{Mh as HJ,Nh as Vz}from"./cli-1.1.23-dxtv4be7.mjs";import{Xh as GJ,Yh as Bz}from"./cli-1.1.23-9vqnsq1x.mjs";import{$n as NX,AB as yz,Ao as WQ,Ay as EQ,Bt as Dz,Eo as uz,FK as gQ,My as pQ,NA as IZ,Nk as mZ,Ny as AX,OA as hZ,Ok as FX,PA as TZ,QA as dJ,RA as cQ,SA as cJ,Sn as zQ,Tn as $z,Uy as dQ,Vy as PX,_R as nQ,_n as RQ,aU as VQ,ay as xQ,cS as lQ,dS as iQ,dU as KQ,dy as OX,fS as nZ,gS as aQ,gU as pZ,iS as g0,ik as _Z,jS as rQ,jk as TQ,lS as eJ,mS as ZQ,nS as oQ,oS as tQ,oo as XQ,qS as OZ,qo as xZ,rU as BQ,rk as SJ,sk as IJ,sy as DQ,ty as UQ,uy as $Q,vy as uQ,wB as e0,xB as gJ,xt as wJ,yB as mJ,zB as nJ,zk as fJ,zy as MQ}from"./cli-1.1.23-hynrf6x1.mjs";import{mV as fQ,vV as jX}from"./cli-1.1.23-h9a97qvh.mjs";import{AY as qJ,UY as YJ,YY as qz,ZY as DZ,_Y as wX,zY as FZ}from"./cli-1.1.23-ah6fas1q.mjs";import{FZ as WJ,GZ as Wz,P0 as UZ,PZ as u0,R0 as Jz,T1 as f0,f1 as hQ,g1 as KX,l0 as c0,m1 as b,n1 as PQ,o1 as g,p1 as JX,q0 as vZ}from"./cli-1.1.23-7081am2r.mjs";import{o4 as p0,p4 as B,q4 as $,r4 as F0}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as I0}from"./cli-1.1.23-534g4n3n.mjs";import{Q4 as VJ,R4 as BJ,S4 as Yz}from"./cli-1.1.23-4tcfdexs.mjs";import{H8 as QQ,W7 as jQ,X7 as ZX,a8 as JZ,a9 as xz,d8 as QZ,x8 as JQ}from"./cli-1.1.23-9qe28y65.mjs";import{w9 as gZ,x9 as GX}from"./cli-1.1.23-r21frpa6.mjs";import{Bda as LZ,Ifa as HQ,J_ as v0,Jda as XJ,K_ as zJ,Xba as IQ,nfa as PZ,rca as LX}from"./cli-1.1.23-keftnbc6.mjs";import{Eha as ZZ,Lha as hz,tha as jZ,uha as TJ}from"./cli-1.1.23-2cqrzcwp.mjs";import{Ija as KZ,Nja as NZ,Oja as wZ,_ja as Pz,vja as RZ,xja as Rz}from"./cli-1.1.23-7ke90t8x.mjs";import{mla as m0,pla as ez}from"./cli-1.1.23-kc1tbe8y.mjs";import{Zla as SQ,fma as HX}from"./cli-1.1.23-fxyf1cph.mjs";import{Kra as BX,fra as kQ}from"./cli-1.1.23-wkvjbzna.mjs";import{Bta as w0,Fta as L0}from"./cli-1.1.23-bdj1ne1r.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=UZ){MZ();return}$0=setTimeout(MZ,UZ-J)}function lZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var iZ=L0(()=>{Jz();EZ=w0(I0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=w0(u0(),1),K0=w0(I0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile","container_transition"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??Nz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(wz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==X0)S=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=S;else S=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),w=B(jz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=$(sZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=$(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function Nz(){}function wz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function jz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();f0();Yz();vZ();XJ();CZ();Vz();F0();a0=w0(u0(),1),q0=w0(I0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function NJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,NZ)!=="completed")return!1;return _Z(Z.text,wZ)?.startsWith(wJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(NJ(X)){let W=0;while(z<J.length&&NJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Pz();Dz();vZ();OZ()});function jJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!jJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var DJ=()=>{};function UJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(UJ(z)){let X=0;while(Q<J.length&&UJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function Uz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Uz(Z),X=new Map;for(let F of J){let j=kZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=kZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var yJ="</system-reminder>",_J,kJ;var SZ=L0(()=>{OZ();_J=new Set([SJ,IJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();f0();F0();hJ=w0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var pJ=L0(()=>{TJ();f0();F0();$J=w0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(IZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],V=q?.type==="tool_use"?q.input:void 0;if(IZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=lJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?dJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:ZQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?fJ:eJ(Q,O);Y0=tJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];S=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);S=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!Q0){let S;if(Z[55]!==l)S=B(e0,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==l||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,l]})}),Z[60]=Z0,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Sz(J.message,J.streamingToolUseIDs),W=Iz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var lJ,iJ,rJ;var oJ=L0(()=>{f0();cJ();OZ();yz();xJ();sJ();pJ();gJ();F0();lJ=w0(u0(),1),iJ=w0(I0(),1);rJ=iJ.memo(_z,Tz)});import{relative as fz}from"path";function qQ(J){return iz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,lz,iz;var YQ=L0(()=>{f0();BQ();zJ();Rz();hz();xz();pz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>pZ(J.memoryFiles).length>0,render:(J)=>{let Z=pZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?fz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},lz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},iz=[dz,nz,cz,gz,mz,lz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(r0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{f0();BQ();HQ();YQ();F0();GQ=w0(u0(),1),r0=w0(I0(),1),XZ=[]});function NQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?j.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??sz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/tz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??rz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,J0=f[P],E,k;if(M)[E,k]=M,E=Math.min(E,P),k=Math.min(k,P);else if(_===0||O<0)E=Math.max(0,P-oz),k=P;else{if(N){let V0=_+o0;E=P;while(E>0&&J0-f[E-1]<V0)E--;k=P}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,P0=y0>G0?C<0?n0-G0:M0:M0,T0=P0+Math.min(y0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,b0=l0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(f[A+1]<=b0)H=A+1;else L=A}E=H}{let H=j.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let i0=_+2*o0,t0=Math.min(P,E+WZ),_0=0;k=E;while(k<t0&&(_0<i0||f[k]<h0+_+o0))_0+=z.current.get(Z[k])??fZ,k++}let w=_+2*o0,D=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??fZ;while(E>D&&R<w)E--,R+=z.current.get(Z[E])??fZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),i=E<H0?H0:E,h=k>Y0?Y0:k;if(i>h||N)i=E,h=k;if(C>0)h=k;if(h-i>WZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+WZ;else i=h-WZ}let z0=I.current,Q0=f[i],X0=i===0?0:Q0+z0,O0=h===P?1/0:Math.max(Q0,f[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),W0=J0-f[h];return{range:[i,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,rz=3,o0=80,oz=30,tz,fZ=1,WZ=300,qZ=25,sz=()=>{};var wQ=L0(()=>{m=w0(I0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=B(PQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:z0}=NQ(Z,N,Q),[Q0,X0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return DQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:UQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),j0=c+e+n.row;if(j0<c||j0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),j0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,U0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,U0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${j0} badge=${U0}/${D0}`)}D.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){l.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}l.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let j0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:j0},m0(`seek(i=${L} t=${x}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=W0.current;if(D0)W0.current=0,w.current(D0)},[M0]);function P0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(l.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,P0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;I?.(u,e)}w.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let D0=T.current.messages;for(let U0=0;U0<D0.length;U0++){let k0=Y(D0[U0]),G=k0.indexOf(L),U=0;while(G>=0)U++,G=k0.indexOf(L,G+L.length);if(U>0)A.push(U0),x.push(x.at(-1)+U)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,j0=R0(e),E0=j0>=0?j0-c[e]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),U0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-D0);if(G<=U0)U0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)P0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await jQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],u=!!W&&(q?.(H)??!0),n=u&&l0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:i0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??YX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let M=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=XX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;M=N,I=P;break}let Z0=v>=0?v-z[j]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),J0=(f>=0?P.slice(0,f):P).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{wQ();f0();JX();LJ();ez();ZX();SZ();EQ();F0();bQ=w0(u0(),1),y=w0(I0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function SX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}return!1}var mQ,YZ,p,DX,UX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>nZ(J).filter(nQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="assistant"){let B0=U.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${U.uuid}:${a}`}else if(U?.type==="user"){if(!U.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="user"){let B0=U.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return U.uuid}}}return null},[T]),S=p.useMemo(()=>tQ(T),[T]),W0=p.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>W0.flatMap((G)=>{let U=gQ({content:[G.contentBlock]});return U.uuid=TQ(G.contentBlock.id,0),nZ([U])}),[W0]),D=K==="transcript",R=p.useMemo(()=>SQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=p.useMemo(()=>{let G=z||c0()?T:lQ(T,{includeSnipped:!0}),U=aQ(G.filter((S0)=>S0.type!=="progress").filter((S0)=>!GZ(S0)).filter((S0)=>iQ(S0,D)),w),B0=[yQ,MX].filter((S0)=>S0!==null),a=[yQ].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?EX(U,B0):a.length>0?bX(U,a):U:U,C0=A0?N0.slice(-cZ):N0,VZ=A0&&N0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(PJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=U.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let U=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):U>0?G0.slice(U):G0},[G0,Q0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),l0=xQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=p.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[U,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(U)}return G.size>0?G:null},[l0,h0]),i0=p.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let U of b0)G.add(U);return G},[q,b0]),t0=p.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return P0.findIndex((U)=>U.uuid.slice(0,24)===G)},[N,P0]),_0=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((G)=>G.uuid===i.uuid)},[i,P0]),[H,L]=p.useState(()=>new Set),A=p.useCallback((G)=>{let U=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(U))a.delete(U);else a.add(U);return a})},[]),x=p.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=p.useRef(M0);u.current=M0;let n=p.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let N0=G.message.content[0];return N0!=null&&fQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(G.type!=="user")return!1;let U=G.message.content[0];if(U?.type!=="tool_result"||U.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(U.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=i0.size>0,{progress:e}=hQ(),R0=p.useRef(null),j0=PZ().terminalProgressBarEnabled&&!kQ()&&!(UX?.isProactiveActive()??!1);p.useEffect(()=>{let G=j0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,j0,c]),p.useEffect(()=>{return()=>e(null)},[e]);let E0=p.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),D0=(G,U)=>{if(G.type==="progress")return null;let B0=U>0?P0[U-1]?.type:void 0,a=G.type==="user"&&B0==="user",N0=G.type==="collapsed_read_search"&&(C||aJ(P0,U,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||x(G)||i?.expanded===!0&&U===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:U===_0,children:VZ},C0);if(N&&U===t0)return[B(b,{marginTop:1,children:B(DZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},U0=p.useRef(new WeakMap),k0=p.useCallback((G)=>{let U=U0.current.get(G);if(U!==void 0)return U;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let N0=G.message.content.find((C0)=>C0.type==="tool_result");if(N0&&"tool_use_id"in N0){let C0=M0.toolUseByToolUseID.get(N0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return U0.current.set(G,a),a},[Z,M0]);return $(p0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(DX,{agentDefinitions:v}),n0&&B(DZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),D&&j&&y0>0&&!Y0&&B(DZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:P0,scrollRef:P,columns:X0,itemKey:E0,renderItem:D0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:f,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):P0.flatMap(D0),C&&!_&&B(kX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=lZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:IQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();f0();NX();OX();FX();jX();AJ();DJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();SZ();wX();AX();iZ();oJ();EQ();PX();CZ();gJ();FQ();vQ();F0();mQ=w0(u0(),1),YZ=w0(I0(),1),p=w0(I0(),1),DX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(SX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{s0 as ve,TX as we,iZ as xe,xX as ye,$X as ze,JJ as Ae,QW as Be,zW as Ce,XW as De,LJ as Ee,g8 as Fe,sJ as Ge};
@@ -1,2 +0,0 @@
1
- import{gY as Xq,kY as wq,oY as xq,pY as c,qY as zq,yY as Yq}from"./cli-1.1.23-c49xxwj4.mjs";import{E3 as vq,L3 as Nq}from"./cli-1.1.23-g6b9c447.mjs";import{$_ as Oq,A$ as jq,Fea as C,Hea as Mq,Y$ as Fq,a$ as Lq,gha as b,oha as yq}from"./cli-1.1.23-keftnbc6.mjs";import{oja as R,qja as Qq,rja as w,sja as Vq}from"./cli-1.1.23-a95wepyn.mjs";import{Rka as z,Ska as y,Wka as qq,mla as G,pla as Jq}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as W,Nla as x,Tla as e}from"./cli-1.1.23-6vn61k3h.mjs";import{Wla as s,Xla as l,Zla as t,fma as a}from"./cli-1.1.23-fxyf1cph.mjs";import{Apa as i,Hna as r,Ina as Aq,Kra as m,Lna as d,Uqa as u}from"./cli-1.1.23-wkvjbzna.mjs";import{Fta as T,Gta as Hq}from"./cli-1.1.23-bdj1ne1r.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!zq())return;let Q=J??c(),V=xq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==vq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.23-hyqgjbyg.mjs"),import("./detection-1.1.23-j30fjqtk.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{_J as GV,WJ as HV,UJ as IV,fq as JV,BJ as KV,EJ as LV,HJ as MV,OJ as NV,_q as OV,U as PV,bq as QV,jJ as RV,O as SV,v as TV,vJ as UV,P as VV,xJ as WV,zJ as XV,CJ as YV,Bq as ZV,n as _V,Eq as $V,IJ as aW,Sq as bW,gJ as cW,L as dW,F as eW,B as fW,nq as gW,kq as hW,oJ as iW,nJ as jW,kJ as kW,rJ as lW,dJ as mW,rq as nW,iJ as oW,mJ as pW,sJ as qW,tJ as rW,aJ as sW,eJ as tW,mq as uW,sq as vW};
@@ -1,3 +0,0 @@
1
- import{J2 as S,K2 as D,O2 as N}from"./cli-1.1.23-8qrr5zea.mjs";import{Iea as H,Ifa as d,Jea as P,gha as X,kfa as B,nfa as O,oha as E}from"./cli-1.1.23-keftnbc6.mjs";import{Lla as U,Tla as f}from"./cli-1.1.23-6vn61k3h.mjs";import{Wla as W,fma as b}from"./cli-1.1.23-fxyf1cph.mjs";import{Apa as T,Kra as M}from"./cli-1.1.23-wkvjbzna.mjs";import{Nsa as j,dta as y}from"./cli-1.1.23-61q858yx.mjs";import{Bta as R,Fta as p}from"./cli-1.1.23-bdj1ne1r.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 cf,Jq as df,C as ef,h as ff,Kq as gf,Qq as hf,c as if};
@@ -1,2 +0,0 @@
1
- import{rta as p,sta as a}from"./cli-1.1.23-j8pns1dc.mjs";import{Dta as i}from"./cli-1.1.23-bdj1ne1r.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
- export{u as R9};
@@ -1,2 +0,0 @@
1
- import{Eta as Q,Fta as U}from"./cli-1.1.23-bdj1ne1r.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
- export{K as mta,w as nta,L as ota};
@@ -1,6 +0,0 @@
1
- import{Fta as I}from"./cli-1.1.23-bdj1ne1r.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
2
- `:`
3
- `)+H,K=J+1,J=$.indexOf(`
4
- `,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
5
- `);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
6
- export{q1 as v9,Y1 as w9,X1 as x9};