@claudiolabs/claudin 0.6.13 → 0.7.0

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 (891) hide show
  1. package/dist/chunks/AgentTool-0.7.0-9peg6t20.mjs +1 -0
  2. package/dist/chunks/App-0.7.0-q5hygb50.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.7.0-pdj2vakp.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.7.0-190csm4h.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.7.0-khhh5rz9.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.7.0-4n7jcjsf.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.0-vf636a5p.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.7.0-z9h5bckg.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.7.0-3kqmdg48.mjs +7 -0
  10. package/dist/chunks/Doctor-0.7.0-gep401wn.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.7.0-2t408ngs.mjs +6 -0
  12. package/dist/chunks/Grove-0.7.0-3knq53k5.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.7.0-by807q13.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.7.0-maxj2b37.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.7.0-2atqejbc.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.7.0-wqtqgs70.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.7.0-xe2s643k.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.7.0-4tbbvacv.mjs +1 -0
  19. package/dist/chunks/REPL-0.7.0-tvn2epfh.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.7.0-6ycqmhh2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.7.0-xwjwtj2z.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.7.0-mwbsjw08.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.7.0-szdbz9rf.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.7.0-sg1whfhh.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.7.0-jdkh4z1a.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.7.0-f557bcbq.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.7.0-gfmvgcwc.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.7.0-vvs597t9.mjs +1 -0
  29. package/dist/chunks/add-dir-0.7.0-tqy1qj7k.mjs +1 -0
  30. package/dist/chunks/agents-0.7.0-7mz67ymz.mjs +110 -0
  31. package/dist/chunks/agents-0.7.0-rzfq4nj1.mjs +3 -0
  32. package/dist/chunks/api-0.7.0-3ddtm43n.mjs +1 -0
  33. package/dist/chunks/asciicast-0.7.0-4hfhh3bz.mjs +1 -0
  34. package/dist/chunks/assistant-0.7.0-hq9qp39j.mjs +1 -0
  35. package/dist/chunks/auth-0.7.0-j0ecrgmw.mjs +1 -0
  36. package/dist/chunks/auth-0.7.0-q33dw9jq.mjs +1 -0
  37. package/dist/chunks/autoMode-0.7.0-jt8mnf1a.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.7.0-pk6cxrr5.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.7.0-n50bjkpa.mjs +1 -0
  40. package/dist/chunks/branch-0.7.0-2nvgp1ch.mjs +4 -0
  41. package/dist/chunks/bridge-0.7.0-n76zrpx7.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.7.0-wavdtzat.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.7.0-eqjw3fax.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.7.0-7n73zfpq.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.7.0-49x6tn3y.mjs +1 -0
  46. package/dist/chunks/btw-0.7.0-d2cavbgh.mjs +1 -0
  47. package/dist/chunks/buddy-0.7.0-3r0qt58d.mjs +3 -0
  48. package/dist/chunks/cacache-0.7.0-tsq5tf6t.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.7.0-521yf1je.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.7.0-xrpkvgry.mjs +4 -0
  51. package/dist/chunks/caches-0.7.0-khrzrs38.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.7.0-9vm9zdzp.mjs +1 -0
  53. package/dist/chunks/claudemd-0.7.0-06x6wykt.mjs +1 -0
  54. package/dist/chunks/clear-0.7.0-0hkt8avg.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.7.0-np2er6we.mjs +1 -0
  56. package/dist/chunks/cli-0.7.0-0bzz8t89.mjs +2 -0
  57. package/dist/chunks/cli-0.7.0-0cp32djm.mjs +2 -0
  58. package/dist/chunks/cli-0.7.0-0hzevdxp.mjs +8 -0
  59. package/dist/chunks/cli-0.7.0-0r9dgw51.mjs +3 -0
  60. package/dist/chunks/cli-0.7.0-0vdrrv1g.mjs +2 -0
  61. package/dist/chunks/cli-0.7.0-154gmfg4.mjs +2 -0
  62. package/dist/chunks/cli-0.7.0-15wmymmf.mjs +2 -0
  63. package/dist/chunks/cli-0.7.0-19swb9c9.mjs +2 -0
  64. package/dist/chunks/cli-0.7.0-1b6xe3b3.mjs +3 -0
  65. package/dist/chunks/cli-0.7.0-1evcxwvq.mjs +9 -0
  66. package/dist/chunks/cli-0.7.0-1tb38zvv.mjs +2 -0
  67. package/dist/chunks/cli-0.7.0-1vvj7vh2.mjs +4 -0
  68. package/dist/chunks/cli-0.7.0-21zw08ne.mjs +4 -0
  69. package/dist/chunks/cli-0.7.0-24z25c8v.mjs +2 -0
  70. package/dist/chunks/cli-0.7.0-252v8s5n.mjs +20 -0
  71. package/dist/chunks/cli-0.7.0-29zphpz9.mjs +2 -0
  72. package/dist/chunks/cli-0.7.0-2cdwx892.mjs +3 -0
  73. package/dist/chunks/cli-0.7.0-2etvr47t.mjs +24 -0
  74. package/dist/chunks/cli-0.7.0-2nytysyy.mjs +2 -0
  75. package/dist/chunks/cli-0.7.0-383nrwhr.mjs +18 -0
  76. package/dist/chunks/cli-0.7.0-3fnqxks0.mjs +5 -0
  77. package/dist/chunks/cli-0.7.0-3knzsvn6.mjs +2 -0
  78. package/dist/chunks/cli-0.7.0-3n9nagt9.mjs +2 -0
  79. package/dist/chunks/cli-0.7.0-3stm3k7p.mjs +12 -0
  80. package/dist/chunks/cli-0.7.0-3xtc467b.mjs +2 -0
  81. package/dist/chunks/cli-0.7.0-48ycf0c3.mjs +2 -0
  82. package/dist/chunks/cli-0.7.0-48yfvx4w.mjs +2 -0
  83. package/dist/chunks/cli-0.7.0-49k0drxj.mjs +2 -0
  84. package/dist/chunks/cli-0.7.0-4d58csqr.mjs +2 -0
  85. package/dist/chunks/cli-0.7.0-4s9f320h.mjs +2 -0
  86. package/dist/chunks/cli-0.7.0-4t41vxc0.mjs +2 -0
  87. package/dist/chunks/cli-0.7.0-4z8583dp.mjs +2 -0
  88. package/dist/chunks/cli-0.7.0-4z9nwzzv.mjs +2 -0
  89. package/dist/chunks/cli-0.7.0-4zvtjdd8.mjs +2 -0
  90. package/dist/chunks/cli-0.7.0-5df67dbk.mjs +2 -0
  91. package/dist/chunks/cli-0.7.0-5fx679he.mjs +2 -0
  92. package/dist/chunks/cli-0.7.0-5ktz31fq.mjs +67 -0
  93. package/dist/chunks/cli-0.7.0-5yvefnpr.mjs +3 -0
  94. package/dist/chunks/cli-0.7.0-68mgyfr7.mjs +2 -0
  95. package/dist/chunks/cli-0.7.0-6v89j1h0.mjs +2 -0
  96. package/dist/chunks/cli-0.7.0-747esby6.mjs +2 -0
  97. package/dist/chunks/cli-0.7.0-7c24mbsm.mjs +2 -0
  98. package/dist/chunks/cli-0.7.0-7g132rdj.mjs +5420 -0
  99. package/dist/chunks/cli-0.7.0-83nm3wtf.mjs +2 -0
  100. package/dist/chunks/cli-0.7.0-89798mg3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.0-8begebnr.mjs +3 -0
  102. package/dist/chunks/cli-0.7.0-8p56ked8.mjs +2 -0
  103. package/dist/chunks/cli-0.7.0-8qwe028y.mjs +2 -0
  104. package/dist/chunks/cli-0.7.0-9jzkqcfv.mjs +16 -0
  105. package/dist/chunks/cli-0.7.0-9mk6sjcz.mjs +4 -0
  106. package/dist/chunks/cli-0.7.0-9p8vefz6.mjs +18 -0
  107. package/dist/chunks/cli-0.7.0-a088q8ep.mjs +2 -0
  108. package/dist/chunks/cli-0.7.0-a0dt04a7.mjs +2 -0
  109. package/dist/chunks/cli-0.7.0-a7rry8ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.0-ad4z1hfv.mjs +50 -0
  111. package/dist/chunks/cli-0.7.0-aewz8nz4.mjs +2 -0
  112. package/dist/chunks/cli-0.7.0-apkk9390.mjs +3 -0
  113. package/dist/chunks/cli-0.7.0-asw5nd1q.mjs +2 -0
  114. package/dist/chunks/cli-0.7.0-avczxk44.mjs +2 -0
  115. package/dist/chunks/cli-0.7.0-avw5kb07.mjs +2 -0
  116. package/dist/chunks/cli-0.7.0-ba1xb8x3.mjs +4 -0
  117. package/dist/chunks/cli-0.7.0-bacjkqga.mjs +2 -0
  118. package/dist/chunks/cli-0.7.0-bn0k1nzk.mjs +2 -0
  119. package/dist/chunks/cli-0.7.0-cb16hgkh.mjs +2 -0
  120. package/dist/chunks/cli-0.7.0-cjxpqpns.mjs +3 -0
  121. package/dist/chunks/cli-0.7.0-ct2kfpct.mjs +2 -0
  122. package/dist/chunks/cli-0.7.0-cwxeffcg.mjs +2 -0
  123. package/dist/chunks/cli-0.7.0-d56bajvn.mjs +2 -0
  124. package/dist/chunks/cli-0.7.0-d5bt2ahd.mjs +2 -0
  125. package/dist/chunks/cli-0.7.0-d6h4eqtj.mjs +2 -0
  126. package/dist/chunks/cli-0.7.0-d8vr3j93.mjs +2 -0
  127. package/dist/chunks/cli-0.7.0-dem9bmt6.mjs +2 -0
  128. package/dist/chunks/cli-0.7.0-dpaewdhn.mjs +2 -0
  129. package/dist/chunks/cli-0.7.0-dszmq0g3.mjs +2 -0
  130. package/dist/chunks/cli-0.7.0-dtxyc2mt.mjs +2 -0
  131. package/dist/chunks/cli-0.7.0-dxnyr5rv.mjs +2 -0
  132. package/dist/chunks/cli-0.7.0-dyhamqem.mjs +2 -0
  133. package/dist/chunks/cli-0.7.0-e1esnrzt.mjs +42 -0
  134. package/dist/chunks/cli-0.7.0-e1mycvjk.mjs +2 -0
  135. package/dist/chunks/cli-0.7.0-e39zcyhp.mjs +4 -0
  136. package/dist/chunks/cli-0.7.0-e6mves6r.mjs +2 -0
  137. package/dist/chunks/cli-0.7.0-eayr3nfv.mjs +2 -0
  138. package/dist/chunks/cli-0.7.0-ecwta6mh.mjs +2 -0
  139. package/dist/chunks/cli-0.7.0-eddwmcdn.mjs +2 -0
  140. package/dist/chunks/cli-0.7.0-es6y6s82.mjs +12 -0
  141. package/dist/chunks/cli-0.7.0-ewbn59cm.mjs +2 -0
  142. package/dist/chunks/cli-0.7.0-ewcemx0m.mjs +2 -0
  143. package/dist/chunks/cli-0.7.0-f62gcsfa.mjs +2 -0
  144. package/dist/chunks/cli-0.7.0-f7mqc27p.mjs +6 -0
  145. package/dist/chunks/cli-0.7.0-ffy8few4.mjs +3 -0
  146. package/dist/chunks/cli-0.7.0-ft5gef81.mjs +2 -0
  147. package/dist/chunks/cli-0.7.0-ftjagwyg.mjs +2 -0
  148. package/dist/chunks/cli-0.7.0-fxv77y2t.mjs +12 -0
  149. package/dist/chunks/cli-0.7.0-g2ekvm09.mjs +6 -0
  150. package/dist/chunks/cli-0.7.0-g46gs4dx.mjs +2 -0
  151. package/dist/chunks/cli-0.7.0-g5qxznar.mjs +2 -0
  152. package/dist/chunks/cli-0.7.0-gafgf0er.mjs +2 -0
  153. package/dist/chunks/cli-0.7.0-gkssrwr6.mjs +34 -0
  154. package/dist/chunks/cli-0.7.0-h6kfhzzd.mjs +193 -0
  155. package/dist/chunks/cli-0.7.0-hmjg8yfx.mjs +2 -0
  156. package/dist/chunks/cli-0.7.0-hrtdae85.mjs +6 -0
  157. package/dist/chunks/cli-0.7.0-hxf1ckjt.mjs +12 -0
  158. package/dist/chunks/cli-0.7.0-hxph4t80.mjs +2 -0
  159. package/dist/chunks/cli-0.7.0-j4jzhywr.mjs +3 -0
  160. package/dist/chunks/cli-0.7.0-je29e78f.mjs +2 -0
  161. package/dist/chunks/cli-0.7.0-jmsrj8j2.mjs +4 -0
  162. package/dist/chunks/cli-0.7.0-jvkyhn8x.mjs +2 -0
  163. package/dist/chunks/cli-0.7.0-k3qqc7gx.mjs +2 -0
  164. package/dist/chunks/cli-0.7.0-k7w5n7pe.mjs +2 -0
  165. package/dist/chunks/cli-0.7.0-kkpf8bhn.mjs +2 -0
  166. package/dist/chunks/cli-0.7.0-kngw06pw.mjs +4 -0
  167. package/dist/chunks/cli-0.7.0-kp7f47zq.mjs +2 -0
  168. package/dist/chunks/cli-0.7.0-kpfe5dkw.mjs +2 -0
  169. package/dist/chunks/cli-0.7.0-kr6jdp53.mjs +133 -0
  170. package/dist/chunks/cli-0.7.0-kw0wp8vs.mjs +2 -0
  171. package/dist/chunks/cli-0.7.0-kw554ntj.mjs +3 -0
  172. package/dist/chunks/cli-0.7.0-m07xma4d.mjs +2 -0
  173. package/dist/chunks/cli-0.7.0-m6ysmj08.mjs +39 -0
  174. package/dist/chunks/cli-0.7.0-mea2neea.mjs +133 -0
  175. package/dist/chunks/cli-0.7.0-mn3gdwp2.mjs +17 -0
  176. package/dist/chunks/cli-0.7.0-mnbdk339.mjs +3 -0
  177. package/dist/chunks/cli-0.7.0-n0s94kev.mjs +2 -0
  178. package/dist/chunks/cli-0.7.0-n0twknfk.mjs +2 -0
  179. package/dist/chunks/cli-0.7.0-na9s209m.mjs +2 -0
  180. package/dist/chunks/cli-0.7.0-p96azep2.mjs +7 -0
  181. package/dist/chunks/cli-0.7.0-p9c7eask.mjs +2 -0
  182. package/dist/chunks/cli-0.7.0-p9q4x3f1.mjs +59 -0
  183. package/dist/chunks/cli-0.7.0-pbs0cx53.mjs +2 -0
  184. package/dist/chunks/cli-0.7.0-petmjdha.mjs +2 -0
  185. package/dist/chunks/cli-0.7.0-pf2fr5cc.mjs +4 -0
  186. package/dist/chunks/cli-0.7.0-pfcabga3.mjs +2 -0
  187. package/dist/chunks/cli-0.7.0-ppqzq0zp.mjs +2 -0
  188. package/dist/chunks/cli-0.7.0-q5sbn5b2.mjs +4 -0
  189. package/dist/chunks/cli-0.7.0-q70ex7jy.mjs +2 -0
  190. package/dist/chunks/cli-0.7.0-qeg8v19s.mjs +2 -0
  191. package/dist/chunks/cli-0.7.0-qftredzy.mjs +2 -0
  192. package/dist/chunks/cli-0.7.0-qmckaxpm.mjs +2 -0
  193. package/dist/chunks/cli-0.7.0-r8g195r8.mjs +15 -0
  194. package/dist/chunks/cli-0.7.0-rmprwgax.mjs +2 -0
  195. package/dist/chunks/cli-0.7.0-rnahtcw9.mjs +5 -0
  196. package/dist/chunks/cli-0.7.0-rxhbb3ca.mjs +2 -0
  197. package/dist/chunks/cli-0.7.0-s0b5jjrj.mjs +2 -0
  198. package/dist/chunks/cli-0.7.0-s14kw5d6.mjs +2 -0
  199. package/dist/chunks/cli-0.7.0-s4at7t0q.mjs +2 -0
  200. package/dist/chunks/cli-0.7.0-s8rt9fpg.mjs +2 -0
  201. package/dist/chunks/cli-0.7.0-s9hgep30.mjs +3 -0
  202. package/dist/chunks/cli-0.7.0-sbwhas5a.mjs +18 -0
  203. package/dist/chunks/cli-0.7.0-tcxmyk2w.mjs +2 -0
  204. package/dist/chunks/cli-0.7.0-tjpp46xm.mjs +2 -0
  205. package/dist/chunks/cli-0.7.0-tvwks6zm.mjs +2 -0
  206. package/dist/chunks/cli-0.7.0-twxrndmz.mjs +4 -0
  207. package/dist/chunks/cli-0.7.0-v6ceqq5f.mjs +2 -0
  208. package/dist/chunks/cli-0.7.0-v7hc34ad.mjs +2 -0
  209. package/dist/chunks/cli-0.7.0-v92q5ffm.mjs +2 -0
  210. package/dist/chunks/cli-0.7.0-vf7bbn80.mjs +5 -0
  211. package/dist/chunks/cli-0.7.0-vfzbn5qv.mjs +2 -0
  212. package/dist/chunks/cli-0.7.0-vp89ypch.mjs +24 -0
  213. package/dist/chunks/cli-0.7.0-vvb9pc7x.mjs +3 -0
  214. package/dist/chunks/cli-0.7.0-vzpjsnyh.mjs +2 -0
  215. package/dist/chunks/cli-0.7.0-vzvrhx5c.mjs +2 -0
  216. package/dist/chunks/cli-0.7.0-w0nw2kkk.mjs +17 -0
  217. package/dist/chunks/cli-0.7.0-wb82h4c2.mjs +2 -0
  218. package/dist/chunks/cli-0.7.0-wf8v2b4s.mjs +15 -0
  219. package/dist/chunks/cli-0.7.0-wgy69726.mjs +2 -0
  220. package/dist/chunks/cli-0.7.0-wm0enq59.mjs +2 -0
  221. package/dist/chunks/cli-0.7.0-wntkecma.mjs +2 -0
  222. package/dist/chunks/cli-0.7.0-wspeyepj.mjs +2 -0
  223. package/dist/chunks/cli-0.7.0-wvpty7mm.mjs +2 -0
  224. package/dist/chunks/cli-0.7.0-wxynfqax.mjs +2 -0
  225. package/dist/chunks/cli-0.7.0-wzjrm1a0.mjs +2 -0
  226. package/dist/chunks/cli-0.7.0-x1xdxk52.mjs +2 -0
  227. package/dist/chunks/cli-0.7.0-x2vc8nds.mjs +2 -0
  228. package/dist/chunks/cli-0.7.0-xb864qfd.mjs +2 -0
  229. package/dist/chunks/cli-0.7.0-xfxprc47.mjs +2 -0
  230. package/dist/chunks/cli-0.7.0-xpzg1xfc.mjs +2 -0
  231. package/dist/chunks/cli-0.7.0-xvjaw51n.mjs +15 -0
  232. package/dist/chunks/cli-0.7.0-y003ay15.mjs +2 -0
  233. package/dist/chunks/cli-0.7.0-y6nkrrpn.mjs +2 -0
  234. package/dist/chunks/cli-0.7.0-ybdk9aq6.mjs +21 -0
  235. package/dist/chunks/cli-0.7.0-ybwa4x6g.mjs +2 -0
  236. package/dist/chunks/cli-0.7.0-ycew6bek.mjs +2 -0
  237. package/dist/chunks/cli-0.7.0-ye6sm33j.mjs +2 -0
  238. package/dist/chunks/cli-0.7.0-ytqbgtvc.mjs +2 -0
  239. package/dist/chunks/cli-0.7.0-yts7snkm.mjs +45 -0
  240. package/dist/chunks/cli-0.7.0-yw6r7fw4.mjs +58 -0
  241. package/dist/chunks/cli-0.7.0-z15a5zq0.mjs +2 -0
  242. package/dist/chunks/cli-0.7.0-z7sydqy8.mjs +2 -0
  243. package/dist/chunks/cli-0.7.0-z93va7tf.mjs +2 -0
  244. package/dist/chunks/cli-0.7.0-zd1q68sv.mjs +2 -0
  245. package/dist/chunks/cli-0.7.0-zdbaf370.mjs +10 -0
  246. package/dist/chunks/cli-0.7.0-zf3jaceq.mjs +2 -0
  247. package/dist/chunks/cli-0.7.0-zh93d2ez.mjs +2 -0
  248. package/dist/chunks/cli-0.7.0-zjfpqpke.mjs +1 -0
  249. package/dist/chunks/cli-0.7.0-zmfejrs2.mjs +25 -0
  250. package/dist/chunks/cli-0.7.0-zn444tdk.mjs +2 -0
  251. package/dist/chunks/cli-0.7.0-zqv149an.mjs +6 -0
  252. package/dist/chunks/cli-0.7.0-zscdr61q.mjs +2 -0
  253. package/dist/chunks/cli-0.7.0-ztc21898.mjs +2 -0
  254. package/dist/chunks/client-0.7.0-mxq1x2gd.mjs +1 -0
  255. package/dist/chunks/color-0.7.0-q8kx1h5f.mjs +1 -0
  256. package/dist/chunks/compact-0.7.0-wej8t29a.mjs +3 -0
  257. package/dist/chunks/config-0.7.0-1vqyzdss.mjs +1 -0
  258. package/dist/chunks/config-0.7.0-29b2exhr.mjs +1 -0
  259. package/dist/chunks/constants-0.7.0-cwe25jjg.mjs +1 -0
  260. package/dist/chunks/context-0.7.0-wzkh0ek3.mjs +1 -0
  261. package/dist/chunks/context-noninteractive-0.7.0-3knrv7yy.mjs +1 -0
  262. package/dist/chunks/conversation-0.7.0-5gwkat1n.mjs +1 -0
  263. package/dist/chunks/copilotHeaders-0.7.0-k7qbvwa0.mjs +1 -0
  264. package/dist/chunks/copy-0.7.0-g9547w2e.mjs +9 -0
  265. package/dist/chunks/cost-0.7.0-g07zzraf.mjs +1 -0
  266. package/dist/chunks/createSSHSession-0.7.0-x69ccesr.mjs +1 -0
  267. package/dist/chunks/createSession-0.7.0-eythrhrd.mjs +1 -0
  268. package/dist/chunks/debug-0.7.0-grf8etmz.mjs +1 -0
  269. package/dist/chunks/defaultActionDeps-0.7.0-3msvjhye.mjs +1367 -0
  270. package/dist/chunks/desktop-0.7.0-qv2bt4fq.mjs +1 -0
  271. package/dist/chunks/detectRepository-0.7.0-8kzz057x.mjs +1 -0
  272. package/dist/chunks/detection-0.7.0-d8z59p8p.mjs +1 -0
  273. package/dist/chunks/diff-0.7.0-wx4fgtnt.mjs +1 -0
  274. package/dist/chunks/doctor-0.7.0-dzm456q1.mjs +1 -0
  275. package/dist/chunks/doctorDiagnostic-0.7.0-jysj36mx.mjs +1 -0
  276. package/dist/chunks/earlyInput-0.7.0-31tzwhjp.mjs +1 -0
  277. package/dist/chunks/effort-0.7.0-w94qsmp1.mjs +10 -0
  278. package/dist/chunks/envLessBridgeConfig-0.7.0-2vzfvw7j.mjs +1 -0
  279. package/dist/chunks/envUtils-0.7.0-wak5qkkv.mjs +1 -0
  280. package/dist/chunks/environmentSelection-0.7.0-xe6h6x4v.mjs +1 -0
  281. package/dist/chunks/environments-0.7.0-cdxqsbrp.mjs +1 -0
  282. package/dist/chunks/errors-0.7.0-hrt3tamp.mjs +1 -0
  283. package/dist/chunks/exampleCommands-0.7.0-v49vtt40.mjs +1 -0
  284. package/dist/chunks/exit-0.7.0-xpc13d1z.mjs +1 -0
  285. package/dist/chunks/explorer-0.7.0-yy3jawy1.mjs +1 -0
  286. package/dist/chunks/export-0.7.0-689scwyv.mjs +2 -0
  287. package/dist/chunks/extra-usage-0.7.0-675a7x8f.mjs +1 -0
  288. package/dist/chunks/extra-usage-noninteractive-0.7.0-2h542mq6.mjs +1 -0
  289. package/dist/chunks/fast-0.7.0-dwxy8xan.mjs +1 -0
  290. package/dist/chunks/feedback-0.7.0-kms98grz.mjs +14 -0
  291. package/dist/chunks/firstPartyEventLogger-0.7.0-5gy0hbjg.mjs +1 -0
  292. package/dist/chunks/git-0.7.0-bsn50mym.mjs +1 -0
  293. package/dist/chunks/githubModelsCredentials-0.7.0-f9n1jk8g.mjs +1 -0
  294. package/dist/chunks/goal-0.7.0-ben8pbys.mjs +4 -0
  295. package/dist/chunks/grove-0.7.0-5vca5g43.mjs +1 -0
  296. package/dist/chunks/growthbook-0.7.0-ged09pjv.mjs +1 -0
  297. package/dist/chunks/headless-0.7.0-6gxn4ya0.mjs +2 -0
  298. package/dist/chunks/heapdump-0.7.0-jbnb1enq.mjs +6 -0
  299. package/dist/chunks/help-0.7.0-s11djcbq.mjs +1 -0
  300. package/dist/chunks/hookChains-0.7.0-q104805z.mjs +3 -0
  301. package/dist/chunks/hooks-0.7.0-3tzcnyt1.mjs +1 -0
  302. package/dist/chunks/hooks-0.7.0-m0qzy27a.mjs +79 -0
  303. package/dist/chunks/ide-0.7.0-rqh7pczf.mjs +3 -0
  304. package/dist/chunks/image-processor-napi-0.7.0-t874vmrb.mjs +1 -0
  305. package/dist/chunks/inboundAttachments-0.7.0-9h4k1v8p.mjs +1 -0
  306. package/dist/chunks/index-0.7.0-0pb4fykd.mjs +1 -0
  307. package/dist/chunks/index-0.7.0-339ebzg3.mjs +1 -0
  308. package/dist/chunks/index-0.7.0-3qc9y7vs.mjs +1 -0
  309. package/dist/chunks/index-0.7.0-8xaka5b5.mjs +1 -0
  310. package/dist/chunks/index-0.7.0-aghbrz36.mjs +1 -0
  311. package/dist/chunks/index-0.7.0-asx0vcnp.mjs +1 -0
  312. package/dist/chunks/index-0.7.0-at8f760s.mjs +2 -0
  313. package/dist/chunks/index-0.7.0-aw15r8m5.mjs +1 -0
  314. package/dist/chunks/index-0.7.0-b95077ct.mjs +1 -0
  315. package/dist/chunks/index-0.7.0-etmdkstm.mjs +1 -0
  316. package/dist/chunks/index-0.7.0-fhnz63fp.mjs +1 -0
  317. package/dist/chunks/index-0.7.0-fx8935ev.mjs +5 -0
  318. package/dist/chunks/index-0.7.0-hwyk7tea.mjs +30 -0
  319. package/dist/chunks/index-0.7.0-nb6m1jch.mjs +1 -0
  320. package/dist/chunks/index-0.7.0-p4n8wp5y.mjs +9 -0
  321. package/dist/chunks/index-0.7.0-rbb0bwpy.mjs +1 -0
  322. package/dist/chunks/index-0.7.0-rq05kg71.mjs +17 -0
  323. package/dist/chunks/index-0.7.0-vk7vxjae.mjs +1 -0
  324. package/dist/chunks/index-0.7.0-wjsr1d6k.mjs +2 -0
  325. package/dist/chunks/index-0.7.0-x03pfhyx.mjs +9 -0
  326. package/dist/chunks/index-0.7.0-y22a1z29.mjs +1 -0
  327. package/dist/chunks/index-0.7.0-yx3335f1.mjs +1 -0
  328. package/dist/chunks/index-0.7.0-zsw19y1x.mjs +1 -0
  329. package/dist/chunks/init-0.7.0-f0taef1q.mjs +1 -0
  330. package/dist/chunks/initReplBridge-0.7.0-wcvxy8w8.mjs +1 -0
  331. package/dist/chunks/ink-0.7.0-xpha78d8.mjs +1 -0
  332. package/dist/chunks/insights-0.7.0-x0rwvydg.mjs +870 -0
  333. package/dist/chunks/install-0.7.0-ncp2pec7.mjs +1 -0
  334. package/dist/chunks/install-github-app-0.7.0-trt9558z.mjs +149 -0
  335. package/dist/chunks/install-slack-app-0.7.0-kjz97cdh.mjs +1 -0
  336. package/dist/chunks/instrumentation-0.7.0-bey09njh.mjs +1 -0
  337. package/dist/chunks/interactiveHelpers-0.7.0-1qs1kree.mjs +1 -0
  338. package/dist/chunks/keybindings-0.7.0-ekf19qhh.mjs +2 -0
  339. package/dist/chunks/knowledge-0.7.0-adck5x26.mjs +2 -0
  340. package/dist/chunks/latestVersionCache-0.7.0-ark5pmnp.mjs +1 -0
  341. package/dist/chunks/loadAgentsDir-0.7.0-5ae7wa3t.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.7.0-vhwhvb6f.mjs +1 -0
  343. package/dist/chunks/loadPluginHooks-0.7.0-xb4qdrg0.mjs +1 -0
  344. package/dist/chunks/log-0.7.0-6mtk9ch7.mjs +1 -0
  345. package/dist/chunks/main-0.7.0-v0y4hrdm.mjs +1 -0
  346. package/dist/chunks/managedEnv-0.7.0-n64hpsst.mjs +1 -0
  347. package/dist/chunks/mcp-0.7.0-2j3bkwz5.mjs +1 -0
  348. package/dist/chunks/mcp-0.7.0-rqwvyycg.mjs +4 -0
  349. package/dist/chunks/mcp-0.7.0-t0pqt6hy.mjs +17 -0
  350. package/dist/chunks/mcpb-0.7.0-wmg0861b.mjs +1 -0
  351. package/dist/chunks/memory-0.7.0-gfe3p8h2.mjs +3 -0
  352. package/dist/chunks/model-0.7.0-anb8mgtp.mjs +2 -0
  353. package/dist/chunks/model-0.7.0-jxz0n7g1.mjs +1 -0
  354. package/dist/chunks/node-0.7.0-4sagcnk2.mjs +12 -0
  355. package/dist/chunks/oauth-0.7.0-n3tj8amn.mjs +1 -0
  356. package/dist/chunks/openaiShim-0.7.0-9bq5572t.mjs +14 -0
  357. package/dist/chunks/output-style-0.7.0-wmxwqrx6.mjs +1 -0
  358. package/dist/chunks/package-GCDC7LJR-0.7.0-fke68t3z.mjs +1 -0
  359. package/dist/chunks/parseConnectUrl-0.7.0-p5aq0xy4.mjs +1 -0
  360. package/dist/chunks/parser-0.7.0-a4qhvrn9.mjs +1 -0
  361. package/dist/chunks/passes-0.7.0-4wxjh63r.mjs +1 -0
  362. package/dist/chunks/permissions-0.7.0-cth9pb19.mjs +3 -0
  363. package/dist/chunks/permissions-0.7.0-nxre3gew.mjs +1 -0
  364. package/dist/chunks/plan-0.7.0-0t3hxxwf.mjs +1 -0
  365. package/dist/chunks/plist-0.7.0-ptbkp7b8.mjs +1 -0
  366. package/dist/chunks/plugin-0.7.0-4zewdh7s.mjs +29 -0
  367. package/dist/chunks/pluginStartupCheck-0.7.0-3zvpdbjz.mjs +1 -0
  368. package/dist/chunks/plugins-0.7.0-dyrrfzzb.mjs +9 -0
  369. package/dist/chunks/preActionHook-0.7.0-agzbsqyv.mjs +2 -0
  370. package/dist/chunks/print-0.7.0-m81z10rw.mjs +57 -0
  371. package/dist/chunks/privacy-settings-0.7.0-qvrhcvbv.mjs +1 -0
  372. package/dist/chunks/process-0.7.0-4rnq2g80.mjs +1 -0
  373. package/dist/chunks/processBashCommand-0.7.0-htmch7xm.mjs +1 -0
  374. package/dist/chunks/processSlashCommand-0.7.0-gj7mbd0a.mjs +9 -0
  375. package/dist/chunks/prompt-0.7.0-2d4qsrq9.mjs +1 -0
  376. package/dist/chunks/prompt-0.7.0-rkefqrwh.mjs +1 -0
  377. package/dist/chunks/prompts-0.7.0-ty3k4n75.mjs +1 -0
  378. package/dist/chunks/protocolHandler-0.7.0-aqsa4ph2.mjs +13 -0
  379. package/dist/chunks/provider-0.7.0-yw5h323y.mjs +2 -0
  380. package/dist/chunks/providerProfiles-0.7.0-vdm0m870.mjs +1 -0
  381. package/dist/chunks/providerValidation-0.7.0-rtzpgzra.mjs +6 -0
  382. package/dist/chunks/rate-limit-options-0.7.0-dqtjdpft.mjs +1 -0
  383. package/dist/chunks/registerSubcommands-0.7.0-r5wmbkz9.mjs +34 -0
  384. package/dist/chunks/registry-0.7.0-jjaxz6ve.mjs +1 -0
  385. package/dist/chunks/release-notes-0.7.0-h6me5mww.mjs +5 -0
  386. package/dist/chunks/reload-plugins-0.7.0-vtr0cnwe.mjs +2 -0
  387. package/dist/chunks/remote-env-0.7.0-h013vass.mjs +1 -0
  388. package/dist/chunks/remoteBridgeCore-0.7.0-fmh34c6f.mjs +1 -0
  389. package/dist/chunks/remoteSession-0.7.0-40yqbh78.mjs +1 -0
  390. package/dist/chunks/rename-0.7.0-wqs6kjb7.mjs +1 -0
  391. package/dist/chunks/replBridgeHandle-0.7.0-d192ahyh.mjs +1 -0
  392. package/dist/chunks/replLauncher-0.7.0-gtmcyxgm.mjs +1 -0
  393. package/dist/chunks/resume-0.7.0-6cy3j2e8.mjs +2 -0
  394. package/dist/chunks/rewind-0.7.0-kepxqnvs.mjs +1 -0
  395. package/dist/chunks/rootOptions-0.7.0-00ekm71j.mjs +1 -0
  396. package/dist/chunks/sandbox-adapter-0.7.0-env8r2gg.mjs +1 -0
  397. package/dist/chunks/sandbox-toggle-0.7.0-wk296sbw.mjs +1 -0
  398. package/dist/chunks/session-0.7.0-qbmq7k37.mjs +2 -0
  399. package/dist/chunks/sessionDiscovery-0.7.0-xf03hmpk.mjs +1 -0
  400. package/dist/chunks/sessionFileAccessHooks-0.7.0-gw8qw3zp.mjs +1 -0
  401. package/dist/chunks/sessionStorage-0.7.0-vcyz3dw7.mjs +1 -0
  402. package/dist/chunks/settings-0.7.0-3k9dr8ys.mjs +1 -0
  403. package/dist/chunks/setup-0.7.0-9ync2tk7.mjs +5 -0
  404. package/dist/chunks/sinks-0.7.0-g1bwkwh0.mjs +1 -0
  405. package/dist/chunks/skills-0.7.0-hjdx42cr.mjs +1 -0
  406. package/dist/chunks/startupProfiler-0.7.0-b32wtvbf.mjs +1 -0
  407. package/dist/chunks/startupUpdateCheck-0.7.0-m55han8a.mjs +1 -0
  408. package/dist/chunks/state-0.7.0-g9nbt1zn.mjs +1 -0
  409. package/dist/chunks/stats-0.7.0-429ntw0k.mjs +6 -0
  410. package/dist/chunks/status-0.7.0-h19n5a31.mjs +1 -0
  411. package/dist/chunks/stickers-0.7.0-q34hs61c.mjs +1 -0
  412. package/dist/chunks/subprocessEnv-0.7.0-gz4xjdce.mjs +1 -0
  413. package/dist/chunks/tasks-0.7.0-e2rrgr6x.mjs +1 -0
  414. package/dist/chunks/teamHelpers-0.7.0-jss9q0ak.mjs +1 -0
  415. package/dist/chunks/teammateModeSnapshot-0.7.0-c7ekrdae.mjs +1 -0
  416. package/dist/chunks/teleport-0.7.0-n0h6pqs8.mjs +1 -0
  417. package/dist/chunks/terminalSetup-0.7.0-ycw8nd2k.mjs +1 -0
  418. package/dist/chunks/theme-0.7.0-2dzcdk7a.mjs +1 -0
  419. package/dist/chunks/thinkback-0.7.0-9xhfd6ab.mjs +1 -0
  420. package/dist/chunks/thinkback-play-0.7.0-yqj7b8tt.mjs +1 -0
  421. package/dist/chunks/toolPool-0.7.0-xes3fby4.mjs +1 -0
  422. package/dist/chunks/toolSearch-0.7.0-wkaae53k.mjs +1 -0
  423. package/dist/chunks/tools-0.7.0-7qjq03x9.mjs +1 -0
  424. package/dist/chunks/trustedDevice-0.7.0-0jcs8sag.mjs +1 -0
  425. package/dist/chunks/turndown.cjs-0.7.0-evvr9k3e.mjs +69 -0
  426. package/dist/chunks/types-0.7.0-7t30qdm7.mjs +1 -0
  427. package/dist/chunks/ultrareviewCommand-0.7.0-mt2gyqrs.mjs +4 -0
  428. package/dist/chunks/update-0.7.0-d79xsjyx.mjs +86 -0
  429. package/dist/chunks/upgrade-0.7.0-29j99fm4.mjs +1 -0
  430. package/dist/chunks/upload-0.7.0-c88xwfr6.mjs +7 -0
  431. package/dist/chunks/upstreamproxy-0.7.0-qha2t9zm.mjs +14 -0
  432. package/dist/chunks/url-handler-napi-0.7.0-d2khwe8w.mjs +1 -0
  433. package/dist/chunks/usage-0.7.0-fz211dwp.mjs +1 -0
  434. package/dist/chunks/util-0.7.0-kre9h9qa.mjs +1 -0
  435. package/dist/chunks/utils-0.7.0-vw4eq452.mjs +1 -0
  436. package/dist/chunks/vim-0.7.0-2tzpxf7d.mjs +1 -0
  437. package/dist/chunks/watcher-0.7.0-dbb0csvt.mjs +1 -0
  438. package/dist/chunks/wiki-0.7.0-etkhyz2p.mjs +132 -0
  439. package/dist/chunks/worktree-0.7.0-ntn0xdnq.mjs +1 -0
  440. package/dist/chunks/worktreeModeEnabled-0.7.0-h5ak3bk5.mjs +1 -0
  441. package/dist/chunks/wrapper-0.7.0-zvn0r75t.mjs +7 -0
  442. package/dist/claudin-vscode.vsix +0 -0
  443. package/dist/cli.mjs +2 -2
  444. package/package.json +14 -14
  445. package/dist/chunks/AgentTool-0.6.13-372t6jvm.mjs +0 -1
  446. package/dist/chunks/App-0.6.13-qvfyfba9.mjs +0 -1
  447. package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +0 -1
  448. package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +0 -1
  449. package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +0 -1
  450. package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +0 -1
  451. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +0 -1
  452. package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +0 -1
  453. package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +0 -7
  454. package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +0 -1
  455. package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +0 -6
  456. package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +0 -1
  457. package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +0 -1
  458. package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +0 -1
  459. package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +0 -1
  460. package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +0 -1
  461. package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +0 -1
  462. package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +0 -1
  463. package/dist/chunks/REPL-0.6.13-61en5qve.mjs +0 -1
  464. package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +0 -1
  465. package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +0 -1
  466. package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +0 -1
  467. package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +0 -1
  468. package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +0 -1
  469. package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +0 -9
  470. package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +0 -1
  471. package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +0 -1
  472. package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +0 -1
  473. package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +0 -1
  474. package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +0 -3
  475. package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +0 -110
  476. package/dist/chunks/api-0.6.13-1s3mg09p.mjs +0 -1
  477. package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +0 -1
  478. package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +0 -1
  479. package/dist/chunks/auth-0.6.13-586trvnj.mjs +0 -1
  480. package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +0 -1
  481. package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +0 -48
  482. package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +0 -1
  483. package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +0 -1
  484. package/dist/chunks/branch-0.6.13-nncg27cq.mjs +0 -4
  485. package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +0 -2
  486. package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +0 -1
  487. package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +0 -1
  488. package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +0 -88
  489. package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +0 -1
  490. package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +0 -1
  491. package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +0 -3
  492. package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +0 -1
  493. package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +0 -21
  494. package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +0 -4
  495. package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +0 -1
  496. package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +0 -1
  497. package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +0 -1
  498. package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +0 -1
  499. package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +0 -1
  500. package/dist/chunks/cli-0.6.13-004msxtb.mjs +0 -2
  501. package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +0 -24
  502. package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +0 -2
  503. package/dist/chunks/cli-0.6.13-0602v59h.mjs +0 -2
  504. package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +0 -2
  505. package/dist/chunks/cli-0.6.13-0k53jyws.mjs +0 -2
  506. package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +0 -2
  507. package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +0 -3
  508. package/dist/chunks/cli-0.6.13-15925v1q.mjs +0 -2
  509. package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +0 -3
  510. package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +0 -24
  511. package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +0 -18
  512. package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +0 -2
  513. package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +0 -2
  514. package/dist/chunks/cli-0.6.13-27ey3345.mjs +0 -17
  515. package/dist/chunks/cli-0.6.13-2999v1f0.mjs +0 -5
  516. package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +0 -2
  517. package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +0 -2
  518. package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +0 -5420
  519. package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +0 -2
  520. package/dist/chunks/cli-0.6.13-35rszksn.mjs +0 -2
  521. package/dist/chunks/cli-0.6.13-3812a7q8.mjs +0 -34
  522. package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +0 -3
  523. package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +0 -2
  524. package/dist/chunks/cli-0.6.13-45x35nyh.mjs +0 -2
  525. package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +0 -2
  526. package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +0 -2
  527. package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +0 -2
  528. package/dist/chunks/cli-0.6.13-56b3061c.mjs +0 -18
  529. package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +0 -42
  530. package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +0 -4
  531. package/dist/chunks/cli-0.6.13-5qvssn7h.mjs +0 -2
  532. package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +0 -2
  533. package/dist/chunks/cli-0.6.13-643zsnv9.mjs +0 -2
  534. package/dist/chunks/cli-0.6.13-667dsr1w.mjs +0 -2
  535. package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +0 -2
  536. package/dist/chunks/cli-0.6.13-79mne5jt.mjs +0 -2
  537. package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +0 -2
  538. package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +0 -2
  539. package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +0 -3
  540. package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +0 -2
  541. package/dist/chunks/cli-0.6.13-82datd4w.mjs +0 -2
  542. package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +0 -2
  543. package/dist/chunks/cli-0.6.13-881js45c.mjs +0 -2
  544. package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +0 -2
  545. package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +0 -3
  546. package/dist/chunks/cli-0.6.13-949racwr.mjs +0 -7
  547. package/dist/chunks/cli-0.6.13-94nwan0d.mjs +0 -2
  548. package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +0 -2
  549. package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +0 -2
  550. package/dist/chunks/cli-0.6.13-9wktvaax.mjs +0 -50
  551. package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +0 -58
  552. package/dist/chunks/cli-0.6.13-aekttw5a.mjs +0 -2
  553. package/dist/chunks/cli-0.6.13-ajc8203j.mjs +0 -2
  554. package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +0 -2
  555. package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +0 -2
  556. package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +0 -16
  557. package/dist/chunks/cli-0.6.13-b55baxv4.mjs +0 -2
  558. package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +0 -2
  559. package/dist/chunks/cli-0.6.13-c3452432.mjs +0 -5
  560. package/dist/chunks/cli-0.6.13-cc118njq.mjs +0 -2
  561. package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +0 -2
  562. package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +0 -2
  563. package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +0 -2
  564. package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +0 -2
  565. package/dist/chunks/cli-0.6.13-da6fhpes.mjs +0 -133
  566. package/dist/chunks/cli-0.6.13-dada1afp.mjs +0 -6
  567. package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +0 -2
  568. package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +0 -2
  569. package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +0 -2
  570. package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +0 -2
  571. package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +0 -2
  572. package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +0 -2
  573. package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +0 -2
  574. package/dist/chunks/cli-0.6.13-esv4y00y.mjs +0 -2
  575. package/dist/chunks/cli-0.6.13-etytm730.mjs +0 -2
  576. package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +0 -4
  577. package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +0 -6
  578. package/dist/chunks/cli-0.6.13-f67v536f.mjs +0 -59
  579. package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +0 -2
  580. package/dist/chunks/cli-0.6.13-fkaxh655.mjs +0 -2
  581. package/dist/chunks/cli-0.6.13-fspszw8w.mjs +0 -2
  582. package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +0 -10
  583. package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +0 -2
  584. package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +0 -2
  585. package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +0 -4
  586. package/dist/chunks/cli-0.6.13-g65dfg11.mjs +0 -6
  587. package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +0 -2
  588. package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +0 -2
  589. package/dist/chunks/cli-0.6.13-grrshx1z.mjs +0 -2
  590. package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +0 -2
  591. package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +0 -2
  592. package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +0 -2
  593. package/dist/chunks/cli-0.6.13-h5dej6se.mjs +0 -3
  594. package/dist/chunks/cli-0.6.13-hd0sd535.mjs +0 -193
  595. package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +0 -12
  596. package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +0 -3
  597. package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +0 -2
  598. package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +0 -4
  599. package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +0 -133
  600. package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +0 -2
  601. package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +0 -2
  602. package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +0 -3
  603. package/dist/chunks/cli-0.6.13-k0kyv254.mjs +0 -2
  604. package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +0 -2
  605. package/dist/chunks/cli-0.6.13-kdm4832x.mjs +0 -2
  606. package/dist/chunks/cli-0.6.13-kekrwb08.mjs +0 -45
  607. package/dist/chunks/cli-0.6.13-kmg491hy.mjs +0 -2
  608. package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +0 -12
  609. package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +0 -3
  610. package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +0 -2
  611. package/dist/chunks/cli-0.6.13-me17wefv.mjs +0 -2
  612. package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +0 -2
  613. package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +0 -39
  614. package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +0 -2
  615. package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +0 -2
  616. package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +0 -15
  617. package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +0 -4
  618. package/dist/chunks/cli-0.6.13-nqd696hv.mjs +0 -2
  619. package/dist/chunks/cli-0.6.13-nvcr131g.mjs +0 -4
  620. package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +0 -8
  621. package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +0 -2
  622. package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +0 -3
  623. package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +0 -2
  624. package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +0 -3
  625. package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +0 -2
  626. package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +0 -2
  627. package/dist/chunks/cli-0.6.13-prh9py3z.mjs +0 -2
  628. package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +0 -2
  629. package/dist/chunks/cli-0.6.13-q161snt1.mjs +0 -2
  630. package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +0 -2
  631. package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +0 -2
  632. package/dist/chunks/cli-0.6.13-q8qzja14.mjs +0 -2
  633. package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +0 -2
  634. package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +0 -4
  635. package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +0 -2
  636. package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +0 -2
  637. package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +0 -2
  638. package/dist/chunks/cli-0.6.13-qyd73z97.mjs +0 -2
  639. package/dist/chunks/cli-0.6.13-r043ksv1.mjs +0 -1
  640. package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +0 -4
  641. package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +0 -2
  642. package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +0 -2
  643. package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +0 -2
  644. package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +0 -6
  645. package/dist/chunks/cli-0.6.13-s2vxndky.mjs +0 -2
  646. package/dist/chunks/cli-0.6.13-s3r638fw.mjs +0 -2
  647. package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +0 -4
  648. package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +0 -3
  649. package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +0 -2
  650. package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +0 -15
  651. package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +0 -2
  652. package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +0 -2
  653. package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +0 -2
  654. package/dist/chunks/cli-0.6.13-tss2yk53.mjs +0 -2
  655. package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +0 -2
  656. package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +0 -2
  657. package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +0 -17
  658. package/dist/chunks/cli-0.6.13-v05nfcar.mjs +0 -2
  659. package/dist/chunks/cli-0.6.13-v160yjcc.mjs +0 -2
  660. package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +0 -2
  661. package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +0 -2
  662. package/dist/chunks/cli-0.6.13-v824ppa4.mjs +0 -3
  663. package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +0 -2
  664. package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +0 -2
  665. package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +0 -2
  666. package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +0 -2
  667. package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +0 -2
  668. package/dist/chunks/cli-0.6.13-w039mymy.mjs +0 -2
  669. package/dist/chunks/cli-0.6.13-w0qrn825.mjs +0 -2
  670. package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +0 -2
  671. package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +0 -2
  672. package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +0 -5
  673. package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +0 -20
  674. package/dist/chunks/cli-0.6.13-wtc8585b.mjs +0 -2
  675. package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +0 -2
  676. package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +0 -2
  677. package/dist/chunks/cli-0.6.13-xdedyafk.mjs +0 -12
  678. package/dist/chunks/cli-0.6.13-xf37gba3.mjs +0 -21
  679. package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +0 -2
  680. package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +0 -2
  681. package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +0 -2
  682. package/dist/chunks/cli-0.6.13-y20earfr.mjs +0 -2
  683. package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +0 -2
  684. package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +0 -28
  685. package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +0 -2
  686. package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +0 -67
  687. package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +0 -2
  688. package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +0 -2
  689. package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +0 -2
  690. package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +0 -2
  691. package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +0 -9
  692. package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +0 -25
  693. package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +0 -15
  694. package/dist/chunks/cli-0.6.13-ze0ah657.mjs +0 -4
  695. package/dist/chunks/cli-0.6.13-zktd03aq.mjs +0 -2
  696. package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +0 -2
  697. package/dist/chunks/client-0.6.13-apag8p3w.mjs +0 -1
  698. package/dist/chunks/color-0.6.13-m7e3xes9.mjs +0 -1
  699. package/dist/chunks/compact-0.6.13-064k380y.mjs +0 -3
  700. package/dist/chunks/config-0.6.13-2gskfa7r.mjs +0 -1
  701. package/dist/chunks/config-0.6.13-m7tbch3j.mjs +0 -1
  702. package/dist/chunks/constants-0.6.13-bq183whd.mjs +0 -1
  703. package/dist/chunks/context-0.6.13-4jm66js8.mjs +0 -1
  704. package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +0 -1
  705. package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +0 -1
  706. package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +0 -1
  707. package/dist/chunks/copy-0.6.13-11ksdws3.mjs +0 -9
  708. package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +0 -1
  709. package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +0 -1
  710. package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +0 -1
  711. package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +0 -1
  712. package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +0 -1367
  713. package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +0 -1
  714. package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +0 -1
  715. package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +0 -1
  716. package/dist/chunks/diff-0.6.13-3qr723e3.mjs +0 -1
  717. package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +0 -1
  718. package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +0 -1
  719. package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +0 -1
  720. package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +0 -10
  721. package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +0 -1
  722. package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +0 -1
  723. package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +0 -1
  724. package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +0 -1
  725. package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +0 -1
  726. package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +0 -1
  727. package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +0 -1
  728. package/dist/chunks/explorer-0.6.13-g670396m.mjs +0 -1
  729. package/dist/chunks/export-0.6.13-zytxcpn5.mjs +0 -2
  730. package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +0 -1
  731. package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +0 -1
  732. package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +0 -1
  733. package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +0 -14
  734. package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +0 -1
  735. package/dist/chunks/git-0.6.13-r45r70q4.mjs +0 -1
  736. package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +0 -1
  737. package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +0 -4
  738. package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +0 -1
  739. package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +0 -1
  740. package/dist/chunks/headless-0.6.13-gfageb5h.mjs +0 -2
  741. package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +0 -6
  742. package/dist/chunks/help-0.6.13-781b4zzf.mjs +0 -1
  743. package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +0 -3
  744. package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +0 -1
  745. package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +0 -79
  746. package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +0 -3
  747. package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +0 -1
  748. package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +0 -1
  749. package/dist/chunks/index-0.6.13-22g8yp33.mjs +0 -1
  750. package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +0 -1
  751. package/dist/chunks/index-0.6.13-3yrze12y.mjs +0 -2
  752. package/dist/chunks/index-0.6.13-4mx71hjt.mjs +0 -2
  753. package/dist/chunks/index-0.6.13-68g8rnf9.mjs +0 -1
  754. package/dist/chunks/index-0.6.13-6t8yz88d.mjs +0 -1
  755. package/dist/chunks/index-0.6.13-af1dgcmj.mjs +0 -1
  756. package/dist/chunks/index-0.6.13-afmvxwx2.mjs +0 -1
  757. package/dist/chunks/index-0.6.13-by0wfak3.mjs +0 -9
  758. package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +0 -1
  759. package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +0 -1
  760. package/dist/chunks/index-0.6.13-jte6phkv.mjs +0 -1
  761. package/dist/chunks/index-0.6.13-m632g3gy.mjs +0 -1
  762. package/dist/chunks/index-0.6.13-mwpm4arf.mjs +0 -5
  763. package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +0 -30
  764. package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +0 -1
  765. package/dist/chunks/index-0.6.13-ptnyngf8.mjs +0 -1
  766. package/dist/chunks/index-0.6.13-q3shbg14.mjs +0 -1
  767. package/dist/chunks/index-0.6.13-qbgadtxv.mjs +0 -1
  768. package/dist/chunks/index-0.6.13-sv4q66cp.mjs +0 -1
  769. package/dist/chunks/index-0.6.13-waxz0ekk.mjs +0 -1
  770. package/dist/chunks/index-0.6.13-why7ggz3.mjs +0 -9
  771. package/dist/chunks/index-0.6.13-y16k48ab.mjs +0 -1
  772. package/dist/chunks/init-0.6.13-4hnytb22.mjs +0 -1
  773. package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +0 -1
  774. package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +0 -1
  775. package/dist/chunks/insights-0.6.13-jydg844c.mjs +0 -870
  776. package/dist/chunks/install-0.6.13-n2sd9y79.mjs +0 -1
  777. package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +0 -149
  778. package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +0 -1
  779. package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +0 -1
  780. package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +0 -1
  781. package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +0 -2
  782. package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +0 -2
  783. package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +0 -1
  784. package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +0 -1
  786. package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +0 -1
  787. package/dist/chunks/log-0.6.13-k8w72xt1.mjs +0 -1
  788. package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +0 -1
  789. package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +0 -1
  790. package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +0 -1
  791. package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +0 -4
  792. package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +0 -17
  793. package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +0 -1
  794. package/dist/chunks/memory-0.6.13-atsckryz.mjs +0 -3
  795. package/dist/chunks/model-0.6.13-0atttv57.mjs +0 -1
  796. package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +0 -2
  797. package/dist/chunks/node-0.6.13-x2bbeer9.mjs +0 -12
  798. package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +0 -1
  799. package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +0 -14
  800. package/dist/chunks/output-style-0.6.13-m28me769.mjs +0 -1
  801. package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +0 -1
  802. package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +0 -1
  803. package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +0 -1
  804. package/dist/chunks/passes-0.6.13-q60h610m.mjs +0 -1
  805. package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +0 -3
  806. package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +0 -1
  807. package/dist/chunks/plan-0.6.13-jnph14bx.mjs +0 -1
  808. package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +0 -1
  809. package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +0 -29
  810. package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +0 -1
  811. package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +0 -9
  812. package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +0 -2
  813. package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +0 -57
  814. package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +0 -1
  815. package/dist/chunks/process-0.6.13-38dsvzca.mjs +0 -1
  816. package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +0 -1
  817. package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +0 -9
  818. package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +0 -1
  819. package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +0 -1
  820. package/dist/chunks/prompts-0.6.13-702ak30b.mjs +0 -1
  821. package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +0 -13
  822. package/dist/chunks/provider-0.6.13-2sx115qq.mjs +0 -2
  823. package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +0 -1
  824. package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +0 -6
  825. package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +0 -1
  826. package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +0 -34
  827. package/dist/chunks/registry-0.6.13-pstf339a.mjs +0 -1
  828. package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +0 -5
  829. package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +0 -2
  830. package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +0 -1
  831. package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +0 -1
  832. package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +0 -1
  833. package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +0 -1
  834. package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +0 -1
  835. package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +0 -1
  836. package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +0 -2
  837. package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +0 -1
  838. package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +0 -1
  839. package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +0 -1
  840. package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +0 -1
  841. package/dist/chunks/session-0.6.13-83jr96cj.mjs +0 -2
  842. package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +0 -1
  843. package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +0 -1
  844. package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +0 -1
  845. package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +0 -1
  846. package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +0 -5
  847. package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +0 -1
  848. package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +0 -1
  849. package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +0 -1
  850. package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +0 -1
  851. package/dist/chunks/state-0.6.13-257cjw4h.mjs +0 -1
  852. package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +0 -6
  853. package/dist/chunks/status-0.6.13-cefspgtr.mjs +0 -1
  854. package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +0 -1
  855. package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +0 -1
  856. package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +0 -1
  857. package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +0 -1
  858. package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +0 -1
  859. package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +0 -1
  860. package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +0 -1
  861. package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +0 -1
  862. package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +0 -1
  863. package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +0 -1
  864. package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +0 -1
  865. package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +0 -1
  866. package/dist/chunks/tools-0.6.13-heefxcxe.mjs +0 -1
  867. package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +0 -1
  868. package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +0 -69
  869. package/dist/chunks/types-0.6.13-26eegce9.mjs +0 -1
  870. package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +0 -4
  871. package/dist/chunks/update-0.6.13-tj94pp6r.mjs +0 -86
  872. package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +0 -1
  873. package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +0 -7
  874. package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +0 -14
  875. package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +0 -1
  876. package/dist/chunks/usage-0.6.13-whrgny68.mjs +0 -1
  877. package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +0 -1
  878. package/dist/chunks/utils-0.6.13-jybbphy0.mjs +0 -1
  879. package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +0 -1
  880. package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +0 -1
  881. package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +0 -132
  882. package/dist/chunks/worktree-0.6.13-efnvp677.mjs +0 -1
  883. package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +0 -1
  884. package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +0 -7
  885. /package/dist/chunks/{cli-0.6.13-s9yqkgwe.mjs → cli-0.7.0-59h7jbfm.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.13-e3h2z83b.mjs → cli-0.7.0-5vszg5ys.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.13-tsz6mx5f.mjs → cli-0.7.0-76wj8x34.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.13-rmzzvjt2.mjs → cli-0.7.0-brqbb2d5.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.13-p839x5sj.mjs → cli-0.7.0-jt2afswt.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.13-h2yxttam.mjs → cli-0.7.0-m9eza7ry.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.6.13-1dwgndg5.mjs → cli-0.7.0-z555y4ap.mjs} +0 -0
@@ -0,0 +1,88 @@
1
+ import{ab as yJ,bb as xz,cb as rz,db as cz,eb as iz,fb as bJ}from"./cli-0.7.0-3n9nagt9.mjs";import{hb as Tz}from"./cli-0.7.0-g5qxznar.mjs";import{pb as TJ,qb as xJ,rb as MJ,sb as wJ,tb as fJ}from"./cli-0.7.0-g46gs4dx.mjs";import{vb as kJ}from"./cli-0.7.0-ybwa4x6g.mjs";import{De as VJ,Ee as lJ}from"./cli-0.7.0-wf8v2b4s.mjs";import{Ve as EJ,Xe as oz,Ze as DK}from"./cli-0.7.0-pfcabga3.mjs";import{kf as mz,mf as LJ,qf as OJ}from"./cli-0.7.0-kpfe5dkw.mjs";import{Fl as AJ,Gl as vz,Hj as RJ,Ij as NK,JG as JJ,KG as Cz,Kl as BK,LG as KJ,MG as ZJ,OG as $J,PG as YJ,QG as XJ,RG as QJ,SG as WJ,ln as UJ,mn as CK}from"./cli-0.7.0-7g132rdj.mjs";import"./cli-0.7.0-s4at7t0q.mjs";import"./cli-0.7.0-2nytysyy.mjs";import"./cli-0.7.0-xvjaw51n.mjs";import"./cli-0.7.0-5df67dbk.mjs";import"./cli-0.7.0-mn3gdwp2.mjs";import"./cli-0.7.0-5fx679he.mjs";import"./cli-0.7.0-kp7f47zq.mjs";import"./cli-0.7.0-wb82h4c2.mjs";import"./cli-0.7.0-qeg8v19s.mjs";import{HU as DJ,NU as _K}from"./cli-0.7.0-zh93d2ez.mjs";import"./cli-0.7.0-ytqbgtvc.mjs";import{$U as az,dV as RK}from"./cli-0.7.0-a0dt04a7.mjs";import"./cli-0.7.0-cjxpqpns.mjs";import"./cli-0.7.0-q70ex7jy.mjs";import"./cli-0.7.0-p9c7eask.mjs";import"./cli-0.7.0-vp89ypch.mjs";import"./cli-0.7.0-tjpp46xm.mjs";import"./cli-0.7.0-4d58csqr.mjs";import"./cli-0.7.0-a7rry8ha.mjs";import"./cli-0.7.0-gkssrwr6.mjs";import"./cli-0.7.0-p9q4x3f1.mjs";import"./cli-0.7.0-5yvefnpr.mjs";import"./cli-0.7.0-hmjg8yfx.mjs";import"./cli-0.7.0-ftjagwyg.mjs";import{Q0 as pz,T0 as PK}from"./cli-0.7.0-f62gcsfa.mjs";import"./cli-0.7.0-vzvrhx5c.mjs";import"./cli-0.7.0-dpaewdhn.mjs";import"./cli-0.7.0-zqv149an.mjs";import"./cli-0.7.0-49k0drxj.mjs";import"./cli-0.7.0-s14kw5d6.mjs";import"./cli-0.7.0-8qwe028y.mjs";import"./cli-0.7.0-vf7bbn80.mjs";import"./cli-0.7.0-wgy69726.mjs";import"./cli-0.7.0-asw5nd1q.mjs";import"./cli-0.7.0-dxnyr5rv.mjs";import"./cli-0.7.0-zd1q68sv.mjs";import"./cli-0.7.0-1tb38zvv.mjs";import"./cli-0.7.0-kw554ntj.mjs";import{y5 as i,z5 as FK}from"./cli-0.7.0-9jzkqcfv.mjs";import"./cli-0.7.0-es6y6s82.mjs";import{$6 as pJ,_6 as G}from"./cli-0.7.0-g2ekvm09.mjs";import"./cli-0.7.0-kr6jdp53.mjs";import"./cli-0.7.0-aewz8nz4.mjs";import"./cli-0.7.0-cwxeffcg.mjs";import{$_ as CJ,B$ as fz,C$ as ez,D$ as zJ,E$ as cJ,a$ as qK,nea as yz,s8 as Wz,u8 as HK,vea as OK}from"./cli-0.7.0-h6kfhzzd.mjs";import{Aea as sz,Bea as gJ,Dea as Rz,Kea as qz,Sea as GK}from"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import{Hfa as jK,zfa as PJ}from"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import{Vga as zz,Wga as NJ,Yga as QK}from"./cli-0.7.0-0cp32djm.mjs";import{$ha as tz,Bha as qJ,Cha as uz,Gha as oJ,Yha as q}from"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import{qia as g,xia as VK}from"./cli-0.7.0-ba1xb8x3.mjs";import{Dia as _J,Lia as BJ,Nia as WK}from"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-sbwhas5a.mjs";import"./cli-0.7.0-3stm3k7p.mjs";import"./cli-0.7.0-zn444tdk.mjs";import{_pa as I}from"./cli-0.7.0-8p56ked8.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
2
+ `).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
3
+ `)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}if($.endsWith(`
4
+ `))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
5
+ `)}function Vz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of N)m(`${G.dim(Jz)}
6
+ `);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
7
+ `),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
8
+ `);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
9
+ `)}}if(_===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${G.dim(Jz)}
10
+ `)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
11
+ `);let Qz=A??U;if(Qz){m(`
12
+ `);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
13
+ `),m(`${Kz}${r}
14
+ `)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
15
+ `);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
16
+ `),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
17
+ `);J(G.dim("Environment ID: ")+`${j}
18
+ `)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
19
+ `);J(`
20
+ `),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
21
+ `)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
22
+ `)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
23
+ `)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
24
+ `)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
25
+ `)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
26
+ `)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
27
+ `)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
28
+ `);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
29
+ `)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
30
+ `),m(`${G.dim(XJ)}
31
+ `),$)m(`${G.red($)}
32
+ `)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var KK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function ZK(z,J){let K=KK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function $K(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function YK(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function XK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=rJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
33
+ `);if(N.length>=eJ)N.shift();N.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
34
+ `);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
35
+ `);let k=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
36
+ `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.lastStderr.join(`
37
+ `):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),yz(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let V=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-0.7.0-eythrhrd.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-0.7.0-49x6tn3y.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
38
+ Run 'claude remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||N)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&N)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-0.7.0-nxre3gew.mjs"),J=z.join(", "),K=await hJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
39
+ (default: same-dir)
40
+ --capacity <N> Max concurrent sessions in worktree or
41
+ same-dir mode (default: ${vJ})
42
+ --[no-]create-session-in-dir Pre-create a session in the current
43
+ directory; in worktree mode this session
44
+ stays in cwd while on-demand sessions get
45
+ isolated worktrees (default: on)
46
+ `:"",R=`
47
+ Remote Control - Connect your local environment to claude.ai/code
48
+
49
+ USAGE
50
+ claude remote-control [options]
51
+ OPTIONS
52
+ --name <name> Name for the session (shown in claude.ai/code)
53
+ --permission-mode <mode> Permission mode for spawned sessions
54
+ (${J})
55
+ --debug-file <path> Write debug logs to file
56
+ -v, --verbose Enable verbose output
57
+ -h, --help Show this help
58
+ ${Y}
59
+ DESCRIPTION
60
+ Remote Control allows you to control sessions on your local device from
61
+ claude.ai/code (https://claude.ai/code). Run this command in the
62
+ directory you want to work in, then connect from the Claude app or web.
63
+ ${K?`
64
+ Remote Control runs as a persistent server that accepts multiple concurrent
65
+ sessions in the current directory. One session is pre-created on start so
66
+ you have somewhere to type immediately. Use --spawn=worktree to isolate
67
+ each on-demand session in its own git worktree, or --spawn=session for
68
+ the classic single-session mode (exits when that session ends). Press 'w'
69
+ during runtime to toggle between same-dir and worktree.
70
+ `:""}
71
+ NOTES
72
+ - You must be logged in with a Claude account that has a subscription
73
+ - Run \`claude\` first in the directory to accept the workspace trust dialog
74
+ ${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
75
+ `:""}`;console.log(R)}var SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-0.7.0-eythrhrd.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-0.7.0-nxre3gew.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:_,checkHasTrustDialogAccepted:f}=await import("./config-0.7.0-29b2exhr.mjs");_();let{initSinks:k}=await import("./sinks-0.7.0-g1bwkwh0.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-0.7.0-g9nbt1zn.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-0.7.0-q33dw9jq.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-0.7.0-wavdtzat.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-0.7.0-29b2exhr.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
76
+ Remote Control lets you access this CLI session from the web (claude.ai/code)
77
+ or the Claude app, so you can pick up where you left off on any device.
78
+
79
+ You can disconnect remote access anytime by running /remote-control again.
80
+ `);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),Vz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-0.7.0-bsn50mym.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-0.7.0-3tzcnyt1.mjs"),Qz=Oz()||Nz(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
81
+ Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
82
+
83
+ Spawn mode for this project:
84
+ `+` [1] same-dir — sessions share the current directory (default)
85
+ `+` [2] worktree — each session gets an isolated git worktree
86
+
87
+ `+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
88
+ `);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("tengu_bridge_spawn_mode_chosen",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-0.7.0-49x6tn3y.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-0.7.0-q33dw9jq.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("tengu_bridge_registration_failed",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("tengu_bridge_started",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-0.7.0-8kzz057x.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("tengu_bridge_spawn_mode_toggled",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-0.7.0-eythrhrd.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-0.7.0-49x6tn3y.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-0.7.0-g9nbt1zn.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-0.7.0-29b2exhr.mjs");R();let{initSinks:U}=await import("./sinks-0.7.0-g1bwkwh0.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-0.7.0-wavdtzat.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-0.7.0-bsn50mym.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-0.7.0-3tzcnyt1.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await N(),_=await M(),f=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-0.7.0-eythrhrd.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
@@ -0,0 +1 @@
1
+ import{Ifa as A,Jfa as k,Tfa as G,Ufa as N,Xfa as M,_fa as Y,aga as O,bga as S,cga as _}from"./cli-0.7.0-5ktz31fq.mjs";import{$ha as R,Bha as K,Cha as W,Gha as j,Yha as C}from"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import{sia as y,xia as c}from"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-8p56ked8.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
@@ -0,0 +1 @@
1
+ import{Bh as a,Ch as bJ}from"./cli-0.7.0-ybdk9aq6.mjs";import{Dh as x,Eh as AJ}from"./cli-0.7.0-v92q5ffm.mjs";import{$G as vJ,Ay as HJ,BD as kJ,BS as s,CS as t,DP as o,DS as DJ,RP as hJ,Vy as u,Xy as WJ,_G as $,pO as r,tn as m,un as UJ,vD as l,yO as TJ,zy as i}from"./cli-0.7.0-7g132rdj.mjs";import"./cli-0.7.0-s4at7t0q.mjs";import"./cli-0.7.0-2nytysyy.mjs";import"./cli-0.7.0-xvjaw51n.mjs";import"./cli-0.7.0-5df67dbk.mjs";import"./cli-0.7.0-mn3gdwp2.mjs";import"./cli-0.7.0-5fx679he.mjs";import"./cli-0.7.0-kp7f47zq.mjs";import"./cli-0.7.0-wb82h4c2.mjs";import"./cli-0.7.0-qeg8v19s.mjs";import"./cli-0.7.0-zh93d2ez.mjs";import"./cli-0.7.0-ytqbgtvc.mjs";import"./cli-0.7.0-a0dt04a7.mjs";import"./cli-0.7.0-cjxpqpns.mjs";import"./cli-0.7.0-q70ex7jy.mjs";import"./cli-0.7.0-p9c7eask.mjs";import"./cli-0.7.0-vp89ypch.mjs";import"./cli-0.7.0-tjpp46xm.mjs";import"./cli-0.7.0-4d58csqr.mjs";import{BW as g,CW as QJ,YW as c,_W as IJ}from"./cli-0.7.0-a7rry8ha.mjs";import"./cli-0.7.0-gkssrwr6.mjs";import{DZ as j,FZ as KJ,RX as GJ,RZ as NJ,kZ as k,mZ as v}from"./cli-0.7.0-p9q4x3f1.mjs";import"./cli-0.7.0-5yvefnpr.mjs";import"./cli-0.7.0-hmjg8yfx.mjs";import"./cli-0.7.0-ftjagwyg.mjs";import"./cli-0.7.0-f62gcsfa.mjs";import"./cli-0.7.0-vzvrhx5c.mjs";import"./cli-0.7.0-dpaewdhn.mjs";import"./cli-0.7.0-zqv149an.mjs";import"./cli-0.7.0-49k0drxj.mjs";import"./cli-0.7.0-s14kw5d6.mjs";import"./cli-0.7.0-8qwe028y.mjs";import"./cli-0.7.0-vf7bbn80.mjs";import{X1 as F,Y1 as W,Z1 as d}from"./cli-0.7.0-wgy69726.mjs";import{_1 as zJ}from"./cli-0.7.0-asw5nd1q.mjs";import"./cli-0.7.0-dxnyr5rv.mjs";import"./cli-0.7.0-zd1q68sv.mjs";import"./cli-0.7.0-1tb38zvv.mjs";import"./cli-0.7.0-kw554ntj.mjs";import"./cli-0.7.0-9jzkqcfv.mjs";import"./cli-0.7.0-es6y6s82.mjs";import"./cli-0.7.0-g2ekvm09.mjs";import"./cli-0.7.0-kr6jdp53.mjs";import"./cli-0.7.0-aewz8nz4.mjs";import"./cli-0.7.0-cwxeffcg.mjs";import{E$ as ZJ,Rca as FJ,l$ as p,m$ as C,tca as S}from"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import{qia as f,xia as YJ}from"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-sbwhas5a.mjs";import"./cli-0.7.0-3stm3k7p.mjs";import"./cli-0.7.0-zn444tdk.mjs";import{Vpa as R,Zpa as XJ}from"./cli-0.7.0-8p56ked8.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -0,0 +1,3 @@
1
+ import{PV as p,QV as f,RV as a,SV as S}from"./cli-0.7.0-p9c7eask.mjs";import{Rca as C,tca as d}from"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import{Iga as m,Jga as y,Kga as b}from"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import{Zpa as g}from"./cli-0.7.0-8p56ked8.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 @@
1
+ import"./cli-0.7.0-8p56ked8.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
@@ -0,0 +1,21 @@
1
+ import{c1 as h,g1 as zz}from"./cli-0.7.0-vzvrhx5c.mjs";import"./cli-0.7.0-kw554ntj.mjs";import{X4 as e,y4 as m}from"./cli-0.7.0-9jzkqcfv.mjs";import"./cli-0.7.0-es6y6s82.mjs";import"./cli-0.7.0-g2ekvm09.mjs";import"./cli-0.7.0-kr6jdp53.mjs";import"./cli-0.7.0-aewz8nz4.mjs";import{Qda as y,Xda as s,_da as v,bea as r}from"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import{$ha as o,Yha as k}from"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import{ooa as a,rka as b}from"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-sbwhas5a.mjs";import"./cli-0.7.0-3stm3k7p.mjs";import"./cli-0.7.0-zn444tdk.mjs";import{Zpa as n}from"./cli-0.7.0-8p56ked8.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
2
+
3
+ `)){let w=B.split(`
4
+ `).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
5
+ `));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
6
+ `);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
7
+ `)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
8
+ `)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
9
+ For GitHub Copilot: run /provider and choose GitHub Copilot.
10
+ For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w,prompt_cache_retention:"24h"}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
11
+ `);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
12
+ ${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
13
+ ${z.error.slice(0,300)}
14
+
15
+ Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
16
+ ${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
17
+ Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
18
+ `));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
19
+ `)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
20
+
21
+ `)});Qz();export{jz as call};
@@ -0,0 +1,4 @@
1
+ import{k1 as L,l1 as P,m1 as $,q1 as Q,r1 as U,s1 as V,t1 as j}from"./cli-0.7.0-dpaewdhn.mjs";import{Zpa as Z}from"./cli-0.7.0-8p56ked8.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{Hh as a,Ih as b}from"./cli-0.7.0-48ycf0c3.mjs";import"./cli-0.7.0-yw6r7fw4.mjs";import"./cli-0.7.0-jmsrj8j2.mjs";import"./cli-0.7.0-7g132rdj.mjs";import"./cli-0.7.0-s4at7t0q.mjs";import"./cli-0.7.0-2nytysyy.mjs";import"./cli-0.7.0-xvjaw51n.mjs";import"./cli-0.7.0-5df67dbk.mjs";import"./cli-0.7.0-mn3gdwp2.mjs";import"./cli-0.7.0-5fx679he.mjs";import"./cli-0.7.0-kp7f47zq.mjs";import"./cli-0.7.0-wb82h4c2.mjs";import"./cli-0.7.0-qeg8v19s.mjs";import"./cli-0.7.0-zh93d2ez.mjs";import"./cli-0.7.0-ytqbgtvc.mjs";import"./cli-0.7.0-a0dt04a7.mjs";import"./cli-0.7.0-cjxpqpns.mjs";import"./cli-0.7.0-q70ex7jy.mjs";import"./cli-0.7.0-p9c7eask.mjs";import"./cli-0.7.0-vp89ypch.mjs";import"./cli-0.7.0-tjpp46xm.mjs";import"./cli-0.7.0-4d58csqr.mjs";import"./cli-0.7.0-a7rry8ha.mjs";import"./cli-0.7.0-gkssrwr6.mjs";import"./cli-0.7.0-p9q4x3f1.mjs";import"./cli-0.7.0-5yvefnpr.mjs";import"./cli-0.7.0-hmjg8yfx.mjs";import"./cli-0.7.0-ftjagwyg.mjs";import"./cli-0.7.0-f62gcsfa.mjs";import"./cli-0.7.0-vzvrhx5c.mjs";import"./cli-0.7.0-dpaewdhn.mjs";import"./cli-0.7.0-zqv149an.mjs";import"./cli-0.7.0-49k0drxj.mjs";import"./cli-0.7.0-s14kw5d6.mjs";import"./cli-0.7.0-8qwe028y.mjs";import"./cli-0.7.0-vf7bbn80.mjs";import"./cli-0.7.0-wgy69726.mjs";import"./cli-0.7.0-asw5nd1q.mjs";import"./cli-0.7.0-dxnyr5rv.mjs";import"./cli-0.7.0-zd1q68sv.mjs";import"./cli-0.7.0-1tb38zvv.mjs";import"./cli-0.7.0-kw554ntj.mjs";import"./cli-0.7.0-9jzkqcfv.mjs";import"./cli-0.7.0-es6y6s82.mjs";import"./cli-0.7.0-g2ekvm09.mjs";import"./cli-0.7.0-kr6jdp53.mjs";import"./cli-0.7.0-aewz8nz4.mjs";import"./cli-0.7.0-cwxeffcg.mjs";import"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-sbwhas5a.mjs";import"./cli-0.7.0-3stm3k7p.mjs";import"./cli-0.7.0-zn444tdk.mjs";import"./cli-0.7.0-8p56ked8.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1 @@
1
+ import{E_ as k,J_ as N,X$ as x,_$ as A,nea as X,v9 as V,vea as H,w9 as W,x9 as J}from"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import{ria as b,xia as y}from"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-8p56ked8.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -0,0 +1 @@
1
+ import{fS as a,gS as b,hS as c,iS as d,jS as e,kS as f,lS as g,mS as h,nS as i,oS as j,pS as k,qS as l,rS as m,sS as n,tS as o,uS as p,vS as q,wS as r,xS as s,yS as t}from"./cli-0.7.0-7g132rdj.mjs";import"./cli-0.7.0-s4at7t0q.mjs";import"./cli-0.7.0-2nytysyy.mjs";import"./cli-0.7.0-xvjaw51n.mjs";import"./cli-0.7.0-5df67dbk.mjs";import"./cli-0.7.0-mn3gdwp2.mjs";import"./cli-0.7.0-5fx679he.mjs";import"./cli-0.7.0-kp7f47zq.mjs";import"./cli-0.7.0-wb82h4c2.mjs";import"./cli-0.7.0-qeg8v19s.mjs";import"./cli-0.7.0-zh93d2ez.mjs";import"./cli-0.7.0-ytqbgtvc.mjs";import"./cli-0.7.0-a0dt04a7.mjs";import"./cli-0.7.0-cjxpqpns.mjs";import"./cli-0.7.0-q70ex7jy.mjs";import"./cli-0.7.0-p9c7eask.mjs";import"./cli-0.7.0-vp89ypch.mjs";import"./cli-0.7.0-tjpp46xm.mjs";import"./cli-0.7.0-4d58csqr.mjs";import"./cli-0.7.0-a7rry8ha.mjs";import"./cli-0.7.0-gkssrwr6.mjs";import"./cli-0.7.0-p9q4x3f1.mjs";import"./cli-0.7.0-5yvefnpr.mjs";import"./cli-0.7.0-hmjg8yfx.mjs";import"./cli-0.7.0-ftjagwyg.mjs";import"./cli-0.7.0-f62gcsfa.mjs";import"./cli-0.7.0-vzvrhx5c.mjs";import"./cli-0.7.0-dpaewdhn.mjs";import"./cli-0.7.0-zqv149an.mjs";import"./cli-0.7.0-49k0drxj.mjs";import"./cli-0.7.0-s14kw5d6.mjs";import"./cli-0.7.0-8qwe028y.mjs";import"./cli-0.7.0-vf7bbn80.mjs";import"./cli-0.7.0-wgy69726.mjs";import"./cli-0.7.0-asw5nd1q.mjs";import"./cli-0.7.0-dxnyr5rv.mjs";import"./cli-0.7.0-zd1q68sv.mjs";import"./cli-0.7.0-1tb38zvv.mjs";import"./cli-0.7.0-kw554ntj.mjs";import"./cli-0.7.0-9jzkqcfv.mjs";import"./cli-0.7.0-es6y6s82.mjs";import"./cli-0.7.0-g2ekvm09.mjs";import"./cli-0.7.0-kr6jdp53.mjs";import"./cli-0.7.0-aewz8nz4.mjs";import"./cli-0.7.0-cwxeffcg.mjs";import"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-sbwhas5a.mjs";import"./cli-0.7.0-3stm3k7p.mjs";import"./cli-0.7.0-zn444tdk.mjs";import"./cli-0.7.0-8p56ked8.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
@@ -0,0 +1 @@
1
+ import{Fh as a,Gh as l}from"./cli-0.7.0-ycew6bek.mjs";import"./cli-0.7.0-48ycf0c3.mjs";import"./cli-0.7.0-9p8vefz6.mjs";import"./cli-0.7.0-yw6r7fw4.mjs";import"./cli-0.7.0-jmsrj8j2.mjs";import"./cli-0.7.0-7g132rdj.mjs";import"./cli-0.7.0-s4at7t0q.mjs";import"./cli-0.7.0-2nytysyy.mjs";import"./cli-0.7.0-xvjaw51n.mjs";import"./cli-0.7.0-5df67dbk.mjs";import"./cli-0.7.0-mn3gdwp2.mjs";import"./cli-0.7.0-5fx679he.mjs";import"./cli-0.7.0-kp7f47zq.mjs";import"./cli-0.7.0-wb82h4c2.mjs";import"./cli-0.7.0-qeg8v19s.mjs";import"./cli-0.7.0-zh93d2ez.mjs";import"./cli-0.7.0-ytqbgtvc.mjs";import"./cli-0.7.0-a0dt04a7.mjs";import"./cli-0.7.0-cjxpqpns.mjs";import"./cli-0.7.0-q70ex7jy.mjs";import"./cli-0.7.0-p9c7eask.mjs";import"./cli-0.7.0-vp89ypch.mjs";import"./cli-0.7.0-tjpp46xm.mjs";import"./cli-0.7.0-4d58csqr.mjs";import"./cli-0.7.0-a7rry8ha.mjs";import"./cli-0.7.0-gkssrwr6.mjs";import"./cli-0.7.0-p9q4x3f1.mjs";import"./cli-0.7.0-5yvefnpr.mjs";import"./cli-0.7.0-hmjg8yfx.mjs";import"./cli-0.7.0-ftjagwyg.mjs";import"./cli-0.7.0-f62gcsfa.mjs";import"./cli-0.7.0-vzvrhx5c.mjs";import"./cli-0.7.0-dpaewdhn.mjs";import"./cli-0.7.0-zqv149an.mjs";import"./cli-0.7.0-49k0drxj.mjs";import"./cli-0.7.0-s14kw5d6.mjs";import"./cli-0.7.0-8qwe028y.mjs";import"./cli-0.7.0-vf7bbn80.mjs";import"./cli-0.7.0-wgy69726.mjs";import"./cli-0.7.0-asw5nd1q.mjs";import"./cli-0.7.0-dxnyr5rv.mjs";import"./cli-0.7.0-zd1q68sv.mjs";import"./cli-0.7.0-1tb38zvv.mjs";import"./cli-0.7.0-kw554ntj.mjs";import"./cli-0.7.0-9jzkqcfv.mjs";import"./cli-0.7.0-es6y6s82.mjs";import"./cli-0.7.0-g2ekvm09.mjs";import"./cli-0.7.0-kr6jdp53.mjs";import"./cli-0.7.0-aewz8nz4.mjs";import"./cli-0.7.0-cwxeffcg.mjs";import"./cli-0.7.0-h6kfhzzd.mjs";import"./cli-0.7.0-twxrndmz.mjs";import"./cli-0.7.0-avw5kb07.mjs";import"./cli-0.7.0-tcxmyk2w.mjs";import"./cli-0.7.0-m07xma4d.mjs";import"./cli-0.7.0-5ktz31fq.mjs";import"./cli-0.7.0-v6ceqq5f.mjs";import"./cli-0.7.0-y003ay15.mjs";import"./cli-0.7.0-0cp32djm.mjs";import"./cli-0.7.0-hrtdae85.mjs";import"./cli-0.7.0-z7sydqy8.mjs";import"./cli-0.7.0-ba1xb8x3.mjs";import"./cli-0.7.0-na9s209m.mjs";import"./cli-0.7.0-x2vc8nds.mjs";import"./cli-0.7.0-wspeyepj.mjs";import"./cli-0.7.0-e1esnrzt.mjs";import"./cli-0.7.0-sbwhas5a.mjs";import"./cli-0.7.0-3stm3k7p.mjs";import"./cli-0.7.0-zn444tdk.mjs";import{Zpa as t}from"./cli-0.7.0-8p56ked8.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
@@ -0,0 +1 @@
1
+ import{G0 as a,H0 as b,I0 as c}from"./cli-0.7.0-hmjg8yfx.mjs";import"./cli-0.7.0-8p56ked8.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,2 @@
1
+ import{wh as v,xh as i}from"./cli-0.7.0-e6mves6r.mjs";import{yh as E,zh as t}from"./cli-0.7.0-n0s94kev.mjs";import{BW as b,CW as s}from"./cli-0.7.0-a7rry8ha.mjs";import{RZ as m,kZ as L,mZ as X}from"./cli-0.7.0-p9q4x3f1.mjs";import{X1 as $,Z1 as F}from"./cli-0.7.0-wgy69726.mjs";import{_1 as d}from"./cli-0.7.0-asw5nd1q.mjs";import{f8 as C,g8 as n}from"./cli-0.7.0-h6kfhzzd.mjs";import{Aea as O,Bea as l,Cea as P,Dea as k,Sea as o}from"./cli-0.7.0-twxrndmz.mjs";import{Vpa as g,Zpa as a}from"./cli-0.7.0-8p56ked8.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
2
+ export{Zq as rh,Mq as sh,$q as th};
@@ -0,0 +1,2 @@
1
+ import{Ypa as n,Zpa as o}from"./cli-0.7.0-8p56ked8.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
2
+ export{i as Vga,c as Wga,p as Xga,u as Yga};
@@ -0,0 +1,8 @@
1
+ import{Ra as b}from"./cli-0.7.0-5vszg5ys.mjs";import{$e as zK,ef as dK}from"./cli-0.7.0-2cdwx892.mjs";import{AK as pK,Am as rz,BS as j,Cm as bK,DS as uK,Do as M,Eo as vK,Ew as xK,Go as iz,Ko as SK,PK as ez,RK as cK,_N as Ez,gJ as wz,hO as FK,mA as oz,oA as sz,oJ as MK,pA as fK,qI as hK,rI as mK,xw as Cz,zK as tz}from"./cli-0.7.0-7g132rdj.mjs";import{EX as AK,FX as Qz,GX as GK,zX as Kz}from"./cli-0.7.0-p9q4x3f1.mjs";import{E4 as Uz,E6 as xz,F4 as lz,L4 as Dz,P2 as U,Q4 as I,S4 as _z,U2 as O,X4 as k,g5 as nz,k5 as jK,q6 as Tz,s6 as Mz,u6 as R}from"./cli-0.7.0-9jzkqcfv.mjs";import{$6 as _K,_6 as G}from"./cli-0.7.0-g2ekvm09.mjs";import{Aba as Jz,Cca as Wz,Dca as Bz,E_ as t,Eca as az,Gba as _,J_ as LK,P_ as e,Q8 as $z,Rca as L,S8 as TK,T_ as UK,Z8 as cz,__ as zz,a$ as DK,k8 as Zz,l8 as RK,n9 as dz,nca as gz,nea as V,rba as q,s8 as T,tba as H,tca as $,u8 as CK,u9 as EK,vba as uz,vea as A,wba as S,wca as W,xba as kz}from"./cli-0.7.0-h6kfhzzd.mjs";import{Xea as E,afa as kK}from"./cli-0.7.0-twxrndmz.mjs";import{fga as pz,gga as PK}from"./cli-0.7.0-v6ceqq5f.mjs";import{Vga as Z,Yga as N}from"./cli-0.7.0-0cp32djm.mjs";import{Eha as r,Gha as WK,Hha as i,Kha as o,Oha as BK}from"./cli-0.7.0-hrtdae85.mjs";import{eia as s,fia as NK}from"./cli-0.7.0-z7sydqy8.mjs";import{qia as y,sia as n,xia as VK}from"./cli-0.7.0-ba1xb8x3.mjs";import{Cia as C,Dia as v,Fia as hz,Lia as mz,Nia as yK}from"./cli-0.7.0-na9s209m.mjs";import{Cla as Iz,Dla as bz,Ela as Oz,Gla as vz,Qma as l,ema as Sz,ika as F,mka as JK,ooa as w,qma as fz,xma as a}from"./cli-0.7.0-x2vc8nds.mjs";import{Wpa as wK}from"./cli-0.7.0-8p56ked8.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
+ `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
+ `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
+ `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
+ `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
+ `);return[K,Q].filter(Boolean).join(`
7
+ `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
+ export{ZQ as x,$Q as y,qQ as z,HQ as A,nX as B,rX as C,iX as D,oX as E,sX as F,tX as G,eX as H,zY as I,KY as J,QY as K};
@@ -0,0 +1,3 @@
1
+ import{t as G0}from"./cli-0.7.0-jvkyhn8x.mjs";import{M as p0}from"./cli-0.7.0-j4jzhywr.mjs";import{Jb as E0}from"./cli-0.7.0-d56bajvn.mjs";import{Ob as k0}from"./cli-0.7.0-vfzbn5qv.mjs";import{vc as P0,xc as Fc}from"./cli-0.7.0-k3qqc7gx.mjs";import{Ac as N,Bc as uc}from"./cli-0.7.0-rmprwgax.mjs";import{Dc as Q0,Ec as hc}from"./cli-0.7.0-pbs0cx53.mjs";import{Zc as n0,_c as x0}from"./cli-0.7.0-e1mycvjk.mjs";import{$K as _0,BS as D0,Bn as p,Cn as K0,DS as Tc,Dn as f0,EF as Y,En as N0,FF as M0,Fn as i0,GF as Z0,Gn as d0,HF as Mc,Jn as W,Kn as j,jL as j0,jS as O0,nG as y0,oG as _c,sE as Y0,tS as b0,uQ as d,uv as X,vF as m0,vS as B0,wE as lc,wF as g0,wQ as W0,xF as r,xL as u0,yQ as Ic,yS as ac,yv as l0,zF as A0,zL as r0}from"./cli-0.7.0-7g132rdj.mjs";import{RX as G,RZ as x,gY as X0,kY as oc,kZ as c0,mZ as y,qZ as g}from"./cli-0.7.0-p9q4x3f1.mjs";import{W1 as e,X1 as m,Y1 as U,Z1 as C}from"./cli-0.7.0-wgy69726.mjs";import{Q2 as H0,U2 as mc,w3 as J0,x3 as nc}from"./cli-0.7.0-9jzkqcfv.mjs";import{Aba as w0,Cba as U0,Gba as k,Rca as I0,_da as z0,bea as ic,nca as V0,tba as V,tca as s,wca as t,xba as J,yca as q0}from"./cli-0.7.0-h6kfhzzd.mjs";import{Xea as R,afa as cc}from"./cli-0.7.0-twxrndmz.mjs";import{Bfa as L0,Hfa as fc,tfa as C0}from"./cli-0.7.0-m07xma4d.mjs";import{Vga as q,Yga as E}from"./cli-0.7.0-0cp32djm.mjs";import{$ha as $0}from"./cli-0.7.0-hrtdae85.mjs";import{Dia as K,Kia as R0,Nia as e0}from"./cli-0.7.0-na9s209m.mjs";import{_ka as a0,ena as T0,ooa as v0}from"./cli-0.7.0-x2vc8nds.mjs";import{Vpa as D,_pa as L}from"./cli-0.7.0-8p56ked8.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-0.7.0-xpha78d8.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-0.7.0-wqtqgs70.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-0.7.0-xe2s643k.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-0.7.0-gfmvgcwc.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-0.7.0-vf636a5p.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-0.7.0-3knq53k5.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-0.7.0-pdj2vakp.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-0.7.0-4n7jcjsf.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-0.7.0-khhh5rz9.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
2
+ `;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
3
+ export{Cc as l,Lc as m,Gf as n,wc as o,z as p,Ef as q,kf as r,pf as s};
@@ -0,0 +1,2 @@
1
+ import{Zpa as C}from"./cli-0.7.0-8p56ked8.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
2
+ export{L as hi,M as ii,N as ji,H as ki};
@@ -0,0 +1,2 @@
1
+ import{Lpa as p,Mpa as a}from"./cli-0.7.0-1evcxwvq.mjs";import{Xpa as i}from"./cli-0.7.0-8p56ked8.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
+ export{u as n7};
@@ -0,0 +1,2 @@
1
+ import{E8 as X,I8 as k,_8 as Y,u9 as x}from"./cli-0.7.0-h6kfhzzd.mjs";import{Sea as $}from"./cli-0.7.0-twxrndmz.mjs";import{Zpa as Z}from"./cli-0.7.0-8p56ked8.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(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 I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
+ export{H as Hb,M as Ib};
@@ -0,0 +1,2 @@
1
+ import{BE as L,CE as h,nG as z,oG as M,ov as J,pv as Z}from"./cli-0.7.0-7g132rdj.mjs";import{RX as X}from"./cli-0.7.0-p9q4x3f1.mjs";import{_1 as W}from"./cli-0.7.0-asw5nd1q.mjs";import{Lna as H,ooa as V}from"./cli-0.7.0-x2vc8nds.mjs";import{Vpa as D,Zpa as U}from"./cli-0.7.0-8p56ked8.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
2
+ export{v as gg,A as hg};
@@ -0,0 +1,3 @@
1
+ import{hV as W,mV as p}from"./cli-0.7.0-cjxpqpns.mjs";import{M0 as H,O0 as P}from"./cli-0.7.0-ftjagwyg.mjs";import{Hfa as Z,ufa as M}from"./cli-0.7.0-m07xma4d.mjs";import{_fa as q,aga as $,bga as Q,cga as k}from"./cli-0.7.0-5ktz31fq.mjs";import{Zpa as Y}from"./cli-0.7.0-8p56ked8.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
+ Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
3
+ export{K as Zb,X as _b,V as $b,b as ac,O as bc};
@@ -0,0 +1,9 @@
1
+ import{Qpa as V_,Rpa as su,Tpa as K_,Upa as f_}from"./cli-0.7.0-w0nw2kkk.mjs";import{Xpa as H,_pa as $_}from"./cli-0.7.0-8p56ked8.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
+ versions published after the first week of January 2027
3
+ will require node >=${E}. You are running node ${_}.
4
+
5
+ To continue receiving updates to AWS services, bug fixes,
6
+ and security updates please upgrade to node >=${E}.
7
+
8
+ More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
9
+ export{W_ as Jpa,D_ as Kpa,yu as Lpa,ou as Mpa};
@@ -0,0 +1,2 @@
1
+ import{E6 as d,e6 as f,o3 as j,r3 as I,y5 as b,z5 as c}from"./cli-0.7.0-9jzkqcfv.mjs";import{X7 as F,Y7 as D}from"./cli-0.7.0-cwxeffcg.mjs";import{nea as y,vea as T}from"./cli-0.7.0-h6kfhzzd.mjs";import{$fa as $,aga as R,bga as _,cga as E}from"./cli-0.7.0-5ktz31fq.mjs";import{Tga as q,Uga as m}from"./cli-0.7.0-y003ay15.mjs";import{$ha as z,Bha as M,Gha as U,Yha as W}from"./cli-0.7.0-hrtdae85.mjs";import{pia as k,qia as Y,xia as O}from"./cli-0.7.0-ba1xb8x3.mjs";import{Apa as h,ipa as X}from"./cli-0.7.0-sbwhas5a.mjs";import{Zpa as A}from"./cli-0.7.0-8p56ked8.mjs";import{randomUUID as l}from"crypto";function p(J){if(!X.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function u(J,B){let N;for(let K=0;K<=x;K++)try{return await X.get(J,B)}catch(Q){if(N=Q,!p(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${Y(Q)}`),Q;let V=S[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${Y(Q)}`),await b(V)}throw N}async function C(){let J=f()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function NJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${q().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await u(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let v=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(v?.url){let G=F(v.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:v.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function WJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${q().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await X.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let v=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(v||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function GJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function vJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${q().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??l(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await X.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${Y(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${q().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await X.patch(Q,{title:B},{headers:V,validateStatus:(v)=>v<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${Y(N)}`),!1}}var S,x,$J="ccr-byoc-2025-07-29",BJ;var g=A(()=>{h();m();I();R();d();z();D();O();E();T();c();U();S=[2000,4000,8000,16000],x=S.length;BJ=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
2
+ export{$J as i2,p as j2,u as k2,BJ as l2,C as m2,NJ as n2,L as o2,WJ as p2,GJ as q2,vJ as r2,XJ as s2,g as t2};
@@ -0,0 +1,4 @@
1
+ import{Upa as Z}from"./cli-0.7.0-w0nw2kkk.mjs";import{Xpa as Y,_pa as O}from"./cli-0.7.0-8p56ked8.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
+ export{ye as Npa};
@@ -0,0 +1,4 @@
1
+ import{pT as W,qT as P}from"./cli-0.7.0-5df67dbk.mjs";import{Cca as B,Dca as G,Rca as S,Y8 as M,Z8 as R,f$ as A,h$ as y,nea as O,u9 as _,vea as F,x8 as K,y8 as I}from"./cli-0.7.0-h6kfhzzd.mjs";import{fga as D,gga as x}from"./cli-0.7.0-v6ceqq5f.mjs";import{Noa as $,Ooa as z}from"./cli-0.7.0-wspeyepj.mjs";z();x();S();y();I();_();F();P();var T=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function k(L){return!T.some((U)=>U.test(L))}function d(L,U=20){let H=new Map;for(let V of L)H.set(V,(H.get(V)||0)+1);return Array.from(H.entries()).sort((V,Q)=>Q[1]-V[1]).slice(0,U).map(([V,Q])=>`${Q.toString().padStart(6)} ${V}`).join(`
2
+ `)}function E(L,U){let H=[],V=new Set,Q=new Map;for(let J=1;H.length<U&&J<=U;J++)for(let X of L){if(H.length>=U)break;if(!k(X))continue;let Y=Math.max(X.lastIndexOf("/"),X.lastIndexOf("\\")),Z=Y>=0?X.slice(Y+1):X;if(!Z||V.has(Z))continue;let q=Y>=0?X.slice(0,Y):".";if((Q.get(q)??0)>=J)continue;H.push(Z),V.add(Z),Q.set(q,(Q.get(q)??0)+1)}return H.length>=U?H:[]}async function N(){if(A.platform==="win32")return[];if(!await R())return[];try{let L=await W(),U=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],H=new Map,V=(J)=>{for(let X of J.split(`
3
+ `)){let Y=X.trim();if(Y)H.set(Y,(H.get(Y)??0)+1)}};if(L){let{stdout:J}=await K("git",[...U,`--author=${L}`],{cwd:D()});V(J)}if(H.size<10){let{stdout:J}=await K(M(),U,{cwd:D()});V(J)}let Q=Array.from(H.entries()).sort((J,X)=>X[1]-J[1]).map(([J])=>J);return E(Q,5)}catch(L){return O(L),[]}}var b=604800000;function v(L){let U=B(),H=U.exampleFiles?.length?U.exampleFiles:["<filepath>"],Q=[...["fix lint errors","fix typecheck errors",`how does ${H[0]} work?`,`refactor ${H[Math.floor(H.length/2)]}`,"how do I log an error?",`edit ${H[H.length-1]} to...`,`write a test for ${H[0]}`,"create a util logging.py that..."]];for(let J=Q.length-1;J>0;J--){let X=Math.floor(Math.random()*(J+1));[Q[J],Q[X]]=[Q[X],Q[J]]}return Q.slice(0,L).map((J)=>`Try "${J}"`)}var p=$(()=>{return v(1)[0]??'Try "fix lint errors"'}),c=$((L)=>{return v(L)}),r=$(async()=>{let L=B(),U=Date.now(),H=L.exampleFilesGeneratedAt??0;if(U-H>b)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((V)=>{if(V.length)G((Q)=>({...Q,exampleFiles:V,exampleFilesGeneratedAt:Date.now()}))})});
4
+ export{d as Aa,E as Ba,p as Ca,c as Da,r as Ea};