@claudiolabs/claudin 0.6.11 → 0.6.13

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 (890) hide show
  1. package/dist/chunks/AgentTool-0.6.13-372t6jvm.mjs +1 -0
  2. package/dist/chunks/App-0.6.13-qvfyfba9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.13-61en5qve.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +1 -0
  30. package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +3 -0
  31. package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +110 -0
  32. package/dist/chunks/api-0.6.13-1s3mg09p.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +1 -0
  35. package/dist/chunks/auth-0.6.13-586trvnj.mjs +1 -0
  36. package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +1 -0
  40. package/dist/chunks/branch-0.6.13-nncg27cq.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +1 -0
  46. package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +4 -0
  51. package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +1 -0
  54. package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +1 -0
  56. package/dist/chunks/cli-0.6.13-004msxtb.mjs +2 -0
  57. package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +24 -0
  58. package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +2 -0
  59. package/dist/chunks/cli-0.6.13-0602v59h.mjs +2 -0
  60. package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +2 -0
  61. package/dist/chunks/cli-0.6.13-0k53jyws.mjs +2 -0
  62. package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +2 -0
  63. package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +3 -0
  64. package/dist/chunks/cli-0.6.13-15925v1q.mjs +2 -0
  65. package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +3 -0
  66. package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +24 -0
  67. package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +18 -0
  68. package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +2 -0
  69. package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +2 -0
  70. package/dist/chunks/cli-0.6.13-27ey3345.mjs +17 -0
  71. package/dist/chunks/cli-0.6.13-2999v1f0.mjs +5 -0
  72. package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +2 -0
  73. package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +2 -0
  74. package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +5420 -0
  75. package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +2 -0
  76. package/dist/chunks/cli-0.6.13-35rszksn.mjs +2 -0
  77. package/dist/chunks/cli-0.6.13-3812a7q8.mjs +34 -0
  78. package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +3 -0
  79. package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +2 -0
  80. package/dist/chunks/cli-0.6.13-45x35nyh.mjs +2 -0
  81. package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +2 -0
  82. package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +2 -0
  83. package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +2 -0
  84. package/dist/chunks/cli-0.6.13-56b3061c.mjs +18 -0
  85. package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +42 -0
  86. package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +4 -0
  87. package/dist/chunks/cli-0.6.13-5qvssn7h.mjs +2 -0
  88. package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +2 -0
  89. package/dist/chunks/cli-0.6.13-643zsnv9.mjs +2 -0
  90. package/dist/chunks/cli-0.6.13-667dsr1w.mjs +2 -0
  91. package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +2 -0
  92. package/dist/chunks/cli-0.6.13-79mne5jt.mjs +2 -0
  93. package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +2 -0
  94. package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +2 -0
  95. package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +3 -0
  96. package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +2 -0
  97. package/dist/chunks/cli-0.6.13-82datd4w.mjs +2 -0
  98. package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +2 -0
  99. package/dist/chunks/cli-0.6.13-881js45c.mjs +2 -0
  100. package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +2 -0
  101. package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +3 -0
  102. package/dist/chunks/cli-0.6.13-949racwr.mjs +7 -0
  103. package/dist/chunks/cli-0.6.13-94nwan0d.mjs +2 -0
  104. package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +2 -0
  105. package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +2 -0
  106. package/dist/chunks/cli-0.6.13-9wktvaax.mjs +50 -0
  107. package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +58 -0
  108. package/dist/chunks/cli-0.6.13-aekttw5a.mjs +2 -0
  109. package/dist/chunks/cli-0.6.13-ajc8203j.mjs +2 -0
  110. package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +2 -0
  111. package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +2 -0
  112. package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +16 -0
  113. package/dist/chunks/cli-0.6.13-b55baxv4.mjs +2 -0
  114. package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +2 -0
  115. package/dist/chunks/cli-0.6.13-c3452432.mjs +5 -0
  116. package/dist/chunks/cli-0.6.13-cc118njq.mjs +2 -0
  117. package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +2 -0
  118. package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +2 -0
  119. package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +2 -0
  120. package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +2 -0
  121. package/dist/chunks/cli-0.6.13-da6fhpes.mjs +133 -0
  122. package/dist/chunks/cli-0.6.13-dada1afp.mjs +6 -0
  123. package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +2 -0
  124. package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +2 -0
  125. package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +2 -0
  126. package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +2 -0
  127. package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +2 -0
  128. package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +2 -0
  129. package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +2 -0
  130. package/dist/chunks/cli-0.6.13-esv4y00y.mjs +2 -0
  131. package/dist/chunks/cli-0.6.13-etytm730.mjs +2 -0
  132. package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +4 -0
  133. package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +6 -0
  134. package/dist/chunks/cli-0.6.13-f67v536f.mjs +59 -0
  135. package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +2 -0
  136. package/dist/chunks/cli-0.6.13-fkaxh655.mjs +2 -0
  137. package/dist/chunks/cli-0.6.13-fspszw8w.mjs +2 -0
  138. package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +10 -0
  139. package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +2 -0
  140. package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +2 -0
  141. package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +4 -0
  142. package/dist/chunks/cli-0.6.13-g65dfg11.mjs +6 -0
  143. package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +2 -0
  144. package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +2 -0
  145. package/dist/chunks/cli-0.6.13-grrshx1z.mjs +2 -0
  146. package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +2 -0
  147. package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +2 -0
  148. package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +2 -0
  149. package/dist/chunks/cli-0.6.13-h5dej6se.mjs +3 -0
  150. package/dist/chunks/cli-0.6.13-hd0sd535.mjs +193 -0
  151. package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +12 -0
  152. package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +3 -0
  153. package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +2 -0
  154. package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +4 -0
  155. package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +133 -0
  156. package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +2 -0
  157. package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +2 -0
  158. package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +3 -0
  159. package/dist/chunks/cli-0.6.13-k0kyv254.mjs +2 -0
  160. package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +2 -0
  161. package/dist/chunks/cli-0.6.13-kdm4832x.mjs +2 -0
  162. package/dist/chunks/cli-0.6.13-kekrwb08.mjs +45 -0
  163. package/dist/chunks/cli-0.6.13-kmg491hy.mjs +2 -0
  164. package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +12 -0
  165. package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +3 -0
  166. package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +2 -0
  167. package/dist/chunks/cli-0.6.13-me17wefv.mjs +2 -0
  168. package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +2 -0
  169. package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +39 -0
  170. package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +2 -0
  171. package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +2 -0
  172. package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +15 -0
  173. package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +4 -0
  174. package/dist/chunks/cli-0.6.13-nqd696hv.mjs +2 -0
  175. package/dist/chunks/cli-0.6.13-nvcr131g.mjs +4 -0
  176. package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +8 -0
  177. package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +2 -0
  178. package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +3 -0
  179. package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +2 -0
  180. package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +3 -0
  181. package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +2 -0
  182. package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +2 -0
  183. package/dist/chunks/cli-0.6.13-prh9py3z.mjs +2 -0
  184. package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +2 -0
  185. package/dist/chunks/cli-0.6.13-q161snt1.mjs +2 -0
  186. package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +2 -0
  187. package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +2 -0
  188. package/dist/chunks/cli-0.6.13-q8qzja14.mjs +2 -0
  189. package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +2 -0
  190. package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +4 -0
  191. package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +2 -0
  192. package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +2 -0
  193. package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +2 -0
  194. package/dist/chunks/cli-0.6.13-qyd73z97.mjs +2 -0
  195. package/dist/chunks/cli-0.6.13-r043ksv1.mjs +1 -0
  196. package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +4 -0
  197. package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +2 -0
  198. package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +2 -0
  199. package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +2 -0
  200. package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +6 -0
  201. package/dist/chunks/cli-0.6.13-s2vxndky.mjs +2 -0
  202. package/dist/chunks/cli-0.6.13-s3r638fw.mjs +2 -0
  203. package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +4 -0
  204. package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +3 -0
  205. package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +2 -0
  206. package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +15 -0
  207. package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +2 -0
  208. package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +2 -0
  209. package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +2 -0
  210. package/dist/chunks/cli-0.6.13-tss2yk53.mjs +2 -0
  211. package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +2 -0
  212. package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +2 -0
  213. package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +17 -0
  214. package/dist/chunks/cli-0.6.13-v05nfcar.mjs +2 -0
  215. package/dist/chunks/cli-0.6.13-v160yjcc.mjs +2 -0
  216. package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +2 -0
  217. package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +2 -0
  218. package/dist/chunks/cli-0.6.13-v824ppa4.mjs +3 -0
  219. package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +2 -0
  220. package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +2 -0
  221. package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +2 -0
  222. package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +2 -0
  223. package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +2 -0
  224. package/dist/chunks/cli-0.6.13-w039mymy.mjs +2 -0
  225. package/dist/chunks/cli-0.6.13-w0qrn825.mjs +2 -0
  226. package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +2 -0
  227. package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +2 -0
  228. package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +5 -0
  229. package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +20 -0
  230. package/dist/chunks/cli-0.6.13-wtc8585b.mjs +2 -0
  231. package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +2 -0
  232. package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +2 -0
  233. package/dist/chunks/cli-0.6.13-xdedyafk.mjs +12 -0
  234. package/dist/chunks/cli-0.6.13-xf37gba3.mjs +21 -0
  235. package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +2 -0
  236. package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +2 -0
  237. package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +2 -0
  238. package/dist/chunks/cli-0.6.13-y20earfr.mjs +2 -0
  239. package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +2 -0
  240. package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +28 -0
  241. package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +2 -0
  242. package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +67 -0
  243. package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +2 -0
  244. package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +2 -0
  245. package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +2 -0
  246. package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +2 -0
  247. package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +9 -0
  248. package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +25 -0
  249. package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +15 -0
  250. package/dist/chunks/cli-0.6.13-ze0ah657.mjs +4 -0
  251. package/dist/chunks/cli-0.6.13-zktd03aq.mjs +2 -0
  252. package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +2 -0
  253. package/dist/chunks/client-0.6.13-apag8p3w.mjs +1 -0
  254. package/dist/chunks/color-0.6.13-m7e3xes9.mjs +1 -0
  255. package/dist/chunks/compact-0.6.13-064k380y.mjs +3 -0
  256. package/dist/chunks/config-0.6.13-2gskfa7r.mjs +1 -0
  257. package/dist/chunks/config-0.6.13-m7tbch3j.mjs +1 -0
  258. package/dist/chunks/constants-0.6.13-bq183whd.mjs +1 -0
  259. package/dist/chunks/context-0.6.13-4jm66js8.mjs +1 -0
  260. package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +1 -0
  261. package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +1 -0
  262. package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +1 -0
  263. package/dist/chunks/copy-0.6.13-11ksdws3.mjs +9 -0
  264. package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +1 -0
  265. package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +1 -0
  266. package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +1 -0
  267. package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +1 -0
  268. package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +1367 -0
  269. package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +1 -0
  270. package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +1 -0
  271. package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +1 -0
  272. package/dist/chunks/diff-0.6.13-3qr723e3.mjs +1 -0
  273. package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +1 -0
  274. package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +1 -0
  275. package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +1 -0
  276. package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +10 -0
  277. package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +1 -0
  278. package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +1 -0
  279. package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +1 -0
  280. package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +1 -0
  281. package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +1 -0
  282. package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +1 -0
  283. package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +1 -0
  284. package/dist/chunks/explorer-0.6.13-g670396m.mjs +1 -0
  285. package/dist/chunks/export-0.6.13-zytxcpn5.mjs +2 -0
  286. package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +1 -0
  287. package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +1 -0
  288. package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +1 -0
  289. package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +14 -0
  290. package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +1 -0
  291. package/dist/chunks/git-0.6.13-r45r70q4.mjs +1 -0
  292. package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +1 -0
  293. package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +4 -0
  294. package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +1 -0
  295. package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +1 -0
  296. package/dist/chunks/headless-0.6.13-gfageb5h.mjs +2 -0
  297. package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +6 -0
  298. package/dist/chunks/help-0.6.13-781b4zzf.mjs +1 -0
  299. package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +3 -0
  300. package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +1 -0
  301. package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +79 -0
  302. package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +3 -0
  303. package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +1 -0
  304. package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +1 -0
  305. package/dist/chunks/index-0.6.13-22g8yp33.mjs +1 -0
  306. package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +1 -0
  307. package/dist/chunks/index-0.6.13-3yrze12y.mjs +2 -0
  308. package/dist/chunks/index-0.6.13-4mx71hjt.mjs +2 -0
  309. package/dist/chunks/index-0.6.13-68g8rnf9.mjs +1 -0
  310. package/dist/chunks/index-0.6.13-6t8yz88d.mjs +1 -0
  311. package/dist/chunks/index-0.6.13-af1dgcmj.mjs +1 -0
  312. package/dist/chunks/index-0.6.13-afmvxwx2.mjs +1 -0
  313. package/dist/chunks/index-0.6.13-by0wfak3.mjs +9 -0
  314. package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +1 -0
  315. package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +1 -0
  316. package/dist/chunks/index-0.6.13-jte6phkv.mjs +1 -0
  317. package/dist/chunks/index-0.6.13-m632g3gy.mjs +1 -0
  318. package/dist/chunks/index-0.6.13-mwpm4arf.mjs +5 -0
  319. package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +30 -0
  320. package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +1 -0
  321. package/dist/chunks/index-0.6.13-ptnyngf8.mjs +1 -0
  322. package/dist/chunks/index-0.6.13-q3shbg14.mjs +1 -0
  323. package/dist/chunks/index-0.6.13-qbgadtxv.mjs +1 -0
  324. package/dist/chunks/index-0.6.13-sv4q66cp.mjs +1 -0
  325. package/dist/chunks/index-0.6.13-waxz0ekk.mjs +1 -0
  326. package/dist/chunks/index-0.6.13-why7ggz3.mjs +9 -0
  327. package/dist/chunks/index-0.6.13-y16k48ab.mjs +1 -0
  328. package/dist/chunks/init-0.6.13-4hnytb22.mjs +1 -0
  329. package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +1 -0
  330. package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +1 -0
  331. package/dist/chunks/insights-0.6.13-jydg844c.mjs +870 -0
  332. package/dist/chunks/install-0.6.13-n2sd9y79.mjs +1 -0
  333. package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +149 -0
  334. package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +1 -0
  335. package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +1 -0
  336. package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +1 -0
  337. package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +2 -0
  338. package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +2 -0
  339. package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +1 -0
  340. package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +1 -0
  343. package/dist/chunks/log-0.6.13-k8w72xt1.mjs +1 -0
  344. package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +1 -0
  345. package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +1 -0
  347. package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +4 -0
  348. package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +17 -0
  349. package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +1 -0
  350. package/dist/chunks/memory-0.6.13-atsckryz.mjs +3 -0
  351. package/dist/chunks/model-0.6.13-0atttv57.mjs +1 -0
  352. package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +2 -0
  353. package/dist/chunks/node-0.6.13-x2bbeer9.mjs +12 -0
  354. package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +1 -0
  355. package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +14 -0
  356. package/dist/chunks/output-style-0.6.13-m28me769.mjs +1 -0
  357. package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +1 -0
  358. package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +1 -0
  359. package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +1 -0
  360. package/dist/chunks/passes-0.6.13-q60h610m.mjs +1 -0
  361. package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +3 -0
  362. package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +1 -0
  363. package/dist/chunks/plan-0.6.13-jnph14bx.mjs +1 -0
  364. package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +1 -0
  365. package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +29 -0
  366. package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +1 -0
  367. package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +9 -0
  368. package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +2 -0
  369. package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +57 -0
  370. package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +1 -0
  371. package/dist/chunks/process-0.6.13-38dsvzca.mjs +1 -0
  372. package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +1 -0
  373. package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +9 -0
  374. package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +1 -0
  375. package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +1 -0
  376. package/dist/chunks/prompts-0.6.13-702ak30b.mjs +1 -0
  377. package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +13 -0
  378. package/dist/chunks/provider-0.6.13-2sx115qq.mjs +2 -0
  379. package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +1 -0
  380. package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +6 -0
  381. package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +1 -0
  382. package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +34 -0
  383. package/dist/chunks/registry-0.6.13-pstf339a.mjs +1 -0
  384. package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +5 -0
  385. package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +2 -0
  386. package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +1 -0
  387. package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +1 -0
  388. package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +1 -0
  389. package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +1 -0
  390. package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +1 -0
  391. package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +1 -0
  392. package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +2 -0
  393. package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +1 -0
  394. package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +1 -0
  395. package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +1 -0
  396. package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +1 -0
  397. package/dist/chunks/session-0.6.13-83jr96cj.mjs +2 -0
  398. package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +1 -0
  399. package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +1 -0
  400. package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +1 -0
  401. package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +1 -0
  402. package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +5 -0
  403. package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +1 -0
  404. package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +1 -0
  405. package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +1 -0
  406. package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +1 -0
  407. package/dist/chunks/state-0.6.13-257cjw4h.mjs +1 -0
  408. package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +6 -0
  409. package/dist/chunks/status-0.6.13-cefspgtr.mjs +1 -0
  410. package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +1 -0
  411. package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +1 -0
  412. package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +1 -0
  413. package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +1 -0
  414. package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +1 -0
  415. package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +1 -0
  416. package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +1 -0
  417. package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +1 -0
  418. package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +1 -0
  419. package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +1 -0
  420. package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +1 -0
  421. package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +1 -0
  422. package/dist/chunks/tools-0.6.13-heefxcxe.mjs +1 -0
  423. package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +1 -0
  424. package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +69 -0
  425. package/dist/chunks/types-0.6.13-26eegce9.mjs +1 -0
  426. package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +4 -0
  427. package/dist/chunks/update-0.6.13-tj94pp6r.mjs +86 -0
  428. package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +1 -0
  429. package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +7 -0
  430. package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +14 -0
  431. package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +1 -0
  432. package/dist/chunks/usage-0.6.13-whrgny68.mjs +1 -0
  433. package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +1 -0
  434. package/dist/chunks/utils-0.6.13-jybbphy0.mjs +1 -0
  435. package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +1 -0
  436. package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +1 -0
  437. package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +132 -0
  438. package/dist/chunks/worktree-0.6.13-efnvp677.mjs +1 -0
  439. package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +1 -0
  440. package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +7 -0
  441. package/dist/claudin-vscode.vsix +0 -0
  442. package/dist/cli.mjs +2 -2
  443. package/package.json +5 -5
  444. package/dist/chunks/AgentTool-0.6.11-r8d0ds60.mjs +0 -1
  445. package/dist/chunks/App-0.6.11-31gtkew5.mjs +0 -1
  446. package/dist/chunks/ApproveApiKey-0.6.11-2xpxrqhj.mjs +0 -1
  447. package/dist/chunks/AssistantSessionChooser-0.6.11-s62gfmdn.mjs +0 -1
  448. package/dist/chunks/AutoModeOptInDialog-0.6.11-g7memr9h.mjs +0 -1
  449. package/dist/chunks/BypassPermissionsModeDialog-0.6.11-cm6p2qt6.mjs +0 -1
  450. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.11-z9chf7mf.mjs +0 -1
  451. package/dist/chunks/ConsoleOAuthFlow-0.6.11-z8rkxtp9.mjs +0 -1
  452. package/dist/chunks/DiffDialog-0.6.11-p0pgcety.mjs +0 -7
  453. package/dist/chunks/Doctor-0.6.11-k0qnn706.mjs +0 -1
  454. package/dist/chunks/ExplorerDialog-0.6.11-r03g3kvz.mjs +0 -6
  455. package/dist/chunks/Grove-0.6.11-8d22h28t.mjs +0 -1
  456. package/dist/chunks/ITermBackend-0.6.11-pmh335cp.mjs +0 -1
  457. package/dist/chunks/InvalidConfigDialog-0.6.11-qxh6rxba.mjs +0 -1
  458. package/dist/chunks/InvalidSettingsDialog-0.6.11-3vzkgyet.mjs +0 -1
  459. package/dist/chunks/MigrationDialog-0.6.11-5a9bh8ga.mjs +0 -1
  460. package/dist/chunks/Onboarding-0.6.11-bphsrszr.mjs +0 -1
  461. package/dist/chunks/ProviderManager-0.6.11-xbere7nd.mjs +0 -1
  462. package/dist/chunks/REPL-0.6.11-fjyx81d3.mjs +0 -1
  463. package/dist/chunks/ResumeConversation-0.6.11-c9gkrmf1.mjs +0 -1
  464. package/dist/chunks/SnapshotUpdateDialog-0.6.11-z0ahgcq3.mjs +0 -1
  465. package/dist/chunks/TeleportProgress-0.6.11-a4jnsc85.mjs +0 -1
  466. package/dist/chunks/TeleportRepoMismatchDialog-0.6.11-fp47z50a.mjs +0 -1
  467. package/dist/chunks/TeleportResumeWrapper-0.6.11-4j8x272k.mjs +0 -1
  468. package/dist/chunks/TmuxBackend-0.6.11-vz6gt69a.mjs +0 -9
  469. package/dist/chunks/ToolSearchTool-0.6.11-n238hj6m.mjs +0 -1
  470. package/dist/chunks/TrustDialog-0.6.11-pnhxcp0r.mjs +0 -1
  471. package/dist/chunks/activeProvider-0.6.11-gpv9357c.mjs +0 -1
  472. package/dist/chunks/add-dir-0.6.11-tx4w3jyc.mjs +0 -1
  473. package/dist/chunks/agents-0.6.11-2a9tyqet.mjs +0 -3
  474. package/dist/chunks/agents-0.6.11-vrf5te1h.mjs +0 -110
  475. package/dist/chunks/api-0.6.11-kfd2tz28.mjs +0 -1
  476. package/dist/chunks/asciicast-0.6.11-hkv84gkg.mjs +0 -1
  477. package/dist/chunks/assistant-0.6.11-wpa7rt5b.mjs +0 -1
  478. package/dist/chunks/auth-0.6.11-0afa68y1.mjs +0 -1
  479. package/dist/chunks/auth-0.6.11-3bje6qr0.mjs +0 -1
  480. package/dist/chunks/autoMode-0.6.11-3wrcedp0.mjs +0 -48
  481. package/dist/chunks/autoUpdater-0.6.11-0vbkadyk.mjs +0 -1
  482. package/dist/chunks/backgroundHousekeeping-0.6.11-499vsbem.mjs +0 -1
  483. package/dist/chunks/branch-0.6.11-b6ddxdz4.mjs +0 -4
  484. package/dist/chunks/bridge-0.6.11-s9q15zwp.mjs +0 -2
  485. package/dist/chunks/bridgeConfig-0.6.11-aq9ss0nj.mjs +0 -1
  486. package/dist/chunks/bridgeEnabled-0.6.11-4xr76j32.mjs +0 -1
  487. package/dist/chunks/bridgeMain-0.6.11-0aqx1yv3.mjs +0 -88
  488. package/dist/chunks/bridgePointer-0.6.11-a7jrmhet.mjs +0 -1
  489. package/dist/chunks/btw-0.6.11-mep49mwv.mjs +0 -1
  490. package/dist/chunks/buddy-0.6.11-aey0xb05.mjs +0 -3
  491. package/dist/chunks/cacache-0.6.11-ztbestgj.mjs +0 -1
  492. package/dist/chunks/cache-probe-0.6.11-g9j002w5.mjs +0 -21
  493. package/dist/chunks/cacheStats-0.6.11-vv3h8pks.mjs +0 -4
  494. package/dist/chunks/caches-0.6.11-17mgtz55.mjs +0 -1
  495. package/dist/chunks/claudeDesktop-0.6.11-5yfgvhrc.mjs +0 -1
  496. package/dist/chunks/claudemd-0.6.11-e8md3t8h.mjs +0 -1
  497. package/dist/chunks/clear-0.6.11-jx65n7qp.mjs +0 -1
  498. package/dist/chunks/clearTerminal-0.6.11-4mvdhkdp.mjs +0 -1
  499. package/dist/chunks/cli-0.6.11-00pzeepb.mjs +0 -2
  500. package/dist/chunks/cli-0.6.11-052bg705.mjs +0 -2
  501. package/dist/chunks/cli-0.6.11-0a1yneth.mjs +0 -3
  502. package/dist/chunks/cli-0.6.11-0a5nxb24.mjs +0 -2
  503. package/dist/chunks/cli-0.6.11-0c0dc88n.mjs +0 -18
  504. package/dist/chunks/cli-0.6.11-0fk53vjx.mjs +0 -2
  505. package/dist/chunks/cli-0.6.11-0hm8hzyd.mjs +0 -2
  506. package/dist/chunks/cli-0.6.11-0qyj157c.mjs +0 -2
  507. package/dist/chunks/cli-0.6.11-0y2xzq24.mjs +0 -2
  508. package/dist/chunks/cli-0.6.11-10w38yz0.mjs +0 -2
  509. package/dist/chunks/cli-0.6.11-15h0vp87.mjs +0 -4
  510. package/dist/chunks/cli-0.6.11-173vp64j.mjs +0 -2
  511. package/dist/chunks/cli-0.6.11-1j4wg380.mjs +0 -2
  512. package/dist/chunks/cli-0.6.11-1mvb95b1.mjs +0 -2
  513. package/dist/chunks/cli-0.6.11-1n2a62nt.mjs +0 -59
  514. package/dist/chunks/cli-0.6.11-1t2njyn0.mjs +0 -2
  515. package/dist/chunks/cli-0.6.11-1w8f6pcg.mjs +0 -2
  516. package/dist/chunks/cli-0.6.11-25jht58e.mjs +0 -2
  517. package/dist/chunks/cli-0.6.11-2c9khav6.mjs +0 -3
  518. package/dist/chunks/cli-0.6.11-2dzp9494.mjs +0 -2
  519. package/dist/chunks/cli-0.6.11-2kjpgwq8.mjs +0 -2
  520. package/dist/chunks/cli-0.6.11-2m6rny10.mjs +0 -2
  521. package/dist/chunks/cli-0.6.11-2qd0rf15.mjs +0 -28
  522. package/dist/chunks/cli-0.6.11-2qh8cr36.mjs +0 -2
  523. package/dist/chunks/cli-0.6.11-2rprqzgh.mjs +0 -2
  524. package/dist/chunks/cli-0.6.11-2zqez4wd.mjs +0 -2
  525. package/dist/chunks/cli-0.6.11-32hg380d.mjs +0 -9
  526. package/dist/chunks/cli-0.6.11-36ps870f.mjs +0 -2
  527. package/dist/chunks/cli-0.6.11-3qvr6h78.mjs +0 -2
  528. package/dist/chunks/cli-0.6.11-3zjz43qx.mjs +0 -3
  529. package/dist/chunks/cli-0.6.11-46vdysh0.mjs +0 -3
  530. package/dist/chunks/cli-0.6.11-4e5ar3bg.mjs +0 -2
  531. package/dist/chunks/cli-0.6.11-4gej9br3.mjs +0 -17
  532. package/dist/chunks/cli-0.6.11-4gpj4gsd.mjs +0 -2
  533. package/dist/chunks/cli-0.6.11-4hy3wgq8.mjs +0 -2
  534. package/dist/chunks/cli-0.6.11-4kfxn8yd.mjs +0 -2
  535. package/dist/chunks/cli-0.6.11-4q7czjpx.mjs +0 -2
  536. package/dist/chunks/cli-0.6.11-4wz0g55m.mjs +0 -2
  537. package/dist/chunks/cli-0.6.11-53d996vr.mjs +0 -2
  538. package/dist/chunks/cli-0.6.11-5b48xhwk.mjs +0 -2
  539. package/dist/chunks/cli-0.6.11-5c798z8d.mjs +0 -10
  540. package/dist/chunks/cli-0.6.11-5d4nqcar.mjs +0 -4
  541. package/dist/chunks/cli-0.6.11-5k9p5pks.mjs +0 -2
  542. package/dist/chunks/cli-0.6.11-5q70pnak.mjs +0 -21
  543. package/dist/chunks/cli-0.6.11-5rbq8w3k.mjs +0 -2
  544. package/dist/chunks/cli-0.6.11-5rmv3rjz.mjs +0 -2
  545. package/dist/chunks/cli-0.6.11-5s18vts2.mjs +0 -2
  546. package/dist/chunks/cli-0.6.11-64xw0etq.mjs +0 -4
  547. package/dist/chunks/cli-0.6.11-674bvc47.mjs +0 -2
  548. package/dist/chunks/cli-0.6.11-6c4r2426.mjs +0 -2
  549. package/dist/chunks/cli-0.6.11-6yp7zyby.mjs +0 -15
  550. package/dist/chunks/cli-0.6.11-716cqfeb.mjs +0 -2
  551. package/dist/chunks/cli-0.6.11-7eknaa64.mjs +0 -3
  552. package/dist/chunks/cli-0.6.11-7gxy0qb2.mjs +0 -133
  553. package/dist/chunks/cli-0.6.11-7hk2gber.mjs +0 -2
  554. package/dist/chunks/cli-0.6.11-7mnmrj04.mjs +0 -2
  555. package/dist/chunks/cli-0.6.11-7vypz42w.mjs +0 -3
  556. package/dist/chunks/cli-0.6.11-887jj6fe.mjs +0 -2
  557. package/dist/chunks/cli-0.6.11-8ar69w9a.mjs +0 -2
  558. package/dist/chunks/cli-0.6.11-8eerj3xn.mjs +0 -2
  559. package/dist/chunks/cli-0.6.11-8f0jfjxs.mjs +0 -2
  560. package/dist/chunks/cli-0.6.11-8ms0bjze.mjs +0 -133
  561. package/dist/chunks/cli-0.6.11-8n8a5y9t.mjs +0 -3
  562. package/dist/chunks/cli-0.6.11-8ph76y69.mjs +0 -2
  563. package/dist/chunks/cli-0.6.11-8yv9yjve.mjs +0 -5
  564. package/dist/chunks/cli-0.6.11-927enz8e.mjs +0 -2
  565. package/dist/chunks/cli-0.6.11-93mbpc2x.mjs +0 -6
  566. package/dist/chunks/cli-0.6.11-9d57wb7j.mjs +0 -2
  567. package/dist/chunks/cli-0.6.11-9dm066ew.mjs +0 -16
  568. package/dist/chunks/cli-0.6.11-9q72m1zw.mjs +0 -2
  569. package/dist/chunks/cli-0.6.11-9w5fs9qs.mjs +0 -2
  570. package/dist/chunks/cli-0.6.11-9wxvs847.mjs +0 -2
  571. package/dist/chunks/cli-0.6.11-a0g5x5vr.mjs +0 -2
  572. package/dist/chunks/cli-0.6.11-a1epsfk8.mjs +0 -42
  573. package/dist/chunks/cli-0.6.11-a2ansh6y.mjs +0 -2
  574. package/dist/chunks/cli-0.6.11-a78px81d.mjs +0 -2
  575. package/dist/chunks/cli-0.6.11-abv5tcf5.mjs +0 -2
  576. package/dist/chunks/cli-0.6.11-ag6c6pp0.mjs +0 -2
  577. package/dist/chunks/cli-0.6.11-ahfnvt9w.mjs +0 -2
  578. package/dist/chunks/cli-0.6.11-and7dqq1.mjs +0 -2
  579. package/dist/chunks/cli-0.6.11-apqqmhjs.mjs +0 -2
  580. package/dist/chunks/cli-0.6.11-ar9we9b3.mjs +0 -6
  581. package/dist/chunks/cli-0.6.11-asrrshp1.mjs +0 -2
  582. package/dist/chunks/cli-0.6.11-atkxdhw4.mjs +0 -18
  583. package/dist/chunks/cli-0.6.11-b1gbnjtd.mjs +0 -3
  584. package/dist/chunks/cli-0.6.11-bgrb1hm3.mjs +0 -20
  585. package/dist/chunks/cli-0.6.11-bk2qdg9h.mjs +0 -2
  586. package/dist/chunks/cli-0.6.11-bm8b1dzg.mjs +0 -2
  587. package/dist/chunks/cli-0.6.11-bzpyzzp5.mjs +0 -2
  588. package/dist/chunks/cli-0.6.11-cjsjjdxm.mjs +0 -12
  589. package/dist/chunks/cli-0.6.11-cncdrbgd.mjs +0 -2
  590. package/dist/chunks/cli-0.6.11-dar8tdfv.mjs +0 -2
  591. package/dist/chunks/cli-0.6.11-dhnnwew7.mjs +0 -2
  592. package/dist/chunks/cli-0.6.11-dr7edc1g.mjs +0 -7
  593. package/dist/chunks/cli-0.6.11-dth46pzp.mjs +0 -4
  594. package/dist/chunks/cli-0.6.11-e0vzetrn.mjs +0 -1
  595. package/dist/chunks/cli-0.6.11-e4pjzk3d.mjs +0 -5
  596. package/dist/chunks/cli-0.6.11-eacagr72.mjs +0 -2
  597. package/dist/chunks/cli-0.6.11-ec7158a2.mjs +0 -15
  598. package/dist/chunks/cli-0.6.11-egs8xqkf.mjs +0 -4
  599. package/dist/chunks/cli-0.6.11-eqjbate8.mjs +0 -2
  600. package/dist/chunks/cli-0.6.11-fgwrsd7h.mjs +0 -2
  601. package/dist/chunks/cli-0.6.11-fjf6a1gs.mjs +0 -2
  602. package/dist/chunks/cli-0.6.11-fp1tdhey.mjs +0 -2
  603. package/dist/chunks/cli-0.6.11-fq2qa1zj.mjs +0 -2
  604. package/dist/chunks/cli-0.6.11-g4kp283f.mjs +0 -2
  605. package/dist/chunks/cli-0.6.11-gk260gdw.mjs +0 -2
  606. package/dist/chunks/cli-0.6.11-gqjpdm6p.mjs +0 -2
  607. package/dist/chunks/cli-0.6.11-gqxm9jz1.mjs +0 -2
  608. package/dist/chunks/cli-0.6.11-grhakq5f.mjs +0 -67
  609. package/dist/chunks/cli-0.6.11-gsz2891g.mjs +0 -2
  610. package/dist/chunks/cli-0.6.11-gwzwm546.mjs +0 -2
  611. package/dist/chunks/cli-0.6.11-h3hyxwem.mjs +0 -2
  612. package/dist/chunks/cli-0.6.11-hez5dm92.mjs +0 -2
  613. package/dist/chunks/cli-0.6.11-hfc20b2b.mjs +0 -2
  614. package/dist/chunks/cli-0.6.11-hjact5zq.mjs +0 -2
  615. package/dist/chunks/cli-0.6.11-hr8t3q70.mjs +0 -2
  616. package/dist/chunks/cli-0.6.11-hwx276s9.mjs +0 -2
  617. package/dist/chunks/cli-0.6.11-j17p2txv.mjs +0 -24
  618. package/dist/chunks/cli-0.6.11-j255v7ry.mjs +0 -2
  619. package/dist/chunks/cli-0.6.11-j4nh0jma.mjs +0 -2
  620. package/dist/chunks/cli-0.6.11-j4z3561r.mjs +0 -25
  621. package/dist/chunks/cli-0.6.11-jpy86ktt.mjs +0 -34
  622. package/dist/chunks/cli-0.6.11-jysha43m.mjs +0 -2
  623. package/dist/chunks/cli-0.6.11-k4ny666v.mjs +0 -4
  624. package/dist/chunks/cli-0.6.11-ka6t3b6m.mjs +0 -193
  625. package/dist/chunks/cli-0.6.11-kcb9xgs5.mjs +0 -58
  626. package/dist/chunks/cli-0.6.11-ma5kx9e4.mjs +0 -2
  627. package/dist/chunks/cli-0.6.11-mjdvh04x.mjs +0 -4
  628. package/dist/chunks/cli-0.6.11-mz3jbzq0.mjs +0 -2
  629. package/dist/chunks/cli-0.6.11-n46bkq7s.mjs +0 -2
  630. package/dist/chunks/cli-0.6.11-nds6sctv.mjs +0 -45
  631. package/dist/chunks/cli-0.6.11-nmtz5xgh.mjs +0 -4
  632. package/dist/chunks/cli-0.6.11-nrpzkrbs.mjs +0 -2
  633. package/dist/chunks/cli-0.6.11-nwgarns7.mjs +0 -24
  634. package/dist/chunks/cli-0.6.11-p1r07bx9.mjs +0 -2
  635. package/dist/chunks/cli-0.6.11-p8kmd5p7.mjs +0 -2
  636. package/dist/chunks/cli-0.6.11-pj3s60na.mjs +0 -4
  637. package/dist/chunks/cli-0.6.11-pqw3gejv.mjs +0 -2
  638. package/dist/chunks/cli-0.6.11-prd8de37.mjs +0 -2
  639. package/dist/chunks/cli-0.6.11-pyq1vqen.mjs +0 -12
  640. package/dist/chunks/cli-0.6.11-q19kyk5m.mjs +0 -2
  641. package/dist/chunks/cli-0.6.11-q69dj7n7.mjs +0 -2
  642. package/dist/chunks/cli-0.6.11-qn8q28j0.mjs +0 -2
  643. package/dist/chunks/cli-0.6.11-qrepyyjz.mjs +0 -2
  644. package/dist/chunks/cli-0.6.11-qrpn4y6z.mjs +0 -2
  645. package/dist/chunks/cli-0.6.11-qvgvamtz.mjs +0 -50
  646. package/dist/chunks/cli-0.6.11-qwxvwqyy.mjs +0 -2
  647. package/dist/chunks/cli-0.6.11-r03wa9n7.mjs +0 -2
  648. package/dist/chunks/cli-0.6.11-r2k2ccbq.mjs +0 -4
  649. package/dist/chunks/cli-0.6.11-r47v4jpv.mjs +0 -2
  650. package/dist/chunks/cli-0.6.11-re85rfvm.mjs +0 -2
  651. package/dist/chunks/cli-0.6.11-rev9sza4.mjs +0 -2
  652. package/dist/chunks/cli-0.6.11-rhe8j9bj.mjs +0 -6
  653. package/dist/chunks/cli-0.6.11-rk3wv9rd.mjs +0 -3
  654. package/dist/chunks/cli-0.6.11-s08zp9vw.mjs +0 -15
  655. package/dist/chunks/cli-0.6.11-s70nfce8.mjs +0 -2
  656. package/dist/chunks/cli-0.6.11-saca1d95.mjs +0 -2
  657. package/dist/chunks/cli-0.6.11-sgfx77xv.mjs +0 -12
  658. package/dist/chunks/cli-0.6.11-sjew1xkt.mjs +0 -3
  659. package/dist/chunks/cli-0.6.11-str7ytsd.mjs +0 -2
  660. package/dist/chunks/cli-0.6.11-sw6n6a3c.mjs +0 -2
  661. package/dist/chunks/cli-0.6.11-t4cxwajg.mjs +0 -39
  662. package/dist/chunks/cli-0.6.11-t66hga70.mjs +0 -2
  663. package/dist/chunks/cli-0.6.11-tjkxcvmn.mjs +0 -2
  664. package/dist/chunks/cli-0.6.11-trf46709.mjs +0 -17
  665. package/dist/chunks/cli-0.6.11-tstjs83y.mjs +0 -2
  666. package/dist/chunks/cli-0.6.11-ttsapz1k.mjs +0 -2
  667. package/dist/chunks/cli-0.6.11-tz9vtvwj.mjs +0 -2
  668. package/dist/chunks/cli-0.6.11-tzg5rhz9.mjs +0 -2
  669. package/dist/chunks/cli-0.6.11-v2v9mbjf.mjs +0 -8
  670. package/dist/chunks/cli-0.6.11-vycwwxt9.mjs +0 -2
  671. package/dist/chunks/cli-0.6.11-w022v2hv.mjs +0 -2
  672. package/dist/chunks/cli-0.6.11-w30nfz69.mjs +0 -2
  673. package/dist/chunks/cli-0.6.11-wa5scsze.mjs +0 -2
  674. package/dist/chunks/cli-0.6.11-wc0n1413.mjs +0 -2
  675. package/dist/chunks/cli-0.6.11-wjhhh1h4.mjs +0 -2
  676. package/dist/chunks/cli-0.6.11-wk812e4g.mjs +0 -2
  677. package/dist/chunks/cli-0.6.11-wz5gb96r.mjs +0 -6
  678. package/dist/chunks/cli-0.6.11-x2cj7p54.mjs +0 -2
  679. package/dist/chunks/cli-0.6.11-x5jwra8g.mjs +0 -2
  680. package/dist/chunks/cli-0.6.11-x6xp82sp.mjs +0 -2
  681. package/dist/chunks/cli-0.6.11-xb91n8pp.mjs +0 -2
  682. package/dist/chunks/cli-0.6.11-xgt8n37g.mjs +0 -3
  683. package/dist/chunks/cli-0.6.11-xj7thtn5.mjs +0 -5
  684. package/dist/chunks/cli-0.6.11-xqxcv5e9.mjs +0 -3
  685. package/dist/chunks/cli-0.6.11-xvd614xn.mjs +0 -2
  686. package/dist/chunks/cli-0.6.11-xvs7cq58.mjs +0 -2
  687. package/dist/chunks/cli-0.6.11-y8gv4gse.mjs +0 -2
  688. package/dist/chunks/cli-0.6.11-y9amtdt3.mjs +0 -2
  689. package/dist/chunks/cli-0.6.11-yf5rhdnx.mjs +0 -3
  690. package/dist/chunks/cli-0.6.11-yg9ympxv.mjs +0 -2
  691. package/dist/chunks/cli-0.6.11-ytme2rx5.mjs +0 -2
  692. package/dist/chunks/cli-0.6.11-yzqbg956.mjs +0 -5415
  693. package/dist/chunks/cli-0.6.11-z04rjzvb.mjs +0 -2
  694. package/dist/chunks/cli-0.6.11-z9by0x32.mjs +0 -2
  695. package/dist/chunks/cli-0.6.11-ze1rqxq1.mjs +0 -2
  696. package/dist/chunks/client-0.6.11-70d4q0e6.mjs +0 -1
  697. package/dist/chunks/color-0.6.11-ez96t3xm.mjs +0 -1
  698. package/dist/chunks/compact-0.6.11-6rt721pq.mjs +0 -3
  699. package/dist/chunks/config-0.6.11-6k7gavp8.mjs +0 -1
  700. package/dist/chunks/config-0.6.11-v35w9a31.mjs +0 -1
  701. package/dist/chunks/constants-0.6.11-cjq1ykse.mjs +0 -1
  702. package/dist/chunks/context-0.6.11-qjxqzecw.mjs +0 -1
  703. package/dist/chunks/context-noninteractive-0.6.11-1y5v72m4.mjs +0 -1
  704. package/dist/chunks/conversation-0.6.11-9vhbnr3g.mjs +0 -1
  705. package/dist/chunks/copilotHeaders-0.6.11-z121ywxg.mjs +0 -1
  706. package/dist/chunks/copy-0.6.11-c340y93f.mjs +0 -9
  707. package/dist/chunks/cost-0.6.11-bcwdtx5t.mjs +0 -1
  708. package/dist/chunks/createSSHSession-0.6.11-yvqajzp0.mjs +0 -1
  709. package/dist/chunks/createSession-0.6.11-a0hj7qyz.mjs +0 -1
  710. package/dist/chunks/debug-0.6.11-scn5mq3z.mjs +0 -1
  711. package/dist/chunks/defaultActionDeps-0.6.11-s09sr4n7.mjs +0 -1367
  712. package/dist/chunks/desktop-0.6.11-sv5zqqeb.mjs +0 -1
  713. package/dist/chunks/detectRepository-0.6.11-d4p66cnz.mjs +0 -1
  714. package/dist/chunks/detection-0.6.11-x12e4v9d.mjs +0 -1
  715. package/dist/chunks/diff-0.6.11-mntxpz0q.mjs +0 -1
  716. package/dist/chunks/doctor-0.6.11-temdhyme.mjs +0 -1
  717. package/dist/chunks/doctorDiagnostic-0.6.11-07phqns6.mjs +0 -1
  718. package/dist/chunks/earlyInput-0.6.11-b6xjvyky.mjs +0 -1
  719. package/dist/chunks/effort-0.6.11-617qwj2q.mjs +0 -10
  720. package/dist/chunks/envLessBridgeConfig-0.6.11-ycbja2hk.mjs +0 -1
  721. package/dist/chunks/envUtils-0.6.11-rs6r44fg.mjs +0 -1
  722. package/dist/chunks/environmentSelection-0.6.11-f275n518.mjs +0 -1
  723. package/dist/chunks/environments-0.6.11-sv4dc6cc.mjs +0 -1
  724. package/dist/chunks/errors-0.6.11-qv66pggk.mjs +0 -1
  725. package/dist/chunks/exampleCommands-0.6.11-nbtbkykx.mjs +0 -1
  726. package/dist/chunks/exit-0.6.11-wr5rygrg.mjs +0 -1
  727. package/dist/chunks/explorer-0.6.11-tx8t57mr.mjs +0 -1
  728. package/dist/chunks/export-0.6.11-mfvdc9vw.mjs +0 -2
  729. package/dist/chunks/extra-usage-0.6.11-zj8syy1h.mjs +0 -1
  730. package/dist/chunks/extra-usage-noninteractive-0.6.11-82g1bzrd.mjs +0 -1
  731. package/dist/chunks/fast-0.6.11-85d74dx3.mjs +0 -1
  732. package/dist/chunks/feedback-0.6.11-xgh8n5yf.mjs +0 -14
  733. package/dist/chunks/firstPartyEventLogger-0.6.11-b1mhnkqp.mjs +0 -1
  734. package/dist/chunks/git-0.6.11-79jra9bb.mjs +0 -1
  735. package/dist/chunks/githubModelsCredentials-0.6.11-sxdewptt.mjs +0 -1
  736. package/dist/chunks/goal-0.6.11-40q7jjhs.mjs +0 -4
  737. package/dist/chunks/grove-0.6.11-v2m8yr2t.mjs +0 -1
  738. package/dist/chunks/growthbook-0.6.11-zrzzd6w1.mjs +0 -1
  739. package/dist/chunks/headless-0.6.11-r5gw4645.mjs +0 -2
  740. package/dist/chunks/heapdump-0.6.11-d3hzrj36.mjs +0 -6
  741. package/dist/chunks/help-0.6.11-c2skb7ad.mjs +0 -1
  742. package/dist/chunks/hookChains-0.6.11-g7m6r6me.mjs +0 -3
  743. package/dist/chunks/hooks-0.6.11-hwgx2kme.mjs +0 -79
  744. package/dist/chunks/hooks-0.6.11-j861y5dm.mjs +0 -1
  745. package/dist/chunks/ide-0.6.11-1fvfwrp1.mjs +0 -3
  746. package/dist/chunks/image-processor-napi-0.6.11-951qtc6g.mjs +0 -1
  747. package/dist/chunks/inboundAttachments-0.6.11-m9mp3gnn.mjs +0 -1
  748. package/dist/chunks/index-0.6.11-2dyp4cyd.mjs +0 -2
  749. package/dist/chunks/index-0.6.11-6hq069cp.mjs +0 -1
  750. package/dist/chunks/index-0.6.11-6rw1b8jg.mjs +0 -1
  751. package/dist/chunks/index-0.6.11-7sxsr7fc.mjs +0 -2
  752. package/dist/chunks/index-0.6.11-8c4kmbd2.mjs +0 -1
  753. package/dist/chunks/index-0.6.11-9jxn7k0q.mjs +0 -1
  754. package/dist/chunks/index-0.6.11-dj3r2mch.mjs +0 -30
  755. package/dist/chunks/index-0.6.11-eqjzpskp.mjs +0 -1
  756. package/dist/chunks/index-0.6.11-f1sxadym.mjs +0 -1
  757. package/dist/chunks/index-0.6.11-fb4brrb8.mjs +0 -1
  758. package/dist/chunks/index-0.6.11-gvpky3kb.mjs +0 -1
  759. package/dist/chunks/index-0.6.11-hbzfzedf.mjs +0 -1
  760. package/dist/chunks/index-0.6.11-hxgz43fr.mjs +0 -1
  761. package/dist/chunks/index-0.6.11-mh7t6qwv.mjs +0 -1
  762. package/dist/chunks/index-0.6.11-mjxjhv2r.mjs +0 -9
  763. package/dist/chunks/index-0.6.11-pk717ynw.mjs +0 -1
  764. package/dist/chunks/index-0.6.11-sv5aecsq.mjs +0 -1
  765. package/dist/chunks/index-0.6.11-t7ygqnf0.mjs +0 -1
  766. package/dist/chunks/index-0.6.11-tbavx2zw.mjs +0 -9
  767. package/dist/chunks/index-0.6.11-v6prk9pn.mjs +0 -1
  768. package/dist/chunks/index-0.6.11-wz5x5ga0.mjs +0 -1
  769. package/dist/chunks/index-0.6.11-xweg6a59.mjs +0 -5
  770. package/dist/chunks/index-0.6.11-yzrjwxa5.mjs +0 -1
  771. package/dist/chunks/init-0.6.11-2fjbym4j.mjs +0 -1
  772. package/dist/chunks/initReplBridge-0.6.11-a3jjmvj9.mjs +0 -1
  773. package/dist/chunks/ink-0.6.11-fx062wer.mjs +0 -1
  774. package/dist/chunks/insights-0.6.11-0kznq0t2.mjs +0 -870
  775. package/dist/chunks/install-0.6.11-j29zthcm.mjs +0 -1
  776. package/dist/chunks/install-github-app-0.6.11-79e0z625.mjs +0 -149
  777. package/dist/chunks/install-slack-app-0.6.11-7jw79s6f.mjs +0 -1
  778. package/dist/chunks/instrumentation-0.6.11-hfwskyr3.mjs +0 -1
  779. package/dist/chunks/interactiveHelpers-0.6.11-jfdpcyjm.mjs +0 -1
  780. package/dist/chunks/keybindings-0.6.11-bry9hazf.mjs +0 -2
  781. package/dist/chunks/knowledge-0.6.11-9gym9rk7.mjs +0 -2
  782. package/dist/chunks/latestVersionCache-0.6.11-zrkj03rn.mjs +0 -1
  783. package/dist/chunks/loadAgentsDir-0.6.11-v8cwy9nw.mjs +0 -1
  784. package/dist/chunks/loadPluginHooks-0.6.11-d87jkzcf.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.11-g80c3nw3.mjs +0 -1
  786. package/dist/chunks/log-0.6.11-1chsqxe9.mjs +0 -1
  787. package/dist/chunks/main-0.6.11-vrgnyy0m.mjs +0 -1
  788. package/dist/chunks/managedEnv-0.6.11-pxhywyps.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.11-1knwr5tf.mjs +0 -17
  790. package/dist/chunks/mcp-0.6.11-8tyamc3f.mjs +0 -4
  791. package/dist/chunks/mcp-0.6.11-94cbrpkx.mjs +0 -1
  792. package/dist/chunks/mcpb-0.6.11-6vnd31wy.mjs +0 -1
  793. package/dist/chunks/memory-0.6.11-cv64m2gh.mjs +0 -3
  794. package/dist/chunks/model-0.6.11-g7egtzfm.mjs +0 -2
  795. package/dist/chunks/model-0.6.11-rwp8jj5q.mjs +0 -1
  796. package/dist/chunks/node-0.6.11-pqx3daa2.mjs +0 -12
  797. package/dist/chunks/oauth-0.6.11-jw16eb9m.mjs +0 -1
  798. package/dist/chunks/openaiShim-0.6.11-06kyf6dn.mjs +0 -14
  799. package/dist/chunks/output-style-0.6.11-brn9j341.mjs +0 -1
  800. package/dist/chunks/package-FMOR3ELU-0.6.11-7aj7ev0m.mjs +0 -1
  801. package/dist/chunks/parseConnectUrl-0.6.11-280k236q.mjs +0 -1
  802. package/dist/chunks/parser-0.6.11-kqs391w7.mjs +0 -1
  803. package/dist/chunks/passes-0.6.11-hzcyq0t0.mjs +0 -1
  804. package/dist/chunks/permissions-0.6.11-4c99d288.mjs +0 -3
  805. package/dist/chunks/permissions-0.6.11-acav3hp0.mjs +0 -1
  806. package/dist/chunks/plan-0.6.11-gjpg2790.mjs +0 -1
  807. package/dist/chunks/plist-0.6.11-w05ya36x.mjs +0 -1
  808. package/dist/chunks/plugin-0.6.11-03d13axt.mjs +0 -29
  809. package/dist/chunks/pluginStartupCheck-0.6.11-9pgbqg5d.mjs +0 -1
  810. package/dist/chunks/plugins-0.6.11-75h6xdqw.mjs +0 -9
  811. package/dist/chunks/preActionHook-0.6.11-s50nx3vz.mjs +0 -2
  812. package/dist/chunks/print-0.6.11-k4etj16x.mjs +0 -57
  813. package/dist/chunks/privacy-settings-0.6.11-wrefmptf.mjs +0 -1
  814. package/dist/chunks/process-0.6.11-1659ktyh.mjs +0 -1
  815. package/dist/chunks/processBashCommand-0.6.11-1vdvh812.mjs +0 -1
  816. package/dist/chunks/processSlashCommand-0.6.11-sgrrkz4h.mjs +0 -9
  817. package/dist/chunks/prompt-0.6.11-6vegx569.mjs +0 -1
  818. package/dist/chunks/prompt-0.6.11-fna890vw.mjs +0 -1
  819. package/dist/chunks/prompts-0.6.11-t47csfe1.mjs +0 -1
  820. package/dist/chunks/protocolHandler-0.6.11-j86echck.mjs +0 -13
  821. package/dist/chunks/provider-0.6.11-hb987r47.mjs +0 -2
  822. package/dist/chunks/providerProfiles-0.6.11-tgq134ma.mjs +0 -1
  823. package/dist/chunks/providerValidation-0.6.11-mt64512j.mjs +0 -6
  824. package/dist/chunks/rate-limit-options-0.6.11-kxa5nfj5.mjs +0 -1
  825. package/dist/chunks/registerSubcommands-0.6.11-b6er8zns.mjs +0 -34
  826. package/dist/chunks/registry-0.6.11-4fb806v3.mjs +0 -1
  827. package/dist/chunks/release-notes-0.6.11-fz4zz5yg.mjs +0 -5
  828. package/dist/chunks/reload-plugins-0.6.11-n4mpr219.mjs +0 -2
  829. package/dist/chunks/remote-env-0.6.11-ncb7g7d4.mjs +0 -1
  830. package/dist/chunks/remoteBridgeCore-0.6.11-x37cwgvg.mjs +0 -1
  831. package/dist/chunks/remoteSession-0.6.11-e9z7yjsw.mjs +0 -1
  832. package/dist/chunks/rename-0.6.11-c0w0b2m6.mjs +0 -1
  833. package/dist/chunks/replBridgeHandle-0.6.11-ee9w01cn.mjs +0 -1
  834. package/dist/chunks/replLauncher-0.6.11-xfdp6att.mjs +0 -1
  835. package/dist/chunks/resume-0.6.11-23kcn6jj.mjs +0 -2
  836. package/dist/chunks/rewind-0.6.11-q3akxk2q.mjs +0 -1
  837. package/dist/chunks/rootOptions-0.6.11-k2pf0f0y.mjs +0 -1
  838. package/dist/chunks/sandbox-adapter-0.6.11-0bvzn2v8.mjs +0 -1
  839. package/dist/chunks/sandbox-toggle-0.6.11-yzt81h2v.mjs +0 -1
  840. package/dist/chunks/session-0.6.11-08024vnp.mjs +0 -2
  841. package/dist/chunks/sessionDiscovery-0.6.11-xt43r5c8.mjs +0 -1
  842. package/dist/chunks/sessionFileAccessHooks-0.6.11-e0rtjx2z.mjs +0 -1
  843. package/dist/chunks/sessionStorage-0.6.11-bdqzcb2k.mjs +0 -1
  844. package/dist/chunks/settings-0.6.11-rj27fsx5.mjs +0 -1
  845. package/dist/chunks/setup-0.6.11-dq4adawj.mjs +0 -5
  846. package/dist/chunks/sinks-0.6.11-gmn5bprg.mjs +0 -1
  847. package/dist/chunks/skills-0.6.11-z0crf6nq.mjs +0 -1
  848. package/dist/chunks/startupProfiler-0.6.11-v4kbxysc.mjs +0 -1
  849. package/dist/chunks/startupUpdateCheck-0.6.11-jjwggzd7.mjs +0 -1
  850. package/dist/chunks/state-0.6.11-tecbf8py.mjs +0 -1
  851. package/dist/chunks/stats-0.6.11-d5wgq5tt.mjs +0 -6
  852. package/dist/chunks/status-0.6.11-5ae64prh.mjs +0 -1
  853. package/dist/chunks/stickers-0.6.11-jkr9x3cy.mjs +0 -1
  854. package/dist/chunks/subprocessEnv-0.6.11-qvhfja2s.mjs +0 -1
  855. package/dist/chunks/tasks-0.6.11-55xpmrgd.mjs +0 -1
  856. package/dist/chunks/teamHelpers-0.6.11-pxkdnqew.mjs +0 -1
  857. package/dist/chunks/teammateModeSnapshot-0.6.11-gmexf5zv.mjs +0 -1
  858. package/dist/chunks/teleport-0.6.11-ry1yzr4s.mjs +0 -1
  859. package/dist/chunks/terminalSetup-0.6.11-8tr8vzr8.mjs +0 -1
  860. package/dist/chunks/theme-0.6.11-xpbbnbzp.mjs +0 -1
  861. package/dist/chunks/thinkback-0.6.11-e1trmsb8.mjs +0 -1
  862. package/dist/chunks/thinkback-play-0.6.11-8f5rw6t4.mjs +0 -1
  863. package/dist/chunks/toolPool-0.6.11-8hyhwpnn.mjs +0 -1
  864. package/dist/chunks/toolSearch-0.6.11-s0gkr04e.mjs +0 -1
  865. package/dist/chunks/tools-0.6.11-z407md0d.mjs +0 -1
  866. package/dist/chunks/trustedDevice-0.6.11-m53tzan2.mjs +0 -1
  867. package/dist/chunks/turndown.cjs-0.6.11-djt9nf5m.mjs +0 -69
  868. package/dist/chunks/types-0.6.11-vbmyqmjq.mjs +0 -1
  869. package/dist/chunks/ultrareviewCommand-0.6.11-k4baarek.mjs +0 -4
  870. package/dist/chunks/update-0.6.11-0hmef5vs.mjs +0 -86
  871. package/dist/chunks/upgrade-0.6.11-37aswh99.mjs +0 -1
  872. package/dist/chunks/upload-0.6.11-gkfarr52.mjs +0 -7
  873. package/dist/chunks/upstreamproxy-0.6.11-4gkmsmz9.mjs +0 -14
  874. package/dist/chunks/url-handler-napi-0.6.11-tw7gxmkc.mjs +0 -1
  875. package/dist/chunks/usage-0.6.11-d6r3fpzd.mjs +0 -1
  876. package/dist/chunks/util-0.6.11-rdmkft2p.mjs +0 -1
  877. package/dist/chunks/utils-0.6.11-9mdps77k.mjs +0 -1
  878. package/dist/chunks/vim-0.6.11-19h6mmsw.mjs +0 -1
  879. package/dist/chunks/watcher-0.6.11-wbkacdcb.mjs +0 -1
  880. package/dist/chunks/wiki-0.6.11-ry1ctzqt.mjs +0 -132
  881. package/dist/chunks/worktree-0.6.11-j65v1emk.mjs +0 -1
  882. package/dist/chunks/worktreeModeEnabled-0.6.11-mj34d7de.mjs +0 -1
  883. package/dist/chunks/wrapper-0.6.11-shx80n4c.mjs +0 -7
  884. /package/dist/chunks/{cli-0.6.11-g6e4fqkd.mjs → cli-0.6.13-1dwgndg5.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.11-qbvxgfdn.mjs → cli-0.6.13-e3h2z83b.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.11-4z1bgfpr.mjs → cli-0.6.13-h2yxttam.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.11-p24pya2r.mjs → cli-0.6.13-p839x5sj.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.11-mczw6msm.mjs → cli-0.6.13-rmzzvjt2.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.11-dk5sskg3.mjs → cli-0.6.13-s9yqkgwe.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.11-6wwzebtr.mjs → cli-0.6.13-tsz6mx5f.mjs} +0 -0
@@ -1,12 +0,0 @@
1
- import{kg as $Z,lg as uZ,mg as fz}from"./cli-0.6.11-9q72m1zw.mjs";import{sh as HJ,th as Vz}from"./cli-0.6.11-0qyj157c.mjs";import{Dh as GJ,Eh as Bz}from"./cli-0.6.11-1t2njyn0.mjs";import{$R as VQ,AP as nZ,BP as aQ,Bz as SZ,Cz as hZ,DP as g0,Dz as TZ,EP as rQ,Ez as dJ,Fz as cQ,GP as eJ,Gz as cJ,HP as ZQ,Hj as _Z,IP as oQ,Ij as TQ,JP as tQ,Kn as XQ,LP as OZ,Mn as xZ,Mz as e0,Nz as gJ,Oz as mJ,Pz as nJ,Qj as IJ,Qy as pQ,Qz as yz,Rj as SJ,Ry as PX,Vu as UQ,Wn as WQ,Wu as jQ,Xu as $Q,Yj as pJ,Yu as uQ,Yy as dQ,Zy as DX,_n as uz,av as MQ,bP as mQ,bv as EQ,cs as NJ,dS as KQ,gS as fZ,gs as Uz,mn as zQ,nn as $z,pk as mZ,qk as FX,qv as fQ,sS as BQ,tP as nQ,tv as AX,un as RQ,vn as wX,xP as iQ,yP as lQ}from"./cli-0.6.11-yzqbg956.mjs";import{lT as xQ,uT as OX}from"./cli-0.6.11-trf46709.mjs";import{QW as YJ,UW as qz,VW as UZ,WW as NX,vW as FZ,wW as qJ}from"./cli-0.6.11-eqjbate8.mjs";import{BX as WJ,CX as Wz,IY as jZ,JY as Jz,LX as u0,LZ as p0,ZY as hQ,_Y as KX,eZ as b,fY as c0,fZ as DQ,gZ as g,hZ as JX,jY as vZ}from"./cli-0.6.11-1n2a62nt.mjs";import{Q1 as f0,R1 as B,S1 as $,T1 as F0}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as S0}from"./cli-0.6.11-gwzwm546.mjs";import{o2 as VJ,p2 as BJ,q2 as Yz}from"./cli-0.6.11-8n8a5y9t.mjs";import{B5 as QZ,V5 as JQ,d6 as QQ,s5 as PQ,t5 as ZX,y5 as JZ,y6 as xz}from"./cli-0.6.11-9dm066ew.mjs";import{U6 as gZ,V6 as GX}from"./cli-0.6.11-93mbpc2x.mjs";import{D$ as LX,Naa as LZ,Qca as HQ,Vaa as XJ,e8 as v0,f8 as zJ,h$ as SQ,vca as DZ}from"./cli-0.6.11-ka6t3b6m.mjs";import{Aea as TJ,Kea as ZZ,Rea as hz,zea as PZ}from"./cli-0.6.11-mjdvh04x.mjs";import{Jga as Dz,ega as RZ,fga as Rz,rga as KZ,wga as wZ,xga as NZ}from"./cli-0.6.11-887jj6fe.mjs";import{Xha as m0,_ha as ez}from"./cli-0.6.11-ar9we9b3.mjs";import{Cia as IQ,Mia as HX}from"./cli-0.6.11-bk2qdg9h.mjs";import{Kna as kQ,noa as BX}from"./cli-0.6.11-n46bkq7s.mjs";import{Qpa as N0,Upa as L0}from"./cli-0.6.11-2m6rny10.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(SZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(r0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??rz);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,rz=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var gQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let a of B0)if(a.type==="text"){let w0=a.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=mQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=fQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return j0.current.set(G,a),a},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();gQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=gQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{s0 as re,TX as se,lZ as te,xX as ue,$X as ve,JJ as we,QW as xe,zW as ye,XW as ze,LJ as Ae,g8 as Be,sJ as Ce};
@@ -1,2 +0,0 @@
1
- import{nd as Z,od as _,pd as $,sd as O}from"./cli-0.6.11-hjact5zq.mjs";import{Jd as Y,Od as x}from"./cli-0.6.11-nmtz5xgh.mjs";import{ZJ as U,cK as W,hK as S,iK as X,sK as V}from"./cli-0.6.11-yzqbg956.mjs";import{Xha as R,_ha as K}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as Q,wia as C}from"./cli-0.6.11-5d4nqcar.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as Ia};
@@ -1,2 +0,0 @@
1
- import{x6 as v,y6 as C}from"./cli-0.6.11-9dm066ew.mjs";import{Rba as Z,Sba as V,pda as x,qda as Y}from"./cli-0.6.11-ka6t3b6m.mjs";import{Gfa as O,ufa as R,yfa as W}from"./cli-0.6.11-prd8de37.mjs";import{Sga as Q,Tga as M}from"./cli-0.6.11-jysha43m.mjs";import{Aha as P,Fha as I,Xha as f,_ha as L}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as w,wia as H}from"./cli-0.6.11-5d4nqcar.mjs";import{Moa as N,Noa as F}from"./cli-0.6.11-xb91n8pp.mjs";import{Apa as U,ipa as X}from"./cli-0.6.11-2qd0rf15.mjs";import{Rpa as h,Upa as B}from"./cli-0.6.11-2m6rny10.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
2
- export{u as VU,n as WU,o as XU,t as YU,d as ZU};
@@ -1,2 +0,0 @@
1
- import{nb as W,ob as z}from"./cli-0.6.11-dr7edc1g.mjs";import{tb as R}from"./cli-0.6.11-1w8f6pcg.mjs";import{KU as M,LU as w}from"./cli-0.6.11-8ar69w9a.mjs";import{Xha as L,_ha as j}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as Z,wia as H}from"./cli-0.6.11-5d4nqcar.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
- export{I as ib,k as jb,D as kb};
@@ -1,7 +0,0 @@
1
- import{ub as d}from"./cli-0.6.11-6c4r2426.mjs";import{IU as y,JU as U,LU as f,MU as h,NU as c,SU as i}from"./cli-0.6.11-8ar69w9a.mjs";import{$1 as O,b2 as b}from"./cli-0.6.11-qwxvwqyy.mjs";import{s5 as B,t5 as M}from"./cli-0.6.11-9dm066ew.mjs";import{L6 as I,S6 as u}from"./cli-0.6.11-pyq1vqen.mjs";import{r8 as V,t8 as v}from"./cli-0.6.11-ka6t3b6m.mjs";import{Aha as H,Bha as m,Fha as T,Xha as G,_ha as D}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as q,qia as S,wia as F}from"./cli-0.6.11-5d4nqcar.mjs";import{Apa as s,ipa as p}from"./cli-0.6.11-2qd0rf15.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
-
3
- `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
- `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
- `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
- `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
- export{R as lb,k as mb,a as nb,YJ as ob};
@@ -1,4 +0,0 @@
1
- import{FD as k,GD as HJ,Uo as G,Wr as D,Xo as a,Xr as hJ,in as R,jn as BJ}from"./cli-0.6.11-yzqbg956.mjs";import{_5 as ZJ,j6 as $J,y6 as bJ}from"./cli-0.6.11-9dm066ew.mjs";import{Fba as jJ,J9 as C,K9 as GJ,L9 as h,M9 as FJ,N9 as u,O9 as kJ,qba as WJ}from"./cli-0.6.11-ka6t3b6m.mjs";import{Gfa as gJ,ufa as x}from"./cli-0.6.11-prd8de37.mjs";import{$fa as s,Zfa as q,aga as Y,bga as r}from"./cli-0.6.11-grhakq5f.mjs";import{Ega as M,Jga as yJ}from"./cli-0.6.11-887jj6fe.mjs";import{hha as o,iha as CJ,rha as n,sha as EJ,xha as l,yha as TJ}from"./cli-0.6.11-ar9we9b3.mjs";import{Pja as c,Qja as OJ,Tja as H,Tna as QJ,Uja as F,Vja as I,Wja as YJ,Xia as g,Xja as P,Yia as zJ,Yja as XJ,Zia as A,_ia as wJ,jja as f,kja as PJ,noa as mJ}from"./cli-0.6.11-n46bkq7s.mjs";import{woa as K,xoa as DJ}from"./cli-0.6.11-xb91n8pp.mjs";import{Upa as B}from"./cli-0.6.11-2m6rny10.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
- ${Q}
3
- </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
- export{NQ as Jf,_J as Kf,JJ as Lf,bQ as Mf,uQ as Nf,cJ as Of,iQ as Pf,oJ as Qf};
@@ -1 +0,0 @@
1
- import{$fa as A,Zfa as q,aga as x,bga as B}from"./cli-0.6.11-grhakq5f.mjs";import{Fha as J}from"./cli-0.6.11-ar9we9b3.mjs";import{wia as G}from"./cli-0.6.11-5d4nqcar.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -1,5 +0,0 @@
1
- import{lb as U}from"./cli-0.6.11-dr7edc1g.mjs";import{Ds as N,Es as b}from"./cli-0.6.11-yzqbg956.mjs";import{IU as F,LU as d,MU as _,NU as M,SU as I}from"./cli-0.6.11-8ar69w9a.mjs";import{C6 as B,F6 as T,M6 as x,N6 as H,S6 as v}from"./cli-0.6.11-pyq1vqen.mjs";import{r8 as Z,t8 as P}from"./cli-0.6.11-ka6t3b6m.mjs";import{Uga as O,Xga as D}from"./cli-0.6.11-z9by0x32.mjs";import{Aha as z,Fha as S,Xha as Y,_ha as A}from"./cli-0.6.11-ar9we9b3.mjs";import{Cia as L,Mia as f}from"./cli-0.6.11-bk2qdg9h.mjs";import{Apa as i,ipa as y}from"./cli-0.6.11-2qd0rf15.mjs";import{Vpa as k}from"./cli-0.6.11-2m6rny10.mjs";i();A();P();d();D();b();A();P();f();T();v();I();S();var C=`{"type":"keep_alive"}
2
- `,u=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(u)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:B()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.6.11-shx80n4c.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...B()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)O("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)O("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let V=this.refreshHeaders();Object.assign(this.headers,V),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)O("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=z($)+`
3
- `;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=z(J)+`
4
- `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(C),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:V}=$??{};this.postUrl=r(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(j,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:j,failures:q}),V?.(j,q)},send:(j)=>this.postOnce(j)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=F();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
- export{W as _a,n as $a};
@@ -1,2 +0,0 @@
1
- import{_5 as f,i3 as j,l3 as I,s5 as b,t5 as c,y6 as d}from"./cli-0.6.11-9dm066ew.mjs";import{W7 as F,X7 as D}from"./cli-0.6.11-rev9sza4.mjs";import{mea as y,uea as T}from"./cli-0.6.11-ka6t3b6m.mjs";import{$fa as R,_fa as $,aga as _,bga as E}from"./cli-0.6.11-grhakq5f.mjs";import{Sga as q,Tga as m}from"./cli-0.6.11-jysha43m.mjs";import{Aha as M,Fha as U,Xha as W,_ha as z}from"./cli-0.6.11-ar9we9b3.mjs";import{oia as k,pia as Y,wia as O}from"./cli-0.6.11-5d4nqcar.mjs";import{Apa as h,ipa as X}from"./cli-0.6.11-2qd0rf15.mjs";import{Upa as A}from"./cli-0.6.11-2m6rny10.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function NJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=F(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function WJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function GJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function vJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J="ccr-byoc-2025-07-29",BJ;var g=A(()=>{h();m();I();R();d();z();D();O();E();T();c();U();S=[2000,4000,8000,16000],x=S.length;BJ=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
2
- export{$J as c2,p as d2,u as e2,BJ as f2,C as g2,NJ as h2,L as i2,WJ as j2,GJ as k2,vJ as l2,XJ as m2,g as n2};
@@ -1,15 +0,0 @@
1
- import{F0 as o,I0 as OJ}from"./cli-0.6.11-a2ansh6y.mjs";import{Fba as HJ,Qca as D,e$ as G,g$ as BJ,mea as q,sca as v,uea as E,vba as i,w8 as K,x8 as I}from"./cli-0.6.11-ka6t3b6m.mjs";import{Uga as A,Xga as XJ}from"./cli-0.6.11-z9by0x32.mjs";import{Aha as k,Bha as j,Fha as C,Jha as y,Nha as F,Xha as W,_ha as zJ}from"./cli-0.6.11-ar9we9b3.mjs";import{fia as l,qia as O,ria as w,uia as p,wia as R}from"./cli-0.6.11-5d4nqcar.mjs";import{Mia as b,zia as H}from"./cli-0.6.11-bk2qdg9h.mjs";import{Upa as M}from"./cli-0.6.11-2m6rny10.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
2
- exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
3
- `)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
4
- `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
- Error: Windows NPM detected in WSL
6
-
7
- You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
- This configuration is not supported for updates.
9
-
10
- To fix this issue:
11
- 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
- 2. Make sure Linux NPM is in your PATH before the Windows version
13
- 3. Try updating again with 'claude update'
14
- `),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
15
- export{DJ as HS,EJ as IS,PJ as JS,fJ as KS,mJ as LS,u as MS,V as NS,g as OS,x as PS,n as QS,NJ as RS,nJ as SS,s as TS,zQ as US,BQ as VS,HQ as WS,OQ as XS,e as YS,SJ as ZS,yQ as _S,GQ as $S,_Q as aT,vQ as bT,wQ as cT,MQ as dT,UJ as eT};
@@ -1,4 +0,0 @@
1
- import{Id as j,Jd as w,Kd as _,Ld as D,Md as L,Nd as A,Od as O}from"./cli-0.6.11-nmtz5xgh.mjs";import{Uo as R,Xo as b,eA as W,hA as V,jA as C,qQ as h,sQ as y,tK as X,uK as I}from"./cli-0.6.11-yzqbg956.mjs";import{e8 as Q,f8 as N,mea as U,uea as S}from"./cli-0.6.11-ka6t3b6m.mjs";import{Uga as K,Xga as v}from"./cli-0.6.11-z9by0x32.mjs";import{aia as x,eia as M}from"./cli-0.6.11-xvs7cq58.mjs";import{pia as B,wia as F}from"./cli-0.6.11-5d4nqcar.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
2
- `);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
3
- `),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
4
- export{g as a,a as b,i as c,u as d,n as e,r as f};
@@ -1,2 +0,0 @@
1
- import{AZ as d,LX as u,LZ as a,TY as QQ,UY as uQ,eZ as g,gZ as h,mZ as RQ,vZ as jQ,wZ as aQ}from"./cli-0.6.11-1n2a62nt.mjs";import{R1 as S,S1 as k,T1 as f}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as v}from"./cli-0.6.11-gwzwm546.mjs";import{g2 as n,i2 as t,n2 as YV}from"./cli-0.6.11-eacagr72.mjs";import{d6 as $Q,g6 as P,j6 as bQ,y6 as XV}from"./cli-0.6.11-9dm066ew.mjs";import{Qca as QV,Rba as fQ,Sba as eQ,mea as CQ,sca as mQ,uea as VV,vca as x}from"./cli-0.6.11-ka6t3b6m.mjs";import{Aea as sQ,zea as AQ}from"./cli-0.6.11-mjdvh04x.mjs";import{Sga as r,Tga as nQ}from"./cli-0.6.11-jysha43m.mjs";import{Xha as D,_ha as iQ}from"./cli-0.6.11-ar9we9b3.mjs";import{Apa as tQ,ipa as i}from"./cli-0.6.11-2qd0rf15.mjs";import{Qpa as M,Upa as F}from"./cli-0.6.11-2m6rny10.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{XQ as vW,YQ as wW,GQ as xW,yQ as yW,l as zW,BV as AW,qQ as BW,LQ as CW,zQ as DW,BQ as EW,MV as FW,y as GW,SV as HW,UQ as IW,TV as JW,OQ as KW,_Q as LW,o as MW,WQ as NW,$V as OW,oQ as PW,s as QW,IQ as RW,pV as SW,xV as TW,KQ as UW,EQ as VW,DQ as WW,oV as XW,rQ as YW,ZX as ZW,JX as _W,GX as $W,qX as aX,LX as bX,GV as cX,HX as dX,qV as eX};
@@ -1,2 +0,0 @@
1
- import{Upa as e}from"./cli-0.6.11-2m6rny10.mjs";function o(){return!0}var t=()=>{};
2
- export{o as yS,t as zS};
@@ -1,2 +0,0 @@
1
- import{Upa as B}from"./cli-0.6.11-2m6rny10.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
- export{F as li,C as mi};
@@ -1,2 +0,0 @@
1
- import{ei as M,fi as w,gi as A}from"./cli-0.6.11-25jht58e.mjs";import{$fa as N,Zfa as X,aga as $,bga as O}from"./cli-0.6.11-grhakq5f.mjs";import{Xha as R,_ha as C}from"./cli-0.6.11-ar9we9b3.mjs";import{Mia as _,zia as L}from"./cli-0.6.11-bk2qdg9h.mjs";import{noa as T,qka as H}from"./cli-0.6.11-n46bkq7s.mjs";import{Apa as y,ipa as W}from"./cli-0.6.11-2qd0rf15.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
2
- export{S as Db,f as Eb,l as Fb,s as Gb};
@@ -1,2 +0,0 @@
1
- import{Upa as b}from"./cli-0.6.11-2m6rny10.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
- export{j as Ve,k as We,q as Xe,w as Ye,g as Ze};
@@ -1,2 +0,0 @@
1
- import{Upa as j}from"./cli-0.6.11-2m6rny10.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 H1,y as I1,z as J1,A as K1,B as L1,C as M1,D as N1,k as O1};
@@ -1,2 +0,0 @@
1
- import{sc as l,tc as m,wc as u,xc as y}from"./cli-0.6.11-8f0jfjxs.mjs";import{rF as p,tF as b}from"./cli-0.6.11-yzqbg956.mjs";import{LZ as C,eZ as s,gZ as e}from"./cli-0.6.11-1n2a62nt.mjs";import{R1 as i,S1 as r,T1 as g}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as M}from"./cli-0.6.11-gwzwm546.mjs";import{Qpa as h,Upa as f}from"./cli-0.6.11-2m6rny10.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
- export{T as qc,w as rc};
@@ -1,2 +0,0 @@
1
- import{JZ as X,LX as f,LZ as k,vZ as W}from"./cli-0.6.11-1n2a62nt.mjs";import{Q1 as V,R1 as J,T1 as K}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as P}from"./cli-0.6.11-gwzwm546.mjs";import{xea as U,yea as O}from"./cli-0.6.11-mjdvh04x.mjs";import{Qpa as Q,Upa as L}from"./cli-0.6.11-2m6rny10.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as _d,N as $d,j as ae};
@@ -1,2 +0,0 @@
1
- import{An as p,Av as _q,Bn as zq,Bv as r,Cv as Vq,qQ as a,qv as u,rF as h,rv as g,sQ as Uq,tF as Fq,tv as Wq,un as S,vn as Zq,wn as V,wv as c,xn as $q,zv as T}from"./cli-0.6.11-yzqbg956.mjs";import{HW as j,IW as Qq,JW as m,LW as Xq,OW as d,PW as Yq,vW as w,wW as Nq}from"./cli-0.6.11-eqjbate8.mjs";import{LZ as Lq,UX as v,VX as H,WX as y,eZ as J,gZ as N}from"./cli-0.6.11-1n2a62nt.mjs";import{Q1 as _,R1 as q,S1 as G,T1 as B}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as Jq}from"./cli-0.6.11-gwzwm546.mjs";import{Fba as Gq,sba as b}from"./cli-0.6.11-ka6t3b6m.mjs";import{Qpa as e,Upa as qq}from"./cli-0.6.11-2m6rny10.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
- export{mq as Xg,Aq as Yg};