@claudiolabs/claudin 0.5.8 → 0.5.9

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 (843) hide show
  1. package/dist/chunks/AgentTool-0.5.9-560de9d1.mjs +1 -0
  2. package/dist/chunks/App-0.5.9-zsap2q4b.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.9-8zgzn0jw.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.9-92f16280.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.9-708dpq05.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.9-thv5358f.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.9-h0dan6qh.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.9-35ajv7zw.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.9-2gfy103v.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.9-wjw0w0c1.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.9-hty0xzar.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.9-pch1zyqn.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.9-xjp9bdct.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.9-t4wkfdrh.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.9-12p8z825.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.9-d02fdy7a.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.9-2h6pym7f.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.9-fn63chv9.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.9-wdc0fys1.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.9-ty7tvdf3.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.9-th2cx2b2.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.9-gqyef6wv.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.9-e4b9wj1z.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.9-xx7btmxb.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.9-7h9j8zft.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.9-y0bxcnzx.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.9-bqhnxdga.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.9-t52c4h9t.mjs +1 -0
  29. package/dist/chunks/agents-0.5.9-b270304w.mjs +110 -0
  30. package/dist/chunks/agents-0.5.9-h9dw36cp.mjs +3 -0
  31. package/dist/chunks/api-0.5.9-jnhtend7.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.9-hrjx2e4n.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.9-ap4j82na.mjs +1 -0
  34. package/dist/chunks/auth-0.5.9-cna7nxzb.mjs +1 -0
  35. package/dist/chunks/auth-0.5.9-q8ejya3n.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.9-w9j324dc.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.9-3x3xcjhq.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.9-ngzjz5nf.mjs +1 -0
  39. package/dist/chunks/branch-0.5.9-4389y3jh.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.9-ph0vdzcm.mjs +1 -0
  41. package/dist/chunks/btw-0.5.9-kq7dda47.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.9-3s5bz133.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.9-k02nazjg.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.9-vdfe8hkq.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.9-89wd0xyf.mjs +4 -0
  46. package/dist/chunks/caches-0.5.9-kg4820wg.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.9-7pt2wjt1.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.9-bhqwq7vs.mjs +1 -0
  49. package/dist/chunks/clear-0.5.9-5mg9gs8a.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.9-esamq102.mjs +1 -0
  51. package/dist/chunks/cli-0.5.9-00ms6tt7.mjs +4 -0
  52. package/dist/chunks/cli-0.5.9-02vwh5bc.mjs +2 -0
  53. package/dist/chunks/cli-0.5.9-0a5jxqra.mjs +58 -0
  54. package/dist/chunks/cli-0.5.9-0b1wx67c.mjs +193 -0
  55. package/dist/chunks/cli-0.5.9-0becvd5f.mjs +2 -0
  56. package/dist/chunks/cli-0.5.9-0w46b370.mjs +3 -0
  57. package/dist/chunks/cli-0.5.9-10ar539r.mjs +2 -0
  58. package/dist/chunks/cli-0.5.9-12gj3v8y.mjs +12 -0
  59. package/dist/chunks/cli-0.5.9-1ktmgzhb.mjs +15 -0
  60. package/dist/chunks/cli-0.5.9-1qkhnqnk.mjs +4 -0
  61. package/dist/chunks/cli-0.5.9-1y9n9z2h.mjs +2 -0
  62. package/dist/chunks/cli-0.5.9-1zc8qwr4.mjs +2 -0
  63. package/dist/chunks/cli-0.5.9-248na0hf.mjs +2 -0
  64. package/dist/chunks/cli-0.5.9-2fcyavah.mjs +17 -0
  65. package/dist/chunks/cli-0.5.9-2jfbm2es.mjs +12 -0
  66. package/dist/chunks/cli-0.5.9-2txnqxd1.mjs +2 -0
  67. package/dist/chunks/cli-0.5.9-31f5vjyq.mjs +2 -0
  68. package/dist/chunks/cli-0.5.9-32fpvgpt.mjs +2 -0
  69. package/dist/chunks/cli-0.5.9-371mb3zf.mjs +4 -0
  70. package/dist/chunks/cli-0.5.9-3bsjckc3.mjs +2 -0
  71. package/dist/chunks/cli-0.5.9-3s1c44tz.mjs +2 -0
  72. package/dist/chunks/cli-0.5.9-41dpv5z9.mjs +2 -0
  73. package/dist/chunks/cli-0.5.9-42t3s85x.mjs +2 -0
  74. package/dist/chunks/cli-0.5.9-4aga12a5.mjs +2 -0
  75. package/dist/chunks/cli-0.5.9-4fdad25z.mjs +3 -0
  76. package/dist/chunks/cli-0.5.9-4m738pn1.mjs +25 -0
  77. package/dist/chunks/cli-0.5.9-4s8nynfd.mjs +2 -0
  78. package/dist/chunks/cli-0.5.9-4t8b91eb.mjs +4 -0
  79. package/dist/chunks/cli-0.5.9-4w9169na.mjs +3 -0
  80. package/dist/chunks/cli-0.5.9-5ah34c4c.mjs +39 -0
  81. package/dist/chunks/cli-0.5.9-5e3fhttm.mjs +2 -0
  82. package/dist/chunks/cli-0.5.9-5hzwn715.mjs +2 -0
  83. package/dist/chunks/cli-0.5.9-5s8vtyx6.mjs +4 -0
  84. package/dist/chunks/cli-0.5.9-5vdqnecb.mjs +4 -0
  85. package/dist/chunks/cli-0.5.9-5vj7cvdr.mjs +2 -0
  86. package/dist/chunks/cli-0.5.9-5ykvr12k.mjs +2 -0
  87. package/dist/chunks/cli-0.5.9-610r4gbg.mjs +2 -0
  88. package/dist/chunks/cli-0.5.9-637n1msd.mjs +15 -0
  89. package/dist/chunks/cli-0.5.9-671nz4d9.mjs +2 -0
  90. package/dist/chunks/cli-0.5.9-68rmtj23.mjs +2 -0
  91. package/dist/chunks/cli-0.5.9-6rrqt96f.mjs +2 -0
  92. package/dist/chunks/cli-0.5.9-72tax9cd.mjs +2 -0
  93. package/dist/chunks/cli-0.5.9-77nxjft3.mjs +2 -0
  94. package/dist/chunks/cli-0.5.9-7bq8wzr3.mjs +18 -0
  95. package/dist/chunks/cli-0.5.9-7hcka84h.mjs +2 -0
  96. package/dist/chunks/cli-0.5.9-7qcan18n.mjs +2 -0
  97. package/dist/chunks/cli-0.5.9-8h1qpeef.mjs +2 -0
  98. package/dist/chunks/cli-0.5.9-8kfemzbn.mjs +2 -0
  99. package/dist/chunks/cli-0.5.9-8ndgy03m.mjs +4 -0
  100. package/dist/chunks/cli-0.5.9-91gjew0x.mjs +3 -0
  101. package/dist/chunks/cli-0.5.9-9fgjryqc.mjs +2 -0
  102. package/dist/chunks/cli-0.5.9-9rrpczqk.mjs +17 -0
  103. package/dist/chunks/cli-0.5.9-a720c6hc.mjs +9 -0
  104. package/dist/chunks/cli-0.5.9-ajbjmz51.mjs +2 -0
  105. package/dist/chunks/cli-0.5.9-an1j3dqv.mjs +2 -0
  106. package/dist/chunks/cli-0.5.9-ap6gvqkx.mjs +67 -0
  107. package/dist/chunks/cli-0.5.9-apc46v07.mjs +15 -0
  108. package/dist/chunks/cli-0.5.9-awa1dtdz.mjs +2 -0
  109. package/dist/chunks/cli-0.5.9-b4t4xfpb.mjs +2 -0
  110. package/dist/chunks/cli-0.5.9-b4xgpen1.mjs +5 -0
  111. package/dist/chunks/cli-0.5.9-bax4dxrj.mjs +2 -0
  112. package/dist/chunks/cli-0.5.9-bc0wvx5b.mjs +2 -0
  113. package/dist/chunks/cli-0.5.9-bfn7177j.mjs +2 -0
  114. package/dist/chunks/cli-0.5.9-bp09b2xm.mjs +2 -0
  115. package/dist/chunks/cli-0.5.9-bv3m0yb8.mjs +2 -0
  116. package/dist/chunks/cli-0.5.9-bwdsfdf6.mjs +2 -0
  117. package/dist/chunks/cli-0.5.9-c54d94sv.mjs +2 -0
  118. package/dist/chunks/cli-0.5.9-c91t0fys.mjs +2 -0
  119. package/dist/chunks/cli-0.5.9-cbgfqb0x.mjs +2 -0
  120. package/dist/chunks/cli-0.5.9-cy4sm0c2.mjs +2 -0
  121. package/dist/chunks/cli-0.5.9-d5rn9c6v.mjs +12 -0
  122. package/dist/chunks/cli-0.5.9-d66wktpd.mjs +2 -0
  123. package/dist/chunks/cli-0.5.9-d89n2ccx.mjs +2 -0
  124. package/dist/chunks/cli-0.5.9-da0mspn4.mjs +2 -0
  125. package/dist/chunks/cli-0.5.9-dszssq6z.mjs +2 -0
  126. package/dist/chunks/cli-0.5.9-dtbcqw2e.mjs +2 -0
  127. package/dist/chunks/cli-0.5.9-e1gk7v9y.mjs +2 -0
  128. package/dist/chunks/cli-0.5.9-e4sr85eg.mjs +2 -0
  129. package/dist/chunks/cli-0.5.9-e5ex267m.mjs +2 -0
  130. package/dist/chunks/cli-0.5.9-e7gc5p54.mjs +2 -0
  131. package/dist/chunks/cli-0.5.9-eagw660r.mjs +2 -0
  132. package/dist/chunks/cli-0.5.9-ehe0yr95.mjs +26 -0
  133. package/dist/chunks/cli-0.5.9-ejmv1n9p.mjs +3 -0
  134. package/dist/chunks/cli-0.5.9-ek649arf.mjs +6 -0
  135. package/dist/chunks/cli-0.5.9-ezc11axw.mjs +2 -0
  136. package/dist/chunks/cli-0.5.9-ezpjdejw.mjs +2 -0
  137. package/dist/chunks/cli-0.5.9-f9jt7awn.mjs +2 -0
  138. package/dist/chunks/cli-0.5.9-fn6ees65.mjs +2 -0
  139. package/dist/chunks/cli-0.5.9-fv4jrdef.mjs +2 -0
  140. package/dist/chunks/cli-0.5.9-g6qpvmj4.mjs +133 -0
  141. package/dist/chunks/cli-0.5.9-g9kt9aw7.mjs +2 -0
  142. package/dist/chunks/cli-0.5.9-ga0kqnkz.mjs +5 -0
  143. package/dist/chunks/cli-0.5.9-gbq794tt.mjs +2 -0
  144. package/dist/chunks/cli-0.5.9-gcsba93g.mjs +18 -0
  145. package/dist/chunks/cli-0.5.9-ghbax09k.mjs +2 -0
  146. package/dist/chunks/cli-0.5.9-gk1vb8nn.mjs +2 -0
  147. package/dist/chunks/cli-0.5.9-gp0bq7wk.mjs +2 -0
  148. package/dist/chunks/cli-0.5.9-gr8zgxwx.mjs +2 -0
  149. package/dist/chunks/cli-0.5.9-grgf8g99.mjs +2 -0
  150. package/dist/chunks/cli-0.5.9-h5d0zxek.mjs +3 -0
  151. package/dist/chunks/cli-0.5.9-h6nmz5e3.mjs +2 -0
  152. package/dist/chunks/cli-0.5.9-h7gh7ym5.mjs +24 -0
  153. package/dist/chunks/cli-0.5.9-h836a3wa.mjs +2 -0
  154. package/dist/chunks/cli-0.5.9-hg2qm56h.mjs +4 -0
  155. package/dist/chunks/cli-0.5.9-hpq0xehd.mjs +2 -0
  156. package/dist/chunks/cli-0.5.9-hwet4kvx.mjs +2 -0
  157. package/dist/chunks/cli-0.5.9-j2d1jct8.mjs +2 -0
  158. package/dist/chunks/cli-0.5.9-j8629kcy.mjs +2 -0
  159. package/dist/chunks/cli-0.5.9-j9ns2awb.mjs +8 -0
  160. package/dist/chunks/cli-0.5.9-jd8be7cd.mjs +6 -0
  161. package/dist/chunks/cli-0.5.9-jdzavz2g.mjs +2 -0
  162. package/dist/chunks/cli-0.5.9-jjtdefqj.mjs +2 -0
  163. package/dist/chunks/cli-0.5.9-jk4rx6zt.mjs +4 -0
  164. package/dist/chunks/cli-0.5.9-jnhyr1zg.mjs +2 -0
  165. package/dist/chunks/cli-0.5.9-jsxqd90d.mjs +3 -0
  166. package/dist/chunks/cli-0.5.9-k3prcbg9.mjs +2 -0
  167. package/dist/chunks/cli-0.5.9-k47s77hf.mjs +2 -0
  168. package/dist/chunks/cli-0.5.9-k6qxbj0d.mjs +42 -0
  169. package/dist/chunks/cli-0.5.9-k9yedz53.mjs +5262 -0
  170. package/dist/chunks/cli-0.5.9-kfpgp09g.mjs +6 -0
  171. package/dist/chunks/cli-0.5.9-knc0w8sn.mjs +2 -0
  172. package/dist/chunks/cli-0.5.9-krvpcgvw.mjs +2 -0
  173. package/dist/chunks/cli-0.5.9-ktxeg6my.mjs +2 -0
  174. package/dist/chunks/cli-0.5.9-m1y4hmzs.mjs +2 -0
  175. package/dist/chunks/cli-0.5.9-mcezkpp8.mjs +2 -0
  176. package/dist/chunks/cli-0.5.9-mhz9wt6a.mjs +2 -0
  177. package/dist/chunks/cli-0.5.9-mk69z06z.mjs +2 -0
  178. package/dist/chunks/cli-0.5.9-mmvtbr39.mjs +2 -0
  179. package/dist/chunks/cli-0.5.9-mpqmy7zw.mjs +2 -0
  180. package/dist/chunks/cli-0.5.9-n08gkgng.mjs +21 -0
  181. package/dist/chunks/cli-0.5.9-ncjg30aq.mjs +3 -0
  182. package/dist/chunks/cli-0.5.9-nct7sarc.mjs +2 -0
  183. package/dist/chunks/cli-0.5.9-nfhfsnw6.mjs +2 -0
  184. package/dist/chunks/cli-0.5.9-nk3pacrn.mjs +5 -0
  185. package/dist/chunks/cli-0.5.9-nvf5kfmq.mjs +9 -0
  186. package/dist/chunks/cli-0.5.9-ppr1420k.mjs +2 -0
  187. package/dist/chunks/cli-0.5.9-q3wvc7qb.mjs +2 -0
  188. package/dist/chunks/cli-0.5.9-q69vj08a.mjs +2 -0
  189. package/dist/chunks/cli-0.5.9-q7a4xcwy.mjs +3 -0
  190. package/dist/chunks/cli-0.5.9-q9ne4r9p.mjs +50 -0
  191. package/dist/chunks/cli-0.5.9-qddf6zq9.mjs +2 -0
  192. package/dist/chunks/cli-0.5.9-qexy3mqr.mjs +59 -0
  193. package/dist/chunks/cli-0.5.9-qvvxrm93.mjs +3 -0
  194. package/dist/chunks/cli-0.5.9-qy6qkzwb.mjs +2 -0
  195. package/dist/chunks/cli-0.5.9-r9d405kc.mjs +2 -0
  196. package/dist/chunks/cli-0.5.9-rbjjfytb.mjs +2 -0
  197. package/dist/chunks/cli-0.5.9-rh5280xq.mjs +2 -0
  198. package/dist/chunks/cli-0.5.9-rhycyvwn.mjs +2 -0
  199. package/dist/chunks/cli-0.5.9-rjdhjn49.mjs +20 -0
  200. package/dist/chunks/cli-0.5.9-rm62v7hr.mjs +34 -0
  201. package/dist/chunks/cli-0.5.9-rpgjj6qg.mjs +2 -0
  202. package/dist/chunks/cli-0.5.9-rv2328c4.mjs +2 -0
  203. package/dist/chunks/cli-0.5.9-s2jh3scf.mjs +3 -0
  204. package/dist/chunks/cli-0.5.9-sd34jmva.mjs +2 -0
  205. package/dist/chunks/cli-0.5.9-sjcz03eb.mjs +2 -0
  206. package/dist/chunks/cli-0.5.9-ss870bda.mjs +2 -0
  207. package/dist/chunks/cli-0.5.9-syr6nffj.mjs +2 -0
  208. package/dist/chunks/cli-0.5.9-t2fy8t5r.mjs +45 -0
  209. package/dist/chunks/cli-0.5.9-tav5jmz1.mjs +2 -0
  210. package/dist/chunks/cli-0.5.9-tbz9s4h3.mjs +2 -0
  211. package/dist/chunks/cli-0.5.9-tj6dt3d6.mjs +2 -0
  212. package/dist/chunks/cli-0.5.9-tke5evvm.mjs +2 -0
  213. package/dist/chunks/cli-0.5.9-v1srrn02.mjs +2 -0
  214. package/dist/chunks/cli-0.5.9-v5mkedy5.mjs +16 -0
  215. package/dist/chunks/cli-0.5.9-v69cq6f1.mjs +2 -0
  216. package/dist/chunks/cli-0.5.9-ve2b6kmp.mjs +2 -0
  217. package/dist/chunks/cli-0.5.9-vkt9t3z8.mjs +133 -0
  218. package/dist/chunks/cli-0.5.9-w1g3tgzh.mjs +2 -0
  219. package/dist/chunks/cli-0.5.9-wc5gt1zw.mjs +2 -0
  220. package/dist/chunks/cli-0.5.9-whf5zybr.mjs +2 -0
  221. package/dist/chunks/cli-0.5.9-wjvc994v.mjs +2 -0
  222. package/dist/chunks/cli-0.5.9-wkhmkyaq.mjs +2 -0
  223. package/dist/chunks/cli-0.5.9-wrndf987.mjs +2 -0
  224. package/dist/chunks/cli-0.5.9-xbvqph1k.mjs +2 -0
  225. package/dist/chunks/cli-0.5.9-xcexsk79.mjs +2 -0
  226. package/dist/chunks/cli-0.5.9-xge969yd.mjs +2 -0
  227. package/dist/chunks/cli-0.5.9-xn1qcye7.mjs +2 -0
  228. package/dist/chunks/cli-0.5.9-xn369es1.mjs +2 -0
  229. package/dist/chunks/cli-0.5.9-xz1pg47z.mjs +10 -0
  230. package/dist/chunks/cli-0.5.9-yazhwsgb.mjs +4 -0
  231. package/dist/chunks/cli-0.5.9-yh7f5m4w.mjs +2 -0
  232. package/dist/chunks/cli-0.5.9-yqn35x2d.mjs +2 -0
  233. package/dist/chunks/cli-0.5.9-ysvsqcpa.mjs +2 -0
  234. package/dist/chunks/cli-0.5.9-ywc7arzn.mjs +2 -0
  235. package/dist/chunks/cli-0.5.9-z87j725g.mjs +2 -0
  236. package/dist/chunks/cli-0.5.9-zb26tq1c.mjs +2 -0
  237. package/dist/chunks/cli-0.5.9-zerpef2t.mjs +1 -0
  238. package/dist/chunks/cli-0.5.9-zeskcndd.mjs +24 -0
  239. package/dist/chunks/cli-0.5.9-zqgkcx3g.mjs +2 -0
  240. package/dist/chunks/cli-0.5.9-zrcz538q.mjs +2 -0
  241. package/dist/chunks/cli-0.5.9-zwpt90q9.mjs +7 -0
  242. package/dist/chunks/client-0.5.9-bhc7ghsr.mjs +1 -0
  243. package/dist/chunks/color-0.5.9-5722xdf4.mjs +1 -0
  244. package/dist/chunks/compact-0.5.9-4cf807hc.mjs +3 -0
  245. package/dist/chunks/config-0.5.9-936tss5g.mjs +1 -0
  246. package/dist/chunks/config-0.5.9-kk16cygb.mjs +1 -0
  247. package/dist/chunks/context-0.5.9-b0afgp2c.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.5.9-wj6fxcsj.mjs +1 -0
  249. package/dist/chunks/conversation-0.5.9-rtntf81h.mjs +1 -0
  250. package/dist/chunks/copy-0.5.9-93t8z0wz.mjs +9 -0
  251. package/dist/chunks/cost-0.5.9-2csvd1ae.mjs +1 -0
  252. package/dist/chunks/createSSHSession-0.5.9-0aqkvqad.mjs +1 -0
  253. package/dist/chunks/createSession-0.5.9-j9xdpffh.mjs +1 -0
  254. package/dist/chunks/debug-0.5.9-kd9n32y2.mjs +1 -0
  255. package/dist/chunks/defaultActionDeps-0.5.9-1f7mkn9m.mjs +1177 -0
  256. package/dist/chunks/desktop-0.5.9-ce65mt7y.mjs +1 -0
  257. package/dist/chunks/detectRepository-0.5.9-4nd76hbs.mjs +1 -0
  258. package/dist/chunks/detection-0.5.9-mpgxg1d5.mjs +1 -0
  259. package/dist/chunks/diff-0.5.9-89ny0sp6.mjs +1 -0
  260. package/dist/chunks/doctor-0.5.9-e8bxsm2r.mjs +1 -0
  261. package/dist/chunks/doctorDiagnostic-0.5.9-kwncc3yh.mjs +1 -0
  262. package/dist/chunks/earlyInput-0.5.9-cxrgrx2e.mjs +1 -0
  263. package/dist/chunks/effort-0.5.9-dbgsjfep.mjs +10 -0
  264. package/dist/chunks/envUtils-0.5.9-59e9sq5q.mjs +1 -0
  265. package/dist/chunks/environmentSelection-0.5.9-5tjt9mkd.mjs +1 -0
  266. package/dist/chunks/environments-0.5.9-ebm4yp6e.mjs +1 -0
  267. package/dist/chunks/errors-0.5.9-xp1e5xqp.mjs +1 -0
  268. package/dist/chunks/exampleCommands-0.5.9-dxv2wpk4.mjs +1 -0
  269. package/dist/chunks/exit-0.5.9-q7cpk25k.mjs +1 -0
  270. package/dist/chunks/export-0.5.9-1dpbp185.mjs +2 -0
  271. package/dist/chunks/extra-usage-0.5.9-ctd5dnsr.mjs +1 -0
  272. package/dist/chunks/extra-usage-noninteractive-0.5.9-hbmbvzb5.mjs +1 -0
  273. package/dist/chunks/fast-0.5.9-wagaw91z.mjs +1 -0
  274. package/dist/chunks/feedback-0.5.9-x37szs13.mjs +14 -0
  275. package/dist/chunks/firstPartyEventLogger-0.5.9-g8st730b.mjs +1 -0
  276. package/dist/chunks/git-0.5.9-zxdvsyxq.mjs +1 -0
  277. package/dist/chunks/githubModelsCredentials-0.5.9-mp51r114.mjs +1 -0
  278. package/dist/chunks/grove-0.5.9-grafpqtx.mjs +1 -0
  279. package/dist/chunks/growthbook-0.5.9-mr1nyz65.mjs +1 -0
  280. package/dist/chunks/headless-0.5.9-pxnbg1dh.mjs +2 -0
  281. package/dist/chunks/heapdump-0.5.9-58bmar8y.mjs +6 -0
  282. package/dist/chunks/help-0.5.9-x6ds3za0.mjs +1 -0
  283. package/dist/chunks/hookChains-0.5.9-1sz7vw7t.mjs +3 -0
  284. package/dist/chunks/hooks-0.5.9-4mjp8k78.mjs +1 -0
  285. package/dist/chunks/hooks-0.5.9-n14e2a57.mjs +79 -0
  286. package/dist/chunks/ide-0.5.9-gk5tarwc.mjs +3 -0
  287. package/dist/chunks/image-processor-napi-0.5.9-eept9e9s.mjs +1 -0
  288. package/dist/chunks/index-0.5.9-0n7mpzrj.mjs +17 -0
  289. package/dist/chunks/index-0.5.9-3ng34e8n.mjs +2 -0
  290. package/dist/chunks/index-0.5.9-4b9dgj2z.mjs +9 -0
  291. package/dist/chunks/index-0.5.9-4fzd2pns.mjs +1 -0
  292. package/dist/chunks/index-0.5.9-6awv6fyn.mjs +1 -0
  293. package/dist/chunks/index-0.5.9-6cbrcdyh.mjs +1 -0
  294. package/dist/chunks/index-0.5.9-725p0eby.mjs +1 -0
  295. package/dist/chunks/index-0.5.9-85ep6547.mjs +30 -0
  296. package/dist/chunks/index-0.5.9-8h5ceajb.mjs +1 -0
  297. package/dist/chunks/index-0.5.9-8ws7n6wv.mjs +5 -0
  298. package/dist/chunks/index-0.5.9-b3jm65x4.mjs +1 -0
  299. package/dist/chunks/index-0.5.9-cjjbeyt8.mjs +1 -0
  300. package/dist/chunks/index-0.5.9-gnac3s48.mjs +1 -0
  301. package/dist/chunks/index-0.5.9-m68jcsx2.mjs +1 -0
  302. package/dist/chunks/index-0.5.9-n91crv8a.mjs +1 -0
  303. package/dist/chunks/index-0.5.9-npkfayxd.mjs +1 -0
  304. package/dist/chunks/index-0.5.9-pbzzad7t.mjs +9 -0
  305. package/dist/chunks/index-0.5.9-thp631gs.mjs +1 -0
  306. package/dist/chunks/index-0.5.9-xcy5t1fw.mjs +1 -0
  307. package/dist/chunks/index-0.5.9-y07jxja1.mjs +1 -0
  308. package/dist/chunks/index-0.5.9-yjkfcf2g.mjs +2 -0
  309. package/dist/chunks/index-0.5.9-zb346057.mjs +1 -0
  310. package/dist/chunks/init-0.5.9-cmszfh8j.mjs +1 -0
  311. package/dist/chunks/initReplBridge-0.5.9-y2j594wz.mjs +1 -0
  312. package/dist/chunks/ink-0.5.9-km3f0tv6.mjs +1 -0
  313. package/dist/chunks/insights-0.5.9-fevx72ve.mjs +870 -0
  314. package/dist/chunks/install-0.5.9-6m05dpsa.mjs +1 -0
  315. package/dist/chunks/install-github-app-0.5.9-91syqpey.mjs +149 -0
  316. package/dist/chunks/install-slack-app-0.5.9-9rqmjej1.mjs +1 -0
  317. package/dist/chunks/instrumentation-0.5.9-55dt6kkh.mjs +1 -0
  318. package/dist/chunks/interactiveHelpers-0.5.9-47bhz9at.mjs +1 -0
  319. package/dist/chunks/keybindings-0.5.9-y134m89v.mjs +2 -0
  320. package/dist/chunks/knowledge-0.5.9-d1m7e2b4.mjs +2 -0
  321. package/dist/chunks/latestVersionCache-0.5.9-69z169gq.mjs +1 -0
  322. package/dist/chunks/loadAgentsDir-0.5.9-vtemqv8c.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.5.9-xxp0pj2x.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.5.9-zgq2s8sm.mjs +1 -0
  325. package/dist/chunks/log-0.5.9-8aszszjb.mjs +1 -0
  326. package/dist/chunks/main-0.5.9-cjg2h8yb.mjs +1 -0
  327. package/dist/chunks/managedEnv-0.5.9-nq2mbery.mjs +1 -0
  328. package/dist/chunks/mcp-0.5.9-g39bj87f.mjs +17 -0
  329. package/dist/chunks/mcp-0.5.9-h1sdm6zb.mjs +4 -0
  330. package/dist/chunks/mcp-0.5.9-vpwsq0wd.mjs +1 -0
  331. package/dist/chunks/mcpb-0.5.9-pavmx8mm.mjs +1 -0
  332. package/dist/chunks/memory-0.5.9-se036fe4.mjs +3 -0
  333. package/dist/chunks/mobile-0.5.9-57ycqdp3.mjs +2 -0
  334. package/dist/chunks/model-0.5.9-4e6fc1m4.mjs +1 -0
  335. package/dist/chunks/model-0.5.9-k0m86zrn.mjs +2 -0
  336. package/dist/chunks/node-0.5.9-ftk6pxmx.mjs +12 -0
  337. package/dist/chunks/oauth-0.5.9-bytwte72.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.5.9-f9gdeama.mjs +14 -0
  339. package/dist/chunks/output-style-0.5.9-1wbqsbc0.mjs +1 -0
  340. package/dist/chunks/package-D6422PQU-0.5.9-4gkr65dy.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.5.9-d0t88r4n.mjs +1 -0
  342. package/dist/chunks/parser-0.5.9-j1kdtn15.mjs +1 -0
  343. package/dist/chunks/passes-0.5.9-w08t80rc.mjs +1 -0
  344. package/dist/chunks/permissions-0.5.9-mzx7w14f.mjs +3 -0
  345. package/dist/chunks/plan-0.5.9-trs5gepx.mjs +1 -0
  346. package/dist/chunks/plist-0.5.9-rzpv4ecn.mjs +1 -0
  347. package/dist/chunks/plugin-0.5.9-x1xsznkk.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.5.9-qwkp82xp.mjs +1 -0
  349. package/dist/chunks/plugins-0.5.9-8yj1w6bf.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.5.9-130eb4bx.mjs +2 -0
  351. package/dist/chunks/print-0.5.9-fm0q92d1.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.5.9-vhjhbccg.mjs +1 -0
  353. package/dist/chunks/process-0.5.9-syp1y7ym.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.5.9-admb0s9z.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.5.9-x5wmbzr0.mjs +9 -0
  356. package/dist/chunks/prompt-0.5.9-6s763n7m.mjs +1 -0
  357. package/dist/chunks/prompt-0.5.9-fg1exp0e.mjs +1 -0
  358. package/dist/chunks/prompts-0.5.9-a6jrpexy.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.5.9-5920qvb2.mjs +13 -0
  360. package/dist/chunks/provider-0.5.9-ew50s03j.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.5.9-ygv5pxbq.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.5.9-pebvjkk0.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.5.9-p39mhxr9.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.5.9-5576rw9k.mjs +34 -0
  365. package/dist/chunks/registry-0.5.9-tkmx5qgm.mjs +1 -0
  366. package/dist/chunks/release-notes-0.5.9-cmf1033z.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.5.9-ynqb4wwm.mjs +2 -0
  368. package/dist/chunks/remote-env-0.5.9-ddnwx90m.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.5.9-br32ecze.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.5.9-9ee3jy2n.mjs +1 -0
  371. package/dist/chunks/rename-0.5.9-h0npjxhv.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.5.9-4tjg5rct.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.5.9-y4zkk3hb.mjs +1 -0
  374. package/dist/chunks/resume-0.5.9-5n9z570h.mjs +2 -0
  375. package/dist/chunks/rewind-0.5.9-cawzh2f5.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.5.9-z7hher7x.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.5.9-m8dy3vak.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.5.9-d7hfb9dw.mjs +1 -0
  379. package/dist/chunks/session-0.5.9-spjfzb60.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.5.9-k8tw4apd.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.5.9-kzd77836.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.5.9-5eaxh9e1.mjs +1 -0
  383. package/dist/chunks/settings-0.5.9-9y9yx2ep.mjs +1 -0
  384. package/dist/chunks/setup-0.5.9-cbnsjaz6.mjs +5 -0
  385. package/dist/chunks/sinks-0.5.9-3kes56y2.mjs +1 -0
  386. package/dist/chunks/skills-0.5.9-816ec23f.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.5.9-j5rdws5r.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.5.9-wgd2amqq.mjs +1 -0
  389. package/dist/chunks/state-0.5.9-ssv90pdf.mjs +1 -0
  390. package/dist/chunks/stats-0.5.9-09jq1eez.mjs +6 -0
  391. package/dist/chunks/status-0.5.9-zm23czy4.mjs +1 -0
  392. package/dist/chunks/stickers-0.5.9-df1ha62e.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.5.9-4bh9v7rk.mjs +1 -0
  394. package/dist/chunks/tasks-0.5.9-75eaj64t.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.5.9-a239c7as.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.5.9-gpfpnhg1.mjs +1 -0
  397. package/dist/chunks/teleport-0.5.9-jq0cm2ce.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.5.9-zscy8b5b.mjs +1 -0
  399. package/dist/chunks/theme-0.5.9-crkb4a1t.mjs +1 -0
  400. package/dist/chunks/thinkback-0.5.9-bqzpccev.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.5.9-avsgpz11.mjs +1 -0
  402. package/dist/chunks/toolPool-0.5.9-9k94r61g.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.5.9-qm8rqvys.mjs +1 -0
  404. package/dist/chunks/tools-0.5.9-e5fa6xh1.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.5.9-dhpwn40g.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.5.9-bwat06c0.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.5.9-qfz8shw1.mjs +4 -0
  408. package/dist/chunks/update-0.5.9-yv6acwy6.mjs +86 -0
  409. package/dist/chunks/upgrade-0.5.9-3xpmapbj.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.5.9-ebc62ytm.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.5.9-ejbmjrv9.mjs +1 -0
  412. package/dist/chunks/usage-0.5.9-ze5694v0.mjs +1 -0
  413. package/dist/chunks/util-0.5.9-8517xr6w.mjs +1 -0
  414. package/dist/chunks/utils-0.5.9-tq5p3g26.mjs +1 -0
  415. package/dist/chunks/vim-0.5.9-3pwhv6s4.mjs +1 -0
  416. package/dist/chunks/watcher-0.5.9-ft2b96h8.mjs +1 -0
  417. package/dist/chunks/wiki-0.5.9-f96c34xg.mjs +132 -0
  418. package/dist/chunks/worktree-0.5.9-p28ne51h.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.5.9-4tgvrvd2.mjs +1 -0
  420. package/dist/chunks/wrapper-0.5.9-asjtntyw.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -2
  423. package/package.json +24 -24
  424. package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +0 -1
  425. package/dist/chunks/App-0.5.8-s4939y9q.mjs +0 -1
  426. package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +0 -1
  427. package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +0 -1
  428. package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +0 -1
  429. package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +0 -1
  430. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +0 -1
  431. package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +0 -1
  432. package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +0 -3
  433. package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +0 -1
  434. package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +0 -1
  435. package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +0 -1
  436. package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +0 -1
  437. package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +0 -1
  438. package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +0 -1
  439. package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +0 -1
  440. package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +0 -1
  441. package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +0 -1
  442. package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +0 -1
  443. package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +0 -1
  444. package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +0 -1
  445. package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +0 -1
  446. package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +0 -1
  447. package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +0 -9
  448. package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +0 -1
  449. package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +0 -1
  450. package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +0 -1
  451. package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +0 -1
  452. package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +0 -3
  453. package/dist/chunks/agents-0.5.8-qg1s69va.mjs +0 -110
  454. package/dist/chunks/api-0.5.8-pcde65dc.mjs +0 -1
  455. package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +0 -1
  456. package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +0 -1
  457. package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +0 -1
  458. package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +0 -1
  459. package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +0 -48
  460. package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +0 -1
  461. package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +0 -1
  462. package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +0 -4
  463. package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +0 -1
  464. package/dist/chunks/btw-0.5.8-0yftty6m.mjs +0 -1
  465. package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +0 -3
  466. package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +0 -1
  467. package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +0 -21
  468. package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +0 -4
  469. package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +0 -1
  470. package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +0 -1
  471. package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +0 -1
  472. package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +0 -1
  473. package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +0 -1
  474. package/dist/chunks/cli-0.5.8-01yjahnz.mjs +0 -2
  475. package/dist/chunks/cli-0.5.8-07dyymev.mjs +0 -2
  476. package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +0 -2
  477. package/dist/chunks/cli-0.5.8-0bys4xae.mjs +0 -2
  478. package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +0 -2
  479. package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +0 -2
  480. package/dist/chunks/cli-0.5.8-0hybhk72.mjs +0 -2
  481. package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +0 -2
  482. package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +0 -2
  483. package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +0 -2
  484. package/dist/chunks/cli-0.5.8-1heha1zs.mjs +0 -2
  485. package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +0 -2
  486. package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +0 -2
  487. package/dist/chunks/cli-0.5.8-221e7v67.mjs +0 -2
  488. package/dist/chunks/cli-0.5.8-23ep6z70.mjs +0 -2
  489. package/dist/chunks/cli-0.5.8-2bq72da9.mjs +0 -2
  490. package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +0 -2
  491. package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +0 -2
  492. package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +0 -2
  493. package/dist/chunks/cli-0.5.8-396k3ymm.mjs +0 -25
  494. package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +0 -58
  495. package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +0 -2
  496. package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +0 -2
  497. package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +0 -2
  498. package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +0 -2
  499. package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +0 -2
  500. package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +0 -2
  501. package/dist/chunks/cli-0.5.8-402vctdy.mjs +0 -2
  502. package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +0 -2
  503. package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +0 -5286
  504. package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +0 -9
  505. package/dist/chunks/cli-0.5.8-4mn881k7.mjs +0 -2
  506. package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +0 -2
  507. package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +0 -6
  508. package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +0 -8
  509. package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +0 -2
  510. package/dist/chunks/cli-0.5.8-510vqc09.mjs +0 -4
  511. package/dist/chunks/cli-0.5.8-57qan5v8.mjs +0 -2
  512. package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +0 -2
  513. package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +0 -2
  514. package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +0 -2
  515. package/dist/chunks/cli-0.5.8-5h92528m.mjs +0 -4
  516. package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +0 -2
  517. package/dist/chunks/cli-0.5.8-60e57smp.mjs +0 -2
  518. package/dist/chunks/cli-0.5.8-665mfjfq.mjs +0 -5
  519. package/dist/chunks/cli-0.5.8-69frkjjq.mjs +0 -2
  520. package/dist/chunks/cli-0.5.8-69swpyae.mjs +0 -2
  521. package/dist/chunks/cli-0.5.8-6epmns99.mjs +0 -2
  522. package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +0 -3
  523. package/dist/chunks/cli-0.5.8-6t480jt6.mjs +0 -2
  524. package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +0 -2
  525. package/dist/chunks/cli-0.5.8-78y711gq.mjs +0 -7
  526. package/dist/chunks/cli-0.5.8-7fm71y20.mjs +0 -2
  527. package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +0 -3
  528. package/dist/chunks/cli-0.5.8-7teqphwt.mjs +0 -2
  529. package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +0 -2
  530. package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +0 -2
  531. package/dist/chunks/cli-0.5.8-8b40nd32.mjs +0 -3
  532. package/dist/chunks/cli-0.5.8-8c0hade9.mjs +0 -2
  533. package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +0 -2
  534. package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +0 -24
  535. package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +0 -2
  536. package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +0 -4
  537. package/dist/chunks/cli-0.5.8-903jgg2t.mjs +0 -2
  538. package/dist/chunks/cli-0.5.8-959n5v33.mjs +0 -44
  539. package/dist/chunks/cli-0.5.8-96p83b7z.mjs +0 -2
  540. package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +0 -2
  541. package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +0 -2
  542. package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +0 -2
  543. package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +0 -2
  544. package/dist/chunks/cli-0.5.8-a03sqccb.mjs +0 -2
  545. package/dist/chunks/cli-0.5.8-at01jfw3.mjs +0 -2
  546. package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +0 -2
  547. package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +0 -2
  548. package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +0 -2
  549. package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +0 -67
  550. package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +0 -18
  551. package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +0 -2
  552. package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +0 -2
  553. package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +0 -2
  554. package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +0 -12
  555. package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +0 -2
  556. package/dist/chunks/cli-0.5.8-cctz1t07.mjs +0 -2
  557. package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +0 -2
  558. package/dist/chunks/cli-0.5.8-chb0m9py.mjs +0 -17
  559. package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +0 -15
  560. package/dist/chunks/cli-0.5.8-cm551a1y.mjs +0 -2
  561. package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +0 -2
  562. package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +0 -2
  563. package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +0 -2
  564. package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +0 -2
  565. package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +0 -2
  566. package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +0 -39
  567. package/dist/chunks/cli-0.5.8-edf7e65a.mjs +0 -2
  568. package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +0 -133
  569. package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +0 -3
  570. package/dist/chunks/cli-0.5.8-et8r95zv.mjs +0 -15
  571. package/dist/chunks/cli-0.5.8-etf1n11s.mjs +0 -2
  572. package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +0 -3
  573. package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +0 -34
  574. package/dist/chunks/cli-0.5.8-f1znt77k.mjs +0 -2
  575. package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +0 -4
  576. package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +0 -2
  577. package/dist/chunks/cli-0.5.8-fhebd13f.mjs +0 -12
  578. package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +0 -18
  579. package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +0 -4
  580. package/dist/chunks/cli-0.5.8-gf6svxra.mjs +0 -27
  581. package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +0 -2
  582. package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +0 -3
  583. package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +0 -2
  584. package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +0 -21
  585. package/dist/chunks/cli-0.5.8-haddssvq.mjs +0 -17
  586. package/dist/chunks/cli-0.5.8-he3sfaey.mjs +0 -2
  587. package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +0 -2
  588. package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +0 -2
  589. package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +0 -2
  590. package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +0 -2
  591. package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +0 -6
  592. package/dist/chunks/cli-0.5.8-je6yq94p.mjs +0 -2
  593. package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +0 -10
  594. package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +0 -9
  595. package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +0 -2
  596. package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +0 -2
  597. package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +0 -2
  598. package/dist/chunks/cli-0.5.8-m3186fr3.mjs +0 -5
  599. package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +0 -2
  600. package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +0 -4
  601. package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +0 -2
  602. package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +0 -3
  603. package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +0 -4
  604. package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +0 -59
  605. package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +0 -2
  606. package/dist/chunks/cli-0.5.8-p596xr80.mjs +0 -2
  607. package/dist/chunks/cli-0.5.8-p72phgsn.mjs +0 -2
  608. package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +0 -2
  609. package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +0 -2
  610. package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +0 -133
  611. package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +0 -2
  612. package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +0 -2
  613. package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +0 -2
  614. package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +0 -2
  615. package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +0 -193
  616. package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +0 -3
  617. package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +0 -2
  618. package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +0 -2
  619. package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +0 -2
  620. package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +0 -2
  621. package/dist/chunks/cli-0.5.8-r88abafr.mjs +0 -15
  622. package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +0 -16
  623. package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +0 -4
  624. package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +0 -2
  625. package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +0 -12
  626. package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +0 -3
  627. package/dist/chunks/cli-0.5.8-s7px34xg.mjs +0 -2
  628. package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +0 -2
  629. package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +0 -2
  630. package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +0 -2
  631. package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +0 -24
  632. package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +0 -4
  633. package/dist/chunks/cli-0.5.8-v274erpp.mjs +0 -2
  634. package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +0 -2
  635. package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +0 -2
  636. package/dist/chunks/cli-0.5.8-vck50j66.mjs +0 -2
  637. package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +0 -45
  638. package/dist/chunks/cli-0.5.8-w36atn94.mjs +0 -2
  639. package/dist/chunks/cli-0.5.8-w75qbypx.mjs +0 -2
  640. package/dist/chunks/cli-0.5.8-w7g735pf.mjs +0 -2
  641. package/dist/chunks/cli-0.5.8-was67jgw.mjs +0 -2
  642. package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +0 -50
  643. package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +0 -2
  644. package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +0 -3
  645. package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +0 -2
  646. package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +0 -2
  647. package/dist/chunks/cli-0.5.8-wtz636rz.mjs +0 -20
  648. package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +0 -2
  649. package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +0 -2
  650. package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +0 -6
  651. package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +0 -2
  652. package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +0 -2
  653. package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +0 -2
  654. package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +0 -2
  655. package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +0 -2
  656. package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +0 -2
  657. package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +0 -3
  658. package/dist/chunks/cli-0.5.8-z447z8t0.mjs +0 -2
  659. package/dist/chunks/cli-0.5.8-zervw1k3.mjs +0 -5
  660. package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +0 -1
  661. package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +0 -2
  662. package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +0 -2
  663. package/dist/chunks/cli-0.5.8-zy590bkh.mjs +0 -2
  664. package/dist/chunks/client-0.5.8-9axd4w58.mjs +0 -1
  665. package/dist/chunks/color-0.5.8-resv1z9m.mjs +0 -1
  666. package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +0 -3
  667. package/dist/chunks/config-0.5.8-1j4xyj57.mjs +0 -1
  668. package/dist/chunks/config-0.5.8-ettscama.mjs +0 -1
  669. package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +0 -1
  670. package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +0 -1
  671. package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +0 -1
  672. package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +0 -9
  673. package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +0 -1
  674. package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +0 -1
  675. package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +0 -1
  676. package/dist/chunks/debug-0.5.8-c84dbamw.mjs +0 -1
  677. package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +0 -1177
  678. package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +0 -1
  679. package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +0 -1
  680. package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +0 -1
  681. package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +0 -1
  682. package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +0 -1
  683. package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +0 -1
  684. package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +0 -1
  685. package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +0 -10
  686. package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +0 -1
  687. package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +0 -1
  688. package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +0 -1
  689. package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +0 -1
  690. package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +0 -1
  691. package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +0 -1
  692. package/dist/chunks/export-0.5.8-a8fg7991.mjs +0 -2
  693. package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +0 -1
  694. package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +0 -1
  695. package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +0 -1
  696. package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +0 -14
  697. package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +0 -1
  698. package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +0 -1
  699. package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +0 -1
  700. package/dist/chunks/grove-0.5.8-rewcpbks.mjs +0 -1
  701. package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +0 -1
  702. package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +0 -2
  703. package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +0 -6
  704. package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +0 -1
  705. package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +0 -3
  706. package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +0 -1
  707. package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +0 -79
  708. package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +0 -3
  709. package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +0 -1
  710. package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +0 -9
  711. package/dist/chunks/index-0.5.8-26yrjbk0.mjs +0 -1
  712. package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +0 -1
  713. package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +0 -1
  714. package/dist/chunks/index-0.5.8-b4p3af9y.mjs +0 -1
  715. package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +0 -2
  716. package/dist/chunks/index-0.5.8-bk6ejev9.mjs +0 -1
  717. package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +0 -9
  718. package/dist/chunks/index-0.5.8-egkksjaj.mjs +0 -1
  719. package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +0 -1
  720. package/dist/chunks/index-0.5.8-jf20nzsg.mjs +0 -1
  721. package/dist/chunks/index-0.5.8-m6exk6z6.mjs +0 -30
  722. package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +0 -5
  723. package/dist/chunks/index-0.5.8-nt058ay0.mjs +0 -1
  724. package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +0 -10
  725. package/dist/chunks/index-0.5.8-rdk757cq.mjs +0 -1
  726. package/dist/chunks/index-0.5.8-red1reev.mjs +0 -1
  727. package/dist/chunks/index-0.5.8-rehfpmcw.mjs +0 -1
  728. package/dist/chunks/index-0.5.8-s3k17n65.mjs +0 -1
  729. package/dist/chunks/index-0.5.8-xpaaycp7.mjs +0 -1
  730. package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +0 -2
  731. package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +0 -1
  732. package/dist/chunks/init-0.5.8-kmfn7vay.mjs +0 -1
  733. package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +0 -1
  734. package/dist/chunks/ink-0.5.8-y01565nf.mjs +0 -1
  735. package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +0 -870
  736. package/dist/chunks/install-0.5.8-se0j5qte.mjs +0 -1
  737. package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +0 -149
  738. package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +0 -1
  739. package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +0 -1
  740. package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +0 -1
  741. package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +0 -2
  742. package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +0 -2
  743. package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +0 -1
  744. package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +0 -1
  746. package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +0 -1
  747. package/dist/chunks/log-0.5.8-78h0x7qg.mjs +0 -1
  748. package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +0 -1
  749. package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +0 -1
  750. package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +0 -4
  751. package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +0 -17
  752. package/dist/chunks/mcp-0.5.8-md6hzter.mjs +0 -1
  753. package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +0 -1
  754. package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +0 -3
  755. package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +0 -2
  756. package/dist/chunks/model-0.5.8-aqzt03nd.mjs +0 -1
  757. package/dist/chunks/model-0.5.8-nmcrv393.mjs +0 -2
  758. package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +0 -1
  759. package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +0 -14
  760. package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +0 -1
  761. package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +0 -1
  762. package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +0 -1
  763. package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +0 -1
  764. package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +0 -1
  765. package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +0 -3
  766. package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +0 -1
  767. package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +0 -1
  768. package/dist/chunks/plugin-0.5.8-meszp93t.mjs +0 -29
  769. package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +0 -1
  770. package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +0 -9
  771. package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +0 -2
  772. package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +0 -57
  773. package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +0 -1
  774. package/dist/chunks/process-0.5.8-1yf78q4y.mjs +0 -1
  775. package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +0 -1
  776. package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +0 -9
  777. package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +0 -1
  778. package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +0 -1
  779. package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +0 -1
  780. package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +0 -13
  781. package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +0 -2
  782. package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +0 -1
  783. package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +0 -6
  784. package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +0 -1
  785. package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +0 -34
  786. package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +0 -1
  787. package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +0 -5
  788. package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +0 -2
  789. package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +0 -1
  790. package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +0 -1
  791. package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +0 -1
  792. package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +0 -1
  793. package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +0 -1
  794. package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +0 -1
  795. package/dist/chunks/resume-0.5.8-373epwyd.mjs +0 -2
  796. package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +0 -1
  797. package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +0 -1
  798. package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +0 -1
  799. package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +0 -1
  800. package/dist/chunks/session-0.5.8-rxft524k.mjs +0 -2
  801. package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +0 -1
  802. package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +0 -1
  803. package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +0 -1
  804. package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +0 -1
  805. package/dist/chunks/setup-0.5.8-769vnffz.mjs +0 -5
  806. package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +0 -1
  807. package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +0 -1
  808. package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +0 -1
  809. package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +0 -1
  810. package/dist/chunks/state-0.5.8-cppqmrbf.mjs +0 -1
  811. package/dist/chunks/stats-0.5.8-zcfm59db.mjs +0 -6
  812. package/dist/chunks/status-0.5.8-5v4y485z.mjs +0 -1
  813. package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +0 -1
  814. package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +0 -1
  815. package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +0 -1
  816. package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +0 -1
  817. package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +0 -1
  818. package/dist/chunks/teleport-0.5.8-650m4rks.mjs +0 -1
  819. package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +0 -1
  820. package/dist/chunks/theme-0.5.8-7a06760x.mjs +0 -1
  821. package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +0 -1
  822. package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +0 -1
  823. package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +0 -1
  824. package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +0 -1
  825. package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +0 -1
  826. package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +0 -1
  827. package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +0 -69
  828. package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +0 -4
  829. package/dist/chunks/update-0.5.8-a285y5j4.mjs +0 -86
  830. package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +0 -1
  831. package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +0 -14
  832. package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +0 -1
  833. package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +0 -1
  834. package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +0 -1
  835. package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +0 -1
  836. package/dist/chunks/vim-0.5.8-pgsav8je.mjs +0 -1
  837. package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +0 -1
  838. package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +0 -132
  839. package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +0 -1
  840. package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +0 -1
  841. package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +0 -7
  842. /package/dist/chunks/{cli-0.5.8-j77twbsq.mjs → cli-0.5.9-4yxntpxv.mjs} +0 -0
  843. /package/dist/chunks/{cli-0.5.8-kegk7gdp.mjs → cli-0.5.9-x9tg4bxs.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Raa as y,xaa as P}from"./cli-0.5.9-0b1wx67c.mjs";import{Lna as U}from"./cli-0.5.9-ysvsqcpa.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ export{G as aT,M as bT,N as cT,Y as dT,C as eT,_ as fT,R as gT,f as hT,E as iT,I as jT,k as kT,A as lT,b as mT,h as nT,m as oT,p as pT,u as qT,T as rT,e as sT,W as tT,a as uT,s as vT,r as wT,g as xT};
@@ -0,0 +1,2 @@
1
+ import{ama as H,pia as z,tia as B}from"./cli-0.5.9-3bsjckc3.mjs";import{Lna as x}from"./cli-0.5.9-ysvsqcpa.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{Q as Yda,J as Zda,R as _da,K as $da,U as aea,V as bea,W as cea,X as dea,Y as eea,Z as fea,$ as gea,j as hea,q as iea,A as jea,G as kea,L as lea,_ as mea,b as nea,k as oea,p as pea,v as qea,C as rea,O as sea,y as tea,S as uea,f as vea,m as wea,u as xea,h as yea,l as zea,w as Aea,g as Bea,d as Cea,M as Dea};
@@ -0,0 +1,2 @@
1
+ import{T3 as f,W2 as W,b0 as x,f0 as G,g0 as Y,t3 as j}from"./cli-0.5.9-v5mkedy5.mjs";import{$7 as F,X7 as w,Y7 as Q}from"./cli-0.5.9-0b1wx67c.mjs";import{Fea as J,Nea as m}from"./cli-0.5.9-tav5jmz1.mjs";import{Lna as Z}from"./cli-0.5.9-ysvsqcpa.mjs";function U(){q=void 0,w()}function u(){if(q!==void 0)return q;if(x()!=="firstParty")return q=Q(!1);if(!G())return q=Q(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=Q(!1);let z=j();if(z?.accessToken&&z.subscriptionType===null)return q=Q(!0);if(z?.accessToken&&z.scopes?.includes(J)&&(z.subscriptionType==="enterprise"||z.subscriptionType==="team"))return q=Q(!0);try{let{key:$}=W({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=Q(!0)}catch{}return q=Q(!1)}var q;var B=Z(()=>{m();f();Y();F()});function p(z){let $=z.toUpperCase();return V.has($)||X.some((M)=>$.startsWith(M))}var V,X,y,D;var K=Z(()=>{V=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),X=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],D=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
+ export{U as rQ,u as sQ,B as tQ,p as uQ,y as vQ,D as wQ,K as xQ};
@@ -0,0 +1,4 @@
1
+ import{ng as LJ,og as WQ}from"./cli-0.5.9-ncjg30aq.mjs";import{pg as hJ,qg as RQ}from"./cli-0.5.9-f9jt7awn.mjs";import{rg as PJ,sg as hQ}from"./cli-0.5.9-tke5evvm.mjs";import{tg as aq,ug as lJ}from"./cli-0.5.9-v69cq6f1.mjs";import{vg as Fq,wg as iq,xg as $J}from"./cli-0.5.9-nfhfsnw6.mjs";import{yg as WJ,zg as HQ}from"./cli-0.5.9-610r4gbg.mjs";import{$D as FJ,Bt as g,CM as Aq,Et as yQ,FM as oJ,Jm as GJ,Km as KQ,SP as wq,WP as sq,YD as vq,ZD as BQ,ZP as tq,_D as UJ,aE as wJ,at as uq,bE as FQ,bt as mq,cr as KJ,dr as VQ,dt as pq,en as P,er as VJ,et as fJ,fn as Tq,fr as XJ,gr as XQ,jQ as nJ,nG as HJ,oG as RJ,oM as eq,pG as wQ,qM as iJ}from"./cli-0.5.9-k9yedz53.mjs";import{SQ as yJ,UQ as NJ,XQ as NQ}from"./cli-0.5.9-1ktmgzhb.mjs";import{US as BJ,YS as UQ}from"./cli-0.5.9-rv2328c4.mjs";import{fU as YJ,gU as YQ}from"./cli-0.5.9-xn369es1.mjs";import{gV as zJ,hV as zQ,pV as Mq,qV as GQ}from"./cli-0.5.9-qy6qkzwb.mjs";import{JX as Oq,LV as Pq,cX as y,eX as Q}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as h,mZ as Y,nZ as Z,oZ as c}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as ZQ}from"./cli-0.5.9-bp09b2xm.mjs";import{N1 as rq,k2 as cJ,y2 as ZJ,z2 as QQ}from"./cli-0.5.9-v5mkedy5.mjs";import{C8 as qQ,H$ as JQ,L_ as gq,M_ as dJ,P_ as xq,X_ as TJ,g8 as Iq,k6 as $,l6 as tJ,x$ as QJ}from"./cli-0.5.9-0b1wx67c.mjs";import{Fga as sJ,sga as JJ}from"./cli-0.5.9-eagw660r.mjs";import{ama as eJ,pia as qJ}from"./cli-0.5.9-3bsjckc3.mjs";import{Hna as Bq,Lna as Uq}from"./cli-0.5.9-ysvsqcpa.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}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 EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.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=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(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 jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function gJ(){let J=tq(await sq());if(J.length===0)return null;let q=J.sort((G,K)=>K.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 > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function xJ(J){if(!J)return null;let q=iq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.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 > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function rJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await eq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.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(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(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 aJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=aq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function oq(J,q,V){let[G,K,X,B]=await Promise.all([gJ(),xJ(q),rJ(J,V,q),aJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var nq=Uq(()=>{oJ();iJ();nJ();cJ();dJ();lJ();Tq();$J();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=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 B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);YJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:XJ,upperLimit:VJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-8")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudin","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await oq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),UJ()){let Lq=bq(BJ(),"claude","locks"),DJ=wJ(Lq),SJ=FJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({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];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code 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(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(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 A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=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 M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
+ `)[0]]}),Y(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(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=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: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,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=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),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]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,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 PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",GJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=KJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?NJ:yJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();GQ();RQ();$q();WQ();hQ();YQ();Oq();zQ();yQ();KQ();NQ();nq();BQ();VQ();qQ();FQ();JQ();XQ();wQ();UQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
4
+ export{pZ as lg,cQ as mg};
@@ -0,0 +1,2 @@
1
+ import{Ama as xY,bma as _Q,cma as JJ,dma as v,ema as I1,fma as Y5,gma as N8,hma as q,ima as y,jma as S,kma as kQ,lma as L,mma as a,nma as n5,oma as t8,pma as R5,qma as C8,rma as E,sma as h8,tma as P,uma as x1,vma as d,wma as xQ,xma as o,yma as UQ,zma as l5}from"./cli-0.5.9-dtbcqw2e.mjs";import{Kna as aQ,Lna as X}from"./cli-0.5.9-ysvsqcpa.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{I1();QQ=h$});function j$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=j$});function n$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=n$});function b$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=b$});function u$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<i$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var i$=200,KQ;var BQ=X(()=>{I1();xQ();UQ();KQ=u$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var C1=X(()=>{I1();$Q();YQ();XQ();WQ();BQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function l$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var NQ=X(()=>{GQ=l$});function c$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=c$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=wQ;FQ=r});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function r$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=r$});function t$(Q,J,Y,Z,H,W){var x=Y&s$,U=Q.length,G=J.length;if(U!=G&&!(x&&G>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&a$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var s$=1,a$=2,s;var _1=X(()=>{RQ();DQ();VQ();s=t$});var e$,k1;var MQ=X(()=>{y();e$=q.Uint8Array,k1=e$});function QJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=$J});function FJ(Q,J,Y,Z,H,W,x){switch(Y){case zJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case wJ:if(Q.byteLength!=J.byteLength||!W(new k1(Q),new k1(J)))return!1;return!0;case XJ:case HJ:case UJ:return _Q(+Q,+J);case WJ:return Q.name==J.name&&Q.message==J.message;case KJ:case GJ:return Q==J+"";case xJ:var U=LQ;case BJ:var G=Z&YJ;if(U||(U=PQ),Q.size!=J.size&&!G)return!1;var K=x.get(Q);if(K)return K==J;Z|=ZJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case NJ:if(E1)return E1.call(Q)==E1.call(J)}return!1}var YJ=1,ZJ=2,XJ="[object Boolean]",HJ="[object Date]",WJ="[object Error]",xJ="[object Map]",UJ="[object Number]",KJ="[object RegExp]",BJ="[object Set]",GJ="[object String]",NJ="[object Symbol]",wJ="[object ArrayBuffer]",zJ="[object DataView]",CQ,E1,EQ;var vQ=X(()=>{kQ();MQ();JJ();_1();fQ();IQ();CQ=S?S.prototype:void 0,E1=CQ?CQ.valueOf:void 0;EQ=FJ});function RJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=RJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function DJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=DJ});function OJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=OJ});function VJ(){return[]}var AQ;var hQ=X(()=>{AQ=VJ});var MJ,LJ,jQ,fJ,nQ;var bQ=X(()=>{mQ();hQ();MJ=Object.prototype,LJ=MJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,fJ=!jQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(jQ(Q),function(J){return LJ.call(Q,J)})},nQ=fJ});function PJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=PJ});function IJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=IJ});function _J(Q){return O(Q)&&L(Q)==CJ}var CJ="[object Arguments]",v1;var TQ=X(()=>{a();m();v1=_J});var lQ,kJ,EJ,vJ,t;var d1=X(()=>{TQ();m();lQ=Object.prototype,kJ=lQ.hasOwnProperty,EJ=lQ.propertyIsEnumerable,vJ=v1(function(){return arguments}())?v1:function(Q){return O(Q)&&kJ.call(Q,"callee")&&!EJ.call(Q,"callee")},t=vJ});function dJ(){return!1}var cQ;var oQ=X(()=>{cQ=dJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,rQ,gJ,sQ,pJ,yJ,A;var g1=X(()=>{y();oQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,rQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,gJ=rQ&&rQ.exports===tQ,sQ=gJ?q.Buffer:void 0,pJ=sQ?sQ.isBuffer:void 0,yJ=pJ||cQ,A=yJ});function AJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&mJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,mJ,$1;var p1=X(()=>{mJ=/^(?:0|[1-9]\d*)$/;$1=AJ});function jJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,h;var J1=X(()=>{h=jJ});function B8(Q){return O(Q)&&h(Q.length)&&!!B[L(Q)]}var nJ="[object Arguments]",bJ="[object Array]",iJ="[object Boolean]",uJ="[object Date]",TJ="[object Error]",lJ="[object Function]",cJ="[object Map]",oJ="[object Number]",rJ="[object Object]",sJ="[object RegExp]",aJ="[object Set]",tJ="[object String]",eJ="[object WeakMap]",Q8="[object ArrayBuffer]",$8="[object DataView]",J8="[object Float32Array]",Y8="[object Float64Array]",Z8="[object Int8Array]",X8="[object Int16Array]",H8="[object Int32Array]",W8="[object Uint8Array]",x8="[object Uint8ClampedArray]",U8="[object Uint16Array]",K8="[object Uint32Array]",B,eQ;var Q5=X(()=>{a();J1();m();B={};B[J8]=B[Y8]=B[Z8]=B[X8]=B[H8]=B[W8]=B[x8]=B[U8]=B[K8]=!0;B[nJ]=B[bJ]=B[Q8]=B[iJ]=B[$8]=B[uJ]=B[TJ]=B[lJ]=B[cJ]=B[oJ]=B[rJ]=B[sJ]=B[aJ]=B[tJ]=B[eJ]=!1;eQ=B8});function G8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=G8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,w8,y1,z8,X1;var X5=X(()=>{N8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,w8=i&&i.exports===Z5,y1=w8&&Y5.process,z8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return y1&&y1.binding&&y1.binding("util")}catch(J){}}(),X1=z8});var H5,F8,H1;var S1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,F8=H5?$5(H5):eQ,H1=F8});function D8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],G=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,G))))U.push(K);return U}var R8,q8,W5;var x5=X(()=>{uQ();d1();M();g1();p1();S1();R8=Object.prototype,q8=R8.hasOwnProperty;W5=D8});function V8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||O8;return Q===Y}var O8,U5;var K5=X(()=>{O8=Object.prototype;U5=V8});function M8(Q,J){return function(Y){return Q(J(Y))}}var B5;var G5=X(()=>{B5=M8});var L8,N5;var w5=X(()=>{G5();L8=B5(Object.keys,Object),N5=L8});function I8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(P8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var f8,P8,z5;var F5=X(()=>{K5();w5();f8=Object.prototype,P8=f8.hasOwnProperty;z5=I8});function _8(Q){return Q!=null&&h(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{C8();J1();q5=_8});function k8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();D5();W1=k8});function E8(Q){return pQ(Q,W1,nQ)}var A1;var O5=X(()=>{yQ();bQ();m1();A1=E8});function p8(Q,J,Y,Z,H,W){var x=Y&v8,U=A1(Q),G=U.length,K=A1(J),F=K.length;if(G!=F&&!x)return!1;var z=G;while(z--){var N=U[z];if(!(x?N in J:g8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<G){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var l=Q.constructor,c=J.constructor;if(l!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof l=="function"&&l instanceof l&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var v8=1,d8,g8,V5;var M5=X(()=>{O5();d8=Object.prototype,g8=d8.hasOwnProperty;V5=p8});var y8,U1;var L5=X(()=>{x1();y();y8=P(q,"DataView"),U1=y8});var S8,K1;var f5=X(()=>{x1();y();S8=P(q,"Promise"),K1=S8});var m8,B1;var P5=X(()=>{x1();y();m8=P(q,"Set"),B1=m8});var A8,G1;var I5=X(()=>{x1();y();A8=P(q,"WeakMap"),G1=A8});var C5="[object Map]",j8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",n8,b8,i8,u8,T8,k,h1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();n8=E(U1),b8=E(d),i8=E(K1),u8=E(B1),T8=E(G1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||B1&&k(new B1)!=k5||G1&&k(new G1)!=E5)k=function(Q){var J=L(Q),Y=J==j8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case n8:return v5;case b8:return C5;case i8:return _5;case u8:return k5;case T8:return E5}return J};h1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),G=x?p5:h1(Q),K=U?p5:h1(J);G=G==g5?N1:G,K=K==g5?N1:K;var F=G==N1,z=K==N1,N=G==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,G,Y,Z,H,W);if(!(Y&l8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var l8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",c8,y5,S5;var m5=X(()=>{C1();_1();vQ();M5();d5();M();g1();S1();c8=Object.prototype,y5=c8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function a8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var G=U[0],K=Q[G],F=U[1];if(x&&U[2]){if(K===void 0&&!(G in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,G,Q,J,z);if(!(N===void 0?w1(F,K,r8|s8,Z,z):N))return!1}}return!0}var r8=1,s8=2,h5;var j5=X(()=>{C1();j1();h5=a8});function e8(Q){return Q===Q&&!n5(Q)}var z1;var n1=X(()=>{t8();z1=e8});function QY(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{n1();m1();b5=QY});function $Y(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var b1=X(()=>{F1=$Y});function JY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||h5(Y,Q,J)}}var u5;var T5=X(()=>{j5();i5();b1();u5=JY});function ZY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==YY}var YY="[object Symbol]",j;var R1=X(()=>{a();m();j=ZY});function WY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||j(Q))return!0;return HY.test(Q)||!XY.test(Q)||J!=null&&Q in Object(J)}var XY,HY,n;var q1=X(()=>{M();R1();XY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HY=/^\w*$/;n=WY});function KY(Q){var J=l5(Q,function(Z){if(Y.size===UY)Y.clear();return Z}),Y=J.cache;return J}var UY=500,c5;var o5=X(()=>{xY();c5=KY});var BY,GY,NY,r5;var s5=X(()=>{o5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GY=/\\(\\)?/g,NY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(GY,"$1"):Z||Y)}),J}),r5=NY});function wY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=wY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(j(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-zY?"-0":J}var zY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function FY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=FY});function RY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:r5(Z$(Q))}var D1;var i1=X(()=>{M();q1();s5();X$();D1=RY});function DY(Q){if(typeof Q=="string"||j(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=DY});function OY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var u1=X(()=>{i1();u();O1=OY});function VY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{u1();H$=VY});function MY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=MY});function LY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&h(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var B$=X(()=>{i1();d1();M();p1();J1();u();K$=LY});function fY(Q,J){return Q!=null&&K$(Q,J,x$)}var G$;var N$=X(()=>{U$();B$();G$=fY});function CY(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,PY|IY)}}var PY=1,IY=2,w$;var z$=X(()=>{j1();W$();N$();q1();n1();b1();u();w$=CY});function _Y(Q){return Q}var F$;var R$=X(()=>{F$=_Y});function kY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=kY});function EY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{u1();O$=EY});function vY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=vY});function dY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{T5();z$();R$();M();L$();f$=dY});function gY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=gY});function pY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=pY});import{randomUUID as T1}from"crypto";var k$=()=>{};function hX(){return l1}function jX(Q){l1=Q}function nX(Q){return V1.has(Q)?V1.get(Q):void 0}function bX(Q,J){V1.set(Q,J)}function iX(Q){return c1.get(Q)}function uX(Q,J){c1.set(Q,J)}function E$(){l1=null,V1.clear(),c1.clear()}function TX(){return o1}function lX(Q){o1=Q}function cX(){o1=void 0}var l1=null,V1,c1,o1;var v$=X(()=>{V1=new Map;c1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as yY}from"process";function J9(Q){return r1.add(Q),()=>r1.delete(Q)}function Y9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=yY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:T1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function Z9(){return $.sessionId}function X9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=T1(),$.sessionProjectDir=null,f1.emit($.sessionId),$.sessionId}function H9(){return $.parentSessionId}function W9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,f1.emit(Q)}function U9(){return $.sessionProjectDir}function K9(){return $.originalCwd}function B9(){return $.projectRoot}function G9(Q){$.originalCwd=Q.normalize("NFC")}function N9(Q){$.projectRoot=Q.normalize("NFC")}function w9(){return $.cwd}function z9(Q){$.cwd=Q.normalize("NFC")}function F9(){return $.directConnectServerUrl}function R9(Q){$.directConnectServerUrl=Q}function q9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function D9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function O9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function V9(){return $.totalCostUSD}function M9(){return $.totalAPIDuration}function L9(){return Date.now()-$.startTime}function f9(){return $.totalAPIDurationWithoutRetries}function P9(){return $.totalToolDuration}function I9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function C9(){return $.turnHookDurationMs}function _9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function k9(){$.turnHookDurationMs=0,$.turnHookCount=0}function E9(){return $.turnHookCount}function v9(){return $.turnToolDurationMs}function d9(){$.turnToolDurationMs=0,$.turnToolCount=0}function g9(){return $.turnToolCount}function p9(){return $.turnClassifierDurationMs}function y9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function S9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function m9(){return $.turnClassifierCount}function A9(){return $.statsStore}function h9(Q){$.statsStore=Q}function j9(Q){if(Q)S$();else s1=!0}function n9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function b9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function i9(){return $.totalLinesAdded}function u9(){return $.totalLinesRemoved}function T9(){return b(Object.values($.modelUsage),"inputTokens")}function m$(){return b(Object.values($.modelUsage),"outputTokens")}function l9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function c9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function o9(){return b(Object.values($.modelUsage),"webSearchRequests")}function r9(){return m$()-a1}function s9(){return t1}function a9(Q){a1=m$(),t1=Q,P1=0}function t9(){return P1}function e9(){P1++}function QH(){$.hasUnknownModelCost=!0}function $H(){return $.hasUnknownModelCost}function JH(){return $.lastMainRequestId}function YH(Q){$.lastMainRequestId=Q}function ZH(){return $.lastApiCompletionTimestamp}function XH(Q){$.lastApiCompletionTimestamp=Q}function HH(){$.pendingPostCompaction=!0}function WH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function xH(){return $.lastInteractionTime}function UH(){if(M1=!0,T)clearTimeout(T);T=setTimeout(()=>{M1=!1,T=void 0},A$),T.unref?.()}function KH(){return M1}async function BH(){while(M1)await new Promise((Q)=>setTimeout(Q,A$).unref?.())}function GH(){return $.modelUsage}function NH(Q){return $.modelUsage[Q]}function wH(){return $.mainLoopModelOverride}function zH(){return $.initialMainLoopModel}function FH(Q){$.mainLoopModelOverride=Q}function RH(Q){$.initialMainLoopModel=Q}function qH(){return $.sdkBetas}function DH(Q){$.sdkBetas=Q}function OH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function VH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function MH(){throw Error("resetStateForTests can only be called in tests")}function LH(){return $.modelStrings}function fH(Q){$.modelStrings=Q}function PH(){$.modelStrings=null}function IH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function CH(){return $.meter}function _H(){return $.sessionCounter}function kH(){return $.locCounter}function EH(){return $.prCounter}function vH(){return $.commitCounter}function dH(){return $.costCounter}function gH(){return $.tokenCounter}function pH(){return $.codeEditToolDecisionCounter}function yH(){return $.activeTimeCounter}function SH(){return $.loggerProvider}function mH(Q){$.loggerProvider=Q}function AH(){return $.eventLogger}function hH(Q){$.eventLogger=Q}function jH(){return $.meterProvider}function nH(Q){$.meterProvider=Q}function bH(){return $.tracerProvider}function iH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function uH(){return $.isInteractive}function TH(Q){$.isInteractive=Q}function lH(){return $.clientType}function cH(Q){$.clientType=Q}function oH(){return $.sdkAgentProgressSummariesEnabled}function rH(Q){$.sdkAgentProgressSummariesEnabled=Q}function sH(){return $.kairosActive}function aH(Q){$.kairosActive=Q,L1()}function tH(){return $.strictToolResultPairing}function eH(Q){$.strictToolResultPairing=Q}function Q4(){return $.userMsgOptIn}function $4(Q){$.userMsgOptIn=Q,L1()}function J4(){return $.sessionSource}function Y4(Q){$.sessionSource=Q}function Z4(){return $.questionPreviewFormat}function X4(Q){$.questionPreviewFormat=Q}function H4(){return $.agentColorMap}function W4(){return $.flagSettingsPath}function x4(Q){$.flagSettingsPath=Q}function U4(){return $.flagSettingsInline}function K4(Q){$.flagSettingsInline=Q}function B4(){return $.sessionIngressToken}function G4(Q){$.sessionIngressToken=Q}function N4(){return $.oauthTokenFromFd}function w4(Q){$.oauthTokenFromFd=Q}function z4(){return $.apiKeyFromFd}function F4(Q){$.apiKeyFromFd=Q}function R4(Q){$.lastAPIRequest=Q}function q4(){return $.lastAPIRequest}function D4(Q){$.lastAPIRequestMessages=Q}function O4(){return $.lastAPIRequestMessages}function V4(Q){$.lastClassifierRequests=Q}function M4(){return $.lastClassifierRequests}function L4(Q){$.cachedClaudeMdContent=Q}function f4(){return $.cachedClaudeMdContent}function P4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function I4(){return $.allowedSettingSources}function C4(Q){$.allowedSettingSources=Q}function _4(){return SY()&&$.clientType!=="claude-vscode"}function k4(Q){$.inlinePlugins=Q}function E4(){return $.inlinePlugins}function v4(Q){$.useCoworkPlugins=Q,E$()}function d4(){return $.useCoworkPlugins}function g4(Q){$.sessionBypassPermissionsMode=Q}function p4(){return $.sessionBypassPermissionsMode}function y4(Q){$.scheduledTasksEnabled=Q}function S4(){return $.scheduledTasksEnabled}function m4(){return $.sessionCronTasks}function A4(Q){$.sessionCronTasks.push(Q)}function h4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function j4(Q){$.sessionTrustAccepted=Q}function n4(){return $.sessionTrustAccepted}function b4(Q){$.sessionPersistenceDisabled=Q}function i4(){return $.sessionPersistenceDisabled}function u4(){return $.hasExitedPlanMode}function T4(Q){$.hasExitedPlanMode=Q}function l4(){return $.needsPlanModeExitAttachment}function c4(Q){$.needsPlanModeExitAttachment=Q}function o4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function r4(){return $.needsAutoModeExitAttachment}function s4(Q){$.needsAutoModeExitAttachment=Q}function a4(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function t4(){return $.lspRecommendationShownThisSession}function e4(Q){$.lspRecommendationShownThisSession=Q}function Q3(Q){$.initJsonSchema=Q}function $3(){return $.initJsonSchema}function J3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function Y3(){return $.registeredHooks}function Z3(){$.registeredHooks=null}function X3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function H3(){$.initJsonSchema=null,$.registeredHooks=null}function W3(){return $.planSlugCache}function x3(){return $.sessionCreatedTeams}function U3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function K3(){return $.teleportedSessionInfo}function B3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function G3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function N3(){return $.invokedSkills}function w3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function z3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function F3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function R3(Q,J){}function q3(){return mY}function D3(){return $.mainThreadAgentType}function O3(Q){$.mainThreadAgentType=Q}function V3(){return $.isRemoteMode}function M3(Q){$.isRemoteMode=Q}function L3(){return $.systemPromptSectionCache}function f3(Q,J){$.systemPromptSectionCache.set(Q,J)}function P3(){$.systemPromptSectionCache.clear()}function I3(){return $.lastEmittedDate}function C3(Q){$.lastEmittedDate=Q}function _3(){return $.additionalDirectoriesForClaudeMd}function k3(Q){$.additionalDirectoriesForClaudeMd=Q}function E3(){return $.allowedChannels}function v3(Q){$.allowedChannels=Q,L1()}function d3(){return $.hasDevChannels}function g3(Q){$.hasDevChannels=Q}function p3(){return $.largeSystemPromptDetected}function y3(Q){$.largeSystemPromptDetected=Q}function S3(){return $.afkModeHeaderLatched}function m3(Q){$.afkModeHeaderLatched=Q}function A3(){return $.fastModeHeaderLatched}function h3(Q){$.fastModeHeaderLatched=Q}function j3(){return $.thinkingClearLatched}function n3(Q){$.thinkingClearLatched=Q}function b3(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null}function i3(){return $.promptId}function u3(Q){$.promptId=Q}function T3(){return!1}function l3(){return null}var r1,$,f1,x9,s1=!1,a1=0,t1=null,P1=0,M1=!1,T,A$=150,mY;var AY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();f1=d$(),x9=f1.subscribe;mY=[]});
2
+ export{p as Gga,C1 as Hga,FQ as Iga,RQ as Jga,OQ as Kga,VQ as Lga,k1 as Mga,MQ as Nga,PQ as Oga,IQ as Pga,dQ as Qga,gQ as Rga,w as Sga,M as Tga,pQ as Uga,yQ as Vga,SQ as Wga,mQ as Xga,AQ as Yga,hQ as Zga,nQ as _ga,bQ as $ga,O as aha,m as bha,t as cha,d1 as dha,A as eha,g1 as fha,$1 as gha,p1 as hha,$5 as iha,J5 as jha,X1 as kha,X5 as lha,H1 as mha,S1 as nha,W5 as oha,x5 as pha,U5 as qha,K5 as rha,B5 as sha,G5 as tha,q5 as uha,D5 as vha,W1 as wha,m1 as xha,A1 as yha,O5 as zha,B1 as Aha,P5 as Bha,h1 as Cha,d5 as Dha,w1 as Eha,j1 as Fha,j as Gha,R1 as Hha,a5 as Iha,t5 as Jha,Z$ as Kha,X$ as Lha,D1 as Mha,i1 as Nha,I as Oha,u as Pha,O1 as Qha,u1 as Rha,F$ as Sha,R$ as Tha,f$ as Uha,P$ as Vha,hX as Wha,jX as Xha,nX as Yha,bX as Zha,iX as _ha,uX as $ha,E$ as aia,TX as bia,lX as cia,cX as dia,v$ as eia,d$ as fia,g$ as gia,J9 as hia,Y9 as iia,Z9 as jia,X9 as kia,H9 as lia,W9 as mia,x9 as nia,U9 as oia,K9 as pia,B9 as qia,G9 as ria,N9 as sia,w9 as tia,z9 as uia,F9 as via,R9 as wia,q9 as xia,D9 as yia,O9 as zia,V9 as Aia,M9 as Bia,L9 as Cia,f9 as Dia,P9 as Eia,I9 as Fia,C9 as Gia,_9 as Hia,k9 as Iia,E9 as Jia,v9 as Kia,d9 as Lia,g9 as Mia,p9 as Nia,y9 as Oia,S9 as Pia,m9 as Qia,A9 as Ria,h9 as Sia,j9 as Tia,n9 as Uia,b9 as Via,i9 as Wia,u9 as Xia,T9 as Yia,m$ as Zia,l9 as _ia,c9 as $ia,o9 as aja,r9 as bja,s9 as cja,a9 as dja,t9 as eja,e9 as fja,QH as gja,$H as hja,JH as ija,YH as jja,ZH as kja,XH as lja,HH as mja,WH as nja,xH as oja,UH as pja,KH as qja,BH as rja,GH as sja,NH as tja,wH as uja,zH as vja,FH as wja,RH as xja,qH as yja,DH as zja,OH as Aja,VH as Bja,MH as Cja,LH as Dja,fH as Eja,PH as Fja,IH as Gja,CH as Hja,_H as Ija,kH as Jja,EH as Kja,vH as Lja,dH as Mja,gH as Nja,pH as Oja,yH as Pja,SH as Qja,mH as Rja,AH as Sja,hH as Tja,jH as Uja,nH as Vja,bH as Wja,iH as Xja,SY as Yja,uH as Zja,TH as _ja,lH as $ja,cH as aka,oH as bka,rH as cka,sH as dka,aH as eka,tH as fka,eH as gka,Q4 as hka,$4 as ika,J4 as jka,Y4 as kka,Z4 as lka,X4 as mka,H4 as nka,W4 as oka,x4 as pka,U4 as qka,K4 as rka,B4 as ska,G4 as tka,N4 as uka,w4 as vka,z4 as wka,F4 as xka,R4 as yka,q4 as zka,D4 as Aka,O4 as Bka,V4 as Cka,M4 as Dka,L4 as Eka,f4 as Fka,P4 as Gka,I4 as Hka,C4 as Ika,_4 as Jka,k4 as Kka,E4 as Lka,v4 as Mka,d4 as Nka,g4 as Oka,p4 as Pka,y4 as Qka,S4 as Rka,m4 as Ska,A4 as Tka,h4 as Uka,j4 as Vka,n4 as Wka,b4 as Xka,i4 as Yka,u4 as Zka,T4 as _ka,l4 as $ka,c4 as ala,o4 as bla,r4 as cla,s4 as dla,a4 as ela,t4 as fla,e4 as gla,Q3 as hla,$3 as ila,J3 as jla,Y3 as kla,Z3 as lla,X3 as mla,H3 as nla,W3 as ola,x3 as pla,U3 as qla,K3 as rla,B3 as sla,G3 as tla,N3 as ula,w3 as vla,z3 as wla,F3 as xla,R3 as yla,q3 as zla,D3 as Ala,O3 as Bla,V3 as Cla,M3 as Dla,L3 as Ela,f3 as Fla,P3 as Gla,I3 as Hla,C3 as Ila,_3 as Jla,k3 as Kla,E3 as Lla,v3 as Mla,d3 as Nla,g3 as Ola,p3 as Pla,y3 as Qla,S3 as Rla,m3 as Sla,A3 as Tla,h3 as Ula,j3 as Vla,n3 as Wla,b3 as Xla,i3 as Yla,u3 as Zla,T3 as _la,l3 as $la,AY as ama};
@@ -0,0 +1,2 @@
1
+ import{Lna as o}from"./cli-0.5.9-ysvsqcpa.mjs";var n=()=>null,e;var t=o(()=>{e=n});
2
+ export{e as ih,t as jh};
@@ -0,0 +1,2 @@
1
+ import{Bt as u,Ct as g,Et as Wq,Ht as c,It as T,Jt as _q,Kt as r,Lt as Vq,am as S,bm as Zq,cm as V,dm as $q,gm as p,hO as a,hm as zq,jO as Uq,uD as h,wD as Fq}from"./cli-0.5.9-k9yedz53.mjs";import{fU as d,gU as Yq}from"./cli-0.5.9-xn369es1.mjs";import{TU as w,UU as Nq,dV as j,eV as Qq,fV as m,hV as Xq}from"./cli-0.5.9-qy6qkzwb.mjs";import{JX as Lq,UV as v,VV as H,WV as y,cX as J,eX as N}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as _,mZ as q,nZ as G,oZ as B}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as Jq}from"./cli-0.5.9-bp09b2xm.mjs";import{H$ as Gq,u$ as b}from"./cli-0.5.9-0b1wx67c.mjs";import{Hna as e,Lna as qq}from"./cli-0.5.9-ysvsqcpa.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
+ export{mq as Xf,Aq as Yf};
@@ -0,0 +1,2 @@
1
+ import{Lm as E,Mm as m,Mn as l,Nm as Xq,Nn as Rq,On as i,Pn as Aq,gn as S,ln as Zq}from"./cli-0.5.9-k9yedz53.mjs";import{d_ as u,f_ as g,i_ as h,j_ as n,kca as D,o_ as vq,sca as Qq}from"./cli-0.5.9-0b1wx67c.mjs";import{xda as d,zda as Uq}from"./cli-0.5.9-ap6gvqkx.mjs";import{Cfa as M,Gfa as y,Qfa as V,Tfa as e,tfa as P,ufa as v,yfa as f}from"./cli-0.5.9-ek649arf.mjs";import{iga as W,jga as O,kga as C,pga as _}from"./cli-0.5.9-yazhwsgb.mjs";import{Wma as p,mna as qq}from"./cli-0.5.9-7bq8wzr3.mjs";import{Lna as N}from"./cli-0.5.9-ysvsqcpa.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
+ export{Fq as ec,r as fc,nq as gc,lq as hc,Oq as ic,QQ as jc,XQ as kc,Dq as lc};
@@ -0,0 +1,2 @@
1
+ import{FZ as N,KZ as $}from"./cli-0.5.9-whf5zybr.mjs";import{C0 as L,F0 as Y,T3 as Z,t3 as M}from"./cli-0.5.9-v5mkedy5.mjs";import{kca as Q,sca as X}from"./cli-0.5.9-0b1wx67c.mjs";import{Mea as J,Nea as V}from"./cli-0.5.9-tav5jmz1.mjs";import{hga as P,pga as S}from"./cli-0.5.9-yazhwsgb.mjs";import{Wma as K,mna as W}from"./cli-0.5.9-7bq8wzr3.mjs";import{Lna as R}from"./cli-0.5.9-ysvsqcpa.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
+ export{C as RS,j as SS,b as TS};
@@ -0,0 +1,3 @@
1
+ import{Ef as FY,Ff as AQ}from"./cli-0.5.9-zb26tq1c.mjs";import{Lf as LQ}from"./cli-0.5.9-tj6dt3d6.mjs";import{Mf as Lq,Of as Pq,Pf as GX}from"./cli-0.5.9-grgf8g99.mjs";import{Tf as IJ,Uf as kQ,Vf as zY,Wf as MQ}from"./cli-0.5.9-m1y4hmzs.mjs";import{Xf as OY,Yf as PQ}from"./cli-0.5.9-41dpv5z9.mjs";import{$f as RY,Zf as NY,_f as UQ,ag as BQ}from"./cli-0.5.9-yh7f5m4w.mjs";import{bg as Eq,cg as l0,eg as HY,fg as DY}from"./cli-0.5.9-1zc8qwr4.mjs";import{qh as Nq,rh as QX}from"./cli-0.5.9-8kfemzbn.mjs";import{$w as Rq,Bt as K0,Ct as XY,Dt as GY,Et as qZ,Gm as OQ,Hs as Fq,Is as n0,Ks as qX,MF as KY,NF as NQ,PP as tq,Sn as QY,Tn as zQ,WP as MY,ax as XX,cP as LZ,cm as J0,dm as DQ,eH as BJ,eQ as AY,em as C,fH as RQ,fQ as UY,fm as f0,gm as c,hm as XJ,jH as YJ,jQ as fQ,kD as TZ,kH as BZ,km as S0,lD as YQ,lH as IZ,lm as FJ,mE as QZ,mH as EZ,nE as XZ,oE as GZ,pE as VZ,qE as WZ,rE as KZ,rm as UJ,sE as HZ,tE as DZ,uD as T0,uE as OZ,vD as eq,vE as zZ,vm as qY,wD as PZ,wE as xq,wJ as R0,xJ as TJ}from"./cli-0.5.9-k9yedz53.mjs";import{AR as FQ,vR as VY,wR as WY}from"./cli-0.5.9-fn6ees65.mjs";import{fU as Uq,gU as KX}from"./cli-0.5.9-xn369es1.mjs";import{TU as V0,UU as v0,fV as l,gV as YY,hV as w0,jV as C0,kV as Bq,mV as zJ,pV as Iq,qV as HX}from"./cli-0.5.9-qy6qkzwb.mjs";import{IW as ZY,JX as D0,LV as U0,UV as e0,VV as eZ,aW as JY,cX as U,eW as HQ,eX as V}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as n,mZ as Q,nZ as D,oZ as g}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as s}from"./cli-0.5.9-bp09b2xm.mjs";import{xZ as rY,yZ as iQ}from"./cli-0.5.9-5hzwn715.mjs";import{E3 as vJ,K0 as h0,L0 as WQ,T3 as YX,W1 as zq,_1 as sZ,b0 as Oq,b1 as m0,c1 as MJ,e1 as lZ,f1 as AJ,g0 as ZX,g2 as qJ,h1 as oZ,k2 as tZ,m1 as aZ,v1 as KQ}from"./cli-0.5.9-v5mkedy5.mjs";import{n4 as O0,o4 as QQ}from"./cli-0.5.9-kfpgp09g.mjs";import{Bba as fY,Daa as uZ,E9 as mZ,Eba as CY,Fba as CQ,H$ as VQ,Haa as dZ,Hba as SY,I9 as vZ,Iaa as iZ,J9 as cZ,K9 as pZ,L9 as xZ,Lba as TY,Nba as wY,Q9 as GQ,Qba as hY,Raa as rZ,Uba as SQ,Xba as B0,_ba as nZ,k6 as H0,kca as N0,l6 as OJ,s$ as PJ,sca as QJ,u$ as x,uaa as w,x$ as kJ,xaa as T}from"./cli-0.5.9-0b1wx67c.mjs";import{Hca as mJ,Ica as g0,Oca as VJ,Pca as SJ}from"./cli-0.5.9-5vdqnecb.mjs";import{Lda as jZ,Xda as XQ}from"./cli-0.5.9-7hcka84h.mjs";import{$da as YZ,_da as t0}from"./cli-0.5.9-31f5vjyq.mjs";import{Oea as f,Qea as qQ}from"./cli-0.5.9-4s8nynfd.mjs";import{Qfa as p0,Tfa as EY,tfa as Dq,yfa as JX}from"./cli-0.5.9-ek649arf.mjs";import{Cga as LJ,Fga as $Z,vga as gZ,xga as IY}from"./cli-0.5.9-eagw660r.mjs";import{Aia as Qq,Bia as Xq,Cia as Gq,Wia as Vq,Xia as Wq,ama as ZZ,hja as Kq,hka as RJ,ika as _Z,jia as JZ,sja as Hq}from"./cli-0.5.9-3bsjckc3.mjs";import{Hna as $,Lna as p}from"./cli-0.5.9-ysvsqcpa.mjs";function uq(){let Z=JZ(),q=LZ(Z)??Q(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.5.9"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...DZ(),...OZ()]}function dq({mainLoopModel:Z,mcp:J,theme:q,context:X}){return[{label:"Model",value:zZ(Z)},...XZ(J.clients,X.options.ideInstallationStatus,q),...GZ(J.clients,q),...QZ(),...WZ()]}async function FZ(){return[...await KZ(),...await HZ(),...await VZ()]}function iq(Z){let J=JJ.c(8),{value:q}=Z;if(Array.isArray(q)){let X;if(J[0]!==q){let O;if(J[2]!==q.length)O=(F,L)=>D(V,{children:[F,L<q.length-1?",":""]},L),J[2]=q.length,J[3]=O;else O=J[3];X=q.map(O),J[0]=q,J[1]=X}else X=J[1];let W;if(J[4]!==X)W=Q(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:X}),J[4]=X,J[5]=W;else W=J[5];return W}if(typeof q==="string"){let X;if(J[6]!==q)X=Q(V,{children:q}),J[6]=q,J[7]=X;else X=J[7];return X}return q}function NZ(Z){let J=JJ.c(20),{context:q,diagnosticsPromise:X}=Z,W=K0(oq),O=K0(lq),[F]=e0(),L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=uq(),J[0]=L;else L=J[0];let k;if(J[1]!==q||J[2]!==W||J[3]!==O||J[4]!==F)k=dq({mainLoopModel:W,mcp:O,theme:F,context:q}),J[1]=q,J[2]=W,J[3]=O,J[4]=F,J[5]=k;else k=J[5];let P;if(J[6]!==k)P=[L,k],J[6]=k,J[7]=P;else P=J[7];let K=P,N=C0()?1:void 0,z;if(J[8]!==K)z=K.map(rq),J[8]=K,J[9]=z;else z=J[9];let H;if(J[10]!==X)H=Q(ZJ.Suspense,{fallback:null,children:Q(aq,{promise:X})}),J[10]=X,J[11]=H;else H=J[11];let R;if(J[12]!==N||J[13]!==z||J[14]!==H)R=D(U,{flexDirection:"column",gap:1,flexGrow:N,children:[z,H]}),J[12]=N,J[13]=z,J[14]=H,J[15]=R;else R=J[15];let A;if(J[16]===Symbol.for("react.memo_cache_sentinel"))A=Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=A;else A=J[16];let B;if(J[17]!==N||J[18]!==R)B=D(U,{flexDirection:"column",flexGrow:N,children:[R,A]}),J[17]=N,J[18]=R,J[19]=B;else B=J[19];return B}function rq(Z,J){return Z.length>0&&Q(U,{flexDirection:"column",children:Z.map(nq)},J)}function nq(Z,J){let{label:q,value:X}=Z;return D(U,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&D(V,{bold:!0,children:[q,":"]}),Q(iq,{value:X})]},J)}function lq(Z){return Z.mcp}function oq(Z){return Z.mainLoopModel}function aq(Z){let J=JJ.c(5),{promise:q}=Z,X=ZJ.use(q);if(X.length===0)return null;let W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=Q(V,{bold:!0,children:"System Diagnostics"}),J[0]=W;else W=J[0];let O;if(J[1]!==X)O=X.map(sq),J[1]=X,J[2]=O;else O=J[2];let F;if(J[3]!==O)F=D(U,{flexDirection:"column",paddingBottom:1,children:[W,O]}),J[3]=O,J[4]=F;else F=J[4];return F}function sq(Z,J){return D(U,{flexDirection:"row",gap:1,paddingX:1,children:[Q(V,{color:"error",children:H0.warning}),typeof Z==="string"?Q(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=p(()=>{OJ();ZZ();zJ();D0();qZ();YZ();tq();xq();f0();g();JJ=$(U0(),1),ZJ=$(s(),1)});function MZ(Z){let J=kZ.c(17),{currentVersion:q,onChoice:X}=Z,W;if(J[0]!==X)W=function(B){X(B)},J[0]=X,J[1]=W;else W=J[1];let O=W,F;if(J[2]!==X)F=function(){X("cancel")},J[2]=X,J[3]=F;else F=J[3];let L=F,k;if(J[4]!==q)k=D(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=k;else k=J[5];let P;if(J[6]===Symbol.for("react.memo_cache_sentinel"))P=Q(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=P;else P=J[6];let K;if(J[7]===Symbol.for("react.memo_cache_sentinel"))K={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=K;else K=J[7];let N=`Stay on current version (${q}) until stable catches up`,z;if(J[8]!==N)z=[K,{label:N,value:"stay"}],J[8]=N,J[9]=z;else z=J[9];let H;if(J[10]!==O||J[11]!==z)H=Q(T0,{options:z,onChange:O}),J[10]=O,J[11]=z,J[12]=H;else H=J[12];let R;if(J[13]!==L||J[14]!==k||J[15]!==H)R=D(S0,{title:"Switch to Stable Channel",onCancel:L,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[k,P,H]}),J[13]=L,J[14]=k,J[15]=H,J[16]=R;else R=J[16];return R}var kZ;var AZ=p(()=>{D0();PZ();FJ();g();kZ=$(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??JQ,value:J,description:q?.description??ZQ}))}function CZ(Z){let J=fZ.c(16),{initialStyle:q,onComplete:X,onCancel:W,isStandaloneCommand:O}=Z,F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=[],J[0]=F;else F=J[0];let[L,k]=j0.useState(F),[P,K]=j0.useState(!0),N,z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))N=()=>{IZ(t0()).then((d)=>{let t=UZ(d);k(t),K(!1)}).catch(()=>{let d=UZ(BZ);k(d),K(!1)})},z=[],J[1]=N,J[2]=z;else N=J[1],z=J[2];j0.useEffect(N,z);let H;if(J[3]!==X)H=(d)=>{X(d)},J[3]=X,J[4]=H;else H=J[4];let R=H,A=!O,B=!O,I;if(J[5]===Symbol.for("react.memo_cache_sentinel"))I=Q(U,{marginTop:1,children:Q(V,{dimColor:!0,children:"This changes how Claude Code communicates with you"})}),J[5]=I;else I=J[5];let h;if(J[6]!==R||J[7]!==q||J[8]!==P||J[9]!==L)h=D(U,{flexDirection:"column",gap:1,children:[I,P?Q(V,{dimColor:!0,children:"Loading output styles…"}):Q(T0,{options:L,onChange:R,visibleOptionCount:10,defaultValue:q})]}),J[6]=R,J[7]=q,J[8]=P,J[9]=L,J[10]=h;else h=J[10];let S;if(J[11]!==W||J[12]!==A||J[13]!==B||J[14]!==h)S=Q(S0,{title:"Preferred output style",onCancel:W,hideInputGuide:A,hideBorder:B,children:h}),J[11]=W,J[12]=A,J[13]=B,J[14]=h,J[15]=S;else S=J[15];return S}var fZ,j0,JQ="Default",ZQ="Claude completes coding tasks efficiently and provides concise responses";var SZ=p(()=>{EZ();D0();YZ();eq();FJ();g();fZ=$(U0(),1),j0=$(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:q,onComplete:X,onCancel:W}=Z,[O,F]=NJ.useState(q),[L,k]=NJ.useState((q??"").length),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P={context:"Settings"},J[0]=P;else P=J[0];l("confirm:no",W,P);let K;if(J[1]!==O||J[2]!==X)K=function(){let S=O?.trim();X(S||void 0)},J[1]=O,J[2]=X,J[3]=K;else K=J[3];let N=K,z;if(J[4]===Symbol.for("react.memo_cache_sentinel"))z=Q(V,{children:"Enter your preferred response and voice language:"}),J[4]=z;else z=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=Q(V,{children:H0.pointer}),J[5]=H;else H=J[5];let R=O??"",A;if(J[6]!==L||J[7]!==N||J[8]!==R)A=D(U,{flexDirection:"row",gap:1,children:[H,Q(TZ,{value:R,onChange:F,onSubmit:N,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${H0.ellipsis}`,columns:60,cursorOffset:L,onChangeCursorOffset:k})]}),J[6]=L,J[7]=N,J[8]=R,J[9]=A;else A=J[9];let B;if(J[10]===Symbol.for("react.memo_cache_sentinel"))B=Q(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=B;else B=J[10];let I;if(J[11]!==A)I=D(U,{flexDirection:"column",gap:1,children:[z,A,B]}),J[11]=A,J[12]=I;else I=J[12];return I}var wZ,NJ;var bZ=p(()=>{OJ();D0();w0();YQ();g();wZ=$(U0(),1),NJ=$(s(),1)});function PY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:O,focusHeader:F}=HY(),L=C0(),[,k]=e0(),P=eZ(),[K,N]=_.useState(T()),z=v.useRef(T()),[H,R]=_.useState(kJ()),A=v.useRef(kJ()),[B,I]=_.useState(H?.outputStyle||YJ),h=v.useRef(B),[S,d]=_.useState(H?.language),t=v.useRef(S),[j,F0]=_.useState(0),[i,Y0]=_.useState(0),[r,q0]=_.useState(!0),$0=ZY(),{rows:I0}=V0(),Cq=W??Math.min(Math.floor(I0*0.8),30),Q0=Math.max(5,Cq-10),E0=K0((Y)=>Y.mainLoopModel),Sq=K0((Y)=>Y.verbose),xJ=K0((Y)=>Y.thinkingEnabled),uJ=K0((Y)=>m0()?Y.fastMode:!1),Tq=K0((Y)=>Y.promptSuggestionEnabled),FX=!1,X0=XY(),[dJ,M0]=_.useState({}),wq=v.useRef(xJ),[iJ]=_.useState(()=>PJ("localSettings")),[rJ]=_.useState(()=>PJ("userSettings")),nJ=v.useRef(P),hq=GY(),[lJ]=_.useState(()=>{let Y=hq.getState();return{mainLoopModel:Y.mainLoopModel,mainLoopModelForSession:Y.mainLoopModelForSession,verbose:Y.verbose,thinkingEnabled:Y.thinkingEnabled,fastMode:Y.fastMode,promptSuggestionEnabled:Y.promptSuggestionEnabled,isBriefOnly:Y.isBriefOnly,replBridgeEnabled:Y.replBridgeEnabled,replBridgeOutboundOnly:Y.replBridgeOutboundOnly,settings:Y.settings}}),[KJ]=_.useState(()=>RJ()),e=v.useRef(!1),[bq,o0]=_.useState(!1),[m,y]=_.useState(null),{query:A0,setQuery:a0,cursorOffset:yq}=RY({isActive:r&&m===null&&!O,onExit:()=>q0(!1),onExitUp:F,passthroughCtrlKeys:["c","d"]}),oJ=r&&!O;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let _q=qY(J.options.mcpClients),gq=!gZ(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(MY(!0)),$q=UY(aJ),W0=iZ();function sJ(Y){f("tengu_config_model_changed",{from_model:E0,to_model:Y}),X0((M)=>({...M,mainLoopModel:Y,mainLoopModelForSession:null})),M0((M)=>{let E=qJ(Y)+(zY(Y,!1,sZ())?" · Billed as extra usage":"");if("model"in M){let{model:b,...o}=M;return{...o,model:E}}return{...M,model:E}})}function jq(Y){w((G)=>({...G,verbose:Y})),N({...T(),verbose:Y}),X0((G)=>({...G,verbose:Y})),M0((G)=>{if("verbose"in G){let{verbose:M,...E}=G;return E}return{...G,verbose:Y}})}let HJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(Y){w((G)=>({...G,autoCompactEnabled:Y})),N({...T(),autoCompactEnabled:Y}),f("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){w((G)=>({...G,thinkingHistoryRedactionEnabled:Y})),N({...T(),thinkingHistoryRedactionEnabled:Y}),f("claudin_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(Y){w((G)=>({...G,narrationHistoryRedactionEnabled:Y})),N({...T(),narrationHistoryRedactionEnabled:Y}),f("claudin_narration_history_redaction_setting_changed",{enabled:Y})}},{id:"showCacheStats",label:"Cache stats display",value:K.showCacheStats,options:["off","compact","full"],type:"enum",onChange(Y){let G=Y==="off"||Y==="compact"||Y==="full"?Y:"compact";w((M)=>({...M,showCacheStats:G})),N({...T(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(Y){w((G)=>({...G,toolResultSummarizerEnabled:Y})),N({...T(),toolResultSummarizerEnabled:Y}),f("claudin_tool_result_summarizer_setting_changed",{enabled:Y})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:K.bashOutputFilterEnabled!==!1,type:"boolean",onChange(Y){w((G)=>({...G,bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y})),N({...T(),bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y}),f("claudin_bash_output_filter_setting_changed",{enabled:Y})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(Y){w((G)=>({...G,autoBackgroundAgentsEnabled:Y})),N({...T(),autoBackgroundAgentsEnabled:Y}),f("claudin_auto_background_agents_setting_changed",{enabled:Y})}},{id:"inlineImagesMode",label:"Inline terminal images",value:K.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(Y){let G=Y==="auto"||Y==="enable"||Y==="disable"?Y:"auto";w((M)=>({...M,inlineImagesMode:G})),N({...T(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:H?.spinnerTipsEnabled??!0,type:"boolean",onChange(Y){x("localSettings",{spinnerTipsEnabled:Y}),R((G)=>({...G,spinnerTipsEnabled:Y})),f("tengu_tips_setting_changed",{enabled:Y})}},{id:"prefersReducedMotion",label:"Reduce motion",value:H?.prefersReducedMotion??!1,type:"boolean",onChange(Y){x("localSettings",{prefersReducedMotion:Y}),R((G)=>({...G,prefersReducedMotion:Y})),X0((G)=>({...G,settings:{...G.settings,prefersReducedMotion:Y}})),f("tengu_reduce_motion_setting_changed",{enabled:Y})}},{id:"thinkingEnabled",label:"Thinking mode",value:xJ??!0,type:"boolean",onChange(Y){X0((G)=>({...G,thinkingEnabled:Y})),x("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),f("tengu_thinking_toggled",{enabled:Y})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${lZ} only)`,value:!!uJ,type:"boolean",onChange(Y){if(aZ(),x("userSettings",{fastMode:Y?!0:void 0}),Y)X0((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else X0((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:Tq,type:"boolean",onChange(Y){X0((G)=>({...G,promptSuggestionEnabled:Y})),x("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}},...gq?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(Y){w((G)=>({...G,fileCheckpointingEnabled:Y})),N({...T(),fileCheckpointingEnabled:Y}),f("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:Sq,type:"boolean",onChange:jq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(Y){w((G)=>({...G,terminalProgressBarEnabled:Y})),N({...T(),terminalProgressBarEnabled:Y}),f("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},...jZ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){w((G)=>({...G,showStatusInTerminalTab:Y})),N({...T(),showStatusInTerminalTab:Y}),f("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(Y){w((G)=>({...G,showTurnDuration:Y})),N({...T(),showTurnDuration:Y}),f("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:H?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],G=mZ,M=["bypassPermissions"];return[...Y,...G.filter((E)=>!Y.includes(E)&&!M.includes(E))]})(),type:"enum",onChange(Y){let G=pZ(Y),M=vZ(G)?cZ(G):G,E=x("userSettings",{permissions:{...H?.permissions,defaultMode:M}});if(E.error){N0(E.error);return}R((b)=>({...b,permissions:{...b?.permissions,defaultMode:M}})),M0((b)=>({...b,defaultPermissionMode:Y})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:H?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){x("userSettings",{useAutoModeDuringPlan:Y}),R((G)=>({...G,useAutoModeDuringPlan:Y})),X0((G)=>{let M=BJ(G.toolPermissionContext);if(M===G.toolPermissionContext)return G;return{...G,toolPermissionContext:M}}),M0((G)=>({...G,"Use auto mode during plan":Y}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(Y){w((G)=>({...G,respectGitignore:Y})),N({...T(),respectGitignore:Y}),f("tengu_respect_gitignore_setting_changed",{enabled:Y})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:K.copyFullResponse,type:"boolean",onChange(Y){w((G)=>({...G,copyFullResponse:Y})),N({...T(),copyFullResponse:Y}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...JY()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(Y){w((G)=>({...G,copyOnSelect:Y})),N({...T(),copyOnSelect:Y}),f("tengu_config_changed",{setting:"copyOnSelect",value:String(Y)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:K.flickerFreeMode??!1,type:"boolean",onChange(Y){w((G)=>({...G,flickerFreeMode:Y})),N({...T(),flickerFreeMode:Y}),f("tengu_config_changed",{setting:"flickerFreeMode",value:String(Y)})}},W0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:H?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:P,type:"managedEnum",onChange:k},{id:"notifChannel",label:"Notifications",value:K.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(Y){w((G)=>({...G,preferredNotifChannel:Y})),N({...T(),preferredNotifChannel:Y})}},{id:"outputStyle",label:"Output style",value:B,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:S??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:K.editorMode==="emacs"?"normal":K.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(Y){w((G)=>({...G,editorMode:Y})),N({...T(),editorMode:Y}),f("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){w((G)=>{if(G.prStatusFooterEnabled===Y)return G;return{...G,prStatusFooterEnabled:Y}}),N({...T(),prStatusFooterEnabled:Y}),f("tengu_pr_status_footer_setting_changed",{enabled:Y})}},{id:"model",label:"Model",value:E0===null?"Default (recommended)":E0,type:"managedEnum",onChange:sJ},..._q?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){w((G)=>({...G,diffTool:Y})),N({...T(),diffTool:Y}),f("tengu_diff_tool_changed",{tool:Y,source:"config_panel"})}}]:[],...!UJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:K.autoConnectIde??!1,type:"boolean",onChange(Y){w((G)=>({...G,autoConnectIde:Y})),N({...T(),autoConnectIde:Y}),f("tengu_auto_connect_ide_changed",{enabled:Y,source:"config_panel"})}}]:[],...UJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:K.autoInstallIdeExtension??!0,type:"boolean",onChange(Y){w((G)=>({...G,autoInstallIdeExtension:Y})),N({...T(),autoInstallIdeExtension:Y}),f("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],...QY()?(()=>{let Y=VY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(M){if(M!=="auto"&&M!=="tmux"&&M!=="in-process")return;WY(M),w((E)=>({...E,teammateMode:M})),N({...T(),teammateMode:M}),f("tengu_teammate_mode_changed",{mode:M})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...$q?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(uZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let Y=B0(),G=Y?.transport==="anthropic"?Y.apiKey?.trim():void 0;if(!G||LJ())return[];return[{id:"apiKey",label:D(V,{children:["Use custom API key:"," ",Q(V,{bold:!0,children:h0(G)})]}),searchText:"Use custom API key",value:Boolean(K.customApiKeyResponses?.approved?.includes(h0(G))),type:"boolean",onChange(M){w((E)=>{let b={...E};if(!b.customApiKeyResponses)b.customApiKeyResponses={approved:[],rejected:[]};if(!b.customApiKeyResponses.approved)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[]};if(!b.customApiKeyResponses.rejected)b.customApiKeyResponses={...b.customApiKeyResponses,rejected:[]};{let o=h0(G);if(M)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[...(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),o],rejected:(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o)};else b.customApiKeyResponses={...b.customApiKeyResponses,approved:(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),rejected:[...(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o),o]}}return b}),N(T())}}]})()],G0=v.useMemo(()=>{if(!A0)return HJ;let Y=A0.toLowerCase();return HJ.filter((G)=>{if(G.id.toLowerCase().includes(Y))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(Y)})},[HJ,A0]);v.useEffect(()=>{if(j>=G0.length){let Y=Math.max(0,G0.length-1);F0(Y),Y0(Math.max(0,Y-Q0+1));return}Y0((Y)=>{if(j<Y)return j;if(j>=Y+Q0)return j-Q0+1;return Y})},[G0.length,j,Q0]);let mq=_.useCallback((Y)=>{Y0((G)=>{if(Y<G)return Y;if(Y>=G+Q0)return Y-Q0+1;return G})},[Q0]),vq=_.useCallback(()=>{if(m!==null)return;let Y=Object.entries(dJ).map(([a,eJ])=>{return f("tengu_config_changed",{key:a,value:eJ}),`Set ${a} to ${O0.bold(eJ)}`}),G=B0(),M=G?.transport==="anthropic"?G.apiKey?.trim():void 0,E=LJ()?void 0:M,b=Boolean(E&&z.current.customApiKeyResponses?.approved?.includes(h0(E))),o=Boolean(E&&K.customApiKeyResponses?.approved?.includes(h0(E)));if(b!==o)Y.push(`${o?"Enabled":"Disabled"} custom API key`),f("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:o});if(K.theme!==z.current.theme)Y.push(`Set theme to ${O0.bold(K.theme)}`);if(K.preferredNotifChannel!==z.current.preferredNotifChannel)Y.push(`Set notifications to ${O0.bold(K.preferredNotifChannel)}`);if(B!==h.current)Y.push(`Set output style to ${O0.bold(B)}`);if(S!==t.current)Y.push(`Set response language to ${O0.bold(S??"Default (English)")}`);if(K.editorMode!==z.current.editorMode)Y.push(`Set editor mode to ${O0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==z.current.diffTool)Y.push(`Set diff tool to ${O0.bold(K.diffTool)}`);if(K.autoConnectIde!==z.current.autoConnectIde)Y.push(`${K.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(K.autoInstallIdeExtension!==z.current.autoInstallIdeExtension)Y.push(`${K.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(K.autoCompactEnabled!==z.current.autoCompactEnabled)Y.push(`${K.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(K.thinkingHistoryRedactionEnabled!==z.current.thinkingHistoryRedactionEnabled)Y.push(`${K.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(K.narrationHistoryRedactionEnabled!==z.current.narrationHistoryRedactionEnabled)Y.push(`${K.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(K.toolResultSummarizerEnabled!==z.current.toolResultSummarizerEnabled)Y.push(`${K.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(K.autoBackgroundAgentsEnabled!==z.current.autoBackgroundAgentsEnabled)Y.push(`${K.autoBackgroundAgentsEnabled!==!1?"Enabled":"Disabled"} auto-background agents`);if(K.bashOutputFilterEnabled!==z.current.bashOutputFilterEnabled)Y.push(`${K.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(K.respectGitignore!==z.current.respectGitignore)Y.push(`${K.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(K.copyFullResponse!==z.current.copyFullResponse)Y.push(`${K.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(K.copyOnSelect!==z.current.copyOnSelect)Y.push(`${K.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(K.terminalProgressBarEnabled!==z.current.terminalProgressBarEnabled)Y.push(`${K.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(K.showStatusInTerminalTab!==z.current.showStatusInTerminalTab)Y.push(`${K.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(K.showTurnDuration!==z.current.showTurnDuration)Y.push(`${K.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(K.remoteControlAtStartup!==z.current.remoteControlAtStartup){let a=K.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${K.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;Y.push(a)}if(H?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${O0.bold(H?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
2
+ `));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,B,S,H?.autoUpdatesChannel,m0()?H?.fastMode:void 0,Z]),tJ=_.useCallback(()=>{if(P!==nJ.current)k(nJ.current);w(()=>z.current);let Y=iJ;x("localSettings",{spinnerTipsEnabled:Y?.spinnerTipsEnabled,prefersReducedMotion:Y?.prefersReducedMotion,defaultView:Y?.defaultView,outputStyle:Y?.outputStyle});let G=rJ;x("userSettings",{alwaysThinkingEnabled:G?.alwaysThinkingEnabled,fastMode:G?.fastMode,promptSuggestionEnabled:G?.promptSuggestionEnabled,autoUpdatesChannel:G?.autoUpdatesChannel,minimumVersion:G?.minimumVersion,language:G?.language,...{useAutoModeDuringPlan:G?.useAutoModeDuringPlan},syntaxHighlightingDisabled:G?.syntaxHighlightingDisabled,permissions:G?.permissions===void 0?void 0:{...G.permissions,defaultMode:G.permissions.defaultMode}});let M=lJ;if(X0((E)=>({...E,mainLoopModel:M.mainLoopModel,mainLoopModelForSession:M.mainLoopModelForSession,verbose:M.verbose,thinkingEnabled:M.thinkingEnabled,fastMode:M.fastMode,promptSuggestionEnabled:M.promptSuggestionEnabled,isBriefOnly:M.isBriefOnly,replBridgeEnabled:M.replBridgeEnabled,replBridgeOutboundOnly:M.replBridgeOutboundOnly,settings:M.settings,toolPermissionContext:BJ(E.toolPermissionContext)})),RJ()!==KJ)_Z(KJ)},[P,k,iJ,rJ,lJ,KJ,X0]),cq=_.useCallback(()=>{if(m!==null)return;if(e.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",cq,{context:"Settings",isActive:m===null&&!r&&!O}),l("settings:close",vq,{context:"Settings",isActive:m===null&&!r&&!O});let DJ=_.useCallback(()=>{let Y=G0[j];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(e.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===wq.current)o0(!1);else if(J.messages.some((E)=>E.type==="assistant"))o0(!0)}return}if(Y.id==="theme"||Y.id==="model"||Y.id==="teammateDefaultModel"||Y.id==="showExternalIncludesDialog"||Y.id==="outputStyle"||Y.id==="language")switch(Y.id){case"theme":y("Theme"),q(!0);return;case"model":y("Model"),q(!0);return;case"teammateDefaultModel":y("TeammateModel"),q(!0);return;case"showExternalIncludesDialog":y("ExternalIncludes"),q(!0);return;case"outputStyle":y("OutputStyle"),q(!0);return;case"language":y("Language"),q(!0);return}if(Y.id==="autoUpdatesChannel"){if(W0){y("EnableAutoUpdates"),q(!0);return}if((H?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),q(!0);else e.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((M)=>({...M,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){e.current=!0;let M=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[M]);return}},[W0,G0,j,H?.autoUpdatesChannel,q]),s0=(Y)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,j+Y));F0(G),mq(G)};YY({"select:previous":()=>{if(j===0)o0(!1),q0(!0),Y0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":DJ,"settings:search":()=>{q0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!O});let pq=_.useCallback((Y)=>{if(m!==null)return;if(O)return;if(r){if(Y.key==="escape"){if(Y.preventDefault(),A0.length>0)a0("");else q0(!1);return}if(Y.key==="return"||Y.key==="down"||Y.key==="wheeldown")Y.preventDefault(),q0(!1),F0(0),Y0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),DJ();return}if(Y.ctrl||Y.meta)return;if(Y.key==="j"||Y.key==="k"||Y.key==="/")return;if(Y.key.length===1&&Y.key!==" ")Y.preventDefault(),q0(!0),a0(Y.key)},[m,O,r,A0,a0,DJ]);return Q(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:pq,children:m==="Theme"?D(n,{children:[Q(OY,{onThemeSelect:(Y)=>{e.current=!0,k(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Q(U,{children:Q(V,{dimColor:!0,italic:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"select"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?D(n,{children:[Q(IJ,{initial:E0,onSelect:(Y,G)=>{e.current=!0,sJ(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},showFastModeNotice:m0()?uJ&&oZ(E0)&&MJ():!1}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?D(n,{children:[Q(IJ,{initial:K.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(Y,G)=>{if(y(null),q(!1),K.teammateDefaultModel===void 0&&Y===null)return;e.current=!0,w((M)=>M.teammateDefaultModel===Y?M:{...M,teammateDefaultModel:Y}),N({...T(),teammateDefaultModel:Y}),M0((M)=>({...M,teammateDefaultModel:yZ(Y)})),f("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?D(n,{children:[Q(FY,{onDone:()=>{y(null),q(!1)},externalIncludes:AY(aJ)}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?D(n,{children:[Q(CZ,{initialStyle:B,onComplete:(Y)=>{e.current=!0,I(Y??YJ),y(null),q(!1),x("localSettings",{outputStyle:Y}),f("tengu_output_style_changed",{style:Y??YJ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?D(n,{children:[Q(hZ,{initialLanguage:S,onComplete:(Y)=>{e.current=!0,d(Y),y(null),q(!1),x("userSettings",{language:Y}),f("tengu_language_changed",{language:Y??"default",source:"config_panel"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):m==="EnableAutoUpdates"?Q(S0,{title:"Enable Auto-Updates",onCancel:()=>{y(null),q(!1)},hideBorder:!0,hideInputGuide:!0,children:W0?.type!=="config"?D(n,{children:[Q(V,{children:W0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),W0?.type==="env"&&D(V,{dimColor:!0,children:["Unset ",W0.envVar," to re-enable auto-updates."]})]}):Q(T0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(Y)=>{e.current=!0,y(null),q(!1),w((G)=>({...G,autoUpdates:!0})),N({...T(),autoUpdates:!0}),x("userSettings",{autoUpdatesChannel:Y,minimumVersion:void 0}),R((G)=>({...G,autoUpdatesChannel:Y,minimumVersion:void 0})),f("tengu_autoupdate_enabled",{channel:Y})}})}):m==="ChannelDowngrade"?Q(MZ,{currentVersion:"99.0.0",onChoice:(Y)=>{if(y(null),q(!1),Y==="cancel")return;e.current=!0;let G={autoUpdatesChannel:"stable"};if(Y==="stay")G.minimumVersion="99.0.0";x("userSettings",G),R((M)=>({...M,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):D(U,{flexDirection:"column",gap:1,marginY:L?void 0:1,children:[Q(NY,{query:A0,isFocused:r&&!O,isTerminalFocused:$0,cursorOffset:yq,placeholder:"Search settings…"}),Q(U,{flexDirection:"column",children:G0.length===0?D(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):D(n,{children:[i>0&&D(V,{dimColor:!0,children:[H0.arrowUp," ",i," more above"]}),G0.slice(i,i+Q0).map((Y,G)=>{let E=i+G===j&&!O&&!r;return Q(v.Fragment,{children:D(U,{children:[Q(U,{width:44,children:D(V,{color:E?"suggestion":void 0,children:[E?H0.pointer:" "," ",Y.label]})}),Q(U,{children:Y.type==="boolean"?D(n,{children:[Q(V,{color:E?"suggestion":void 0,children:Y.value.toString()}),bq&&Y.id==="thinkingEnabled"&&D(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?Q(V,{color:E?"suggestion":void 0,children:IQ[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?Q(V,{color:E?"suggestion":void 0,children:Q(EQ,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?Q(V,{color:E?"suggestion":void 0,children:xZ(Y.value)}):Y.id==="autoUpdatesChannel"&&W0?D(U,{flexDirection:"column",children:[Q(V,{color:E?"suggestion":void 0,children:"disabled"}),D(V,{dimColor:!0,children:["(",dZ(W0),")"]})]}):Q(V,{color:E?"suggestion":void 0,children:Y.value.toString()})},E?"selected":"unselected")]})},Y.id)}),i+Q0<G0.length&&D(V,{dimColor:!0,children:[H0.arrowDown," ",G0.length-i-Q0," ","more below"]})]})}),O?Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"←/→ tab",action:"switch"}),Q(J0,{shortcut:"↓",action:"return"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Q(V,{dimColor:!0,children:D(c,{children:[Q(V,{children:"Type to filter"}),Q(J0,{shortcut:"Enter/↓",action:"select"}),Q(J0,{shortcut:"↑",action:"tabs"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),Q(C,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),Q(C,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function yZ(Z){if(Z===void 0)return qJ(KY());if(Z===null)return"Default (leader's model)";return qJ(Z)}function EQ(Z){let J=LY.c(4),{value:q}=Z;switch(q){case"auto":return"Auto";case"iterm2":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["iTerm2 ",Q(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=X;else X=J[0];return X}case"terminal_bell":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Terminal Bell ",Q(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=X;else X=J[1];return X}case"kitty":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Kitty ",Q(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=X;else X=J[2];return X}case"ghostty":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Ghostty ",Q(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=X;else X=J[3];return X}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return q}}var LY,v,_,IQ;var kY=p(()=>{D0();w0();OJ();rZ();WQ();nZ();rZ();QQ();GQ();RQ();QJ();qQ();LQ();PQ();qZ();kQ();tZ();MQ();AQ();AZ();FJ();PZ();SZ();bZ();fQ();DQ();f0();XJ();DY();zJ();UQ();OQ();VQ();ZZ();EZ();$Z();XQ();zQ();FQ();NQ();BQ();v0();KQ();HQ();g();LY=$(U0(),1),v=$(s(),1),_=$(s(),1);IQ={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)"}});function x0(Z){return typeof Z==="object"&&Z!==null}function Z0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function b0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function EJ(Z){return typeof Z==="boolean"?Z:void 0}function fJ(Z){let J=b0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function GJ(Z){if(!x0(Z))return;let J=b0(Z.used_percent)??b0(Z.usedPercent);if(J===void 0)return;let q=b0(Z.window_minutes)??b0(Z.windowDurationMins)??(()=>{let W=b0(Z.limit_window_seconds);return W===void 0?void 0:Math.round(W/60)})(),X=fJ(Z.resets_at)??fJ(Z.resetsAt)??fJ(Z.reset_at);return{usedPercent:J,windowMinutes:q,resetsAt:X}}function bY(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,q=EJ(Z.unlimited)??!1,X=Z0(Z.balance);if(!J&&!q&&!X)return;return{hasCredits:J,unlimited:q,balance:X}}function c0(Z,J){if(!x0(Z))return;let q=Z0(Z.limit_name)??Z0(Z.limitName)??Z0(Z.limit_id)??Z0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),O=bY(Z.credits);if(!X&&!W&&!O)return;return{limitName:q,primary:X,secondary:W,credits:O}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,X)=>c0(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([q,X])=>c0(X,q)).filter((q)=>q!==void 0)}function TQ(Z){let J=Z0(Z.plan_type)??Z0(Z.planType),q=[],X=bY(Z.credits),W=c0(Z.rate_limit,"codex");if(W)W.credits??=X,q.push(W);else if(X)q.push({limitName:"codex",credits:X});let O=c0(Z.code_review_rate_limit,"code review");if(O)q.push(O);return q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function wQ(Z){if(Array.isArray(Z))return{snapshots:CJ(Z)};if(!x0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return TQ(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:CJ(J)};let q=c0(Z,"codex");return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:q?[q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function BY(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function hQ(Z){let J=Z?.trim();if(!J)return;let q=Number.parseInt(J,10);if(Number.isFinite(q)&&`${q}`===J&&q>0)return`${q}`;let X=Number.parseFloat(J);if(Number.isFinite(X)&&X>0)return`${Math.round(X)}`;return}function bQ(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=hQ(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function yY(Z){let J=[];for(let q of Z){let X=q.limitName.trim()||"codex",W=bQ(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||W!==void 0))continue;let F=X.toLowerCase()!=="codex",L=Number(q.primary!==void 0)+Number(q.secondary!==void 0),k=F&&L===1;if(F&&!k)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(q.primary){let P=y0(BY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:k?`${y0(X)} ${P} limit`:`${P} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let P=y0(BY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:k?`${y0(X)} ${P} limit`:`${P} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(W)J.push(W)}return J}function _Y(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function yQ(Z=SY){return new URL("/backend-api/wham/usage",Z).toString()}async function gY(){let Z=await CY().catch(async(W)=>{return p0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await fY()}}),J=wY();if(!TY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=hY({storedCredentials:Z.credentials});if(!q.apiKey){let W=IY()?"":", choose Codex OAuth in /provider",O=q.authPath?`${W} or place a Codex auth.json at ${q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${O}.`)}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 X=await fetch(yQ(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q.apiKey}`,"chatgpt-account-id":q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!X.ok){let W=await X.text().catch(()=>"unknown error");throw Error(`Codex usage error ${X.status}: ${W}`)}return wQ(await X.json())}var $Y=p(()=>{CQ();EY();$Z();SQ()});function _Q({label:Z,usedPercent:J,resetsAt:q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),O=`${Math.floor(W)}% used`,F=q?`Resets ${VJ(q,!0,!0)}`:void 0;if(X>=62)return D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:Z}),D(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:O})]}),F?Q(V,{dimColor:!0,children:F}):null]});return D(U,{flexDirection:"column",children:[D(V,{children:[Q(V,{bold:!0,children:Z}),F?D(n,{children:[Q(V,{children:" "}),D(V,{dimColor:!0,children:["· ",F]})]}):null]}),Q(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:O})]})}function gQ({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return D(V,{children:[Q(V,{bold:!0,children:Z}),D(V,{dimColor:!0,children:[" · ",J]})]})}function mY(){let[Z,J]=_0.useState(null),[q,X]=_0.useState(null),[W,O]=_0.useState(!0),{columns:F}=V0(),L=F-2,k=Math.min(L,80),P=jY.useCallback(async()=>{O(!0),X(null);try{J(await gY())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load Codex usage")}finally{O(!1)}},[]);if(_0.useEffect(()=>{P()},[P]),l("settings:retry",()=>{P()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading Codex usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=yY(Z.snapshots),N=_Y(Z.planType);return D(U,{flexDirection:"column",gap:1,width:"100%",children:[N?D(V,{dimColor:!0,children:["Plan: ",N]}):null,K.length===0?Q(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((z,H)=>z.kind==="window"?Q(_Q,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,maxWidth:k},`${z.label}-${H}`):Q(gQ,{label:z.label,value:z.value},`${z.label}-${H}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var jY,_0;var vY=p(()=>{v0();D0();w0();$Y();SJ();QJ();f0();XJ();TJ();g();jY=$(s(),1),_0=$(s(),1)});var u0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var wJ=()=>{};function L0(Z){return typeof Z==="object"&&Z!==null}function u(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function bJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function WJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function $Q(Z){if(typeof Z==="string"){let X=Date.parse(Z);return Number.isNaN(X)?Z:new Date(X).toISOString()}let J=bJ(Z);if(J===void 0)return;let q=J>1000000000000?J:J*1000;return new Date(q).toISOString()}function jQ(Z,J){let q=bJ(Z);if(/remains?_time/i.test(J)&&q!==void 0){let X=q>604800?q:q*1000;return new Date(Date.now()+X).toISOString()}return $Q(Z)}function i0(Z,J){for(let q of J){let X=bJ(Z[q]);if(X!==void 0)return X}return}function mQ(Z,J){for(let q of J)if(Z[q]!==void 0)return jQ(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function xY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function vQ(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((q)=>xY(q.toLowerCase())).join(" ")}function cQ(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>xY(J.toLowerCase())).join(" ")}function uY(Z,J){let q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),O=i0(Z,J.remainingKeys),F=i0(Z,J.usedKeys),L=W!==void 0&&F!==void 0?W-F:O,k;if(W!==void 0&&W>0&&F!==void 0)k=WJ(F/W*100);else if(W!==void 0&&W>0&&O!==void 0)k=WJ((W-O)/W*100);else if(q!==void 0)k=WJ(q);else if(X!==void 0)k=WJ(100-X);if(k===void 0)return;return{label:J.label,usedPercent:k,remaining:L,total:W,resetsAt:mQ(Z,J.resetKeys)}}function pQ(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return uY(Z,{label:J,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 uQ(Z){if(r0(Z,xQ))return!0;return dY.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function hJ(Z,J){if(!L0(Z))return;let q=dY.map((W)=>uY(Z,W)).filter((W)=>W!==void 0);if(q.length===0){let W=pQ(Z);if(W)q.push(W)}if(q.length===0)return;return{limitName:u(Z.limit_name)??u(Z.limitName)??u(Z.model_name)??u(Z.modelName)??u(Z.name)??J,windows:q}}function cY(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((q,X)=>hJ(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!L0(Z))return[];if(uQ(Z)){let q=hJ(Z,J);return q?[q]:[]}return Object.entries(Z).map(([q,X])=>hJ(X,q)).filter((q)=>q!==void 0)}function pY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return pY();let J=cQ(u(Z.plan_type)??u(Z.planType)??u(Z.subscription_type)??u(Z.subscriptionType)??u(Z.plan_name)??u(Z.planName)),X=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,L0(Z.data)?Z.data.model_remains:void 0,L0(Z.data)?Z.data.modelRemains:void 0,L0(Z.data)?Z.data.models:void 0,L0(Z.data)?Z.data.quotas:void 0,L0(Z.data)?Z.data.remains:void 0].flatMap((O)=>cY(O)).filter((O,F,L)=>{let k=`${O.limitName}:${O.windows.map((P)=>P.label).join("|")}`;return L.findIndex((P)=>`${P.limitName}:${P.windows.map((K)=>K.label).join("|")}`===k)===F});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=cY(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return pY(void 0,J)}function dQ(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function _J(Z){let J=[];for(let q of Z){let X=vQ(q.limitName),W=X.toLowerCase()!=="minimax",O=W&&q.windows.length===1;if(W&&!O)J.push({kind:"text",label:`${X} quota`,value:""});for(let F of q.windows)J.push({kind:"window",label:O?`${X} ${F.label}`:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,extraSubtext:dQ(F)})}return J}var dY,xQ;var gJ=p(()=>{wJ();dY=[{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"]}],xQ=["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 rQ(Z){return Z.replace(/\/+$/,"")}function nY(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?rQ(J):u0}function nQ(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:nY(J),usedDefault:!1}}function iY(Z){return{availability:"unknown",snapshots:[],message:Z}}function lY(Z){let{baseUrl:J,usedDefault:q}=nQ(Z);try{let X=new URL(`${J}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}catch{if(q){let X=new URL(`${u0}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function $J(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=lY(),q=[],X=null;for(let W of J){let O;try{O=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":rY()},signal:AbortSignal.timeout(5000)})}catch(L){p0(`[minimax] usage request failed for ${W}: ${L instanceof Error?L.message:String(L)}`,{level:"warn"}),X=L instanceof Error?L:Error(String(L));continue}if(!O.ok){let L=await O.text().catch(()=>"");if([400,401,403,404].includes(O.status)){q.push({status:O.status,body:L});continue}X=Error(`MiniMax usage error ${O.status}: ${L||"unknown error"}`);continue}let F=yJ(await O.json());if(F.availability==="available")return F}if(q.length>0){let W=q[q.length-1];return p0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),iY(d0)}if(X)throw X;return iY(d0)}var oY=p(()=>{nZ();EY();iQ();wJ();gJ()});var aY=p(()=>{gJ();oY()});function aQ(Z){let J=Math.max(1,Math.ceil(Z/60000)),q=Math.floor(J/1440),X=Math.floor(J%1440/60),W=J%60;if(q>0)return X>0?`${q}d ${X}h`:`${q}d`;if(X>0)return W>0?`${X}h ${W}m`:`${X}h`;return`${W}m`}function sQ(Z,J){if(!Z)return;let q=Date.parse(Z);if(!Number.isFinite(q))return;let X=q-J;if(X<=0)return"Resetting now";return`Resets in ${aQ(X)}`}function tQ({label:Z,usedPercent:J,resetsAt:q,extraSubtext:X,maxWidth:W,nowMs:O}){let F=Math.max(0,Math.min(100,J)),L=`${Math.floor(F)}% used`,k=sQ(q,O),P=[L,X].filter((K)=>Boolean(K));return D(U,{flexDirection:"column",children:[D(V,{children:[Q(V,{bold:!0,children:Z}),k?D(V,{dimColor:!0,children:[" · ",k]}):null]}),D(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:F/100,width:Math.min(oQ,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),P.length>0?Q(V,{dimColor:!0,children:P.join(" · ")}):null]})]})}function eQ({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return D(V,{children:[Q(V,{bold:!0,children:Z}),D(V,{dimColor:!0,children:[" · ",J]})]})}function tY(){let[Z,J]=P0.useState(null),[q,X]=P0.useState(null),[W,O]=P0.useState(!0),[F,L]=P0.useState(()=>Date.now()),{columns:k}=V0(),P=k-2,K=Math.min(P,80),N=sY.useCallback(async()=>{O(!0),X(null);try{J(await $J())}catch(H){N0(H),X(H instanceof Error?H.message:"Failed to load MiniMax usage")}finally{O(!1)}},[]);if(P0.useEffect(()=>{N()},[N]),P0.useEffect(()=>{let H=setInterval(()=>{L(Date.now())},lQ);return()=>clearInterval(H)},[]),l("settings:retry",()=>{N()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let z=Z.availability==="available"?_J(Z.snapshots):[];return D(U,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?D(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?Q(V,{dimColor:!0,children:Z.message}):z.length===0?Q(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,z.map((H,R)=>H.kind==="window"?Q(tQ,{label:H.label,usedPercent:H.usedPercent,resetsAt:H.resetsAt,extraSubtext:H.extraSubtext,maxWidth:K,nowMs:F},`${H.label}-${R}`):Q(eQ,{label:H.label,value:H.value},`${H.label}-${R}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var sY,P0,lQ=30000,oQ=18;var eY=p(()=>{v0();D0();w0();aY();QJ();f0();XJ();TJ();g();sY=$(s(),1),P0=$(s(),1)});function Jq({providerLabel:Z}){return D(U,{flexDirection:"column",gap:1,children:[D(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var Zq=p(()=>{D0();f0();g()});function Mq(Z){let J=cJ.c(34),{title:q,limit:X,maxWidth:W,showTimeInReset:O,extraSubtext:F}=Z,L=O===void 0?!0:O,{utilization:k,resets_at:P}=X;if(k===null)return null;let K=`${Math.floor(k)}% used`,N;if(P){let z;if(J[0]!==P||J[1]!==L)z=VJ(P,!0,L),J[0]=P,J[1]=L,J[2]=z;else z=J[2];N=`Resets ${z}`}if(F)if(N)N=`${F} · ${N}`;else N=F;if(W>=62){let z;if(J[3]!==q)z=Q(V,{bold:!0,children:q}),J[3]=q,J[4]=z;else z=J[4];let H=k/100,R;if(J[5]!==H)R=Q(R0,{ratio:H,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=H,J[6]=R;else R=J[6];let A;if(J[7]!==K)A=Q(V,{children:K}),J[7]=K,J[8]=A;else A=J[8];let B;if(J[9]!==R||J[10]!==A)B=D(U,{flexDirection:"row",gap:1,children:[R,A]}),J[9]=R,J[10]=A,J[11]=B;else B=J[11];let I;if(J[12]!==N)I=N&&Q(V,{dimColor:!0,children:N}),J[12]=N,J[13]=I;else I=J[13];let h;if(J[14]!==z||J[15]!==B||J[16]!==I)h=D(U,{flexDirection:"column",children:[z,B,I]}),J[14]=z,J[15]=B,J[16]=I,J[17]=h;else h=J[17];return h}else{let z;if(J[18]!==q)z=Q(V,{bold:!0,children:q}),J[18]=q,J[19]=z;else z=J[19];let H;if(J[20]!==N)H=N&&D(n,{children:[Q(V,{children:" "}),D(V,{dimColor:!0,children:["· ",N]})]}),J[20]=N,J[21]=H;else H=J[21];let R;if(J[22]!==z||J[23]!==H)R=D(V,{children:[z,H]}),J[22]=z,J[23]=H,J[24]=R;else R=J[24];let A=k/100,B;if(J[25]!==W||J[26]!==A)B=Q(R0,{ratio:A,width:W,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=W,J[26]=A,J[27]=B;else B=J[27];let I;if(J[28]!==K)I=Q(V,{children:K}),J[28]=K,J[29]=I;else I=J[29];let h;if(J[30]!==R||J[31]!==B||J[32]!==I)h=D(U,{flexDirection:"column",children:[R,B,I]}),J[30]=R,J[31]=B,J[32]=I,J[33]=h;else h=J[33];return h}}function VX(){let[Z,J]=z0.useState(null),[q,X]=z0.useState(null),[W,O]=z0.useState(!0),{columns:F}=V0(),L=F-2,k=Math.min(L,80),P=kq.useCallback(async()=>{O(!0),X(null);try{let H=await Nq();J(H)}catch(H){N0(H);let R=H,A=R.response?.data,B=R.response?.status,I;if(A?.error?.type==="rate_limit_error")I=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)I=A.error.message;else if(B)I=`HTTP ${B} — ${Dq(R.response?.data??{})}`;else I=H?.message||"Failed to load usage data";X(I)}finally{O(!1)}},[]);if(z0.useEffect(()=>{P()},[P]),l("settings:retry",()=>{P()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Could not load Anthropic rate-limit data: ",q]}),Q(V,{dimColor:!0,children:"(cost/usage totals above are unaffected)"}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=vJ(),N=K==="max"||K==="team"||K===null,z=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...N?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return D(U,{flexDirection:"column",gap:1,width:"100%",children:[z.some(({limit:H})=>H)||Q(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),z.map(({title:H,limit:R})=>R&&Q(Mq,{title:H,limit:R,maxWidth:k},H)),Z.extra_usage&&Q(WX,{extraUsage:Z.extra_usage,maxWidth:k}),Lq()&&Q(Pq,{maxWidth:k}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Yq(Z){let{title:J,totalCost:q,apiDuration:X,wallDuration:W,linesAdded:O,linesRemoved:F,modelUsage:L,unknownCost:k}=Z,P=Object.entries(L);if(q===0&&P.length===0&&O===0&&F===0)return null;let K={};for(let[z,H]of P){let R=zq(z);if(!K[R])K[R]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let A=K[R];A.inputTokens+=H.inputTokens,A.outputTokens+=H.outputTokens,A.cacheReadInputTokens+=H.cacheReadInputTokens,A.cacheCreationInputTokens+=H.cacheCreationInputTokens,A.webSearchRequests+=H.webSearchRequests,A.costUSD+=H.costUSD}let N=Object.entries(K);return D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:J}),D(V,{children:[Q(V,{children:"Total cost: "}),Q(V,{children:n0(q)}),k&&Q(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),D(V,{children:["Total duration (API): ",mJ(X)]}),D(V,{children:["Total duration (wall): ",mJ(W)]}),D(V,{children:["Total code changes: ",O," ",O===1?"line":"lines"," added, ",F," ",F===1?"line":"lines"," removed"]}),N.length>0&&Q(V,{children:"Usage by model:"}),N.map(([z,H])=>{let R=`${g0(H.inputTokens)} input, ${g0(H.outputTokens)} output`;if(H.cacheReadInputTokens>0)R+=`, ${g0(H.cacheReadInputTokens)} cache read`;if(H.cacheCreationInputTokens>0)R+=`, ${g0(H.cacheCreationInputTokens)} cache write`;if(H.webSearchRequests>0)R+=`, ${g0(H.webSearchRequests)} web search`;return R+=` (${n0(H.costUSD)})`,D(V,{children:[`${z}:`.padStart(21)," ",R]},z)})]})}function qq(Z={}){let J=Z.view??"global",[,q]=z0.useReducer((F)=>F+1,0);z0.useEffect(()=>{let F=setInterval(()=>q(),1000);return()=>clearInterval(F)},[]);let X=Kq();if(J==="session"){let F=Qq(),L=Hq(),k=Vq(),P=Wq();return Q(Yq,{title:"Current session",totalCost:F,apiDuration:Xq(),wallDuration:Gq(),linesAdded:k,linesRemoved:P,modelUsage:L,unknownCost:X})}let W=Fq();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return D(U,{flexDirection:"column",gap:1,children:[Q(Yq,{title:"Project total (all sessions)",totalCost:W.totalCost,apiDuration:W.totalAPIDuration,wallDuration:W.totalDuration,linesAdded:W.totalLinesAdded,linesRemoved:W.totalLinesRemoved,modelUsage:W.modelUsage,unknownCost:X}),Q(V,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function pJ(Z={}){if((Z.view??"global")==="session")return Q(U,{flexDirection:"column",gap:1,width:"100%",children:Q(qq,{view:"session"})});let q=Oq(),X;if(q==="codex")X=Q(mY,{});else if(q==="minimax")X=Q(tY,{});else if(q!=="firstParty"){let W={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";X=Q(Jq,{providerLabel:W})}else X=Q(VX,{});return D(U,{flexDirection:"column",gap:1,width:"100%",children:[Q(qq,{view:"global"}),X]})}function WX(Z){let J=cJ.c(20),{extraUsage:q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!q.is_enabled){if(Rq.isEnabled()){let S;if(J[0]===Symbol.for("react.memo_cache_sentinel"))S=D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:jJ}),Q(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=S;else S=J[0];return S}return null}if(q.monthly_limit===null){let S;if(J[1]===Symbol.for("react.memo_cache_sentinel"))S=D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:jJ}),Q(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=S;else S=J[1];return S}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let F=q.used_credits/100,L;if(J[2]!==F)L=n0(F,2),J[2]=F,J[3]=L;else L=J[3];let k=L,P=q.monthly_limit/100,K;if(J[4]!==P)K=n0(P,2),J[4]=P,J[5]=K;else K=J[5];let N=K,z,H,R,A;if(J[6]!==q.utilization){let S=new Date,d=new Date(S.getFullYear(),S.getMonth()+1,1);z=Mq,A=jJ,H=q.utilization,R=d.toISOString(),J[6]=q.utilization,J[7]=z,J[8]=H,J[9]=R,J[10]=A}else z=J[7],H=J[8],R=J[9],A=J[10];let B;if(J[11]!==H||J[12]!==R)B={utilization:H,resets_at:R},J[11]=H,J[12]=R,J[13]=B;else B=J[13];let I=`${k} / ${N} spent`,h;if(J[14]!==z||J[15]!==X||J[16]!==A||J[17]!==B||J[18]!==I)h=Q(z,{title:A,limit:B,showTimeInReset:!1,extraSubtext:I,maxWidth:X}),J[14]=z,J[15]=X,J[16]=A,J[17]=B,J[18]=I,J[19]=h;else h=J[19];return h}var cJ,kq,z0,jJ="Extra usage";var Aq=p(()=>{XX();qX();tZ();SJ();YX();v0();D0();w0();QX();SJ();QJ();ZX();JX();f0();XJ();TJ();GX();vY();eY();Zq();g();cJ=$(U0(),1),kq=$(s(),1),z0=$(s(),1)});function GW(Z){let J=fq.c(25),{onClose:q,context:X,defaultTab:W}=Z,[O,F]=k0.useState(W),[L,k]=k0.useState(!1),[P,K]=k0.useState(!1),[N,z]=k0.useState(!1),H=C0(),{rows:R}=Bq(V0()),A=H?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[B]=k0.useState(DX);Uq();let I;if(J[0]!==q||J[1]!==L)I=()=>{if(L)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=L,J[2]=I;else I=J[2];let h=I,S=!L&&!(O==="Config"&&P)&&!(O==="Gates"&&N),d;if(J[3]!==S)d={context:"Settings",isActive:S},J[3]=S,J[4]=d;else d=J[4];l("confirm:no",h,d);let t;if(J[5]!==X||J[6]!==B)t=Q(l0,{title:"Status",children:Q(NZ,{context:X,diagnosticsPromise:B})},"status"),J[5]=X,J[6]=B,J[7]=t;else t=J[7];let j;if(J[8]!==A||J[9]!==X||J[10]!==q)j=Q(l0,{title:"Config",children:Q(k0.Suspense,{fallback:null,children:Q(PY,{context:X,onClose:q,setTabsHidden:k,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=q,J[11]=j;else j=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Q(l0,{title:"Usage",children:Q(pJ,{view:"global"})},"usage"),Q(l0,{title:"Session",children:Q(pJ,{view:"session"})},"session")],J[12]=F0;else F0=J[12];let i;if(J[13]!==A)i=[],J[13]=A,J[14]=i;else i=J[14];let Y0;if(J[15]!==t||J[16]!==j||J[17]!==i)Y0=[t,j,...F0,...i],J[15]=t,J[16]=j,J[17]=i,J[18]=Y0;else Y0=J[18];let r=Y0,q0=W!=="Config"&&W!=="Gates",$0=L||H?void 0:A,I0;if(J[19]!==O||J[20]!==$0||J[21]!==q0||J[22]!==r||J[23]!==L)I0=Q(Iq,{color:"permission",children:Q(Eq,{color:"permission",selectedTab:O,onTabChange:F,hidden:L,initialHeaderFocused:q0,contentHeight:$0,children:r})}),J[19]=O,J[20]=$0,J[21]=q0,J[22]=r,J[23]=L,J[24]=I0;else I0=J[24];return I0}function DX(){return FZ().catch(OX)}function OX(){return[]}var fq,k0;var zX=p(()=>{w0();KX();v0();zJ();HX();DY();RZ();kY();Aq();g();fq=$(U0(),1),k0=$(s(),1)});
3
+ export{GW as Cf,zX as Df};