@claudiolabs/claudin 1.1.32 → 1.1.34

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 (836) hide show
  1. package/dist/chunks/App-1.1.34-5bkzspjw.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +1 -0
  27. package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +3 -0
  28. package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +110 -0
  29. package/dist/chunks/api-1.1.34-99hm00p0.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +1 -0
  31. package/dist/chunks/auth-1.1.34-32n80bwr.mjs +1 -0
  32. package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +1 -0
  37. package/dist/chunks/branch-1.1.34-949t9ara.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +88 -0
  42. package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +1 -0
  43. package/dist/chunks/btw-1.1.34-4246e84n.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +4 -0
  47. package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +1 -0
  48. package/dist/chunks/cd-1.1.34-6458ex95.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +1 -0
  50. package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +1 -0
  51. package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +1 -0
  52. package/dist/chunks/cli-1.1.34-00hxx56p.mjs +2 -0
  53. package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +9 -0
  54. package/dist/chunks/cli-1.1.34-0f5qa0q0.mjs +2 -0
  55. package/dist/chunks/cli-1.1.34-0h4whfas.mjs +6 -0
  56. package/dist/chunks/cli-1.1.34-0kkae10p.mjs +2 -0
  57. package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +2 -0
  58. package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +2 -0
  59. package/dist/chunks/cli-1.1.34-0zqthr52.mjs +2 -0
  60. package/dist/chunks/cli-1.1.34-1229x70a.mjs +2 -0
  61. package/dist/chunks/cli-1.1.34-1426jsf4.mjs +3 -0
  62. package/dist/chunks/cli-1.1.34-166q8s04.mjs +24 -0
  63. package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +3 -0
  64. package/dist/chunks/cli-1.1.34-1ategs07.mjs +2 -0
  65. package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +2 -0
  66. package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +3 -0
  67. package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +12 -0
  68. package/dist/chunks/cli-1.1.34-20femz8z.mjs +2 -0
  69. package/dist/chunks/cli-1.1.34-20p72tmb.mjs +20 -0
  70. package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +5 -0
  71. package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +2 -0
  72. package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +2 -0
  73. package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +2 -0
  74. package/dist/chunks/cli-1.1.34-372a0qyj.mjs +2 -0
  75. package/dist/chunks/cli-1.1.34-37g65vk7.mjs +2 -0
  76. package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +2 -0
  77. package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +2 -0
  78. package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +2 -0
  79. package/dist/chunks/cli-1.1.34-3rcacat5.mjs +3 -0
  80. package/dist/chunks/cli-1.1.34-4v8eanby.mjs +2 -0
  81. package/dist/chunks/cli-1.1.34-4x915j9t.mjs +2 -0
  82. package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +2 -0
  83. package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +2 -0
  84. package/dist/chunks/cli-1.1.34-58ergrxf.mjs +7 -0
  85. package/dist/chunks/cli-1.1.34-59csbz1a.mjs +60 -0
  86. package/dist/chunks/cli-1.1.34-5ec767fj.mjs +2 -0
  87. package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +3 -0
  88. package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +2 -0
  89. package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +2 -0
  90. package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +2 -0
  91. package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +2 -0
  92. package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +2 -0
  93. package/dist/chunks/cli-1.1.34-5vktvncs.mjs +2 -0
  94. package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +4 -0
  95. package/dist/chunks/cli-1.1.34-643n510j.mjs +2 -0
  96. package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +2 -0
  97. package/dist/chunks/cli-1.1.34-6ndxsqp1.mjs +2 -0
  98. package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +133 -0
  99. package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +2 -0
  100. package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +2 -0
  101. package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +2 -0
  102. package/dist/chunks/cli-1.1.34-7bxexffs.mjs +6 -0
  103. package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +2 -0
  104. package/dist/chunks/cli-1.1.34-7npd3as5.mjs +18 -0
  105. package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +3 -0
  106. package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +2 -0
  107. package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +2 -0
  108. package/dist/chunks/cli-1.1.34-84707tma.mjs +5491 -0
  109. package/dist/chunks/cli-1.1.34-859ap6f7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +2 -0
  111. package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +39 -0
  112. package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +2 -0
  113. package/dist/chunks/cli-1.1.34-92kps6jn.mjs +63 -0
  114. package/dist/chunks/cli-1.1.34-9jn997h8.mjs +2 -0
  115. package/dist/chunks/cli-1.1.34-9tctqya9.mjs +6 -0
  116. package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +2 -0
  117. package/dist/chunks/cli-1.1.34-9z887t80.mjs +2 -0
  118. package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +2 -0
  119. package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +2 -0
  120. package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +2 -0
  121. package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +2 -0
  122. package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +2 -0
  123. package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +2 -0
  124. package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +2 -0
  125. package/dist/chunks/cli-1.1.34-c3w48hst.mjs +2 -0
  126. package/dist/chunks/cli-1.1.34-cp457g25.mjs +11 -0
  127. package/dist/chunks/cli-1.1.34-cptp243m.mjs +2 -0
  128. package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +2 -0
  129. package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +2 -0
  130. package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +2 -0
  131. package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +4 -0
  132. package/dist/chunks/cli-1.1.34-d5enzbca.mjs +2 -0
  133. package/dist/chunks/cli-1.1.34-d8bccy48.mjs +7 -0
  134. package/dist/chunks/cli-1.1.34-dceap5rk.mjs +4 -0
  135. package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +3 -0
  136. package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +2 -0
  137. package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +2 -0
  139. package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +2 -0
  140. package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +2 -0
  142. package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +2 -0
  143. package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +2 -0
  144. package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +2 -0
  145. package/dist/chunks/cli-1.1.34-f806gv2e.mjs +7 -0
  146. package/dist/chunks/cli-1.1.34-faavcjnj.mjs +2 -0
  147. package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +2 -0
  148. package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +2 -0
  149. package/dist/chunks/cli-1.1.34-ffs3510y.mjs +2 -0
  150. package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +17 -0
  151. package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +34 -0
  152. package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +2 -0
  153. package/dist/chunks/cli-1.1.34-fnds3msv.mjs +6 -0
  154. package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +2 -0
  155. package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +2 -0
  156. package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +2 -0
  157. package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +2 -0
  158. package/dist/chunks/cli-1.1.34-g888fgsj.mjs +4 -0
  159. package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +2 -0
  160. package/dist/chunks/cli-1.1.34-gmaedxb1.mjs +26 -0
  161. package/dist/chunks/cli-1.1.34-gsrndv90.mjs +2 -0
  162. package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +4 -0
  163. package/dist/chunks/cli-1.1.34-h7927ctg.mjs +2 -0
  164. package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +2 -0
  165. package/dist/chunks/cli-1.1.34-h9h6119y.mjs +2 -0
  166. package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +10 -0
  167. package/dist/chunks/cli-1.1.34-he92bjvt.mjs +2 -0
  168. package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +2 -0
  169. package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.34-hrw37per.mjs +8 -0
  171. package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +24 -0
  172. package/dist/chunks/cli-1.1.34-hyya784q.mjs +2 -0
  173. package/dist/chunks/cli-1.1.34-j8ab267c.mjs +2 -0
  174. package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +2 -0
  175. package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +4 -0
  176. package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +2 -0
  177. package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +15 -0
  178. package/dist/chunks/cli-1.1.34-k761g5m2.mjs +2 -0
  179. package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +2 -0
  180. package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +6 -0
  181. package/dist/chunks/cli-1.1.34-mhjjf878.mjs +5 -0
  182. package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +2 -0
  183. package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +42 -0
  184. package/dist/chunks/cli-1.1.34-ncz9dava.mjs +2 -0
  185. package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +25 -0
  186. package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +2 -0
  187. package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +4 -0
  188. package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +2 -0
  189. package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +2 -0
  190. package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +2 -0
  191. package/dist/chunks/cli-1.1.34-q83yydqv.mjs +133 -0
  192. package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +2 -0
  193. package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +10 -0
  194. package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +2 -0
  195. package/dist/chunks/cli-1.1.34-qs805z7n.mjs +9 -0
  196. package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +2 -0
  197. package/dist/chunks/cli-1.1.34-r222exkd.mjs +2 -0
  198. package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +2 -0
  199. package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +2 -0
  200. package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +45 -0
  201. package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +4 -0
  202. package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +2 -0
  203. package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +2 -0
  204. package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +21 -0
  205. package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +3 -0
  206. package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +3 -0
  208. package/dist/chunks/cli-1.1.34-shm51n5s.mjs +2 -0
  209. package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.34-sq51za8b.mjs +2 -0
  211. package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +2 -0
  212. package/dist/chunks/cli-1.1.34-syx85e6f.mjs +15 -0
  213. package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +2 -0
  214. package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +2 -0
  215. package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +2 -0
  216. package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +3 -0
  217. package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +50 -0
  218. package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +15 -0
  219. package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +2 -0
  220. package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +2 -0
  221. package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +2 -0
  222. package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +2 -0
  223. package/dist/chunks/cli-1.1.34-vz14r55x.mjs +3 -0
  224. package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +2 -0
  226. package/dist/chunks/cli-1.1.34-webjc1s3.mjs +2 -0
  227. package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +2 -0
  228. package/dist/chunks/cli-1.1.34-wh74w227.mjs +2 -0
  229. package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +24 -0
  230. package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +2 -0
  231. package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +203 -0
  232. package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +2 -0
  233. package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +2 -0
  234. package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +5 -0
  235. package/dist/chunks/cli-1.1.34-xx555z7d.mjs +25 -0
  236. package/dist/chunks/cli-1.1.34-yfasvar9.mjs +2 -0
  237. package/dist/chunks/cli-1.1.34-yk56k2na.mjs +2 -0
  238. package/dist/chunks/cli-1.1.34-yqryw36t.mjs +2 -0
  239. package/dist/chunks/cli-1.1.34-yqyrt954.mjs +2 -0
  240. package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +16 -0
  241. package/dist/chunks/cli-1.1.34-z14xw89f.mjs +2 -0
  242. package/dist/chunks/cli-1.1.34-z1htezxg.mjs +2 -0
  243. package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +2 -0
  244. package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +2 -0
  245. package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +17 -0
  246. package/dist/chunks/client-1.1.34-4exntck8.mjs +1 -0
  247. package/dist/chunks/color-1.1.34-d4199wch.mjs +1 -0
  248. package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +2 -0
  249. package/dist/chunks/config-1.1.34-acewhfv4.mjs +1 -0
  250. package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +1 -0
  251. package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +1 -0
  252. package/dist/chunks/context-1.1.34-wc822wp5.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +1 -0
  254. package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +1 -0
  255. package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +1 -0
  256. package/dist/chunks/copy-1.1.34-efb24nm3.mjs +9 -0
  257. package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +1 -0
  258. package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +1 -0
  259. package/dist/chunks/debug-1.1.34-k568mcye.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +1480 -0
  261. package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +2 -0
  262. package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +1 -0
  263. package/dist/chunks/detection-1.1.34-5xfznq79.mjs +1 -0
  264. package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +1 -0
  265. package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +1 -0
  267. package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +1 -0
  268. package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +13 -0
  269. package/dist/chunks/engine-1.1.34-y28mg4na.mjs +1 -0
  270. package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +1 -0
  271. package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +1 -0
  272. package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +1 -0
  273. package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +1 -0
  274. package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +1 -0
  275. package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +1 -0
  276. package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +1 -0
  277. package/dist/chunks/export-1.1.34-1hyv5efm.mjs +2 -0
  278. package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +1 -0
  279. package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +16 -0
  280. package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +1 -0
  281. package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +1 -0
  282. package/dist/chunks/goal-1.1.34-m6dge19b.mjs +4 -0
  283. package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +2 -0
  284. package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +6 -0
  285. package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +1 -0
  286. package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +1 -0
  287. package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +79 -0
  288. package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +3 -0
  289. package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +1 -0
  290. package/dist/chunks/import-1.1.34-4j35p307.mjs +261 -0
  291. package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +1 -0
  292. package/dist/chunks/index-1.1.34-086aty1n.mjs +1 -0
  293. package/dist/chunks/index-1.1.34-0q46c1bj.mjs +1 -0
  294. package/dist/chunks/index-1.1.34-2j48ar1m.mjs +1 -0
  295. package/dist/chunks/index-1.1.34-427npr7a.mjs +1 -0
  296. package/dist/chunks/index-1.1.34-50d0rg8h.mjs +5 -0
  297. package/dist/chunks/index-1.1.34-50j6q6gr.mjs +1 -0
  298. package/dist/chunks/index-1.1.34-ehvgt047.mjs +1 -0
  299. package/dist/chunks/index-1.1.34-faq1af2v.mjs +1 -0
  300. package/dist/chunks/index-1.1.34-fvrswew9.mjs +2 -0
  301. package/dist/chunks/index-1.1.34-mx39dxjj.mjs +30 -0
  302. package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +9 -0
  303. package/dist/chunks/index-1.1.34-nye63dch.mjs +1 -0
  304. package/dist/chunks/index-1.1.34-qmmg0npy.mjs +2 -0
  305. package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +1 -0
  306. package/dist/chunks/index-1.1.34-snehdv50.mjs +1 -0
  307. package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +1 -0
  308. package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +1 -0
  309. package/dist/chunks/index-1.1.34-wz64a3d4.mjs +9 -0
  310. package/dist/chunks/index-1.1.34-x83gwj6g.mjs +23 -0
  311. package/dist/chunks/index-1.1.34-xa114b8t.mjs +1 -0
  312. package/dist/chunks/index-1.1.34-y10pcdv1.mjs +1 -0
  313. package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +1 -0
  314. package/dist/chunks/index-1.1.34-yxzywg42.mjs +1 -0
  315. package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +2 -0
  316. package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +1 -0
  317. package/dist/chunks/ink-1.1.34-yb3z87en.mjs +1 -0
  318. package/dist/chunks/insights-1.1.34-a321wxgf.mjs +870 -0
  319. package/dist/chunks/install-1.1.34-064wyxwb.mjs +1 -0
  320. package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +149 -0
  321. package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +1 -0
  322. package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +1 -0
  323. package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +2 -0
  324. package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +1 -0
  325. package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +1 -0
  326. package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +1 -0
  327. package/dist/chunks/log-1.1.34-n41t6etn.mjs +1 -0
  328. package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +1 -0
  329. package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +1 -0
  330. package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +17 -0
  331. package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +4 -0
  332. package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +1 -0
  333. package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +1 -0
  334. package/dist/chunks/memory-1.1.34-sys90hns.mjs +128 -0
  335. package/dist/chunks/model-1.1.34-v1r14fy7.mjs +1 -0
  336. package/dist/chunks/model-1.1.34-vks7w05g.mjs +2 -0
  337. package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +1 -0
  338. package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +15 -0
  339. package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +1 -0
  340. package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +14 -0
  341. package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +1 -0
  342. package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +1 -0
  343. package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +1 -0
  344. package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +3 -0
  345. package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +1 -0
  346. package/dist/chunks/plist-1.1.34-ykta36sg.mjs +1 -0
  347. package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +1 -0
  349. package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +9 -0
  350. package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +2 -0
  351. package/dist/chunks/print-1.1.34-2gdkw86g.mjs +57 -0
  352. package/dist/chunks/process-1.1.34-fms89mxv.mjs +1 -0
  353. package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +9 -0
  355. package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +1 -0
  356. package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +1 -0
  357. package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +1 -0
  358. package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +2 -0
  359. package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +1 -0
  360. package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +6 -0
  361. package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +26 -0
  362. package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +1 -0
  363. package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +5 -0
  364. package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +2 -0
  365. package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +1 -0
  366. package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +1 -0
  367. package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +1 -0
  368. package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +1 -0
  369. package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +2 -0
  370. package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +1 -0
  371. package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +1 -0
  372. package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +10 -0
  373. package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +1 -0
  374. package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +1 -0
  375. package/dist/chunks/session-1.1.34-h46ywygv.mjs +2 -0
  376. package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +1 -0
  377. package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +1 -0
  378. package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +12 -0
  379. package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +1 -0
  380. package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +1 -0
  381. package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +1 -0
  382. package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +1 -0
  383. package/dist/chunks/state-1.1.34-pymefs1m.mjs +1 -0
  384. package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +1 -0
  385. package/dist/chunks/status-1.1.34-r120pa8k.mjs +1 -0
  386. package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +1 -0
  387. package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +1 -0
  388. package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +1 -0
  389. package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +1 -0
  390. package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +1 -0
  391. package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +1 -0
  392. package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +1 -0
  393. package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +1 -0
  394. package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +1 -0
  395. package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +1 -0
  396. package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +1 -0
  397. package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +1 -0
  398. package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +1 -0
  399. package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +1 -0
  400. package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +69 -0
  401. package/dist/chunks/types-1.1.34-0as4p0wf.mjs +1 -0
  402. package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +4 -0
  403. package/dist/chunks/update-1.1.34-wnetpcv6.mjs +72 -0
  404. package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +7 -0
  405. package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +14 -0
  406. package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +1 -0
  407. package/dist/chunks/util-1.1.34-7ctz504f.mjs +1 -0
  408. package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +1 -0
  409. package/dist/chunks/vim-1.1.34-4y4504z8.mjs +1 -0
  410. package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +13 -0
  411. package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +132 -0
  412. package/dist/chunks/workflows-1.1.34-zefy425g.mjs +1 -0
  413. package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +1 -0
  414. package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +1 -0
  415. package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +7 -0
  416. package/dist/cli.mjs +2 -2
  417. package/package.json +9 -9
  418. package/dist/chunks/App-1.1.32-x0g3m6v6.mjs +0 -1
  419. package/dist/chunks/ApproveApiKey-1.1.32-8x1yxm2f.mjs +0 -1
  420. package/dist/chunks/AutoModeOptInDialog-1.1.32-scm9btv0.mjs +0 -1
  421. package/dist/chunks/BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs +0 -1
  422. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs +0 -1
  423. package/dist/chunks/ConsoleOAuthFlow-1.1.32-kzv0tbna.mjs +0 -1
  424. package/dist/chunks/DiffDialog-1.1.32-4cm0cwer.mjs +0 -6
  425. package/dist/chunks/Doctor-1.1.32-289yb4jj.mjs +0 -1
  426. package/dist/chunks/ExplorerDialog-1.1.32-5gjqvpvs.mjs +0 -6
  427. package/dist/chunks/ITermBackend-1.1.32-a8pwddd1.mjs +0 -1
  428. package/dist/chunks/InvalidConfigDialog-1.1.32-6qdrtdpr.mjs +0 -1
  429. package/dist/chunks/InvalidSettingsDialog-1.1.32-hwzxtdsd.mjs +0 -1
  430. package/dist/chunks/MigrationDialog-1.1.32-yytrpays.mjs +0 -1
  431. package/dist/chunks/Onboarding-1.1.32-c5yyxz32.mjs +0 -1
  432. package/dist/chunks/ProviderManager-1.1.32-7q71086g.mjs +0 -1
  433. package/dist/chunks/REPL-1.1.32-yzppvfrk.mjs +0 -1
  434. package/dist/chunks/ResumeConversation-1.1.32-rv15raev.mjs +0 -1
  435. package/dist/chunks/TeleportProgress-1.1.32-n3bsegx5.mjs +0 -1
  436. package/dist/chunks/TeleportRepoMismatchDialog-1.1.32-68xgndte.mjs +0 -1
  437. package/dist/chunks/TeleportResumeWrapper-1.1.32-zb4vkx03.mjs +0 -1
  438. package/dist/chunks/TmuxBackend-1.1.32-q3c5nqks.mjs +0 -9
  439. package/dist/chunks/ToolSearchTool-1.1.32-3whrqawk.mjs +0 -1
  440. package/dist/chunks/TrustDialog-1.1.32-33mkg42t.mjs +0 -1
  441. package/dist/chunks/activeProvider-1.1.32-9brew90d.mjs +0 -1
  442. package/dist/chunks/add-dir-1.1.32-8hkh1hcx.mjs +0 -1
  443. package/dist/chunks/agentTypes-1.1.32-ph49ernt.mjs +0 -1
  444. package/dist/chunks/agents-1.1.32-6ajrxrdr.mjs +0 -110
  445. package/dist/chunks/agents-1.1.32-6gc09pk2.mjs +0 -3
  446. package/dist/chunks/api-1.1.32-8qx9q5eh.mjs +0 -1
  447. package/dist/chunks/asciicast-1.1.32-4knajfec.mjs +0 -1
  448. package/dist/chunks/auth-1.1.32-9xrd6x89.mjs +0 -1
  449. package/dist/chunks/auth-1.1.32-s83fshpf.mjs +0 -1
  450. package/dist/chunks/autoMode-1.1.32-e680w683.mjs +0 -52
  451. package/dist/chunks/autoModeSetup-1.1.32-7m1d4dy7.mjs +0 -44
  452. package/dist/chunks/autoUpdater-1.1.32-hhg3dezv.mjs +0 -1
  453. package/dist/chunks/backgroundHousekeeping-1.1.32-8ddhae4q.mjs +0 -1
  454. package/dist/chunks/branch-1.1.32-xaq3pb3p.mjs +0 -4
  455. package/dist/chunks/bridge-1.1.32-ec6fc8kh.mjs +0 -2
  456. package/dist/chunks/bridgeConfig-1.1.32-bse7ynz2.mjs +0 -1
  457. package/dist/chunks/bridgeEnabled-1.1.32-84ntyqxd.mjs +0 -1
  458. package/dist/chunks/bridgeMain-1.1.32-d20ebbde.mjs +0 -88
  459. package/dist/chunks/bridgePointer-1.1.32-40jwkts4.mjs +0 -1
  460. package/dist/chunks/btw-1.1.32-kg0w3tw2.mjs +0 -1
  461. package/dist/chunks/buddy-1.1.32-c53wp8x4.mjs +0 -3
  462. package/dist/chunks/cache-probe-1.1.32-a9jc0rn9.mjs +0 -21
  463. package/dist/chunks/cacheStats-1.1.32-bh9jpngp.mjs +0 -4
  464. package/dist/chunks/caches-1.1.32-va3h1efn.mjs +0 -1
  465. package/dist/chunks/cd-1.1.32-yar6t6sg.mjs +0 -3
  466. package/dist/chunks/claudeDesktop-1.1.32-xjcschxc.mjs +0 -1
  467. package/dist/chunks/claudemd-1.1.32-kb9tec8y.mjs +0 -1
  468. package/dist/chunks/clear-1.1.32-ywfd1kha.mjs +0 -1
  469. package/dist/chunks/clearTerminal-1.1.32-x7tbxm3w.mjs +0 -1
  470. package/dist/chunks/cli-1.1.32-06xv4rmw.mjs +0 -2
  471. package/dist/chunks/cli-1.1.32-0pmhmsew.mjs +0 -42
  472. package/dist/chunks/cli-1.1.32-1913x5jp.mjs +0 -15
  473. package/dist/chunks/cli-1.1.32-1c9z2mtv.mjs +0 -2
  474. package/dist/chunks/cli-1.1.32-1cp8vbtp.mjs +0 -9
  475. package/dist/chunks/cli-1.1.32-1rackf2c.mjs +0 -4
  476. package/dist/chunks/cli-1.1.32-1rprka6j.mjs +0 -2
  477. package/dist/chunks/cli-1.1.32-1t75hwdn.mjs +0 -2
  478. package/dist/chunks/cli-1.1.32-1yrmnphh.mjs +0 -2
  479. package/dist/chunks/cli-1.1.32-260jjrwt.mjs +0 -6
  480. package/dist/chunks/cli-1.1.32-26474ywa.mjs +0 -2
  481. package/dist/chunks/cli-1.1.32-28vx0a5m.mjs +0 -2
  482. package/dist/chunks/cli-1.1.32-28x0bz68.mjs +0 -2
  483. package/dist/chunks/cli-1.1.32-2k074m5f.mjs +0 -2
  484. package/dist/chunks/cli-1.1.32-2kd689v0.mjs +0 -2
  485. package/dist/chunks/cli-1.1.32-2m68a9w2.mjs +0 -2
  486. package/dist/chunks/cli-1.1.32-2tyhwqjh.mjs +0 -10
  487. package/dist/chunks/cli-1.1.32-2wcdy0zp.mjs +0 -17
  488. package/dist/chunks/cli-1.1.32-2x7x44mg.mjs +0 -2
  489. package/dist/chunks/cli-1.1.32-336t9pmv.mjs +0 -2
  490. package/dist/chunks/cli-1.1.32-33jnyekk.mjs +0 -2
  491. package/dist/chunks/cli-1.1.32-36t0985q.mjs +0 -21
  492. package/dist/chunks/cli-1.1.32-3gbh5q5w.mjs +0 -2
  493. package/dist/chunks/cli-1.1.32-3z4a0eqz.mjs +0 -3
  494. package/dist/chunks/cli-1.1.32-41xx49ta.mjs +0 -2
  495. package/dist/chunks/cli-1.1.32-46wadmxk.mjs +0 -2
  496. package/dist/chunks/cli-1.1.32-49sdmvtj.mjs +0 -25
  497. package/dist/chunks/cli-1.1.32-4ekmdczr.mjs +0 -25
  498. package/dist/chunks/cli-1.1.32-4ft4m446.mjs +0 -2
  499. package/dist/chunks/cli-1.1.32-4rsr6phf.mjs +0 -2
  500. package/dist/chunks/cli-1.1.32-4vdyqkkd.mjs +0 -2
  501. package/dist/chunks/cli-1.1.32-4yat84kg.mjs +0 -2
  502. package/dist/chunks/cli-1.1.32-5a158c45.mjs +0 -2
  503. package/dist/chunks/cli-1.1.32-5c5dcwk6.mjs +0 -2
  504. package/dist/chunks/cli-1.1.32-5cngr1kn.mjs +0 -2
  505. package/dist/chunks/cli-1.1.32-5dq711bj.mjs +0 -2
  506. package/dist/chunks/cli-1.1.32-5j5n166h.mjs +0 -2
  507. package/dist/chunks/cli-1.1.32-5qjjtpkh.mjs +0 -133
  508. package/dist/chunks/cli-1.1.32-5qwps3ts.mjs +0 -2
  509. package/dist/chunks/cli-1.1.32-5v0afeqw.mjs +0 -2
  510. package/dist/chunks/cli-1.1.32-5xmh2b7j.mjs +0 -2
  511. package/dist/chunks/cli-1.1.32-60pc6r2s.mjs +0 -2
  512. package/dist/chunks/cli-1.1.32-6317frxz.mjs +0 -2
  513. package/dist/chunks/cli-1.1.32-65c5zdmx.mjs +0 -2
  514. package/dist/chunks/cli-1.1.32-6f9r9qcb.mjs +0 -2
  515. package/dist/chunks/cli-1.1.32-6jbgafh2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.32-6jhkp60n.mjs +0 -2
  517. package/dist/chunks/cli-1.1.32-6jxftegx.mjs +0 -6
  518. package/dist/chunks/cli-1.1.32-7566j53x.mjs +0 -2
  519. package/dist/chunks/cli-1.1.32-76wfpwbd.mjs +0 -2
  520. package/dist/chunks/cli-1.1.32-7zp3b6gq.mjs +0 -2
  521. package/dist/chunks/cli-1.1.32-8b5ej63w.mjs +0 -2
  522. package/dist/chunks/cli-1.1.32-8hsb6vgz.mjs +0 -2
  523. package/dist/chunks/cli-1.1.32-8jkgzjh4.mjs +0 -5
  524. package/dist/chunks/cli-1.1.32-8t8t42xx.mjs +0 -2
  525. package/dist/chunks/cli-1.1.32-8yc37yqa.mjs +0 -34
  526. package/dist/chunks/cli-1.1.32-97e0qadj.mjs +0 -2
  527. package/dist/chunks/cli-1.1.32-9c0an85r.mjs +0 -2
  528. package/dist/chunks/cli-1.1.32-9fe7efg9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.32-9jxkev29.mjs +0 -2
  530. package/dist/chunks/cli-1.1.32-9wsnkggz.mjs +0 -11
  531. package/dist/chunks/cli-1.1.32-9yka8m9x.mjs +0 -5490
  532. package/dist/chunks/cli-1.1.32-a3dfp7ps.mjs +0 -12
  533. package/dist/chunks/cli-1.1.32-acgh1gj8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.32-ajhvj43e.mjs +0 -2
  535. package/dist/chunks/cli-1.1.32-aqfcrtfz.mjs +0 -5
  536. package/dist/chunks/cli-1.1.32-aysp26sz.mjs +0 -45
  537. package/dist/chunks/cli-1.1.32-b1bbb8eb.mjs +0 -7
  538. package/dist/chunks/cli-1.1.32-b3hsysf6.mjs +0 -2
  539. package/dist/chunks/cli-1.1.32-b4dgaz0a.mjs +0 -2
  540. package/dist/chunks/cli-1.1.32-bce46tmm.mjs +0 -2
  541. package/dist/chunks/cli-1.1.32-bnam9df8.mjs +0 -2
  542. package/dist/chunks/cli-1.1.32-bt4yfsm7.mjs +0 -2
  543. package/dist/chunks/cli-1.1.32-c4v8081j.mjs +0 -2
  544. package/dist/chunks/cli-1.1.32-c6n1kre3.mjs +0 -2
  545. package/dist/chunks/cli-1.1.32-c7ypbb63.mjs +0 -2
  546. package/dist/chunks/cli-1.1.32-cpzgn83z.mjs +0 -2
  547. package/dist/chunks/cli-1.1.32-cx7ygksc.mjs +0 -2
  548. package/dist/chunks/cli-1.1.32-czrfbd3q.mjs +0 -2
  549. package/dist/chunks/cli-1.1.32-d47cvy98.mjs +0 -2
  550. package/dist/chunks/cli-1.1.32-dkyyv5mx.mjs +0 -2
  551. package/dist/chunks/cli-1.1.32-dp2kpscr.mjs +0 -2
  552. package/dist/chunks/cli-1.1.32-dtd3vpkv.mjs +0 -2
  553. package/dist/chunks/cli-1.1.32-e1btgk5y.mjs +0 -4
  554. package/dist/chunks/cli-1.1.32-e96q5k17.mjs +0 -2
  555. package/dist/chunks/cli-1.1.32-ebg7m8yz.mjs +0 -2
  556. package/dist/chunks/cli-1.1.32-ehg64cg0.mjs +0 -2
  557. package/dist/chunks/cli-1.1.32-erw03mnm.mjs +0 -2
  558. package/dist/chunks/cli-1.1.32-f3895pf8.mjs +0 -2
  559. package/dist/chunks/cli-1.1.32-fhzs65yw.mjs +0 -2
  560. package/dist/chunks/cli-1.1.32-fjz81t0j.mjs +0 -2
  561. package/dist/chunks/cli-1.1.32-fr30sgy9.mjs +0 -2
  562. package/dist/chunks/cli-1.1.32-fzepmkcj.mjs +0 -2
  563. package/dist/chunks/cli-1.1.32-g5dzf2w1.mjs +0 -24
  564. package/dist/chunks/cli-1.1.32-gg7yn5bt.mjs +0 -8
  565. package/dist/chunks/cli-1.1.32-gpq33yz0.mjs +0 -2
  566. package/dist/chunks/cli-1.1.32-gqbeasga.mjs +0 -2
  567. package/dist/chunks/cli-1.1.32-gvv8h6dg.mjs +0 -18
  568. package/dist/chunks/cli-1.1.32-gwf0a8ej.mjs +0 -2
  569. package/dist/chunks/cli-1.1.32-h23ch6fy.mjs +0 -2
  570. package/dist/chunks/cli-1.1.32-h4tpddgz.mjs +0 -4
  571. package/dist/chunks/cli-1.1.32-h7cb9f8y.mjs +0 -2
  572. package/dist/chunks/cli-1.1.32-hbwke9cs.mjs +0 -2
  573. package/dist/chunks/cli-1.1.32-hgjgfp8p.mjs +0 -60
  574. package/dist/chunks/cli-1.1.32-hhd65der.mjs +0 -2
  575. package/dist/chunks/cli-1.1.32-hzn2mba8.mjs +0 -3
  576. package/dist/chunks/cli-1.1.32-j31v1t7y.mjs +0 -15
  577. package/dist/chunks/cli-1.1.32-jatnsd1n.mjs +0 -2
  578. package/dist/chunks/cli-1.1.32-jjanec91.mjs +0 -2
  579. package/dist/chunks/cli-1.1.32-jnrsn4v0.mjs +0 -2
  580. package/dist/chunks/cli-1.1.32-jqhfcb0t.mjs +0 -2
  581. package/dist/chunks/cli-1.1.32-jt6w5mqv.mjs +0 -2
  582. package/dist/chunks/cli-1.1.32-k5d30qej.mjs +0 -3
  583. package/dist/chunks/cli-1.1.32-k9zkw4st.mjs +0 -2
  584. package/dist/chunks/cli-1.1.32-kn0zs89y.mjs +0 -63
  585. package/dist/chunks/cli-1.1.32-kqkbjp3x.mjs +0 -4
  586. package/dist/chunks/cli-1.1.32-m7dxkbpn.mjs +0 -2
  587. package/dist/chunks/cli-1.1.32-m9c0pceb.mjs +0 -3
  588. package/dist/chunks/cli-1.1.32-m9p4pd60.mjs +0 -2
  589. package/dist/chunks/cli-1.1.32-merqy9t2.mjs +0 -2
  590. package/dist/chunks/cli-1.1.32-mrftpsrs.mjs +0 -15
  591. package/dist/chunks/cli-1.1.32-n3smn7a4.mjs +0 -2
  592. package/dist/chunks/cli-1.1.32-n6rpvpf2.mjs +0 -2
  593. package/dist/chunks/cli-1.1.32-n7cyeje8.mjs +0 -2
  594. package/dist/chunks/cli-1.1.32-n9vdkdfk.mjs +0 -2
  595. package/dist/chunks/cli-1.1.32-nmcy47z7.mjs +0 -4
  596. package/dist/chunks/cli-1.1.32-nt9eqa35.mjs +0 -2
  597. package/dist/chunks/cli-1.1.32-p70gsyp3.mjs +0 -2
  598. package/dist/chunks/cli-1.1.32-pe6kmf9g.mjs +0 -3
  599. package/dist/chunks/cli-1.1.32-pfhbrjhs.mjs +0 -20
  600. package/dist/chunks/cli-1.1.32-pfwbgg79.mjs +0 -2
  601. package/dist/chunks/cli-1.1.32-pm7ctgdf.mjs +0 -7
  602. package/dist/chunks/cli-1.1.32-pve0ffcp.mjs +0 -203
  603. package/dist/chunks/cli-1.1.32-pwvfjtva.mjs +0 -2
  604. package/dist/chunks/cli-1.1.32-px6268dx.mjs +0 -2
  605. package/dist/chunks/cli-1.1.32-px93hhj4.mjs +0 -3
  606. package/dist/chunks/cli-1.1.32-qmgvm9rq.mjs +0 -2
  607. package/dist/chunks/cli-1.1.32-qvx7w9wm.mjs +0 -2
  608. package/dist/chunks/cli-1.1.32-qzjfn21e.mjs +0 -3
  609. package/dist/chunks/cli-1.1.32-r5ww85n4.mjs +0 -6
  610. package/dist/chunks/cli-1.1.32-r6g8b118.mjs +0 -5
  611. package/dist/chunks/cli-1.1.32-r7020tw8.mjs +0 -4
  612. package/dist/chunks/cli-1.1.32-rbvnjjkt.mjs +0 -2
  613. package/dist/chunks/cli-1.1.32-rmz4ezae.mjs +0 -3
  614. package/dist/chunks/cli-1.1.32-rswqkymv.mjs +0 -133
  615. package/dist/chunks/cli-1.1.32-s2kkv51h.mjs +0 -2
  616. package/dist/chunks/cli-1.1.32-s4betse1.mjs +0 -2
  617. package/dist/chunks/cli-1.1.32-sqsxnqqb.mjs +0 -2
  618. package/dist/chunks/cli-1.1.32-t1n0b84g.mjs +0 -2
  619. package/dist/chunks/cli-1.1.32-tgr1e1hd.mjs +0 -2
  620. package/dist/chunks/cli-1.1.32-th2r4378.mjs +0 -9
  621. package/dist/chunks/cli-1.1.32-thsw9p6n.mjs +0 -2
  622. package/dist/chunks/cli-1.1.32-tp4tyjy3.mjs +0 -2
  623. package/dist/chunks/cli-1.1.32-tq108hv4.mjs +0 -2
  624. package/dist/chunks/cli-1.1.32-tzn98f6r.mjs +0 -24
  625. package/dist/chunks/cli-1.1.32-v3cks7qj.mjs +0 -6
  626. package/dist/chunks/cli-1.1.32-v4chz2b0.mjs +0 -2
  627. package/dist/chunks/cli-1.1.32-vdezbpdh.mjs +0 -2
  628. package/dist/chunks/cli-1.1.32-vf3r8a91.mjs +0 -16
  629. package/dist/chunks/cli-1.1.32-vmr6f229.mjs +0 -2
  630. package/dist/chunks/cli-1.1.32-vnhzy4jx.mjs +0 -2
  631. package/dist/chunks/cli-1.1.32-vtzwmjs8.mjs +0 -3
  632. package/dist/chunks/cli-1.1.32-vy2ngm3p.mjs +0 -2
  633. package/dist/chunks/cli-1.1.32-w2b0neg3.mjs +0 -4
  634. package/dist/chunks/cli-1.1.32-wnhqapmf.mjs +0 -24
  635. package/dist/chunks/cli-1.1.32-wsqyehdw.mjs +0 -2
  636. package/dist/chunks/cli-1.1.32-wyv15h7a.mjs +0 -6
  637. package/dist/chunks/cli-1.1.32-x0crp5g9.mjs +0 -2
  638. package/dist/chunks/cli-1.1.32-x23z7923.mjs +0 -2
  639. package/dist/chunks/cli-1.1.32-x8j1spnv.mjs +0 -2
  640. package/dist/chunks/cli-1.1.32-xfhe1m2y.mjs +0 -2
  641. package/dist/chunks/cli-1.1.32-xj2e8mzf.mjs +0 -2
  642. package/dist/chunks/cli-1.1.32-xy1pvy12.mjs +0 -2
  643. package/dist/chunks/cli-1.1.32-y4agg2c2.mjs +0 -17
  644. package/dist/chunks/cli-1.1.32-ycyg88ky.mjs +0 -2
  645. package/dist/chunks/cli-1.1.32-ydbtpc9v.mjs +0 -12
  646. package/dist/chunks/cli-1.1.32-yfs9ppge.mjs +0 -2
  647. package/dist/chunks/cli-1.1.32-yhftam6y.mjs +0 -50
  648. package/dist/chunks/cli-1.1.32-yhzhm57s.mjs +0 -2
  649. package/dist/chunks/cli-1.1.32-yq68bsa5.mjs +0 -2
  650. package/dist/chunks/cli-1.1.32-yv0wyp2m.mjs +0 -2
  651. package/dist/chunks/cli-1.1.32-yv9hzzq7.mjs +0 -2
  652. package/dist/chunks/cli-1.1.32-yw64r19c.mjs +0 -2
  653. package/dist/chunks/cli-1.1.32-z7x4jfeb.mjs +0 -4
  654. package/dist/chunks/cli-1.1.32-zegecv6e.mjs +0 -2
  655. package/dist/chunks/cli-1.1.32-zeyasrw5.mjs +0 -2
  656. package/dist/chunks/cli-1.1.32-zfyd4kyq.mjs +0 -2
  657. package/dist/chunks/cli-1.1.32-zfzqc12y.mjs +0 -26
  658. package/dist/chunks/cli-1.1.32-zkq2v1fz.mjs +0 -2
  659. package/dist/chunks/cli-1.1.32-zqtqvc9y.mjs +0 -3
  660. package/dist/chunks/cli-1.1.32-zr4x17ne.mjs +0 -3
  661. package/dist/chunks/cli-1.1.32-zraeg1n2.mjs +0 -2
  662. package/dist/chunks/cli-1.1.32-zrxqe296.mjs +0 -7
  663. package/dist/chunks/cli-1.1.32-zv1p3q66.mjs +0 -2
  664. package/dist/chunks/cli-1.1.32-zwetcrr2.mjs +0 -39
  665. package/dist/chunks/client-1.1.32-y4ehgz03.mjs +0 -1
  666. package/dist/chunks/color-1.1.32-an3gq6pv.mjs +0 -1
  667. package/dist/chunks/compact-1.1.32-kp67c5pn.mjs +0 -2
  668. package/dist/chunks/config-1.1.32-9kqd30ca.mjs +0 -1
  669. package/dist/chunks/config-1.1.32-chryg3ab.mjs +0 -1
  670. package/dist/chunks/constants-1.1.32-azab2vra.mjs +0 -1
  671. package/dist/chunks/context-1.1.32-t6yf3tch.mjs +0 -1
  672. package/dist/chunks/context-noninteractive-1.1.32-tbes3yx4.mjs +0 -1
  673. package/dist/chunks/conversation-1.1.32-edtsb1fp.mjs +0 -1
  674. package/dist/chunks/copilotHeaders-1.1.32-cxjr3qqd.mjs +0 -1
  675. package/dist/chunks/copy-1.1.32-2yk1zben.mjs +0 -9
  676. package/dist/chunks/cost-1.1.32-ykkmca1s.mjs +0 -1
  677. package/dist/chunks/createSession-1.1.32-pky6wawr.mjs +0 -1
  678. package/dist/chunks/debug-1.1.32-f8fanjpw.mjs +0 -1
  679. package/dist/chunks/defaultActionDeps-1.1.32-nf0mf9nq.mjs +0 -1480
  680. package/dist/chunks/desktop-1.1.32-h4q834kk.mjs +0 -2
  681. package/dist/chunks/detectRepository-1.1.32-y3wjkn3b.mjs +0 -1
  682. package/dist/chunks/detection-1.1.32-13rzk2y0.mjs +0 -1
  683. package/dist/chunks/diff-1.1.32-tsgcxd5v.mjs +0 -1
  684. package/dist/chunks/doctor-1.1.32-dg4q70ty.mjs +0 -1
  685. package/dist/chunks/doctorDiagnostic-1.1.32-xpjhp8fe.mjs +0 -1
  686. package/dist/chunks/earlyInput-1.1.32-rzjwc8xb.mjs +0 -1
  687. package/dist/chunks/effort-1.1.32-76tc9ft4.mjs +0 -13
  688. package/dist/chunks/engine-1.1.32-qp8px0cr.mjs +0 -1
  689. package/dist/chunks/envLessBridgeConfig-1.1.32-mamfyksw.mjs +0 -1
  690. package/dist/chunks/envUtils-1.1.32-x5ddw5jb.mjs +0 -1
  691. package/dist/chunks/errors-1.1.32-pw0ngznd.mjs +0 -1
  692. package/dist/chunks/exampleCommands-1.1.32-j9bvstfq.mjs +0 -1
  693. package/dist/chunks/execFileNoThrow-1.1.32-ah9wga16.mjs +0 -1
  694. package/dist/chunks/exit-1.1.32-4j8q9ztw.mjs +0 -1
  695. package/dist/chunks/explorer-1.1.32-dabb8sse.mjs +0 -1
  696. package/dist/chunks/export-1.1.32-zt3yhqen.mjs +0 -2
  697. package/dist/chunks/fast-1.1.32-cms216af.mjs +0 -1
  698. package/dist/chunks/feedback-1.1.32-r94c0y57.mjs +0 -16
  699. package/dist/chunks/git-1.1.32-9xc0s3ry.mjs +0 -1
  700. package/dist/chunks/githubModelsCredentials-1.1.32-r5xq7s7y.mjs +0 -1
  701. package/dist/chunks/goal-1.1.32-bkjq4858.mjs +0 -4
  702. package/dist/chunks/headless-1.1.32-ae4d3qgy.mjs +0 -2
  703. package/dist/chunks/heapdump-1.1.32-jdrsrqfx.mjs +0 -6
  704. package/dist/chunks/help-1.1.32-5z54ce4t.mjs +0 -1
  705. package/dist/chunks/hooks-1.1.32-2mse496x.mjs +0 -1
  706. package/dist/chunks/hooks-1.1.32-jv66gnpt.mjs +0 -79
  707. package/dist/chunks/ide-1.1.32-tx45prsy.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-1.1.32-bwdr4dza.mjs +0 -1
  709. package/dist/chunks/import-1.1.32-7w75n01b.mjs +0 -261
  710. package/dist/chunks/inboundAttachments-1.1.32-1vfz9rkn.mjs +0 -1
  711. package/dist/chunks/index-1.1.32-3wzxvtbf.mjs +0 -1
  712. package/dist/chunks/index-1.1.32-49p9ghn6.mjs +0 -1
  713. package/dist/chunks/index-1.1.32-7ttnyjb3.mjs +0 -2
  714. package/dist/chunks/index-1.1.32-aqkr7bx2.mjs +0 -9
  715. package/dist/chunks/index-1.1.32-az0sxjjn.mjs +0 -5
  716. package/dist/chunks/index-1.1.32-b4rwnxe8.mjs +0 -1
  717. package/dist/chunks/index-1.1.32-bpzdp87c.mjs +0 -23
  718. package/dist/chunks/index-1.1.32-c3gnrfg0.mjs +0 -1
  719. package/dist/chunks/index-1.1.32-cjq261cn.mjs +0 -9
  720. package/dist/chunks/index-1.1.32-crx2adff.mjs +0 -1
  721. package/dist/chunks/index-1.1.32-dn9thxs1.mjs +0 -30
  722. package/dist/chunks/index-1.1.32-fwm6yqt6.mjs +0 -1
  723. package/dist/chunks/index-1.1.32-g58gm84f.mjs +0 -1
  724. package/dist/chunks/index-1.1.32-g9e9ne9q.mjs +0 -1
  725. package/dist/chunks/index-1.1.32-m694vs1n.mjs +0 -1
  726. package/dist/chunks/index-1.1.32-rbv0wt7t.mjs +0 -1
  727. package/dist/chunks/index-1.1.32-revsqy4q.mjs +0 -1
  728. package/dist/chunks/index-1.1.32-t011v5cn.mjs +0 -1
  729. package/dist/chunks/index-1.1.32-tv85kbw0.mjs +0 -1
  730. package/dist/chunks/index-1.1.32-v09n34s4.mjs +0 -1
  731. package/dist/chunks/index-1.1.32-vaknvmtk.mjs +0 -2
  732. package/dist/chunks/index-1.1.32-vxn4pvkx.mjs +0 -1
  733. package/dist/chunks/index-1.1.32-zep1vry1.mjs +0 -1
  734. package/dist/chunks/init-1.1.32-xac664gq.mjs +0 -2
  735. package/dist/chunks/initReplBridge-1.1.32-d1g5bqts.mjs +0 -1
  736. package/dist/chunks/ink-1.1.32-brepbf1s.mjs +0 -1
  737. package/dist/chunks/insights-1.1.32-ccteb3zt.mjs +0 -870
  738. package/dist/chunks/install-1.1.32-xhcj1s97.mjs +0 -1
  739. package/dist/chunks/install-github-app-1.1.32-2rb2b8y2.mjs +0 -149
  740. package/dist/chunks/install-slack-app-1.1.32-7e22rmh8.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-1.1.32-tw81dggb.mjs +0 -1
  742. package/dist/chunks/keybindings-1.1.32-bsjftmx2.mjs +0 -2
  743. package/dist/chunks/latestVersionCache-1.1.32-ecgj54va.mjs +0 -1
  744. package/dist/chunks/loadAgentsDir-1.1.32-9c4e13wb.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-1.1.32-qb96n0p6.mjs +0 -1
  746. package/dist/chunks/log-1.1.32-0wdbtf8k.mjs +0 -1
  747. package/dist/chunks/main-1.1.32-9s7gbk2b.mjs +0 -1
  748. package/dist/chunks/managedEnv-1.1.32-8aapabn1.mjs +0 -1
  749. package/dist/chunks/mcp-1.1.32-2ct5ytwv.mjs +0 -1
  750. package/dist/chunks/mcp-1.1.32-42npdfwc.mjs +0 -17
  751. package/dist/chunks/mcp-1.1.32-8c3f7gfy.mjs +0 -4
  752. package/dist/chunks/mcpb-1.1.32-482tejv1.mjs +0 -1
  753. package/dist/chunks/memory-1.1.32-jrnzabfj.mjs +0 -77
  754. package/dist/chunks/model-1.1.32-wjtssjq7.mjs +0 -1
  755. package/dist/chunks/model-1.1.32-z7v5ah7s.mjs +0 -2
  756. package/dist/chunks/node-1.1.32-bgrnv9d0.mjs +0 -15
  757. package/dist/chunks/node-1.1.32-pek9xbcv.mjs +0 -1
  758. package/dist/chunks/oauth-1.1.32-b01rfrnw.mjs +0 -1
  759. package/dist/chunks/openaiShim-1.1.32-68nafznt.mjs +0 -14
  760. package/dist/chunks/output-style-1.1.32-se3pq9dn.mjs +0 -1
  761. package/dist/chunks/package-D2QZMRW7-1.1.32-jykb9rfa.mjs +0 -1
  762. package/dist/chunks/permissions-1.1.32-r62vjas0.mjs +0 -3
  763. package/dist/chunks/permissions-1.1.32-v83ds1fq.mjs +0 -1
  764. package/dist/chunks/plan-1.1.32-remxpgv3.mjs +0 -1
  765. package/dist/chunks/plist-1.1.32-y2bh274p.mjs +0 -1
  766. package/dist/chunks/plugin-1.1.32-h9pgs6zn.mjs +0 -29
  767. package/dist/chunks/pluginStartupCheck-1.1.32-vyn1sara.mjs +0 -1
  768. package/dist/chunks/plugins-1.1.32-wxz7p0xc.mjs +0 -9
  769. package/dist/chunks/preActionHook-1.1.32-259wvsmh.mjs +0 -2
  770. package/dist/chunks/print-1.1.32-k37wv4h9.mjs +0 -57
  771. package/dist/chunks/process-1.1.32-tya6ctch.mjs +0 -1
  772. package/dist/chunks/processBashCommand-1.1.32-hfk6nzmr.mjs +0 -1
  773. package/dist/chunks/processSlashCommand-1.1.32-ga3g4qev.mjs +0 -9
  774. package/dist/chunks/prompt-1.1.32-crsv325t.mjs +0 -1
  775. package/dist/chunks/prompt-1.1.32-jyfkevpw.mjs +0 -1
  776. package/dist/chunks/prompts-1.1.32-mythhsq2.mjs +0 -1
  777. package/dist/chunks/provider-1.1.32-c16c25q6.mjs +0 -2
  778. package/dist/chunks/providerProfiles-1.1.32-gv05d26p.mjs +0 -1
  779. package/dist/chunks/providerValidation-1.1.32-srfcyanm.mjs +0 -6
  780. package/dist/chunks/registerSubcommands-1.1.32-af1r42j6.mjs +0 -26
  781. package/dist/chunks/registry-1.1.32-nvr3xen5.mjs +0 -1
  782. package/dist/chunks/release-notes-1.1.32-gtntbc84.mjs +0 -5
  783. package/dist/chunks/reload-plugins-1.1.32-qmx4b0zf.mjs +0 -2
  784. package/dist/chunks/remote-env-1.1.32-srz0skx2.mjs +0 -1
  785. package/dist/chunks/remoteBridgeCore-1.1.32-17erfh69.mjs +0 -1
  786. package/dist/chunks/rename-1.1.32-yww8w15q.mjs +0 -1
  787. package/dist/chunks/replLauncher-1.1.32-carhn5x3.mjs +0 -1
  788. package/dist/chunks/resume-1.1.32-y7g779fj.mjs +0 -2
  789. package/dist/chunks/rewind-1.1.32-xktcmbbk.mjs +0 -1
  790. package/dist/chunks/rootOptions-1.1.32-q7914mqe.mjs +0 -1
  791. package/dist/chunks/runWorkflowHeadless-1.1.32-yr1peyj2.mjs +0 -10
  792. package/dist/chunks/sandbox-adapter-1.1.32-kct2shfd.mjs +0 -1
  793. package/dist/chunks/sandbox-toggle-1.1.32-wa7kgd6b.mjs +0 -1
  794. package/dist/chunks/session-1.1.32-07pqmcyz.mjs +0 -2
  795. package/dist/chunks/sessionFileAccessHooks-1.1.32-1ekf9af3.mjs +0 -1
  796. package/dist/chunks/sessionStorage-1.1.32-vcm53ywe.mjs +0 -1
  797. package/dist/chunks/settings-1.1.32-kwtz4r22.mjs +0 -1
  798. package/dist/chunks/setup-1.1.32-695k1eyn.mjs +0 -12
  799. package/dist/chunks/sinks-1.1.32-3eh8hb97.mjs +0 -1
  800. package/dist/chunks/skills-1.1.32-ymdek4dt.mjs +0 -1
  801. package/dist/chunks/startupProfiler-1.1.32-sxxmxavv.mjs +0 -1
  802. package/dist/chunks/startupUpdateCheck-1.1.32-25e14c0p.mjs +0 -1
  803. package/dist/chunks/state-1.1.32-q2y7dv84.mjs +0 -1
  804. package/dist/chunks/stats-1.1.32-p79st2jy.mjs +0 -1
  805. package/dist/chunks/status-1.1.32-wsaad3gy.mjs +0 -1
  806. package/dist/chunks/stickers-1.1.32-erbhpqdc.mjs +0 -1
  807. package/dist/chunks/subprocessEnv-1.1.32-29m5mf2s.mjs +0 -1
  808. package/dist/chunks/tasks-1.1.32-fv2ze8ev.mjs +0 -1
  809. package/dist/chunks/teamHelpers-1.1.32-b2x5nsht.mjs +0 -1
  810. package/dist/chunks/teammateModeSnapshot-1.1.32-w65af42z.mjs +0 -1
  811. package/dist/chunks/teleport-1.1.32-6d4336gw.mjs +0 -1
  812. package/dist/chunks/terminalSetup-1.1.32-t82mfgh5.mjs +0 -1
  813. package/dist/chunks/theme-1.1.32-7qn5nf2j.mjs +0 -1
  814. package/dist/chunks/thinkback-1.1.32-awsxj77a.mjs +0 -1
  815. package/dist/chunks/thinkback-play-1.1.32-jz9fjb47.mjs +0 -1
  816. package/dist/chunks/toolPool-1.1.32-fjydq0km.mjs +0 -1
  817. package/dist/chunks/toolSearch-1.1.32-y8vfsj9n.mjs +0 -1
  818. package/dist/chunks/tools-1.1.32-pd8bskwj.mjs +0 -1
  819. package/dist/chunks/trustedDevice-1.1.32-891wyppj.mjs +0 -1
  820. package/dist/chunks/turndown.cjs-1.1.32-nsrwegv6.mjs +0 -69
  821. package/dist/chunks/types-1.1.32-v6b8jgxx.mjs +0 -1
  822. package/dist/chunks/ultrareviewCommand-1.1.32-wkj4mpew.mjs +0 -4
  823. package/dist/chunks/update-1.1.32-zz1tgpba.mjs +0 -72
  824. package/dist/chunks/upload-1.1.32-43gcqyx2.mjs +0 -7
  825. package/dist/chunks/upstreamproxy-1.1.32-nqwkbma5.mjs +0 -14
  826. package/dist/chunks/usage-1.1.32-80bkg4qd.mjs +0 -1
  827. package/dist/chunks/util-1.1.32-c7zmr7sf.mjs +0 -1
  828. package/dist/chunks/utils-1.1.32-x2mf8n7e.mjs +0 -1
  829. package/dist/chunks/vim-1.1.32-mz41whem.mjs +0 -1
  830. package/dist/chunks/watchLoop-1.1.32-yftqp4h6.mjs +0 -13
  831. package/dist/chunks/watcher-1.1.32-jy13qnvt.mjs +0 -1
  832. package/dist/chunks/wiki-1.1.32-z6ngme51.mjs +0 -132
  833. package/dist/chunks/workflows-1.1.32-mpyvb578.mjs +0 -1
  834. package/dist/chunks/worktree-1.1.32-qxw9fxfk.mjs +0 -1
  835. package/dist/chunks/worktreeModeEnabled-1.1.32-w3d8pgmt.mjs +0 -1
  836. package/dist/chunks/wrapper-1.1.32-5xty3sv5.mjs +0 -7
@@ -0,0 +1,88 @@
1
+ import{T as NJ,U as Mz,V as PJ,W as Sz,X as uz,Y as EJ}from"./cli-1.1.34-3qpxmhy6.mjs";import{_ as Az}from"./cli-1.1.34-yqryw36t.mjs";import{Sa as oz,Ta as _z,Ua as rz,Va as iz,Xa as nz,Ya as sz,Za as tz,_a as ez}from"./cli-1.1.34-g6kkzzxg.mjs";import{Ab as UJ,Bb as RJ,Cb as AJ,yb as _J,zb as CJ}from"./cli-1.1.34-5mg7y1hs.mjs";import{Eb as DJ}from"./cli-1.1.34-webjc1s3.mjs";import{Mb as BJ,Ob as FJ,Qb as WK}from"./cli-1.1.34-z14xw89f.mjs";import{te as az,ue as fJ}from"./cli-1.1.34-k4zd38bd.mjs";import{cf as Iz,ef as OJ,if as $J}from"./cli-1.1.34-tmwcg7q1.mjs";import{Ul as GJ,Uw as VJ,Vl as bz,Vw as $K,fm as KK}from"./cli-1.1.34-84707tma.mjs";import"./cli-1.1.34-sj1pcnn3.mjs";import"./cli-1.1.34-372a0qyj.mjs";import"./cli-1.1.34-vdk5kjz7.mjs";import"./cli-1.1.34-g0sqgp9m.mjs";import"./cli-1.1.34-fgbv1rw4.mjs";import"./cli-1.1.34-nxeb9r8s.mjs";import"./cli-1.1.34-9jn997h8.mjs";import"./cli-1.1.34-yfasvar9.mjs";import"./cli-1.1.34-9z887t80.mjs";import{AV as qJ,EV as YK}from"./cli-1.1.34-c3w48hst.mjs";import"./cli-1.1.34-3rcacat5.mjs";import"./cli-1.1.34-20femz8z.mjs";import"./cli-1.1.34-fgx6ej2m.mjs";import"./cli-1.1.34-59csbz1a.mjs";import"./cli-1.1.34-vz14r55x.mjs";import"./cli-1.1.34-s9g6mekb.mjs";import{HY as hz,KY as ZK}from"./cli-1.1.34-hpn89fzn.mjs";import"./cli-1.1.34-rqkzp4n2.mjs";import"./cli-1.1.34-z1htezxg.mjs";import"./cli-1.1.34-5ffnhvmt.mjs";import"./cli-1.1.34-ff6hyf5n.mjs";import"./cli-1.1.34-bt9brnrs.mjs";import"./cli-1.1.34-5ec767fj.mjs";import"./cli-1.1.34-k761g5m2.mjs";import"./cli-1.1.34-8vfey6b5.mjs";import"./cli-1.1.34-7ad0dt89.mjs";import"./cli-1.1.34-fnds3msv.mjs";import"./cli-1.1.34-yrk4mxjw.mjs";import"./cli-1.1.34-1xg52b7q.mjs";import{v6 as Q,w6 as xJ}from"./cli-1.1.34-7bxexffs.mjs";import"./cli-1.1.34-70pxm3rb.mjs";import{y6 as n,z6 as JK}from"./cli-1.1.34-4zj4kbw4.mjs";import"./cli-1.1.34-cp457g25.mjs";import"./cli-1.1.34-ajqsr81p.mjs";import"./cli-1.1.34-e7fd8zh6.mjs";import"./cli-1.1.34-dvx08sv2.mjs";import"./cli-1.1.34-hpt8kch4.mjs";import"./cli-1.1.34-9tctqya9.mjs";import"./cli-1.1.34-166q8s04.mjs";import"./cli-1.1.34-mbeaqq0q.mjs";import"./cli-1.1.34-cptp243m.mjs";import"./cli-1.1.34-vpwwhg8z.mjs";import{$_ as eJ,M_ as $z,O_ as tJ,T_ as jJ,bca as yz,cca as cz,dca as dz,eca as MJ,n_ as HJ,nga as Rz,o_ as sJ,sga as zK}from"./cli-1.1.34-wwjkncsv.mjs";import{Fga as Hz,Pga as nJ,vga as lz,wga as TJ,yga as Cz}from"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import{Via as ZJ,Wia as vz,_ia as bJ,qja as q,tja as pz}from"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import{Qja as l,Xja as iJ}from"./cli-1.1.34-d0sgyvr1.mjs";import{bka as QJ,jka as rJ}from"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import{Jqa as p}from"./cli-1.1.34-4x915j9t.mjs";$K();eJ();sJ();pz();tJ();rJ();iJ();nJ();zK();JK();KK();import{randomUUID as WJ}from"crypto";import{hostname as XK,tmpdir as QK}from"os";import{basename as HK,join as jK,resolve as mz}from"path";xJ();fJ();MJ();TJ();pz();var wJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function kJ(z){return(await az(z,wJ)).split(`
2
+ `).filter((X)=>X.length>0)}function zJ(z){let J=z.write??((Z)=>process.stdout.write(Z)),X=z.verbose,W=0,O="idle",K="Ready",C="",F="",D="",B="",x="",R=null,_=[],M=!1,E=null,P=0,f=0,N=1,w=null,b="single-session",v=new Map,s=null,a=0;function jz(Z){let j=process.stdout.columns||80,T=0;for(let Wz of Z.split(`
3
+ `)){if(Wz.length===0){T++;continue}let Nz=lz(Wz);T+=Math.max(1,Math.ceil(Nz/j))}if(Z.endsWith(`
4
+ `))T--;return T}function h(Z){J(Z),W+=jz(Z)}function t(){if(W<=0)return;q(`[bridge:ui] clearStatusLines count=${W}`),J(`\x1B[${W}A`),J("\x1B[J"),W=0}function Qz(Z){t(),J(Z)}function qz(Z){kJ(Z).then((j)=>{_=j,S()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function Jz(){t();let Z=yz[a%yz.length],j="";if(C)j+=Q.dim(" · ")+Q.dim(C);if(F)j+=Q.dim(" · ")+Q.dim(F);h(`${Q.yellow(Z)} ${Q.yellow("Connecting")}${j}
5
+ `)}function Yz(){r(),Jz(),s=setInterval(()=>{a++,Jz()},150)}function r(){if(s)clearInterval(s),s=null}function S(){if(O==="reconnecting"||O==="failed")return;t();let Z=O==="idle";if(M)for(let e of _)h(`${Q.dim(e)}
6
+ `);let j=cz,T=Z?Q.green:Q.cyan,Nz=(Z?Q.green:Q.cyan)(K),Oz="";if(C)Oz+=Q.dim(" · ")+Q.dim(C);if(F&&b!=="worktree")Oz+=Q.dim(" · ")+Q.dim(F);if(h(`${T(j)} ${Nz}${Oz}
7
+ `),N>1){let e=b==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";h(` ${Q.dim(`Capacity: ${f}/${N} · ${e}`)}
8
+ `);for(let[,Kz]of v){let c=Kz.title?Cz(Kz.title,35):Q.dim("Attached"),Dz=ez(c,Kz.url),Pz=Kz.activity,H=Pz&&Pz.type!=="result"&&Pz.type!=="error"?Q.dim(` ${Cz(Pz.summary,40)}`):"";h(` ${Dz}${H}
9
+ `)}}if(N===1){let e=b==="single-session"?"Single session · exits when complete":b==="worktree"?`Capacity: ${f}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${f}/1 · New sessions will be created in the current directory`;h(` ${Q.dim(e)}
10
+ `)}if(N===1&&!Z&&E&&Date.now()-P<oz)h(` ${Q.dim(Cz(E,60))}
11
+ `);let Xz=R??D;if(Xz){h(`
12
+ `);let e=Z?nz(Xz):sz(Xz),Kz=M?Q.dim.italic("space to hide QR code"):Q.dim.italic("space to show QR code"),c=w?Q.dim.italic(" · w to toggle spawn mode"):"";h(`${Q.dim(e)}
13
+ `),h(`${Kz}${c}
14
+ `)}}return{printBanner(Z,j){if(B=Z.sessionIngressUrl,x=j,D=rz(j,B),qz(D),X)J(Q.dim("Remote Control")+` v99.0.0
15
+ `);if(X){if(Z.spawnMode!=="single-session")J(Q.dim("Spawn mode: ")+`${Z.spawnMode}
16
+ `),J(Q.dim("Max concurrent sessions: ")+`${Z.maxSessions}
17
+ `);J(Q.dim("Environment ID: ")+`${j}
18
+ `)}if(Z.sandbox)J(Q.dim("Sandbox: ")+`${Q.green("Enabled")}
19
+ `);J(`
20
+ `),Yz()},logSessionStart(Z,j){if(X){let T=Cz(j,80);Qz(Q.dim(`[${_z()}]`)+` Session started: ${Q.white(`"${T}"`)} (${Q.dim(Z)})
21
+ `)}},logSessionComplete(Z,j){Qz(Q.dim(`[${_z()}]`)+` Session ${Q.green("completed")} (${Hz(j)}) ${Q.dim(Z)}
22
+ `)},logSessionFailed(Z,j){Qz(Q.dim(`[${_z()}]`)+` Session ${Q.red("failed")}: ${j} ${Q.dim(Z)}
23
+ `)},logStatus(Z){Qz(Q.dim(`[${_z()}]`)+` ${Z}
24
+ `)},logVerbose(Z){if(X)Qz(Q.dim(`[${_z()}] ${Z}`)+`
25
+ `)},logError(Z){Qz(Q.red(`[${_z()}] Error: ${Z}`)+`
26
+ `)},logReconnected(Z){Qz(Q.dim(`[${_z()}]`)+` ${Q.green("Reconnected")} after ${Hz(Z)}
27
+ `)},setRepoInfo(Z,j){C=Z,F=j},updateIdleStatus(){r(),O="idle",K="Ready",E=null,P=0,R=null,qz(D),S()},setAttached(Z){if(r(),O="attached",K="Connected",E=null,P=0,N<=1)R=iz(Z,x,B),qz(R);S()},updateReconnectingStatus(Z,j){if(r(),t(),O="reconnecting",M)for(let Wz of _)h(`${Q.dim(Wz)}
28
+ `);let T=yz[a%yz.length];a++,h(`${Q.yellow(T)} ${Q.yellow("Reconnecting")} ${Q.dim("·")} ${Q.dim(`retrying in ${Z}`)} ${Q.dim("·")} ${Q.dim(`disconnected ${j}`)}
29
+ `)},updateFailedStatus(Z){r(),t(),O="failed";let j="";if(C)j+=Q.dim(" · ")+Q.dim(C);if(F)j+=Q.dim(" · ")+Q.dim(F);if(h(`${Q.red(dz)} ${Q.red("Remote Control Failed")}${j}
30
+ `),h(`${Q.dim(tz)}
31
+ `),Z)h(`${Q.red(Z)}
32
+ `)},updateSessionStatus(Z,j,T,Wz){if(T.type==="tool_start")E=T.summary,P=Date.now();S()},clearStatus(){r(),t()},toggleQr(){M=!M,S()},updateSessionCount(Z,j,T){if(f===Z&&N===j&&b===T)return;f=Z,N=j,b=T},setSpawnModeDisplay(Z){if(w===Z)return;if(w=Z,Z)b=Z},addSession(Z,j){v.set(Z,{url:j})},updateSessionActivity(Z,j){let T=v.get(Z);if(!T)return;T.activity=j},setSessionTitle(Z,j){let T=v.get(Z);if(!T)return;if(T.title=j,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",K=Cz(j,40);S()},removeSession(Z){v.delete(Z)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;S()}}}$J();ZK();bJ();$J();import{spawn as IJ}from"child_process";import{createWriteStream as vJ}from"fs";import{tmpdir as hJ}from"os";import{dirname as SJ,join as JJ}from"path";import{createInterface as KJ}from"readline";var mJ=10,gJ=10,uJ=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function pJ(z,J){let X={};for(let W of Object.keys(z))if(uJ.has(W))X[W]=z[W];if(X.CLAUDE_CODE_OAUTH_TOKEN=void 0,X.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)X.CLAUDE_CODE_FORCE_SANDBOX="1";if(X.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,X.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)X.CLAUDE_CODE_USE_CCR_V2="1",X.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return X}function kz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var lJ={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 cJ(z,J){let X=lJ[z]??z,W=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(W)return`${X} ${W}`;return X}function dJ(z,J,X){let W;try{W=vz(z)}catch{return[]}if(!W||typeof W!=="object")return[];let O=W,K=[],C=Date.now();switch(O.type){case"assistant":{let F=O.message;if(!F)break;let D=F.content;if(!Array.isArray(D))break;for(let B of D){if(!B||typeof B!=="object")continue;let x=B;if(x.type==="tool_use"){let R=x.name??"Tool",_=x.input??{},M=cJ(R,_);K.push({type:"tool_start",summary:M,timestamp:C}),X(`[bridge:activity] sessionId=${J} tool_use name=${R} ${oJ(_)}`)}else if(x.type==="text"){let R=x.text??"";if(R.length>0)K.push({type:"text",summary:R.slice(0,80),timestamp:C}),X(`[bridge:activity] sessionId=${J} text "${R.slice(0,100)}"`)}}break}case"result":{let F=O.subtype;if(F==="success")K.push({type:"result",summary:"Session completed",timestamp:C}),X(`[bridge:activity] sessionId=${J} result subtype=success`);else if(F){let B=O.errors?.[0]??`Error: ${F}`;K.push({type:"error",summary:B,timestamp:C}),X(`[bridge:activity] sessionId=${J} result subtype=${F} error="${B}"`)}else X(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return K}function aJ(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let X=z.message?.content,W;if(typeof X==="string")W=X;else if(Array.isArray(X)){for(let O of X)if(O&&typeof O==="object"&&O.type==="text"){W=O.text;break}}return W=W?.trim(),W?W:void 0}function oJ(z){let J=[];for(let[X,W]of Object.entries(z)){if(typeof W==="string")J.push(`${X}="${W.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function YJ(z){return{spawn(J,X){let W=kz(J.sessionId),O;if(z.debugFile){let N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${W}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${W}`}else if(z.verbose)O=JJ(hJ(),"claude",`bridge-session-${W}.log`);let K=null,C;if(z.debugFile)C=JJ(SJ(z.debugFile),`bridge-transcript-${W}.jsonl`),K=vJ(C,{flags:"a"}),K.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.message}`),K=null}),z.onDebug(`[bridge:session] Transcript log: ${C}`);let F=[...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]:[]],D=pJ(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${F.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let B=IJ(z.execPath,F,{cwd:X,stdio:["pipe","pipe","pipe"],env:D,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${B.pid}`);let x=[],R=null,_=[],M=!1,E=!1;if(B.stderr)KJ({input:B.stderr}).on("line",(w)=>{if(z.verbose)process.stderr.write(w+`
33
+ `);if(_.length>=gJ)_.shift();_.push(w)});if(B.stdout)KJ({input:B.stdout}).on("line",(w)=>{if(K)K.write(w+`
34
+ `);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${Iz(w)}`),z.verbose)process.stderr.write(w+`
35
+ `);let b=dJ(w,J.sessionId,z.onDebug);for(let v of b){if(x.length>=mJ)x.shift();x.push(v),R=v,z.onActivity?.(J.sessionId,v)}{let v;try{v=vz(w)}catch{}if(v&&typeof v==="object"){let s=v;if(s.type==="control_request"){if(s.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,v,J.accessToken)}else if(s.type==="user"&&!E&&J.onFirstUserMessage){let a=aJ(s);if(a)E=!0,J.onFirstUserMessage(a)}}}});let P=new Promise((N)=>{B.on("close",(w,b)=>{if(K)K.end(),K=null;if(b==="SIGTERM"||b==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${b} pid=${B.pid}`),N("interrupted");else if(w===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${B.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${w} pid=${B.pid}`),N("failed")}),B.on("error",(w)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${w.message}`),N("failed")})}),f={sessionId:J.sessionId,done:P,activities:x,accessToken:J.accessToken,lastStderr:_,get currentActivity(){return R},kill(){if(!B.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${B.pid}`),process.platform==="win32")B.kill();else B.kill("SIGTERM")},forceKill(){if(!M&&B.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${B.pid}`),process.platform==="win32")B.kill();else B.kill("SIGKILL")},writeStdin(N){if(B.stdin&&!B.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${Iz(N)}`),B.stdin.write(N)},updateAccessToken(N){f.accessToken=N,f.writeStdin(ZJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
36
+ `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return f}}}YK();WK();var GK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},VK=1000,LJ=32;async function yJ(){return jJ("tengu_ccr_bridge_multi_session")}function XJ(z){return z.connCapMs*2}function qK(){if(HJ()||!process.argv[1])return[];return[process.argv[1]]}function OK(z,J,X){try{return z.spawn(J,X)}catch(W){let O=l(W);return Rz(Error(`Session spawn failed: ${O}`)),O}}async function BK(z,J,X,W,O,K,C,F=GK,D,B){let x=new AbortController;if(C.aborted)x.abort();else C.addEventListener("abort",()=>x.abort(),{once:!0});let R=x.signal,_=new Map,M=new Map,E=new Map,P=new Map,f=new Map,N=new Map,w=new Set,b=new Map,v=new Set,s=new Set,a=EJ(R);async function jz(){let $=!1,H=!1,L=[];for(let[G]of _){let U=E.get(G),I=f.get(G);if(!U||!I)continue;try{await W.heartbeatWork(J,U,I),$=!0}catch(m){if(q(`[bridge:heartbeat] Failed for sessionId=${G} workId=${U}: ${l(m)}`),m instanceof Mz)if(m.status===401||m.status===403)L.push(G);else H=!0}}for(let G of L){K.logVerbose(`Session ${G} token expired — re-queuing via bridge/reconnect`);try{await W.reconnectSession(J,G),q(`[bridge:heartbeat] Re-queued sessionId=${G} via bridge/reconnect`)}catch(U){K.logError(`Failed to refresh session ${G} token: ${l(U)}`),q(`[bridge:heartbeat] reconnectSession(${G}) failed: ${l(U)}`,{level:"error"})}}if(H)return"fatal";if(L.length>0)return"auth_failed";return $?"ok":"failed"}let h=new Set,t=B?DJ({getAccessToken:B,onRefresh:($,H)=>{let L=_.get($);if(!L)return;if(h.has($))K.logVerbose(`Refreshing session ${$} token via bridge/reconnect`),W.reconnectSession(J,$).catch((G)=>{K.logError(`Failed to refresh session ${$} token: ${l(G)}`),q(`[bridge:token] reconnectSession(${$}) failed: ${l(G)}`,{level:"error"})});else L.updateAccessToken(H)},label:"bridge"}):null,Qz=Date.now(),qz=new Set;function Jz($){qz.add($),$.finally(()=>qz.delete($))}let Yz=0,r=0,S=null,Z=null,j=null,T=null,Wz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),$z("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),K.printBanner(z,J),K.updateSessionCount(0,z.maxSessions,z.spawnMode),D)K.setAttached(D);function Nz(){K.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[m,Y]of _){let y=Y.currentActivity;if(y)K.updateSessionActivity(P.get(m)??m,y)}if(_.size===0){K.updateIdleStatus();return}let[$,H]=[..._.entries()].pop(),L=M.get($);if(!L)return;let G=H.currentActivity;if(!G||G.type==="result"||G.type==="error"){if(z.maxSessions>1)K.refreshDisplay();return}let U=Hz(Date.now()-L),I=H.activities.filter((m)=>m.type==="tool_start").slice(-5).map((m)=>m.summary);K.updateSessionStatus($,U,G,I)}function Oz(){Xz(),Nz(),T=setInterval(Nz,VK)}function Xz(){if(T)clearInterval(T),T=null}function e($,H,L){return(G)=>{let U=E.get($);_.delete($),M.delete($),E.delete($),f.delete($);let I=P.get($)??$;P.delete($),K.removeSession(I),s.delete(I),h.delete($);let m=N.get($);if(m)clearTimeout(m),N.delete($);t?.cancel($),a.wake();let Y=v.delete($),y=Y&&G==="interrupted"?"failed":G,g=Date.now()-H;q(`[bridge:session] sessionId=${$} workId=${U??"unknown"} exited status=${y} duration=${Hz(g)}`),$z("info","bridge_session_done",{status:y,duration_ms:g}),K.clearStatus(),Xz();let i=L.lastStderr.length>0?L.lastStderr.join(`
37
+ `):void 0,Zz;switch(y){case"completed":K.logSessionComplete($,g);break;case"failed":if(!Y&&!R.aborted)Zz=i??"Process exited with error",K.logSessionFailed($,Zz),Rz(Error(`Bridge session failed: ${Zz}`));break;case"interrupted":K.logVerbose(`Session ${$} interrupted`);break}if(y!=="interrupted"&&U)Jz(Tz(W,J,U,K,F.stopWorkBaseDelayMs)),w.add(U);let d=b.get($);if(d)b.delete($),Jz(bz(d.worktreePath,d.worktreeBranch,d.gitRoot,d.hookBased).catch((zz)=>K.logVerbose(`Failed to remove worktree ${d.worktreePath}: ${l(zz)}`)));if(y!=="interrupted"&&!R.aborted)if(z.spawnMode!=="single-session")Jz(W.archiveSession(I).catch((zz)=>K.logVerbose(`Failed to archive session ${$}: ${l(zz)}`))),q(`[bridge:session] Session ${y}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${y}, aborting poll loop to tear down environment`),x.abort();return}if(!R.aborted)Oz()}}if(!D)Oz();while(!R.aborted){let $=Az();try{let H=await W.pollForWork(J,X,R,$.reclaim_older_than_ms);if(S!==null||Z!==null){let Y=Date.now()-(S??Z??Date.now());K.logReconnected(Y),q(`[bridge:poll] Reconnected after ${Hz(Y)}`)}if(Yz=0,r=0,S=null,Z=null,j=null,!H){if(_.size>=z.maxSessions){let y=$.multisession_poll_interval_ms_at_capacity;if($.non_exclusive_heartbeat_interval_ms>0){let g=y>0?Date.now()+y:null,i="ok",Zz=0;while(!R.aborted&&_.size>=z.maxSessions&&(g===null||Date.now()<g)){let zz=Az();if(zz.non_exclusive_heartbeat_interval_ms<=0)break;let Bz=a.signal();if(i=await jz(),i==="auth_failed"||i==="fatal"){Bz.cleanup();break}Zz++,await n(zz.non_exclusive_heartbeat_interval_ms,Bz.signal),Bz.cleanup()}if((i==="auth_failed"||i==="fatal"?i:R.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":g!==null&&Date.now()>=g?"poll_due":"config_disabled")==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Zz} cycles — falling through to pollForWork`);if(i==="auth_failed"||i==="fatal"){let zz=a.signal();await n(y>0?y:$.non_exclusive_heartbeat_interval_ms,zz.signal),zz.cleanup()}}else if(y>0){let g=a.signal();await n(y,g.signal),g.cleanup()}}else{let y=_.size>0?$.multisession_poll_interval_ms_partial_capacity:$.multisession_poll_interval_ms_not_at_capacity;await n(y,R)}continue}let G=_.size>=z.maxSessions;if(w.has(H.id)){if(q(`[bridge:work] Skipping already-completed workId=${H.id}`),G){let Y=a.signal();if($.non_exclusive_heartbeat_interval_ms>0)await jz(),await n($.non_exclusive_heartbeat_interval_ms,Y.signal);else if($.multisession_poll_interval_ms_at_capacity>0)await n($.multisession_poll_interval_ms_at_capacity,Y.signal);Y.cleanup()}else await n(1000,R);continue}let U;try{U=_J(H.secret)}catch(Y){let y=l(Y);if(K.logError(`Failed to decode work secret for workId=${H.id}: ${y}`),w.add(H.id),Jz(Tz(W,J,H.id,K,F.stopWorkBaseDelayMs)),G){let g=a.signal();if($.non_exclusive_heartbeat_interval_ms>0)await jz(),await n($.non_exclusive_heartbeat_interval_ms,g.signal);else if($.multisession_poll_interval_ms_at_capacity>0)await n($.multisession_poll_interval_ms_at_capacity,g.signal);g.cleanup()}continue}let I=async()=>{q(`[bridge:work] Acknowledging workId=${H.id}`);try{await W.acknowledgeWork(J,H.id,U.session_ingress_token)}catch(Y){q(`[bridge:work] Acknowledge failed workId=${H.id}: ${l(Y)}`)}},m=H.data.type;switch(H.data.type){case"healthcheck":await I(),q("[bridge:work] Healthcheck received"),K.logVerbose("Healthcheck received");break;case"session":{let Y=H.data.id;try{NJ(Y,"session_id")}catch{await I(),K.logError(`Invalid session_id received: ${Y}`);break}let y=_.get(Y);if(y){y.updateAccessToken(U.session_ingress_token),f.set(Y,U.session_ingress_token),E.set(Y,H.id),t?.schedule(Y,U.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${Y} workId=${H.id}`),await I();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${H.id}`);break}await I();let g=Date.now(),i,Zz=!1,d;if(U.use_code_sessions===!0||QJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){i=RJ(z.apiBaseUrl,Y);for(let V=1;V<=2;V++)try{d=await AJ(i,U.session_ingress_token),Zz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${Y} epoch=${d} attempt=${V}`);break}catch(k){let u=l(k);if(V<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${V} failed, retrying: ${u}`),await n(2000,R),R.aborted)break;continue}K.logError(`CCR v2 worker registration failed for session ${Y}: ${u}`),Rz(Error(`registerWorker failed: ${u}`)),w.add(H.id),Jz(Tz(W,J,H.id,K,F.stopWorkBaseDelayMs))}if(!Zz)break}else i=CJ(z.sessionIngressUrl,Y);let{spawnMode:zz,dir:Bz}=z,fz=0;if(zz==="worktree"&&(D===void 0||!UJ(Y,D))){let V=Date.now();try{let k=await GJ(`bridge-${kz(Y)}`);fz=Date.now()-V,b.set(Y,{worktreePath:k.worktreePath,worktreeBranch:k.worktreeBranch,gitRoot:k.gitRoot,hookBased:k.hookBased}),Bz=k.worktreePath,q(`[bridge:session] Created worktree for sessionId=${Y} at ${k.worktreePath}`)}catch(k){let u=l(k);K.logError(`Failed to create worktree for session ${Y}: ${u}`),Rz(Error(`Worktree creation failed: ${u}`)),w.add(H.id),Jz(Tz(W,J,H.id,K,F.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${Y} sdkUrl=${i}`);let o=hz(Y),Uz=OK(O,{sessionId:Y,sdkUrl:i,accessToken:U.session_ingress_token,useCcrV2:Zz,workerEpoch:d,onFirstUserMessage:(V)=>{if(s.has(o))return;s.add(o);let k=LK(V);K.setSessionTitle(o,k),q(`[bridge:title] derived title for ${o}: ${k}`),import("./createSession-1.1.34-69d3ep6s.mjs").then(({updateBridgeSessionTitle:u})=>u(o,k,{baseUrl:z.apiBaseUrl})).catch((u)=>q(`[bridge:title] failed to update title for ${o}: ${u}`,{level:"error"}))}},Bz);if(typeof Uz==="string"){K.logError(`Failed to spawn session ${Y}: ${Uz}`);let V=b.get(Y);if(V)b.delete(Y),Jz(bz(V.worktreePath,V.worktreeBranch,V.gitRoot,V.hookBased).catch((k)=>K.logVerbose(`Failed to remove worktree ${V.worktreePath}: ${l(k)}`)));w.add(H.id),Jz(Tz(W,J,H.id,K,F.stopWorkBaseDelayMs));break}let Fz=Uz,wz=Date.now()-g;$z("info","bridge_session_started",{spawn_mode:zz,in_worktree:b.has(Y),spawn_duration_ms:wz,worktree_create_ms:fz}),_.set(Y,Fz),E.set(Y,H.id),f.set(Y,U.session_ingress_token),P.set(Y,o);let Ez=Date.now();M.set(Y,Ez),K.logSessionStart(Y,`Session ${Y}`);let Gz=kz(Y),Vz;if(z.debugFile){let V=z.debugFile.lastIndexOf(".");if(V>0)Vz=`${z.debugFile.slice(0,V)}-${Gz}${z.debugFile.slice(V)}`;else Vz=`${z.debugFile}-${Gz}`}else if(z.verbose)Vz=jK(QK(),"claude",`bridge-session-${Gz}.log`);if(Vz)K.logVerbose(`Debug log: ${Vz}`);K.addSession(o,VJ(o,z.sessionIngressUrl)),Oz(),K.setAttached(o),yK(o,z.apiBaseUrl).then((V)=>{if(V&&_.has(Y))s.add(o),K.setSessionTitle(o,V),q(`[bridge:title] server title for ${o}: ${V}`)}).catch((V)=>q(`[bridge:title] failed to fetch title for ${o}: ${V}`,{level:"error"}));let A=z.sessionTimeoutMs??BJ;if(A>0){let V=setTimeout(_K,A,Y,A,K,v,Fz);N.set(Y,V)}if(Zz)h.add(Y);t?.schedule(Y,U.session_ingress_token),Fz.done.then(e(Y,Ez,Fz));break}default:await I(),q(`[bridge:work] Unknown work type: ${m}, skipping`);break}if(G){let Y=a.signal();if($.non_exclusive_heartbeat_interval_ms>0)await jz(),await n($.non_exclusive_heartbeat_interval_ms,Y.signal);else if($.multisession_poll_interval_ms_at_capacity>0)await n($.multisession_poll_interval_ms_at_capacity,Y.signal);Y.cleanup()}}catch(H){if(R.aborted)break;if(H instanceof Mz){if(Wz=!0,Sz(H.errorType))K.logStatus(H.message);else if(uz(H))q(`[bridge:work] Suppressed 403 error: ${H.message}`);else K.logError(H.message),Rz(H);$z(Sz(H.errorType)?"info":"error","bridge_fatal_error",{status:H.status,error_type:H.errorType});break}let L=OJ(H);if(NK(H)||PK(H)){let G=Date.now();if(j!==null&&G-j>XJ(F))q(`[bridge:work] Detected system sleep (${Math.round((G-j)/1000)}s gap), resetting error budget`),$z("info","bridge_poll_sleep_detected",{gapMs:G-j}),S=null,Yz=0,Z=null,r=0;if(j=G,!S)S=G;let U=G-S;if(U>=F.connGiveUpMs){K.logError(`Server unreachable for ${Math.round(U/60000)} minutes, giving up.`),$z("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:U}),Wz=!0;break}Z=null,r=0,Yz=Yz?Math.min(Yz*2,F.connCapMs):F.connInitialMs;let I=gz(Yz);if(K.logVerbose(`Connection error, retrying in ${xz(I)} (${Math.round(U/1000)}s elapsed): ${L}`),K.updateReconnectingStatus(xz(I),Hz(U)),Az().non_exclusive_heartbeat_interval_ms>0)await jz();await n(I,R)}else{let G=Date.now();if(j!==null&&G-j>XJ(F))q(`[bridge:work] Detected system sleep (${Math.round((G-j)/1000)}s gap), resetting error budget`),$z("info","bridge_poll_sleep_detected",{gapMs:G-j}),S=null,Yz=0,Z=null,r=0;if(j=G,!Z)Z=G;let U=G-Z;if(U>=F.generalGiveUpMs){K.logError(`Persistent errors for ${Math.round(U/60000)} minutes, giving up.`),$z("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:U}),Wz=!0;break}S=null,Yz=0,r=r?Math.min(r*2,F.generalCapMs):F.generalInitialMs;let I=gz(r);if(K.logVerbose(`Poll failed, retrying in ${xz(I)} (${Math.round(U/1000)}s elapsed): ${L}`),K.updateReconnectingStatus(xz(I),Hz(U)),Az().non_exclusive_heartbeat_interval_ms>0)await jz();await n(I,R)}}}Xz(),K.clearStatus();let Kz=Date.now()-Qz;$z("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let c=new Set(_.keys());if(D)c.add(D);let Dz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),K.logStatus(`Shutting down ${_.size} active session(s)…`);let $=new Map(E);for(let[L,G]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${L}`),G.kill();let H=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((L)=>L.done)),n(F.shutdownGraceMs??30000,H.signal)]),H.abort();for(let[L,G]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${L}`),G.forceKill();for(let L of N.values())clearTimeout(L);if(N.clear(),t?.cancelAll(),b.size>0){let L=[...b.values()];b.clear(),q(`[bridge:shutdown] Cleaning up ${L.length} worktree(s)`),await Promise.allSettled(L.map((G)=>bz(G.worktreePath,G.worktreeBranch,G.gitRoot,G.hookBased)))}await Promise.allSettled([...$.entries()].map(([L,G])=>{return W.stopWork(J,G,!0).catch((U)=>K.logVerbose(`Failed to stop work ${G} for session ${L}: ${l(U)}`))}))}if(qz.size>0)await Promise.allSettled([...qz]);if(c.size>0)q(`[bridge:shutdown] Archiving ${c.size} session(s)`),await Promise.allSettled([...c].map(($)=>W.archiveSession(Dz.get($)??hz($)).catch((H)=>K.logVerbose(`Failed to archive session ${$}: ${l(H)}`))));try{await W.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),K.logVerbose("Environment deregistered.")}catch($){K.logVerbose(`Failed to deregister environment: ${l($)}`)}let{clearBridgePointer:Pz}=await import("./bridgePointer-1.1.34-5apzxa58.mjs");await Pz(z.dir),K.logVerbose("Environment offline.")}var FK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function NK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&FK.has(z.code))return!0;return!1}function PK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function gz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function xz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function Tz(z,J,X,W,O=1000){for(let C=1;C<=3;C++)try{await z.stopWork(J,X,!1),q(`[bridge:work] stopWork succeeded for workId=${X} on attempt ${C}/3`);return}catch(F){if(F instanceof Mz){if(uz(F))q(`[bridge:work] Suppressed stopWork 403 for ${X}: ${F.message}`);else W.logError(`Failed to stop work ${X}: ${F.message}`);$z("error","bridge_stop_work_failed",{attempts:C,fatal:!0});return}let D=l(F);if(C<3){let B=gz(O*Math.pow(2,C-1));W.logVerbose(`Failed to stop work ${X} (attempt ${C}/3), retrying in ${xz(B)}: ${D}`),await n(B)}else W.logError(`Failed to stop work ${X} after 3 attempts: ${D}`),$z("error","bridge_stop_work_failed",{attempts:3})}}function _K(z,J,X,W,O){q(`[bridge:session] sessionId=${z} timed out after ${Hz(J)}`),X.logSessionFailed(z,`Session timed out after ${Hz(J)}`),W.add(z),O.kill()}var CK=["session","same-dir","worktree"];function UK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${CK.join(", ")} (got: ${z??"<missing>"})`}function RK(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 AK(z){let J=!1,X=!1,W,O,K,C,F=!1,D,B,x,R,_=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")F=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")X=!0;else if(P==="--no-sandbox")X=!1;else if(P==="--debug-file"&&E+1<z.length)W=mz(z[++E]);else if(P.startsWith("--debug-file="))W=mz(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)K=z[++E];else if(P.startsWith("--permission-mode="))K=P.slice(18);else if(P==="--name"&&E+1<z.length)C=z[++E];else if(P.startsWith("--name="))C=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(D!==void 0)return M("--spawn may only be specified once");let f=P.startsWith("--spawn=")?P.slice(8):z[++E],N=UK(f);if(N==="single-session"||N==="same-dir"||N==="worktree")D=N;else return M(N)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(B!==void 0)return M("--capacity may only be specified once");let f=P.startsWith("--capacity=")?P.slice(11):z[++E],N=RK(f);if(typeof N==="number")B=N;else return M(N)}else if(P==="--create-session-in-dir")x=!0;else if(P==="--no-create-session-in-dir")x=!1;else return M(`Unknown argument: ${P}
38
+ Run 'claudin remote-control --help' for usage.`)}if(D==="single-session"&&B!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((R||_)&&(D!==void 0||B!==void 0||x!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(R&&_)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:X,debugFile:W,sessionTimeoutMs:O,permissionMode:K,name:C,spawnMode:D,capacity:B,createSessionInDir:x,sessionId:R,continueSession:_,help:F};function M(E){return{verbose:J,sandbox:X,debugFile:W,sessionTimeoutMs:O,permissionMode:K,name:C,spawnMode:D,capacity:B,createSessionInDir:x,sessionId:R,continueSession:_,help:F,error:E}}}async function DK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.34-bqhsed60.mjs"),J=z.join(", "),X=await yJ(),W=X?` --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: ${LJ})
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
+ `:"",C=`
47
+ Remote Control - Connect your local environment to claude.ai/code
48
+
49
+ USAGE
50
+ claudin remote-control [options]
51
+ OPTIONS
52
+ --name <name> Name for the session (shown in claude.ai/code)
53
+ --permission-mode <mode> Permission mode for spawned sessions
54
+ (${J})
55
+ --debug-file <path> Write debug logs to file
56
+ -v, --verbose Enable verbose output
57
+ -h, --help Show this help
58
+ ${W}
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
+ ${X?`
64
+ Remote Control runs as a persistent server that accepts multiple concurrent
65
+ sessions in the current directory. One session is pre-created on start so
66
+ you have somewhere to type immediately. Use --spawn=worktree to isolate
67
+ each on-demand session in its own git worktree, or --spawn=session for
68
+ the classic single-session mode (exits when that session ends). Press 'w'
69
+ during runtime to toggle between same-dir and worktree.
70
+ `:""}
71
+ NOTES
72
+ - You must be logged in with a Claude account that has a subscription
73
+ - Run \`claudin\` first in the directory to accept the workspace trust dialog
74
+ ${X?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
75
+ `:""}`;console.log(C)}var EK=80;function LK(z){let J=z.replace(/\s+/g," ").trim();return Cz(J,EK)}async function yK(z,J){let{getBridgeSession:X}=await import("./createSession-1.1.34-69d3ep6s.mjs");return(await X(z,{baseUrl:J}))?.title||void 0}async function FZ(z){let J=AK(z);if(J.help){await DK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:X,sandbox:W,debugFile:O,sessionTimeoutMs:K,permissionMode:C,name:F,spawnMode:D,capacity:B,createSessionInDir:x,sessionId:R,continueSession:_}=J,M=R,E,P=D!==void 0||B!==void 0||x!==void 0;if(C!==void 0){let{PERMISSION_MODES:A}=await import("./permissions-1.1.34-bqhsed60.mjs"),V=A;if(!V.includes(C))console.error(`Error: Invalid permission mode '${C}'. Valid modes: ${V.join(", ")}`),process.exit(1)}let f=mz("."),{enableConfigs:N,checkHasTrustDialogAccepted:w}=await import("./config-1.1.34-tqzmnvs7.mjs");N();let{initSinks:b}=await import("./sinks-1.1.34-ww0tcz6j.mjs");b();let v=await yJ();if(P&&!v)console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:s,setCwdState:a}=await import("./state-1.1.34-pymefs1m.mjs");if(s(f),a(f),!w())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${f} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:jz,checkAndRefreshOAuthTokenIfNeeded:h}=await import("./auth-1.1.34-mhmakxvf.mjs"),{getBridgeAccessToken:t,getBridgeBaseUrl:Qz}=await import("./bridgeConfig-1.1.34-kgr2qvyz.mjs");if(!t())console.error(FJ),process.exit(1);let{getGlobalConfig:Jz,saveGlobalConfig:Yz,getCurrentProjectConfig:r,saveCurrentProjectConfig:S}=await import("./config-1.1.34-tqzmnvs7.mjs");if(!Jz().remoteDialogSeen){let V=(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 k=await new Promise((u)=>{V.question("Enable Remote Control? (y/n) ",u)});if(V.close(),Yz((u)=>{if(u.remoteDialogSeen)return u;return{...u,remoteDialogSeen:!0}}),k.toLowerCase()!=="y"&&k.toLowerCase()!=="yes")process.exit(0)}let Z=Qz();if(Z.startsWith("http://")&&!Z.includes("localhost")&&!Z.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||Z,{getBranch:T,getRemoteUrl:Wz,findGitRoot:Nz}=await import("./git-1.1.34-p3qv0ed3.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.34-8s6pawxx.mjs"),Xz=Oz()||Nz(f)!==null,e=v?r().remoteControlSpawnMode:void 0;if(e==="worktree"&&!Xz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),e=void 0,S((A)=>{if(A.remoteControlSpawnMode===void 0)return A;return{...A,remoteControlSpawnMode:void 0}});if(v&&!e&&Xz&&D===void 0&&!M&&process.stdin.isTTY){let V=(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 k=await new Promise((Lz)=>{V.question("Choose [1/2] (default: 1): ",Lz)});V.close();let u=k.trim()==="2"?"worktree":"same-dir";e=u,S((Lz)=>{if(Lz.remoteControlSpawnMode===u)return Lz;return{...Lz,remoteControlSpawnMode:u}})}let Kz,c;if(M)c="single-session",Kz="resume";else if(D!==void 0)c=D,Kz="flag";else if(e!==void 0)c=e,Kz="saved";else c=v?"same-dir":"single-session",Kz="gate_default";let Dz=c==="single-session"?1:B??LJ,Pz=x??!0;if(!M){let{clearBridgePointer:A}=await import("./bridgePointer-1.1.34-5apzxa58.mjs");await A(f)}if(c==="worktree"&&!Xz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let $=await T(),H=await Wz(),L=XK(),G=WJ(),{handleOAuth401Error:U}=await import("./auth-1.1.34-mhmakxvf.mjs"),I=PJ({baseUrl:Z,getAccessToken:t,runnerVersion:"99.0.0",onDebug:q,onAuth401:U,getTrustedDeviceToken:qJ}),m=void 0,Y={dir:f,machineName:L,branch:$,gitRepoUrl:H,maxSessions:Dz,spawnMode:c,verbose:X,sandbox:W,bridgeId:G,workerType:"claude_code",environmentId:WJ(),reuseEnvironmentId:m,apiBaseUrl:Z,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:K};q(`[bridge:init] bridgeId=${G}${m?` reuseEnvironmentId=${m}`:""} dir=${f} branch=${$} gitRepoUrl=${H} machine=${L}`),q(`[bridge:init] apiBaseUrl=${Z} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${W}${O?` debugFile=${O}`:""}`);let y,g;try{let A=await I.registerBridgeEnvironment(Y);y=A.environment_id,g=A.environment_secret}catch(A){console.error(A instanceof Mz&&A.status===404?"Remote Control environments are not available for your account.":`Error: ${l(A)}`),process.exit(1)}q(`[bridge:init] Registered, server environmentId=${y}`);let i=Az();$z("info","bridge_started",{max_sessions:Y.maxSessions,sandbox:Y.sandbox,spawn_mode:Y.spawnMode});let Zz=YJ({execPath:process.execPath,scriptArgs:qK(),env:process.env,verbose:X,sandbox:W,debugFile:O,permissionMode:C,onDebug:q,onActivity:(A,V)=>{q(`[bridge:activity] sessionId=${A} ${V.type} ${V.summary}`)},onPermissionRequest:(A,V,k)=>{q(`[bridge:perm] sessionId=${A} tool=${V.request.tool_name} request_id=${V.request_id} (not auto-approving)`)}}),d=zJ({verbose:X}),{parseGitHubRepository:zz}=await import("./detectRepository-1.1.34-rqyapz8m.mjs"),Bz=H?zz(H):null,fz=Bz?Bz.split("/").pop():HK(f);d.setRepoInfo(fz,$);let o=c!=="single-session"&&Xz;if(o)d.setSpawnModeDisplay(c);let Uz=(A)=>{if(A[0]===3||A[0]===4){process.emit("SIGINT");return}if(A[0]===32){d.toggleQr();return}if(A[0]===119){if(!o)return;let V=Y.spawnMode==="same-dir"?"worktree":"same-dir";Y.spawnMode=V,d.logStatus(V==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),d.setSpawnModeDisplay(V),d.refreshDisplay(),S((k)=>{if(k.remoteControlSpawnMode===V)return k;return{...k,remoteControlSpawnMode:V}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Uz);let Fz=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Fz.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Fz.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let Gz=null;if(Pz){let{createBridgeSession:A}=await import("./createSession-1.1.34-69d3ep6s.mjs");try{if(Gz=await A({environmentId:y,title:F,events:[],gitRepoUrl:H,branch:$,signal:Fz.signal,baseUrl:Z,getAccessToken:t,permissionMode:C}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(V){q(`[bridge:init] Session creation failed (non-fatal): ${l(V)}`)}}let Vz=null;if(Gz&&c==="single-session"){let{writeBridgePointer:A}=await import("./bridgePointer-1.1.34-5apzxa58.mjs"),V={sessionId:Gz,environmentId:y,source:"standalone"};await A(Y.dir,V),Vz=setInterval(A,3600000,Y.dir,V),Vz.unref?.()}try{await BK(Y,y,g,I,Zz,d,Fz.signal,void 0,Gz??void 0,async()=>{return jz(),await h(),t()})}finally{if(Vz!==null)clearInterval(Vz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Uz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}export{BK as runBridgeLoop,AK as parseArgs,PK as isServerError,NK as isConnectionError,FZ as bridgeMain};
@@ -0,0 +1 @@
1
+ import{Aha as G,Bha as R,qha as Z,rha as $,vha as y,yha as C,zha as I}from"./cli-1.1.34-92kps6jn.mjs";import{Via as X,Wia as Y,_ia as L,qja as A,tja as k}from"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import{Sja as W,Xja as J}from"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import"./cli-1.1.34-4x915j9t.mjs";I();k();J();R();y();L();import{mkdir as f,readFile as N,stat as O,unlink as _,writeFile as E}from"fs/promises";import{dirname as T,join as M}from"path";var S=14400000,j=G(()=>C.object({sessionId:C.string(),environmentId:C.string(),source:C.enum(["standalone","repl"])}));function K(q){return M($(),Z(q),"bridge-pointer.json")}async function h(q,v){let x=K(q);try{await f(T(x),{recursive:!0}),await E(x,X(v),"utf8"),A(`[bridge:pointer] wrote ${x}`)}catch(H){A(`[bridge:pointer] write failed: ${H}`,{level:"warn"})}}async function l(q){let v=K(q),x,H;try{H=(await O(v)).mtimeMs,x=await N(v,"utf8")}catch{return null}let Q=j().safeParse(w(x));if(!Q.success)return A(`[bridge:pointer] invalid schema, clearing: ${v}`),await V(q),null;let U=Math.max(0,Date.now()-H);if(U>S)return A(`[bridge:pointer] stale (>4h mtime), clearing: ${v}`),await V(q),null;return{...Q.data,ageMs:U}}async function V(q){let v=K(q);try{await _(v),A(`[bridge:pointer] cleared ${v}`)}catch(x){if(!W(x))A(`[bridge:pointer] clear failed: ${x}`,{level:"warn"})}}function w(q){try{return Y(q)}catch{return null}}export{h as writeBridgePointer,l as readBridgePointer,K as getBridgePointerPath,V as clearBridgePointer,S as BRIDGE_POINTER_TTL_MS};
@@ -0,0 +1 @@
1
+ import{Qi as a,Ri as AJ}from"./cli-1.1.34-s4gsmtx9.mjs";import{Si as x,Ti as vJ}from"./cli-1.1.34-axnnzxpw.mjs";import{$t as l,AL as bJ,Cs as g,Ds as UJ,Dx as u,Fx as IJ,HG as c,IG as WJ,KC as m,MC as HJ,PP as r,SQ as o,US as s,VS as t,WS as DJ,_P as TJ,au as kJ,fR as hJ,gm as i,hm as QJ,uL as $}from"./cli-1.1.34-84707tma.mjs";import"./cli-1.1.34-sj1pcnn3.mjs";import"./cli-1.1.34-372a0qyj.mjs";import"./cli-1.1.34-vdk5kjz7.mjs";import"./cli-1.1.34-g0sqgp9m.mjs";import"./cli-1.1.34-fgbv1rw4.mjs";import"./cli-1.1.34-nxeb9r8s.mjs";import"./cli-1.1.34-9jn997h8.mjs";import"./cli-1.1.34-yfasvar9.mjs";import"./cli-1.1.34-9z887t80.mjs";import"./cli-1.1.34-c3w48hst.mjs";import"./cli-1.1.34-3rcacat5.mjs";import"./cli-1.1.34-20femz8z.mjs";import"./cli-1.1.34-fgx6ej2m.mjs";import{$X as S,IX as W,KX as b,bY as KJ,pY as NJ,wW as GJ}from"./cli-1.1.34-59csbz1a.mjs";import"./cli-1.1.34-vz14r55x.mjs";import"./cli-1.1.34-s9g6mekb.mjs";import"./cli-1.1.34-hpn89fzn.mjs";import"./cli-1.1.34-rqkzp4n2.mjs";import"./cli-1.1.34-z1htezxg.mjs";import"./cli-1.1.34-5ffnhvmt.mjs";import"./cli-1.1.34-ff6hyf5n.mjs";import"./cli-1.1.34-bt9brnrs.mjs";import"./cli-1.1.34-5ec767fj.mjs";import"./cli-1.1.34-k761g5m2.mjs";import{T1 as F,U1 as H,V1 as _}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as zJ}from"./cli-1.1.34-7ad0dt89.mjs";import"./cli-1.1.34-fnds3msv.mjs";import"./cli-1.1.34-yrk4mxjw.mjs";import"./cli-1.1.34-1xg52b7q.mjs";import"./cli-1.1.34-7bxexffs.mjs";import"./cli-1.1.34-70pxm3rb.mjs";import"./cli-1.1.34-4zj4kbw4.mjs";import"./cli-1.1.34-cp457g25.mjs";import"./cli-1.1.34-ajqsr81p.mjs";import"./cli-1.1.34-e7fd8zh6.mjs";import"./cli-1.1.34-dvx08sv2.mjs";import"./cli-1.1.34-hpt8kch4.mjs";import"./cli-1.1.34-9tctqya9.mjs";import"./cli-1.1.34-166q8s04.mjs";import"./cli-1.1.34-mbeaqq0q.mjs";import"./cli-1.1.34-cptp243m.mjs";import"./cli-1.1.34-vpwwhg8z.mjs";import{D_ as j,Nba as p,Oba as C,Tea as FJ,eca as ZJ}from"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import{Qja as f,Xja as YJ}from"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import{Eqa as R,Iqa as XJ}from"./cli-1.1.34-4x915j9t.mjs";function BJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=u(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=l();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F(c,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(qJ(V.messages)),Y=$();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:g(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 j((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();WJ();ZJ();TJ();IJ();DJ();QJ();vJ();NJ();kJ();FJ();YJ();bJ();hJ();AJ();UJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -0,0 +1,3 @@
1
+ import{eW as p,fW as f,gW as a,hW as S}from"./cli-1.1.34-20femz8z.mjs";import{D_ as d,Tea as C}from"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import{eia as m,fia as y,gia as b}from"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import{Iqa as g}from"./cli-1.1.34-4x915j9t.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
2
+
3
+ Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
@@ -0,0 +1,21 @@
1
+ import{qZ as u,sZ as Vz}from"./cli-1.1.34-rqkzp4n2.mjs";import{DZ as p,HZ as Qz}from"./cli-1.1.34-z1htezxg.mjs";import"./cli-1.1.34-5ffnhvmt.mjs";import{W3 as h,t4 as Nz}from"./cli-1.1.34-yrk4mxjw.mjs";import"./cli-1.1.34-1xg52b7q.mjs";import"./cli-1.1.34-7bxexffs.mjs";import"./cli-1.1.34-70pxm3rb.mjs";import"./cli-1.1.34-4zj4kbw4.mjs";import"./cli-1.1.34-hpt8kch4.mjs";import"./cli-1.1.34-166q8s04.mjs";import"./cli-1.1.34-mbeaqq0q.mjs";import"./cli-1.1.34-cptp243m.mjs";import{$fa as zz,Tfa as m,cga as c,fga as Jz}from"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import{qja as L,tja as e}from"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import{Rka as v,upa as r}from"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import{Iqa as s}from"./cli-1.1.34-4x915j9t.mjs";function Xz(z){if(!z)return"unknown";return z.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function q(z,N){return N.split(".").reduce((V,U)=>V!=null?V[U]:void 0,z)}async function b(z,N,V,U){let A=Date.now(),C;try{C=await fetch(z,{method:"POST",headers:N,body:JSON.stringify(V)})}catch(H){return{label:U,status:0,elapsed:Date.now()-A,headers:{},usage:null,responseId:null,error:H.message}}let $=Date.now()-A,G={};if(C.headers.forEach((H,O)=>{G[O]=H}),!C.ok){let H=await C.text().catch(()=>"");return{label:U,status:C.status,elapsed:$,headers:G,usage:null,responseId:null,error:H}}let P=await C.text(),D=null,_=null,x=z.endsWith("/responses");for(let H of P.split(`
2
+
3
+ `)){let O=H.split(`
4
+ `).map((w)=>w.trim()).filter(Boolean);if(x){let w=O.find((j)=>j.startsWith("event: ")),B=O.filter((j)=>j.startsWith("data: "));if(!w||!B.length)continue;let Z=w.slice(7).trim();if(Z==="response.completed"||Z==="response.incomplete")try{let j=JSON.parse(B.map((E)=>E.slice(6)).join(`
5
+ `));D=j?.response?.usage??null,_=j?.response?.id??null}catch{}}else for(let w of O){if(!w.startsWith("data: "))continue;let B=w.slice(6).trim();if(B==="[DONE]")continue;try{let Z=JSON.parse(B);if(Z.usage)D=Z.usage,_=Z.id??null}catch{}}}return{label:U,status:C.status,elapsed:$,headers:G,usage:D,responseId:_,error:null}}function y(z){let N=[`--- ${z.label} ---`];if(z.error)return N.push(` ERROR (HTTP ${z.status}): ${z.error.slice(0,200)}`),N.join(`
6
+ `);if(N.push(` HTTP ${z.status} — ${z.elapsed}ms`),z.responseId)N.push(` response.id: ${z.responseId}`);if(z.usage)N.push(" Usage:"),N.push(` ${JSON.stringify(z.usage,null,2).replace(/\n/g,`
7
+ `)}`);else N.push(" Usage: null");for(let V of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(z.headers[V])N.push(` ${V}: ${z.headers[V]}`);return N.join(`
8
+ `)}var Wz,M,R='Say "hello" and nothing else.',S=3000,Oz=async(z)=>{let N=(z??"").trim().split(/\s+/).filter(Boolean),V=N.includes("--no-key"),U=N.includes("--conv-id"),C=(N.find((J)=>!J.startsWith("--"))||void 0)??h(),$=m({model:C}),G=c(),P=G?.transport==="github_copilot";if(P)p();let D=await u(G),_=G?.apiKey??G?.extras?.githubToken??D.accessToken??"";if(!_)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 x=$.transport==="codex_responses",H=x?"/responses":"/chat/completions",O=`${$.baseUrl}${H}`,w=Xz($.resolvedModel),B=`${v()}:${w}`,Z={"Content-Type":"application/json",Authorization:`Bearer ${_}`,originator:"claudin"};if(P)Object.assign(Z,Wz);if(D.userAgent)Z["User-Agent"]=D.userAgent;if(D.deviceHeaders)Object.assign(Z,D.deviceHeaders);if(U)Z["x-grok-conv-id"]=B;let j;if(x)j={model:$.resolvedModel,instructions:M,input:[{type:"message",role:"user",content:[{type:"input_text",text:R}]}],stream:!0,...V?{}:{store:!1,prompt_cache_key:B}};else j={model:$.resolvedModel,messages:[{role:"system",content:M},{role:"user",content:R}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...V?{}:{store:!1,prompt_cache_key:B}};let E=[`[cache-probe] Starting cache probe${V?" (--no-key: cache params OMITTED)":""}`,` model: ${$.resolvedModel} (family: ${w})`,` transport: ${$.transport}`,` endpoint: ${O}`,` prompt_cache_key: ${V?"NOT SENT":B}`,` x-grok-conv-id: ${U?B:"NOT SENT"}`,` store: ${V?"NOT SENT":"false"}`,` system prompt: ~${Math.round(M.length/4)} tokens`,` delay between calls: ${S}ms`].join(`
11
+ `);L(E);let Q=await b(O,Z,j,"CALL 1 — Cold (no cache)");if(L(`[cache-probe]
12
+ ${y(Q)}`),Q.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${Q.status}
13
+ ${Q.error.slice(0,300)}
14
+
15
+ Full details in debug log.`};await new Promise((J)=>setTimeout(J,S));let W=await b(O,Z,j,"CALL 2 — Warm (cache expected)");L(`[cache-probe]
16
+ ${y(W)}`);let d=["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"],X=["[cache-probe] COMPARISON"];X.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),X.push(` ${"-".repeat(72)}`);for(let J of d){let Y=q(Q.usage,J),T=q(W.usage,J);if(Y===void 0&&T===void 0)continue;let o=typeof Y==="number"&&typeof T==="number"?T-Y:"";X.push(` ${J.padEnd(42)} ${String(Y??"-").padStart(8)} ${String(T??"-").padStart(8)} ${String(o).padStart(8)}`)}X.push(""),X.push(` Latency: ${Q.elapsed}ms → ${W.elapsed}ms (${W.elapsed-Q.elapsed>0?"+":""}${W.elapsed-Q.elapsed}ms)`);for(let J of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let Y=Q.headers[J],T=W.headers[J];if(Y||T)X.push(` ${J}: ${Y??"-"} → ${T??"-"}`)}let I=q(W.usage,"input_tokens_details.cached_tokens")??q(W.usage,"prompt_tokens_details.cached_tokens")??0,f=Q.usage?.input_tokens??Q.usage?.prompt_tokens??0,F=W.usage?.input_tokens??W.usage?.prompt_tokens??0,k;if(I>0){let J=F>0?Math.round(I/F*100):"?";k=`CACHE HIT: ${I} cached tokens (${J}% of input)`}else if(f===0&&F===0)k="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<Q.elapsed*0.6&&f>100)k=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/Q.elapsed)*100)}% faster but no cached_tokens reported`;else k="NO CACHE DETECTED";X.push(`
17
+ Verdict: ${k}`);function l(J){return{input_tokens:J?.input_tokens??0,output_tokens:J?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function t(J){return{input_tokens:J?.prompt_tokens??0,output_tokens:J?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:J?.prompt_tokens_details?.cached_tokens??0}}let g=x?l:t,i=g(Q.usage),K=g(W.usage);if(X.push(""),X.push(` --- What main's shim reports (${x?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),X.push(` Call 1: cache_read_input_tokens=${i.cache_read_input_tokens}`),X.push(` Call 2: cache_read_input_tokens=${K.cache_read_input_tokens}`),x&&I>0)X.push(` BUG: Server returned ${I} cached tokens but main's makeUsage() drops it → reports 0`);else if(!x&&K.cache_read_input_tokens>0)X.push(" OK: Chat Completions path on main correctly reads cached_tokens");L(X.join(`
18
+ `));let n=V?" (NO cache key sent)":"",a=x?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${$.resolvedModel} via ${x?"Responses API":"Chat Completions"}${n}`,"",`Call 1: ${Q.elapsed}ms, input=${f}, cached=${q(Q.usage,"input_tokens_details.cached_tokens")??q(Q.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${F}, cached=${I}`,"",k,"",`What main's ${a} reports:`,` Call 2 cache_read_input_tokens = ${K.cache_read_input_tokens}${x&&I>0?" ← BUG: server sent "+I+" but main drops it":""}`,"","Full details written to debug log."].join(`
19
+ `)}};var Zz=s(()=>{r();Jz();zz();e();Qz();Vz();Nz();Wz={"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"},M=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(z,N)=>`Rule ${N+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
+ `)});Zz();export{Oz as call};
@@ -0,0 +1,4 @@
1
+ import{OZ as P,PZ as Q,RZ as w,YZ as U,a0 as V,b0 as Y,c0 as Z,d0 as A}from"./cli-1.1.34-ff6hyf5n.mjs";import{Iqa as j}from"./cli-1.1.34-4x915j9t.mjs";function H(k,D){let I=new Date(k.timestamp).toISOString(),B=`${I.slice(0,10)} ${I.slice(11,19)}`,J=P(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${J}`}function L(k,D){return`${k.padEnd(18)}${Q(D)}`}var F=20,b=async()=>{let k=Z(),D=Y(),I=U();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(-F),J=k.length-B.length,q=["Cache stats",""];q.push(L("Current turn:",I)),q.push(L("Session total:",D));let G=V();if(G.events>0)q.push(`${"Server clears:".padEnd(18)}${G.events} event${G.events===1?"":"s"}, ${G.clearedToolUses} tool results, ${G.clearedInputTokens.toLocaleString("en-US")} input tokens cleared`);q.push(""),q.push(`Recent requests (${B.length}${J>0?` of ${k.length}, ${J} older omitted`:""}):`),q.push(" # time model cache");for(let[K,$]of B.entries())q.push(H($,k.length-B.length+K));if(B.some((K)=>!K.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 N=j(()=>{A();w()});N();export{b as call};
@@ -0,0 +1 @@
1
+ import{$h as b,_h as a}from"./cli-1.1.34-ctjatnq8.mjs";import"./cli-1.1.34-h3ysfavt.mjs";import"./cli-1.1.34-84707tma.mjs";import"./cli-1.1.34-sj1pcnn3.mjs";import"./cli-1.1.34-372a0qyj.mjs";import"./cli-1.1.34-vdk5kjz7.mjs";import"./cli-1.1.34-g0sqgp9m.mjs";import"./cli-1.1.34-fgbv1rw4.mjs";import"./cli-1.1.34-nxeb9r8s.mjs";import"./cli-1.1.34-9jn997h8.mjs";import"./cli-1.1.34-yfasvar9.mjs";import"./cli-1.1.34-9z887t80.mjs";import"./cli-1.1.34-c3w48hst.mjs";import"./cli-1.1.34-3rcacat5.mjs";import"./cli-1.1.34-20femz8z.mjs";import"./cli-1.1.34-fgx6ej2m.mjs";import"./cli-1.1.34-59csbz1a.mjs";import"./cli-1.1.34-vz14r55x.mjs";import"./cli-1.1.34-s9g6mekb.mjs";import"./cli-1.1.34-hpn89fzn.mjs";import"./cli-1.1.34-rqkzp4n2.mjs";import"./cli-1.1.34-z1htezxg.mjs";import"./cli-1.1.34-5ffnhvmt.mjs";import"./cli-1.1.34-ff6hyf5n.mjs";import"./cli-1.1.34-bt9brnrs.mjs";import"./cli-1.1.34-5ec767fj.mjs";import"./cli-1.1.34-k761g5m2.mjs";import"./cli-1.1.34-8vfey6b5.mjs";import"./cli-1.1.34-7ad0dt89.mjs";import"./cli-1.1.34-fnds3msv.mjs";import"./cli-1.1.34-yrk4mxjw.mjs";import"./cli-1.1.34-1xg52b7q.mjs";import"./cli-1.1.34-7bxexffs.mjs";import"./cli-1.1.34-70pxm3rb.mjs";import"./cli-1.1.34-4zj4kbw4.mjs";import"./cli-1.1.34-cp457g25.mjs";import"./cli-1.1.34-ajqsr81p.mjs";import"./cli-1.1.34-e7fd8zh6.mjs";import"./cli-1.1.34-dvx08sv2.mjs";import"./cli-1.1.34-hpt8kch4.mjs";import"./cli-1.1.34-9tctqya9.mjs";import"./cli-1.1.34-166q8s04.mjs";import"./cli-1.1.34-mbeaqq0q.mjs";import"./cli-1.1.34-cptp243m.mjs";import"./cli-1.1.34-vpwwhg8z.mjs";import"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import"./cli-1.1.34-4x915j9t.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1,3 @@
1
+ import{$n as Yz,An as p,Bn as Xz,Dt as j,Et as Bz,Jk as F,Kk as r,Ol as c,PS as P,SS as Kz,Tm as u,_n as l,fm as Qz,kn as W,ln as e,pB as Z,qB as Ez,qm as M,qn as v,uo as x,vm as s,vn as Uz,vo as zz,xn as Vz,yn as n}from"./cli-1.1.34-84707tma.mjs";import"./cli-1.1.34-sj1pcnn3.mjs";import"./cli-1.1.34-372a0qyj.mjs";import"./cli-1.1.34-vdk5kjz7.mjs";import"./cli-1.1.34-g0sqgp9m.mjs";import"./cli-1.1.34-fgbv1rw4.mjs";import"./cli-1.1.34-nxeb9r8s.mjs";import"./cli-1.1.34-9jn997h8.mjs";import"./cli-1.1.34-yfasvar9.mjs";import"./cli-1.1.34-9z887t80.mjs";import"./cli-1.1.34-c3w48hst.mjs";import"./cli-1.1.34-3rcacat5.mjs";import"./cli-1.1.34-20femz8z.mjs";import"./cli-1.1.34-fgx6ej2m.mjs";import"./cli-1.1.34-59csbz1a.mjs";import"./cli-1.1.34-vz14r55x.mjs";import"./cli-1.1.34-s9g6mekb.mjs";import"./cli-1.1.34-hpn89fzn.mjs";import"./cli-1.1.34-rqkzp4n2.mjs";import"./cli-1.1.34-z1htezxg.mjs";import"./cli-1.1.34-5ffnhvmt.mjs";import"./cli-1.1.34-ff6hyf5n.mjs";import"./cli-1.1.34-bt9brnrs.mjs";import"./cli-1.1.34-5ec767fj.mjs";import"./cli-1.1.34-k761g5m2.mjs";import"./cli-1.1.34-8vfey6b5.mjs";import"./cli-1.1.34-7ad0dt89.mjs";import"./cli-1.1.34-fnds3msv.mjs";import"./cli-1.1.34-yrk4mxjw.mjs";import"./cli-1.1.34-1xg52b7q.mjs";import{v6 as E,w6 as Lz}from"./cli-1.1.34-7bxexffs.mjs";import"./cli-1.1.34-70pxm3rb.mjs";import"./cli-1.1.34-4zj4kbw4.mjs";import"./cli-1.1.34-cp457g25.mjs";import"./cli-1.1.34-ajqsr81p.mjs";import"./cli-1.1.34-e7fd8zh6.mjs";import"./cli-1.1.34-dvx08sv2.mjs";import"./cli-1.1.34-hpt8kch4.mjs";import"./cli-1.1.34-9tctqya9.mjs";import"./cli-1.1.34-166q8s04.mjs";import"./cli-1.1.34-mbeaqq0q.mjs";import"./cli-1.1.34-cptp243m.mjs";import"./cli-1.1.34-vpwwhg8z.mjs";import{Kaa as d,nga as g,oea as R,rea as t,saa as y,sga as Nz}from"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import{sha as q,vha as o}from"./cli-1.1.34-92kps6jn.mjs";import{Eha as Y,Gha as f}from"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import{Rka as G,Soa as w,Uka as H,Wka as T,Xka as b,Zka as A,_ka as I,rka as C,ska as m,upa as O}from"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import{Iqa as $}from"./cli-1.1.34-4x915j9t.mjs";function h(){return k}function S(J){let B=Y();Z(J);let z=Y();try{process.chdir(z)}catch(N){throw Z(B),N}return H(G(),T()??q(b())),A(z),I(z),k=B,Jz(),{previousCwd:B,newCwd:z}}function Jz(){W(),P(),M.cache.clear?.(),F(),x.cache?.clear?.(),R.cache?.clear?.(),y.cache?.clear?.(),j()}var k=null;var D=$(()=>{s();e();r();Kz();zz();t();O();Bz();o();f();Ez();d()});import{dirname as Zz}from"node:path";function _z(J){let B=J.trim();if(!B)return{kind:"empty"};if(B==="-")return{kind:"previous"};return{kind:"path",path:B}}function $z(J,B,z){let N=[B?`${J.previousCwd} kept accessible for this session`:null,"transcript stays under the original project",z?"cancelled the pending /loop wakeup":null,"/cd - to return"].filter((V)=>V!==null);return`Moved this session to ${E.bold(J.newCwd)}
2
+ ${E.dim(N.join(" · "))}`}function L(J){return{type:"text",value:J}}async function uz(J,B,z=Gz){let N=_z(J);if(N.kind==="empty")return L(`Usage: ${E.bold("/cd <path>")} — moves this session to another directory.
3
+ ${E.dim("/cd - returns to the previous one.")}`);if(z.currentWorktreeSession())return L(`This session is inside a worktree. Use ${E.bold("ExitWorktree")} to leave it first, then ${E.bold("/cd")}.`);let V;if(N.kind==="previous"){let U=z.previousDir();if(!U)return L("This session has not moved yet, so there is no previous directory.");V=U}else V=N.path;let K=await z.resolveDirectory(V);if(K.resultType!=="success"){if(K.resultType==="notADirectory")return L(`${E.bold(K.directoryPath)} is not a directory. Did you mean ${E.bold(Zz(K.absolutePath))}?`);return L(p(K))}if(K.absolutePath===z.currentCwd())return L(`Already in ${E.bold(K.absolutePath)}.`);let a=z.hasPendingWakeup(),Q;try{Q=z.reroot(K.absolutePath)}catch(U){let X=U instanceof Error?U.message:"Unknown error";return g(Error(`/cd failed to move to ${K.absolutePath}: ${X}`)),L(`Could not move to ${E.bold(K.absolutePath)}: ${X}`)}let _=!u(Q.previousCwd,Q.newCwd);if(_){let U=v(B.getAppState().toolPermissionContext,{type:"addDirectories",directories:[Q.previousCwd],destination:"session"});B.setAppState((i)=>({...i,toolPermissionContext:U}));let X=C();if(!X.includes(Q.previousCwd))m([...X,Q.previousCwd])}return z.refreshSandbox(),L($z(Q,_,a))}var Gz;var Hz=$(()=>{Lz();Xz();Uz();Vz();O();Yz();D();f();Nz();Qz();Gz={currentWorktreeSession:c,resolveDirectory:n,reroot:S,previousDir:h,hasPendingWakeup:()=>w()!==null,currentCwd:Y,refreshSandbox:()=>l.refreshConfig()}});Hz();export{_z as parseCdTarget,$z as formatCdResult,uz as call};
@@ -0,0 +1 @@
1
+ import{Aca as A,f_ as k,g$ as V,h$ as W,i$ as N,k_ as J,nga as X,sga as H,xca as x}from"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import{Rja as b,Xja as y}from"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import"./cli-1.1.34-4x915j9t.mjs";A();y();J();H();N();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function v(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -0,0 +1 @@
1
+ import{Yh as b,Zh as h}from"./cli-1.1.34-hyya784q.mjs";import"./cli-1.1.34-ctjatnq8.mjs";import"./cli-1.1.34-7npd3as5.mjs";import"./cli-1.1.34-h3ysfavt.mjs";import"./cli-1.1.34-84707tma.mjs";import"./cli-1.1.34-sj1pcnn3.mjs";import"./cli-1.1.34-372a0qyj.mjs";import"./cli-1.1.34-vdk5kjz7.mjs";import"./cli-1.1.34-g0sqgp9m.mjs";import"./cli-1.1.34-fgbv1rw4.mjs";import"./cli-1.1.34-nxeb9r8s.mjs";import"./cli-1.1.34-9jn997h8.mjs";import"./cli-1.1.34-yfasvar9.mjs";import"./cli-1.1.34-9z887t80.mjs";import"./cli-1.1.34-c3w48hst.mjs";import"./cli-1.1.34-3rcacat5.mjs";import"./cli-1.1.34-20femz8z.mjs";import"./cli-1.1.34-fgx6ej2m.mjs";import"./cli-1.1.34-59csbz1a.mjs";import"./cli-1.1.34-vz14r55x.mjs";import"./cli-1.1.34-s9g6mekb.mjs";import"./cli-1.1.34-hpn89fzn.mjs";import"./cli-1.1.34-rqkzp4n2.mjs";import"./cli-1.1.34-z1htezxg.mjs";import"./cli-1.1.34-5ffnhvmt.mjs";import"./cli-1.1.34-ff6hyf5n.mjs";import"./cli-1.1.34-bt9brnrs.mjs";import"./cli-1.1.34-5ec767fj.mjs";import"./cli-1.1.34-k761g5m2.mjs";import"./cli-1.1.34-8vfey6b5.mjs";import"./cli-1.1.34-7ad0dt89.mjs";import"./cli-1.1.34-fnds3msv.mjs";import"./cli-1.1.34-yrk4mxjw.mjs";import"./cli-1.1.34-1xg52b7q.mjs";import"./cli-1.1.34-7bxexffs.mjs";import"./cli-1.1.34-70pxm3rb.mjs";import"./cli-1.1.34-4zj4kbw4.mjs";import"./cli-1.1.34-cp457g25.mjs";import"./cli-1.1.34-ajqsr81p.mjs";import"./cli-1.1.34-e7fd8zh6.mjs";import"./cli-1.1.34-dvx08sv2.mjs";import"./cli-1.1.34-hpt8kch4.mjs";import"./cli-1.1.34-9tctqya9.mjs";import"./cli-1.1.34-166q8s04.mjs";import"./cli-1.1.34-mbeaqq0q.mjs";import"./cli-1.1.34-cptp243m.mjs";import"./cli-1.1.34-vpwwhg8z.mjs";import"./cli-1.1.34-wwjkncsv.mjs";import"./cli-1.1.34-p5v4dwpg.mjs";import"./cli-1.1.34-37g65vk7.mjs";import"./cli-1.1.34-z1tmh10g.mjs";import"./cli-1.1.34-92kps6jn.mjs";import"./cli-1.1.34-0t1h2v5v.mjs";import"./cli-1.1.34-5t01yf6x.mjs";import"./cli-1.1.34-xwg0x7p4.mjs";import"./cli-1.1.34-fm4a40ta.mjs";import"./cli-1.1.34-d0sgyvr1.mjs";import"./cli-1.1.34-ev8ffgr9.mjs";import"./cli-1.1.34-qef4zhc3.mjs";import"./cli-1.1.34-n5t6xk0e.mjs";import"./cli-1.1.34-n5zh4wyg.mjs";import{Iqa as g}from"./cli-1.1.34-4x915j9t.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
@@ -0,0 +1 @@
1
+ import{J1 as a,K1 as b,L1 as c}from"./cli-1.1.34-5ec767fj.mjs";import"./cli-1.1.34-4x915j9t.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,2 @@
1
+ import{Cz as L,Mz as w,pz as y,qz as S,wz as h}from"./cli-1.1.34-84707tma.mjs";import{IX as U,KX as D,OX as v,pY as B,wW as l}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as G,U1 as H,V1 as W}from"./cli-1.1.34-8vfey6b5.mjs";import{Eqa as C,Iqa as M}from"./cli-1.1.34-4x915j9t.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{w();h();B();W();u=C(l(),1)});
2
+ export{x as lg,p as mg};
@@ -0,0 +1,9 @@
1
+ import{Aqa as su,Cqa as K_,Dqa as f_,zqa as V_}from"./cli-1.1.34-zpsaqq15.mjs";import{Gqa as H,Jqa as $_}from"./cli-1.1.34-4x915j9t.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 H8,D_ as I8,yu as J8,ou as K8};
@@ -0,0 +1,2 @@
1
+ function n(s,a=process.argv){for(let e=0;e<a.length;e++){let r=a[e];if(r?.startsWith(`${s}=`))return r.slice(s.length+1);if(r===s&&e+1<a.length)return a[e+1]}return}
2
+ export{n as gb};
@@ -0,0 +1,6 @@
1
+ import{Ii as ZJ,Ji as $J,Ki as qJ,Li as zJ,Mi as OJ}from"./cli-1.1.34-czhcyzgw.mjs";import{Ni as QJ,Oi as PJ}from"./cli-1.1.34-0mjf3pve.mjs";import{CA as u,wA as y,xA as b}from"./cli-1.1.34-84707tma.mjs";import{IX as P,KX as U,pY as DJ}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as Y,U1 as L,V1 as WJ}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as m}from"./cli-1.1.34-7ad0dt89.mjs";import{K9 as D,Kaa as HJ,L9 as JJ,oaa as x,oda as l,qaa as c,waa as n,wda as BJ}from"./cli-1.1.34-wwjkncsv.mjs";import{Pga as IJ,yga as YJ,zga as g}from"./cli-1.1.34-p5v4dwpg.mjs";import{Eqa as j,Iqa as I}from"./cli-1.1.34-4x915j9t.mjs";function h(J,Z){let{perFileStats:q}=J,z=[];for(let[Q,$]of q){let K=Z.get(Q),M=$.isUntracked??!1,A=!$.isBinary&&!M&&!K&&!$.renamedFrom,H=$.added+$.removed,V=!A&&!$.isBinary&&H>AJ;z.push({path:Q,linesAdded:$.added,linesRemoved:$.removed,isBinary:$.isBinary,isLargeFile:A,isTruncated:V,isUntracked:M,...$.renamedFrom?{renamedFrom:$.renamedFrom}:{}})}return z.sort((Q,$)=>Q.path.localeCompare($.path)),z}var S,AJ=400;var f=I(()=>{u();S=j(m(),1)});import{basename as w}from"path";function gJ(J,Z){let[q,z]=O.useState([]),[Q,$]=O.useState([]),[K,M]=O.useState(!0),[A,H]=O.useState(0),V=J.join(`
2
+ `),X=Z.join(`
3
+ `);O.useEffect(()=>{let B=!1;M(!0);async function G(){let F=V?V.split(`
4
+ `):[],E=X?X.split(`
5
+ `):[],v=(await Promise.all(E.map((N)=>c(N)))).flat(),_=x(v).filter((N)=>!F.includes(N)).sort((N,C)=>w(N).localeCompare(w(C))),k=x([...F,..._]),T=await Promise.all(k.map(async(N)=>{let[C,p,UJ]=await Promise.all([y(N),b(N),n(N)]);return{root:N,name:w(N),branch:UJ,files:C?h(C,p):[],hunks:p}}));if(!B)z(T),$(k),M(!1)}return G().catch(()=>{if(!B)z([]),$([]),M(!1)}),()=>{B=!0}},[V,X,A]);let W=O.useCallback(()=>H((B)=>B+1),[]);return{groups:q,roots:Q,loading:K,refresh:W}}var O;var VJ=I(()=>{HJ();u();f();O=j(m(),1)});import{basename as d}from"path";function a(J,Z,q){if(J===0)return"";return Z.join("")+(q?NJ:i)}function r(J){return{name:J,dirs:new Map,files:[]}}function GJ(J){let Z=r("");for(let q of J){let z=q.path.split("/");z.pop();let Q=Z;for(let $ of z){let K=Q.dirs.get($);if(!K)K=r($),Q.dirs.set($,K);Q=K}Q.files.push(q)}return Z}function o(J,Z,q,z,Q,$,K,M){let A=[...J.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...J.files].sort((X,W)=>d(X.path).localeCompare(d(W.path))),V=H.length>0;for(let X=0;X<A.length;X++){let W=A[X],B=W.name,G=Z?`${Z}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let _=W.dirs.values().next().value;B=`${B}/${_.name}`,G=`${G}/${_.name}`,W=_}let F=X===A.length-1&&!V,E=`${Q}\x00${G}`,v=z.has(E);if(K.push({kind:"dir",key:E,label:B,depth:q,collapsed:v,guides:a(q,M,F)}),!v){let _=q>=1?[...M,F?_J:i]:M;o(W,G,q+1,z,Q,$,K,_)}}for(let X=0;X<H.length;X++){let W=H[X],B=X===H.length-1;K.push({kind:"file",file:W,root:Q,hunks:$(W.path),depth:q,guides:a(q,M,B)})}}function vJ(J,Z){let q=[],z=J.length>1,Q=0;for(let $ of J){let K=z?1:0;if(z){let M=Z.has($.root);if(q.push({kind:"group",key:$.root,name:$.name,meta:`${$.files.length} ${l($.files.length,"file")} changed`,branch:$.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}o(GJ($.files),"",K,Z,$.root,(M)=>$.hunks.get(M)??[],q,[])}return q}var i="│ ",NJ="└ ",_J=" ";var t=I(()=>{BJ()});function cJ(J){let Z=0;for(let q=0;q<J.length;q++)Z=Math.imul(Z,31)+J.charCodeAt(q)|0;return R[Math.abs(Z)%R.length]}function s(J){let Z=R.length;return R[(J%Z+Z)%Z]}var R;var e=I(()=>{R=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function XJ(){let J=QJ();return{enabled:J,fileIcon:(Z)=>J?qJ(Z):"",fileIconColor:(Z)=>J?zJ(Z):void 0,folderIcon:(Z)=>J?Z?$J:ZJ:"",repoIcon:J?FJ:"",branchIcon:J?EJ:"",pointer:D.pointer}}var FJ="",EJ="";var MJ=I(()=>{JJ();OJ();PJ()});import{basename as LJ}from"path";function kJ(J,Z,q){if(J<=q)return{start:0,end:J};let z=Math.max(0,Z-Math.floor(q/2)),Q=z+q;if(Q>J)Q=J,z=Math.max(0,Q-q);return{start:z,end:Q}}function zZ(J){return J.flatMap((Z)=>Z.files)}function QZ({rows:J,selectedIndex:Z,maxVisible:q,width:z,statusByPath:Q,alignFiles:$}){let K=KJ.useMemo(XJ,[]),M=J.length;if(M===0)return Y(U,{dimColor:!0,children:"No changed files"});let{start:A,end:H}=kJ(M,Z,q),V=[];for(let X=A;X<H;X++){let W=J[X];V.push(Y(CJ,{row:W,isSelected:X===Z,width:z,glyphs:K,alignFiles:$,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(P,{flexDirection:"column",children:[A>0&&Y(U,{dimColor:!0,children:` ↑ ${A} more`}),V,H<M&&Y(U,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function CJ({row:J,isSelected:Z,width:q,glyphs:z,statusColor:Q,alignFiles:$}){if(J.kind==="group"){let E=Z?`${z.pointer} `:" ",v=J.collapsed?D.triangleRight:D.triangleDown;return L(U,{dimColor:!Z,bold:Z,children:[`${E}${v} `,z.repoIcon&&Y(U,{color:s(J.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),J.name," ",Y(U,{bold:!0,children:J.meta}),J.branch&&Y(U,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${J.branch}`})]})}let K=Z?`${z.pointer} `:" ",M=J.guides,A=2+J.depth*2;if(J.kind==="dir"){let E=J.collapsed?D.triangleRight:D.triangleDown,v=z.folderIcon(!J.collapsed),_=v?`${v} `:"",k=Math.max(4,q-A-2-(_?2:0)-1),T=g(J.label,k);return L(P,{width:q,flexDirection:"row",children:[Y(P,{flexShrink:1,overflow:"hidden",children:L(U,{wrap:"truncate",bold:Z,inverse:Z,children:[K,Y(U,{dimColor:!Z,children:M}),`${E} ${_}${T}`]})}),Y(P,{flexGrow:1})]})}let H=z.fileIcon(J.file.path),V=H?`${H} `:"",X=Z?void 0:z.fileIconColor(J.file.path),W=$?" ":"",B=J.file.isBinary||J.file.isLargeFile||J.file.renamedFrom?9:0,G=Math.max(4,q-A-W.length-(V?2:0)-B-1),F=J.label?g(J.label,G):YJ(LJ(J.file.path),G);return L(P,{width:q,flexDirection:"row",children:[Y(P,{flexShrink:1,overflow:"hidden",children:L(U,{wrap:"truncate",bold:Z,inverse:Z,children:[K,Y(U,{dimColor:!Z,children:M}),W,X?Y(U,{color:X,children:V}):V,Q&&!Z?Y(U,{color:Q,children:F}):F]})}),Y(P,{flexGrow:1}),Y(P,{flexShrink:0,children:Y(RJ,{file:J.file,isSelected:Z})})]})}function RJ({file:J,isSelected:Z}){if(J.isBinary)return Y(U,{dimColor:!Z,italic:!0,wrap:"truncate",children:"binary"});if(J.isLargeFile)return Y(U,{dimColor:!Z,italic:!0,wrap:"truncate",children:"large"});if(J.renamedFrom)return Y(U,{dimColor:!Z,italic:!0,wrap:"truncate",children:"renamed"});return null}var KJ,qZ=80;var TJ=I(()=>{JJ();DJ();IJ();e();t();MJ();WJ();KJ=j(m(),1)});function WZ(J,Z){return Z+J.split("\x1B[0m").join("\x1B[0m"+Z).split("\x1B[49m").join(Z)+"\x1B[49m"}var jJ=()=>{};
6
+ export{gJ as Eh,VJ as Fh,XJ as Gh,MJ as Hh,cJ as Ih,e as Jh,vJ as Kh,t as Lh,qZ as Mh,zZ as Nh,QZ as Oh,TJ as Ph,WZ as Qh,jJ as Rh};
@@ -0,0 +1,2 @@
1
+ import{KJ as Y,fR as R,kk as Q,lk as I,sm as W,vm as P}from"./cli-1.1.34-84707tma.mjs";import{tga as B,uga as f}from"./cli-1.1.34-p5v4dwpg.mjs";import{Nha as H,Oha as J,gia as F}from"./cli-1.1.34-0t1h2v5v.mjs";import{Rka as x,upa as $}from"./cli-1.1.34-qef4zhc3.mjs";import{Iqa as Z}from"./cli-1.1.34-4x915j9t.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as Re,V as Se,X as Te,r as Ue,w as Ve,T as We,G as Xe};
@@ -0,0 +1,2 @@
1
+ import{bka as B,cka as H,jka as V}from"./cli-1.1.34-ev8ffgr9.mjs";import{Iqa as Q}from"./cli-1.1.34-4x915j9t.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
+ export{$ as Ni,Y as Oi};
@@ -0,0 +1,2 @@
1
+ import{$ka as F,Xka as z,upa as I}from"./cli-1.1.34-qef4zhc3.mjs";import{Iqa as E}from"./cli-1.1.34-4x915j9t.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="fork-boilerplate",h="Your directive: ",l,w;var N=E(()=>{l=["help","-h","--help"],w=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{U as Cha,K as Dha,V as Eha,W as Fha,M as Gha,Y as Hha,Z as Iha,$ as Jha,j as Kha,q as Lha,B as Mha,L as Nha,R as Oha,_ as Pha,b as Qha,x as Rha,A as Sha,T as Tha,k as Uha,p as Vha,u as Wha,v as Xha,y as Yha,f as Zha,C as _ha,S as $ha,O as aia,m as bia,g as cia,h as dia,l as eia,w as fia,N as gia};
@@ -0,0 +1,2 @@
1
+ import{A9 as $,B9 as T,w9 as _}from"./cli-1.1.34-vpwwhg8z.mjs";import{D_ as W,F_ as V,Kaa as D,S$ as U,Tea as j,kaa as Z,laa as w,maa as k,v$ as Y}from"./cli-1.1.34-wwjkncsv.mjs";import{qja as N,tja as M}from"./cli-1.1.34-xwg0x7p4.mjs";import{Xka as X,upa as O}from"./cli-1.1.34-qef4zhc3.mjs";O();j();M();T();U();w();D();import{realpath as x}from"fs/promises";async function y(){try{let q=await _();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=k(A)??A,B;try{B=(await x(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function f(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(Y));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Z(q);if(!I)return!1;let z=$(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function l(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
2
+ export{y,f as z,P as A,d as B,l as C};
@@ -0,0 +1,2 @@
1
+ import{Fd as O,Gd as Q,Jd as U,Kd as $}from"./cli-1.1.34-1m5v3ffj.mjs";import{$E as N,lF as _}from"./cli-1.1.34-84707tma.mjs";import{IX as G,KX as w,pY as Z}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as q,U1 as F,V1 as K}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as Y}from"./cli-1.1.34-7ad0dt89.mjs";import{Eqa as W,Iqa as X}from"./cli-1.1.34-4x915j9t.mjs";function R({enabled:J,onDismiss:H}){let[z,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||z.kind==="hidden")return null;if(z.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(w,{dimColor:!0,children:"Copying API tokens and provider profiles."})]});if(z.kind==="success"||z.kind==="error"){let I=z.kind==="success"?"success":"warning",E=z.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:I,bold:!0,children:E}),q(w,{children:Q(z.report)}),q(w,{dimColor:!0,children:"Next: /import brings skills, MCP servers, agents and slash commands — from Claude Code, and from Codex, Gemini CLI, Qwen Code, opencode, Kimi CLI and Cursor."})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(w,{children:"Copy the Claude Code sign-in — API tokens and provider profiles — into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Copy my sign-in",description:"Tokens only. Run /import for skills, MCP, agents."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(I)=>{if(I==="skip"){U(),A({kind:"hidden"}),H?.("skipped");return}A({kind:"running"}),(async()=>{let E=await O();A({kind:E.errors.length===0?"success":"error",report:E}),H?.("migrated")})()},onCancel:()=>{A({kind:"hidden"}),H?.("skipped")},visibleOptionCount:2})]})}var V;var f=X(()=>{Z();$();_();K();V=W(Y(),1)});
2
+ export{R as Dd,f as Ed};
@@ -0,0 +1,3 @@
1
+ function j(b){if(b)console.error(b);process.exit(1);return}function k(b){if(b)process.stdout.write(b+`
2
+ `);process.exit(0);return}
3
+ export{j as n,k as o};