@claudiolabs/claudin 0.6.12 → 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 (889) 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-5t9gd5mv.mjs +2 -0
  88. package/dist/chunks/cli-0.6.13-643zsnv9.mjs +2 -0
  89. package/dist/chunks/cli-0.6.13-667dsr1w.mjs +2 -0
  90. package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +2 -0
  91. package/dist/chunks/cli-0.6.13-79mne5jt.mjs +2 -0
  92. package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +2 -0
  93. package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +2 -0
  94. package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +3 -0
  95. package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +2 -0
  96. package/dist/chunks/cli-0.6.13-82datd4w.mjs +2 -0
  97. package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +2 -0
  98. package/dist/chunks/cli-0.6.13-881js45c.mjs +2 -0
  99. package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +2 -0
  100. package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +3 -0
  101. package/dist/chunks/cli-0.6.13-949racwr.mjs +7 -0
  102. package/dist/chunks/cli-0.6.13-94nwan0d.mjs +2 -0
  103. package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +2 -0
  104. package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +2 -0
  105. package/dist/chunks/cli-0.6.13-9wktvaax.mjs +50 -0
  106. package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +58 -0
  107. package/dist/chunks/cli-0.6.13-aekttw5a.mjs +2 -0
  108. package/dist/chunks/cli-0.6.13-ajc8203j.mjs +2 -0
  109. package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +2 -0
  110. package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +2 -0
  111. package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +16 -0
  112. package/dist/chunks/cli-0.6.13-b55baxv4.mjs +2 -0
  113. package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +2 -0
  114. package/dist/chunks/cli-0.6.13-c3452432.mjs +5 -0
  115. package/dist/chunks/cli-0.6.13-cc118njq.mjs +2 -0
  116. package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +2 -0
  117. package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +2 -0
  118. package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +2 -0
  119. package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +2 -0
  120. package/dist/chunks/cli-0.6.13-da6fhpes.mjs +133 -0
  121. package/dist/chunks/cli-0.6.13-dada1afp.mjs +6 -0
  122. package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +2 -0
  123. package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +2 -0
  124. package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +2 -0
  125. package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +2 -0
  126. package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +2 -0
  127. package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +2 -0
  128. package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +2 -0
  129. package/dist/chunks/cli-0.6.13-esv4y00y.mjs +2 -0
  130. package/dist/chunks/cli-0.6.13-etytm730.mjs +2 -0
  131. package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +4 -0
  132. package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +6 -0
  133. package/dist/chunks/cli-0.6.13-f67v536f.mjs +59 -0
  134. package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +2 -0
  135. package/dist/chunks/cli-0.6.13-fkaxh655.mjs +2 -0
  136. package/dist/chunks/cli-0.6.13-fspszw8w.mjs +2 -0
  137. package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +10 -0
  138. package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +2 -0
  139. package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +2 -0
  140. package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +4 -0
  141. package/dist/chunks/cli-0.6.13-g65dfg11.mjs +6 -0
  142. package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +2 -0
  143. package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +2 -0
  144. package/dist/chunks/cli-0.6.13-grrshx1z.mjs +2 -0
  145. package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +2 -0
  146. package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +2 -0
  147. package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +2 -0
  148. package/dist/chunks/cli-0.6.13-h5dej6se.mjs +3 -0
  149. package/dist/chunks/cli-0.6.13-hd0sd535.mjs +193 -0
  150. package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +12 -0
  151. package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +3 -0
  152. package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +2 -0
  153. package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +4 -0
  154. package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +133 -0
  155. package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +2 -0
  156. package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +2 -0
  157. package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +3 -0
  158. package/dist/chunks/cli-0.6.13-k0kyv254.mjs +2 -0
  159. package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +2 -0
  160. package/dist/chunks/cli-0.6.13-kdm4832x.mjs +2 -0
  161. package/dist/chunks/cli-0.6.13-kekrwb08.mjs +45 -0
  162. package/dist/chunks/cli-0.6.13-kmg491hy.mjs +2 -0
  163. package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +12 -0
  164. package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +3 -0
  165. package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +2 -0
  166. package/dist/chunks/cli-0.6.13-me17wefv.mjs +2 -0
  167. package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +2 -0
  168. package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +39 -0
  169. package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +2 -0
  170. package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +2 -0
  171. package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +15 -0
  172. package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +4 -0
  173. package/dist/chunks/cli-0.6.13-nqd696hv.mjs +2 -0
  174. package/dist/chunks/cli-0.6.13-nvcr131g.mjs +4 -0
  175. package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +8 -0
  176. package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +2 -0
  177. package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +3 -0
  178. package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +2 -0
  179. package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +3 -0
  180. package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +2 -0
  181. package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +2 -0
  182. package/dist/chunks/cli-0.6.13-prh9py3z.mjs +2 -0
  183. package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +2 -0
  184. package/dist/chunks/cli-0.6.13-q161snt1.mjs +2 -0
  185. package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +2 -0
  186. package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +2 -0
  187. package/dist/chunks/cli-0.6.13-q8qzja14.mjs +2 -0
  188. package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +2 -0
  189. package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +4 -0
  190. package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +2 -0
  191. package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +2 -0
  192. package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +2 -0
  193. package/dist/chunks/cli-0.6.13-qyd73z97.mjs +2 -0
  194. package/dist/chunks/cli-0.6.13-r043ksv1.mjs +1 -0
  195. package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +4 -0
  196. package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +2 -0
  197. package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +2 -0
  198. package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +2 -0
  199. package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +6 -0
  200. package/dist/chunks/cli-0.6.13-s2vxndky.mjs +2 -0
  201. package/dist/chunks/cli-0.6.13-s3r638fw.mjs +2 -0
  202. package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +4 -0
  203. package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +3 -0
  204. package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +2 -0
  205. package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +15 -0
  206. package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +2 -0
  207. package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +2 -0
  208. package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +2 -0
  209. package/dist/chunks/cli-0.6.13-tss2yk53.mjs +2 -0
  210. package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +2 -0
  211. package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +2 -0
  212. package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +17 -0
  213. package/dist/chunks/cli-0.6.13-v05nfcar.mjs +2 -0
  214. package/dist/chunks/cli-0.6.13-v160yjcc.mjs +2 -0
  215. package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +2 -0
  216. package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +2 -0
  217. package/dist/chunks/cli-0.6.13-v824ppa4.mjs +3 -0
  218. package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +2 -0
  219. package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +2 -0
  220. package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +2 -0
  221. package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +2 -0
  222. package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +2 -0
  223. package/dist/chunks/cli-0.6.13-w039mymy.mjs +2 -0
  224. package/dist/chunks/cli-0.6.13-w0qrn825.mjs +2 -0
  225. package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +2 -0
  226. package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +2 -0
  227. package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +5 -0
  228. package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +20 -0
  229. package/dist/chunks/cli-0.6.13-wtc8585b.mjs +2 -0
  230. package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +2 -0
  231. package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +2 -0
  232. package/dist/chunks/cli-0.6.13-xdedyafk.mjs +12 -0
  233. package/dist/chunks/cli-0.6.13-xf37gba3.mjs +21 -0
  234. package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +2 -0
  235. package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +2 -0
  236. package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +2 -0
  237. package/dist/chunks/cli-0.6.13-y20earfr.mjs +2 -0
  238. package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +2 -0
  239. package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +28 -0
  240. package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +2 -0
  241. package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +67 -0
  242. package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +2 -0
  243. package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +2 -0
  244. package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +2 -0
  245. package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +2 -0
  246. package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +9 -0
  247. package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +25 -0
  248. package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +15 -0
  249. package/dist/chunks/cli-0.6.13-ze0ah657.mjs +4 -0
  250. package/dist/chunks/cli-0.6.13-zktd03aq.mjs +2 -0
  251. package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +2 -0
  252. package/dist/chunks/client-0.6.13-apag8p3w.mjs +1 -0
  253. package/dist/chunks/color-0.6.13-m7e3xes9.mjs +1 -0
  254. package/dist/chunks/compact-0.6.13-064k380y.mjs +3 -0
  255. package/dist/chunks/config-0.6.13-2gskfa7r.mjs +1 -0
  256. package/dist/chunks/config-0.6.13-m7tbch3j.mjs +1 -0
  257. package/dist/chunks/constants-0.6.13-bq183whd.mjs +1 -0
  258. package/dist/chunks/context-0.6.13-4jm66js8.mjs +1 -0
  259. package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +1 -0
  260. package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +1 -0
  261. package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +1 -0
  262. package/dist/chunks/copy-0.6.13-11ksdws3.mjs +9 -0
  263. package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +1 -0
  264. package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +1 -0
  265. package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +1 -0
  266. package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +1 -0
  267. package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +1367 -0
  268. package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +1 -0
  269. package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +1 -0
  270. package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +1 -0
  271. package/dist/chunks/diff-0.6.13-3qr723e3.mjs +1 -0
  272. package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +1 -0
  273. package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +1 -0
  274. package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +1 -0
  275. package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +10 -0
  276. package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +1 -0
  277. package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +1 -0
  278. package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +1 -0
  279. package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +1 -0
  280. package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +1 -0
  281. package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +1 -0
  282. package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +1 -0
  283. package/dist/chunks/explorer-0.6.13-g670396m.mjs +1 -0
  284. package/dist/chunks/export-0.6.13-zytxcpn5.mjs +2 -0
  285. package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +1 -0
  286. package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +1 -0
  287. package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +1 -0
  288. package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +14 -0
  289. package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +1 -0
  290. package/dist/chunks/git-0.6.13-r45r70q4.mjs +1 -0
  291. package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +1 -0
  292. package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +4 -0
  293. package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +1 -0
  294. package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +1 -0
  295. package/dist/chunks/headless-0.6.13-gfageb5h.mjs +2 -0
  296. package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +6 -0
  297. package/dist/chunks/help-0.6.13-781b4zzf.mjs +1 -0
  298. package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +3 -0
  299. package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +1 -0
  300. package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +79 -0
  301. package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +3 -0
  302. package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +1 -0
  303. package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +1 -0
  304. package/dist/chunks/index-0.6.13-22g8yp33.mjs +1 -0
  305. package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +1 -0
  306. package/dist/chunks/index-0.6.13-3yrze12y.mjs +2 -0
  307. package/dist/chunks/index-0.6.13-4mx71hjt.mjs +2 -0
  308. package/dist/chunks/index-0.6.13-68g8rnf9.mjs +1 -0
  309. package/dist/chunks/index-0.6.13-6t8yz88d.mjs +1 -0
  310. package/dist/chunks/index-0.6.13-af1dgcmj.mjs +1 -0
  311. package/dist/chunks/index-0.6.13-afmvxwx2.mjs +1 -0
  312. package/dist/chunks/index-0.6.13-by0wfak3.mjs +9 -0
  313. package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +1 -0
  314. package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +1 -0
  315. package/dist/chunks/index-0.6.13-jte6phkv.mjs +1 -0
  316. package/dist/chunks/index-0.6.13-m632g3gy.mjs +1 -0
  317. package/dist/chunks/index-0.6.13-mwpm4arf.mjs +5 -0
  318. package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +30 -0
  319. package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +1 -0
  320. package/dist/chunks/index-0.6.13-ptnyngf8.mjs +1 -0
  321. package/dist/chunks/index-0.6.13-q3shbg14.mjs +1 -0
  322. package/dist/chunks/index-0.6.13-qbgadtxv.mjs +1 -0
  323. package/dist/chunks/index-0.6.13-sv4q66cp.mjs +1 -0
  324. package/dist/chunks/index-0.6.13-waxz0ekk.mjs +1 -0
  325. package/dist/chunks/index-0.6.13-why7ggz3.mjs +9 -0
  326. package/dist/chunks/index-0.6.13-y16k48ab.mjs +1 -0
  327. package/dist/chunks/init-0.6.13-4hnytb22.mjs +1 -0
  328. package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +1 -0
  329. package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +1 -0
  330. package/dist/chunks/insights-0.6.13-jydg844c.mjs +870 -0
  331. package/dist/chunks/install-0.6.13-n2sd9y79.mjs +1 -0
  332. package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +149 -0
  333. package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +1 -0
  334. package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +1 -0
  335. package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +1 -0
  336. package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +2 -0
  337. package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +2 -0
  338. package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +1 -0
  339. package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +1 -0
  340. package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +1 -0
  342. package/dist/chunks/log-0.6.13-k8w72xt1.mjs +1 -0
  343. package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +1 -0
  344. package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +1 -0
  345. package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +4 -0
  347. package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +17 -0
  348. package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +1 -0
  349. package/dist/chunks/memory-0.6.13-atsckryz.mjs +3 -0
  350. package/dist/chunks/model-0.6.13-0atttv57.mjs +1 -0
  351. package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +2 -0
  352. package/dist/chunks/node-0.6.13-x2bbeer9.mjs +12 -0
  353. package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +1 -0
  354. package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +14 -0
  355. package/dist/chunks/output-style-0.6.13-m28me769.mjs +1 -0
  356. package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +1 -0
  357. package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +1 -0
  358. package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +1 -0
  359. package/dist/chunks/passes-0.6.13-q60h610m.mjs +1 -0
  360. package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +3 -0
  361. package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +1 -0
  362. package/dist/chunks/plan-0.6.13-jnph14bx.mjs +1 -0
  363. package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +1 -0
  364. package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +29 -0
  365. package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +1 -0
  366. package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +9 -0
  367. package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +2 -0
  368. package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +57 -0
  369. package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +1 -0
  370. package/dist/chunks/process-0.6.13-38dsvzca.mjs +1 -0
  371. package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +1 -0
  372. package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +9 -0
  373. package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +1 -0
  374. package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +1 -0
  375. package/dist/chunks/prompts-0.6.13-702ak30b.mjs +1 -0
  376. package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +13 -0
  377. package/dist/chunks/provider-0.6.13-2sx115qq.mjs +2 -0
  378. package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +1 -0
  379. package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +6 -0
  380. package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +1 -0
  381. package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +34 -0
  382. package/dist/chunks/registry-0.6.13-pstf339a.mjs +1 -0
  383. package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +5 -0
  384. package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +2 -0
  385. package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +1 -0
  386. package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +1 -0
  387. package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +1 -0
  388. package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +1 -0
  389. package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +1 -0
  390. package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +1 -0
  391. package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +2 -0
  392. package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +1 -0
  393. package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +1 -0
  394. package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +1 -0
  395. package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +1 -0
  396. package/dist/chunks/session-0.6.13-83jr96cj.mjs +2 -0
  397. package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +1 -0
  398. package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +1 -0
  399. package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +1 -0
  400. package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +1 -0
  401. package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +5 -0
  402. package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +1 -0
  403. package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +1 -0
  404. package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +1 -0
  405. package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +1 -0
  406. package/dist/chunks/state-0.6.13-257cjw4h.mjs +1 -0
  407. package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +6 -0
  408. package/dist/chunks/status-0.6.13-cefspgtr.mjs +1 -0
  409. package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +1 -0
  410. package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +1 -0
  411. package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +1 -0
  412. package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +1 -0
  413. package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +1 -0
  414. package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +1 -0
  415. package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +1 -0
  416. package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +1 -0
  417. package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +1 -0
  418. package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +1 -0
  419. package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +1 -0
  420. package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +1 -0
  421. package/dist/chunks/tools-0.6.13-heefxcxe.mjs +1 -0
  422. package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +1 -0
  423. package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +69 -0
  424. package/dist/chunks/types-0.6.13-26eegce9.mjs +1 -0
  425. package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +4 -0
  426. package/dist/chunks/update-0.6.13-tj94pp6r.mjs +86 -0
  427. package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +1 -0
  428. package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +7 -0
  429. package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +14 -0
  430. package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +1 -0
  431. package/dist/chunks/usage-0.6.13-whrgny68.mjs +1 -0
  432. package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +1 -0
  433. package/dist/chunks/utils-0.6.13-jybbphy0.mjs +1 -0
  434. package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +1 -0
  435. package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +1 -0
  436. package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +132 -0
  437. package/dist/chunks/worktree-0.6.13-efnvp677.mjs +1 -0
  438. package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +1 -0
  439. package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +7 -0
  440. package/dist/claudin-vscode.vsix +0 -0
  441. package/dist/cli.mjs +2 -2
  442. package/package.json +1 -1
  443. package/dist/chunks/AgentTool-0.6.12-b2gfz5kv.mjs +0 -1
  444. package/dist/chunks/App-0.6.12-mh1ysgxg.mjs +0 -1
  445. package/dist/chunks/ApproveApiKey-0.6.12-r2wj56g6.mjs +0 -1
  446. package/dist/chunks/AssistantSessionChooser-0.6.12-vg6y5ha1.mjs +0 -1
  447. package/dist/chunks/AutoModeOptInDialog-0.6.12-dhx63scb.mjs +0 -1
  448. package/dist/chunks/BypassPermissionsModeDialog-0.6.12-rpt2b1wj.mjs +0 -1
  449. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.12-2arvz9mf.mjs +0 -1
  450. package/dist/chunks/ConsoleOAuthFlow-0.6.12-5htdzb3m.mjs +0 -1
  451. package/dist/chunks/DiffDialog-0.6.12-ta0sjcsf.mjs +0 -7
  452. package/dist/chunks/Doctor-0.6.12-mwbqw1rj.mjs +0 -1
  453. package/dist/chunks/ExplorerDialog-0.6.12-58rcsfy9.mjs +0 -6
  454. package/dist/chunks/Grove-0.6.12-tnpptv0x.mjs +0 -1
  455. package/dist/chunks/ITermBackend-0.6.12-ez4cgygb.mjs +0 -1
  456. package/dist/chunks/InvalidConfigDialog-0.6.12-d7dkg0t5.mjs +0 -1
  457. package/dist/chunks/InvalidSettingsDialog-0.6.12-f05fw15j.mjs +0 -1
  458. package/dist/chunks/MigrationDialog-0.6.12-rr1km3wx.mjs +0 -1
  459. package/dist/chunks/Onboarding-0.6.12-75ts37c4.mjs +0 -1
  460. package/dist/chunks/ProviderManager-0.6.12-ggazg3xb.mjs +0 -1
  461. package/dist/chunks/REPL-0.6.12-230gxwk3.mjs +0 -1
  462. package/dist/chunks/ResumeConversation-0.6.12-b6w9nxwe.mjs +0 -1
  463. package/dist/chunks/SnapshotUpdateDialog-0.6.12-1jqm9wpr.mjs +0 -1
  464. package/dist/chunks/TeleportProgress-0.6.12-5rky61kj.mjs +0 -1
  465. package/dist/chunks/TeleportRepoMismatchDialog-0.6.12-zep0xyc2.mjs +0 -1
  466. package/dist/chunks/TeleportResumeWrapper-0.6.12-wfr7mfew.mjs +0 -1
  467. package/dist/chunks/TmuxBackend-0.6.12-v453hg0b.mjs +0 -9
  468. package/dist/chunks/ToolSearchTool-0.6.12-p0s6m4y8.mjs +0 -1
  469. package/dist/chunks/TrustDialog-0.6.12-k76hznv2.mjs +0 -1
  470. package/dist/chunks/activeProvider-0.6.12-sv3z8anm.mjs +0 -1
  471. package/dist/chunks/add-dir-0.6.12-wnbxt7vy.mjs +0 -1
  472. package/dist/chunks/agents-0.6.12-b9dy00ag.mjs +0 -110
  473. package/dist/chunks/agents-0.6.12-ycqzf9j5.mjs +0 -3
  474. package/dist/chunks/api-0.6.12-14eqhy3z.mjs +0 -1
  475. package/dist/chunks/asciicast-0.6.12-vbsq9mgp.mjs +0 -1
  476. package/dist/chunks/assistant-0.6.12-5p1f9bbw.mjs +0 -1
  477. package/dist/chunks/auth-0.6.12-pa89ctgf.mjs +0 -1
  478. package/dist/chunks/auth-0.6.12-wk2y5d3t.mjs +0 -1
  479. package/dist/chunks/autoMode-0.6.12-y4rjrey5.mjs +0 -48
  480. package/dist/chunks/autoUpdater-0.6.12-shtexsmc.mjs +0 -1
  481. package/dist/chunks/backgroundHousekeeping-0.6.12-r98xwf4x.mjs +0 -1
  482. package/dist/chunks/branch-0.6.12-bwqzpwr3.mjs +0 -4
  483. package/dist/chunks/bridge-0.6.12-j1y5hhxp.mjs +0 -2
  484. package/dist/chunks/bridgeConfig-0.6.12-jedyxebh.mjs +0 -1
  485. package/dist/chunks/bridgeEnabled-0.6.12-15wd9gtx.mjs +0 -1
  486. package/dist/chunks/bridgeMain-0.6.12-02c465aw.mjs +0 -88
  487. package/dist/chunks/bridgePointer-0.6.12-nmffskv4.mjs +0 -1
  488. package/dist/chunks/btw-0.6.12-zvse57mq.mjs +0 -1
  489. package/dist/chunks/buddy-0.6.12-2qsbgdn6.mjs +0 -3
  490. package/dist/chunks/cacache-0.6.12-fhcd4wsf.mjs +0 -1
  491. package/dist/chunks/cache-probe-0.6.12-n2cm80z4.mjs +0 -21
  492. package/dist/chunks/cacheStats-0.6.12-h45pnvr7.mjs +0 -4
  493. package/dist/chunks/caches-0.6.12-cfaw7jb1.mjs +0 -1
  494. package/dist/chunks/claudeDesktop-0.6.12-6rnj0zw7.mjs +0 -1
  495. package/dist/chunks/claudemd-0.6.12-e90nb8vx.mjs +0 -1
  496. package/dist/chunks/clear-0.6.12-gadvgvp6.mjs +0 -1
  497. package/dist/chunks/clearTerminal-0.6.12-91ykpa58.mjs +0 -1
  498. package/dist/chunks/cli-0.6.12-0ghv260y.mjs +0 -2
  499. package/dist/chunks/cli-0.6.12-0hjd35q4.mjs +0 -12
  500. package/dist/chunks/cli-0.6.12-0t5tsk2y.mjs +0 -2
  501. package/dist/chunks/cli-0.6.12-0xpfj4aq.mjs +0 -4
  502. package/dist/chunks/cli-0.6.12-127pt3vk.mjs +0 -2
  503. package/dist/chunks/cli-0.6.12-14b2bpdj.mjs +0 -2
  504. package/dist/chunks/cli-0.6.12-175knjzx.mjs +0 -2
  505. package/dist/chunks/cli-0.6.12-1c92shz1.mjs +0 -2
  506. package/dist/chunks/cli-0.6.12-1f7vq52y.mjs +0 -2
  507. package/dist/chunks/cli-0.6.12-1qrp0zx7.mjs +0 -2
  508. package/dist/chunks/cli-0.6.12-1rc09wxd.mjs +0 -2
  509. package/dist/chunks/cli-0.6.12-21j45ejg.mjs +0 -59
  510. package/dist/chunks/cli-0.6.12-25h7f74n.mjs +0 -24
  511. package/dist/chunks/cli-0.6.12-263jrtsj.mjs +0 -58
  512. package/dist/chunks/cli-0.6.12-2g0n7jpe.mjs +0 -5
  513. package/dist/chunks/cli-0.6.12-2pyqs7x9.mjs +0 -2
  514. package/dist/chunks/cli-0.6.12-2stzmmb2.mjs +0 -4
  515. package/dist/chunks/cli-0.6.12-2vrk1saq.mjs +0 -2
  516. package/dist/chunks/cli-0.6.12-33ff6hv9.mjs +0 -4
  517. package/dist/chunks/cli-0.6.12-36dzac4h.mjs +0 -2
  518. package/dist/chunks/cli-0.6.12-3wqd066g.mjs +0 -2
  519. package/dist/chunks/cli-0.6.12-47h7weys.mjs +0 -2
  520. package/dist/chunks/cli-0.6.12-49tkzshk.mjs +0 -2
  521. package/dist/chunks/cli-0.6.12-4d51yvzh.mjs +0 -2
  522. package/dist/chunks/cli-0.6.12-4ty0ah2n.mjs +0 -2
  523. package/dist/chunks/cli-0.6.12-4x5vs5t2.mjs +0 -2
  524. package/dist/chunks/cli-0.6.12-5abky5z4.mjs +0 -50
  525. package/dist/chunks/cli-0.6.12-5kxkvnxa.mjs +0 -2
  526. package/dist/chunks/cli-0.6.12-5qypvh7v.mjs +0 -2
  527. package/dist/chunks/cli-0.6.12-5ybc0q7n.mjs +0 -2
  528. package/dist/chunks/cli-0.6.12-609r2xeh.mjs +0 -21
  529. package/dist/chunks/cli-0.6.12-63zpmh9f.mjs +0 -2
  530. package/dist/chunks/cli-0.6.12-679e9ptm.mjs +0 -2
  531. package/dist/chunks/cli-0.6.12-70c7xde0.mjs +0 -2
  532. package/dist/chunks/cli-0.6.12-741zt03r.mjs +0 -2
  533. package/dist/chunks/cli-0.6.12-74k7zjxx.mjs +0 -3
  534. package/dist/chunks/cli-0.6.12-75ddftht.mjs +0 -9
  535. package/dist/chunks/cli-0.6.12-78e7hkq9.mjs +0 -5
  536. package/dist/chunks/cli-0.6.12-7bg5rk6a.mjs +0 -3
  537. package/dist/chunks/cli-0.6.12-7eeaap1p.mjs +0 -4
  538. package/dist/chunks/cli-0.6.12-7g6v5zs9.mjs +0 -3
  539. package/dist/chunks/cli-0.6.12-7mz9jxfa.mjs +0 -2
  540. package/dist/chunks/cli-0.6.12-7nbe9chc.mjs +0 -3
  541. package/dist/chunks/cli-0.6.12-865yx2ff.mjs +0 -133
  542. package/dist/chunks/cli-0.6.12-8fpq2hqy.mjs +0 -2
  543. package/dist/chunks/cli-0.6.12-8k03anbf.mjs +0 -6
  544. package/dist/chunks/cli-0.6.12-8mb2h24g.mjs +0 -2
  545. package/dist/chunks/cli-0.6.12-8q4g5rxc.mjs +0 -133
  546. package/dist/chunks/cli-0.6.12-8sxh430a.mjs +0 -2
  547. package/dist/chunks/cli-0.6.12-90nvdzxq.mjs +0 -45
  548. package/dist/chunks/cli-0.6.12-967g034j.mjs +0 -2
  549. package/dist/chunks/cli-0.6.12-96crx44d.mjs +0 -2
  550. package/dist/chunks/cli-0.6.12-9jpps9qw.mjs +0 -2
  551. package/dist/chunks/cli-0.6.12-9prkktd2.mjs +0 -2
  552. package/dist/chunks/cli-0.6.12-9qh2mjjb.mjs +0 -3
  553. package/dist/chunks/cli-0.6.12-9wj4jg9w.mjs +0 -2
  554. package/dist/chunks/cli-0.6.12-ad7k9env.mjs +0 -2
  555. package/dist/chunks/cli-0.6.12-aj7y0fr6.mjs +0 -2
  556. package/dist/chunks/cli-0.6.12-b3ehvfjb.mjs +0 -3
  557. package/dist/chunks/cli-0.6.12-b6d9622b.mjs +0 -2
  558. package/dist/chunks/cli-0.6.12-babce7kt.mjs +0 -2
  559. package/dist/chunks/cli-0.6.12-bc05z2sq.mjs +0 -2
  560. package/dist/chunks/cli-0.6.12-bcqvraap.mjs +0 -2
  561. package/dist/chunks/cli-0.6.12-bgfgcewx.mjs +0 -2
  562. package/dist/chunks/cli-0.6.12-bpd9xvrz.mjs +0 -39
  563. package/dist/chunks/cli-0.6.12-bv0tm3x4.mjs +0 -2
  564. package/dist/chunks/cli-0.6.12-bvynx2vs.mjs +0 -2
  565. package/dist/chunks/cli-0.6.12-bxdnb5bn.mjs +0 -2
  566. package/dist/chunks/cli-0.6.12-byvhqye2.mjs +0 -67
  567. package/dist/chunks/cli-0.6.12-c3qdck87.mjs +0 -2
  568. package/dist/chunks/cli-0.6.12-c4ssk0t1.mjs +0 -17
  569. package/dist/chunks/cli-0.6.12-c6tjtcxh.mjs +0 -3
  570. package/dist/chunks/cli-0.6.12-c864w559.mjs +0 -2
  571. package/dist/chunks/cli-0.6.12-c8b2fkt8.mjs +0 -2
  572. package/dist/chunks/cli-0.6.12-cq322qyb.mjs +0 -2
  573. package/dist/chunks/cli-0.6.12-cwy83z24.mjs +0 -2
  574. package/dist/chunks/cli-0.6.12-d2b8dptv.mjs +0 -2
  575. package/dist/chunks/cli-0.6.12-dad03em9.mjs +0 -4
  576. package/dist/chunks/cli-0.6.12-dawxz0j1.mjs +0 -2
  577. package/dist/chunks/cli-0.6.12-dgfgahne.mjs +0 -4
  578. package/dist/chunks/cli-0.6.12-dhessv32.mjs +0 -2
  579. package/dist/chunks/cli-0.6.12-dj4f3bx0.mjs +0 -2
  580. package/dist/chunks/cli-0.6.12-dknasxzd.mjs +0 -2
  581. package/dist/chunks/cli-0.6.12-dqagenjb.mjs +0 -2
  582. package/dist/chunks/cli-0.6.12-dtv1qnk9.mjs +0 -2
  583. package/dist/chunks/cli-0.6.12-dywed27z.mjs +0 -2
  584. package/dist/chunks/cli-0.6.12-ecgg0rmc.mjs +0 -42
  585. package/dist/chunks/cli-0.6.12-ecm9vh62.mjs +0 -193
  586. package/dist/chunks/cli-0.6.12-eghq631e.mjs +0 -2
  587. package/dist/chunks/cli-0.6.12-er4p2njc.mjs +0 -2
  588. package/dist/chunks/cli-0.6.12-f62r5f5z.mjs +0 -2
  589. package/dist/chunks/cli-0.6.12-fdy5s675.mjs +0 -2
  590. package/dist/chunks/cli-0.6.12-fm6zkr7d.mjs +0 -4
  591. package/dist/chunks/cli-0.6.12-fmf3vjw6.mjs +0 -2
  592. package/dist/chunks/cli-0.6.12-fr0rb7xk.mjs +0 -2
  593. package/dist/chunks/cli-0.6.12-fwnpcanc.mjs +0 -2
  594. package/dist/chunks/cli-0.6.12-g971w5pv.mjs +0 -5420
  595. package/dist/chunks/cli-0.6.12-g9dxg935.mjs +0 -2
  596. package/dist/chunks/cli-0.6.12-gcedgh1v.mjs +0 -6
  597. package/dist/chunks/cli-0.6.12-ged5ahj0.mjs +0 -2
  598. package/dist/chunks/cli-0.6.12-gf7chq9d.mjs +0 -2
  599. package/dist/chunks/cli-0.6.12-gr3edfs9.mjs +0 -15
  600. package/dist/chunks/cli-0.6.12-gr4j664p.mjs +0 -10
  601. package/dist/chunks/cli-0.6.12-gxszq2d0.mjs +0 -15
  602. package/dist/chunks/cli-0.6.12-gxtrhp03.mjs +0 -2
  603. package/dist/chunks/cli-0.6.12-gzh08zb9.mjs +0 -2
  604. package/dist/chunks/cli-0.6.12-h48nkjwv.mjs +0 -2
  605. package/dist/chunks/cli-0.6.12-h9ajwy84.mjs +0 -2
  606. package/dist/chunks/cli-0.6.12-hzjwqj4g.mjs +0 -2
  607. package/dist/chunks/cli-0.6.12-k0skdwrx.mjs +0 -28
  608. package/dist/chunks/cli-0.6.12-k20w6gxz.mjs +0 -2
  609. package/dist/chunks/cli-0.6.12-k2x52jw2.mjs +0 -2
  610. package/dist/chunks/cli-0.6.12-k5wkfa00.mjs +0 -18
  611. package/dist/chunks/cli-0.6.12-kkjabccp.mjs +0 -2
  612. package/dist/chunks/cli-0.6.12-krgdc9xv.mjs +0 -2
  613. package/dist/chunks/cli-0.6.12-kt60hyrz.mjs +0 -2
  614. package/dist/chunks/cli-0.6.12-kxgn5260.mjs +0 -34
  615. package/dist/chunks/cli-0.6.12-m1rdexn7.mjs +0 -2
  616. package/dist/chunks/cli-0.6.12-m652pj3f.mjs +0 -2
  617. package/dist/chunks/cli-0.6.12-m8br9xce.mjs +0 -3
  618. package/dist/chunks/cli-0.6.12-mxrs3myx.mjs +0 -4
  619. package/dist/chunks/cli-0.6.12-myvzbb0a.mjs +0 -2
  620. package/dist/chunks/cli-0.6.12-myxkk9nw.mjs +0 -18
  621. package/dist/chunks/cli-0.6.12-n87dgp00.mjs +0 -2
  622. package/dist/chunks/cli-0.6.12-nb71rkte.mjs +0 -2
  623. package/dist/chunks/cli-0.6.12-ndg5saae.mjs +0 -17
  624. package/dist/chunks/cli-0.6.12-nqh7eeq7.mjs +0 -2
  625. package/dist/chunks/cli-0.6.12-nsthg20j.mjs +0 -24
  626. package/dist/chunks/cli-0.6.12-nwdx223d.mjs +0 -25
  627. package/dist/chunks/cli-0.6.12-p29k66pp.mjs +0 -2
  628. package/dist/chunks/cli-0.6.12-p86keq4d.mjs +0 -2
  629. package/dist/chunks/cli-0.6.12-pb83k360.mjs +0 -2
  630. package/dist/chunks/cli-0.6.12-pbhgk1s7.mjs +0 -2
  631. package/dist/chunks/cli-0.6.12-pf3jff0s.mjs +0 -15
  632. package/dist/chunks/cli-0.6.12-pgpcv7kg.mjs +0 -2
  633. package/dist/chunks/cli-0.6.12-ptm6c9k7.mjs +0 -2
  634. package/dist/chunks/cli-0.6.12-qmryt9rx.mjs +0 -2
  635. package/dist/chunks/cli-0.6.12-qwcckae9.mjs +0 -2
  636. package/dist/chunks/cli-0.6.12-qysrg51y.mjs +0 -12
  637. package/dist/chunks/cli-0.6.12-r5az487p.mjs +0 -2
  638. package/dist/chunks/cli-0.6.12-rgecbw6c.mjs +0 -3
  639. package/dist/chunks/cli-0.6.12-rhbff3mp.mjs +0 -2
  640. package/dist/chunks/cli-0.6.12-rkfcw3gr.mjs +0 -2
  641. package/dist/chunks/cli-0.6.12-rn39da8q.mjs +0 -2
  642. package/dist/chunks/cli-0.6.12-ry6292t5.mjs +0 -2
  643. package/dist/chunks/cli-0.6.12-s3nsyxya.mjs +0 -16
  644. package/dist/chunks/cli-0.6.12-s762dex9.mjs +0 -2
  645. package/dist/chunks/cli-0.6.12-sdb5bx5s.mjs +0 -2
  646. package/dist/chunks/cli-0.6.12-shnqhhm8.mjs +0 -2
  647. package/dist/chunks/cli-0.6.12-sp1yd4kb.mjs +0 -2
  648. package/dist/chunks/cli-0.6.12-ssk9wgyc.mjs +0 -2
  649. package/dist/chunks/cli-0.6.12-t6e17b69.mjs +0 -2
  650. package/dist/chunks/cli-0.6.12-tqh55964.mjs +0 -2
  651. package/dist/chunks/cli-0.6.12-v1k9yxjk.mjs +0 -2
  652. package/dist/chunks/cli-0.6.12-ve0yf7bb.mjs +0 -2
  653. package/dist/chunks/cli-0.6.12-vmm9x1sf.mjs +0 -6
  654. package/dist/chunks/cli-0.6.12-vtwd2qms.mjs +0 -2
  655. package/dist/chunks/cli-0.6.12-vvxje0rc.mjs +0 -2
  656. package/dist/chunks/cli-0.6.12-w58bx1s8.mjs +0 -2
  657. package/dist/chunks/cli-0.6.12-w7rsc2wy.mjs +0 -2
  658. package/dist/chunks/cli-0.6.12-w8a3jzmm.mjs +0 -2
  659. package/dist/chunks/cli-0.6.12-wbta805y.mjs +0 -2
  660. package/dist/chunks/cli-0.6.12-wdv94m1r.mjs +0 -2
  661. package/dist/chunks/cli-0.6.12-whhyvv1p.mjs +0 -6
  662. package/dist/chunks/cli-0.6.12-wj4xsk58.mjs +0 -4
  663. package/dist/chunks/cli-0.6.12-wq16rd87.mjs +0 -2
  664. package/dist/chunks/cli-0.6.12-wt1j42v1.mjs +0 -2
  665. package/dist/chunks/cli-0.6.12-wt28w88h.mjs +0 -3
  666. package/dist/chunks/cli-0.6.12-x4px6ebg.mjs +0 -2
  667. package/dist/chunks/cli-0.6.12-x60ha982.mjs +0 -2
  668. package/dist/chunks/cli-0.6.12-x94fe36b.mjs +0 -2
  669. package/dist/chunks/cli-0.6.12-xm6axcxk.mjs +0 -2
  670. package/dist/chunks/cli-0.6.12-xm90zy0d.mjs +0 -4
  671. package/dist/chunks/cli-0.6.12-xmnemm5p.mjs +0 -2
  672. package/dist/chunks/cli-0.6.12-xn7761gp.mjs +0 -12
  673. package/dist/chunks/cli-0.6.12-xtdnjw66.mjs +0 -5
  674. package/dist/chunks/cli-0.6.12-xwf1dh5d.mjs +0 -1
  675. package/dist/chunks/cli-0.6.12-xz3jwj4y.mjs +0 -2
  676. package/dist/chunks/cli-0.6.12-xzaf2m9a.mjs +0 -2
  677. package/dist/chunks/cli-0.6.12-y1tqcbp0.mjs +0 -3
  678. package/dist/chunks/cli-0.6.12-y22js5cj.mjs +0 -2
  679. package/dist/chunks/cli-0.6.12-y3jb5s3q.mjs +0 -2
  680. package/dist/chunks/cli-0.6.12-y8en6j6s.mjs +0 -7
  681. package/dist/chunks/cli-0.6.12-y972k2tw.mjs +0 -2
  682. package/dist/chunks/cli-0.6.12-ycr2zjz2.mjs +0 -3
  683. package/dist/chunks/cli-0.6.12-ydaqyt5e.mjs +0 -2
  684. package/dist/chunks/cli-0.6.12-yf87hj21.mjs +0 -2
  685. package/dist/chunks/cli-0.6.12-ygsvrmh6.mjs +0 -2
  686. package/dist/chunks/cli-0.6.12-yn5d7xfc.mjs +0 -3
  687. package/dist/chunks/cli-0.6.12-ythpt06e.mjs +0 -2
  688. package/dist/chunks/cli-0.6.12-ytv10xs6.mjs +0 -2
  689. package/dist/chunks/cli-0.6.12-yznryqep.mjs +0 -2
  690. package/dist/chunks/cli-0.6.12-z2t6eay6.mjs +0 -8
  691. package/dist/chunks/cli-0.6.12-z3mxk8qb.mjs +0 -2
  692. package/dist/chunks/cli-0.6.12-zqn1amfd.mjs +0 -2
  693. package/dist/chunks/cli-0.6.12-zys3gk6x.mjs +0 -20
  694. package/dist/chunks/client-0.6.12-phc6xwmp.mjs +0 -1
  695. package/dist/chunks/color-0.6.12-3bm7m3a7.mjs +0 -1
  696. package/dist/chunks/compact-0.6.12-5d6s9rmk.mjs +0 -3
  697. package/dist/chunks/config-0.6.12-3p83m4s1.mjs +0 -1
  698. package/dist/chunks/config-0.6.12-5mzt69kt.mjs +0 -1
  699. package/dist/chunks/constants-0.6.12-1a88z0wh.mjs +0 -1
  700. package/dist/chunks/context-0.6.12-ejp5j50g.mjs +0 -1
  701. package/dist/chunks/context-noninteractive-0.6.12-93sjsnbj.mjs +0 -1
  702. package/dist/chunks/conversation-0.6.12-zjm6wgxd.mjs +0 -1
  703. package/dist/chunks/copilotHeaders-0.6.12-ergymbrz.mjs +0 -1
  704. package/dist/chunks/copy-0.6.12-ae40pdpw.mjs +0 -9
  705. package/dist/chunks/cost-0.6.12-0zft9dxk.mjs +0 -1
  706. package/dist/chunks/createSSHSession-0.6.12-eawy0hjj.mjs +0 -1
  707. package/dist/chunks/createSession-0.6.12-k2ybhmnf.mjs +0 -1
  708. package/dist/chunks/debug-0.6.12-qwsc3zve.mjs +0 -1
  709. package/dist/chunks/defaultActionDeps-0.6.12-z3bbhkka.mjs +0 -1367
  710. package/dist/chunks/desktop-0.6.12-mbqzwz1w.mjs +0 -1
  711. package/dist/chunks/detectRepository-0.6.12-0c1bdxe1.mjs +0 -1
  712. package/dist/chunks/detection-0.6.12-fatrvr7b.mjs +0 -1
  713. package/dist/chunks/diff-0.6.12-jgkz8t70.mjs +0 -1
  714. package/dist/chunks/doctor-0.6.12-sgdd9y17.mjs +0 -1
  715. package/dist/chunks/doctorDiagnostic-0.6.12-262gvntg.mjs +0 -1
  716. package/dist/chunks/earlyInput-0.6.12-1hqzzwqc.mjs +0 -1
  717. package/dist/chunks/effort-0.6.12-td2qdqtd.mjs +0 -10
  718. package/dist/chunks/envLessBridgeConfig-0.6.12-yq8zz1ms.mjs +0 -1
  719. package/dist/chunks/envUtils-0.6.12-41m24c9y.mjs +0 -1
  720. package/dist/chunks/environmentSelection-0.6.12-96z66p9g.mjs +0 -1
  721. package/dist/chunks/environments-0.6.12-g4zawvgx.mjs +0 -1
  722. package/dist/chunks/errors-0.6.12-pwgn10xz.mjs +0 -1
  723. package/dist/chunks/exampleCommands-0.6.12-abwdmv10.mjs +0 -1
  724. package/dist/chunks/exit-0.6.12-1zstjg69.mjs +0 -1
  725. package/dist/chunks/explorer-0.6.12-ekq5bptv.mjs +0 -1
  726. package/dist/chunks/export-0.6.12-2g1y7yq2.mjs +0 -2
  727. package/dist/chunks/extra-usage-0.6.12-r3tx0z4q.mjs +0 -1
  728. package/dist/chunks/extra-usage-noninteractive-0.6.12-1b6v7jrh.mjs +0 -1
  729. package/dist/chunks/fast-0.6.12-8ycyb7jh.mjs +0 -1
  730. package/dist/chunks/feedback-0.6.12-6rmervrh.mjs +0 -14
  731. package/dist/chunks/firstPartyEventLogger-0.6.12-k7t19wv3.mjs +0 -1
  732. package/dist/chunks/git-0.6.12-wd8h5tre.mjs +0 -1
  733. package/dist/chunks/githubModelsCredentials-0.6.12-kew470a1.mjs +0 -1
  734. package/dist/chunks/goal-0.6.12-ax8sm39h.mjs +0 -4
  735. package/dist/chunks/grove-0.6.12-gnc0890q.mjs +0 -1
  736. package/dist/chunks/growthbook-0.6.12-bp7gexrs.mjs +0 -1
  737. package/dist/chunks/headless-0.6.12-cttcwev7.mjs +0 -2
  738. package/dist/chunks/heapdump-0.6.12-zmkxywxh.mjs +0 -6
  739. package/dist/chunks/help-0.6.12-j1xp96ch.mjs +0 -1
  740. package/dist/chunks/hookChains-0.6.12-anh2pzvv.mjs +0 -3
  741. package/dist/chunks/hooks-0.6.12-9hm2ddcn.mjs +0 -1
  742. package/dist/chunks/hooks-0.6.12-a0gr31xg.mjs +0 -79
  743. package/dist/chunks/ide-0.6.12-gt24sqed.mjs +0 -3
  744. package/dist/chunks/image-processor-napi-0.6.12-fd06htw3.mjs +0 -1
  745. package/dist/chunks/inboundAttachments-0.6.12-24vvap3x.mjs +0 -1
  746. package/dist/chunks/index-0.6.12-2qgg1wff.mjs +0 -1
  747. package/dist/chunks/index-0.6.12-41vfjsr6.mjs +0 -1
  748. package/dist/chunks/index-0.6.12-73amkcbt.mjs +0 -1
  749. package/dist/chunks/index-0.6.12-avj6qyfm.mjs +0 -1
  750. package/dist/chunks/index-0.6.12-b80wbjtw.mjs +0 -1
  751. package/dist/chunks/index-0.6.12-ctpn09qp.mjs +0 -1
  752. package/dist/chunks/index-0.6.12-g637f9fx.mjs +0 -5
  753. package/dist/chunks/index-0.6.12-g802mnr6.mjs +0 -1
  754. package/dist/chunks/index-0.6.12-nmadn3pq.mjs +0 -1
  755. package/dist/chunks/index-0.6.12-pd2j0wnb.mjs +0 -30
  756. package/dist/chunks/index-0.6.12-pger0v41.mjs +0 -1
  757. package/dist/chunks/index-0.6.12-phsd1x3s.mjs +0 -1
  758. package/dist/chunks/index-0.6.12-q59k8jj7.mjs +0 -1
  759. package/dist/chunks/index-0.6.12-rdmcmvt7.mjs +0 -1
  760. package/dist/chunks/index-0.6.12-rtthmj5w.mjs +0 -2
  761. package/dist/chunks/index-0.6.12-rtv5gkng.mjs +0 -1
  762. package/dist/chunks/index-0.6.12-sk1hsbbd.mjs +0 -1
  763. package/dist/chunks/index-0.6.12-w302e6b5.mjs +0 -2
  764. package/dist/chunks/index-0.6.12-wxr6k8p3.mjs +0 -1
  765. package/dist/chunks/index-0.6.12-ydb5e4ax.mjs +0 -9
  766. package/dist/chunks/index-0.6.12-z4mv30qj.mjs +0 -1
  767. package/dist/chunks/index-0.6.12-zn2sw41t.mjs +0 -1
  768. package/dist/chunks/index-0.6.12-zztf50tf.mjs +0 -9
  769. package/dist/chunks/init-0.6.12-hzpcvtax.mjs +0 -1
  770. package/dist/chunks/initReplBridge-0.6.12-19h8ek32.mjs +0 -1
  771. package/dist/chunks/ink-0.6.12-wntqc47k.mjs +0 -1
  772. package/dist/chunks/insights-0.6.12-ehv9w1sm.mjs +0 -870
  773. package/dist/chunks/install-0.6.12-ek5e219m.mjs +0 -1
  774. package/dist/chunks/install-github-app-0.6.12-f8ks7z1p.mjs +0 -149
  775. package/dist/chunks/install-slack-app-0.6.12-xy3ka7xx.mjs +0 -1
  776. package/dist/chunks/instrumentation-0.6.12-k5x3bf7b.mjs +0 -1
  777. package/dist/chunks/interactiveHelpers-0.6.12-8kc6febh.mjs +0 -1
  778. package/dist/chunks/keybindings-0.6.12-4nm3sthz.mjs +0 -2
  779. package/dist/chunks/knowledge-0.6.12-94kf7zkv.mjs +0 -2
  780. package/dist/chunks/latestVersionCache-0.6.12-4hzsqy8q.mjs +0 -1
  781. package/dist/chunks/loadAgentsDir-0.6.12-r6w36jvz.mjs +0 -1
  782. package/dist/chunks/loadPluginHooks-0.6.12-7jgfnzk9.mjs +0 -1
  783. package/dist/chunks/loadPluginHooks-0.6.12-g28czpqy.mjs +0 -1
  784. package/dist/chunks/log-0.6.12-n2qz9rqw.mjs +0 -1
  785. package/dist/chunks/main-0.6.12-z3w0x1v7.mjs +0 -1
  786. package/dist/chunks/managedEnv-0.6.12-96ytmrqz.mjs +0 -1
  787. package/dist/chunks/mcp-0.6.12-k6fx8h8x.mjs +0 -4
  788. package/dist/chunks/mcp-0.6.12-wzy270hy.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.12-y0dw59te.mjs +0 -17
  790. package/dist/chunks/mcpb-0.6.12-67ahhcye.mjs +0 -1
  791. package/dist/chunks/memory-0.6.12-gym7m96x.mjs +0 -3
  792. package/dist/chunks/model-0.6.12-5p83mwxc.mjs +0 -1
  793. package/dist/chunks/model-0.6.12-ez8h0awr.mjs +0 -2
  794. package/dist/chunks/node-0.6.12-m9nrbmtq.mjs +0 -12
  795. package/dist/chunks/oauth-0.6.12-bzsfe61y.mjs +0 -1
  796. package/dist/chunks/openaiShim-0.6.12-0wwtx5pq.mjs +0 -14
  797. package/dist/chunks/output-style-0.6.12-4z477r8f.mjs +0 -1
  798. package/dist/chunks/package-FMOR3ELU-0.6.12-8kng3f73.mjs +0 -1
  799. package/dist/chunks/parseConnectUrl-0.6.12-nfvmk4rg.mjs +0 -1
  800. package/dist/chunks/parser-0.6.12-d3k043gq.mjs +0 -1
  801. package/dist/chunks/passes-0.6.12-ne11kyby.mjs +0 -1
  802. package/dist/chunks/permissions-0.6.12-atkdd074.mjs +0 -3
  803. package/dist/chunks/permissions-0.6.12-gp1rkkw5.mjs +0 -1
  804. package/dist/chunks/plan-0.6.12-nps961gw.mjs +0 -1
  805. package/dist/chunks/plist-0.6.12-sn7z1bfm.mjs +0 -1
  806. package/dist/chunks/plugin-0.6.12-t8w4em2b.mjs +0 -29
  807. package/dist/chunks/pluginStartupCheck-0.6.12-detthxd9.mjs +0 -1
  808. package/dist/chunks/plugins-0.6.12-jsyfj14z.mjs +0 -9
  809. package/dist/chunks/preActionHook-0.6.12-5z3qaz2c.mjs +0 -2
  810. package/dist/chunks/print-0.6.12-7snrawae.mjs +0 -57
  811. package/dist/chunks/privacy-settings-0.6.12-67vpkknh.mjs +0 -1
  812. package/dist/chunks/process-0.6.12-9kdkqzvq.mjs +0 -1
  813. package/dist/chunks/processBashCommand-0.6.12-vq198s4m.mjs +0 -1
  814. package/dist/chunks/processSlashCommand-0.6.12-pqm77gwv.mjs +0 -9
  815. package/dist/chunks/prompt-0.6.12-q902mafh.mjs +0 -1
  816. package/dist/chunks/prompt-0.6.12-xd40dw3n.mjs +0 -1
  817. package/dist/chunks/prompts-0.6.12-wa0zakkp.mjs +0 -1
  818. package/dist/chunks/protocolHandler-0.6.12-s9g03fmy.mjs +0 -13
  819. package/dist/chunks/provider-0.6.12-0rkb5my1.mjs +0 -2
  820. package/dist/chunks/providerProfiles-0.6.12-c8560hh3.mjs +0 -1
  821. package/dist/chunks/providerValidation-0.6.12-p7a4pezy.mjs +0 -6
  822. package/dist/chunks/rate-limit-options-0.6.12-m4yzkb1s.mjs +0 -1
  823. package/dist/chunks/registerSubcommands-0.6.12-4ympw4qx.mjs +0 -34
  824. package/dist/chunks/registry-0.6.12-me5c4ees.mjs +0 -1
  825. package/dist/chunks/release-notes-0.6.12-c98aaef6.mjs +0 -5
  826. package/dist/chunks/reload-plugins-0.6.12-9bjvvf1t.mjs +0 -2
  827. package/dist/chunks/remote-env-0.6.12-ssv38t07.mjs +0 -1
  828. package/dist/chunks/remoteBridgeCore-0.6.12-499kczq5.mjs +0 -1
  829. package/dist/chunks/remoteSession-0.6.12-0z14sh5j.mjs +0 -1
  830. package/dist/chunks/rename-0.6.12-e27tv0xn.mjs +0 -1
  831. package/dist/chunks/replBridgeHandle-0.6.12-s8xm10k3.mjs +0 -1
  832. package/dist/chunks/replLauncher-0.6.12-b0tmf29d.mjs +0 -1
  833. package/dist/chunks/resume-0.6.12-m9xp6af3.mjs +0 -2
  834. package/dist/chunks/rewind-0.6.12-r48k3bke.mjs +0 -1
  835. package/dist/chunks/rootOptions-0.6.12-xg4e2npc.mjs +0 -1
  836. package/dist/chunks/sandbox-adapter-0.6.12-c0jg2mha.mjs +0 -1
  837. package/dist/chunks/sandbox-toggle-0.6.12-qngt56vd.mjs +0 -1
  838. package/dist/chunks/session-0.6.12-3kqbq47j.mjs +0 -2
  839. package/dist/chunks/sessionDiscovery-0.6.12-azdg6zpm.mjs +0 -1
  840. package/dist/chunks/sessionFileAccessHooks-0.6.12-smrf94x8.mjs +0 -1
  841. package/dist/chunks/sessionStorage-0.6.12-3s4xgk72.mjs +0 -1
  842. package/dist/chunks/settings-0.6.12-qgf2vk7t.mjs +0 -1
  843. package/dist/chunks/setup-0.6.12-rmgv0hja.mjs +0 -5
  844. package/dist/chunks/sinks-0.6.12-a76rjjna.mjs +0 -1
  845. package/dist/chunks/skills-0.6.12-97wwzbqg.mjs +0 -1
  846. package/dist/chunks/startupProfiler-0.6.12-n7dwbws3.mjs +0 -1
  847. package/dist/chunks/startupUpdateCheck-0.6.12-zz72ygxt.mjs +0 -1
  848. package/dist/chunks/state-0.6.12-k8svntgp.mjs +0 -1
  849. package/dist/chunks/stats-0.6.12-6eqvrdcf.mjs +0 -6
  850. package/dist/chunks/status-0.6.12-89m9h2d5.mjs +0 -1
  851. package/dist/chunks/stickers-0.6.12-nkgkxve6.mjs +0 -1
  852. package/dist/chunks/subprocessEnv-0.6.12-aeb0xfq8.mjs +0 -1
  853. package/dist/chunks/tasks-0.6.12-768gy8rf.mjs +0 -1
  854. package/dist/chunks/teamHelpers-0.6.12-p30ye095.mjs +0 -1
  855. package/dist/chunks/teammateModeSnapshot-0.6.12-9ckbra11.mjs +0 -1
  856. package/dist/chunks/teleport-0.6.12-a7phvh8w.mjs +0 -1
  857. package/dist/chunks/terminalSetup-0.6.12-v1mmftfk.mjs +0 -1
  858. package/dist/chunks/theme-0.6.12-pk44vevh.mjs +0 -1
  859. package/dist/chunks/thinkback-0.6.12-h129pk9c.mjs +0 -1
  860. package/dist/chunks/thinkback-play-0.6.12-0q1h69xk.mjs +0 -1
  861. package/dist/chunks/toolPool-0.6.12-6btnc350.mjs +0 -1
  862. package/dist/chunks/toolSearch-0.6.12-6w6c2d0k.mjs +0 -1
  863. package/dist/chunks/tools-0.6.12-payt8j1x.mjs +0 -1
  864. package/dist/chunks/trustedDevice-0.6.12-3cf6rrwr.mjs +0 -1
  865. package/dist/chunks/turndown.cjs-0.6.12-vpz9aqc1.mjs +0 -69
  866. package/dist/chunks/types-0.6.12-89db9fm7.mjs +0 -1
  867. package/dist/chunks/ultrareviewCommand-0.6.12-71j89ba5.mjs +0 -4
  868. package/dist/chunks/update-0.6.12-b1am0643.mjs +0 -86
  869. package/dist/chunks/upgrade-0.6.12-cnrv3v3c.mjs +0 -1
  870. package/dist/chunks/upload-0.6.12-sgdhvzs6.mjs +0 -7
  871. package/dist/chunks/upstreamproxy-0.6.12-jebzvamj.mjs +0 -14
  872. package/dist/chunks/url-handler-napi-0.6.12-qmbaskxk.mjs +0 -1
  873. package/dist/chunks/usage-0.6.12-4rpa911e.mjs +0 -1
  874. package/dist/chunks/util-0.6.12-p6wjnsvs.mjs +0 -1
  875. package/dist/chunks/utils-0.6.12-zg7kvysm.mjs +0 -1
  876. package/dist/chunks/vim-0.6.12-jp06y1w1.mjs +0 -1
  877. package/dist/chunks/watcher-0.6.12-46f463g8.mjs +0 -1
  878. package/dist/chunks/wiki-0.6.12-338ffyp8.mjs +0 -132
  879. package/dist/chunks/worktree-0.6.12-e32fmtrw.mjs +0 -1
  880. package/dist/chunks/worktreeModeEnabled-0.6.12-89pgcps3.mjs +0 -1
  881. package/dist/chunks/wrapper-0.6.12-h92v93hb.mjs +0 -7
  882. /package/dist/chunks/{cli-0.6.12-epgpn2nw.mjs → cli-0.6.13-1dwgndg5.mjs} +0 -0
  883. /package/dist/chunks/{cli-0.6.12-6bdrnprg.mjs → cli-0.6.13-5qvssn7h.mjs} +0 -0
  884. /package/dist/chunks/{cli-0.6.12-rcpf2m27.mjs → cli-0.6.13-e3h2z83b.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.12-k3a537sa.mjs → cli-0.6.13-h2yxttam.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.12-x7na0qcv.mjs → cli-0.6.13-p839x5sj.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.12-zgydst6p.mjs → cli-0.6.13-rmzzvjt2.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.12-femcgqwt.mjs → cli-0.6.13-s9yqkgwe.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.12-e3smy1wy.mjs → cli-0.6.13-tsz6mx5f.mjs} +0 -0
@@ -1,88 +0,0 @@
1
- import{ab as yJ,bb as xz,cb as rz,db as cz,eb as iz,fb as bJ}from"./cli-0.6.12-c8b2fkt8.mjs";import{hb as Tz}from"./cli-0.6.12-127pt3vk.mjs";import{pb as TJ,qb as xJ,rb as MJ,sb as wJ,tb as fJ}from"./cli-0.6.12-36dzac4h.mjs";import{vb as kJ}from"./cli-0.6.12-vtwd2qms.mjs";import{De as VJ,Ee as lJ}from"./cli-0.6.12-gr3edfs9.mjs";import{Ve as EJ,Xe as oz,Ze as DK}from"./cli-0.6.12-ythpt06e.mjs";import{kf as mz,mf as LJ,qf as OJ}from"./cli-0.6.12-eghq631e.mjs";import{Fl as AJ,Gl as vz,Hj as RJ,Ij as NK,JG as JJ,KG as Cz,Kl as BK,LG as KJ,MG as ZJ,OG as $J,PG as YJ,QG as XJ,RG as QJ,SG as WJ,ln as UJ,mn as CK}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import{HU as DJ,NU as _K}from"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import{$U as az,dV as RK}from"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import{Q0 as pz,T0 as PK}from"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import"./cli-0.6.12-g9dxg935.mjs";import"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import{y5 as i,z5 as FK}from"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import{$6 as pJ,_6 as G}from"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{$_ as CJ,B$ as fz,C$ as ez,D$ as zJ,E$ as cJ,a$ as qK,nea as yz,s8 as Wz,u8 as HK,vea as OK}from"./cli-0.6.12-ecm9vh62.mjs";import{Aea as sz,Bea as gJ,Dea as Rz,Kea as qz,Sea as GK}from"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import{Hfa as jK,zfa as PJ}from"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import{Vga as zz,Wga as NJ,Yga as QK}from"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as tz,Bha as qJ,Cha as uz,Gha as oJ,Yha as q}from"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import{qia as g,xia as VK}from"./cli-0.6.12-2stzmmb2.mjs";import{Dia as _J,Lia as BJ,Nia as WK}from"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Wpa as I}from"./cli-0.6.12-6bdrnprg.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
2
- `).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
3
- `)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}if($.endsWith(`
4
- `))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
5
- `)}function Vz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of N)m(`${G.dim(Jz)}
6
- `);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
7
- `),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
8
- `);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
9
- `)}}if(_===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${G.dim(Jz)}
10
- `)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
11
- `);let Qz=A??U;if(Qz){m(`
12
- `);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
13
- `),m(`${Kz}${r}
14
- `)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
15
- `);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
16
- `),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
17
- `);J(G.dim("Environment ID: ")+`${j}
18
- `)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
19
- `);J(`
20
- `),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
21
- `)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
22
- `)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
23
- `)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
24
- `)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
25
- `)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
26
- `)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
27
- `)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
28
- `);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
29
- `)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
30
- `),m(`${G.dim(XJ)}
31
- `),$)m(`${G.red($)}
32
- `)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var KK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function ZK(z,J){let K=KK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function $K(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function YK(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function XK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=rJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
33
- `);if(N.length>=eJ)N.shift();N.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
34
- `);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
35
- `);let k=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
36
- `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.lastStderr.join(`
37
- `):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),yz(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let V=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-0.6.12-k2ybhmnf.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-0.6.12-nmffskv4.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
38
- Run 'claude remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||N)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&N)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-0.6.12-gp1rkkw5.mjs"),J=z.join(", "),K=await hJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
39
- (default: same-dir)
40
- --capacity <N> Max concurrent sessions in worktree or
41
- same-dir mode (default: ${vJ})
42
- --[no-]create-session-in-dir Pre-create a session in the current
43
- directory; in worktree mode this session
44
- stays in cwd while on-demand sessions get
45
- isolated worktrees (default: on)
46
- `:"",R=`
47
- Remote Control - Connect your local environment to claude.ai/code
48
-
49
- USAGE
50
- claude remote-control [options]
51
- OPTIONS
52
- --name <name> Name for the session (shown in claude.ai/code)
53
- --permission-mode <mode> Permission mode for spawned sessions
54
- (${J})
55
- --debug-file <path> Write debug logs to file
56
- -v, --verbose Enable verbose output
57
- -h, --help Show this help
58
- ${Y}
59
- DESCRIPTION
60
- Remote Control allows you to control sessions on your local device from
61
- claude.ai/code (https://claude.ai/code). Run this command in the
62
- directory you want to work in, then connect from the Claude app or web.
63
- ${K?`
64
- Remote Control runs as a persistent server that accepts multiple concurrent
65
- sessions in the current directory. One session is pre-created on start so
66
- you have somewhere to type immediately. Use --spawn=worktree to isolate
67
- each on-demand session in its own git worktree, or --spawn=session for
68
- the classic single-session mode (exits when that session ends). Press 'w'
69
- during runtime to toggle between same-dir and worktree.
70
- `:""}
71
- NOTES
72
- - You must be logged in with a Claude account that has a subscription
73
- - Run \`claude\` first in the directory to accept the workspace trust dialog
74
- ${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
75
- `:""}`;console.log(R)}var SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-0.6.12-k2ybhmnf.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-0.6.12-gp1rkkw5.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:_,checkHasTrustDialogAccepted:f}=await import("./config-0.6.12-3p83m4s1.mjs");_();let{initSinks:k}=await import("./sinks-0.6.12-a76rjjna.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-0.6.12-k8svntgp.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-0.6.12-wk2y5d3t.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-0.6.12-jedyxebh.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-0.6.12-3p83m4s1.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
76
- Remote Control lets you access this CLI session from the web (claude.ai/code)
77
- or the Claude app, so you can pick up where you left off on any device.
78
-
79
- You can disconnect remote access anytime by running /remote-control again.
80
- `);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),Vz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-0.6.12-wd8h5tre.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-0.6.12-9hm2ddcn.mjs"),Qz=Oz()||Nz(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
81
- Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
82
-
83
- Spawn mode for this project:
84
- `+` [1] same-dir — sessions share the current directory (default)
85
- `+` [2] worktree — each session gets an isolated git worktree
86
-
87
- `+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
88
- `);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("tengu_bridge_spawn_mode_chosen",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-0.6.12-nmffskv4.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-0.6.12-wk2y5d3t.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("tengu_bridge_registration_failed",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("tengu_bridge_started",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-0.6.12-0c1bdxe1.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("tengu_bridge_spawn_mode_toggled",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-0.6.12-k2ybhmnf.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-0.6.12-nmffskv4.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-0.6.12-k8svntgp.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-0.6.12-3p83m4s1.mjs");R();let{initSinks:U}=await import("./sinks-0.6.12-a76rjjna.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-0.6.12-jedyxebh.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-0.6.12-wd8h5tre.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-0.6.12-9hm2ddcn.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await N(),_=await M(),f=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-0.6.12-k2ybhmnf.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
@@ -1 +0,0 @@
1
- import{Ifa as A,Jfa as k,Tfa as G,Ufa as N,Xfa as M,_fa as Y,aga as O,bga as S,cga as _}from"./cli-0.6.12-byvhqye2.mjs";import{$ha as R,Bha as K,Cha as W,Gha as j,Yha as C}from"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import{sia as y,xia as c}from"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-6bdrnprg.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
@@ -1 +0,0 @@
1
- import{Bh as a,Ch as bJ}from"./cli-0.6.12-609r2xeh.mjs";import{Dh as x,Eh as AJ}from"./cli-0.6.12-3wqd066g.mjs";import{$G as vJ,Ay as HJ,BD as kJ,BS as s,CS as t,DP as o,DS as DJ,RP as hJ,Vy as u,Xy as WJ,_G as $,pO as r,tn as m,un as UJ,vD as l,yO as TJ,zy as i}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import{BW as g,CW as QJ,YW as c,_W as IJ}from"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import{DZ as j,FZ as KJ,RX as GJ,RZ as NJ,kZ as k,mZ as v}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import{X1 as F,Y1 as W,Z1 as d}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as zJ}from"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{E$ as ZJ,Rca as FJ,l$ as p,m$ as C,tca as S}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import{qia as f,xia as YJ}from"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as R,Vpa as XJ}from"./cli-0.6.12-6bdrnprg.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -1,3 +0,0 @@
1
- import{PV as p,QV as f,RV as a,SV as S}from"./cli-0.6.12-kkjabccp.mjs";import{Rca as C,tca as d}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import{Iga as m,Jga as y,Kga as b}from"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import{Vpa as g}from"./cli-0.6.12-6bdrnprg.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
2
-
3
- Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
@@ -1 +0,0 @@
1
- import"./cli-0.6.12-6bdrnprg.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
@@ -1,21 +0,0 @@
1
- import{c1 as h,g1 as zz}from"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import{X4 as e,y4 as m}from"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import{Qda as y,Xda as s,_da as v,bea as r}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as o,Yha as k}from"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import{ooa as a,rka as b}from"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Vpa as n}from"./cli-0.6.12-6bdrnprg.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
2
-
3
- `)){let w=B.split(`
4
- `).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
5
- `));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
6
- `);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
7
- `)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
8
- `)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
9
- For GitHub Copilot: run /provider and choose GitHub Copilot.
10
- For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w,prompt_cache_retention:"24h"}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
11
- `);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
12
- ${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
13
- ${z.error.slice(0,300)}
14
-
15
- Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
16
- ${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
17
- Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
18
- `));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
19
- `)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
20
-
21
- `)});Qz();export{jz as call};
@@ -1,4 +0,0 @@
1
- import{k1 as L,l1 as P,m1 as $,q1 as Q,r1 as U,s1 as V,t1 as j}from"./cli-0.6.12-fdy5s675.mjs";import{Vpa as Z}from"./cli-0.6.12-6bdrnprg.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
2
- No API requests yet this session.
3
- Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
4
- `)}};var A=Z(()=>{j();$()});A();export{O as call};
@@ -1 +0,0 @@
1
- import{Hh as a,Ih as b}from"./cli-0.6.12-xzaf2m9a.mjs";import"./cli-0.6.12-263jrtsj.mjs";import"./cli-0.6.12-wj4xsk58.mjs";import"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import"./cli-0.6.12-g9dxg935.mjs";import"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import"./cli-0.6.12-6bdrnprg.mjs";b();export{a as clearSessionCaches};
@@ -1 +0,0 @@
1
- import{E_ as k,J_ as N,X$ as x,_$ as A,nea as X,v9 as V,vea as H,w9 as W,x9 as J}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import{ria as b,xia as y}from"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-6bdrnprg.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -1 +0,0 @@
1
- import{fS as a,gS as b,hS as c,iS as d,jS as e,kS as f,lS as g,mS as h,nS as i,oS as j,pS as k,qS as l,rS as m,sS as n,tS as o,uS as p,vS as q,wS as r,xS as s,yS as t}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import"./cli-0.6.12-g9dxg935.mjs";import"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import"./cli-0.6.12-6bdrnprg.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
@@ -1 +0,0 @@
1
- import{Fh as a,Gh as l}from"./cli-0.6.12-2vrk1saq.mjs";import"./cli-0.6.12-xzaf2m9a.mjs";import"./cli-0.6.12-myxkk9nw.mjs";import"./cli-0.6.12-263jrtsj.mjs";import"./cli-0.6.12-wj4xsk58.mjs";import"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import"./cli-0.6.12-g9dxg935.mjs";import"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Vpa as t}from"./cli-0.6.12-6bdrnprg.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
@@ -1 +0,0 @@
1
- import{G0 as a,H0 as b,I0 as c}from"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-6bdrnprg.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -1,2 +0,0 @@
1
- import{wh as v,xh as i}from"./cli-0.6.12-c864w559.mjs";import{yh as E,zh as t}from"./cli-0.6.12-dawxz0j1.mjs";import{BW as b,CW as s}from"./cli-0.6.12-n87dgp00.mjs";import{RZ as m,kZ as L,mZ as X}from"./cli-0.6.12-21j45ejg.mjs";import{X1 as $,Z1 as F}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as d}from"./cli-0.6.12-bc05z2sq.mjs";import{f8 as C,g8 as n}from"./cli-0.6.12-ecm9vh62.mjs";import{Aea as O,Bea as l,Cea as P,Dea as k,Sea as o}from"./cli-0.6.12-7eeaap1p.mjs";import{Rpa as g,Vpa as a}from"./cli-0.6.12-6bdrnprg.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
2
- export{Zq as rh,Mq as sh,$q as th};
@@ -1,12 +0,0 @@
1
- import{a7 as D}from"./cli-0.6.12-865yx2ff.mjs";import{$ha as a,Kha as L,Oha as JG,Yha as W}from"./cli-0.6.12-whhyvv1p.mjs";import{Cia as c,Dia as jG,Nia as GG}from"./cli-0.6.12-967g034j.mjs";import{Noa as U,Ooa as g}from"./cli-0.6.12-rkfcw3gr.mjs";import{Bpa as RG,ipa as wG,jpa as H}from"./cli-0.6.12-k0skdwrx.mjs";import{Rpa as WG,Vpa as j,Wpa as e}from"./cli-0.6.12-6bdrnprg.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
- \r
4
- `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
- `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
- `;let $=n(K);K.write(`${w}\r
8
- `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
- `;let V=n(Y);Y.write(`${$}\r
11
- `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.6.12-nmadn3pq.mjs"),import("./index-0.6.12-ydb5e4ax.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
- export{hG as F6,p as G6,F as H6,gG as I6,aG as J6,pG as K6,KG as L6,MJ as M6,HJ as N6,OG as O6,I as P6,h as Q6,qJ as R6,jJ as S6,UJ as T6,_J as U6,FJ as V6,NJ as W6,TJ as X6,vG as Y6};
@@ -1,2 +0,0 @@
1
- import{s3 as H,t3 as _,u3 as Y,v3 as y}from"./cli-0.6.12-s3nsyxya.mjs";import{s8 as M,u8 as f}from"./cli-0.6.12-ecm9vh62.mjs";import{$ga as F,$ha as S,Kha as P,Oha as p,Yha as x,bha as b}from"./cli-0.6.12-whhyvv1p.mjs";import{qia as V,xia as R}from"./cli-0.6.12-2stzmmb2.mjs";import{Dia as U,Nia as g}from"./cli-0.6.12-967g034j.mjs";import{Ama as D,Bma as W,ooa as A}from"./cli-0.6.12-4x5vs5t2.mjs";import{Vpa as L}from"./cli-0.6.12-6bdrnprg.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function s(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function o(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var h=L(()=>{b();f();g();Z=new Map});var $q;var m=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
2
- export{k as OU,s as PU,o as QU,u as RU,e as SU,qq as TU,Gq as UU,Jq as VU,Kq as WU,Qq as XU,h as YU,$q as ZU,m as _U};
@@ -1,4 +0,0 @@
1
- import{vg as s,wg as Sy}from"./cli-0.6.12-7bg5rk6a.mjs";import{Eg as wy,Gg as kG}from"./cli-0.6.12-7mz9jxfa.mjs";import{Ci as Zy,Ei as Ky,Fi as ny}from"./cli-0.6.12-t6e17b69.mjs";import{$k as sy,Bs as _y,CF as g,DF as My,JR as Vy,On as yy,Qn as Gy,Sn as ky,Sw as Xy,Vn as qy,Vw as oy,WJ as j,Wn as zy,XJ as ey,Xk as e,Xn as Iy,Yu as X,Zn as Jy,Zq as Qy,Zu as ay,cS as zG,dK as Oy,do as xy,ir as Wy,nK as yG,qr as ly,sR as Hy,ts as C,uK as by,xF as i,yF as Ly,yK as GG}from"./cli-0.6.12-g971w5pv.mjs";import{$V as Ny,aW as ty}from"./cli-0.6.12-nsthg20j.mjs";import{eX as Py,fX as Uy,gX as jy,kX as qG}from"./cli-0.6.12-n87dgp00.mjs";import{qX as Ry,wX as cy}from"./cli-0.6.12-kxgn5260.mjs";import{RX as hy,RZ as ry,iZ as Q,jZ as $y,kZ as L,mZ as d}from"./cli-0.6.12-21j45ejg.mjs";import{X1 as O,Y1 as E,Z1 as p}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as Yy}from"./cli-0.6.12-bc05z2sq.mjs";import{E6 as gy,X4 as iy,l6 as h,x4 as c,y4 as t}from"./cli-0.6.12-s3nsyxya.mjs";import{$6 as fy,_6 as a}from"./cli-0.6.12-8k03anbf.mjs";import{Gba as dy,Rca as M,Z8 as T,f$ as J,h$ as Ey,n9 as o,rba as n,tca as P,u9 as Ay,w9 as U,wba as r,wca as q,x9 as uy,xba as v}from"./cli-0.6.12-ecm9vh62.mjs";import{Gfa as A,Hfa as u,vfa as K}from"./cli-0.6.12-ytv10xs6.mjs";import{Vga as f,Yga as Fy}from"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as Dy,Yha as _}from"./cli-0.6.12-whhyvv1p.mjs";import{Rpa as D}from"./cli-0.6.12-6bdrnprg.mjs";ry();u();Fy();M();Ly();Sy();My();p();var $=D(hy(),1),F=D(Yy(),1),Ty={enable_shortcut_tip:!1,enable_startup_dialog:!1};function S(){return A("tengu_desktop_upsell",Ty)}function vy(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function wG(){if(!vy())return!1;if(!S().enable_startup_dialog)return!1;let y=q();if(y.desktopUpsellDismissed)return!1;if((y.desktopUpsellSeenCount??0)>=3)return!1;return!0}function PG(y){let G=$.c(14),{onDone:k}=y,[z,Z]=F.useState(!1),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W=[],G[0]=W;else W=G[0];if(F.useEffect(py,W),z){let w;if(G[1]!==k)w=O(s,{onDone:()=>k()}),G[1]=k,G[2]=w;else w=G[2];return w}let b;if(G[3]!==k)b=function(By){switch(By){case"try":{Z(!0);return}case"never":{P(Cy),k();return}case"not-now":{k();return}}},G[3]=k,G[4]=b;else b=G[4];let I=b,R;if(G[5]===Symbol.for("react.memo_cache_sentinel"))R={label:"Open in Claude Code Desktop",value:"try"},G[5]=R;else R=G[5];let H;if(G[6]===Symbol.for("react.memo_cache_sentinel"))H={label:"Not now",value:"not-now"},G[6]=H;else H=G[6];let V;if(G[7]===Symbol.for("react.memo_cache_sentinel"))V=[R,H,{label:"Don't ask again",value:"never"}],G[7]=V;else V=G[7];let my=V,m;if(G[8]===Symbol.for("react.memo_cache_sentinel"))m=O(L,{marginBottom:1,children:O(d,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."})}),G[8]=m;else m=G[8];let N;if(G[9]!==I)N=()=>I("not-now"),G[9]=I,G[10]=N;else N=G[10];let B;if(G[11]!==I||G[12]!==N)B=O(g,{title:"Try Claude Code Desktop",children:E(L,{flexDirection:"column",paddingX:2,paddingY:1,children:[m,O(i,{options:my,onChange:I,onCancel:N})]})}),G[11]=I,G[12]=N,G[13]=B;else B=G[13];return B}function Cy(y){if(y.desktopUpsellDismissed)return y;return{...y,desktopUpsellDismissed:!0}}function py(){let y=(q().desktopUpsellSeenCount??0)+1;P((G)=>{if((G.desktopUpsellSeenCount??0)>=y)return G;return{...G,desktopUpsellSeenCount:y}}),f("tengu_desktop_upsell_shown",{seen_count:y})}M();function VG(y){let G=q().numStartups;P((k)=>{let z=k.tipsHistory??{};if(z[y]===G)return k;return{...k,tipsHistory:{...z,[y]:G}}})}function x(y){let G=q(),k=G.tipsHistory?.[y];if(!k)return 1/0;return G.numStartups-k}fy();Dy();_y();dy();cy();$y();kG();ay();sy();gy();ty();M();ly();Ey();oy();Ay();xy();iy();uy();GG();yG();ey();zG();u();ny();qG();var Y;async function IG(){if(Y!==void 0)return Y;let y=await Oy();return Y=j in y,Y}async function l(y,G,k){if(!await IG())return!1;if(by(`${y}@${j}`))return!1;let{bashTools:z}=G??{};if(k.cli&&z?.size){if(k.cli.some((Z)=>z.has(Z)))return!0}if(k.filePath&&G?.readFileState){if(Xy(G.readFileState).some((W)=>k.filePath.test(W)))return!0}return!1}var JG=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return q().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=q();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=q(),G=v(),k=Boolean(y.lastPlanModeUse),z=Boolean(G?.permissions?.defaultMode);return k&&!z}catch(y){return _(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=q();return await o()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${X("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${X("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${X("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=q();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(Hy())return!1;return await Ny()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=q();if(J.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=q();return Boolean((J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!Ry())return!1;let y=q();return!(J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return q().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&a.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>U()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>v().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return q().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!yy())return!1;if(U()!=="macos")return!1;switch(J.terminal){case"vscode":return!await Iy();case"cursor":return!await qy();case"windsurf":return!await zy();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Gy())return!1;if((await ky()).length!==0)return!1;return(await Jy()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!q().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!q().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return q().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>U()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!C()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>C()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>Vy()&&q().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return q().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${X("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${X("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>U()!=="linux"},{id:"desktop-shortcut",content:async(y)=>{return`Continue your session in Claude Code Desktop with ${Q("suggestion",y.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!S().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=q(),k=c()==="opusplan",z=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return k&&z>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
- ${Q("suggestion",y.theme)(`/plugin install frontend-design@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
- ${Q("suggestion",y.theme)(`/plugin install vercel@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let k=Q("suggestion",y.theme)("/effort high");return K("tengu_tide_elm","off")==="copy_b"?`Use ${k} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${k} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!Qy(t()))return!1;if(n("policySettings")?.effortLevel!==void 0)return!1;if(Wy()!==void 0)return!1;let y=r().effortLevel;if(y==="high"||y==="max")return!1;return K("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${G("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${G('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;return K("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_timber_lark","off")==="copy_b"?`Use ${G("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${G("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!e())return!1;return K("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let G=Q("claude",y.theme),k=jy();return k?`Share Claude Code and earn ${G(Uy(k))} of extra usage · ${G("/passes")}`:`You have free guest passes to share · ${G("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(q().hasVisitedPasses)return!1;let{eligible:G}=Py();return G}},{id:"overage-credit",content:async(y)=>{let G=Q("claude",y.theme),k=Zy(),z=k?Ky(k):null;if(!z)return"";return`${G(`${z} in extra usage, on us`)} · third-party apps · ${G("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>wy()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return q().numStartups>5}}],QG=[];function WG(){let G=r().spinnerTipsOverride;if(!G?.tips?.length)return[];return G.tips.map((k,z)=>({id:`custom-tip-${z}`,content:async()=>k,cooldownSessions:0,isRelevant:async()=>!0}))}async function cG(y){let k=r().spinnerTipsOverride,z=WG();if(k?.excludeDefault&&z.length>0)return z;let Z=[...JG,...QG],W=await Promise.all(Z.map((I)=>I.isRelevant(y)));return[...Z.filter((I,R)=>W[R]).filter((I)=>x(I.id)>=I.cooldownSessions),...z]}
4
- export{wG as La,PG as Ma,VG as Na,x as Oa,cG as Pa};
@@ -1,2 +0,0 @@
1
- import{Hfa as K,wfa as G}from"./cli-0.6.12-ytv10xs6.mjs";import{_fa as j,aga as M,bga as J,cga as N}from"./cli-0.6.12-byvhqye2.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
- export{q as gb,$ as hb};
@@ -1,2 +0,0 @@
1
- import{nd as Z,od as _,pd as $,sd as O}from"./cli-0.6.12-bcqvraap.mjs";import{Jd as Y,Od as x}from"./cli-0.6.12-xm90zy0d.mjs";import{dK as U,iK as W,nK as S,oK as X,yK as V}from"./cli-0.6.12-g971w5pv.mjs";import{$ha as K,Yha as R}from"./cli-0.6.12-whhyvv1p.mjs";import{qia as Q,xia as C}from"./cli-0.6.12-2stzmmb2.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{Ni as M,Oi as W,QM as O,RM as P,SM as Q,TM as U,WM as X}from"./cli-0.6.12-g971w5pv.mjs";import{Vpa as V}from"./cli-0.6.12-6bdrnprg.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
- export{F as ig,$ as jg};
@@ -1,2 +0,0 @@
1
- import{Jf as EG,Kf as iG,Qf as rG}from"./cli-0.6.12-dad03em9.mjs";import{BE as KG,CE as mG,JL as $G,KL as oG,Pm as FG,Qm as OG,Rr as uG,SK as LG,TK as BG,Um as VG,VK as pG,XK as WG,YK as qG,bL as a,cn as fG,fL as DG,fM as bG,hL as y,iL as o,iM as sG,jL as lG,lL as kG,mM as f,nM as s,oM as c,pM as v,qL as _G,qM as i,sr as vG,tM as u,vv as l,wv as jG,xM as cG,xv as HG,yv as dG,zL as aG}from"./cli-0.6.12-g971w5pv.mjs";import{RX as QJ}from"./cli-0.6.12-21j45ejg.mjs";import{X1 as wG,Z1 as PG}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as YG}from"./cli-0.6.12-bc05z2sq.mjs";import{rea as R,saa as zG,sea as _,vea as gG,xaa as CG}from"./cli-0.6.12-ecm9vh62.mjs";import{Hfa as NG}from"./cli-0.6.12-ytv10xs6.mjs";import{Vga as A,Yga as MG}from"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as SG,Gha as yG,Yha as ZG}from"./cli-0.6.12-whhyvv1p.mjs";import{qia as h,xia as TG}from"./cli-0.6.12-2stzmmb2.mjs";import{ooa as XG,rka as QG}from"./cli-0.6.12-4x5vs5t2.mjs";import{Rpa as r,Vpa as p}from"./cli-0.6.12-6bdrnprg.mjs";var e=p(()=>{yG();NG()});function GG(Z){let z="plugin"in Z?Z.plugin:"no-plugin";return`${Z.type}:${Z.source}:${z}`}function JG(Z,z){if(z.length===0)return;Z((k)=>{let U=new Set(k.plugins.errors.map((j)=>GG(j))),$=z.filter((j)=>!U.has(GG(j)));if($.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...$]}}})}function GJ(Z,z,k,U){let $=z==="disabled"?U??[]:U;if($===void 0)return Z;let j=new Map;for(let W of $)if(W.name!==void 0)j.set(W.name,W);let V=[],P=new Set;for(let W of Z){if(!W.name?.startsWith(k)){V.push(W);continue}let w=j.get(W.name);if(w)V.push(w),P.add(W.name)}for(let W of $)if(W.name===void 0||!P.has(W.name))V.push(W);return V}function IG(Z,z=!1){let k=HG(),U=l((G)=>G.authVersion),$=l((G)=>G.mcp.pluginReconnectKey),j=jG(),V=D.useRef(new Map),P=D.useRef(new Set),W=D.useRef(null);D.useEffect(()=>{},[j]);let{addNotification:w}=KG(),RG=16,d=D.useRef([]),N=D.useRef(null),C=D.useCallback(()=>{N.current=null;let G=d.current;if(G.length===0)return;d.current=[],j((Y)=>{let F=Y.mcp;for(let B of G){let{tools:X,commands:H,resources:q,...J}=B,K=J.type==="disabled"||J.type==="failed"?H??[]:H,Q=J.type==="disabled"||J.type==="failed"?q??[]:q,O=zG(J.name),I=F.clients.findIndex((M)=>M.name===J.name)===-1?[...F.clients,J]:F.clients.map((M)=>M.name===J.name?J:M),g=GJ(F.tools,J.type,O,X),x=K===void 0?F.commands:[...$G(F.commands,(M)=>kG(M,J.name)),...K],m=Q===void 0?F.resources:{...F.resources,...Q.length>0?{[J.name]:Q}:EG(F.resources,J.name)};F={...F,clients:I,tools:g,commands:x,resources:m}}return{...Y,mcp:F}})},[j]),b=D.useCallback((G)=>{if(d.current.push(G),N.current===null)N.current=setTimeout(C,RG)},[C]),E=D.useCallback(({client:G,tools:Y,commands:F,resources:B})=>{switch(b({...G,tools:Y,commands:F,resources:B}),G.type){case"connected":{if(bG(G.client,G.name,j),G.client.onclose=()=>{let X=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{ZG(`Failed to invalidate the server cache: ${G.name}`)}),y(G.name)){_(G.name,"Server is disabled, skipping automatic reconnection");return}if(X!=="stdio"&&X!=="sdk"){let H=JJ(X);_(G.name,`${H} transport closed/disconnected, attempting automatic reconnection`);let q=V.current.get(G.name);if(q)clearTimeout(q),V.current.delete(G.name);(async()=>{for(let K=1;K<=T;K++){if(y(G.name)){_(G.name,"Server disabled during reconnection, stopping retry"),V.current.delete(G.name);return}b({...G,type:"pending",reconnectAttempt:K,maxReconnectAttempts:T});let Q=Date.now();try{let L=await v(G.name,G.config),I=Date.now()-Q;if(L.client.type==="connected"){_(G.name,`${H} reconnection successful after ${I}ms (attempt ${K})`),V.current.delete(G.name),E(L);return}if(_(G.name,`${H} reconnection attempt ${K} completed with status: ${L.client.type}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),E(L);return}}catch(L){let I=Date.now()-Q;if(R(G.name,`${H} reconnection attempt ${K} failed after ${I}ms: ${L}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),b({...G,type:"failed"});return}}let O=Math.min(tG*Math.pow(2,K-1),eG);_(G.name,`Scheduling reconnection attempt ${K+1} in ${O}ms`),await new Promise((L)=>{let I=setTimeout(L,O);V.current.set(G.name,I)})}})()}else b({...G,type:"failed"})},!1)switch(X.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{_(G.name,"Received tools/list_changed notification, refreshing tools");try{let X=f.cache.get(G.name);f.cache.delete(G.name);let H=await f(G),q=H.length;if(X)X.then((J)=>{A("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:q})},()=>{A("tengu_mcp_list_changed",{type:"tools",newCount:q})});else A("tengu_mcp_list_changed",{type:"tools",newCount:q});b({...G,tools:H})}catch(X){R(G.name,`Failed to refresh tools after list_changed notification: ${h(X)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{_(G.name,"Received prompts/list_changed notification, refreshing prompts"),A("tengu_mcp_list_changed",{type:"prompts"});try{c.cache.delete(G.name);let[X,H]=await Promise.all([c(G),Promise.resolve([])]);b({...G,commands:[...X,...H]}),nG?.()}catch(X){R(G.name,`Failed to refresh prompts after list_changed notification: ${h(X)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{_(G.name,"Received resources/list_changed notification, refreshing resources"),A("tengu_mcp_list_changed",{type:"resources"});try{s.cache.delete(G.name);{let X=await s(G);b({...G,resources:X})}}catch(X){R(G.name,`Failed to refresh resources after list_changed notification: ${h(X)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[b]),t=QG();D.useEffect(()=>{async function G(){let{servers:Y,errors:F}=z?{servers:{},errors:[]}:await a(Z),B={...Y,...Z};JG(j,F),j((X)=>{let{stale:H,...q}=_G(X.mcp,B);for(let Q of H){let O=V.current.get(Q.name);if(O)clearTimeout(O),V.current.delete(Q.name);if(Q.type==="connected")Q.client.onclose=void 0,u(Q.name,Q.config).catch(()=>{})}let J=new Set(q.clients.map((Q)=>Q.name)),K=Object.entries(B).filter(([Q])=>!J.has(Q)).map(([Q,O])=>({name:Q,type:y(Q)?"disabled":"pending",config:O}));if(K.length===0&&H.length===0)return X;return{...X,mcp:{...X.mcp,...q,clients:[...q.clients,...K]}}})}G().catch((Y)=>{R("useManageMCPConnections",`Failed to initialize servers as pending: ${h(Y)}`)})},[z,Z,j,t,$]),D.useEffect(()=>{let G=!1;async function Y(){let F;if(z||DG())F=Promise.resolve({});else BG(),F=LG();let{servers:B,errors:X}=z?{servers:{},errors:[]}:await a(Z,F);if(G)return;JG(j,X);let H={...B,...Z},q=Object.fromEntries(Object.entries(H).filter(([O])=>!y(O)));i(E,q).catch((O)=>{R("useManageMcpConnections",`Failed to get MCP resources: ${h(O)}`)});let J={};if(!z){if(J=qG(await F).allowed,G)return;if(Object.keys(J).length>0){let{servers:O}=WG(J,H);J=O}if(Object.keys(J).length>0){j((L)=>{let I=new Set(L.mcp.clients.map((x)=>x.name)),g=Object.entries(J).filter(([x])=>!I.has(x)).map(([x,m])=>({name:x,type:y(x)?"disabled":"pending",config:m}));if(g.length===0)return L;return{...L,mcp:{...L.mcp,clients:[...L.mcp.clients,...g]}}});let O=Object.fromEntries(Object.entries(J).filter(([L])=>!y(L)));i(E,O).catch((L)=>{R("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${h(L)}`)})}}let K={...H,...J},Q={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let O of Object.values(K))if(O.scope==="enterprise")Q.enterprise++;else if(O.scope==="user")Q.global++;else if(O.scope==="project")Q.project++;else if(O.scope==="local")Q.user++;else if(O.scope==="dynamic")Q.plugin++;else if(O.scope==="claudeai")Q.claudeai++;A("tengu_mcp_servers",{...Q})}return Y(),()=>{G=!0}},[z,Z,E,j,U,t,$]),D.useEffect(()=>{let G=V.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),N.current!==null)clearTimeout(N.current),N.current=null,C()}},[C]);let AG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((X)=>X.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let F=V.current.get(G);if(F)clearTimeout(F),V.current.delete(G);let B=await v(G,Y.config);return E(B),B},[k,E]),hG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((B)=>B.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let B=V.current.get(G);if(B)clearTimeout(B),V.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);b({name:G,type:"disabled",config:Y.config})}else{o(G,!0),b({name:G,type:"pending",config:Y.config});let B=await v(G,Y.config);E(B)}},[k,b,E]);return{reconnectMcpServer:AG,toggleMcpServer:hG}}function JJ(Z){switch(Z){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var D,nG=null,T=5,tG=1000,eG=30000;var UG=p(()=>{XG();cG();fG();iG();oG();MG();lG();SG();XG();mG();dG();TG();gG();uG();rG();e();pG();sG();CG();aG();vG();D=r(YG(),1)});function aJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpReconnect must be used within MCPConnectionManager");return Z.reconnectMcpServer}function oJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return Z.toggleMcpServer}function sJ(Z){let z=xG.c(6),{children:k,dynamicMcpConfig:U,isStrictMcpConfig:$}=Z,{reconnectMcpServer:j,toggleMcpServer:V}=IG(U,$),P;if(z[0]!==j||z[1]!==V)P={reconnectMcpServer:j,toggleMcpServer:V},z[0]=j,z[1]=V,z[2]=P;else P=z[2];let W=P,w;if(z[3]!==k||z[4]!==W)w=wG(n.Provider,{value:W,children:k}),z[3]=k,z[4]=W,z[5]=w;else w=z[5];return w}var xG,S,n;var XJ=p(()=>{UG();PG();xG=r(QJ(),1),S=r(YG(),1),n=S.createContext(null)});
2
- export{e as Ef,aJ as Ff,oJ as Gf,sJ as Hf,XJ as If};
@@ -1,2 +0,0 @@
1
- import{fW as YJ,jW as DJ,nW as vJ,oW as c,pW as SJ,xW as ZJ}from"./cli-0.6.12-8fpq2hqy.mjs";import{N1 as CJ,U1 as TJ}from"./cli-0.6.12-sp1yd4kb.mjs";import{Pba as S,Rba as yJ,Y8 as xJ,b_ as jJ,nea as p,u9 as NJ,vea as wJ,x8 as OJ,y8 as FJ}from"./cli-0.6.12-ecm9vh62.mjs";import{_fa as R,aga as VJ,bga as w,cga as XJ}from"./cli-0.6.12-byvhqye2.mjs";import{$ha as QJ,Bha as v,Cha as y,Gha as JJ,Yha as G}from"./cli-0.6.12-whhyvv1p.mjs";import{qia as W,ria as C,xia as e}from"./cli-0.6.12-2stzmmb2.mjs";import{Aia as s,Bia as I,Dia as t,Nia as a}from"./cli-0.6.12-967g034j.mjs";import{ema as i,nka as r,oka as MJ,ooa as m,rka as d,yna as L}from"./cli-0.6.12-4x5vs5t2.mjs";import{Vpa as T,Wpa as BJ}from"./cli-0.6.12-6bdrnprg.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.6.12-me5c4ees.mjs"),import("./detection-0.6.12-fatrvr7b.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{HQ as LT,UQ as MT,BQ as NT,fJ as OT,OQ as PT,xQ as QT,CQ as RT,_J as ST,E as TT,bJ as UT,vQ as VT,O as WT,j as XT,SQ as YT,h as ZT,AQ as _T,zQ as $T,MQ as aU,HJ as bU,n as cU,UJ as dU,oQ as eU,zJ as fU,nQ as gU,u as hU,F as iU,H as jU,kJ as kU,rJ as lU,kQ as mU,rQ as nU,dQ as oU,iQ as pU,mQ as qU,dJ as rU,sQ as sU,tQ as tU,aQ as uU,eQ as vU,JV as wU,QV as xU,sJ as yU,tJ as zU};
@@ -1,2 +0,0 @@
1
- import{Ga as S}from"./cli-0.6.12-femcgqwt.mjs";import{Ia as c}from"./cli-0.6.12-14b2bpdj.mjs";import{od as P,sd as Vq}from"./cli-0.6.12-bcqvraap.mjs";import{wd as I,xd as v,yd as $,zd as Wq}from"./cli-0.6.12-96crx44d.mjs";import{At as N,BE as M,Bt as e,CE as Jq,OK as f,Qo as C,RK as Tq,So as r,gu as L,hu as qq,lu as h,nu as Bq,vv as A,wJ as E,wv as _,xJ as Qq,yv as Gq}from"./cli-0.6.12-g971w5pv.mjs";import{_1 as s}from"./cli-0.6.12-bc05z2sq.mjs";import{$9 as w,b_ as t,nea as F,s8 as D,u8 as n,vea as a}from"./cli-0.6.12-ecm9vh62.mjs";import{Vga as x,Yga as d}from"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as o,Yha as j}from"./cli-0.6.12-whhyvv1p.mjs";import{pia as y,xia as l}from"./cli-0.6.12-2stzmmb2.mjs";import{Rpa as p}from"./cli-0.6.12-6bdrnprg.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{Lq as Fa};
@@ -1,2 +0,0 @@
1
- import{Vpa as r}from"./cli-0.6.12-6bdrnprg.mjs";var i,a=(s,e)=>function(){try{return e||(0,s[i(s)[0]])((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},c;var p=r(()=>{i=Object.getOwnPropertyNames,c=a({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.28.1",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.6","axios@>=1.0.0 <1.16.0":"1.16.1","follow-redirects@<1.16.0":">=1.16.0 <2.0.0","form-data@>=4.0.0 <4.0.6":"4.0.6","@babel/core@>=7.0.0 <7.29.6":"7.29.7","esbuild@>=0.17.0 <0.28.1":"0.28.1"}}}}})});
2
- export{c as ai,p as bi};