@claudiolabs/claudin 1.1.14 → 1.1.16

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 (903) hide show
  1. package/README.md +8 -0
  2. package/dist/chunks/AgentTool-1.1.16-d8xg1846.mjs +1 -0
  3. package/dist/chunks/App-1.1.16-1qyat349.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.16-gphm4kr9.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.16-ae0771hz.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.16-ntf57kwj.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.16-z8km64vb.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.16-9c1nen0b.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.16-e52dm35b.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.16-frav7jtc.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.16-rnr2zeqm.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.16-32sa07f8.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.16-wcn0wvqj.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.16-ptpv0yby.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.16-2c80150t.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.16-xf5ytnvw.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.16-mq6axxmv.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.16-df81g99v.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.16-67e78vej.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.16-nfz9vfxh.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.16-nmypjs9s.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.16-8xp4cat6.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.16-b873egjf.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.16-p12j7gbz.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.16-wfj4hbxa.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.16-t59p4sqb.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.16-6gnr1pgn.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.16-pz7hzyed.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.16-whsjbedt.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.16-7fxyjypa.mjs +1 -0
  31. package/dist/chunks/agents-1.1.16-1d6y0xda.mjs +3 -0
  32. package/dist/chunks/agents-1.1.16-s5e41ewr.mjs +110 -0
  33. package/dist/chunks/api-1.1.16-k1mytgsx.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.16-bxvyntn8.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.16-acqmddet.mjs +1 -0
  36. package/dist/chunks/auth-1.1.16-7nwthv6n.mjs +1 -0
  37. package/dist/chunks/auth-1.1.16-c46k0chb.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.16-t7thnrw0.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.16-5k3bxrjz.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.16-nhb6p8p3.mjs +1 -0
  41. package/dist/chunks/branch-1.1.16-72eesr6a.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.16-8n6h1b8c.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.16-jmz78ab3.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.16-nwrn0y9j.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.16-04vqwa21.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.16-krkxjxkj.mjs +1 -0
  47. package/dist/chunks/btw-1.1.16-h0jqrzph.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.16-k6dwkrbz.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.16-rk6d7v9j.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.16-f3tggvs4.mjs +4 -0
  51. package/dist/chunks/caches-1.1.16-kxkg6hxt.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.16-jggzvahb.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.16-7dtnkedr.mjs +1 -0
  54. package/dist/chunks/clear-1.1.16-qrpawrqq.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.16-hcv9w964.mjs +1 -0
  56. package/dist/chunks/cli-1.1.16-00hws7wd.mjs +15 -0
  57. package/dist/chunks/cli-1.1.16-02ynr76s.mjs +2 -0
  58. package/dist/chunks/cli-1.1.16-06f5zq2n.mjs +3 -0
  59. package/dist/chunks/cli-1.1.16-07smcaht.mjs +2 -0
  60. package/dist/chunks/cli-1.1.16-0chc168e.mjs +2 -0
  61. package/dist/chunks/cli-1.1.16-0w56n0k6.mjs +2 -0
  62. package/dist/chunks/cli-1.1.16-11vm4ckb.mjs +3 -0
  63. package/dist/chunks/cli-1.1.16-14fn34eq.mjs +2 -0
  64. package/dist/chunks/cli-1.1.16-14qj3fgz.mjs +2 -0
  65. package/dist/chunks/cli-1.1.16-16cpmrsq.mjs +2 -0
  66. package/dist/chunks/cli-1.1.16-1p0006m7.mjs +2 -0
  67. package/dist/chunks/cli-1.1.16-1rw7f88z.mjs +2 -0
  68. package/dist/chunks/cli-1.1.16-21rqtmb8.mjs +2 -0
  69. package/dist/chunks/cli-1.1.16-2c672gb7.mjs +12 -0
  70. package/dist/chunks/cli-1.1.16-2mzk1cmm.mjs +2 -0
  71. package/dist/chunks/cli-1.1.16-2ssqta47.mjs +2 -0
  72. package/dist/chunks/cli-1.1.16-2v8aceee.mjs +2 -0
  73. package/dist/chunks/cli-1.1.16-2xgcx2pv.mjs +2 -0
  74. package/dist/chunks/cli-1.1.16-3ha615b6.mjs +2 -0
  75. package/dist/chunks/cli-1.1.16-3k3hzdbv.mjs +9 -0
  76. package/dist/chunks/cli-1.1.16-3wey4s8m.mjs +2 -0
  77. package/dist/chunks/cli-1.1.16-48pfhgz1.mjs +2 -0
  78. package/dist/chunks/cli-1.1.16-49bqpfq6.mjs +16 -0
  79. package/dist/chunks/cli-1.1.16-4azerbgs.mjs +2 -0
  80. package/dist/chunks/cli-1.1.16-4eszpnge.mjs +2 -0
  81. package/dist/chunks/cli-1.1.16-4kbzs997.mjs +2 -0
  82. package/dist/chunks/cli-1.1.16-4pr1991p.mjs +8 -0
  83. package/dist/chunks/cli-1.1.16-4qysqchs.mjs +24 -0
  84. package/dist/chunks/cli-1.1.16-4v9hjjtt.mjs +3 -0
  85. package/dist/chunks/cli-1.1.16-50vqanyq.mjs +4 -0
  86. package/dist/chunks/cli-1.1.16-54087k9r.mjs +2 -0
  87. package/dist/chunks/cli-1.1.16-5a4a2nqs.mjs +2 -0
  88. package/dist/chunks/cli-1.1.16-5bx6tpmw.mjs +2 -0
  89. package/dist/chunks/cli-1.1.16-5dtt0nsq.mjs +15 -0
  90. package/dist/chunks/cli-1.1.16-5hfex73v.mjs +2 -0
  91. package/dist/chunks/cli-1.1.16-5vc6gf8n.mjs +2 -0
  92. package/dist/chunks/cli-1.1.16-5wsywzcq.mjs +2 -0
  93. package/dist/chunks/cli-1.1.16-65skb0g1.mjs +2 -0
  94. package/dist/chunks/cli-1.1.16-67hp7vy9.mjs +2 -0
  95. package/dist/chunks/cli-1.1.16-67yh08z2.mjs +2 -0
  96. package/dist/chunks/cli-1.1.16-69ma6qdv.mjs +2 -0
  97. package/dist/chunks/cli-1.1.16-6fekr49f.mjs +2 -0
  98. package/dist/chunks/cli-1.1.16-6ptafg83.mjs +59 -0
  99. package/dist/chunks/cli-1.1.16-72wxrwg0.mjs +2 -0
  100. package/dist/chunks/cli-1.1.16-7aatqp3z.mjs +2 -0
  101. package/dist/chunks/cli-1.1.16-7c9cj19v.mjs +2 -0
  102. package/dist/chunks/cli-1.1.16-7j9fntrz.mjs +2 -0
  103. package/dist/chunks/cli-1.1.16-7k62y2m1.mjs +45 -0
  104. package/dist/chunks/cli-1.1.16-7k7w1py7.mjs +39 -0
  105. package/dist/chunks/cli-1.1.16-7xaxs3ra.mjs +18 -0
  106. package/dist/chunks/cli-1.1.16-7z989ymx.mjs +24 -0
  107. package/dist/chunks/cli-1.1.16-892pqd2m.mjs +3 -0
  108. package/dist/chunks/cli-1.1.16-8azzqa5w.mjs +2 -0
  109. package/dist/chunks/cli-1.1.16-8brzp1nw.mjs +6 -0
  110. package/dist/chunks/cli-1.1.16-8efk3qjx.mjs +2 -0
  111. package/dist/chunks/cli-1.1.16-8pms22dq.mjs +2 -0
  112. package/dist/chunks/cli-1.1.16-90p1j6wj.mjs +3 -0
  113. package/dist/chunks/cli-1.1.16-9bvj95e0.mjs +2 -0
  114. package/dist/chunks/cli-1.1.16-9gc3v32k.mjs +2 -0
  115. package/dist/chunks/cli-1.1.16-9mjvq93j.mjs +2 -0
  116. package/dist/chunks/cli-1.1.16-9vaffwrt.mjs +2 -0
  117. package/dist/chunks/cli-1.1.16-9wfv4nx7.mjs +2 -0
  118. package/dist/chunks/cli-1.1.16-9zybbj79.mjs +2 -0
  119. package/dist/chunks/cli-1.1.16-a09ca16c.mjs +2 -0
  120. package/dist/chunks/cli-1.1.16-a2heems6.mjs +2 -0
  121. package/dist/chunks/cli-1.1.16-a6z5s072.mjs +58 -0
  122. package/dist/chunks/cli-1.1.16-aae4w645.mjs +42 -0
  123. package/dist/chunks/cli-1.1.16-acbajet0.mjs +2 -0
  124. package/dist/chunks/cli-1.1.16-amvj9fsw.mjs +3 -0
  125. package/dist/chunks/cli-1.1.16-b06spwrg.mjs +21 -0
  126. package/dist/chunks/cli-1.1.16-b7t8n05k.mjs +2 -0
  127. package/dist/chunks/cli-1.1.16-b80x5mp6.mjs +2 -0
  128. package/dist/chunks/cli-1.1.16-c6ydw1c8.mjs +2 -0
  129. package/dist/chunks/cli-1.1.16-c9b05x0s.mjs +2 -0
  130. package/dist/chunks/cli-1.1.16-cc5chgna.mjs +2 -0
  131. package/dist/chunks/cli-1.1.16-cddsh2r4.mjs +25 -0
  132. package/dist/chunks/cli-1.1.16-cmfztzmq.mjs +2 -0
  133. package/dist/chunks/cli-1.1.16-cmw3ar20.mjs +2 -0
  134. package/dist/chunks/cli-1.1.16-cnwnk7gb.mjs +2 -0
  135. package/dist/chunks/cli-1.1.16-cs3aeka5.mjs +12 -0
  136. package/dist/chunks/cli-1.1.16-d6tf8dzn.mjs +20 -0
  137. package/dist/chunks/cli-1.1.16-df44y8yq.mjs +3 -0
  138. package/dist/chunks/cli-1.1.16-dfr9axye.mjs +2 -0
  139. package/dist/chunks/cli-1.1.16-dh0eqfrb.mjs +25 -0
  140. package/dist/chunks/cli-1.1.16-dn98cknd.mjs +6 -0
  141. package/dist/chunks/cli-1.1.16-dqwre8s7.mjs +2 -0
  142. package/dist/chunks/cli-1.1.16-dqxwanh1.mjs +2 -0
  143. package/dist/chunks/cli-1.1.16-dtwt84pe.mjs +6 -0
  144. package/dist/chunks/cli-1.1.16-dtyn1qwz.mjs +2 -0
  145. package/dist/chunks/cli-1.1.16-dxyq8q3t.mjs +18 -0
  146. package/dist/chunks/cli-1.1.16-e0fmjnmt.mjs +2 -0
  147. package/dist/chunks/cli-1.1.16-e15bgq0q.mjs +2 -0
  148. package/dist/chunks/cli-1.1.16-eabt3s19.mjs +2 -0
  149. package/dist/chunks/cli-1.1.16-eatavqvn.mjs +2 -0
  150. package/dist/chunks/cli-1.1.16-egxjzfe2.mjs +34 -0
  151. package/dist/chunks/cli-1.1.16-ejy0gvv1.mjs +2 -0
  152. package/dist/chunks/cli-1.1.16-f3tex0kv.mjs +24 -0
  153. package/dist/chunks/cli-1.1.16-f6arq2qw.mjs +3 -0
  154. package/dist/chunks/cli-1.1.16-f9d79a6c.mjs +2 -0
  155. package/dist/chunks/cli-1.1.16-fd7yx131.mjs +2 -0
  156. package/dist/chunks/cli-1.1.16-g0z56bnb.mjs +2 -0
  157. package/dist/chunks/cli-1.1.16-g2m8cf2k.mjs +2 -0
  158. package/dist/chunks/cli-1.1.16-gqgat9ps.mjs +2 -0
  159. package/dist/chunks/cli-1.1.16-gtw5ckd8.mjs +2 -0
  160. package/dist/chunks/cli-1.1.16-gyw71nnw.mjs +2 -0
  161. package/dist/chunks/cli-1.1.16-gze584gt.mjs +2 -0
  162. package/dist/chunks/cli-1.1.16-h1rfrt5t.mjs +1 -0
  163. package/dist/chunks/cli-1.1.16-haqxs2zy.mjs +2 -0
  164. package/dist/chunks/cli-1.1.16-hbzd5k64.mjs +2 -0
  165. package/dist/chunks/cli-1.1.16-hd541yqt.mjs +5 -0
  166. package/dist/chunks/cli-1.1.16-hf9kpgyk.mjs +2 -0
  167. package/dist/chunks/cli-1.1.16-hq7j37g9.mjs +2 -0
  168. package/dist/chunks/cli-1.1.16-htk59n0r.mjs +2 -0
  169. package/dist/chunks/cli-1.1.16-hwr77b8n.mjs +5469 -0
  170. package/dist/chunks/cli-1.1.16-hyxvna5x.mjs +2 -0
  171. package/dist/chunks/cli-1.1.16-jcye29qq.mjs +202 -0
  172. package/dist/chunks/cli-1.1.16-kf5fv5t0.mjs +2 -0
  173. package/dist/chunks/cli-1.1.16-kndxajhc.mjs +2 -0
  174. package/dist/chunks/cli-1.1.16-kpxhnxpz.mjs +2 -0
  175. package/dist/chunks/cli-1.1.16-kxckvss5.mjs +4 -0
  176. package/dist/chunks/cli-1.1.16-kz0jkcdc.mjs +2 -0
  177. package/dist/chunks/cli-1.1.16-m0b6tw88.mjs +3 -0
  178. package/dist/chunks/cli-1.1.16-m68wgnx0.mjs +50 -0
  179. package/dist/chunks/cli-1.1.16-manqzza5.mjs +2 -0
  180. package/dist/chunks/cli-1.1.16-mbr5p7h4.mjs +2 -0
  181. package/dist/chunks/cli-1.1.16-n37yee4e.mjs +5 -0
  182. package/dist/chunks/cli-1.1.16-n9r7jwvf.mjs +4 -0
  183. package/dist/chunks/cli-1.1.16-nbxzev2y.mjs +3 -0
  184. package/dist/chunks/cli-1.1.16-nh0pt7e0.mjs +2 -0
  185. package/dist/chunks/cli-1.1.16-njacmwr1.mjs +4 -0
  186. package/dist/chunks/cli-1.1.16-p0fj6fyd.mjs +2 -0
  187. package/dist/chunks/cli-1.1.16-pdga6t1k.mjs +133 -0
  188. package/dist/chunks/cli-1.1.16-pj3sbyjh.mjs +2 -0
  189. package/dist/chunks/cli-1.1.16-pzq1a8yw.mjs +2 -0
  190. package/dist/chunks/cli-1.1.16-q827fp1q.mjs +2 -0
  191. package/dist/chunks/cli-1.1.16-qh481y6y.mjs +2 -0
  192. package/dist/chunks/cli-1.1.16-qwgc24yv.mjs +2 -0
  193. package/dist/chunks/cli-1.1.16-qy3897dn.mjs +2 -0
  194. package/dist/chunks/cli-1.1.16-qyhfqd1t.mjs +4 -0
  195. package/dist/chunks/cli-1.1.16-r0tgqw2k.mjs +4 -0
  196. package/dist/chunks/cli-1.1.16-r102pkgg.mjs +3 -0
  197. package/dist/chunks/cli-1.1.16-r2q5qzd6.mjs +2 -0
  198. package/dist/chunks/cli-1.1.16-r3n44d17.mjs +2 -0
  199. package/dist/chunks/cli-1.1.16-r41v96xz.mjs +6 -0
  200. package/dist/chunks/cli-1.1.16-rb7paxmn.mjs +2 -0
  201. package/dist/chunks/cli-1.1.16-rmn7pfkz.mjs +2 -0
  202. package/dist/chunks/cli-1.1.16-rvyqa9q1.mjs +2 -0
  203. package/dist/chunks/cli-1.1.16-s404wy1x.mjs +6 -0
  204. package/dist/chunks/cli-1.1.16-s73aeg9m.mjs +3 -0
  205. package/dist/chunks/cli-1.1.16-sbck6gp1.mjs +2 -0
  206. package/dist/chunks/cli-1.1.16-sk0nvcb8.mjs +2 -0
  207. package/dist/chunks/cli-1.1.16-sk5cfvaa.mjs +2 -0
  208. package/dist/chunks/cli-1.1.16-t0vza3m9.mjs +2 -0
  209. package/dist/chunks/cli-1.1.16-t3hq60ht.mjs +2 -0
  210. package/dist/chunks/cli-1.1.16-t52j6pb6.mjs +6 -0
  211. package/dist/chunks/cli-1.1.16-t7jxtkz8.mjs +2 -0
  212. package/dist/chunks/cli-1.1.16-the4daty.mjs +17 -0
  213. package/dist/chunks/cli-1.1.16-tjqwb7e1.mjs +2 -0
  214. package/dist/chunks/cli-1.1.16-tjzxdkkt.mjs +17 -0
  215. package/dist/chunks/cli-1.1.16-tpxwx276.mjs +2 -0
  216. package/dist/chunks/cli-1.1.16-tv4kjnwq.mjs +24 -0
  217. package/dist/chunks/cli-1.1.16-tv97myza.mjs +7 -0
  218. package/dist/chunks/cli-1.1.16-v2e4pd3g.mjs +2 -0
  219. package/dist/chunks/cli-1.1.16-vchwnr3f.mjs +2 -0
  220. package/dist/chunks/cli-1.1.16-vf5x3nc4.mjs +2 -0
  221. package/dist/chunks/cli-1.1.16-vhwypfn6.mjs +2 -0
  222. package/dist/chunks/cli-1.1.16-vkc2wbwd.mjs +2 -0
  223. package/dist/chunks/cli-1.1.16-vngrsrs8.mjs +3 -0
  224. package/dist/chunks/cli-1.1.16-vq6g4ncg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.16-vra6hr5d.mjs +2 -0
  226. package/dist/chunks/cli-1.1.16-vzv60xz8.mjs +4 -0
  227. package/dist/chunks/cli-1.1.16-w4zy236d.mjs +2 -0
  228. package/dist/chunks/cli-1.1.16-w5ns6t4b.mjs +2 -0
  229. package/dist/chunks/cli-1.1.16-way1d0g7.mjs +2 -0
  230. package/dist/chunks/cli-1.1.16-wbzh2wm5.mjs +2 -0
  231. package/dist/chunks/cli-1.1.16-wpgdph2x.mjs +7 -0
  232. package/dist/chunks/cli-1.1.16-wv6e57r1.mjs +2 -0
  233. package/dist/chunks/cli-1.1.16-wxyxm2zp.mjs +2 -0
  234. package/dist/chunks/cli-1.1.16-wysnfmek.mjs +4 -0
  235. package/dist/chunks/cli-1.1.16-wzzrc1xq.mjs +2 -0
  236. package/dist/chunks/cli-1.1.16-x0gywt7y.mjs +2 -0
  237. package/dist/chunks/cli-1.1.16-x1r7521q.mjs +133 -0
  238. package/dist/chunks/cli-1.1.16-x4k8bzvc.mjs +2 -0
  239. package/dist/chunks/cli-1.1.16-x9m0y8t1.mjs +2 -0
  240. package/dist/chunks/cli-1.1.16-xaye0g9z.mjs +2 -0
  241. package/dist/chunks/cli-1.1.16-xe8wmqtk.mjs +15 -0
  242. package/dist/chunks/cli-1.1.16-xfke0ngj.mjs +2 -0
  243. package/dist/chunks/cli-1.1.16-xqk1znpb.mjs +2 -0
  244. package/dist/chunks/cli-1.1.16-y11gejtr.mjs +9 -0
  245. package/dist/chunks/cli-1.1.16-y1vrwcq4.mjs +2 -0
  246. package/dist/chunks/cli-1.1.16-ynvgphfk.mjs +2 -0
  247. package/dist/chunks/cli-1.1.16-yqaq6eek.mjs +2 -0
  248. package/dist/chunks/cli-1.1.16-yv8wazsp.mjs +2 -0
  249. package/dist/chunks/cli-1.1.16-yymrc4dd.mjs +2 -0
  250. package/dist/chunks/cli-1.1.16-yzrxqdz1.mjs +4 -0
  251. package/dist/chunks/cli-1.1.16-z56ew2eh.mjs +66 -0
  252. package/dist/chunks/cli-1.1.16-z93174n6.mjs +2 -0
  253. package/dist/chunks/cli-1.1.16-zedxs5mz.mjs +2 -0
  254. package/dist/chunks/cli-1.1.16-zgwt3v22.mjs +2 -0
  255. package/dist/chunks/cli-1.1.16-ztv6fvbq.mjs +4 -0
  256. package/dist/chunks/cli-1.1.16-zx2pqyak.mjs +2 -0
  257. package/dist/chunks/cli-1.1.16-zy1hy3m7.mjs +3 -0
  258. package/dist/chunks/cli-1.1.16-zzc307e7.mjs +2 -0
  259. package/dist/chunks/client-1.1.16-mxfnn25v.mjs +1 -0
  260. package/dist/chunks/color-1.1.16-kxb5k02m.mjs +1 -0
  261. package/dist/chunks/compact-1.1.16-zn3r524w.mjs +3 -0
  262. package/dist/chunks/config-1.1.16-866900pg.mjs +1 -0
  263. package/dist/chunks/config-1.1.16-pnqk3e4x.mjs +1 -0
  264. package/dist/chunks/constants-1.1.16-y8q2q4nx.mjs +1 -0
  265. package/dist/chunks/context-1.1.16-g23rxjdc.mjs +1 -0
  266. package/dist/chunks/context-noninteractive-1.1.16-cccdk7gt.mjs +1 -0
  267. package/dist/chunks/conversation-1.1.16-b3c8ysvx.mjs +1 -0
  268. package/dist/chunks/copilotHeaders-1.1.16-n2gqvrz3.mjs +1 -0
  269. package/dist/chunks/copy-1.1.16-evtbz4pr.mjs +9 -0
  270. package/dist/chunks/cost-1.1.16-je2dhky8.mjs +1 -0
  271. package/dist/chunks/createSSHSession-1.1.16-7bjctayt.mjs +1 -0
  272. package/dist/chunks/createSession-1.1.16-q7ezgde2.mjs +1 -0
  273. package/dist/chunks/debug-1.1.16-rwekwqaz.mjs +1 -0
  274. package/dist/chunks/defaultActionDeps-1.1.16-drefjcq7.mjs +1534 -0
  275. package/dist/chunks/desktop-1.1.16-s5p2s8z1.mjs +1 -0
  276. package/dist/chunks/detectRepository-1.1.16-0mj2v70d.mjs +1 -0
  277. package/dist/chunks/detection-1.1.16-a6g1ea8w.mjs +1 -0
  278. package/dist/chunks/diff-1.1.16-5c3cx6ex.mjs +1 -0
  279. package/dist/chunks/doctor-1.1.16-41p56y0f.mjs +1 -0
  280. package/dist/chunks/doctorDiagnostic-1.1.16-w0td1z7t.mjs +1 -0
  281. package/dist/chunks/earlyInput-1.1.16-fb3qxbjk.mjs +1 -0
  282. package/dist/chunks/effort-1.1.16-9gw3x1mz.mjs +13 -0
  283. package/dist/chunks/engine-1.1.16-35cg9rmx.mjs +1 -0
  284. package/dist/chunks/envLessBridgeConfig-1.1.16-1d34y7k2.mjs +1 -0
  285. package/dist/chunks/envUtils-1.1.16-4t6p0jjh.mjs +1 -0
  286. package/dist/chunks/environmentSelection-1.1.16-63yqca4b.mjs +1 -0
  287. package/dist/chunks/environments-1.1.16-zg1cebes.mjs +1 -0
  288. package/dist/chunks/errors-1.1.16-5ry90xtn.mjs +1 -0
  289. package/dist/chunks/exampleCommands-1.1.16-gctdwyey.mjs +1 -0
  290. package/dist/chunks/execFileNoThrow-1.1.16-ja5wfnqk.mjs +1 -0
  291. package/dist/chunks/exit-1.1.16-gp3attw5.mjs +1 -0
  292. package/dist/chunks/explorer-1.1.16-ksz2kh3r.mjs +1 -0
  293. package/dist/chunks/export-1.1.16-4q6eppsd.mjs +2 -0
  294. package/dist/chunks/extra-usage-1.1.16-gtvkswnt.mjs +1 -0
  295. package/dist/chunks/extra-usage-noninteractive-1.1.16-y936p9yp.mjs +1 -0
  296. package/dist/chunks/fast-1.1.16-9d3xqrpf.mjs +1 -0
  297. package/dist/chunks/feedback-1.1.16-3va6ar52.mjs +14 -0
  298. package/dist/chunks/firstPartyEventLogger-1.1.16-rzm5ms2c.mjs +1 -0
  299. package/dist/chunks/git-1.1.16-wxjpazsv.mjs +1 -0
  300. package/dist/chunks/githubModelsCredentials-1.1.16-8db65cwz.mjs +1 -0
  301. package/dist/chunks/goal-1.1.16-n6zn5hv0.mjs +4 -0
  302. package/dist/chunks/growthbook-1.1.16-595crq4b.mjs +1 -0
  303. package/dist/chunks/headless-1.1.16-ngrfttd2.mjs +2 -0
  304. package/dist/chunks/heapdump-1.1.16-xeq6wdmt.mjs +6 -0
  305. package/dist/chunks/help-1.1.16-cr6p1e9d.mjs +1 -0
  306. package/dist/chunks/hookChains-1.1.16-9h14zpb6.mjs +3 -0
  307. package/dist/chunks/hooks-1.1.16-1g8bmj2c.mjs +79 -0
  308. package/dist/chunks/hooks-1.1.16-n1gmh33c.mjs +1 -0
  309. package/dist/chunks/ide-1.1.16-9vtwyzje.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.1.16-xs3s51me.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.1.16-c6drgpf3.mjs +1 -0
  312. package/dist/chunks/index-1.1.16-18yhpv52.mjs +23 -0
  313. package/dist/chunks/index-1.1.16-2rsmxhr2.mjs +30 -0
  314. package/dist/chunks/index-1.1.16-2xc5zjwe.mjs +5 -0
  315. package/dist/chunks/index-1.1.16-3cscsx0v.mjs +1 -0
  316. package/dist/chunks/index-1.1.16-3vpat7c1.mjs +9 -0
  317. package/dist/chunks/index-1.1.16-3zhbr1qd.mjs +1 -0
  318. package/dist/chunks/index-1.1.16-54nbfa3c.mjs +1 -0
  319. package/dist/chunks/index-1.1.16-6f495kq6.mjs +1 -0
  320. package/dist/chunks/index-1.1.16-82gx3ah5.mjs +1 -0
  321. package/dist/chunks/index-1.1.16-ap17zed0.mjs +1 -0
  322. package/dist/chunks/index-1.1.16-b07w4tdb.mjs +1 -0
  323. package/dist/chunks/index-1.1.16-cca87zba.mjs +9 -0
  324. package/dist/chunks/index-1.1.16-dxjx9gq8.mjs +1 -0
  325. package/dist/chunks/index-1.1.16-ehk0dpk3.mjs +1 -0
  326. package/dist/chunks/index-1.1.16-g6p5h9x8.mjs +1 -0
  327. package/dist/chunks/index-1.1.16-hsmqsx4f.mjs +2 -0
  328. package/dist/chunks/index-1.1.16-n1gyvm02.mjs +1 -0
  329. package/dist/chunks/index-1.1.16-ppkq03k8.mjs +1 -0
  330. package/dist/chunks/index-1.1.16-qpdm2q81.mjs +1 -0
  331. package/dist/chunks/index-1.1.16-qww85f6n.mjs +1 -0
  332. package/dist/chunks/index-1.1.16-s5e31nps.mjs +1 -0
  333. package/dist/chunks/index-1.1.16-v1zrqah7.mjs +2 -0
  334. package/dist/chunks/index-1.1.16-vbj2a5jp.mjs +1 -0
  335. package/dist/chunks/init-1.1.16-6wdrdz2r.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.1.16-6bhkywe8.mjs +1 -0
  337. package/dist/chunks/ink-1.1.16-e7whmjxf.mjs +1 -0
  338. package/dist/chunks/insights-1.1.16-s2czmsxt.mjs +870 -0
  339. package/dist/chunks/install-1.1.16-hm3j0jqe.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.1.16-xmkdh35y.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.1.16-1a8z176x.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.1.16-5tqqjvsb.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.1.16-49sn5m39.mjs +1 -0
  344. package/dist/chunks/keybindings-1.1.16-c6n8k84r.mjs +2 -0
  345. package/dist/chunks/knowledge-1.1.16-08yzaswd.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.1.16-a0dks1p1.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.1.16-jbfc3ync.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.1.16-0pym4ad2.mjs +1 -0
  349. package/dist/chunks/log-1.1.16-yahqz556.mjs +1 -0
  350. package/dist/chunks/main-1.1.16-2egj6bns.mjs +1 -0
  351. package/dist/chunks/managedEnv-1.1.16-tgd635vq.mjs +1 -0
  352. package/dist/chunks/mcp-1.1.16-fkx2awnj.mjs +17 -0
  353. package/dist/chunks/mcp-1.1.16-n7sgsh7q.mjs +1 -0
  354. package/dist/chunks/mcp-1.1.16-ry6g2t33.mjs +4 -0
  355. package/dist/chunks/mcpb-1.1.16-74c05aj3.mjs +1 -0
  356. package/dist/chunks/memory-1.1.16-6jbqggnn.mjs +72 -0
  357. package/dist/chunks/model-1.1.16-3bvzfbem.mjs +2 -0
  358. package/dist/chunks/model-1.1.16-sjpwhja7.mjs +1 -0
  359. package/dist/chunks/node-1.1.16-gsj0fpm7.mjs +12 -0
  360. package/dist/chunks/oauth-1.1.16-bt9x98w7.mjs +1 -0
  361. package/dist/chunks/openaiShim-1.1.16-8gems3mz.mjs +14 -0
  362. package/dist/chunks/output-style-1.1.16-embrry9v.mjs +1 -0
  363. package/dist/chunks/package-KQCMZM5L-1.1.16-d3m1d21p.mjs +1 -0
  364. package/dist/chunks/parseConnectUrl-1.1.16-zffe39j3.mjs +1 -0
  365. package/dist/chunks/parser-1.1.16-3ps9dtdr.mjs +1 -0
  366. package/dist/chunks/passes-1.1.16-n0a3pvdf.mjs +1 -0
  367. package/dist/chunks/permissions-1.1.16-jk4pmrmf.mjs +3 -0
  368. package/dist/chunks/permissions-1.1.16-wnz2vr3h.mjs +1 -0
  369. package/dist/chunks/plan-1.1.16-rtkh7eh3.mjs +1 -0
  370. package/dist/chunks/plist-1.1.16-t71wt7sc.mjs +1 -0
  371. package/dist/chunks/plugin-1.1.16-t9jaj1gv.mjs +29 -0
  372. package/dist/chunks/pluginStartupCheck-1.1.16-c6cf7tmk.mjs +1 -0
  373. package/dist/chunks/plugins-1.1.16-73hwgvfk.mjs +9 -0
  374. package/dist/chunks/preActionHook-1.1.16-nthzxbp9.mjs +2 -0
  375. package/dist/chunks/print-1.1.16-armgf1aq.mjs +57 -0
  376. package/dist/chunks/process-1.1.16-3ct2vh70.mjs +1 -0
  377. package/dist/chunks/processBashCommand-1.1.16-89y7gsbx.mjs +1 -0
  378. package/dist/chunks/processSlashCommand-1.1.16-1kjtbhx2.mjs +9 -0
  379. package/dist/chunks/prompt-1.1.16-0386v4at.mjs +1 -0
  380. package/dist/chunks/prompt-1.1.16-k5y0dpf7.mjs +1 -0
  381. package/dist/chunks/prompts-1.1.16-xsnbw92m.mjs +1 -0
  382. package/dist/chunks/protocolHandler-1.1.16-yx039y6v.mjs +13 -0
  383. package/dist/chunks/provider-1.1.16-m0kk3yhs.mjs +2 -0
  384. package/dist/chunks/providerProfiles-1.1.16-2v2pwv6d.mjs +1 -0
  385. package/dist/chunks/providerValidation-1.1.16-282tqjjx.mjs +6 -0
  386. package/dist/chunks/rate-limit-options-1.1.16-avgds6pk.mjs +1 -0
  387. package/dist/chunks/registerSubcommands-1.1.16-mzwjj9v6.mjs +26 -0
  388. package/dist/chunks/registry-1.1.16-n34j5qfk.mjs +1 -0
  389. package/dist/chunks/release-notes-1.1.16-8q4sx928.mjs +5 -0
  390. package/dist/chunks/reload-plugins-1.1.16-7znfn6r1.mjs +2 -0
  391. package/dist/chunks/remote-env-1.1.16-pv7edzf2.mjs +1 -0
  392. package/dist/chunks/remoteBridgeCore-1.1.16-jv7q72cp.mjs +1 -0
  393. package/dist/chunks/remoteSession-1.1.16-mmf3btpt.mjs +1 -0
  394. package/dist/chunks/rename-1.1.16-m3xv2hvc.mjs +1 -0
  395. package/dist/chunks/replBridgeHandle-1.1.16-0vph2kjs.mjs +1 -0
  396. package/dist/chunks/replLauncher-1.1.16-g5z9jade.mjs +1 -0
  397. package/dist/chunks/resume-1.1.16-40c9ahqr.mjs +2 -0
  398. package/dist/chunks/rewind-1.1.16-tpy93a43.mjs +1 -0
  399. package/dist/chunks/rootOptions-1.1.16-3apcbhbp.mjs +1 -0
  400. package/dist/chunks/runWorkflowHeadless-1.1.16-ejyeyghc.mjs +10 -0
  401. package/dist/chunks/sandbox-adapter-1.1.16-xb7gb62s.mjs +1 -0
  402. package/dist/chunks/sandbox-toggle-1.1.16-pm4wkyc5.mjs +1 -0
  403. package/dist/chunks/session-1.1.16-vrf7bvfv.mjs +2 -0
  404. package/dist/chunks/sessionDiscovery-1.1.16-e919fb36.mjs +1 -0
  405. package/dist/chunks/sessionFileAccessHooks-1.1.16-6sbxmck5.mjs +1 -0
  406. package/dist/chunks/sessionStorage-1.1.16-1pd52qxc.mjs +1 -0
  407. package/dist/chunks/settings-1.1.16-0twvg2yc.mjs +1 -0
  408. package/dist/chunks/setup-1.1.16-mhj053ej.mjs +12 -0
  409. package/dist/chunks/sinks-1.1.16-10wxx1a3.mjs +1 -0
  410. package/dist/chunks/skills-1.1.16-r7v633j2.mjs +1 -0
  411. package/dist/chunks/startupProfiler-1.1.16-mmrhkw7p.mjs +1 -0
  412. package/dist/chunks/startupUpdateCheck-1.1.16-8tj1n7gt.mjs +1 -0
  413. package/dist/chunks/state-1.1.16-8zy52d2r.mjs +1 -0
  414. package/dist/chunks/stats-1.1.16-mrmhzc8j.mjs +6 -0
  415. package/dist/chunks/status-1.1.16-qpanvb67.mjs +1 -0
  416. package/dist/chunks/stickers-1.1.16-0d4zm7x4.mjs +1 -0
  417. package/dist/chunks/subprocessEnv-1.1.16-3pz224am.mjs +1 -0
  418. package/dist/chunks/tasks-1.1.16-cv8bsqt6.mjs +1 -0
  419. package/dist/chunks/teamHelpers-1.1.16-yrkqrc58.mjs +1 -0
  420. package/dist/chunks/teammateModeSnapshot-1.1.16-xgaxxh5q.mjs +1 -0
  421. package/dist/chunks/teleport-1.1.16-rhtckzvp.mjs +1 -0
  422. package/dist/chunks/terminalSetup-1.1.16-fptwmgph.mjs +1 -0
  423. package/dist/chunks/theme-1.1.16-4tskjw6p.mjs +1 -0
  424. package/dist/chunks/thinkback-1.1.16-d1x5jsx0.mjs +1 -0
  425. package/dist/chunks/thinkback-play-1.1.16-54xyd092.mjs +1 -0
  426. package/dist/chunks/toolPool-1.1.16-ga5s9f1k.mjs +1 -0
  427. package/dist/chunks/toolSearch-1.1.16-xw1xa379.mjs +1 -0
  428. package/dist/chunks/tools-1.1.16-h2yhp23r.mjs +1 -0
  429. package/dist/chunks/trustedDevice-1.1.16-nrdjhk2z.mjs +1 -0
  430. package/dist/chunks/turndown.cjs-1.1.16-4yvp9q16.mjs +69 -0
  431. package/dist/chunks/types-1.1.16-47y90s0f.mjs +1 -0
  432. package/dist/chunks/ultrareviewCommand-1.1.16-ej1e8hkt.mjs +4 -0
  433. package/dist/chunks/update-1.1.16-rtkcq95j.mjs +72 -0
  434. package/dist/chunks/upgrade-1.1.16-52bm5sf9.mjs +1 -0
  435. package/dist/chunks/upload-1.1.16-m2wyhzek.mjs +7 -0
  436. package/dist/chunks/upstreamproxy-1.1.16-vwczyqak.mjs +14 -0
  437. package/dist/chunks/url-handler-napi-1.1.16-qa109pxx.mjs +1 -0
  438. package/dist/chunks/usage-1.1.16-yqk04de2.mjs +1 -0
  439. package/dist/chunks/util-1.1.16-5f2kcd2a.mjs +1 -0
  440. package/dist/chunks/utils-1.1.16-pgvxvt37.mjs +1 -0
  441. package/dist/chunks/vim-1.1.16-9pd3j7qj.mjs +1 -0
  442. package/dist/chunks/watchLoop-1.1.16-wdxk66eb.mjs +13 -0
  443. package/dist/chunks/watcher-1.1.16-cd9fad12.mjs +1 -0
  444. package/dist/chunks/wiki-1.1.16-8290ftnh.mjs +132 -0
  445. package/dist/chunks/workflows-1.1.16-f4k926bs.mjs +1 -0
  446. package/dist/chunks/worktree-1.1.16-4s4hp83q.mjs +1 -0
  447. package/dist/chunks/worktreeModeEnabled-1.1.16-je59whhd.mjs +1 -0
  448. package/dist/chunks/wrapper-1.1.16-dfsehczs.mjs +7 -0
  449. package/dist/cli.mjs +2 -2
  450. package/package.json +9 -9
  451. package/dist/chunks/AgentTool-1.1.14-9q1ggh0e.mjs +0 -1
  452. package/dist/chunks/App-1.1.14-htg9bgyr.mjs +0 -1
  453. package/dist/chunks/ApproveApiKey-1.1.14-5mvef4qg.mjs +0 -1
  454. package/dist/chunks/AssistantSessionChooser-1.1.14-cdhvy1n1.mjs +0 -1
  455. package/dist/chunks/AutoModeOptInDialog-1.1.14-amx3pan8.mjs +0 -1
  456. package/dist/chunks/BypassPermissionsModeDialog-1.1.14-rs6q16rf.mjs +0 -1
  457. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.14-n5yvcvr6.mjs +0 -1
  458. package/dist/chunks/ConsoleOAuthFlow-1.1.14-53gmdkhz.mjs +0 -1
  459. package/dist/chunks/DiffDialog-1.1.14-30hcgbry.mjs +0 -6
  460. package/dist/chunks/Doctor-1.1.14-7sy2g3kq.mjs +0 -1
  461. package/dist/chunks/ExplorerDialog-1.1.14-e4es88e1.mjs +0 -6
  462. package/dist/chunks/ITermBackend-1.1.14-6h3jm7pr.mjs +0 -1
  463. package/dist/chunks/InvalidConfigDialog-1.1.14-chxkapxm.mjs +0 -1
  464. package/dist/chunks/InvalidSettingsDialog-1.1.14-zpsvdv05.mjs +0 -1
  465. package/dist/chunks/MigrationDialog-1.1.14-j9enxt6f.mjs +0 -1
  466. package/dist/chunks/Onboarding-1.1.14-2b01fwcq.mjs +0 -1
  467. package/dist/chunks/ProviderManager-1.1.14-wbwa9rnr.mjs +0 -1
  468. package/dist/chunks/REPL-1.1.14-04ezket2.mjs +0 -1
  469. package/dist/chunks/ResumeConversation-1.1.14-w737z0ya.mjs +0 -1
  470. package/dist/chunks/SnapshotUpdateDialog-1.1.14-vc6rvhd7.mjs +0 -1
  471. package/dist/chunks/TeleportProgress-1.1.14-s06dyncs.mjs +0 -1
  472. package/dist/chunks/TeleportRepoMismatchDialog-1.1.14-8xhjpqb6.mjs +0 -1
  473. package/dist/chunks/TeleportResumeWrapper-1.1.14-szxvge9a.mjs +0 -1
  474. package/dist/chunks/TmuxBackend-1.1.14-pfr2r56w.mjs +0 -9
  475. package/dist/chunks/ToolSearchTool-1.1.14-y0fr1104.mjs +0 -1
  476. package/dist/chunks/TrustDialog-1.1.14-1hdvwfw0.mjs +0 -1
  477. package/dist/chunks/activeProvider-1.1.14-mb3f9and.mjs +0 -1
  478. package/dist/chunks/add-dir-1.1.14-vtjpr86t.mjs +0 -1
  479. package/dist/chunks/agentTypes-1.1.14-8f7ye4cx.mjs +0 -1
  480. package/dist/chunks/agents-1.1.14-09h1y56n.mjs +0 -3
  481. package/dist/chunks/agents-1.1.14-0w8wycx4.mjs +0 -110
  482. package/dist/chunks/api-1.1.14-0fbebbzk.mjs +0 -1
  483. package/dist/chunks/asciicast-1.1.14-tb149dp4.mjs +0 -1
  484. package/dist/chunks/assistant-1.1.14-z0zfp1et.mjs +0 -1
  485. package/dist/chunks/auth-1.1.14-bap5zejc.mjs +0 -1
  486. package/dist/chunks/auth-1.1.14-f6095j1n.mjs +0 -1
  487. package/dist/chunks/autoMode-1.1.14-ez7vz44q.mjs +0 -48
  488. package/dist/chunks/autoUpdater-1.1.14-nh4g2w5c.mjs +0 -1
  489. package/dist/chunks/backgroundHousekeeping-1.1.14-85wfz0d2.mjs +0 -1
  490. package/dist/chunks/branch-1.1.14-q182qsp7.mjs +0 -4
  491. package/dist/chunks/bridge-1.1.14-9kv2fqz4.mjs +0 -2
  492. package/dist/chunks/bridgeConfig-1.1.14-c73sbxxv.mjs +0 -1
  493. package/dist/chunks/bridgeEnabled-1.1.14-e8cdsjdy.mjs +0 -1
  494. package/dist/chunks/bridgeMain-1.1.14-v69v0m5y.mjs +0 -88
  495. package/dist/chunks/bridgePointer-1.1.14-a7m65hvd.mjs +0 -1
  496. package/dist/chunks/btw-1.1.14-972yxja7.mjs +0 -1
  497. package/dist/chunks/buddy-1.1.14-j9178h9m.mjs +0 -3
  498. package/dist/chunks/cache-probe-1.1.14-3ce2pkz1.mjs +0 -21
  499. package/dist/chunks/cacheStats-1.1.14-qkerj80m.mjs +0 -4
  500. package/dist/chunks/caches-1.1.14-nf8ev61m.mjs +0 -1
  501. package/dist/chunks/claudeDesktop-1.1.14-ccv8t2d4.mjs +0 -1
  502. package/dist/chunks/claudemd-1.1.14-m5t9ge1t.mjs +0 -1
  503. package/dist/chunks/clear-1.1.14-cfbvvm07.mjs +0 -1
  504. package/dist/chunks/clearTerminal-1.1.14-c99j8gmq.mjs +0 -1
  505. package/dist/chunks/cli-1.1.14-0e209hdd.mjs +0 -2
  506. package/dist/chunks/cli-1.1.14-0f45n8mg.mjs +0 -2
  507. package/dist/chunks/cli-1.1.14-1avercfj.mjs +0 -2
  508. package/dist/chunks/cli-1.1.14-1d5gcev8.mjs +0 -2
  509. package/dist/chunks/cli-1.1.14-1dph8n41.mjs +0 -24
  510. package/dist/chunks/cli-1.1.14-1hghs4qh.mjs +0 -15
  511. package/dist/chunks/cli-1.1.14-1zf42f1b.mjs +0 -2
  512. package/dist/chunks/cli-1.1.14-256a4dam.mjs +0 -21
  513. package/dist/chunks/cli-1.1.14-2gn4jtm1.mjs +0 -3
  514. package/dist/chunks/cli-1.1.14-2ysqsyrs.mjs +0 -4
  515. package/dist/chunks/cli-1.1.14-35sv8v0f.mjs +0 -2
  516. package/dist/chunks/cli-1.1.14-377p51gp.mjs +0 -2
  517. package/dist/chunks/cli-1.1.14-3a1bnf85.mjs +0 -2
  518. package/dist/chunks/cli-1.1.14-3f4fg0jf.mjs +0 -2
  519. package/dist/chunks/cli-1.1.14-3rjxbb1k.mjs +0 -2
  520. package/dist/chunks/cli-1.1.14-42r8tafr.mjs +0 -3
  521. package/dist/chunks/cli-1.1.14-4hs7pyh0.mjs +0 -6
  522. package/dist/chunks/cli-1.1.14-4s9n8yjm.mjs +0 -2
  523. package/dist/chunks/cli-1.1.14-4w3fbvdq.mjs +0 -3
  524. package/dist/chunks/cli-1.1.14-4y2f1s92.mjs +0 -24
  525. package/dist/chunks/cli-1.1.14-53dfe61t.mjs +0 -2
  526. package/dist/chunks/cli-1.1.14-59y1pays.mjs +0 -2
  527. package/dist/chunks/cli-1.1.14-63ezr011.mjs +0 -4
  528. package/dist/chunks/cli-1.1.14-6873seek.mjs +0 -2
  529. package/dist/chunks/cli-1.1.14-6ae3m5qs.mjs +0 -3
  530. package/dist/chunks/cli-1.1.14-6aknzs0q.mjs +0 -3
  531. package/dist/chunks/cli-1.1.14-6ex3vykg.mjs +0 -16
  532. package/dist/chunks/cli-1.1.14-6fa8a7k1.mjs +0 -2
  533. package/dist/chunks/cli-1.1.14-6q6zgmwr.mjs +0 -4
  534. package/dist/chunks/cli-1.1.14-6vr1y1hr.mjs +0 -2
  535. package/dist/chunks/cli-1.1.14-6wh10yar.mjs +0 -2
  536. package/dist/chunks/cli-1.1.14-6ybkavvh.mjs +0 -4
  537. package/dist/chunks/cli-1.1.14-711x17sa.mjs +0 -2
  538. package/dist/chunks/cli-1.1.14-73mqk8g5.mjs +0 -2
  539. package/dist/chunks/cli-1.1.14-73zh23ez.mjs +0 -2
  540. package/dist/chunks/cli-1.1.14-7ccy5ssr.mjs +0 -2
  541. package/dist/chunks/cli-1.1.14-7jt701f6.mjs +0 -2
  542. package/dist/chunks/cli-1.1.14-7pzggsge.mjs +0 -2
  543. package/dist/chunks/cli-1.1.14-83ng5cjk.mjs +0 -2
  544. package/dist/chunks/cli-1.1.14-889fhp26.mjs +0 -3
  545. package/dist/chunks/cli-1.1.14-8d79550c.mjs +0 -2
  546. package/dist/chunks/cli-1.1.14-8eaenjx4.mjs +0 -4
  547. package/dist/chunks/cli-1.1.14-8fx5qjh6.mjs +0 -5440
  548. package/dist/chunks/cli-1.1.14-8g09v1yy.mjs +0 -2
  549. package/dist/chunks/cli-1.1.14-8mn8xn5g.mjs +0 -6
  550. package/dist/chunks/cli-1.1.14-8p0w0geq.mjs +0 -2
  551. package/dist/chunks/cli-1.1.14-8wdw7x7k.mjs +0 -2
  552. package/dist/chunks/cli-1.1.14-8wsrnrk6.mjs +0 -2
  553. package/dist/chunks/cli-1.1.14-8yw87v1w.mjs +0 -2
  554. package/dist/chunks/cli-1.1.14-91ymqn8n.mjs +0 -18
  555. package/dist/chunks/cli-1.1.14-9419wa62.mjs +0 -2
  556. package/dist/chunks/cli-1.1.14-947tpwm7.mjs +0 -2
  557. package/dist/chunks/cli-1.1.14-9cg8tjv3.mjs +0 -3
  558. package/dist/chunks/cli-1.1.14-9gvsxyt7.mjs +0 -2
  559. package/dist/chunks/cli-1.1.14-9nw51dsq.mjs +0 -3
  560. package/dist/chunks/cli-1.1.14-a5v23mcj.mjs +0 -2
  561. package/dist/chunks/cli-1.1.14-ac4030sa.mjs +0 -2
  562. package/dist/chunks/cli-1.1.14-ac5krqkz.mjs +0 -2
  563. package/dist/chunks/cli-1.1.14-acg38ym6.mjs +0 -2
  564. package/dist/chunks/cli-1.1.14-afnxph29.mjs +0 -2
  565. package/dist/chunks/cli-1.1.14-aynsgyjh.mjs +0 -2
  566. package/dist/chunks/cli-1.1.14-az6pbe66.mjs +0 -2
  567. package/dist/chunks/cli-1.1.14-b1sbm8w6.mjs +0 -133
  568. package/dist/chunks/cli-1.1.14-ba8qj93n.mjs +0 -50
  569. package/dist/chunks/cli-1.1.14-bg9cmzcy.mjs +0 -45
  570. package/dist/chunks/cli-1.1.14-bjsx40c2.mjs +0 -2
  571. package/dist/chunks/cli-1.1.14-bjy8bxz1.mjs +0 -2
  572. package/dist/chunks/cli-1.1.14-brw0w20r.mjs +0 -5
  573. package/dist/chunks/cli-1.1.14-bwc8pb1f.mjs +0 -2
  574. package/dist/chunks/cli-1.1.14-byr5dy4k.mjs +0 -4
  575. package/dist/chunks/cli-1.1.14-bz7ts9p7.mjs +0 -2
  576. package/dist/chunks/cli-1.1.14-c30dtxm5.mjs +0 -2
  577. package/dist/chunks/cli-1.1.14-c41jzsx4.mjs +0 -39
  578. package/dist/chunks/cli-1.1.14-cakvdwn3.mjs +0 -2
  579. package/dist/chunks/cli-1.1.14-ce1ghrw0.mjs +0 -2
  580. package/dist/chunks/cli-1.1.14-cfkzk93c.mjs +0 -2
  581. package/dist/chunks/cli-1.1.14-chn2z068.mjs +0 -6
  582. package/dist/chunks/cli-1.1.14-cj411dk7.mjs +0 -2
  583. package/dist/chunks/cli-1.1.14-cnhawbs5.mjs +0 -2
  584. package/dist/chunks/cli-1.1.14-cnkv5cdq.mjs +0 -2
  585. package/dist/chunks/cli-1.1.14-cran8hzr.mjs +0 -2
  586. package/dist/chunks/cli-1.1.14-crdc0nk7.mjs +0 -8
  587. package/dist/chunks/cli-1.1.14-cxm6hsqs.mjs +0 -2
  588. package/dist/chunks/cli-1.1.14-cxqb5hw8.mjs +0 -2
  589. package/dist/chunks/cli-1.1.14-cydkb96c.mjs +0 -2
  590. package/dist/chunks/cli-1.1.14-db3mxak8.mjs +0 -6
  591. package/dist/chunks/cli-1.1.14-e7mfj9cz.mjs +0 -2
  592. package/dist/chunks/cli-1.1.14-ec6d00xg.mjs +0 -66
  593. package/dist/chunks/cli-1.1.14-eccdwm9t.mjs +0 -18
  594. package/dist/chunks/cli-1.1.14-ecnk9fd6.mjs +0 -2
  595. package/dist/chunks/cli-1.1.14-edqga9n4.mjs +0 -2
  596. package/dist/chunks/cli-1.1.14-eh3y4akg.mjs +0 -2
  597. package/dist/chunks/cli-1.1.14-ehnnwt4w.mjs +0 -12
  598. package/dist/chunks/cli-1.1.14-ennnd2wk.mjs +0 -2
  599. package/dist/chunks/cli-1.1.14-esspp1p0.mjs +0 -2
  600. package/dist/chunks/cli-1.1.14-f04bv457.mjs +0 -2
  601. package/dist/chunks/cli-1.1.14-f0686hwn.mjs +0 -2
  602. package/dist/chunks/cli-1.1.14-f0vw7m5f.mjs +0 -2
  603. package/dist/chunks/cli-1.1.14-f2g608st.mjs +0 -2
  604. package/dist/chunks/cli-1.1.14-f2z81veh.mjs +0 -12
  605. package/dist/chunks/cli-1.1.14-f5bvc359.mjs +0 -2
  606. package/dist/chunks/cli-1.1.14-f9dpkjv9.mjs +0 -2
  607. package/dist/chunks/cli-1.1.14-fm5cz88a.mjs +0 -3
  608. package/dist/chunks/cli-1.1.14-fp33ryn9.mjs +0 -2
  609. package/dist/chunks/cli-1.1.14-fq9x6yxc.mjs +0 -2
  610. package/dist/chunks/cli-1.1.14-ftjv2jrz.mjs +0 -2
  611. package/dist/chunks/cli-1.1.14-fwakcyhj.mjs +0 -4
  612. package/dist/chunks/cli-1.1.14-g11hsjv2.mjs +0 -2
  613. package/dist/chunks/cli-1.1.14-g7acy34j.mjs +0 -5
  614. package/dist/chunks/cli-1.1.14-g7ar9cmp.mjs +0 -2
  615. package/dist/chunks/cli-1.1.14-gbf9emxz.mjs +0 -2
  616. package/dist/chunks/cli-1.1.14-gbt4qmxx.mjs +0 -2
  617. package/dist/chunks/cli-1.1.14-gf6m8qz3.mjs +0 -17
  618. package/dist/chunks/cli-1.1.14-gjna0227.mjs +0 -2
  619. package/dist/chunks/cli-1.1.14-gtxhty3d.mjs +0 -2
  620. package/dist/chunks/cli-1.1.14-gv9rt2h8.mjs +0 -2
  621. package/dist/chunks/cli-1.1.14-gvh2m03s.mjs +0 -9
  622. package/dist/chunks/cli-1.1.14-h9swpf99.mjs +0 -3
  623. package/dist/chunks/cli-1.1.14-hcaktmq1.mjs +0 -2
  624. package/dist/chunks/cli-1.1.14-hdkyecme.mjs +0 -59
  625. package/dist/chunks/cli-1.1.14-j9qy5cj8.mjs +0 -6
  626. package/dist/chunks/cli-1.1.14-j9zawab5.mjs +0 -2
  627. package/dist/chunks/cli-1.1.14-je22trqj.mjs +0 -7
  628. package/dist/chunks/cli-1.1.14-jeqhpgat.mjs +0 -4
  629. package/dist/chunks/cli-1.1.14-jgers44a.mjs +0 -2
  630. package/dist/chunks/cli-1.1.14-k4n0pbvf.mjs +0 -2
  631. package/dist/chunks/cli-1.1.14-kkwnpcf6.mjs +0 -2
  632. package/dist/chunks/cli-1.1.14-krd6edee.mjs +0 -2
  633. package/dist/chunks/cli-1.1.14-ks4wsswq.mjs +0 -133
  634. package/dist/chunks/cli-1.1.14-ksk5rch9.mjs +0 -2
  635. package/dist/chunks/cli-1.1.14-ky3mvy9k.mjs +0 -15
  636. package/dist/chunks/cli-1.1.14-kzwx6a7h.mjs +0 -2
  637. package/dist/chunks/cli-1.1.14-mnerhwsv.mjs +0 -25
  638. package/dist/chunks/cli-1.1.14-msb0xfz3.mjs +0 -6
  639. package/dist/chunks/cli-1.1.14-n1hm0gd6.mjs +0 -2
  640. package/dist/chunks/cli-1.1.14-n351xrzx.mjs +0 -2
  641. package/dist/chunks/cli-1.1.14-n9fg59se.mjs +0 -2
  642. package/dist/chunks/cli-1.1.14-nqa3ttq6.mjs +0 -2
  643. package/dist/chunks/cli-1.1.14-nqd6dk6n.mjs +0 -20
  644. package/dist/chunks/cli-1.1.14-p0xhp49n.mjs +0 -58
  645. package/dist/chunks/cli-1.1.14-pa5nsjfc.mjs +0 -24
  646. package/dist/chunks/cli-1.1.14-pce9xpxh.mjs +0 -2
  647. package/dist/chunks/cli-1.1.14-pfsqawey.mjs +0 -2
  648. package/dist/chunks/cli-1.1.14-pgkjn3yw.mjs +0 -2
  649. package/dist/chunks/cli-1.1.14-ph81vme8.mjs +0 -1
  650. package/dist/chunks/cli-1.1.14-prtez07m.mjs +0 -17
  651. package/dist/chunks/cli-1.1.14-q1kc6b8n.mjs +0 -202
  652. package/dist/chunks/cli-1.1.14-q39sm90c.mjs +0 -2
  653. package/dist/chunks/cli-1.1.14-q4njqbhv.mjs +0 -2
  654. package/dist/chunks/cli-1.1.14-q9mpbtcq.mjs +0 -2
  655. package/dist/chunks/cli-1.1.14-qe4ypfya.mjs +0 -2
  656. package/dist/chunks/cli-1.1.14-qfc8zb5d.mjs +0 -2
  657. package/dist/chunks/cli-1.1.14-qm7sjy8p.mjs +0 -2
  658. package/dist/chunks/cli-1.1.14-qr2dkjw6.mjs +0 -2
  659. package/dist/chunks/cli-1.1.14-qs5hpm4s.mjs +0 -2
  660. package/dist/chunks/cli-1.1.14-qyywt37p.mjs +0 -2
  661. package/dist/chunks/cli-1.1.14-r39tb155.mjs +0 -25
  662. package/dist/chunks/cli-1.1.14-r930b2z3.mjs +0 -2
  663. package/dist/chunks/cli-1.1.14-rcw8bj2x.mjs +0 -2
  664. package/dist/chunks/cli-1.1.14-rjac9djz.mjs +0 -2
  665. package/dist/chunks/cli-1.1.14-rmjnqb9b.mjs +0 -2
  666. package/dist/chunks/cli-1.1.14-ry5bys5g.mjs +0 -2
  667. package/dist/chunks/cli-1.1.14-ryjw96z2.mjs +0 -2
  668. package/dist/chunks/cli-1.1.14-s2tegwye.mjs +0 -2
  669. package/dist/chunks/cli-1.1.14-s59gy7wr.mjs +0 -2
  670. package/dist/chunks/cli-1.1.14-scaajcvm.mjs +0 -2
  671. package/dist/chunks/cli-1.1.14-srbcxz1e.mjs +0 -34
  672. package/dist/chunks/cli-1.1.14-t32277f6.mjs +0 -4
  673. package/dist/chunks/cli-1.1.14-t5cdgcnh.mjs +0 -2
  674. package/dist/chunks/cli-1.1.14-t82ydhr6.mjs +0 -2
  675. package/dist/chunks/cli-1.1.14-t9xyraqy.mjs +0 -9
  676. package/dist/chunks/cli-1.1.14-tm2g00jj.mjs +0 -2
  677. package/dist/chunks/cli-1.1.14-tv90r87r.mjs +0 -3
  678. package/dist/chunks/cli-1.1.14-v019any3.mjs +0 -2
  679. package/dist/chunks/cli-1.1.14-v4f9098m.mjs +0 -2
  680. package/dist/chunks/cli-1.1.14-v7nnjdwc.mjs +0 -2
  681. package/dist/chunks/cli-1.1.14-vd4v04cf.mjs +0 -2
  682. package/dist/chunks/cli-1.1.14-vdsx0cw7.mjs +0 -15
  683. package/dist/chunks/cli-1.1.14-vefm78w3.mjs +0 -2
  684. package/dist/chunks/cli-1.1.14-vjeh477p.mjs +0 -3
  685. package/dist/chunks/cli-1.1.14-vmwd3gk6.mjs +0 -4
  686. package/dist/chunks/cli-1.1.14-vq47nhnz.mjs +0 -2
  687. package/dist/chunks/cli-1.1.14-vx8jq8gy.mjs +0 -42
  688. package/dist/chunks/cli-1.1.14-vzevhjxk.mjs +0 -2
  689. package/dist/chunks/cli-1.1.14-w0d35qqy.mjs +0 -2
  690. package/dist/chunks/cli-1.1.14-w2wbzv4e.mjs +0 -3
  691. package/dist/chunks/cli-1.1.14-w4fgn8t6.mjs +0 -2
  692. package/dist/chunks/cli-1.1.14-weqr0y1h.mjs +0 -2
  693. package/dist/chunks/cli-1.1.14-x2b13bs6.mjs +0 -2
  694. package/dist/chunks/cli-1.1.14-x6g4zgjh.mjs +0 -3
  695. package/dist/chunks/cli-1.1.14-xcg5hzkp.mjs +0 -2
  696. package/dist/chunks/cli-1.1.14-xejgqxmy.mjs +0 -2
  697. package/dist/chunks/cli-1.1.14-xw8mensa.mjs +0 -4
  698. package/dist/chunks/cli-1.1.14-xwcfnjkf.mjs +0 -24
  699. package/dist/chunks/cli-1.1.14-yfknrxme.mjs +0 -2
  700. package/dist/chunks/cli-1.1.14-ykbz2fee.mjs +0 -2
  701. package/dist/chunks/cli-1.1.14-ypbww0jj.mjs +0 -2
  702. package/dist/chunks/cli-1.1.14-yvw9gv0w.mjs +0 -2
  703. package/dist/chunks/cli-1.1.14-z07q0gwf.mjs +0 -2
  704. package/dist/chunks/cli-1.1.14-z0mjb0vh.mjs +0 -2
  705. package/dist/chunks/cli-1.1.14-z9cc7bb2.mjs +0 -2
  706. package/dist/chunks/cli-1.1.14-zajvkghs.mjs +0 -2
  707. package/dist/chunks/cli-1.1.14-znbm9h8t.mjs +0 -2
  708. package/dist/chunks/client-1.1.14-m2mjhyw6.mjs +0 -1
  709. package/dist/chunks/color-1.1.14-f3q2mzg0.mjs +0 -1
  710. package/dist/chunks/compact-1.1.14-effx3hf9.mjs +0 -3
  711. package/dist/chunks/config-1.1.14-9ydtd85s.mjs +0 -1
  712. package/dist/chunks/config-1.1.14-h96m0d8d.mjs +0 -1
  713. package/dist/chunks/constants-1.1.14-zk22gxph.mjs +0 -1
  714. package/dist/chunks/context-1.1.14-wtr7pmtw.mjs +0 -1
  715. package/dist/chunks/context-noninteractive-1.1.14-j8y21hht.mjs +0 -1
  716. package/dist/chunks/conversation-1.1.14-rt6z9rds.mjs +0 -1
  717. package/dist/chunks/copilotHeaders-1.1.14-s922v787.mjs +0 -1
  718. package/dist/chunks/copy-1.1.14-m8bx9df8.mjs +0 -9
  719. package/dist/chunks/cost-1.1.14-whyhrsgg.mjs +0 -1
  720. package/dist/chunks/createSSHSession-1.1.14-sdg5dk4r.mjs +0 -1
  721. package/dist/chunks/createSession-1.1.14-vct1c158.mjs +0 -1
  722. package/dist/chunks/debug-1.1.14-nca60a44.mjs +0 -1
  723. package/dist/chunks/defaultActionDeps-1.1.14-7y4dgkxg.mjs +0 -1526
  724. package/dist/chunks/desktop-1.1.14-pe1cgr9z.mjs +0 -1
  725. package/dist/chunks/detectRepository-1.1.14-z6hxtqhd.mjs +0 -1
  726. package/dist/chunks/detection-1.1.14-t5ayyza6.mjs +0 -1
  727. package/dist/chunks/diff-1.1.14-tv62px1c.mjs +0 -1
  728. package/dist/chunks/doctor-1.1.14-qesxnkxx.mjs +0 -1
  729. package/dist/chunks/doctorDiagnostic-1.1.14-z63s9mpy.mjs +0 -1
  730. package/dist/chunks/earlyInput-1.1.14-7vfad42b.mjs +0 -1
  731. package/dist/chunks/effort-1.1.14-prkmemjw.mjs +0 -13
  732. package/dist/chunks/engine-1.1.14-4585kjf8.mjs +0 -1
  733. package/dist/chunks/envLessBridgeConfig-1.1.14-pv9ydcq3.mjs +0 -1
  734. package/dist/chunks/envUtils-1.1.14-chbd1bsr.mjs +0 -1
  735. package/dist/chunks/environmentSelection-1.1.14-ckpkv6e3.mjs +0 -1
  736. package/dist/chunks/environments-1.1.14-ma9vprdz.mjs +0 -1
  737. package/dist/chunks/errors-1.1.14-ww80fvtz.mjs +0 -1
  738. package/dist/chunks/exampleCommands-1.1.14-x37y2ewm.mjs +0 -1
  739. package/dist/chunks/execFileNoThrow-1.1.14-4xp05pmd.mjs +0 -1
  740. package/dist/chunks/exit-1.1.14-shyzge3a.mjs +0 -1
  741. package/dist/chunks/explorer-1.1.14-12bn9b5s.mjs +0 -1
  742. package/dist/chunks/export-1.1.14-21yjwtry.mjs +0 -2
  743. package/dist/chunks/extra-usage-1.1.14-gr1s0tck.mjs +0 -1
  744. package/dist/chunks/extra-usage-noninteractive-1.1.14-zyk4qh8w.mjs +0 -1
  745. package/dist/chunks/fast-1.1.14-87cn8tqn.mjs +0 -1
  746. package/dist/chunks/feedback-1.1.14-s5ycv1dk.mjs +0 -14
  747. package/dist/chunks/firstPartyEventLogger-1.1.14-e62cbs1c.mjs +0 -1
  748. package/dist/chunks/git-1.1.14-c6rsmdv4.mjs +0 -1
  749. package/dist/chunks/githubModelsCredentials-1.1.14-sbb3wp9c.mjs +0 -1
  750. package/dist/chunks/goal-1.1.14-w7j0vb96.mjs +0 -4
  751. package/dist/chunks/growthbook-1.1.14-65cpy0w1.mjs +0 -1
  752. package/dist/chunks/headless-1.1.14-68gm6f08.mjs +0 -2
  753. package/dist/chunks/heapdump-1.1.14-76kj8s1g.mjs +0 -6
  754. package/dist/chunks/help-1.1.14-zwc1crj5.mjs +0 -1
  755. package/dist/chunks/hookChains-1.1.14-cvazppdb.mjs +0 -3
  756. package/dist/chunks/hooks-1.1.14-2ryqg5gs.mjs +0 -1
  757. package/dist/chunks/hooks-1.1.14-3eveg7t1.mjs +0 -79
  758. package/dist/chunks/ide-1.1.14-dtgjtnqn.mjs +0 -3
  759. package/dist/chunks/image-processor-napi-1.1.14-nehgy1pe.mjs +0 -1
  760. package/dist/chunks/inboundAttachments-1.1.14-90434wfb.mjs +0 -1
  761. package/dist/chunks/index-1.1.14-0q2v4wxh.mjs +0 -1
  762. package/dist/chunks/index-1.1.14-12qn79c7.mjs +0 -1
  763. package/dist/chunks/index-1.1.14-2gtcr49x.mjs +0 -1
  764. package/dist/chunks/index-1.1.14-2tpw5zhr.mjs +0 -1
  765. package/dist/chunks/index-1.1.14-50xwby01.mjs +0 -1
  766. package/dist/chunks/index-1.1.14-73zx1e4s.mjs +0 -1
  767. package/dist/chunks/index-1.1.14-75vz0ehv.mjs +0 -1
  768. package/dist/chunks/index-1.1.14-9yex519n.mjs +0 -1
  769. package/dist/chunks/index-1.1.14-ae1277p4.mjs +0 -2
  770. package/dist/chunks/index-1.1.14-bgjpqq3g.mjs +0 -1
  771. package/dist/chunks/index-1.1.14-dn6sx3hd.mjs +0 -5
  772. package/dist/chunks/index-1.1.14-egsggv62.mjs +0 -9
  773. package/dist/chunks/index-1.1.14-jedc2mm5.mjs +0 -30
  774. package/dist/chunks/index-1.1.14-qf2jnnv2.mjs +0 -1
  775. package/dist/chunks/index-1.1.14-qsepya6f.mjs +0 -23
  776. package/dist/chunks/index-1.1.14-s8w75y4z.mjs +0 -1
  777. package/dist/chunks/index-1.1.14-sjk5njxz.mjs +0 -2
  778. package/dist/chunks/index-1.1.14-spp0ysmf.mjs +0 -9
  779. package/dist/chunks/index-1.1.14-termgazf.mjs +0 -1
  780. package/dist/chunks/index-1.1.14-v0dy155j.mjs +0 -1
  781. package/dist/chunks/index-1.1.14-wtvxy2p5.mjs +0 -1
  782. package/dist/chunks/index-1.1.14-x2qb1aam.mjs +0 -1
  783. package/dist/chunks/index-1.1.14-zxg55r1x.mjs +0 -1
  784. package/dist/chunks/init-1.1.14-60thb3vn.mjs +0 -1
  785. package/dist/chunks/initReplBridge-1.1.14-ptmwhng6.mjs +0 -1
  786. package/dist/chunks/ink-1.1.14-hb9m1tzk.mjs +0 -1
  787. package/dist/chunks/insights-1.1.14-q3gcq8e5.mjs +0 -870
  788. package/dist/chunks/install-1.1.14-yqjcrtpg.mjs +0 -1
  789. package/dist/chunks/install-github-app-1.1.14-b9sx124r.mjs +0 -149
  790. package/dist/chunks/install-slack-app-1.1.14-h4axwer1.mjs +0 -1
  791. package/dist/chunks/instrumentation-1.1.14-3dtmyckq.mjs +0 -1
  792. package/dist/chunks/interactiveHelpers-1.1.14-5ht3cz8m.mjs +0 -1
  793. package/dist/chunks/keybindings-1.1.14-ex18a7fg.mjs +0 -2
  794. package/dist/chunks/knowledge-1.1.14-netk3f6c.mjs +0 -2
  795. package/dist/chunks/latestVersionCache-1.1.14-1ck4skb9.mjs +0 -1
  796. package/dist/chunks/loadAgentsDir-1.1.14-9qfmgcdr.mjs +0 -1
  797. package/dist/chunks/loadPluginHooks-1.1.14-g5te2y4b.mjs +0 -1
  798. package/dist/chunks/log-1.1.14-jrh2w4pj.mjs +0 -1
  799. package/dist/chunks/main-1.1.14-w4z3m51j.mjs +0 -1
  800. package/dist/chunks/managedEnv-1.1.14-hm26y9yh.mjs +0 -1
  801. package/dist/chunks/mcp-1.1.14-jdgt2rjc.mjs +0 -17
  802. package/dist/chunks/mcp-1.1.14-nbqn7e10.mjs +0 -1
  803. package/dist/chunks/mcp-1.1.14-yhg498sq.mjs +0 -4
  804. package/dist/chunks/mcpb-1.1.14-bwrmrz6f.mjs +0 -1
  805. package/dist/chunks/memory-1.1.14-vtzr3td4.mjs +0 -72
  806. package/dist/chunks/model-1.1.14-6atmfgtq.mjs +0 -1
  807. package/dist/chunks/model-1.1.14-k3jz1ch0.mjs +0 -2
  808. package/dist/chunks/node-1.1.14-436c41vg.mjs +0 -12
  809. package/dist/chunks/oauth-1.1.14-1pb8ypjr.mjs +0 -1
  810. package/dist/chunks/openaiShim-1.1.14-63qfbmm4.mjs +0 -14
  811. package/dist/chunks/output-style-1.1.14-km29ad1g.mjs +0 -1
  812. package/dist/chunks/package-L37ZVTF4-1.1.14-fdrhyx6k.mjs +0 -1
  813. package/dist/chunks/parseConnectUrl-1.1.14-vxn84ewm.mjs +0 -1
  814. package/dist/chunks/parser-1.1.14-98bg5gv8.mjs +0 -1
  815. package/dist/chunks/passes-1.1.14-5tdj3y9r.mjs +0 -1
  816. package/dist/chunks/permissions-1.1.14-srvsc3za.mjs +0 -3
  817. package/dist/chunks/permissions-1.1.14-vhhyyr5b.mjs +0 -1
  818. package/dist/chunks/plan-1.1.14-c0xp5pxe.mjs +0 -1
  819. package/dist/chunks/plist-1.1.14-5tba5azr.mjs +0 -1
  820. package/dist/chunks/plugin-1.1.14-3gh6jn53.mjs +0 -29
  821. package/dist/chunks/pluginStartupCheck-1.1.14-16akasw0.mjs +0 -1
  822. package/dist/chunks/plugins-1.1.14-8cr92qaf.mjs +0 -9
  823. package/dist/chunks/preActionHook-1.1.14-jwbb9w2t.mjs +0 -2
  824. package/dist/chunks/print-1.1.14-ce8mrr2j.mjs +0 -57
  825. package/dist/chunks/process-1.1.14-zygrw1jw.mjs +0 -1
  826. package/dist/chunks/processBashCommand-1.1.14-q066hcdv.mjs +0 -1
  827. package/dist/chunks/processSlashCommand-1.1.14-btah3m31.mjs +0 -9
  828. package/dist/chunks/prompt-1.1.14-mmdq8qk2.mjs +0 -1
  829. package/dist/chunks/prompt-1.1.14-xks0rqr5.mjs +0 -1
  830. package/dist/chunks/prompts-1.1.14-9c7xnw4s.mjs +0 -1
  831. package/dist/chunks/protocolHandler-1.1.14-7w5d6b8w.mjs +0 -13
  832. package/dist/chunks/provider-1.1.14-136k178m.mjs +0 -2
  833. package/dist/chunks/providerProfiles-1.1.14-vg25c1wr.mjs +0 -1
  834. package/dist/chunks/providerValidation-1.1.14-w3m1vah7.mjs +0 -6
  835. package/dist/chunks/rate-limit-options-1.1.14-vhkc6pgc.mjs +0 -1
  836. package/dist/chunks/registerSubcommands-1.1.14-v8b09yem.mjs +0 -26
  837. package/dist/chunks/registry-1.1.14-bxbt49ze.mjs +0 -1
  838. package/dist/chunks/release-notes-1.1.14-9xyhbkj1.mjs +0 -5
  839. package/dist/chunks/reload-plugins-1.1.14-9jhhq87x.mjs +0 -2
  840. package/dist/chunks/remote-env-1.1.14-941r054g.mjs +0 -1
  841. package/dist/chunks/remoteBridgeCore-1.1.14-ab02srk9.mjs +0 -1
  842. package/dist/chunks/remoteSession-1.1.14-8x26vncf.mjs +0 -1
  843. package/dist/chunks/rename-1.1.14-46zvyh32.mjs +0 -1
  844. package/dist/chunks/replBridgeHandle-1.1.14-85r3hxws.mjs +0 -1
  845. package/dist/chunks/replLauncher-1.1.14-0jp7aph0.mjs +0 -1
  846. package/dist/chunks/resume-1.1.14-8pepfwmk.mjs +0 -2
  847. package/dist/chunks/rewind-1.1.14-hwgcehgr.mjs +0 -1
  848. package/dist/chunks/rootOptions-1.1.14-evwgp5w2.mjs +0 -1
  849. package/dist/chunks/runWorkflowHeadless-1.1.14-w8erpgvm.mjs +0 -10
  850. package/dist/chunks/sandbox-adapter-1.1.14-kwegx4mz.mjs +0 -1
  851. package/dist/chunks/sandbox-toggle-1.1.14-2htjsxzk.mjs +0 -1
  852. package/dist/chunks/session-1.1.14-hgmnvw7z.mjs +0 -2
  853. package/dist/chunks/sessionDiscovery-1.1.14-anb5ddc9.mjs +0 -1
  854. package/dist/chunks/sessionFileAccessHooks-1.1.14-re6kra5a.mjs +0 -1
  855. package/dist/chunks/sessionStorage-1.1.14-cn65r158.mjs +0 -1
  856. package/dist/chunks/settings-1.1.14-r31qkcwy.mjs +0 -1
  857. package/dist/chunks/setup-1.1.14-115cm91e.mjs +0 -5
  858. package/dist/chunks/sinks-1.1.14-4abzjj1m.mjs +0 -1
  859. package/dist/chunks/skills-1.1.14-k7rcbkx1.mjs +0 -1
  860. package/dist/chunks/startupProfiler-1.1.14-vgaq3kjm.mjs +0 -1
  861. package/dist/chunks/startupUpdateCheck-1.1.14-z50xwm9f.mjs +0 -1
  862. package/dist/chunks/state-1.1.14-thy0hnc6.mjs +0 -1
  863. package/dist/chunks/stats-1.1.14-m6dzpj3a.mjs +0 -6
  864. package/dist/chunks/status-1.1.14-amqe3rdm.mjs +0 -1
  865. package/dist/chunks/stickers-1.1.14-2t1zj000.mjs +0 -1
  866. package/dist/chunks/subprocessEnv-1.1.14-pbf40bta.mjs +0 -1
  867. package/dist/chunks/tasks-1.1.14-exvwanrf.mjs +0 -1
  868. package/dist/chunks/teamHelpers-1.1.14-pscnj4fa.mjs +0 -1
  869. package/dist/chunks/teammateModeSnapshot-1.1.14-p4asr9ej.mjs +0 -1
  870. package/dist/chunks/teleport-1.1.14-m6qw5vnq.mjs +0 -1
  871. package/dist/chunks/terminalSetup-1.1.14-5ahc4rv9.mjs +0 -1
  872. package/dist/chunks/theme-1.1.14-1pn2fsqz.mjs +0 -1
  873. package/dist/chunks/thinkback-1.1.14-jss1meem.mjs +0 -1
  874. package/dist/chunks/thinkback-play-1.1.14-gwr9e1aw.mjs +0 -1
  875. package/dist/chunks/toolPool-1.1.14-dczcmy51.mjs +0 -1
  876. package/dist/chunks/toolSearch-1.1.14-seww0hje.mjs +0 -1
  877. package/dist/chunks/tools-1.1.14-6edkph4d.mjs +0 -1
  878. package/dist/chunks/trustedDevice-1.1.14-fyw61308.mjs +0 -1
  879. package/dist/chunks/turndown.cjs-1.1.14-zz6ad8n2.mjs +0 -69
  880. package/dist/chunks/types-1.1.14-ype8816v.mjs +0 -1
  881. package/dist/chunks/ultrareviewCommand-1.1.14-sr15z0qh.mjs +0 -4
  882. package/dist/chunks/update-1.1.14-114p1f8r.mjs +0 -72
  883. package/dist/chunks/upgrade-1.1.14-9whzt7qa.mjs +0 -1
  884. package/dist/chunks/upload-1.1.14-hpk4spp9.mjs +0 -7
  885. package/dist/chunks/upstreamproxy-1.1.14-26edczqa.mjs +0 -14
  886. package/dist/chunks/url-handler-napi-1.1.14-3e9ramyj.mjs +0 -1
  887. package/dist/chunks/usage-1.1.14-xaegmtg7.mjs +0 -1
  888. package/dist/chunks/util-1.1.14-dtgb1qsg.mjs +0 -1
  889. package/dist/chunks/utils-1.1.14-xcvcp3es.mjs +0 -1
  890. package/dist/chunks/vim-1.1.14-y2x4dg5h.mjs +0 -1
  891. package/dist/chunks/watchLoop-1.1.14-r19ed4xt.mjs +0 -13
  892. package/dist/chunks/watcher-1.1.14-9z5ptaf1.mjs +0 -1
  893. package/dist/chunks/wiki-1.1.14-kyejnvfb.mjs +0 -132
  894. package/dist/chunks/workflows-1.1.14-06jg36tv.mjs +0 -1
  895. package/dist/chunks/worktree-1.1.14-k41xe3b1.mjs +0 -1
  896. package/dist/chunks/worktreeModeEnabled-1.1.14-3mn08sd0.mjs +0 -1
  897. package/dist/chunks/wrapper-1.1.14-tgerest3.mjs +0 -7
  898. /package/dist/chunks/{cli-1.1.14-jw4b6h9t.mjs → cli-1.1.16-08mt7pd3.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.1.14-nhbccarx.mjs → cli-1.1.16-c839tmen.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.14-3cc8a830.mjs → cli-1.1.16-eg2wh4gb.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.14-835c2y60.mjs → cli-1.1.16-j1hg5tkr.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.14-a39264wz.mjs → cli-1.1.16-k7hg3739.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.1.14-7nz1bnsz.mjs → cli-1.1.16-y4qp7bb2.mjs} +0 -0
@@ -0,0 +1,88 @@
1
+ import{nb as yJ,ob as xz,pb as rz,qb as cz,rb as iz,sb as kJ}from"./cli-1.1.16-8efk3qjx.mjs";import{ub as Tz}from"./cli-1.1.16-5hfex73v.mjs";import{Cb as EJ,Db as TJ,Eb as xJ,Fb as MJ,Gb as wJ}from"./cli-1.1.16-wxyxm2zp.mjs";import{Ib as fJ}from"./cli-1.1.16-mbr5p7h4.mjs";import{Ee as jJ,Fe as cJ}from"./cli-1.1.16-5dtt0nsq.mjs";import{We as LJ,Ye as oz,_e as RK}from"./cli-1.1.16-69ma6qdv.mjs";import{lf as mz,nf as UJ,rf as OJ}from"./cli-1.1.16-zzc307e7.mjs";import{HH as JJ,IH as Cz,JH as KJ,KH as ZJ,MH as $J,Mn as AJ,NH as YJ,Nn as PK,OH as XJ,PH as QJ,QH as WJ,am as DJ,bk as CJ,bm as vz,ck as FK,fm as NK}from"./cli-1.1.16-hwr77b8n.mjs";import"./cli-1.1.16-ejy0gvv1.mjs";import"./cli-1.1.16-acbajet0.mjs";import"./cli-1.1.16-00hws7wd.mjs";import"./cli-1.1.16-hq7j37g9.mjs";import"./cli-1.1.16-q827fp1q.mjs";import"./cli-1.1.16-tjzxdkkt.mjs";import"./cli-1.1.16-4azerbgs.mjs";import"./cli-1.1.16-9wfv4nx7.mjs";import"./cli-1.1.16-tjqwb7e1.mjs";import{lW as RJ,rW as _K}from"./cli-1.1.16-p0fj6fyd.mjs";import"./cli-1.1.16-11vm4ckb.mjs";import"./cli-1.1.16-yymrc4dd.mjs";import{HW as az,LW as CK}from"./cli-1.1.16-4kbzs997.mjs";import"./cli-1.1.16-vngrsrs8.mjs";import"./cli-1.1.16-y1vrwcq4.mjs";import"./cli-1.1.16-rvyqa9q1.mjs";import"./cli-1.1.16-pzq1a8yw.mjs";import"./cli-1.1.16-tv4kjnwq.mjs";import"./cli-1.1.16-manqzza5.mjs";import"./cli-1.1.16-cnwnk7gb.mjs";import"./cli-1.1.16-egxjzfe2.mjs";import"./cli-1.1.16-6ptafg83.mjs";import"./cli-1.1.16-4v9hjjtt.mjs";import"./cli-1.1.16-gze584gt.mjs";import"./cli-1.1.16-yv8wazsp.mjs";import{B2 as BK,y2 as pz}from"./cli-1.1.16-x0gywt7y.mjs";import"./cli-1.1.16-a2heems6.mjs";import"./cli-1.1.16-vchwnr3f.mjs";import"./cli-1.1.16-dn98cknd.mjs";import"./cli-1.1.16-8azzqa5w.mjs";import"./cli-1.1.16-x9m0y8t1.mjs";import"./cli-1.1.16-8brzp1nw.mjs";import"./cli-1.1.16-72wxrwg0.mjs";import"./cli-1.1.16-2mzk1cmm.mjs";import"./cli-1.1.16-cc5chgna.mjs";import"./cli-1.1.16-vq6g4ncg.mjs";import"./cli-1.1.16-vra6hr5d.mjs";import"./cli-1.1.16-s73aeg9m.mjs";import{E7 as i,F7 as OK}from"./cli-1.1.16-49bqpfq6.mjs";import"./cli-1.1.16-cs3aeka5.mjs";import{e9 as V,f9 as gJ}from"./cli-1.1.16-dtwt84pe.mjs";import"./cli-1.1.16-pdga6t1k.mjs";import"./cli-1.1.16-ynvgphfk.mjs";import"./cli-1.1.16-gyw71nnw.mjs";import"./cli-1.1.16-wv6e57r1.mjs";import{D_ as Wz,Dga as Ez,F_ as GK,Lga as qK,Pba as fz,Qba as ez,Rba as zJ,Sba as pJ,nba as PJ,oba as HK}from"./cli-1.1.16-jcye29qq.mjs";import{Qga as sz,Rga as uJ,Tga as Rz,_ga as qz,gha as jK}from"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import{Nha as BJ,Vha as VK}from"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import{Fja as zz,Gja as _J,Ija as XK}from"./cli-1.1.16-5a4a2nqs.mjs";import{Ika as q,Lka as tz,lka as qJ,mka as uz,qka as aJ}from"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import{gla as g,nla as WK}from"./cli-1.1.16-njacmwr1.mjs";import{Bla as QK,tla as NJ}from"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-4qysqchs.mjs";import"./cli-1.1.16-r41v96xz.mjs";import"./cli-1.1.16-zgwt3v22.mjs";import{Tsa as I}from"./cli-1.1.16-w5ns6t4b.mjs";PK();FK();_K();VK();XK();HK();tz();GK();QK();WK();jK();qK();OK();NK();import{randomUUID as Sz}from"crypto";import{hostname as bJ,tmpdir as DK}from"os";import{basename as AK,join as UK,resolve as lz}from"path";WJ();gJ();cJ();pJ();uJ();tz();WJ();var lJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function dJ(z){return(await jJ(z,lJ)).split(`
2
+ `).filter((K)=>K.length>0)}function VJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,_=[],M=!1,y=null,P=0,x=0,N=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let G=process.stdout.columns||80,w=0;for(let Vz of $.split(`
3
+ `)){if(Vz.length===0){w++;continue}let _z=sz(Vz);w+=Math.max(1,Math.ceil(_z/G))}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($){dJ($).then((G)=>{_=G,p()}).catch((G)=>{q(`QR code generation failed: ${G}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);m(`${V.yellow($)} ${V.yellow("Connecting")}${G}
5
+ `)}function jz(){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 _)m(`${V.dim(Jz)}
6
+ `);let G=ez,w=$?V.green:V.cyan,_z=($?V.green:V.cyan)(Z),Oz="";if(R)Oz+=V.dim(" · ")+V.dim(R);if(B&&k!=="worktree")Oz+=V.dim(" · ")+V.dim(B);if(m(`${w(G)} ${_z}${Oz}
7
+ `),N>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${V.dim(`Capacity: ${x}/${N} · ${Jz}`)}
8
+ `);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):V.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,j=Fz&&Fz.type!=="result"&&Fz.type!=="error"?V.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${j}
9
+ `)}}if(N===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(` ${V.dim(Jz)}
10
+ `)}if(N===1&&!$&&y&&Date.now()-P<JJ)m(` ${V.dim(Rz(y,60))}
11
+ `);let Qz=A??U;if(Qz){m(`
12
+ `);let Jz=$?$J(Qz):YJ(Qz),Kz=M?V.dim.italic("space to hide QR code"):V.dim.italic("space to show QR code"),r=f?V.dim.italic(" · w to toggle spawn mode"):"";m(`${V.dim(Jz)}
13
+ `),m(`${Kz}${r}
14
+ `)}}return{printBanner($,G){if(F=$.sessionIngressUrl,L=G,U=KJ(G,F),n(U),K)J(V.dim("Remote Control")+` v99.0.0
15
+ `);if(K){if($.spawnMode!=="single-session")J(V.dim("Spawn mode: ")+`${$.spawnMode}
16
+ `),J(V.dim("Max concurrent sessions: ")+`${$.maxSessions}
17
+ `);J(V.dim("Environment ID: ")+`${G}
18
+ `)}if($.sandbox)J(V.dim("Sandbox: ")+`${V.green("Enabled")}
19
+ `);J(`
20
+ `),jz()},logSessionStart($,G){if(K){let w=Rz(G,80);$z(V.dim(`[${Cz()}]`)+` Session started: ${V.white(`"${w}"`)} (${V.dim($)})
21
+ `)}},logSessionComplete($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.green("completed")} (${qz(G)}) ${V.dim($)}
22
+ `)},logSessionFailed($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.red("failed")}: ${G} ${V.dim($)}
23
+ `)},logStatus($){$z(V.dim(`[${Cz()}]`)+` ${$}
24
+ `)},logVerbose($){if(K)$z(V.dim(`[${Cz()}] ${$}`)+`
25
+ `)},logError($){$z(V.red(`[${Cz()}] Error: ${$}`)+`
26
+ `)},logReconnected($){$z(V.dim(`[${Cz()}]`)+` ${V.green("Reconnected")} after ${qz($)}
27
+ `)},setRepoInfo($,G){R=$,B=G},updateIdleStatus(){t(),O="idle",Z="Ready",y=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",y=null,P=0,N<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,G){if(t(),a(),O="reconnecting",M)for(let Vz of _)m(`${V.dim(Vz)}
28
+ `);let w=fz[S%fz.length];S++,m(`${V.yellow(w)} ${V.yellow("Reconnecting")} ${V.dim("·")} ${V.dim(`retrying in ${$}`)} ${V.dim("·")} ${V.dim(`disconnected ${G}`)}
29
+ `)},updateFailedStatus($){t(),a(),O="failed";let G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);if(m(`${V.red(zJ)} ${V.red("Remote Control Failed")}${G}
30
+ `),m(`${V.dim(XJ)}
31
+ `),$)m(`${V.red($)}
32
+ `)},updateSessionStatus($,G,w,Vz){if(w.type==="tool_start")y=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,G,w){if(x===$&&N===G&&k===w)return;x=$,N=G,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,G){b.set($,{url:G})},updateSessionActivity($,G){let w=b.get($);if(!w)return;w.activity=G},setSessionTitle($,G){let w=b.get($);if(!w)return;if(w.title=G,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",Z=Rz(G,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();BK();aJ();OJ();import{spawn as oJ}from"child_process";import{createWriteStream as rJ}from"fs";import{tmpdir as iJ}from"os";import{dirname as nJ,join as GJ}from"path";import{createInterface as HJ}from"readline";var tJ=10,sJ=10,eJ=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","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function zK(z,J){let K={};for(let Y of Object.keys(z))if(eJ.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 JK={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 KK(z,J){let K=JK[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 ZK(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",_=L.input??{},M=KK(A,_);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${YK(_)}`)}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 $K(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 YK(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 N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${Y}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=GJ(iJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=GJ(nJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=rJ(R,{flags:"a"}),Z.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.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=zK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,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=oJ(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,_=[],M=!1,y=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
33
+ `);if(_.length>=sJ)_.shift();_.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=ZK(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=tJ)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"&&!y&&J.onFirstUserMessage){let S=$K(d);if(S)y=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((N)=>{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}`),N("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),N("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),N("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:_,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(N){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(N)}`),F.stdin.write(N)},updateAccessToken(N){x.accessToken=N,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
36
+ `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}CK();RK();var LK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,IJ=32;async function vJ(){return BJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function hJ(){if(PJ()||!process.argv[1])return[];return[process.argv[1]]}function EK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return Ez(Error(`Session spawn failed: ${O}`)),O}}async function SJ(z,J,K,Y,O,Z,R,B=LK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,_=new Map,M=new Map,y=new Map,P=new Map,x=new Map,N=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=kJ(A);async function Xz(){let Q=!1,j=!1,E=[];for(let[H]of _){let D=y.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("",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)E.push(H);else j=!0}}for(let H of E){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(j)return"fatal";if(E.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?fJ({getAccessToken:F,onRefresh:(Q,j)=>{let E=_.get(Q);if(!E)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 E.updateAccessToken(j)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let jz=0,t=0,p=null,$=null,G=null,w=null,Vz=!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 _z(){Z.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[u,X]of _){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(_.size===0){Z.updateIdleStatus();return}let[Q,j]=[..._.entries()].pop(),E=M.get(Q);if(!E)return;let H=j.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-E),v=j.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),_z(),w=setInterval(_z,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,j,E){return(H)=>{let D=y.get(Q);_.delete(Q),M.delete(Q),y.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=N.get(Q);if(u)clearTimeout(u),N.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-j;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=E.lastStderr.length>0?E.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),Ez(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 j=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("",{disconnected_ms:X})}if(jz=0,t=0,p=null,$=null,G=null,!j){if(_.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("",{active_sessions:_.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&&_.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let Nz=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){Nz.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,Nz.signal),Nz.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("",{reason:Zz,heartbeat_cycles:Yz,active_sessions:_.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=_.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=_.size>=z.maxSessions;if(f.has(j.id)){if(q(`[bridge:work] Skipping already-completed workId=${j.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=EJ(j.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${j.id}: ${T}`),zz("",{}),f.add(j.id),o(kz(Y,J,j.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=${j.id}`);try{await Y.acknowledgeWork(J,j.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${j.id}: ${g(X)}`)}},u=j.data.type;switch(j.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=j.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=_.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),y.set(X,j.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${j.id}`),await v();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${j.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||NJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=MJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await wJ(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}`),Ez(Error(`registerWorker failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=TJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:Nz}=z,Uz=0;if(l==="worktree"&&(U===void 0||!xJ(X,U))){let W=Date.now();try{let C=await DJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),Nz=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}`),Ez(Error(`Worktree creation failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=EK(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=SK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.16-q7ezgde2.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},Nz);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(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("",{active_sessions:_.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),_.set(X,Dz),y.set(X,j.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 yz=Iz(X),Gz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)Gz=`${z.debugFile.slice(0,W)}-${yz}${z.debugFile.slice(W)}`;else Gz=`${z.debugFile}-${yz}`}else if(z.verbose)Gz=UK(DK(),"claude",`bridge-session-${yz}.log`);if(Gz)Z.logVerbose(`Debug log: ${Gz}`);Z.addSession(e,AJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),mK(e,z.apiBaseUrl).then((W)=>{if(W&&_.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??LJ;if(Bz>0){let W=setTimeout(wK,Bz,X,Bz,Z,b,Dz);N.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(j){if(A.aborted)break;if(j instanceof xz){if(Vz=!0,cz(j.errorType))Z.logStatus(j.message);else if(iz(j))q(`[bridge:work] Suppressed 403 error: ${j.message}`);else Z.logError(j.message),Ez(j);zz("",{status:j.status,error_type:j.errorType}),Wz(cz(j.errorType)?"info":"error","bridge_fatal_error",{status:j.status,error_type:j.errorType});break}let E=UJ(j);if(xK(j)||MK(j)){let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=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("",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Vz=!0;break}$=null,t=0,jz=jz?Math.min(jz*2,B.connCapMs):B.connInitialMs;let v=dz(jz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),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(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Vz=!0;break}p=null,jz=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): ${E}`),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("",{active_sessions:_.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let r=new Set(_.keys());if(U)r.add(U);let Mz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),Z.logStatus(`Shutting down ${_.size} active session(s)…`);let Q=new Map(y);for(let[E,H]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${E}`),H.kill();let j=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((E)=>E.done)),i(B.shutdownGraceMs??30000,j.signal)]),j.abort();for(let[E,H]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${E}`),H.forceKill();for(let E of N.values())clearTimeout(E);if(N.clear(),a?.cancelAll(),k.size>0){let E=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${E.length} worktree(s)`),await Promise.allSettled(E.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([E,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${E}: ${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((j)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(j)}`))));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-1.1.16-krkxjxkj.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var TK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function xK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&TK.has(z.code))return!0;return!1}function MK(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 wK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var fK=["session","same-dir","worktree"];function kK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${fK.join(", ")} (got: ${z??"<missing>"})`}function bK(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 IK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,_=!1;for(let y=0;y<z.length;y++){let P=z[y];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"&&y+1<z.length)Y=lz(z[++y]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&y+1<z.length)O=parseInt(z[++y],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&y+1<z.length)Z=z[++y];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&y+1<z.length)R=z[++y];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[++y],N=kK(x);if(N==="single-session"||N==="same-dir"||N==="worktree")U=N;else return M(N)}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[++y],N=bK(x);if(typeof N==="number")F=N;else return M(N)}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 'claudin 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||_)&&(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&&_)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:_,help:B};function M(y){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B,error:y}}}async function vK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.16-wnz2vr3h.mjs"),J=z.join(", "),K=await vJ(),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: ${IJ})
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
+ claudin 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 \`claudin\` 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 hK=80;function SK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,hK)}async function mK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.16-q7ezgde2.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function fZ(z){let J=IK(z);if(J.help){await vK();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:_}=J,M=A,y,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.16-wnz2vr3h.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:N,checkHasTrustDialogAccepted:f}=await import("./config-1.1.16-pnqk3e4x.mjs");N();let{initSinks:k}=await import("./sinks-1.1.16-10wxx1a3.mjs");k();let b=await vJ();if(P&&!b)await _J("",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([RJ(),CJ()]),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-1.1.16-8zy52d2r.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-1.1.16-7nwthv6n.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.16-jmz78ab3.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.16-pnqk3e4x.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(),jz((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 G=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Vz,findGitRoot:_z}=await import("./git-1.1.16-wxjpazsv.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.16-n1gmh33c.mjs"),Qz=Oz()||_z(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("",{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??IJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.16-krkxjxkj.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(),j=await Vz(),E=bJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.16-7nwthv6n.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:E,branch:Q,gitRepoUrl:j,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:G,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${j} machine=${E}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${G}`),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("",{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("",{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:hJ(),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=VJ({verbose:K}),{parseGitHubRepository:Nz}=await import("./detectRepository-1.1.16-0mj2v70d.mjs"),Uz=j?Nz(j):null,e=Uz?Uz.split("/").pop():AK(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("",{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()},yz=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",yz);let Gz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.16-q7ezgde2.mjs");try{if(Gz=await W({environmentId:T,title:B,events:[],gitRepoUrl:j,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(Gz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.16-krkxjxkj.mjs"),C={sessionId:Gz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await SJ(X,T,c,v,Zz,l,Az.signal,void 0,Gz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",yz),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 kZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.16-8zy52d2r.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.16-pnqk3e4x.mjs");R();let{initSinks:U}=await import("./sinks-1.1.16-10wxx1a3.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-1.1.16-jmz78ab3.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:_,getRemoteUrl:M,findGitRoot:y}=await import("./git-1.1.16-wxjpazsv.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.16-n1gmh33c.mjs");if(z.spawnMode==="worktree"){if(!(P()||y(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=bJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:N,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:hJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=uK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.16-q7ezgde2.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:N,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 SJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function uK(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{SJ as runBridgeLoop,kZ as runBridgeHeadless,IK as parseArgs,MK as isServerError,xK as isConnectionError,fZ as bridgeMain,hz as BridgeHeadlessPermanentError};
@@ -0,0 +1 @@
1
+ import{sW as S,tW as c}from"./cli-1.1.16-11vm4ckb.mjs";import{Kia as Y,Mia as O,Nia as N,Oia as _,dia as G,eia as A,hia as M}from"./cli-1.1.16-z56ew2eh.mjs";import{Ika as C,Lka as k,lka as K,mka as W,qka as R}from"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import{ila as y,nla as j}from"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-w5ns6t4b.mjs";O();k();j();c();_();M();R();import{mkdir as z,readFile as E,stat as T,unlink as m,writeFile as B}from"fs/promises";import{dirname as b,join as f}from"path";var I=50,u=14400000,D=N(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return f(A(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await z(b(v),{recursive:!0}),await B(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 T(x)).mtimeMs,v=await E(x,"utf8")}catch{return null}let Z=D().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($>u)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 S(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 m(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,u as BRIDGE_POINTER_TTL_MS};
@@ -0,0 +1 @@
1
+ import{Th as a,Uh as AJ}from"./cli-1.1.16-b06spwrg.mjs";import{Vh as x,Wh as vJ}from"./cli-1.1.16-9bvj95e0.mjs";import{DE as c,Ey as m,Gy as HJ,JE as WJ,KQ as r,MR as o,Un as g,VQ as TJ,Vn as UJ,YH as $,ZH as bJ,_R as hJ,cU as s,dU as t,eU as DJ,rx as u,sx as IJ}from"./cli-1.1.16-hwr77b8n.mjs";import"./cli-1.1.16-ejy0gvv1.mjs";import"./cli-1.1.16-acbajet0.mjs";import"./cli-1.1.16-00hws7wd.mjs";import"./cli-1.1.16-hq7j37g9.mjs";import"./cli-1.1.16-q827fp1q.mjs";import"./cli-1.1.16-tjzxdkkt.mjs";import"./cli-1.1.16-4azerbgs.mjs";import"./cli-1.1.16-9wfv4nx7.mjs";import"./cli-1.1.16-tjqwb7e1.mjs";import"./cli-1.1.16-p0fj6fyd.mjs";import"./cli-1.1.16-11vm4ckb.mjs";import"./cli-1.1.16-yymrc4dd.mjs";import"./cli-1.1.16-4kbzs997.mjs";import"./cli-1.1.16-vngrsrs8.mjs";import"./cli-1.1.16-y1vrwcq4.mjs";import"./cli-1.1.16-rvyqa9q1.mjs";import"./cli-1.1.16-pzq1a8yw.mjs";import"./cli-1.1.16-tv4kjnwq.mjs";import"./cli-1.1.16-manqzza5.mjs";import{EY as l,GY as kJ,hY as i,iY as QJ}from"./cli-1.1.16-cnwnk7gb.mjs";import"./cli-1.1.16-egxjzfe2.mjs";import{B1 as NJ,W0 as W,Y0 as b,n1 as S,p1 as KJ,xZ as GJ}from"./cli-1.1.16-6ptafg83.mjs";import"./cli-1.1.16-4v9hjjtt.mjs";import"./cli-1.1.16-gze584gt.mjs";import"./cli-1.1.16-yv8wazsp.mjs";import"./cli-1.1.16-x0gywt7y.mjs";import"./cli-1.1.16-a2heems6.mjs";import"./cli-1.1.16-vchwnr3f.mjs";import"./cli-1.1.16-dn98cknd.mjs";import"./cli-1.1.16-8azzqa5w.mjs";import"./cli-1.1.16-x9m0y8t1.mjs";import"./cli-1.1.16-8brzp1nw.mjs";import{$3 as _,Z3 as F,_3 as H}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as zJ}from"./cli-1.1.16-2mzk1cmm.mjs";import"./cli-1.1.16-cc5chgna.mjs";import"./cli-1.1.16-vq6g4ncg.mjs";import"./cli-1.1.16-vra6hr5d.mjs";import"./cli-1.1.16-s73aeg9m.mjs";import"./cli-1.1.16-49bqpfq6.mjs";import"./cli-1.1.16-cs3aeka5.mjs";import"./cli-1.1.16-dtwt84pe.mjs";import"./cli-1.1.16-pdga6t1k.mjs";import"./cli-1.1.16-ynvgphfk.mjs";import"./cli-1.1.16-gyw71nnw.mjs";import"./cli-1.1.16-wv6e57r1.mjs";import{Aba as p,Hea as C,Sba as ZJ,dfa as FJ,zba as j}from"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import{gla as f,nla as YJ}from"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-4qysqchs.mjs";import"./cli-1.1.16-r41v96xz.mjs";import"./cli-1.1.16-zgwt3v22.mjs";import{Osa as R,Ssa as XJ}from"./cli-1.1.16-w5ns6t4b.mjs";function BJ(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}=l(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=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(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=g();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.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),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{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(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F($,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[j,"/",p," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(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(qJ(V.messages)),Y=c();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:u(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 C((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();bJ();ZJ();TJ();kJ();DJ();QJ();vJ();NJ();UJ();FJ();YJ();WJ();hJ();AJ();IJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -0,0 +1,3 @@
1
+ import{AX as a,BX as S,yX as p,zX as f}from"./cli-1.1.16-pzq1a8yw.mjs";import{Hea as d,dfa as C}from"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import{sja as m,tja as y,uja as b}from"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import{Ssa as g}from"./cli-1.1.16-w5ns6t4b.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};
@@ -0,0 +1,21 @@
1
+ import{M2 as h,Q2 as zz}from"./cli-1.1.16-a2heems6.mjs";import"./cli-1.1.16-s73aeg9m.mjs";import{$6 as e,B6 as m}from"./cli-1.1.16-49bqpfq6.mjs";import"./cli-1.1.16-cs3aeka5.mjs";import"./cli-1.1.16-dtwt84pe.mjs";import"./cli-1.1.16-pdga6t1k.mjs";import"./cli-1.1.16-gyw71nnw.mjs";import{dga as y,lga as s,oga as v,rga as r}from"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import{Ika as k,Lka as o}from"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import{era as a,fna as b}from"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-4qysqchs.mjs";import"./cli-1.1.16-r41v96xz.mjs";import"./cli-1.1.16-zgwt3v22.mjs";import{Ssa as n}from"./cli-1.1.16-w5ns6t4b.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}};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};
@@ -0,0 +1,4 @@
1
+ import{$2 as U,U2 as L,V2 as P,W2 as $,_2 as Q,a3 as V,b3 as j}from"./cli-1.1.16-vchwnr3f.mjs";import{Ssa as Z}from"./cli-1.1.16-w5ns6t4b.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};
@@ -0,0 +1 @@
1
+ import{Zh as a,_h as b}from"./cli-1.1.16-7j9fntrz.mjs";import"./cli-1.1.16-a6z5s072.mjs";import"./cli-1.1.16-yzrxqdz1.mjs";import"./cli-1.1.16-hwr77b8n.mjs";import"./cli-1.1.16-ejy0gvv1.mjs";import"./cli-1.1.16-acbajet0.mjs";import"./cli-1.1.16-00hws7wd.mjs";import"./cli-1.1.16-hq7j37g9.mjs";import"./cli-1.1.16-q827fp1q.mjs";import"./cli-1.1.16-tjzxdkkt.mjs";import"./cli-1.1.16-4azerbgs.mjs";import"./cli-1.1.16-9wfv4nx7.mjs";import"./cli-1.1.16-tjqwb7e1.mjs";import"./cli-1.1.16-p0fj6fyd.mjs";import"./cli-1.1.16-11vm4ckb.mjs";import"./cli-1.1.16-yymrc4dd.mjs";import"./cli-1.1.16-4kbzs997.mjs";import"./cli-1.1.16-vngrsrs8.mjs";import"./cli-1.1.16-y1vrwcq4.mjs";import"./cli-1.1.16-rvyqa9q1.mjs";import"./cli-1.1.16-pzq1a8yw.mjs";import"./cli-1.1.16-tv4kjnwq.mjs";import"./cli-1.1.16-manqzza5.mjs";import"./cli-1.1.16-cnwnk7gb.mjs";import"./cli-1.1.16-egxjzfe2.mjs";import"./cli-1.1.16-6ptafg83.mjs";import"./cli-1.1.16-4v9hjjtt.mjs";import"./cli-1.1.16-gze584gt.mjs";import"./cli-1.1.16-yv8wazsp.mjs";import"./cli-1.1.16-x0gywt7y.mjs";import"./cli-1.1.16-a2heems6.mjs";import"./cli-1.1.16-vchwnr3f.mjs";import"./cli-1.1.16-dn98cknd.mjs";import"./cli-1.1.16-8azzqa5w.mjs";import"./cli-1.1.16-x9m0y8t1.mjs";import"./cli-1.1.16-8brzp1nw.mjs";import"./cli-1.1.16-72wxrwg0.mjs";import"./cli-1.1.16-2mzk1cmm.mjs";import"./cli-1.1.16-cc5chgna.mjs";import"./cli-1.1.16-vq6g4ncg.mjs";import"./cli-1.1.16-vra6hr5d.mjs";import"./cli-1.1.16-s73aeg9m.mjs";import"./cli-1.1.16-49bqpfq6.mjs";import"./cli-1.1.16-cs3aeka5.mjs";import"./cli-1.1.16-dtwt84pe.mjs";import"./cli-1.1.16-pdga6t1k.mjs";import"./cli-1.1.16-ynvgphfk.mjs";import"./cli-1.1.16-gyw71nnw.mjs";import"./cli-1.1.16-wv6e57r1.mjs";import"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-4qysqchs.mjs";import"./cli-1.1.16-r41v96xz.mjs";import"./cli-1.1.16-zgwt3v22.mjs";import"./cli-1.1.16-w5ns6t4b.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1 @@
1
+ import{Dga as X,H$ as V,I$ as W,J$ as J,Lga as H,Raa as k,Waa as N,jca as x,mca as A}from"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import{hla as b,nla as y}from"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-w5ns6t4b.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 v(){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{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -0,0 +1 @@
1
+ import{$T as r,KT as a,LT as b,MT as c,NT as d,OT as e,PT as f,QT as g,RT as h,ST as i,TT as j,UT as k,VT as l,WT as m,XT as n,YT as o,ZT as p,_T as q}from"./cli-1.1.16-hwr77b8n.mjs";import"./cli-1.1.16-ejy0gvv1.mjs";import"./cli-1.1.16-acbajet0.mjs";import"./cli-1.1.16-00hws7wd.mjs";import"./cli-1.1.16-hq7j37g9.mjs";import"./cli-1.1.16-q827fp1q.mjs";import"./cli-1.1.16-tjzxdkkt.mjs";import"./cli-1.1.16-4azerbgs.mjs";import"./cli-1.1.16-9wfv4nx7.mjs";import"./cli-1.1.16-tjqwb7e1.mjs";import"./cli-1.1.16-p0fj6fyd.mjs";import"./cli-1.1.16-11vm4ckb.mjs";import"./cli-1.1.16-yymrc4dd.mjs";import"./cli-1.1.16-4kbzs997.mjs";import"./cli-1.1.16-vngrsrs8.mjs";import"./cli-1.1.16-y1vrwcq4.mjs";import"./cli-1.1.16-rvyqa9q1.mjs";import"./cli-1.1.16-pzq1a8yw.mjs";import"./cli-1.1.16-tv4kjnwq.mjs";import"./cli-1.1.16-manqzza5.mjs";import"./cli-1.1.16-cnwnk7gb.mjs";import"./cli-1.1.16-egxjzfe2.mjs";import"./cli-1.1.16-6ptafg83.mjs";import"./cli-1.1.16-4v9hjjtt.mjs";import"./cli-1.1.16-gze584gt.mjs";import"./cli-1.1.16-yv8wazsp.mjs";import"./cli-1.1.16-x0gywt7y.mjs";import"./cli-1.1.16-a2heems6.mjs";import"./cli-1.1.16-vchwnr3f.mjs";import"./cli-1.1.16-dn98cknd.mjs";import"./cli-1.1.16-8azzqa5w.mjs";import"./cli-1.1.16-x9m0y8t1.mjs";import"./cli-1.1.16-8brzp1nw.mjs";import"./cli-1.1.16-72wxrwg0.mjs";import"./cli-1.1.16-2mzk1cmm.mjs";import"./cli-1.1.16-cc5chgna.mjs";import"./cli-1.1.16-vq6g4ncg.mjs";import"./cli-1.1.16-vra6hr5d.mjs";import"./cli-1.1.16-s73aeg9m.mjs";import"./cli-1.1.16-49bqpfq6.mjs";import"./cli-1.1.16-cs3aeka5.mjs";import"./cli-1.1.16-dtwt84pe.mjs";import"./cli-1.1.16-pdga6t1k.mjs";import"./cli-1.1.16-ynvgphfk.mjs";import"./cli-1.1.16-gyw71nnw.mjs";import"./cli-1.1.16-wv6e57r1.mjs";import"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-4qysqchs.mjs";import"./cli-1.1.16-r41v96xz.mjs";import"./cli-1.1.16-zgwt3v22.mjs";import"./cli-1.1.16-w5ns6t4b.mjs";r();export{p as shouldShowClaudeMdExternalIncludesWarning,f as resetGetMemoryFilesCache,b as processMemoryFile,c as processMdRules,m as processConditionedMdRules,q as isMemoryFilePath,o as hasExternalClaudeMdIncludes,k as getMemoryFilesForNestedDirectory,d as getMemoryFiles,j as getManagedAndUserConditionalRules,g as getLargeMemoryFiles,n as getExternalClaudeMdIncludes,l as getConditionalRulesForCwdLevelDirectory,i as getClaudeMds,h as filterInjectedMemoryFiles,e as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
@@ -0,0 +1 @@
1
+ import{Xh as b,Yh as h}from"./cli-1.1.16-3ha615b6.mjs";import"./cli-1.1.16-7j9fntrz.mjs";import"./cli-1.1.16-7xaxs3ra.mjs";import"./cli-1.1.16-a6z5s072.mjs";import"./cli-1.1.16-yzrxqdz1.mjs";import"./cli-1.1.16-hwr77b8n.mjs";import"./cli-1.1.16-ejy0gvv1.mjs";import"./cli-1.1.16-acbajet0.mjs";import"./cli-1.1.16-00hws7wd.mjs";import"./cli-1.1.16-hq7j37g9.mjs";import"./cli-1.1.16-q827fp1q.mjs";import"./cli-1.1.16-tjzxdkkt.mjs";import"./cli-1.1.16-4azerbgs.mjs";import"./cli-1.1.16-9wfv4nx7.mjs";import"./cli-1.1.16-tjqwb7e1.mjs";import"./cli-1.1.16-p0fj6fyd.mjs";import"./cli-1.1.16-11vm4ckb.mjs";import"./cli-1.1.16-yymrc4dd.mjs";import"./cli-1.1.16-4kbzs997.mjs";import"./cli-1.1.16-vngrsrs8.mjs";import"./cli-1.1.16-y1vrwcq4.mjs";import"./cli-1.1.16-rvyqa9q1.mjs";import"./cli-1.1.16-pzq1a8yw.mjs";import"./cli-1.1.16-tv4kjnwq.mjs";import"./cli-1.1.16-manqzza5.mjs";import"./cli-1.1.16-cnwnk7gb.mjs";import"./cli-1.1.16-egxjzfe2.mjs";import"./cli-1.1.16-6ptafg83.mjs";import"./cli-1.1.16-4v9hjjtt.mjs";import"./cli-1.1.16-gze584gt.mjs";import"./cli-1.1.16-yv8wazsp.mjs";import"./cli-1.1.16-x0gywt7y.mjs";import"./cli-1.1.16-a2heems6.mjs";import"./cli-1.1.16-vchwnr3f.mjs";import"./cli-1.1.16-dn98cknd.mjs";import"./cli-1.1.16-8azzqa5w.mjs";import"./cli-1.1.16-x9m0y8t1.mjs";import"./cli-1.1.16-8brzp1nw.mjs";import"./cli-1.1.16-72wxrwg0.mjs";import"./cli-1.1.16-2mzk1cmm.mjs";import"./cli-1.1.16-cc5chgna.mjs";import"./cli-1.1.16-vq6g4ncg.mjs";import"./cli-1.1.16-vra6hr5d.mjs";import"./cli-1.1.16-s73aeg9m.mjs";import"./cli-1.1.16-49bqpfq6.mjs";import"./cli-1.1.16-cs3aeka5.mjs";import"./cli-1.1.16-dtwt84pe.mjs";import"./cli-1.1.16-pdga6t1k.mjs";import"./cli-1.1.16-ynvgphfk.mjs";import"./cli-1.1.16-gyw71nnw.mjs";import"./cli-1.1.16-wv6e57r1.mjs";import"./cli-1.1.16-jcye29qq.mjs";import"./cli-1.1.16-r0tgqw2k.mjs";import"./cli-1.1.16-b7t8n05k.mjs";import"./cli-1.1.16-c9b05x0s.mjs";import"./cli-1.1.16-way1d0g7.mjs";import"./cli-1.1.16-z56ew2eh.mjs";import"./cli-1.1.16-kz0jkcdc.mjs";import"./cli-1.1.16-3wey4s8m.mjs";import"./cli-1.1.16-5a4a2nqs.mjs";import"./cli-1.1.16-s404wy1x.mjs";import"./cli-1.1.16-cmw3ar20.mjs";import"./cli-1.1.16-njacmwr1.mjs";import"./cli-1.1.16-b80x5mp6.mjs";import"./cli-1.1.16-eabt3s19.mjs";import"./cli-1.1.16-vhwypfn6.mjs";import"./cli-1.1.16-aae4w645.mjs";import"./cli-1.1.16-4qysqchs.mjs";import"./cli-1.1.16-r41v96xz.mjs";import"./cli-1.1.16-zgwt3v22.mjs";import{Ssa as g}from"./cli-1.1.16-w5ns6t4b.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
@@ -0,0 +1 @@
1
+ import{o2 as a,p2 as b,q2 as c}from"./cli-1.1.16-gze584gt.mjs";import"./cli-1.1.16-w5ns6t4b.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,15 @@
1
+ import{t2 as qJ,w2 as VJ}from"./cli-1.1.16-yv8wazsp.mjs";import{Dga as q,Hea as w,I$ as YJ,J$ as jJ,J_ as W,K_ as f,Kda as $J,Lga as u,Tda as AJ,dfa as m,mba as U,oba as E,tba as ZJ,vba as TJ}from"./cli-1.1.16-jcye29qq.mjs";import{Fja as F,Ija as xJ}from"./cli-1.1.16-5a4a2nqs.mjs";import{Ika as K,Lka as NJ,lka as b,mka as x,qka as P,uka as y,yka as D}from"./cli-1.1.16-s404wy1x.mjs";import{Ska as QJ,hla as M,ila as B,lla as n,nla as T}from"./cli-1.1.16-njacmwr1.mjs";import{Bla as k,qla as O}from"./cli-1.1.16-b80x5mp6.mjs";import{Ssa as j}from"./cli-1.1.16-w5ns6t4b.mjs";import{access as d,chmod as BJ,writeFile as GJ}from"fs/promises";import{homedir as h}from"os";import{join as v}from"path";function A(){return v(O(),"local")}function RJ(J=h()){return v(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),RJ(Q)]))}function c(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function _J(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return v(A(),"claudin")}function rJ(){return _J(U())}async function I(J,Q,Y){try{return await GJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await y().mkdir(J),await I(v(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
2
+ exec "${J}/node_modules/.bin/claudin" "$@"`,493))await BJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=j(()=>{E();m();k();T();f();D();u();P()});import{open as MJ,readFile as yJ,stat as UJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await yJ(J,{encoding:"utf8"})).split(`
3
+ `)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
4
+ `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function wJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await wJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await UJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=j(()=>{T();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=x(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let R=await r(J),_=R?await e(R):null;if(_&&X===_)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let N=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(N.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${N.stdout} ${N.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function vJ(){return H(O(),".update.lock")}async function DJ(){let J=y(),Q=vJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=y(),Q=vJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=x(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return x(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new G("Another process is currently installing an update")),F("",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("",{currentVersion:"99.0.0"}),console.error(`
5
+ Error: Windows NPM detected in WSL
6
+
7
+ You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
+ This configuration is not supported for updates.
9
+
10
+ To fix this issue:
11
+ 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
+ 2. Make sure Linux NPM is in your PATH before the Windows version
13
+ 3. Try updating again with 'claude update'
14
+ `),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,FJ=4096,IJ,JJ=300000;var dJ=j(()=>{xJ();E();m();NJ();TJ();k();T();f();D();u();jJ();VJ();AJ();o();P();G=class G extends QJ{};IJ=/ENOENT/i});
15
+ export{rJ as oU,JQ as pU,QQ as qU,YQ as rU,ZQ as sU,g as tU,S as uU,a as vU,L as wU,l as xU,wJ as yU,HQ as zU,o as AU,zJ as BU,HJ as CU,IQ as DU,kQ as EU,bQ as FU,PQ as GU,vJ as HU,mJ as IU,DQ as JU,fQ as KU,EQ as LU,mQ as MU,uQ as NU,dQ as OU,dJ as PU};
@@ -0,0 +1,2 @@
1
+ import{Bfa as f,Hea as M,Kea as L,cfa as G,dfa as h,hfa as v,ifa as P,pfa as k}from"./cli-1.1.16-jcye29qq.mjs";import{Eja as x,vja as E}from"./cli-1.1.16-3wey4s8m.mjs";import{Bla as u,qla as T}from"./cli-1.1.16-b80x5mp6.mjs";import{Ssa as C}from"./cli-1.1.16-w5ns6t4b.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as wc,Wj as xc,e as yc,Xj as zc,Yj as Ac,jj as Bc};
@@ -0,0 +1,3 @@
1
+ import{r2 as S,s2 as D,w2 as N}from"./cli-1.1.16-yv8wazsp.mjs";import{Dga as X,Hea as B,Kea as O,Lga as E,dea as H,dfa as d,eea as P}from"./cli-1.1.16-jcye29qq.mjs";import{fla as U,nla as f}from"./cli-1.1.16-njacmwr1.mjs";import{Bla as b,qla as W}from"./cli-1.1.16-b80x5mp6.mjs";import{Woa as T,era as M}from"./cli-1.1.16-eabt3s19.mjs";import{_ra as j,qsa as y}from"./cli-1.1.16-4qysqchs.mjs";import{Osa as R,Ssa as p}from"./cli-1.1.16-w5ns6t4b.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
3
+ export{zq as $e,Jq as af,C as bf,h as cf,Kq as df,Qq as ef,c as ff};
@@ -0,0 +1,2 @@
1
+ import{Ak as I,_R as R,nK as Y,um as W,xm as P,zk as Q}from"./cli-1.1.16-hwr77b8n.mjs";import{Oga as B,Pga as f}from"./cli-1.1.16-r0tgqw2k.mjs";import{$ia as J,_ia as H,uja as F}from"./cli-1.1.16-kz0jkcdc.mjs";import{era as $,fna as x}from"./cli-1.1.16-eabt3s19.mjs";import{Ssa as Z}from"./cli-1.1.16-w5ns6t4b.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as Pe,V as Qe,X as Re,r as Se,w as Te,T as Ue,G as Ve};
@@ -0,0 +1,2 @@
1
+ import{Bla as V,tla as B,ula as H}from"./cli-1.1.16-b80x5mp6.mjs";import{Ssa as Q}from"./cli-1.1.16-w5ns6t4b.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
+ export{$ as Qh,Y as Rh};
@@ -0,0 +1,2 @@
1
+ import{Efa as $,Ffa as y,X_ as Z,Z_ as f,oga as B,rga as K}from"./cli-1.1.16-jcye29qq.mjs";import{Bla as E,vla as Y}from"./cli-1.1.16-b80x5mp6.mjs";import{Ssa as N,Tsa as x}from"./cli-1.1.16-w5ns6t4b.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
2
+ export{D as Hi,s as Ii,g as Ji};
@@ -0,0 +1,3 @@
1
+ import{Ssa as z}from"./cli-1.1.16-w5ns6t4b.mjs";import{execFile as B}from"child_process";import{promisify as E}from"util";async function N(v){try{let{stdout:q}=await G("git",["worktree","list","--porcelain"],{cwd:v,timeout:5000});if(!q)return[];return q.split(`
2
+ `).filter((j)=>j.startsWith("worktree ")).map((j)=>j.slice(9).normalize("NFC"))}catch{return[]}}var G;var H=z(()=>{G=E(B)});
3
+ export{N as sW,H as tW};
@@ -0,0 +1,2 @@
1
+ import{VW as H,XW as M}from"./cli-1.1.16-y1vrwcq4.mjs";import{Fda as B,Kda as D,Tda as L,Xaa as y,eba as K}from"./cli-1.1.16-jcye29qq.mjs";import{Ssa as J}from"./cli-1.1.16-w5ns6t4b.mjs";async function Z(){let b=await H();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let x=D()?.remote?.defaultEnvironmentId,z=b.find((q)=>q.kind!=="bridge")??b[0],A=null;if(x){let q=b.find((k)=>k.environment_id===x);if(q){z=q;for(let k=y.length-1;k>=0;k--){let w=y[k];if(!w||w==="flagSettings")continue;if(B(w)?.remote?.defaultEnvironmentId===x){A=w;break}}}}return{availableEnvironments:b,selectedEnvironment:z,selectedEnvironmentSource:A}}var P=J(()=>{K();L();M()});
2
+ export{Z as Zb,P as _b};
@@ -0,0 +1,2 @@
1
+ import{wi as W,xi as v,yi as T}from"./cli-1.1.16-2xgcx2pv.mjs";import{Kia as X,Mia as C,Nia as $,Oia as F}from"./cli-1.1.16-z56ew2eh.mjs";import{Ika as L,Lka as B}from"./cli-1.1.16-s404wy1x.mjs";import{Bla as y,qla as H}from"./cli-1.1.16-b80x5mp6.mjs";import{era as j,fna as E}from"./cli-1.1.16-eabt3s19.mjs";import{_ra as R,qsa as N}from"./cli-1.1.16-4qysqchs.mjs";N();C();j();B();y();F();T();import{randomUUID as O}from"crypto";import{mkdir as U,writeFile as A}from"fs/promises";import{basename as I,join as M}from"path";var P=30000;function Q(q){L(`[bridge:inbound-attach] ${q}`)}var k=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),D=$(()=>X.array(k()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=D().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return I(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function l(){return M(H(),"uploads",E())}async function x(q){let G=W();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${v()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await R.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:P,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),_=(q.file_uuid.slice(0,8)||O().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),w=l(),Y=M(w,`${_}-${K}`);try{await U(w,{recursive:!0}),await A(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(x))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function u(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function o(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return u(G,K)}
2
+ export{S as ca,f as da,u as ea,o as fa};
@@ -0,0 +1,2 @@
1
+ import{UF as L,VF as i,WF as l,XF as E,YF as c,ZF as w,_F as O,cG as y,dG as e}from"./cli-1.1.16-hwr77b8n.mjs";import{hY as x,iY as s}from"./cli-1.1.16-cnwnk7gb.mjs";import{B1 as K,L0 as S,M0 as r,W0 as k,Y0 as V,q1 as Q,xZ as C}from"./cli-1.1.16-6ptafg83.mjs";import{$3 as _,Y3 as Y,Z3 as P,_3 as v}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as t}from"./cli-1.1.16-2mzk1cmm.mjs";import{Osa as p,Ssa as q}from"./cli-1.1.16-w5ns6t4b.mjs";function X1(J){let b=j.c(17),{query:$,placeholder:I,isFocused:W,isTerminalFocused:Z,prefix:N,width:H,cursorOffset:A,borderless:U}=J,G=I===void 0?"Search…":I,h=N===void 0?"⌕":N,m=U===void 0?!1:U,B=A??$.length,D=m?void 0:"round",g=W?"suggestion":void 0,d=!W,F=m?0:1,T=!W,X;if(b[0]!==W||b[1]!==Z||b[2]!==B||b[3]!==G||b[4]!==$)X=W?P(Y,{children:$?Z?v(Y,{children:[P(V,{children:$.slice(0,B)}),P(V,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&P(V,{children:$.slice(B+1)})]}):P(V,{children:$}):Z?v(Y,{children:[P(V,{inverse:!0,children:G.charAt(0)}),P(V,{dimColor:!0,children:G.slice(1)})]}):P(V,{dimColor:!0,children:G})}):$?P(V,{children:$}):P(V,{children:G}),b[0]=W,b[1]=Z,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=v(V,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let z;if(b[10]!==M||b[11]!==D||b[12]!==g||b[13]!==d||b[14]!==F||b[15]!==H)z=P(k,{flexShrink:0,borderStyle:D,borderColor:g,borderDimColor:d,paddingX:F,width:H,children:M}),b[10]=M,b[11]=D,b[12]=g,b[13]=d,b[14]=F,b[15]=H,b[16]=z;else z=b[16];return z}var j;var u=q(()=>{K();_();j=p(C(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function V1({isActive:J,onExit:b,onCancel:$,onExitUp:I,columns:W,passthroughCtrlKeys:Z=[],initialQuery:N="",backspaceExitsOnEmpty:H=!0}){let{columns:A}=x(),U=W??A,[G,h]=R.useState(N),[m,B]=R.useState(N.length),D=R.useCallback((d)=>{h(d),B(d.length)},[]),g=(d)=>{if(!J)return;let F=y.fromText(G,U,m);if(d.ctrl&&Z.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),I)I();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();L(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();L(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();L(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();L(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=i();if(T.length>0){let X=F.offset,M=F.insert(T);E(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:z}=T,f=G.slice(0,M),a=G.slice(M+z),n=f+X+a,o=M+X.length;w(X.length),h(n),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{g(new S(T.keypress))},{isActive:J}),{query:G,setQuery:D,cursorOffset:m,handleKeyDown:g}}var R,b1;var B1=q(()=>{r();K();e();s();R=p(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
2
+ export{X1 as ph,u as qh,V1 as rh,B1 as sh};
@@ -0,0 +1,2 @@
1
+ import{Ab as R,Bb as W}from"./cli-1.1.16-tv97myza.mjs";import{Gb as M}from"./cli-1.1.16-wxyxm2zp.mjs";import{wW as E,xW as w}from"./cli-1.1.16-yymrc4dd.mjs";import{Ika as L,Lka as H}from"./cli-1.1.16-s404wy1x.mjs";import{gla as Z,nla as z}from"./cli-1.1.16-njacmwr1.mjs";H();z();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:f,getAuthToken:j}=B,P;if(j)P=()=>{let x=j();if(!x)return{};return{Authorization:`Bearer ${x}`}};else E(_);let Q=B.epoch??await M(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new W(V,{},$,void 0,f,P),X,J=new R(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let N,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){N=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),N?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
+ export{I as vb,k as wb,D as xb};
@@ -0,0 +1,2 @@
1
+ import{G$ as I,Q_ as X,U_ as k,k$ as Y}from"./cli-1.1.16-jcye29qq.mjs";import{gha as $}from"./cli-1.1.16-r0tgqw2k.mjs";import{Ssa as Z}from"./cli-1.1.16-w5ns6t4b.mjs";import{stat as M}from"fs/promises";import{join as Q,sep as U}from"path";async function b(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await M(J);return q}catch{return}}var W=Z(()=>{$();k();I()});
2
+ export{b as Qb,W as Rb};
@@ -0,0 +1,2 @@
1
+ import{Vx as S,Wx as Pq,Yx as uq,io as Hq,jo as _q}from"./cli-1.1.16-hwr77b8n.mjs";import{wY as Yq,xY as jq}from"./cli-1.1.16-cnwnk7gb.mjs";import{B1 as a,DZ as o,EZ as Oq,U0 as M,V0 as Cq,W0 as G,Y0 as W,a1 as kq,xZ as n}from"./cli-1.1.16-6ptafg83.mjs";import{$3 as j,Y3 as Kq,Z3 as V,_3 as H}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as Aq}from"./cli-1.1.16-2mzk1cmm.mjs";import{R5 as Qq,T5 as g,U5 as u,V5 as Vq,X5 as T,_5 as Wq,a6 as Xq,i6 as Zq,j6 as hq,o6 as r,r6 as $,s6 as Dq}from"./cli-1.1.16-49bqpfq6.mjs";import{e9 as l,f9 as Bq}from"./cli-1.1.16-dtwt84pe.mjs";import{Bba as f,Hda as Jq,Kea as s,Sba as Nq,Tda as Iq,dfa as Rq}from"./cli-1.1.16-jcye29qq.mjs";import{_ga as zq,gha as Lq}from"./cli-1.1.16-r0tgqw2k.mjs";import{Fja as m,Ija as Uq}from"./cli-1.1.16-5a4a2nqs.mjs";import{Osa as x,Ssa as i}from"./cli-1.1.16-w5ns6t4b.mjs";function e(z){let q=t.c(2),{cooldown:J}=z;if(J){let X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=V(W,{color:"promptBorder",dimColor:!0,children:f}),q[0]=X;else X=q[0];return X}let Q;if(q[1]===Symbol.for("react.memo_cache_sentinel"))Q=V(W,{color:"fastMode",children:f}),q[1]=Q;else Q=q[1];return Q}function _(z=!0,q=!1){if(!z)return f;let J=o(s().theme);if(q)return l.dim(M("promptBorder",J)(f));return M("fastMode",J)(f)}var t;var qq=i(()=>{Bq();Nq();a();Rq();Oq();Cq();j();t=x(n(),1)});function b(z,q){if(Xq(),Jq("userSettings",{fastMode:z?!0:void 0}),z)q((J)=>{let Q=!T(J.mainLoopModel);return{...J,...Q?{mainLoopModel:Vq(),mainLoopModelForSession:null}:{},fastMode:!0}});else q((J)=>({...J,fastMode:!1}))}function mq(z){let q=wq.c(30),{onDone:J,unavailableReason:Q}=z,X=S(Fq),k=S(vq),Y=Pq(),[Z,fq]=yq.useState(k??!1),B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=Wq(),q[0]=B;else B=q[0];let N=B,d=N.status==="cooldown",K=Q!==null,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=$(r(!0)),q[1]=R;else R=q[1];let p=R,O;if(q[2]!==Z||q[3]!==K||q[4]!==X||q[5]!==J||q[6]!==Y)O=function(){if(K)return;if(b(Z,Y),m("",{enabled:Z,source:"picker"}),Z){let F=_(Z),Gq=!T(X)?` · model set to ${u}`:"";J(`${F} Fast mode ON${Gq} · ${p}`)}else Y(cq),J("Fast mode OFF")},q[2]=Z,q[3]=K,q[4]=X,q[5]=J,q[6]=Y,q[7]=O;else O=q[7];let c=O,C;if(q[8]!==k||q[9]!==K||q[10]!==J||q[11]!==Y)C=function(){if(K){if(k)b(!1,Y);J("Fast mode OFF",{display:"system"});return}let F=k?`${_()} Kept Fast mode ON`:"Kept Fast mode OFF";J(F,{display:"system"})},q[8]=k,q[9]=K,q[10]=J,q[11]=Y,q[12]=C;else C=q[12];let v=C,U;if(q[13]!==K)U=function(){if(K)return;fq(Tq)},q[13]=K,q[14]=U;else U=q[14];let P=U,L;if(q[15]!==c||q[16]!==P)L={"confirm:yes":c,"confirm:nextField":P,"confirm:next":P,"confirm:previous":P,"confirm:cycleMode":P,"confirm:toggle":P},q[15]=c,q[16]=P,q[17]=L;else L=q[17];let I;if(q[18]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},q[18]=I;else I=q[18];Yq(L,I);let h;if(q[19]===Symbol.for("react.memo_cache_sentinel"))h=H(W,{children:[V(e,{cooldown:d})," Fast mode (research preview)"]}),q[19]=h;else h=q[19];let Eq=h,w;if(q[20]!==K)w=(E)=>E.pending?H(W,{children:["Press ",E.keyName," again to exit"]}):K?V(W,{children:"Esc to cancel"}):V(W,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),q[20]=K,q[21]=w;else w=q[21];let y;if(q[22]!==Z||q[23]!==Q)y=Q?V(G,{marginLeft:2,children:V(W,{color:"error",children:Q})}):H(Kq,{children:[V(G,{flexDirection:"column",gap:0,marginLeft:2,children:H(G,{flexDirection:"row",gap:2,children:[V(W,{bold:!0,children:"Fast mode"}),V(W,{color:Z?"fastMode":void 0,bold:Z,children:Z?"ON ":"OFF"}),V(W,{dimColor:!0,children:p})]})}),d&&N.status==="cooldown"&&V(G,{marginLeft:2,children:H(W,{color:"warning",children:[N.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",zq(N.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),q[22]=Z,q[23]=Q,q[24]=y;else y=q[24];let D;if(q[25]===Symbol.for("react.memo_cache_sentinel"))D=H(W,{dimColor:!0,children:["Learn more:"," ",V(kq,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),q[25]=D;else D=q[25];let A;if(q[26]!==v||q[27]!==y||q[28]!==w)A=H(Hq,{title:Eq,subtitle:`High-speed mode for ${u}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:v,color:"fastMode",inputGuide:w,children:[y,D]}),q[26]=v,q[27]=y,q[28]=w,q[29]=A;else A=q[29];return A}function Tq(z){return!z}function cq(z){return{...z,fastMode:!1}}function vq(z){return z.fastMode}function Fq(z){return z.mainLoopModel}async function Mq(z,q,J){let Q=g();if(Q)return`Fast mode unavailable: ${Q}`;let{mainLoopModel:X}=q();if(b(z,J),m("",{enabled:z,source:"shortcut"}),z){let k=_(!0),Y=!T(X)?` · model set to ${u}`:"",Z=$(r(!0));return`${k} Fast mode ON${Y} · ${Z}`}else return"Fast mode OFF"}async function Qz(z,q,J){if(!Qq())return null;await Zq();let Q=J?.trim().toLowerCase();if(Q==="on"||Q==="off"){let k=await Mq(Q==="on",q.getAppState,q.setAppState);return z(k),null}let X=g();return m("",{unavailable_reason:X??""}),V(mq,{onDone:z,unavailableReason:X})}var wq,yq;var xq=i(()=>{_q();qq();a();jq();Uq();uq();hq();Lq();Dq();Iq();j();wq=x(n(),1),yq=x(Aq(),1)});
2
+ export{_ as ce,qq as de,mq as ee,Qz as fe,xq as ge};