@claudiolabs/claudin 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (853) hide show
  1. package/dist/chunks/AgentTool-0.6.4-rbaf1y65.mjs +1 -0
  2. package/dist/chunks/App-0.6.4-rq289jnp.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.4-7d5f28j9.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.4-phb69d3e.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.4-9bf4j0dx.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.4-62rbe590.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.4-5xv95y7k.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.4-7ng7n8ac.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.4-ydwpx8jz.mjs +3 -0
  10. package/dist/chunks/Doctor-0.6.4-r3nh0zs5.mjs +1 -0
  11. package/dist/chunks/Grove-0.6.4-8mwvr7ha.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.6.4-w345qte9.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.6.4-e1xk1r00.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.6.4-7pz7en7r.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.6.4-xgqr16p1.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.6.4-2735sbgf.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.6.4-q840wtmd.mjs +1 -0
  18. package/dist/chunks/REPL-0.6.4-k1gbkvvz.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.6.4-mpzvada2.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.6.4-jctmc6zk.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.6.4-gq0hnh6t.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.6.4-21sqsahr.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.6.4-fjbh45wb.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.6.4-5w2x0jdm.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.6.4-5qd1qqs9.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.6.4-rj702s6d.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.6.4-wdg63cg4.mjs +1 -0
  28. package/dist/chunks/add-dir-0.6.4-kchsbt43.mjs +1 -0
  29. package/dist/chunks/agents-0.6.4-99qwf49d.mjs +110 -0
  30. package/dist/chunks/agents-0.6.4-rdvzbjcr.mjs +3 -0
  31. package/dist/chunks/api-0.6.4-9emwrek2.mjs +1 -0
  32. package/dist/chunks/asciicast-0.6.4-v9b43g5d.mjs +1 -0
  33. package/dist/chunks/assistant-0.6.4-f4m6fp3b.mjs +1 -0
  34. package/dist/chunks/auth-0.6.4-767mww9n.mjs +1 -0
  35. package/dist/chunks/auth-0.6.4-sgz2927j.mjs +1 -0
  36. package/dist/chunks/autoMode-0.6.4-n865xxhg.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.6.4-bvb6j5ck.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.6.4-fercqr2y.mjs +1 -0
  39. package/dist/chunks/branch-0.6.4-0hvhjqr5.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.6.4-dgames2b.mjs +1 -0
  41. package/dist/chunks/btw-0.6.4-fprrp4ch.mjs +1 -0
  42. package/dist/chunks/buddy-0.6.4-0d1rrwbv.mjs +3 -0
  43. package/dist/chunks/cacache-0.6.4-6yj2mrct.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.6.4-x5tn2a2e.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.6.4-ar55ww2f.mjs +4 -0
  46. package/dist/chunks/caches-0.6.4-54fb2qc2.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.6.4-h06j868n.mjs +1 -0
  48. package/dist/chunks/claudemd-0.6.4-35r4255p.mjs +1 -0
  49. package/dist/chunks/clear-0.6.4-6chw4mjb.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.6.4-81zcpvka.mjs +1 -0
  51. package/dist/chunks/cli-0.6.4-00191v0e.mjs +10 -0
  52. package/dist/chunks/cli-0.6.4-02v7f4p3.mjs +2 -0
  53. package/dist/chunks/cli-0.6.4-0gnhakty.mjs +42 -0
  54. package/dist/chunks/cli-0.6.4-0m6t3msa.mjs +2 -0
  55. package/dist/chunks/cli-0.6.4-0ngrseg8.mjs +15 -0
  56. package/dist/chunks/cli-0.6.4-167h8t8x.mjs +2 -0
  57. package/dist/chunks/cli-0.6.4-1ery4vpn.mjs +50 -0
  58. package/dist/chunks/cli-0.6.4-1k1e5y32.mjs +2 -0
  59. package/dist/chunks/cli-0.6.4-1mgm8ymv.mjs +3 -0
  60. package/dist/chunks/cli-0.6.4-1nzpzrfm.mjs +2 -0
  61. package/dist/chunks/cli-0.6.4-1qryxm4s.mjs +21 -0
  62. package/dist/chunks/cli-0.6.4-1s60014f.mjs +2 -0
  63. package/dist/chunks/cli-0.6.4-28pnb4ka.mjs +18 -0
  64. package/dist/chunks/cli-0.6.4-29860mke.mjs +2 -0
  65. package/dist/chunks/cli-0.6.4-2d65trmc.mjs +2 -0
  66. package/dist/chunks/cli-0.6.4-2dm4scsb.mjs +2 -0
  67. package/dist/chunks/cli-0.6.4-2dwdm1v9.mjs +2 -0
  68. package/dist/chunks/cli-0.6.4-2fqxn556.mjs +2 -0
  69. package/dist/chunks/cli-0.6.4-2mytx51g.mjs +16 -0
  70. package/dist/chunks/cli-0.6.4-2q70rra3.mjs +2 -0
  71. package/dist/chunks/cli-0.6.4-2qaa0gp3.mjs +2 -0
  72. package/dist/chunks/cli-0.6.4-2sh53v7p.mjs +7 -0
  73. package/dist/chunks/cli-0.6.4-2y7ay1jf.mjs +2 -0
  74. package/dist/chunks/cli-0.6.4-3d8syj43.mjs +15 -0
  75. package/dist/chunks/cli-0.6.4-3rqg480e.mjs +2 -0
  76. package/dist/chunks/cli-0.6.4-43y102gt.mjs +2 -0
  77. package/dist/chunks/cli-0.6.4-48fcth51.mjs +2 -0
  78. package/dist/chunks/cli-0.6.4-4b3h6h1j.mjs +2 -0
  79. package/dist/chunks/cli-0.6.4-4dtvmfyr.mjs +24 -0
  80. package/dist/chunks/cli-0.6.4-4g9qybcx.mjs +5324 -0
  81. package/dist/chunks/cli-0.6.4-4jc68p21.mjs +2 -0
  82. package/dist/chunks/cli-0.6.4-4mfc5kte.mjs +2 -0
  83. package/dist/chunks/cli-0.6.4-4qg60938.mjs +5 -0
  84. package/dist/chunks/cli-0.6.4-4qyz0e3r.mjs +2 -0
  85. package/dist/chunks/cli-0.6.4-55a83gct.mjs +2 -0
  86. package/dist/chunks/cli-0.6.4-5eshcq2g.mjs +2 -0
  87. package/dist/chunks/cli-0.6.4-5j8b83wg.mjs +2 -0
  88. package/dist/chunks/cli-0.6.4-6czv84g6.mjs +2 -0
  89. package/dist/chunks/cli-0.6.4-771h1906.mjs +2 -0
  90. package/dist/chunks/cli-0.6.4-78evvtpq.mjs +2 -0
  91. package/dist/chunks/cli-0.6.4-7djzrbzn.mjs +4 -0
  92. package/dist/chunks/cli-0.6.4-7htjg50k.mjs +2 -0
  93. package/dist/chunks/cli-0.6.4-7jvtehkv.mjs +2 -0
  94. package/dist/chunks/cli-0.6.4-7keg9eew.mjs +45 -0
  95. package/dist/chunks/cli-0.6.4-7xp2yhpq.mjs +2 -0
  96. package/dist/chunks/cli-0.6.4-89pes3g1.mjs +2 -0
  97. package/dist/chunks/cli-0.6.4-8jwbt311.mjs +4 -0
  98. package/dist/chunks/cli-0.6.4-95vk17cy.mjs +2 -0
  99. package/dist/chunks/cli-0.6.4-96m5w0az.mjs +2 -0
  100. package/dist/chunks/cli-0.6.4-9ab34q29.mjs +2 -0
  101. package/dist/chunks/cli-0.6.4-9j2480tb.mjs +3 -0
  102. package/dist/chunks/cli-0.6.4-9k5r0pfb.mjs +1 -0
  103. package/dist/chunks/cli-0.6.4-9wdpd5tf.mjs +2 -0
  104. package/dist/chunks/cli-0.6.4-9ydhssth.mjs +2 -0
  105. package/dist/chunks/cli-0.6.4-9z6f4aka.mjs +2 -0
  106. package/dist/chunks/cli-0.6.4-a1der2pe.mjs +2 -0
  107. package/dist/chunks/cli-0.6.4-a4wjm2rf.mjs +58 -0
  108. package/dist/chunks/cli-0.6.4-a7tb1zsc.mjs +3 -0
  109. package/dist/chunks/cli-0.6.4-aprgpdp6.mjs +2 -0
  110. package/dist/chunks/cli-0.6.4-bbsbw8kz.mjs +2 -0
  111. package/dist/chunks/cli-0.6.4-bgwzkgj9.mjs +2 -0
  112. package/dist/chunks/cli-0.6.4-btcax77x.mjs +2 -0
  113. package/dist/chunks/cli-0.6.4-bvrcy0gs.mjs +2 -0
  114. package/dist/chunks/cli-0.6.4-cgktpczq.mjs +2 -0
  115. package/dist/chunks/cli-0.6.4-cp53mw1m.mjs +2 -0
  116. package/dist/chunks/cli-0.6.4-cttwajrp.mjs +2 -0
  117. package/dist/chunks/cli-0.6.4-cxhs267r.mjs +2 -0
  118. package/dist/chunks/cli-0.6.4-cy7jqdcj.mjs +2 -0
  119. package/dist/chunks/cli-0.6.4-da88vvgh.mjs +2 -0
  120. package/dist/chunks/cli-0.6.4-dhyghbjg.mjs +2 -0
  121. package/dist/chunks/cli-0.6.4-dny0rntq.mjs +2 -0
  122. package/dist/chunks/cli-0.6.4-dtrjgbbz.mjs +2 -0
  123. package/dist/chunks/cli-0.6.4-dvh5yb9z.mjs +2 -0
  124. package/dist/chunks/cli-0.6.4-dz01y28k.mjs +133 -0
  125. package/dist/chunks/cli-0.6.4-dzer59m8.mjs +2 -0
  126. package/dist/chunks/cli-0.6.4-e0pqs0qg.mjs +4 -0
  127. package/dist/chunks/cli-0.6.4-e4nxzjbd.mjs +3 -0
  128. package/dist/chunks/cli-0.6.4-ehexec8h.mjs +2 -0
  129. package/dist/chunks/cli-0.6.4-ejrq8g7w.mjs +2 -0
  130. package/dist/chunks/cli-0.6.4-ekg42ba5.mjs +2 -0
  131. package/dist/chunks/cli-0.6.4-em2mfvpg.mjs +193 -0
  132. package/dist/chunks/cli-0.6.4-ex2d76ze.mjs +4 -0
  133. package/dist/chunks/cli-0.6.4-eykta4ak.mjs +2 -0
  134. package/dist/chunks/cli-0.6.4-f1ya630v.mjs +39 -0
  135. package/dist/chunks/cli-0.6.4-f51bqfv1.mjs +4 -0
  136. package/dist/chunks/cli-0.6.4-fg71wev8.mjs +2 -0
  137. package/dist/chunks/cli-0.6.4-fh1fzqd2.mjs +133 -0
  138. package/dist/chunks/cli-0.6.4-fhcsv0k7.mjs +2 -0
  139. package/dist/chunks/cli-0.6.4-fppw8yjy.mjs +2 -0
  140. package/dist/chunks/cli-0.6.4-g1kweb8j.mjs +17 -0
  141. package/dist/chunks/cli-0.6.4-g1qw18ad.mjs +2 -0
  142. package/dist/chunks/cli-0.6.4-g2a0w8wh.mjs +3 -0
  143. package/dist/chunks/cli-0.6.4-g37ywszt.mjs +2 -0
  144. package/dist/chunks/cli-0.6.4-gbc9szsq.mjs +20 -0
  145. package/dist/chunks/cli-0.6.4-gdvys9qy.mjs +2 -0
  146. package/dist/chunks/cli-0.6.4-ge6qg76s.mjs +18 -0
  147. package/dist/chunks/cli-0.6.4-ggxbtbd1.mjs +2 -0
  148. package/dist/chunks/cli-0.6.4-ghagvvva.mjs +2 -0
  149. package/dist/chunks/cli-0.6.4-gyb3cp0m.mjs +15 -0
  150. package/dist/chunks/cli-0.6.4-h2c5gxa3.mjs +2 -0
  151. package/dist/chunks/cli-0.6.4-h598qtx2.mjs +2 -0
  152. package/dist/chunks/cli-0.6.4-h9ncym59.mjs +2 -0
  153. package/dist/chunks/cli-0.6.4-hb3rny4x.mjs +3 -0
  154. package/dist/chunks/cli-0.6.4-hhaw00mw.mjs +2 -0
  155. package/dist/chunks/cli-0.6.4-hk0wy6ay.mjs +2 -0
  156. package/dist/chunks/cli-0.6.4-hrs590q0.mjs +2 -0
  157. package/dist/chunks/cli-0.6.4-hx250zvn.mjs +2 -0
  158. package/dist/chunks/cli-0.6.4-j61ta5y1.mjs +2 -0
  159. package/dist/chunks/cli-0.6.4-j7hr5rd4.mjs +2 -0
  160. package/dist/chunks/cli-0.6.4-jc2r75s6.mjs +2 -0
  161. package/dist/chunks/cli-0.6.4-jg4xm27s.mjs +2 -0
  162. package/dist/chunks/cli-0.6.4-jh0d8t91.mjs +9 -0
  163. package/dist/chunks/cli-0.6.4-jk0aqvhn.mjs +2 -0
  164. package/dist/chunks/cli-0.6.4-jmvxa7qj.mjs +2 -0
  165. package/dist/chunks/cli-0.6.4-jn11nc5a.mjs +2 -0
  166. package/dist/chunks/cli-0.6.4-jra8pavs.mjs +2 -0
  167. package/dist/chunks/cli-0.6.4-jrweqe5y.mjs +2 -0
  168. package/dist/chunks/cli-0.6.4-jvfz5yaf.mjs +2 -0
  169. package/dist/chunks/cli-0.6.4-k2azfhje.mjs +12 -0
  170. package/dist/chunks/cli-0.6.4-k498jsqp.mjs +9 -0
  171. package/dist/chunks/cli-0.6.4-k6a4gc0p.mjs +3 -0
  172. package/dist/chunks/cli-0.6.4-k76c1cdx.mjs +2 -0
  173. package/dist/chunks/cli-0.6.4-kkwh828j.mjs +2 -0
  174. package/dist/chunks/cli-0.6.4-ksf3bj49.mjs +2 -0
  175. package/dist/chunks/cli-0.6.4-kygb95p8.mjs +2 -0
  176. package/dist/chunks/cli-0.6.4-m0b0hm20.mjs +2 -0
  177. package/dist/chunks/cli-0.6.4-n3wmzz8w.mjs +2 -0
  178. package/dist/chunks/cli-0.6.4-n9mgjg26.mjs +2 -0
  179. package/dist/chunks/cli-0.6.4-nscxc6w9.mjs +2 -0
  180. package/dist/chunks/cli-0.6.4-p1yyrrqa.mjs +2 -0
  181. package/dist/chunks/cli-0.6.4-p56yx5pd.mjs +3 -0
  182. package/dist/chunks/cli-0.6.4-p7mvm2y6.mjs +5 -0
  183. package/dist/chunks/cli-0.6.4-pd75v1wy.mjs +6 -0
  184. package/dist/chunks/cli-0.6.4-pg577m2t.mjs +18 -0
  185. package/dist/chunks/cli-0.6.4-pjk8hxs1.mjs +4 -0
  186. package/dist/chunks/cli-0.6.4-pp4r33sa.mjs +4 -0
  187. package/dist/chunks/cli-0.6.4-pqdfmet2.mjs +4 -0
  188. package/dist/chunks/cli-0.6.4-prdj94yp.mjs +4 -0
  189. package/dist/chunks/cli-0.6.4-prv34fmj.mjs +2 -0
  190. package/dist/chunks/cli-0.6.4-q45r4rnd.mjs +2 -0
  191. package/dist/chunks/cli-0.6.4-qcpjz3yn.mjs +2 -0
  192. package/dist/chunks/cli-0.6.4-qxhfaxsk.mjs +2 -0
  193. package/dist/chunks/cli-0.6.4-rdtbn65d.mjs +2 -0
  194. package/dist/chunks/cli-0.6.4-rf4gtxa6.mjs +2 -0
  195. package/dist/chunks/cli-0.6.4-rqmfmwew.mjs +4 -0
  196. package/dist/chunks/cli-0.6.4-rw4dqk3e.mjs +2 -0
  197. package/dist/chunks/cli-0.6.4-s062axqp.mjs +67 -0
  198. package/dist/chunks/cli-0.6.4-sebyspe3.mjs +2 -0
  199. package/dist/chunks/cli-0.6.4-sg59x1y7.mjs +2 -0
  200. package/dist/chunks/cli-0.6.4-sk4r23n0.mjs +2 -0
  201. package/dist/chunks/cli-0.6.4-spysehd5.mjs +2 -0
  202. package/dist/chunks/cli-0.6.4-sz5jkrwv.mjs +8 -0
  203. package/dist/chunks/cli-0.6.4-t13eh9gb.mjs +2 -0
  204. package/dist/chunks/cli-0.6.4-t87tgqs2.mjs +2 -0
  205. package/dist/chunks/cli-0.6.4-tda6fzwk.mjs +2 -0
  206. package/dist/chunks/cli-0.6.4-tgtxrvzn.mjs +3 -0
  207. package/dist/chunks/cli-0.6.4-ttyv846t.mjs +2 -0
  208. package/dist/chunks/cli-0.6.4-v050kzdd.mjs +2 -0
  209. package/dist/chunks/cli-0.6.4-v2fsc12w.mjs +2 -0
  210. package/dist/chunks/cli-0.6.4-v3ym5bjk.mjs +2 -0
  211. package/dist/chunks/cli-0.6.4-vawbj80d.mjs +5 -0
  212. package/dist/chunks/cli-0.6.4-vekd5qeh.mjs +3 -0
  213. package/dist/chunks/cli-0.6.4-vg82smm8.mjs +24 -0
  214. package/dist/chunks/cli-0.6.4-vyqg6c95.mjs +3 -0
  215. package/dist/chunks/cli-0.6.4-vyyncn9y.mjs +34 -0
  216. package/dist/chunks/cli-0.6.4-wpzc8xj5.mjs +3 -0
  217. package/dist/chunks/cli-0.6.4-x0pe866a.mjs +2 -0
  218. package/dist/chunks/cli-0.6.4-x3pc9zn1.mjs +6 -0
  219. package/dist/chunks/cli-0.6.4-x6d6qxpg.mjs +2 -0
  220. package/dist/chunks/cli-0.6.4-x6npewbm.mjs +6 -0
  221. package/dist/chunks/cli-0.6.4-x7ss8dse.mjs +2 -0
  222. package/dist/chunks/cli-0.6.4-x84dfqja.mjs +2 -0
  223. package/dist/chunks/cli-0.6.4-xf6vdp7p.mjs +2 -0
  224. package/dist/chunks/cli-0.6.4-xgmmcr56.mjs +25 -0
  225. package/dist/chunks/cli-0.6.4-xh0mhy0q.mjs +2 -0
  226. package/dist/chunks/cli-0.6.4-xj949nnt.mjs +2 -0
  227. package/dist/chunks/cli-0.6.4-xm44y40c.mjs +2 -0
  228. package/dist/chunks/cli-0.6.4-y9nrcnx6.mjs +2 -0
  229. package/dist/chunks/cli-0.6.4-yak49q2f.mjs +12 -0
  230. package/dist/chunks/cli-0.6.4-ymgdd6a7.mjs +2 -0
  231. package/dist/chunks/cli-0.6.4-yrfkm9my.mjs +2 -0
  232. package/dist/chunks/cli-0.6.4-ysvx8vre.mjs +12 -0
  233. package/dist/chunks/cli-0.6.4-yxqfeka0.mjs +2 -0
  234. package/dist/chunks/cli-0.6.4-z0j0rsqe.mjs +2 -0
  235. package/dist/chunks/cli-0.6.4-z3hp0qzv.mjs +59 -0
  236. package/dist/chunks/cli-0.6.4-z63xq66c.mjs +2 -0
  237. package/dist/chunks/cli-0.6.4-zgzya3hb.mjs +17 -0
  238. package/dist/chunks/cli-0.6.4-zkfpt86n.mjs +2 -0
  239. package/dist/chunks/cli-0.6.4-zss3bwjp.mjs +2 -0
  240. package/dist/chunks/cli-0.6.4-ztqssjbf.mjs +2 -0
  241. package/dist/chunks/client-0.6.4-ba2mtgjd.mjs +1 -0
  242. package/dist/chunks/color-0.6.4-2g7drx0s.mjs +1 -0
  243. package/dist/chunks/compact-0.6.4-tnqd9mmn.mjs +3 -0
  244. package/dist/chunks/config-0.6.4-3bhr23pq.mjs +1 -0
  245. package/dist/chunks/config-0.6.4-x56wgtde.mjs +1 -0
  246. package/dist/chunks/constants-0.6.4-cy9scgrh.mjs +1 -0
  247. package/dist/chunks/context-0.6.4-sjcg7yxa.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.6.4-630bqrtn.mjs +1 -0
  249. package/dist/chunks/conversation-0.6.4-4wkb13gm.mjs +1 -0
  250. package/dist/chunks/copilotHeaders-0.6.4-6ygmq0rm.mjs +1 -0
  251. package/dist/chunks/copy-0.6.4-bgxrhckq.mjs +9 -0
  252. package/dist/chunks/cost-0.6.4-w83wc8ng.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.6.4-xcjsx731.mjs +1 -0
  254. package/dist/chunks/createSession-0.6.4-wsz3r56j.mjs +1 -0
  255. package/dist/chunks/debug-0.6.4-98yk6kds.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.6.4-gnr6f4bm.mjs +1365 -0
  257. package/dist/chunks/desktop-0.6.4-hpbrkj08.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.6.4-jtg1wvsa.mjs +1 -0
  259. package/dist/chunks/detection-0.6.4-dqwz1bq1.mjs +1 -0
  260. package/dist/chunks/diff-0.6.4-6mtph9me.mjs +1 -0
  261. package/dist/chunks/doctor-0.6.4-rhc37adv.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.6.4-dwt35xp9.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.6.4-gwc98r30.mjs +1 -0
  264. package/dist/chunks/effort-0.6.4-gat4neps.mjs +10 -0
  265. package/dist/chunks/envUtils-0.6.4-y2b3abdc.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.6.4-xxrzk7m6.mjs +1 -0
  267. package/dist/chunks/environments-0.6.4-h1v61wzy.mjs +1 -0
  268. package/dist/chunks/errors-0.6.4-ca74wb6q.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.6.4-g36htc09.mjs +1 -0
  270. package/dist/chunks/exit-0.6.4-z7yj01cx.mjs +1 -0
  271. package/dist/chunks/export-0.6.4-ffzrse4n.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.6.4-d23skk9c.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.6.4-0akfkh19.mjs +1 -0
  274. package/dist/chunks/fast-0.6.4-dy9ew4g1.mjs +1 -0
  275. package/dist/chunks/feedback-0.6.4-5pw5kr6j.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.6.4-58n8gvjr.mjs +1 -0
  277. package/dist/chunks/git-0.6.4-5p9es5sh.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.6.4-c75tjtm6.mjs +1 -0
  279. package/dist/chunks/goal-0.6.4-05yfbtf5.mjs +4 -0
  280. package/dist/chunks/grove-0.6.4-3mxw3jbp.mjs +1 -0
  281. package/dist/chunks/growthbook-0.6.4-w1a2ja8q.mjs +1 -0
  282. package/dist/chunks/headless-0.6.4-1b8pxyk6.mjs +2 -0
  283. package/dist/chunks/heapdump-0.6.4-ckft18df.mjs +6 -0
  284. package/dist/chunks/help-0.6.4-1qswzq2t.mjs +1 -0
  285. package/dist/chunks/hookChains-0.6.4-mc6w2yn4.mjs +3 -0
  286. package/dist/chunks/hooks-0.6.4-zqycdaww.mjs +1 -0
  287. package/dist/chunks/hooks-0.6.4-zw8ak2ae.mjs +79 -0
  288. package/dist/chunks/ide-0.6.4-kjaythhf.mjs +3 -0
  289. package/dist/chunks/image-processor-napi-0.6.4-9n32xq4y.mjs +1 -0
  290. package/dist/chunks/index-0.6.4-1eqjmyfc.mjs +1 -0
  291. package/dist/chunks/index-0.6.4-5x2zgy8s.mjs +1 -0
  292. package/dist/chunks/index-0.6.4-6er8ykqb.mjs +1 -0
  293. package/dist/chunks/index-0.6.4-6z8pdxeg.mjs +1 -0
  294. package/dist/chunks/index-0.6.4-8gxkz67a.mjs +1 -0
  295. package/dist/chunks/index-0.6.4-ay6td6v7.mjs +1 -0
  296. package/dist/chunks/index-0.6.4-bf4fb2rv.mjs +1 -0
  297. package/dist/chunks/index-0.6.4-cs4qnyse.mjs +9 -0
  298. package/dist/chunks/index-0.6.4-d8a7z3cd.mjs +1 -0
  299. package/dist/chunks/index-0.6.4-e1xb3q84.mjs +1 -0
  300. package/dist/chunks/index-0.6.4-fapqkd13.mjs +30 -0
  301. package/dist/chunks/index-0.6.4-fsypm1g5.mjs +1 -0
  302. package/dist/chunks/index-0.6.4-j1dpgmwz.mjs +5 -0
  303. package/dist/chunks/index-0.6.4-k5z3btpk.mjs +1 -0
  304. package/dist/chunks/index-0.6.4-kv8v270h.mjs +1 -0
  305. package/dist/chunks/index-0.6.4-nn5ynnfb.mjs +2 -0
  306. package/dist/chunks/index-0.6.4-np003dn4.mjs +2 -0
  307. package/dist/chunks/index-0.6.4-qtcndy07.mjs +1 -0
  308. package/dist/chunks/index-0.6.4-s0gg7sga.mjs +1 -0
  309. package/dist/chunks/index-0.6.4-scbwf11t.mjs +9 -0
  310. package/dist/chunks/index-0.6.4-sqrhv68x.mjs +17 -0
  311. package/dist/chunks/index-0.6.4-w93mdh3w.mjs +1 -0
  312. package/dist/chunks/init-0.6.4-ccs2p8cg.mjs +1 -0
  313. package/dist/chunks/initReplBridge-0.6.4-7cnffgw6.mjs +1 -0
  314. package/dist/chunks/ink-0.6.4-kv9v236j.mjs +1 -0
  315. package/dist/chunks/insights-0.6.4-v475bskf.mjs +870 -0
  316. package/dist/chunks/install-0.6.4-9x6x6d7w.mjs +1 -0
  317. package/dist/chunks/install-github-app-0.6.4-e0hnh1ac.mjs +149 -0
  318. package/dist/chunks/install-slack-app-0.6.4-5m1bq4zr.mjs +1 -0
  319. package/dist/chunks/instrumentation-0.6.4-j0dm5kvt.mjs +1 -0
  320. package/dist/chunks/interactiveHelpers-0.6.4-trjfh09v.mjs +1 -0
  321. package/dist/chunks/keybindings-0.6.4-52xyg2q7.mjs +2 -0
  322. package/dist/chunks/knowledge-0.6.4-3pd8yspr.mjs +2 -0
  323. package/dist/chunks/latestVersionCache-0.6.4-6nv1r43c.mjs +1 -0
  324. package/dist/chunks/loadAgentsDir-0.6.4-2f1egc65.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.6.4-6bdefjx0.mjs +1 -0
  326. package/dist/chunks/loadPluginHooks-0.6.4-jg6hn8q1.mjs +1 -0
  327. package/dist/chunks/log-0.6.4-byx1v0aw.mjs +1 -0
  328. package/dist/chunks/main-0.6.4-7kgs4wzg.mjs +1 -0
  329. package/dist/chunks/managedEnv-0.6.4-seg7a473.mjs +1 -0
  330. package/dist/chunks/mcp-0.6.4-fme3jax5.mjs +17 -0
  331. package/dist/chunks/mcp-0.6.4-gw2k9j0s.mjs +4 -0
  332. package/dist/chunks/mcp-0.6.4-hz4ymzf8.mjs +1 -0
  333. package/dist/chunks/mcpb-0.6.4-rm87xg1m.mjs +1 -0
  334. package/dist/chunks/memory-0.6.4-hdem4rfy.mjs +3 -0
  335. package/dist/chunks/mobile-0.6.4-xga427dx.mjs +2 -0
  336. package/dist/chunks/model-0.6.4-e7swq7hs.mjs +1 -0
  337. package/dist/chunks/model-0.6.4-raaz0pn8.mjs +2 -0
  338. package/dist/chunks/node-0.6.4-2mhf46p7.mjs +12 -0
  339. package/dist/chunks/oauth-0.6.4-de05kmr6.mjs +1 -0
  340. package/dist/chunks/openaiShim-0.6.4-shaa1wsv.mjs +14 -0
  341. package/dist/chunks/output-style-0.6.4-gfd6r8hz.mjs +1 -0
  342. package/dist/chunks/package-D6422PQU-0.6.4-syh17p64.mjs +1 -0
  343. package/dist/chunks/parseConnectUrl-0.6.4-k2eex22j.mjs +1 -0
  344. package/dist/chunks/parser-0.6.4-43t4x7r9.mjs +1 -0
  345. package/dist/chunks/passes-0.6.4-tbj019p0.mjs +1 -0
  346. package/dist/chunks/permissions-0.6.4-d0fw76d7.mjs +3 -0
  347. package/dist/chunks/plan-0.6.4-084fq0kq.mjs +1 -0
  348. package/dist/chunks/plist-0.6.4-439zn1sw.mjs +1 -0
  349. package/dist/chunks/plugin-0.6.4-mnsbmvwr.mjs +29 -0
  350. package/dist/chunks/pluginStartupCheck-0.6.4-t2kn51a4.mjs +1 -0
  351. package/dist/chunks/plugins-0.6.4-630t2jf7.mjs +9 -0
  352. package/dist/chunks/preActionHook-0.6.4-gfadf2sk.mjs +2 -0
  353. package/dist/chunks/print-0.6.4-pw4vrnzd.mjs +57 -0
  354. package/dist/chunks/privacy-settings-0.6.4-b97bep23.mjs +1 -0
  355. package/dist/chunks/process-0.6.4-yewqx1g2.mjs +1 -0
  356. package/dist/chunks/processBashCommand-0.6.4-64reh5jq.mjs +1 -0
  357. package/dist/chunks/processSlashCommand-0.6.4-46w7k3kw.mjs +9 -0
  358. package/dist/chunks/prompt-0.6.4-1dfbspxp.mjs +1 -0
  359. package/dist/chunks/prompt-0.6.4-ax8j0qse.mjs +1 -0
  360. package/dist/chunks/prompts-0.6.4-avjtc7j4.mjs +1 -0
  361. package/dist/chunks/protocolHandler-0.6.4-z0382sns.mjs +13 -0
  362. package/dist/chunks/provider-0.6.4-dww4c5j2.mjs +2 -0
  363. package/dist/chunks/providerProfiles-0.6.4-phwwz4cg.mjs +1 -0
  364. package/dist/chunks/providerValidation-0.6.4-zctdw7r7.mjs +6 -0
  365. package/dist/chunks/rate-limit-options-0.6.4-sydaxbv7.mjs +1 -0
  366. package/dist/chunks/registerSubcommands-0.6.4-ejhhvkd5.mjs +34 -0
  367. package/dist/chunks/registry-0.6.4-kb0x4rx3.mjs +1 -0
  368. package/dist/chunks/release-notes-0.6.4-es6sgycw.mjs +5 -0
  369. package/dist/chunks/reload-plugins-0.6.4-z5560vpf.mjs +2 -0
  370. package/dist/chunks/remote-env-0.6.4-6ypd7mgt.mjs +1 -0
  371. package/dist/chunks/remoteBridgeCore-0.6.4-r2nre1by.mjs +1 -0
  372. package/dist/chunks/remoteSession-0.6.4-jhazvxam.mjs +1 -0
  373. package/dist/chunks/rename-0.6.4-wnm225zc.mjs +1 -0
  374. package/dist/chunks/replBridgeHandle-0.6.4-90waxyt2.mjs +1 -0
  375. package/dist/chunks/replLauncher-0.6.4-fqvqymes.mjs +1 -0
  376. package/dist/chunks/resume-0.6.4-2edgjvxb.mjs +2 -0
  377. package/dist/chunks/rewind-0.6.4-43tzjabn.mjs +1 -0
  378. package/dist/chunks/rootOptions-0.6.4-efwh7nb7.mjs +1 -0
  379. package/dist/chunks/sandbox-adapter-0.6.4-7ccq9g0r.mjs +1 -0
  380. package/dist/chunks/sandbox-toggle-0.6.4-ca6p1txa.mjs +1 -0
  381. package/dist/chunks/session-0.6.4-xqz0b6bv.mjs +2 -0
  382. package/dist/chunks/sessionDiscovery-0.6.4-zhn2re2r.mjs +1 -0
  383. package/dist/chunks/sessionFileAccessHooks-0.6.4-0s8vv82b.mjs +1 -0
  384. package/dist/chunks/sessionStorage-0.6.4-k27431kx.mjs +1 -0
  385. package/dist/chunks/settings-0.6.4-xg6qae4k.mjs +1 -0
  386. package/dist/chunks/setup-0.6.4-zc0wstra.mjs +5 -0
  387. package/dist/chunks/sinks-0.6.4-3rycgm4d.mjs +1 -0
  388. package/dist/chunks/skills-0.6.4-jwf0fht6.mjs +1 -0
  389. package/dist/chunks/startupProfiler-0.6.4-6c1wp85a.mjs +1 -0
  390. package/dist/chunks/startupUpdateCheck-0.6.4-xqbvq5b5.mjs +1 -0
  391. package/dist/chunks/state-0.6.4-p0ddysh2.mjs +1 -0
  392. package/dist/chunks/stats-0.6.4-hys6q4f4.mjs +6 -0
  393. package/dist/chunks/status-0.6.4-5f8q60ey.mjs +1 -0
  394. package/dist/chunks/stickers-0.6.4-tftjq5eh.mjs +1 -0
  395. package/dist/chunks/subprocessEnv-0.6.4-gz5jdaaq.mjs +1 -0
  396. package/dist/chunks/tasks-0.6.4-s9qwaetv.mjs +1 -0
  397. package/dist/chunks/teamHelpers-0.6.4-h72qp38f.mjs +1 -0
  398. package/dist/chunks/teammateModeSnapshot-0.6.4-ezcvghhw.mjs +1 -0
  399. package/dist/chunks/teleport-0.6.4-e668czw7.mjs +1 -0
  400. package/dist/chunks/terminalSetup-0.6.4-53azbkac.mjs +1 -0
  401. package/dist/chunks/theme-0.6.4-zhw8bpdv.mjs +1 -0
  402. package/dist/chunks/thinkback-0.6.4-cpckywc7.mjs +1 -0
  403. package/dist/chunks/thinkback-play-0.6.4-ke47vrva.mjs +1 -0
  404. package/dist/chunks/toolPool-0.6.4-whn705s5.mjs +1 -0
  405. package/dist/chunks/toolSearch-0.6.4-80h4rrgj.mjs +1 -0
  406. package/dist/chunks/tools-0.6.4-4kf64373.mjs +1 -0
  407. package/dist/chunks/trustedDevice-0.6.4-zbvda07m.mjs +1 -0
  408. package/dist/chunks/turndown.cjs-0.6.4-ghgzppms.mjs +69 -0
  409. package/dist/chunks/ultrareviewCommand-0.6.4-r028gcax.mjs +4 -0
  410. package/dist/chunks/update-0.6.4-a233wpzj.mjs +86 -0
  411. package/dist/chunks/upgrade-0.6.4-mx4jnstf.mjs +1 -0
  412. package/dist/chunks/upstreamproxy-0.6.4-4cmr0qtj.mjs +14 -0
  413. package/dist/chunks/url-handler-napi-0.6.4-vt0a3wdc.mjs +1 -0
  414. package/dist/chunks/usage-0.6.4-8kncs1zq.mjs +1 -0
  415. package/dist/chunks/util-0.6.4-afjsm52j.mjs +1 -0
  416. package/dist/chunks/utils-0.6.4-r5qbctxg.mjs +1 -0
  417. package/dist/chunks/vim-0.6.4-qb1hpv1s.mjs +1 -0
  418. package/dist/chunks/watcher-0.6.4-w81paz2g.mjs +1 -0
  419. package/dist/chunks/wiki-0.6.4-3wc3s65f.mjs +132 -0
  420. package/dist/chunks/worktree-0.6.4-hy75224j.mjs +1 -0
  421. package/dist/chunks/worktreeModeEnabled-0.6.4-7wyg7p08.mjs +1 -0
  422. package/dist/chunks/wrapper-0.6.4-vqj09efm.mjs +7 -0
  423. package/dist/claudin-vscode.vsix +0 -0
  424. package/dist/cli.mjs +2 -2
  425. package/package.json +1 -1
  426. package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +0 -1
  427. package/dist/chunks/App-0.6.2-81hq55t1.mjs +0 -1
  428. package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +0 -1
  429. package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +0 -1
  430. package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +0 -1
  431. package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +0 -1
  432. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +0 -1
  433. package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +0 -1
  434. package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +0 -3
  435. package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +0 -1
  436. package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +0 -1
  437. package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +0 -1
  438. package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +0 -1
  439. package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +0 -1
  440. package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +0 -1
  441. package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +0 -1
  442. package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +0 -1
  443. package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +0 -1
  444. package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +0 -1
  445. package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +0 -1
  446. package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +0 -1
  447. package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +0 -1
  448. package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +0 -1
  449. package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +0 -9
  450. package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +0 -1
  451. package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +0 -1
  452. package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +0 -1
  453. package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +0 -1
  454. package/dist/chunks/agents-0.6.2-pwkawpda.mjs +0 -110
  455. package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +0 -3
  456. package/dist/chunks/api-0.6.2-r9z30232.mjs +0 -1
  457. package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +0 -1
  458. package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +0 -1
  459. package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +0 -1
  460. package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +0 -1
  461. package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +0 -48
  462. package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +0 -1
  463. package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +0 -1
  464. package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +0 -4
  465. package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +0 -1
  466. package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +0 -1
  467. package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +0 -3
  468. package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +0 -1
  469. package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +0 -21
  470. package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +0 -4
  471. package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +0 -1
  472. package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +0 -1
  473. package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +0 -1
  474. package/dist/chunks/clear-0.6.2-301n503a.mjs +0 -1
  475. package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +0 -1
  476. package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +0 -42
  477. package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +0 -4
  478. package/dist/chunks/cli-0.6.2-0p39svq8.mjs +0 -2
  479. package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +0 -2
  480. package/dist/chunks/cli-0.6.2-1ahapm20.mjs +0 -2
  481. package/dist/chunks/cli-0.6.2-1b9hx344.mjs +0 -2
  482. package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +0 -2
  483. package/dist/chunks/cli-0.6.2-1hrabb68.mjs +0 -3
  484. package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +0 -9
  485. package/dist/chunks/cli-0.6.2-1y907j57.mjs +0 -2
  486. package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +0 -2
  487. package/dist/chunks/cli-0.6.2-26qywcgz.mjs +0 -2
  488. package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +0 -2
  489. package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +0 -3
  490. package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +0 -2
  491. package/dist/chunks/cli-0.6.2-2z19ppek.mjs +0 -15
  492. package/dist/chunks/cli-0.6.2-334vw6ys.mjs +0 -2
  493. package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +0 -2
  494. package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +0 -2
  495. package/dist/chunks/cli-0.6.2-3rgtxc9f.mjs +0 -2
  496. package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +0 -2
  497. package/dist/chunks/cli-0.6.2-42d88f3r.mjs +0 -2
  498. package/dist/chunks/cli-0.6.2-43f0sknv.mjs +0 -2
  499. package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +0 -2
  500. package/dist/chunks/cli-0.6.2-4a5t390f.mjs +0 -2
  501. package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +0 -15
  502. package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +0 -2
  503. package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +0 -39
  504. package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +0 -5323
  505. package/dist/chunks/cli-0.6.2-4py7r63v.mjs +0 -2
  506. package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +0 -59
  507. package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +0 -2
  508. package/dist/chunks/cli-0.6.2-5jempndm.mjs +0 -133
  509. package/dist/chunks/cli-0.6.2-657fbmws.mjs +0 -2
  510. package/dist/chunks/cli-0.6.2-6bacgc39.mjs +0 -3
  511. package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +0 -5
  512. package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +0 -2
  513. package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +0 -3
  514. package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +0 -3
  515. package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +0 -4
  516. package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +0 -2
  517. package/dist/chunks/cli-0.6.2-7egesyh9.mjs +0 -4
  518. package/dist/chunks/cli-0.6.2-7rmm482v.mjs +0 -12
  519. package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +0 -2
  520. package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +0 -25
  521. package/dist/chunks/cli-0.6.2-83ennmm8.mjs +0 -21
  522. package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +0 -2
  523. package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +0 -5
  524. package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +0 -10
  525. package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +0 -2
  526. package/dist/chunks/cli-0.6.2-974c5e67.mjs +0 -9
  527. package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +0 -2
  528. package/dist/chunks/cli-0.6.2-9mwrq250.mjs +0 -3
  529. package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +0 -2
  530. package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +0 -2
  531. package/dist/chunks/cli-0.6.2-9qtj477e.mjs +0 -2
  532. package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +0 -2
  533. package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +0 -4
  534. package/dist/chunks/cli-0.6.2-a8atyp18.mjs +0 -2
  535. package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +0 -2
  536. package/dist/chunks/cli-0.6.2-aq30pg47.mjs +0 -2
  537. package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +0 -6
  538. package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +0 -2
  539. package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +0 -2
  540. package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +0 -2
  541. package/dist/chunks/cli-0.6.2-bkff60ff.mjs +0 -2
  542. package/dist/chunks/cli-0.6.2-br678d1b.mjs +0 -8
  543. package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +0 -2
  544. package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +0 -2
  545. package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +0 -2
  546. package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +0 -4
  547. package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +0 -2
  548. package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +0 -2
  549. package/dist/chunks/cli-0.6.2-d3evezft.mjs +0 -1
  550. package/dist/chunks/cli-0.6.2-d3y2w089.mjs +0 -2
  551. package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +0 -2
  552. package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +0 -12
  553. package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +0 -2
  554. package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +0 -2
  555. package/dist/chunks/cli-0.6.2-dv8abe56.mjs +0 -7
  556. package/dist/chunks/cli-0.6.2-dx6qfese.mjs +0 -2
  557. package/dist/chunks/cli-0.6.2-dy4zwces.mjs +0 -2
  558. package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +0 -2
  559. package/dist/chunks/cli-0.6.2-e26khw0m.mjs +0 -6
  560. package/dist/chunks/cli-0.6.2-e66qz53g.mjs +0 -2
  561. package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +0 -16
  562. package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +0 -45
  563. package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +0 -5
  564. package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +0 -2
  565. package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +0 -2
  566. package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +0 -2
  567. package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +0 -2
  568. package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +0 -2
  569. package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +0 -6
  570. package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +0 -2
  571. package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +0 -2
  572. package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +0 -2
  573. package/dist/chunks/cli-0.6.2-grf75vb7.mjs +0 -2
  574. package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +0 -2
  575. package/dist/chunks/cli-0.6.2-h72p44ws.mjs +0 -24
  576. package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +0 -2
  577. package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +0 -193
  578. package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +0 -2
  579. package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +0 -2
  580. package/dist/chunks/cli-0.6.2-hqmcear6.mjs +0 -2
  581. package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +0 -34
  582. package/dist/chunks/cli-0.6.2-j05kmd43.mjs +0 -2
  583. package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +0 -2
  584. package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +0 -2
  585. package/dist/chunks/cli-0.6.2-jrb4f391.mjs +0 -15
  586. package/dist/chunks/cli-0.6.2-jrpted0b.mjs +0 -2
  587. package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +0 -2
  588. package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +0 -2
  589. package/dist/chunks/cli-0.6.2-k9v931hm.mjs +0 -2
  590. package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +0 -2
  591. package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +0 -2
  592. package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +0 -4
  593. package/dist/chunks/cli-0.6.2-ky1drj50.mjs +0 -2
  594. package/dist/chunks/cli-0.6.2-mabejxsw.mjs +0 -4
  595. package/dist/chunks/cli-0.6.2-majp93c4.mjs +0 -2
  596. package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +0 -2
  597. package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +0 -3
  598. package/dist/chunks/cli-0.6.2-n9610c8k.mjs +0 -2
  599. package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +0 -2
  600. package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +0 -2
  601. package/dist/chunks/cli-0.6.2-nwzye174.mjs +0 -2
  602. package/dist/chunks/cli-0.6.2-p0jszyht.mjs +0 -3
  603. package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +0 -58
  604. package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +0 -2
  605. package/dist/chunks/cli-0.6.2-q45wdma3.mjs +0 -3
  606. package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +0 -2
  607. package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +0 -2
  608. package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +0 -2
  609. package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +0 -2
  610. package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +0 -2
  611. package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +0 -2
  612. package/dist/chunks/cli-0.6.2-r4p904h3.mjs +0 -67
  613. package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +0 -2
  614. package/dist/chunks/cli-0.6.2-rde30n8x.mjs +0 -2
  615. package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +0 -2
  616. package/dist/chunks/cli-0.6.2-red287ya.mjs +0 -2
  617. package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +0 -2
  618. package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +0 -2
  619. package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +0 -17
  620. package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +0 -24
  621. package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +0 -2
  622. package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +0 -2
  623. package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +0 -2
  624. package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +0 -2
  625. package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +0 -2
  626. package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +0 -133
  627. package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +0 -2
  628. package/dist/chunks/cli-0.6.2-t038jmme.mjs +0 -3
  629. package/dist/chunks/cli-0.6.2-t3e59m32.mjs +0 -2
  630. package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +0 -2
  631. package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +0 -2
  632. package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +0 -2
  633. package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +0 -2
  634. package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +0 -50
  635. package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +0 -20
  636. package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +0 -2
  637. package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +0 -2
  638. package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +0 -2
  639. package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +0 -2
  640. package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +0 -2
  641. package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +0 -18
  642. package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +0 -2
  643. package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +0 -3
  644. package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +0 -2
  645. package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +0 -2
  646. package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +0 -12
  647. package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +0 -2
  648. package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +0 -2
  649. package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +0 -18
  650. package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +0 -2
  651. package/dist/chunks/cli-0.6.2-yep449sd.mjs +0 -17
  652. package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +0 -2
  653. package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +0 -2
  654. package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +0 -4
  655. package/dist/chunks/cli-0.6.2-yysvdabq.mjs +0 -2
  656. package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +0 -4
  657. package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +0 -3
  658. package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +0 -4
  659. package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +0 -2
  660. package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +0 -18
  661. package/dist/chunks/cli-0.6.2-zaahyems.mjs +0 -2
  662. package/dist/chunks/cli-0.6.2-zftyh47j.mjs +0 -2
  663. package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +0 -2
  664. package/dist/chunks/cli-0.6.2-zs4qp487.mjs +0 -2
  665. package/dist/chunks/client-0.6.2-8b0s065m.mjs +0 -1
  666. package/dist/chunks/color-0.6.2-jza3jez4.mjs +0 -1
  667. package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +0 -3
  668. package/dist/chunks/config-0.6.2-qjwjrd75.mjs +0 -1
  669. package/dist/chunks/config-0.6.2-xac3sjb7.mjs +0 -1
  670. package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +0 -1
  671. package/dist/chunks/context-0.6.2-w965073f.mjs +0 -1
  672. package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +0 -1
  673. package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +0 -1
  674. package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +0 -1
  675. package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +0 -9
  676. package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +0 -1
  677. package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +0 -1
  678. package/dist/chunks/createSession-0.6.2-axgp009k.mjs +0 -1
  679. package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +0 -1
  680. package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +0 -1365
  681. package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +0 -1
  682. package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +0 -1
  683. package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +0 -1
  684. package/dist/chunks/diff-0.6.2-md180qh9.mjs +0 -1
  685. package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +0 -1
  686. package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +0 -1
  687. package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +0 -1
  688. package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +0 -10
  689. package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +0 -1
  690. package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +0 -1
  691. package/dist/chunks/environments-0.6.2-fe197syt.mjs +0 -1
  692. package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +0 -1
  693. package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +0 -1
  694. package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +0 -1
  695. package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +0 -2
  696. package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +0 -1
  697. package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +0 -1
  698. package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +0 -1
  699. package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +0 -14
  700. package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +0 -1
  701. package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +0 -1
  702. package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +0 -1
  703. package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +0 -4
  704. package/dist/chunks/grove-0.6.2-a2wgccag.mjs +0 -1
  705. package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +0 -1
  706. package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +0 -2
  707. package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +0 -6
  708. package/dist/chunks/help-0.6.2-c49svpae.mjs +0 -1
  709. package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +0 -3
  710. package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +0 -1
  711. package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +0 -79
  712. package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +0 -3
  713. package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +0 -1
  714. package/dist/chunks/index-0.6.2-1kk3erm5.mjs +0 -9
  715. package/dist/chunks/index-0.6.2-21nak3ad.mjs +0 -1
  716. package/dist/chunks/index-0.6.2-2vns8v9p.mjs +0 -1
  717. package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +0 -1
  718. package/dist/chunks/index-0.6.2-3g92ew8z.mjs +0 -1
  719. package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +0 -1
  720. package/dist/chunks/index-0.6.2-88m8k4cp.mjs +0 -1
  721. package/dist/chunks/index-0.6.2-93bh3w93.mjs +0 -1
  722. package/dist/chunks/index-0.6.2-9e0qz384.mjs +0 -1
  723. package/dist/chunks/index-0.6.2-emm65q8h.mjs +0 -17
  724. package/dist/chunks/index-0.6.2-ff57yvh3.mjs +0 -1
  725. package/dist/chunks/index-0.6.2-g6xy97jv.mjs +0 -1
  726. package/dist/chunks/index-0.6.2-h37g7n0s.mjs +0 -9
  727. package/dist/chunks/index-0.6.2-h8jkf613.mjs +0 -5
  728. package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +0 -1
  729. package/dist/chunks/index-0.6.2-jw83xhc8.mjs +0 -2
  730. package/dist/chunks/index-0.6.2-mehn31e3.mjs +0 -30
  731. package/dist/chunks/index-0.6.2-naw1d8mg.mjs +0 -2
  732. package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +0 -1
  733. package/dist/chunks/index-0.6.2-qn0re7sj.mjs +0 -1
  734. package/dist/chunks/index-0.6.2-tftj6wdh.mjs +0 -1
  735. package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +0 -1
  736. package/dist/chunks/init-0.6.2-47k2caay.mjs +0 -1
  737. package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +0 -1
  738. package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +0 -1
  739. package/dist/chunks/insights-0.6.2-st861yg4.mjs +0 -870
  740. package/dist/chunks/install-0.6.2-webkhwz9.mjs +0 -1
  741. package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +0 -149
  742. package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +0 -1
  743. package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +0 -1
  744. package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +0 -1
  745. package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +0 -2
  746. package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +0 -2
  747. package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +0 -1
  748. package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +0 -1
  749. package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +0 -1
  750. package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +0 -1
  751. package/dist/chunks/log-0.6.2-h02k5q0p.mjs +0 -1
  752. package/dist/chunks/main-0.6.2-51xvrsbq.mjs +0 -1
  753. package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +0 -1
  754. package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +0 -17
  755. package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +0 -4
  756. package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +0 -1
  757. package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +0 -1
  758. package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +0 -3
  759. package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +0 -2
  760. package/dist/chunks/model-0.6.2-49f9g2vz.mjs +0 -2
  761. package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +0 -1
  762. package/dist/chunks/node-0.6.2-40bknjza.mjs +0 -12
  763. package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +0 -1
  764. package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +0 -14
  765. package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +0 -1
  766. package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +0 -1
  767. package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +0 -1
  768. package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +0 -1
  769. package/dist/chunks/passes-0.6.2-kadygcw6.mjs +0 -1
  770. package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +0 -3
  771. package/dist/chunks/plan-0.6.2-hzbsezab.mjs +0 -1
  772. package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +0 -1
  773. package/dist/chunks/plugin-0.6.2-pr48413e.mjs +0 -29
  774. package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +0 -1
  775. package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +0 -9
  776. package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +0 -2
  777. package/dist/chunks/print-0.6.2-ng7p0m66.mjs +0 -57
  778. package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +0 -1
  779. package/dist/chunks/process-0.6.2-7k26fk4b.mjs +0 -1
  780. package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +0 -1
  781. package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +0 -9
  782. package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +0 -1
  783. package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +0 -1
  784. package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +0 -1
  785. package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +0 -13
  786. package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +0 -2
  787. package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +0 -1
  788. package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +0 -6
  789. package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +0 -1
  790. package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +0 -34
  791. package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +0 -1
  792. package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +0 -5
  793. package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +0 -2
  794. package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +0 -1
  795. package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +0 -1
  796. package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +0 -1
  797. package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +0 -1
  798. package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +0 -1
  799. package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +0 -1
  800. package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +0 -2
  801. package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +0 -1
  802. package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +0 -1
  803. package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +0 -1
  804. package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +0 -1
  805. package/dist/chunks/session-0.6.2-k41jbqwf.mjs +0 -2
  806. package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +0 -1
  807. package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +0 -1
  808. package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +0 -1
  809. package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +0 -1
  810. package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +0 -5
  811. package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +0 -1
  812. package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +0 -1
  813. package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +0 -1
  814. package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +0 -1
  815. package/dist/chunks/state-0.6.2-nymhw7ey.mjs +0 -1
  816. package/dist/chunks/stats-0.6.2-skm9nakv.mjs +0 -6
  817. package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +0 -1
  818. package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +0 -1
  819. package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +0 -1
  820. package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +0 -1
  821. package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +0 -1
  822. package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +0 -1
  823. package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +0 -1
  824. package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +0 -1
  825. package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +0 -1
  826. package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +0 -1
  827. package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +0 -1
  828. package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +0 -1
  829. package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +0 -1
  830. package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +0 -1
  831. package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +0 -1
  832. package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +0 -69
  833. package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +0 -4
  834. package/dist/chunks/update-0.6.2-p8edrwg4.mjs +0 -86
  835. package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +0 -1
  836. package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +0 -14
  837. package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +0 -1
  838. package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +0 -1
  839. package/dist/chunks/util-0.6.2-yet75ms4.mjs +0 -1
  840. package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +0 -1
  841. package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +0 -1
  842. package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +0 -1
  843. package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +0 -132
  844. package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +0 -1
  845. package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +0 -1
  846. package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +0 -7
  847. /package/dist/chunks/{cli-0.6.2-7p1ykg1m.mjs → cli-0.6.4-0dsecg4e.mjs} +0 -0
  848. /package/dist/chunks/{cli-0.6.2-1e5p6hw6.mjs → cli-0.6.4-a772rm3j.mjs} +0 -0
  849. /package/dist/chunks/{cli-0.6.2-adegz2m3.mjs → cli-0.6.4-ms7sef7r.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.6.2-hb4fz4pd.mjs → cli-0.6.4-p7q1dk2n.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.6.2-hkgnx8g7.mjs → cli-0.6.4-pdn08sja.mjs} +0 -0
  852. /package/dist/chunks/{cli-0.6.2-3eaaj6e5.mjs → cli-0.6.4-sd36e6nd.mjs} +0 -0
  853. /package/dist/chunks/{cli-0.6.2-qk6j042k.mjs → cli-0.6.4-vs7kwtc6.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{BJ as c,bo as L,cJ as R,co as D,do as O,gJ as b,go as _,ho as S,jJ as w,pJ as M,rJ as P,wJ as m,xJ as h}from"./cli-0.6.4-4g9qybcx.mjs";import{H$ as x,P$ as T,Pda as N,Taa as B,Vaa as A,Xda as j,Yaa as C,gba as E}from"./cli-0.6.4-em2mfvpg.mjs";import{Dfa as U,Efa as v}from"./cli-0.6.4-95vk17cy.mjs";import{tha as G,wha as F}from"./cli-0.6.4-x6npewbm.mjs";import{wpa as y}from"./cli-0.6.4-yrfkm9my.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
2
+ export{qq as td,zq as ud,Jq as vd,Kq as wd,p as xd,Qq as yd,Vq as zd,a as Ad};
@@ -0,0 +1,2 @@
1
+ import{ET as u,nT as k,oT as f}from"./cli-0.6.4-2dm4scsb.mjs";import{IU as d,wU as C}from"./cli-0.6.4-cp53mw1m.mjs";import{$0 as F,Z0 as A}from"./cli-0.6.4-ejrq8g7w.mjs";import{A1 as i,v1 as q}from"./cli-0.6.4-2mytx51g.mjs";import{E5 as I,o5 as W,r5 as _,y5 as j,z5 as w}from"./cli-0.6.4-k498jsqp.mjs";import{Pda as V,Xda as U}from"./cli-0.6.4-em2mfvpg.mjs";import{pga as M,qga as v}from"./cli-0.6.4-4b3h6h1j.mjs";import{Yga as X,Zga as R,bha as p,tha as J,wha as x}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as P,Uha as T}from"./cli-0.6.4-rqmfmwew.mjs";import{xpa as O}from"./cli-0.6.4-yrfkm9my.mjs";x();U();F();v();x();T();U();_();I();p();import{randomUUID as E}from"crypto";var h=2000,y=5,S=30000,Y=3,c=new Set([4003]);function D(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class L{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,H){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=H}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${M().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let H={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:H,proxy:w(z),tls:W()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let K=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(K)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");V(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-0.6.4-vqj09efm.mjs"),Z=new $(z,{headers:H,agent:j(z),...W()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(K)=>{this.handleMessage(K.toString())}),Z.on("error",(K)=>{V(Error(`[SessionsWebSocket] Error: ${K.message}`)),this.callbacks.onError?.(K)}),Z.on("close",(K,G)=>{J(`[SessionsWebSocket] Closed: code=${K} reason=${G.toString()}`),this.handleClose(K)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=R(B);if(D(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){V(Error(`[SessionsWebSocket] Failed to parse message: ${P(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",c.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(h*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<y)this.reconnectAttempts++,this.scheduleReconnect(h,`attempt ${this.reconnectAttempts}/${y}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},S)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:E(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function N(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class b{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{V(z),this.callbacks.onError?.(z)}};this.websocket=new L(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(N(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let H={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(H)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await A(this.config.sessionId,B,z);if(!Q)V(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){V(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let H={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(H)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,H=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:H,viewerOnly:$}}x();U();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:H}=B,$=f(z);if(!$){V(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=k(z),K=!Q;return J(`[Reconnection] Computed initial team context for ${K?"leader":`teammate ${H}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:H,isLeader:K,teammates:{}}}function Wz(B,z,Q){let H=f(z);if(!H){V(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=H.members.find((G)=>G.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,K=k(z);B((G)=>({...G,teamContext:{teamName:z,teamFilePath:K,leadAgentId:H.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=q();for(let[H,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(H)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Lz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
+ export{b as Ma,$z as Na,Xz as Oa,Wz as Pa,Lz as Qa};
@@ -0,0 +1,5 @@
1
+ import{ID as F,JD as y,MD as S,SD as o,gn as D,kn as r}from"./cli-0.6.4-4g9qybcx.mjs";import{TW as A,UW as l,VW as z,WW as O}from"./cli-0.6.4-z3hp0qzv.mjs";import{r8 as x,s8 as d,u8 as b,v8 as g}from"./cli-0.6.4-em2mfvpg.mjs";import{$ga as k,bha as p,fha as L,jha as c,tha as V,wha as I}from"./cli-0.6.4-x6npewbm.mjs";import{koa as T,loa as C}from"./cli-0.6.4-yxqfeka0.mjs";import{wpa as w}from"./cli-0.6.4-yrfkm9my.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
+ `)&&!Q.endsWith(`
3
+
4
+ `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
5
+ export{Qq as Pf,v as Qf,j as Rf,i as Sf,Nq as Tf,t as Uf};
@@ -0,0 +1,2 @@
1
+ import{wpa as C}from"./cli-0.6.4-yrfkm9my.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
2
+ export{O as ffa,Q as gfa,R as hfa,S as ifa,T as jfa,U as kfa,W as lfa,X as mfa,Y as nfa,Z as ofa,$ as pfa,v as qfa,w as rfa,P as sfa,B as tfa,D as ufa,h as vfa,N as wfa,m as xfa,c as yfa,F as zfa,J as Afa};
@@ -0,0 +1,2 @@
1
+ import{rga as X,tga as z}from"./cli-0.6.4-ksf3bj49.mjs";import{Yga as Z,bha as O,tha as $,wha as P}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as Y,Uha as H}from"./cli-0.6.4-rqmfmwew.mjs";import{wpa as x}from"./cli-0.6.4-yrfkm9my.mjs";function h(q){return q.replace(w,(Q,J,K)=>{if(K.length<F)return`"${J}":"[REDACTED]"`;let V=`${K.slice(0,8)}...${K.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let Q=typeof q==="string"?q:Z(q),J=h(Q);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function R(q){let Q=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let K=J.data,V=typeof K.message==="string"?K.message:typeof K.error==="object"&&K.error&&("message"in K.error)&&typeof K.error.message==="string"?K.error.message:void 0;if(V)return`${Q}: ${V}`}}return Q}function U(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function j(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function D(q,Q,J){if(Q)$(Q);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{N as le,R as me,U as ne,j as oe,D as pe,m as qe};
@@ -0,0 +1,2 @@
1
+ import{$ha as H,_ha as B,iia as V}from"./cli-0.6.4-43y102gt.mjs";import{wpa as Q}from"./cli-0.6.4-yrfkm9my.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
+ export{$ as zh,Y as Ah};
@@ -0,0 +1,2 @@
1
+ import{cd as x,dd as o}from"./cli-0.6.4-n3wmzz8w.mjs";import{BI as R,Dt as y,EI as i,Ft as u,HJ as W,KJ as t,Xn as Y,Zn as g,_u as K,av as m,jt as Z,pI as O,pt as v,qB as M,qI as a,wB as l,wt as $,xt as d}from"./cli-0.6.4-4g9qybcx.mjs";import{Pda as X,Xda as h}from"./cli-0.6.4-em2mfvpg.mjs";import{tha as I,wha as c}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as V,Uha as f}from"./cli-0.6.4-rqmfmwew.mjs";import{Nna as _,Uja as U}from"./cli-0.6.4-1k1e5y32.mjs";import{wpa as C}from"./cli-0.6.4-yrfkm9my.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
2
+ export{Lj as _c,p as $c};
@@ -0,0 +1,2 @@
1
+ import{wpa as f}from"./cli-0.6.4-yrfkm9my.mjs";function j(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function V(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function k(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(x);if(K){let W=Number(K[1]),$=Number(K[2]);if(W===10)return!0;if(W===172&&$>=16&&$<=31)return!0;if(W===192&&$===168)return!0;if(W===127)return!0;if(W===169&&$===254)return!0;if(W===100&&$>=64&&$<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||L.test(B)||Y.test(B))return!0;return!1}function C(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(k(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function A(q){if(!q||typeof q!=="object")return 0;let z=q,B=j(z.cache_read_input_tokens);if(B>0)return B;let K=j(V(q,["input_tokens_details","cached_tokens"]))||j(V(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=j(z.cached_tokens);if(W>0)return W;let $=j(z.prompt_cache_hit_tokens);if($>0)return $;let Q=j(z.cached_content_token_count);if(Q>0)return Q;return 0}function M(q){let z=A(q),B=q??{},K=j(B.input_tokens)||j(B.prompt_tokens),W=K>=z?K-z:K,$=j(B.output_tokens)||j(B.completion_tokens);return{input_tokens:W,output_tokens:$,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function U(q,z){if(!q||typeof q!=="object")return G;let B=q,K=j(B.cache_read_input_tokens),W=j(B.cache_creation_input_tokens),$=j(B.input_tokens);if(z==="copilot"||z==="ollama")return G;if(z==="self-hosted"&&K===0&&W===0)return G;let Q=K+W+$;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function w(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${H(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${H(q.read)}`,`created=${H(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function H(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(F,"")}k`;return`${(q/1e6).toFixed(1).replace(F,"")}m`}function Z(q,z){if(!q.supported&&!z.supported)return G;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var G,x,L,Y,F;var y=f(()=>{G={read:0,created:0,total:0,hitRate:null,supported:!1};x=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,L=/^fc[0-9a-f]{0,2}:/,Y=/^fd[0-9a-f]{0,2}:/,F=/\.0$/});function O(q){return{currentTurn:X,session:X,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function _(q,z){J.currentTurn=Z(J.currentTurn,q),J.session=Z(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function E(){J.currentTurn=X}function g(){J.currentTurn=X,J.session=X,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function N(){return J.currentTurn}function R(){return J.session}function b(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var D=500,X,J;var S=f(()=>{y();X={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(D)});
2
+ export{C as _V,M as $V,U as aW,w as bW,I as cW,y as dW,_ as eW,E as fW,g as gW,N as hW,R as iW,b as jW,S as kW};
@@ -0,0 +1,2 @@
1
+ import{wpa as H}from"./cli-0.6.4-yrfkm9my.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
+ export{F as Dea,K as Eea,M as Fea,N as Gea,O as Hea,P as Iea,J as Jea};
@@ -0,0 +1,2 @@
1
+ import{AY as t,dX as s,dZ as f}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as n,E0 as c,F0 as r}from"./cli-0.6.4-btcax77x.mjs";import{spa as m,wpa as l}from"./cli-0.6.4-yrfkm9my.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
+ export{T as zf,p as Af};
@@ -0,0 +1,4 @@
1
+ import{Cn as IJ,En as cJ,KO as TJ,Zh as dJ,hP as jJ,iI as DJ,iP as ZV,jI as BJ,kI as pJ}from"./cli-0.6.4-4g9qybcx.mjs";import{Pda as L,W8 as fJ,Xda as hJ,Yaa as WJ,Yba as NJ,a8 as c,b8 as PJ,d9 as qJ,gba as gJ,h9 as mJ,rca as uJ,w8 as VJ,y8 as p}from"./cli-0.6.4-em2mfvpg.mjs";import{Dfa as j,Efa as kJ}from"./cli-0.6.4-95vk17cy.mjs";import{rga as f,tga as zJ}from"./cli-0.6.4-ksf3bj49.mjs";import{fha as JJ,jha as yJ,tha as Q,wha as bJ}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as e,Uha as SJ}from"./cli-0.6.4-rqmfmwew.mjs";import{Kja as AJ,Lja as wJ}from"./cli-0.6.4-1k1e5y32.mjs";import{spa as LJ,wpa as HJ}from"./cli-0.6.4-yrfkm9my.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],u+1),E===-1)continue J;y[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(H.length===W&&_+g-R<=N)continue;let S=I[M],UJ=U[M],T=Y*16+g-R;T+=XJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=XJ(S,y[A],!1);if(T+=Math.max(0,32-(UJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let h=A+F>>1;if(H[h].fuzzScore<T)A=h+1;else F=h}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function XJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,y;var QJ=HJ(()=>{y=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return n=I,s=Z,I}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),X=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
+ `).filter(Boolean),H=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}C=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
3
+ `).filter(Boolean),D=MJ(m,V,Y),w=await OJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),sJ(D)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function iJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await IJ(Y,".",J)).map((H)=>O.relative(j(),H)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(X)]);ZJ=_;let H=[...$,..._],N=await FJ(H);$J=N;let I=[...N,...H],q=xJ(I);if(q!==i)await W.loadFromFileListAsync(I).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function vV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=100,VV=5000;var YV=HJ(()=>{pJ();QJ();zJ();uJ();kJ();bJ();SJ();PJ();yJ();fJ();ZV();hJ();mJ();cJ();gJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
4
+ export{jV as _g,UV as $g,vV as ah,EJ as bh,GV as ch,RV as dh,YV as eh};
@@ -0,0 +1,2 @@
1
+ import{ef as EG,ff as iG,lf as rG}from"./cli-0.6.4-pp4r33sa.mjs";import{$l as VG,Au as jG,Bu as HG,CK as $G,Cu as dG,DK as oG,LJ as LG,MJ as BG,OJ as pG,QJ as WG,RJ as qG,WJ as a,Wl as FG,Xl as OG,Yq as uG,_J as DG,_K as bG,aK as y,bK as o,bL as sG,cK as lG,eK as kG,fL as f,gL as s,hL as c,iL as v,jK as _G,jL as i,jm as fG,mL as u,qL as cG,sK as aG,yD as KG,zD as mG,zq as vG,zu as l}from"./cli-0.6.4-4g9qybcx.mjs";import{dX as QJ}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as wG,F0 as PG}from"./cli-0.6.4-btcax77x.mjs";import{G0 as YG}from"./cli-0.6.4-n9mgjg26.mjs";import{Tda as R,U$ as zG,Uda as _,Xda as gG,Z$ as CG}from"./cli-0.6.4-em2mfvpg.mjs";import{Afa as NG}from"./cli-0.6.4-4qyz0e3r.mjs";import{rga as A,tga as MG}from"./cli-0.6.4-ksf3bj49.mjs";import{bha as yG,tha as ZG,wha as SG}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as h,Uha as TG}from"./cli-0.6.4-rqmfmwew.mjs";import{Nna as XG,Oja as QG}from"./cli-0.6.4-1k1e5y32.mjs";import{spa as r,wpa as p}from"./cli-0.6.4-yrfkm9my.mjs";var e=p(()=>{yG();NG()});function GG(Z){let z="plugin"in Z?Z.plugin:"no-plugin";return`${Z.type}:${Z.source}:${z}`}function JG(Z,z){if(z.length===0)return;Z((k)=>{let U=new Set(k.plugins.errors.map((j)=>GG(j))),$=z.filter((j)=>!U.has(GG(j)));if($.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...$]}}})}function GJ(Z,z,k,U){let $=z==="disabled"?U??[]:U;if($===void 0)return Z;let j=new Map;for(let W of $)if(W.name!==void 0)j.set(W.name,W);let V=[],P=new Set;for(let W of Z){if(!W.name?.startsWith(k)){V.push(W);continue}let w=j.get(W.name);if(w)V.push(w),P.add(W.name)}for(let W of $)if(W.name===void 0||!P.has(W.name))V.push(W);return V}function IG(Z,z=!1){let k=HG(),U=l((G)=>G.authVersion),$=l((G)=>G.mcp.pluginReconnectKey),j=jG(),V=D.useRef(new Map),P=D.useRef(new Set),W=D.useRef(null);D.useEffect(()=>{},[j]);let{addNotification:w}=KG(),RG=16,d=D.useRef([]),N=D.useRef(null),C=D.useCallback(()=>{N.current=null;let G=d.current;if(G.length===0)return;d.current=[],j((Y)=>{let F=Y.mcp;for(let B of G){let{tools:X,commands:H,resources:q,...J}=B,K=J.type==="disabled"||J.type==="failed"?H??[]:H,Q=J.type==="disabled"||J.type==="failed"?q??[]:q,O=zG(J.name),I=F.clients.findIndex((M)=>M.name===J.name)===-1?[...F.clients,J]:F.clients.map((M)=>M.name===J.name?J:M),g=GJ(F.tools,J.type,O,X),x=K===void 0?F.commands:[...$G(F.commands,(M)=>kG(M,J.name)),...K],m=Q===void 0?F.resources:{...F.resources,...Q.length>0?{[J.name]:Q}:EG(F.resources,J.name)};F={...F,clients:I,tools:g,commands:x,resources:m}}return{...Y,mcp:F}})},[j]),b=D.useCallback((G)=>{if(d.current.push(G),N.current===null)N.current=setTimeout(C,RG)},[C]),E=D.useCallback(({client:G,tools:Y,commands:F,resources:B})=>{switch(b({...G,tools:Y,commands:F,resources:B}),G.type){case"connected":{if(bG(G.client,G.name,j),G.client.onclose=()=>{let X=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{ZG(`Failed to invalidate the server cache: ${G.name}`)}),y(G.name)){_(G.name,"Server is disabled, skipping automatic reconnection");return}if(X!=="stdio"&&X!=="sdk"){let H=JJ(X);_(G.name,`${H} transport closed/disconnected, attempting automatic reconnection`);let q=V.current.get(G.name);if(q)clearTimeout(q),V.current.delete(G.name);(async()=>{for(let K=1;K<=T;K++){if(y(G.name)){_(G.name,"Server disabled during reconnection, stopping retry"),V.current.delete(G.name);return}b({...G,type:"pending",reconnectAttempt:K,maxReconnectAttempts:T});let Q=Date.now();try{let L=await v(G.name,G.config),I=Date.now()-Q;if(L.client.type==="connected"){_(G.name,`${H} reconnection successful after ${I}ms (attempt ${K})`),V.current.delete(G.name),E(L);return}if(_(G.name,`${H} reconnection attempt ${K} completed with status: ${L.client.type}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),E(L);return}}catch(L){let I=Date.now()-Q;if(R(G.name,`${H} reconnection attempt ${K} failed after ${I}ms: ${L}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),b({...G,type:"failed"});return}}let O=Math.min(tG*Math.pow(2,K-1),eG);_(G.name,`Scheduling reconnection attempt ${K+1} in ${O}ms`),await new Promise((L)=>{let I=setTimeout(L,O);V.current.set(G.name,I)})}})()}else b({...G,type:"failed"})},!1)switch(X.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{_(G.name,"Received tools/list_changed notification, refreshing tools");try{let X=f.cache.get(G.name);f.cache.delete(G.name);let H=await f(G),q=H.length;if(X)X.then((J)=>{A("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:q})},()=>{A("tengu_mcp_list_changed",{type:"tools",newCount:q})});else A("tengu_mcp_list_changed",{type:"tools",newCount:q});b({...G,tools:H})}catch(X){R(G.name,`Failed to refresh tools after list_changed notification: ${h(X)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{_(G.name,"Received prompts/list_changed notification, refreshing prompts"),A("tengu_mcp_list_changed",{type:"prompts"});try{c.cache.delete(G.name);let[X,H]=await Promise.all([c(G),Promise.resolve([])]);b({...G,commands:[...X,...H]}),nG?.()}catch(X){R(G.name,`Failed to refresh prompts after list_changed notification: ${h(X)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{_(G.name,"Received resources/list_changed notification, refreshing resources"),A("tengu_mcp_list_changed",{type:"resources"});try{s.cache.delete(G.name);{let X=await s(G);b({...G,resources:X})}}catch(X){R(G.name,`Failed to refresh resources after list_changed notification: ${h(X)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[b]),t=QG();D.useEffect(()=>{async function G(){let{servers:Y,errors:F}=z?{servers:{},errors:[]}:await a(Z),B={...Y,...Z};JG(j,F),j((X)=>{let{stale:H,...q}=_G(X.mcp,B);for(let Q of H){let O=V.current.get(Q.name);if(O)clearTimeout(O),V.current.delete(Q.name);if(Q.type==="connected")Q.client.onclose=void 0,u(Q.name,Q.config).catch(()=>{})}let J=new Set(q.clients.map((Q)=>Q.name)),K=Object.entries(B).filter(([Q])=>!J.has(Q)).map(([Q,O])=>({name:Q,type:y(Q)?"disabled":"pending",config:O}));if(K.length===0&&H.length===0)return X;return{...X,mcp:{...X.mcp,...q,clients:[...q.clients,...K]}}})}G().catch((Y)=>{R("useManageMCPConnections",`Failed to initialize servers as pending: ${h(Y)}`)})},[z,Z,j,t,$]),D.useEffect(()=>{let G=!1;async function Y(){let F;if(z||DG())F=Promise.resolve({});else BG(),F=LG();let{servers:B,errors:X}=z?{servers:{},errors:[]}:await a(Z,F);if(G)return;JG(j,X);let H={...B,...Z},q=Object.fromEntries(Object.entries(H).filter(([O])=>!y(O)));i(E,q).catch((O)=>{R("useManageMcpConnections",`Failed to get MCP resources: ${h(O)}`)});let J={};if(!z){if(J=qG(await F).allowed,G)return;if(Object.keys(J).length>0){let{servers:O}=WG(J,H);J=O}if(Object.keys(J).length>0){j((L)=>{let I=new Set(L.mcp.clients.map((x)=>x.name)),g=Object.entries(J).filter(([x])=>!I.has(x)).map(([x,m])=>({name:x,type:y(x)?"disabled":"pending",config:m}));if(g.length===0)return L;return{...L,mcp:{...L.mcp,clients:[...L.mcp.clients,...g]}}});let O=Object.fromEntries(Object.entries(J).filter(([L])=>!y(L)));i(E,O).catch((L)=>{R("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${h(L)}`)})}}let K={...H,...J},Q={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let O of Object.values(K))if(O.scope==="enterprise")Q.enterprise++;else if(O.scope==="user")Q.global++;else if(O.scope==="project")Q.project++;else if(O.scope==="local")Q.user++;else if(O.scope==="dynamic")Q.plugin++;else if(O.scope==="claudeai")Q.claudeai++;A("tengu_mcp_servers",{...Q})}return Y(),()=>{G=!0}},[z,Z,E,j,U,t,$]),D.useEffect(()=>{let G=V.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),N.current!==null)clearTimeout(N.current),N.current=null,C()}},[C]);let AG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((X)=>X.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let F=V.current.get(G);if(F)clearTimeout(F),V.current.delete(G);let B=await v(G,Y.config);return E(B),B},[k,E]),hG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((B)=>B.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let B=V.current.get(G);if(B)clearTimeout(B),V.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);b({name:G,type:"disabled",config:Y.config})}else{o(G,!0),b({name:G,type:"pending",config:Y.config});let B=await v(G,Y.config);E(B)}},[k,b,E]);return{reconnectMcpServer:AG,toggleMcpServer:hG}}function JJ(Z){switch(Z){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var D,nG=null,T=5,tG=1000,eG=30000;var UG=p(()=>{XG();cG();fG();iG();oG();MG();lG();SG();XG();mG();dG();TG();gG();uG();rG();e();pG();sG();CG();aG();vG();D=r(YG(),1)});function aJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpReconnect must be used within MCPConnectionManager");return Z.reconnectMcpServer}function oJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return Z.toggleMcpServer}function sJ(Z){let z=xG.c(6),{children:k,dynamicMcpConfig:U,isStrictMcpConfig:$}=Z,{reconnectMcpServer:j,toggleMcpServer:V}=IG(U,$),P;if(z[0]!==j||z[1]!==V)P={reconnectMcpServer:j,toggleMcpServer:V},z[0]=j,z[1]=V,z[2]=P;else P=z[2];let W=P,w;if(z[3]!==k||z[4]!==W)w=wG(n.Provider,{value:W,children:k}),z[3]=k,z[4]=W,z[5]=w;else w=z[5];return w}var xG,S,n;var XJ=p(()=>{UG();PG();xG=r(QJ(),1),S=r(YG(),1),n=S.createContext(null)});
2
+ export{e as $e,aJ as af,oJ as bf,sJ as cf,XJ as df};
@@ -0,0 +1,2 @@
1
+ import{vpa as x,wpa as z}from"./cli-0.6.4-yrfkm9my.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
2
+ export{A as GV,F as HV,G as IV,H as JV,J as KV};
@@ -0,0 +1,45 @@
1
+ import{Re as BY,Se as Bz}from"./cli-0.6.4-yak49q2f.mjs";import{Xf as qY,Yf as qz}from"./cli-0.6.4-2q70rra3.mjs";import{Dg as $Y,Eg as yz,Fg as cY,Gg as mz}from"./cli-0.6.4-jmvxa7qj.mjs";import{AM as Lz,CQ as XJ,DQ as GZ,EQ as X0,Im as UJ,Jm as UY,Js as eY,KH as GY,Km as AJ,Ks as JK,Lm as XY,Mm as NJ,Nm as VY,PH as Gz,Tp as Zz,UQ as V0,Up as KK,bQ as dY,fG as hY,gG as Tz,kE as uY,lE as wz,rP as lY,uE as B0,vE as MY,zM as gY,zQ as nY}from"./cli-0.6.4-4g9qybcx.mjs";import{kV as SY,lV as jz}from"./cli-0.6.4-bgwzkgj9.mjs";import{BW as KY,HW as pY,IW as Fz,lW as _Y,mW as Az,zW as $J}from"./cli-0.6.4-1nzpzrfm.mjs";import{AY as N,UY as xY,cY as bY,dX as f0,dZ as U0,mX as LY,sX as IY,tX as Rz,tY as fY,vY as Ez,yY as b}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as U,E0 as m,F0 as bJ}from"./cli-0.6.4-btcax77x.mjs";import{G0 as b0}from"./cli-0.6.4-n9mgjg26.mjs";import{D3 as ez,b3 as tY}from"./cli-0.6.4-2mytx51g.mjs";import{G5 as $0,H5 as Cz}from"./cli-0.6.4-x3pc9zn1.mjs";import{B9 as r0,D9 as tz,E8 as yY,Mda as fJ,Pda as l0,W8 as Mz,Xda as mY}from"./cli-0.6.4-em2mfvpg.mjs";import{aea as S0,bea as Hz,dea as G0,oea as zY,pea as c0,sea as I0}from"./cli-0.6.4-prdj94yp.mjs";import{rga as $,tga as Nz}from"./cli-0.6.4-ksf3bj49.mjs";import{Zga as oY,bha as sz,tha as CJ,wha as oz}from"./cli-0.6.4-x6npewbm.mjs";import{Nna as TY,Oja as wY,Uja as H0}from"./cli-0.6.4-1k1e5y32.mjs";import{spa as UZ,wpa as XZ}from"./cli-0.6.4-yrfkm9my.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=nY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
+ ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
+ ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
+ ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=rY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
+ ${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await dY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(lY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var iY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();jz();mz();Az();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();AY();bJ();iY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
+ ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
+ `)}
8
+
9
+ Search query: "${Z}"
10
+
11
+ Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
+
13
+ You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
+
15
+ Each session may include:
16
+ - Title (display name or custom title)
17
+ - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
+ - Branch (git branch name, shown as [branch: name])
19
+ - Summary (AI-generated summary)
20
+ - First message (beginning of the conversation)
21
+ - Transcript (excerpt of conversation content)
22
+
23
+ IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
+
25
+ For each session, consider (in order of priority):
26
+ 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
+ 2. Partial tag matches or tag-related terms
28
+ 3. Title matches (custom titles or first message content)
29
+ 4. Branch name matches
30
+ 5. Summary and transcript content matches
31
+ 6. Semantic similarity and related concepts
32
+
33
+ CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
+ - Contain the query term anywhere in any field
35
+ - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
+ - Discuss topics that could be related to the query
37
+ - Have transcripts that mention the concept even in passing
38
+
39
+ When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
+
41
+ Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
+
43
+ Respond with ONLY the JSON object, no markdown formatting:
44
+ {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
+ export{YU as Be,az as Ce,QU as De,zK as Ee,WU as Fe,UK as Ge};
@@ -0,0 +1,2 @@
1
+ import{_ha as w,iia as F}from"./cli-0.6.4-43y102gt.mjs";import{wpa as D}from"./cli-0.6.4-yrfkm9my.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
+ export{Q as TT,V as UT,L as VT};
@@ -0,0 +1,2 @@
1
+ import{wpa as j}from"./cli-0.6.4-yrfkm9my.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{x as t0,y as u0,z as v0,A as w0,B as x0,C as y0,D as z0,k as A0};
@@ -0,0 +1,4 @@
1
+ import{xf as LJ,yf as WQ}from"./cli-0.6.4-wpzc8xj5.mjs";import{Af as RQ,zf as hJ}from"./cli-0.6.4-78evvtpq.mjs";import{Bf as PJ,Cf as hQ}from"./cli-0.6.4-qxhfaxsk.mjs";import{Df as aq,Ef as lJ}from"./cli-0.6.4-xj949nnt.mjs";import{Ff as Fq,Gf as iq,Hf as $J}from"./cli-0.6.4-q45r4rnd.mjs";import{If as WJ,Jf as HQ}from"./cli-0.6.4-1s60014f.mjs";import{$E as FJ,$Q as sq,$t as fJ,Cu as yQ,GN as Aq,JN as oJ,Kn as P,Ln as Tq,Rr as KJ,Sr as VQ,Tr as VJ,Ur as XJ,Vr as XQ,XQ as wq,Xt as uq,YE as vq,Yt as mq,ZE as BQ,_E as UJ,_t as pq,aF as wJ,bF as FQ,cR as tq,nn as GJ,oR as nJ,on as KQ,qN as eq,rH as HJ,sH as RJ,sN as iJ,tH as wQ,zu as g}from"./cli-0.6.4-4g9qybcx.mjs";import{QR as yJ,SR as NJ,VR as NQ}from"./cli-0.6.4-0ngrseg8.mjs";import{WT as BJ,_T as UQ}from"./cli-0.6.4-ehexec8h.mjs";import{kV as YJ,lV as YQ}from"./cli-0.6.4-bgwzkgj9.mjs";import{AW as zJ,BW as zQ,JW as Mq,KW as GQ}from"./cli-0.6.4-1nzpzrfm.mjs";import{AY as Q,dX as Pq,dZ as Oq,yY as y}from"./cli-0.6.4-z3hp0qzv.mjs";import{C0 as h,D0 as Y,E0 as Z,F0 as c}from"./cli-0.6.4-btcax77x.mjs";import{G0 as ZQ}from"./cli-0.6.4-n9mgjg26.mjs";import{D3 as cJ,R3 as ZJ,S3 as QQ,e3 as rq}from"./cli-0.6.4-2mytx51g.mjs";import{G9 as Iq,K7 as $,L7 as tJ,Yaa as QJ,a_ as qQ,gba as JQ,kaa as gq,laa as dJ,oaa as xq,waa as TJ}from"./cli-0.6.4-em2mfvpg.mjs";import{Xha as JJ,iia as sJ}from"./cli-0.6.4-43y102gt.mjs";import{Nna as eJ,Uja as qJ}from"./cli-0.6.4-1k1e5y32.mjs";import{spa as Bq,wpa as Uq}from"./cli-0.6.4-yrfkm9my.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 vf,cQ as wf};
@@ -0,0 +1,2 @@
1
+ import{Nna as H,Uja as z,Yja as B}from"./cli-0.6.4-1k1e5y32.mjs";import{wpa as x}from"./cli-0.6.4-yrfkm9my.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 Bfa,J as Cfa,R as Dfa,K as Efa,U as Ffa,V as Gfa,W as Hfa,X as Ifa,Y as Jfa,Z as Kfa,$ as Lfa,j as Mfa,q as Nfa,A as Ofa,G as Pfa,L as Qfa,_ as Rfa,b as Sfa,k as Tfa,p as Ufa,v as Vfa,C as Wfa,O as Xfa,y as Yfa,S as Zfa,f as _fa,m as $fa,u as aga,h as bga,l as cga,w as dga,g as ega,d as fga,M as gga};
@@ -0,0 +1,2 @@
1
+ import{Qm as y,Rm as p,uE as O,wE as j}from"./cli-0.6.4-4g9qybcx.mjs";import{AY as I,EY as R,dX as S,dZ as v,yY as F}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as Z,E0 as N,F0 as U}from"./cli-0.6.4-btcax77x.mjs";import{G0 as d}from"./cli-0.6.4-n9mgjg26.mjs";import{Vaa as M,gba as E}from"./cli-0.6.4-em2mfvpg.mjs";import{rga as H,tga as b}from"./cli-0.6.4-ksf3bj49.mjs";import{spa as k}from"./cli-0.6.4-yrfkm9my.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claude handle permission prompts automatically — Claude checks each tool call for risky actions and prompt injection before executing. Actions Claude identifies as safe are executed, while actions Claude identifies as risky are blocked and Claude may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claude can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
2
+ export{x as fb,l as gb};
@@ -0,0 +1,2 @@
1
+ import{Dca as k,Pca as f,Vba as M,Yba as L,qca as G,rca as h,vca as v,wca as P}from"./cli-0.6.4-em2mfvpg.mjs";import{hga as E,qga as x}from"./cli-0.6.4-4b3h6h1j.mjs";import{Xha as T,iia as u}from"./cli-0.6.4-43y102gt.mjs";import{wpa as C}from"./cli-0.6.4-yrfkm9my.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as Yb,Wj as Zb,e as _b,Xj as $b,Yj as ac,jj as bc};
@@ -0,0 +1,3 @@
1
+ import{$7 as Q,Yba as P,b8 as M,rca as R}from"./cli-0.6.4-em2mfvpg.mjs";import{tha as G,wha as C}from"./cli-0.6.4-x6npewbm.mjs";import{wpa as j}from"./cli-0.6.4-yrfkm9my.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
2
+ `),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
3
+ export{g as a1,w as b1,f as c1};
@@ -0,0 +1 @@
1
+ import{afa as q,cfa as A,dfa as x,efa as B}from"./cli-0.6.4-s062axqp.mjs";import{bha as J}from"./cli-0.6.4-x6npewbm.mjs";import{Uha as G}from"./cli-0.6.4-rqmfmwew.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,2 @@
1
+ import{Mn as Z,Rn as G}from"./cli-0.6.4-4g9qybcx.mjs";import{Pda as X,Xda as R}from"./cli-0.6.4-em2mfvpg.mjs";import{Yga as v,Zga as B,bha as A,fha as C,jha as M,tha as U,wha as O}from"./cli-0.6.4-x6npewbm.mjs";import{wpa as b}from"./cli-0.6.4-yrfkm9my.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
+ export{o as Tc,c as Uc,p as Vc,d as Wc,g as Xc,w as Yc};
@@ -0,0 +1,2 @@
1
+ import{Sh as H,Uh as C}from"./cli-0.6.4-x6d6qxpg.mjs";import{Vh as k,Wh as y}from"./cli-0.6.4-xm44y40c.mjs";import{$0 as R,U0 as X,W0 as Y}from"./cli-0.6.4-ejrq8g7w.mjs";import{b1 as G,c1 as m}from"./cli-0.6.4-9j2480tb.mjs";import{F1 as w,G1 as E,X4 as B,k5 as f}from"./cli-0.6.4-2mytx51g.mjs";import{Pda as Q,Vba as S,Xda as D,Yba as j,rca as x}from"./cli-0.6.4-em2mfvpg.mjs";import{pga as V,qga as b}from"./cli-0.6.4-4b3h6h1j.mjs";import{Hoa as W,Zoa as I}from"./cli-0.6.4-ge6qg76s.mjs";import{wpa as Z}from"./cli-0.6.4-yrfkm9my.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
2
+ export{i as Ph,A as Qh};
@@ -0,0 +1,2 @@
1
+ import{AK as Q,BK as $}from"./cli-0.6.4-4g9qybcx.mjs";import{via as V,wia as P,xja as W,yja as E}from"./cli-0.6.4-1k1e5y32.mjs";import{wpa as L}from"./cli-0.6.4-yrfkm9my.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as Dc,C as Ec};
@@ -0,0 +1,2 @@
1
+ import{wpa as n}from"./cli-0.6.4-yrfkm9my.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
2
+ export{o as KT,e as LT,i as MT,g as NT,r as OT,u as PT,f as QT,l as RT,t as ST};
@@ -0,0 +1,58 @@
1
+ import{$N as F,HO as a,Vv as U,Xv as h,ei as $,hi as m,jB as A,kB as p,oO as L,uz as k,vz as I}from"./cli-0.6.4-4g9qybcx.mjs";import{g1 as O,h1 as f}from"./cli-0.6.4-2mytx51g.mjs";import{fha as S,jha as E}from"./cli-0.6.4-x6npewbm.mjs";import{Sha as b,Uha as T}from"./cli-0.6.4-rqmfmwew.mjs";import{Xha as y,iia as C}from"./cli-0.6.4-43y102gt.mjs";import{wpa as N}from"./cli-0.6.4-yrfkm9my.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
+
3
+ Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
+
5
+ The file {{docPath}} has already been read for you. Here are its current contents:
6
+ <current_doc_content>
7
+ {{docContents}}
8
+ </current_doc_content>
9
+
10
+ Document title: {{docTitle}}
11
+ {{customInstructions}}
12
+
13
+ Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
+
15
+ CRITICAL RULES FOR EDITING:
16
+ - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
+ - If there's an italicized line immediately after the header, preserve it exactly as-is
18
+ - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
+ - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
+ - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
+ - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
+ - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
+ - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
+
25
+ DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
+ - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
+ - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
+ - Do NOT duplicate information that's already obvious from reading the source code
29
+ - Do NOT document every function, parameter, or line number reference
30
+ - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
+ - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
+
33
+ What TO document:
34
+ - High-level architecture and system design
35
+ - Non-obvious patterns, conventions, or gotchas
36
+ - Key entry points and where to start reading code
37
+ - Important design decisions and their rationale
38
+ - Critical dependencies or integration points
39
+ - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
+
41
+ What NOT to document:
42
+ - Anything obvious from reading the code itself
43
+ - Exhaustive lists of files, functions, or parameters
44
+ - Step-by-step implementation details
45
+ - Low-level code mechanics
46
+ - Information already in CLAUDE.md or other project docs
47
+
48
+ Use the Edit tool with file_path: {{docPath}}
49
+
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
+
52
+ DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
+ The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
+
55
+ "${J}"
56
+
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
+ export{Xw as lh,Zw as mh,s as nh};
@@ -0,0 +1,3 @@
1
+ import{L as A}from"./cli-0.6.4-0dsecg4e.mjs";import{Gda as $,Hda as F,Nda as z,Oda as H,Xda as P}from"./cli-0.6.4-em2mfvpg.mjs";import{Yga as O,bha as w,fha as V,jha as C,tha as X,uga as _,vga as N,wga as B,wha as E,yga as W}from"./cli-0.6.4-x6npewbm.mjs";import{Nna as L,Oja as Z}from"./cli-0.6.4-1k1e5y32.mjs";import{Hoa as q,Zoa as y}from"./cli-0.6.4-ge6qg76s.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
2
+ `)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
3
+ export{e as J};
@@ -0,0 +1,2 @@
1
+ import{cb as S}from"./cli-0.6.4-ms7sef7r.mjs";import{eb as c}from"./cli-0.6.4-tda6fzwk.mjs";import{Uc as P,Yc as Vq}from"./cli-0.6.4-9wdpd5tf.mjs";import{ad as I,bd as v,cd as $,dd as Wq}from"./cli-0.6.4-n3wmzz8w.mjs";import{Au as _,Cu as Gq,Dt as h,Ft as Bq,HJ as f,KJ as Tq,Qs as N,Rs as e,Xn as C,Zn as r,pI as E,qI as Qq,wt as L,xt as qq,yD as M,zD as Jq,zu as A}from"./cli-0.6.4-4g9qybcx.mjs";import{G0 as s}from"./cli-0.6.4-n9mgjg26.mjs";import{B9 as w,D9 as t,Pda as F,X7 as D,Xda as a,Z7 as n}from"./cli-0.6.4-em2mfvpg.mjs";import{rga as x,tga as d}from"./cli-0.6.4-ksf3bj49.mjs";import{tha as j,wha as o}from"./cli-0.6.4-x6npewbm.mjs";import{Mha as y,Uha as l}from"./cli-0.6.4-rqmfmwew.mjs";import{spa as p}from"./cli-0.6.4-yrfkm9my.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
+ export{Lq as bb};
@@ -0,0 +1,2 @@
1
+ import{La as Y}from"./cli-0.6.4-pdn08sja.mjs";import{fS as N,gS as C}from"./cli-0.6.4-cy7jqdcj.mjs";import{Jda as A,Lda as w}from"./cli-0.6.4-em2mfvpg.mjs";import{rga as B,tga as k}from"./cli-0.6.4-ksf3bj49.mjs";import{Zga as L,bha as E,tha as W,wha as j}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as G,Uha as K}from"./cli-0.6.4-rqmfmwew.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as ja,q as ka,p as la,g as ma,d as na,R as oa};
@@ -0,0 +1,2 @@
1
+ import{AW as x,BW as d}from"./cli-0.6.4-1nzpzrfm.mjs";import{PY as y,QY as g}from"./cli-0.6.4-z3hp0qzv.mjs";import{G0 as S}from"./cli-0.6.4-n9mgjg26.mjs";import{$0 as t,U0 as w,W0 as F}from"./cli-0.6.4-ejrq8g7w.mjs";import{R4 as m,U4 as W,X4 as b,k5 as s}from"./cli-0.6.4-2mytx51g.mjs";import{Pda as E,Vba as f,Xda as r,Yba as L,rca as n,sba as P,tba as i}from"./cli-0.6.4-em2mfvpg.mjs";import{pga as A,qga as a}from"./cli-0.6.4-4b3h6h1j.mjs";import{tha as G,wha as u}from"./cli-0.6.4-x6npewbm.mjs";import{Hoa as U,Zoa as o}from"./cli-0.6.4-ge6qg76s.mjs";import{spa as k,wpa as K}from"./cli-0.6.4-yrfkm9my.mjs";function v(z,N,J){let Q=Z.useRef(0),V=Z.useRef(void 0),X=Z.useCallback(()=>{if(V.current)clearTimeout(V.current),V.current=void 0},[]);return Z.useEffect(()=>{return()=>{X()}},[X]),Z.useCallback(()=>{let Y=Date.now();if(Y-Q.current<=T&&V.current!==void 0)X(),z(!1),N();else J?.(),z(!0),X(),V.current=setTimeout((j,H)=>{j(!1),H.current=void 0},T,z,V);Q.current=Y},[z,N,J,X])}var Z,T=800;var R=K(()=>{Z=k(S(),1)});function C(z,N,J,Q=!0){let{exit:V}=y(),[X,Y]=$.useState({pending:!1,keyName:null}),q=$.useMemo(()=>J??V,[J,V]),M=v((_)=>Y({pending:_,keyName:"Ctrl-C"}),q),j=v((_)=>Y({pending:_,keyName:"Ctrl-D"}),q),H=$.useCallback(()=>{if(N?.())return;M()},[M,N]),O=$.useCallback(()=>{j()},[j]),c=$.useMemo(()=>({"app:interrupt":H,"app:exit":O}),[H,O]);return z(c,{context:"Global",isActive:Q}),X}var $;var I=K(()=>{g();R();$=k(S(),1)});function Gz(z,N,J){return C(x,N,z,J)}var l=K(()=>{d();I()});async function e(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/eligibility`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:5000})).data}async function vz(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/redemptions`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:1e4})).data}function p(){return!!(W()?.organizationUuid&&m()&&b()==="max")}function Az(){if(!p())return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=W()?.organizationUuid;if(!z)return{eligible:!1,needsRefresh:!1,hasCache:!1};let J=L().passesEligibilityCache?.[z];if(!J)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Q,timestamp:V}=J,Y=Date.now()-V>h;return{eligible:Q,needsRefresh:Y,hasCache:!0}}function Uz(z){let N=zz[z.currency]??`${z.currency} `,J=z.amount_minor_units/100,Q=J%1===0?J.toString():J.toFixed(2);return`${N}${Q}`}function wz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.referrer_reward??null}function Fz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.remaining_passes??null}async function D(){if(B)return G("Passes: Reusing in-flight eligibility fetch"),B;let z=W()?.organizationUuid;if(!z)return null;return B=(async()=>{try{let N=await e(),J={...N,timestamp:Date.now()};return f((Q)=>({...Q,passesEligibilityCache:{...Q.passesEligibilityCache,[z]:J}})),G(`Passes eligibility cached for org ${z}: ${N.eligible}`),N}catch(N){return G("Failed to fetch and cache passes eligibility"),E(N),null}finally{B=null}})(),B}async function Jz(){if(!p())return null;let z=W()?.organizationUuid;if(!z)return null;let J=L().passesEligibilityCache?.[z],Q=Date.now();if(!J)return G("Passes: No cache, fetching eligibility in background (command unavailable this session)"),D(),null;if(Q-J.timestamp>h){G("Passes: Cache stale, returning cached data and refreshing in background"),D();let{timestamp:Y,...q}=J;return q}G("Passes: Using fresh cached eligibility data");let{timestamp:V,...X}=J;return X}async function Oz(){if(P())return;Jz()}var h=86400000,B=null,zz;var Nz=K(()=>{o();a();s();n();u();r();i();t();zz={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
+ export{v as iV,R as jV,Gz as kV,l as lV,vz as mV,Az as nV,Uz as oV,wz as pV,Fz as qV,Jz as rV,Oz as sV,Nz as tV};
@@ -0,0 +1,2 @@
1
+ import{wpa as l}from"./cli-0.6.4-yrfkm9my.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as C0,E as D0,a as E0,c as F0};