claude-code-best 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/README.md +30 -29
  2. package/dist/{chunk-hph307n4.js → chunk-03v6skhg.js} +26 -26
  3. package/dist/{chunk-vank0acb.js → chunk-040fs3bs.js} +3 -3
  4. package/dist/chunk-04tm5tgb.js +129 -0
  5. package/dist/{chunk-ewfnr2kc.js → chunk-07t4kz2e.js} +63 -56
  6. package/dist/{chunk-dmsneaaq.js → chunk-0bmy4kjm.js} +1 -1
  7. package/dist/{chunk-07hme8g1.js → chunk-0j5m6c68.js} +3 -3
  8. package/dist/{chunk-8rvn67de.js → chunk-0rbwrjqk.js} +66 -59
  9. package/dist/{chunk-c0fka9kt.js → chunk-0rd853rs.js} +63 -56
  10. package/dist/{chunk-ec9bfefg.js → chunk-0rjgkz6a.js} +3 -3
  11. package/dist/{chunk-t3jsc3b4.js → chunk-0rjxhydk.js} +65 -58
  12. package/dist/{chunk-k3h49w53.js → chunk-0s5rp3xp.js} +2 -2
  13. package/dist/{chunk-bgc5qnd6.js → chunk-0sz4ykc8.js} +19 -12
  14. package/dist/chunk-0v61f8bw.js +28 -0
  15. package/dist/{chunk-8wn7137w.js → chunk-0xbnw7e9.js} +2 -2
  16. package/dist/{chunk-26naqvnf.js → chunk-11q4j70f.js} +5 -5
  17. package/dist/{chunk-6b6pv595.js → chunk-12yhesm9.js} +2 -2
  18. package/dist/chunk-19sabysw.js +122 -0
  19. package/dist/{chunk-qszmebqw.js → chunk-1bn94cge.js} +2 -2
  20. package/dist/chunk-1cmzf5f7.js +37 -0
  21. package/dist/{chunk-za24x8e6.js → chunk-1dh9y2g9.js} +306 -151
  22. package/dist/{chunk-ns5ckn0j.js → chunk-1fexraxj.js} +1 -1
  23. package/dist/{chunk-r87w8r5v.js → chunk-1mrw14pd.js} +7 -7
  24. package/dist/chunk-1qzt23et.js +8 -0
  25. package/dist/chunk-1z9bmera.js +8 -0
  26. package/dist/{chunk-20tkh843.js → chunk-221qh3ba.js} +63 -56
  27. package/dist/{chunk-x4azk52n.js → chunk-2501y0qn.js} +21 -21
  28. package/dist/{chunk-tkwtc12m.js → chunk-26bxxwf6.js} +4 -4
  29. package/dist/{chunk-jwa7qf81.js → chunk-27hsrkpd.js} +4 -4
  30. package/dist/{chunk-ab8ddz4h.js → chunk-2by46aay.js} +9 -9
  31. package/dist/{chunk-jgdm5p7t.js → chunk-2cyjtt9z.js} +2 -2
  32. package/dist/{chunk-enq2chfq.js → chunk-2e6jz0ej.js} +3 -3
  33. package/dist/{chunk-7vp42apg.js → chunk-2nvs8639.js} +64 -57
  34. package/dist/{chunk-n9p0ss91.js → chunk-2pr8dmkw.js} +1565 -749
  35. package/dist/{chunk-yspxy3e8.js → chunk-2q1gcvk9.js} +10 -10
  36. package/dist/{chunk-0y082g7m.js → chunk-2q7ww4pa.js} +42 -42
  37. package/dist/chunk-2qg5ewk3.js +207 -0
  38. package/dist/chunk-2t26mfb1.js +80 -0
  39. package/dist/{chunk-x916qx2c.js → chunk-2wa6knad.js} +64 -57
  40. package/dist/chunk-2xcczxbp.js +128 -0
  41. package/dist/{chunk-y3f0q1yz.js → chunk-2y22jqr5.js} +9 -9
  42. package/dist/chunk-37c07frr.js +94 -0
  43. package/dist/{chunk-2f1k60ye.js → chunk-399dvtfq.js} +159 -59
  44. package/dist/chunk-3f8xw8t7.js +26 -0
  45. package/dist/{chunk-wm3yj6z2.js → chunk-3g9nhh30.js} +2 -2
  46. package/dist/chunk-3gbmfs3p.js +140 -0
  47. package/dist/{chunk-nwg30c8d.js → chunk-3gttavbe.js} +34 -44
  48. package/dist/chunk-3pk2fc73.js +514 -0
  49. package/dist/{chunk-p90f2nc9.js → chunk-3sag2vww.js} +20 -20
  50. package/dist/{chunk-7v0fvjcw.js → chunk-3skmxk2y.js} +63 -56
  51. package/dist/{chunk-caey4y8f.js → chunk-3t4w9ysv.js} +11 -11
  52. package/dist/{chunk-c81hswwd.js → chunk-3wt9ytsw.js} +6 -6
  53. package/dist/{chunk-03geymck.js → chunk-3ymerb20.js} +64 -57
  54. package/dist/{chunk-r4v9t688.js → chunk-3z4dcst0.js} +22 -22
  55. package/dist/{chunk-krrxrzr4.js → chunk-40n35nr8.js} +63 -56
  56. package/dist/{chunk-7d11053z.js → chunk-42176dsb.js} +2 -2
  57. package/dist/{chunk-z3q0mr1s.js → chunk-434mgf3p.js} +63 -56
  58. package/dist/{chunk-cfxan8nc.js → chunk-48ef3q17.js} +65 -58
  59. package/dist/{chunk-7rzk7d37.js → chunk-4c843krn.js} +25 -9
  60. package/dist/chunk-4f3pde4x.js +583 -0
  61. package/dist/{chunk-s17095ng.js → chunk-4h87abvn.js} +22 -22
  62. package/dist/chunk-4k37jfk7.js +342 -0
  63. package/dist/{chunk-brjsspt6.js → chunk-4qzt1dqf.js} +21 -21
  64. package/dist/{chunk-sckpstmv.js → chunk-5175g5we.js} +64 -57
  65. package/dist/{chunk-x9w1bv4a.js → chunk-59m2hkn3.js} +5 -5
  66. package/dist/{chunk-4bkr7cdb.js → chunk-5k004pfz.js} +21 -21
  67. package/dist/chunk-5q9cm9at.js +195 -0
  68. package/dist/{chunk-b3v7tk69.js → chunk-5w9eevss.js} +1 -1
  69. package/dist/{chunk-t5ywz5f9.js → chunk-5wsx54ya.js} +66 -59
  70. package/dist/{chunk-4fghnb4h.js → chunk-64m2p0fr.js} +1 -1
  71. package/dist/{chunk-05dy61pz.js → chunk-67f16jpf.js} +14 -25
  72. package/dist/chunk-6c6kdarp.js +226 -0
  73. package/dist/{chunk-jkpnx6d7.js → chunk-6f8rdjpr.js} +2 -2
  74. package/dist/{chunk-rf16rpg8.js → chunk-6h2zne6a.js} +14 -8
  75. package/dist/{chunk-qgvhan2t.js → chunk-6mb3gprt.js} +63 -56
  76. package/dist/chunk-6phbkzpx.js +347 -0
  77. package/dist/{chunk-mp9vfdcd.js → chunk-6q7v03rd.js} +1 -1
  78. package/dist/{chunk-sbzpht0c.js → chunk-6veqdcnr.js} +1 -1
  79. package/dist/{chunk-7bsrkxhf.js → chunk-6xnyvynx.js} +63 -56
  80. package/dist/{chunk-8atss5rz.js → chunk-70ftrmj8.js} +7 -7
  81. package/dist/{chunk-2baftj07.js → chunk-73bv553k.js} +71 -64
  82. package/dist/{chunk-x9jtstht.js → chunk-73yp3q0h.js} +18 -16
  83. package/dist/{chunk-1kq0x8dz.js → chunk-75hd7k1p.js} +14 -10
  84. package/dist/{chunk-pzrjj7h0.js → chunk-79bf1qvf.js} +5 -5
  85. package/dist/{chunk-pm491jb5.js → chunk-7at6y3z2.js} +3 -3
  86. package/dist/chunk-7dv9n7ge.js +91 -0
  87. package/dist/{chunk-47jk53ef.js → chunk-7f2k1ddn.js} +2 -2
  88. package/dist/{chunk-3y5jpqdf.js → chunk-7j7fbmf2.js} +8 -8
  89. package/dist/{chunk-wgcj2cgs.js → chunk-7jx306p8.js} +20 -20
  90. package/dist/{chunk-fgs4axa8.js → chunk-7mer0e9z.js} +20 -20
  91. package/dist/{chunk-yancgz33.js → chunk-7napdtem.js} +22 -22
  92. package/dist/{chunk-hzam3v9n.js → chunk-816j64jc.js} +5 -5
  93. package/dist/{chunk-dvw8byhq.js → chunk-8450evyk.js} +1 -1
  94. package/dist/{chunk-9f3x4r07.js → chunk-899vev03.js} +6 -6
  95. package/dist/{chunk-5e8w9mhp.js → chunk-8ktgxh4r.js} +5 -5
  96. package/dist/{chunk-6as82hge.js → chunk-8kzqyyjd.js} +1 -1
  97. package/dist/{chunk-ebhvnagj.js → chunk-8qraqb46.js} +2 -2
  98. package/dist/{chunk-h7cp4wy3.js → chunk-8rpvgrmr.js} +64 -57
  99. package/dist/{chunk-awhw6wp5.js → chunk-8scfbgn7.js} +137 -92
  100. package/dist/chunk-8vwc039q.js +94 -0
  101. package/dist/{chunk-8qrr3jhc.js → chunk-906fcbs0.js} +10 -10
  102. package/dist/{chunk-r6hgmetw.js → chunk-91xvmecy.js} +20 -20
  103. package/dist/{chunk-j65n711w.js → chunk-94w3b0ds.js} +3 -3
  104. package/dist/{chunk-temejnge.js → chunk-968vbp44.js} +4 -4
  105. package/dist/chunk-98n19k9z.js +136 -0
  106. package/dist/chunk-99qkqkb3.js +126 -0
  107. package/dist/{chunk-vyhzvqzc.js → chunk-9b41k3g2.js} +4 -4
  108. package/dist/{chunk-y6jp6ajk.js → chunk-9cg1cswh.js} +64 -57
  109. package/dist/{chunk-24dgse44.js → chunk-9d7dhwhn.js} +3 -3
  110. package/dist/chunk-9h87btmg.js +123 -0
  111. package/dist/{chunk-5gvt170a.js → chunk-9mvk4gyw.js} +1 -1
  112. package/dist/{chunk-3x9ewb0c.js → chunk-9nqj2261.js} +2 -2
  113. package/dist/{chunk-mt1zbwpm.js → chunk-9q44k0j3.js} +21 -21
  114. package/dist/{chunk-vn6fxqtx.js → chunk-9qa0wks3.js} +64 -57
  115. package/dist/chunk-9qfgk3ey.js +203 -0
  116. package/dist/{chunk-svkdak63.js → chunk-9s6wjjgc.js} +6 -6
  117. package/dist/{chunk-3rdscn7v.js → chunk-9sezj2s0.js} +10 -10
  118. package/dist/chunk-9sq8hkpk.js +8 -0
  119. package/dist/{chunk-pstn17ps.js → chunk-9txcrk0d.js} +69 -62
  120. package/dist/{chunk-pzzr97ff.js → chunk-9w4zt45w.js} +22 -22
  121. package/dist/{chunk-jvq0h0fq.js → chunk-9wm27ekn.js} +3 -3
  122. package/dist/{chunk-2x9v6ryw.js → chunk-9z8x61ch.js} +5 -3
  123. package/dist/{chunk-e1awvmbq.js → chunk-a0kvb5h1.js} +6 -6
  124. package/dist/{chunk-zzwvnewd.js → chunk-a1gr9gv9.js} +11 -11
  125. package/dist/{chunk-7w71dt0w.js → chunk-a2yz9sk4.js} +19 -4
  126. package/dist/{chunk-kh3eed6x.js → chunk-a6a879pe.js} +6 -6
  127. package/dist/{chunk-h724wqmb.js → chunk-a8ea1qyx.js} +63 -56
  128. package/dist/chunk-ab9h55e7.js +27 -0
  129. package/dist/{chunk-m2akjkdt.js → chunk-abcmnpw1.js} +6118 -2774
  130. package/dist/{chunk-rqf8xzbe.js → chunk-acad1ptb.js} +1 -1
  131. package/dist/chunk-aggcq5pt.js +13 -0
  132. package/dist/{chunk-tqgr4vfr.js → chunk-apefr3y8.js} +32 -32
  133. package/dist/{chunk-8g20wmye.js → chunk-argtwy1f.js} +5 -5
  134. package/dist/{chunk-evqj01ne.js → chunk-as6qggjr.js} +66 -59
  135. package/dist/{chunk-rfk6dz01.js → chunk-avv2r6q3.js} +6 -6
  136. package/dist/{chunk-v0bnnvkk.js → chunk-awxdzm87.js} +63 -56
  137. package/dist/chunk-azs4mq8s.js +185 -0
  138. package/dist/{chunk-8axk7tcz.js → chunk-b1tg76s0.js} +26 -26
  139. package/dist/chunk-b2meyyfn.js +126 -0
  140. package/dist/{chunk-6g935wma.js → chunk-b34nmtsh.js} +3 -3
  141. package/dist/chunk-b52gqznc.js +41 -0
  142. package/dist/{chunk-jejc5yrq.js → chunk-b607fyhm.js} +21 -21
  143. package/dist/{chunk-05qw4srn.js → chunk-bbnnxn7n.js} +63 -56
  144. package/dist/{chunk-1aaad6af.js → chunk-bc7vdtyx.js} +2 -2
  145. package/dist/{chunk-pj7pgttc.js → chunk-bd8h3bdx.js} +63 -56
  146. package/dist/{chunk-stfjvnbc.js → chunk-bedpg2b2.js} +19 -96
  147. package/dist/{chunk-zzn4hdgx.js → chunk-bftqj0aq.js} +64 -57
  148. package/dist/{chunk-17h7bnca.js → chunk-bn35xrzj.js} +7 -7
  149. package/dist/{chunk-tegg6r4t.js → chunk-bn99g0q6.js} +1 -1
  150. package/dist/{chunk-3hvpadv2.js → chunk-bqt5ykf8.js} +21 -21
  151. package/dist/{chunk-954x38qh.js → chunk-bvr12bqd.js} +3 -3
  152. package/dist/chunk-c12prd7j.js +127 -0
  153. package/dist/{chunk-ck7414y9.js → chunk-c14fx8xd.js} +63 -56
  154. package/dist/{chunk-v292vhrx.js → chunk-c26ntdxv.js} +5 -5
  155. package/dist/chunk-c2tvdak4.js +358 -0
  156. package/dist/chunk-c5mmqz6b.js +128 -0
  157. package/dist/chunk-cbd6s6et.js +9 -0
  158. package/dist/{chunk-vx7zv6zh.js → chunk-cfken2zf.js} +23 -23
  159. package/dist/chunk-cgzktn8a.js +395 -0
  160. package/dist/{chunk-1dhedd9z.js → chunk-ch9wpxam.js} +1 -1
  161. package/dist/{chunk-scphhw12.js → chunk-ck4dd7vx.js} +63 -56
  162. package/dist/{chunk-fnm8y1x0.js → chunk-cpzppa0f.js} +63 -56
  163. package/dist/chunk-crchz5q8.js +13 -0
  164. package/dist/{chunk-f5gd73ce.js → chunk-cs8wascn.js} +71 -64
  165. package/dist/chunk-cxscz76t.js +66 -0
  166. package/dist/{chunk-01nytp91.js → chunk-d31ye749.js} +68 -61
  167. package/dist/{chunk-6d0241ac.js → chunk-d47prfzj.js} +1 -1
  168. package/dist/{chunk-ambd2vf1.js → chunk-dawa9vdn.js} +7 -7
  169. package/dist/{chunk-abay4sak.js → chunk-dh52jprq.js} +2 -2
  170. package/dist/{chunk-4dxhrqgq.js → chunk-dj6r3bps.js} +78 -71
  171. package/dist/{chunk-gs1a03e2.js → chunk-djf6xgmk.js} +22 -22
  172. package/dist/chunk-drmhxxar.js +300 -0
  173. package/dist/{chunk-8eg4phfy.js → chunk-dsk2j7pz.js} +1 -1
  174. package/dist/{chunk-dgx7p003.js → chunk-dtk2406w.js} +63 -56
  175. package/dist/{chunk-z9fjyp10.js → chunk-dxdkze8z.js} +15 -14
  176. package/dist/{chunk-vfdax1q6.js → chunk-e2spk4fe.js} +2 -2
  177. package/dist/{chunk-bt94xn5q.js → chunk-e39hng3w.js} +1 -1
  178. package/dist/{chunk-2bn3rfrp.js → chunk-e4c9nm5e.js} +1 -1
  179. package/dist/{chunk-qkvakhx1.js → chunk-e732zxst.js} +20 -20
  180. package/dist/{chunk-a6aj70ts.js → chunk-e80zc1av.js} +8 -8
  181. package/dist/{chunk-a9576ng3.js → chunk-e8fna1ag.js} +65 -58
  182. package/dist/{chunk-8xa1kfya.js → chunk-ed7z1w7p.js} +10 -10
  183. package/dist/chunk-edqtm6y0.js +61 -0
  184. package/dist/chunk-ee1b0rvz.js +10 -0
  185. package/dist/{chunk-ns0rmh2k.js → chunk-emm7j4dk.js} +5 -5
  186. package/dist/{chunk-r0qx6xgc.js → chunk-enqry8t5.js} +9 -7
  187. package/dist/{chunk-yfmhhwwv.js → chunk-epznxrz2.js} +12 -12
  188. package/dist/{chunk-g99ezjcy.js → chunk-eq23h0x8.js} +22 -22
  189. package/dist/chunk-ermsg80f.js +127 -0
  190. package/dist/{chunk-nxfhyxc3.js → chunk-erszn6r3.js} +4 -4
  191. package/dist/chunk-ewmc9tav.js +128 -0
  192. package/dist/{chunk-9bmbzk2f.js → chunk-ezkmsnpd.js} +8 -8
  193. package/dist/chunk-f054mssm.js +12 -0
  194. package/dist/{chunk-r95z8zvj.js → chunk-f19hg379.js} +21 -21
  195. package/dist/{chunk-c25j8jpy.js → chunk-f2anq8fp.js} +3 -3
  196. package/dist/{chunk-bp5dhef8.js → chunk-f2k7vxg3.js} +10 -10
  197. package/dist/{chunk-9bp8584t.js → chunk-f8bpjk0x.js} +4 -4
  198. package/dist/{chunk-0s98x7qr.js → chunk-f98xrwe6.js} +63 -56
  199. package/dist/{chunk-v25hrcrp.js → chunk-fbx3sd2f.js} +72 -65
  200. package/dist/{chunk-rhfz4rps.js → chunk-fgzywhh2.js} +5 -5
  201. package/dist/{chunk-v50v1jf1.js → chunk-fjeaknmt.js} +21 -21
  202. package/dist/chunk-fjs4cp8b.js +155 -0
  203. package/dist/{chunk-zs52hzg8.js → chunk-fxtm8zfx.js} +21 -21
  204. package/dist/{chunk-54yfbyzj.js → chunk-fynce2x1.js} +73 -66
  205. package/dist/{chunk-by6f5f3f.js → chunk-g1fmphn5.js} +1 -1
  206. package/dist/{chunk-2qnmyxpy.js → chunk-g4jdxw9z.js} +8 -8
  207. package/dist/{chunk-kw10fbe0.js → chunk-g5fyyzw4.js} +5 -5
  208. package/dist/{chunk-xrcw33a6.js → chunk-g5snnfpz.js} +4 -4
  209. package/dist/chunk-g6ywkjpj.js +329 -0
  210. package/dist/chunk-gc3k4c71.js +120 -0
  211. package/dist/{chunk-av4xr370.js → chunk-gdrmj2pf.js} +24 -24
  212. package/dist/{chunk-4kx5dzdv.js → chunk-gxndbg0a.js} +1 -1
  213. package/dist/{chunk-27831wht.js → chunk-gz475s6y.js} +63 -56
  214. package/dist/{chunk-x8zkjhy7.js → chunk-gzvzgq26.js} +439 -176
  215. package/dist/{chunk-53dgvm3n.js → chunk-h0njsaxa.js} +8 -31
  216. package/dist/{chunk-nha86vac.js → chunk-h10sdaft.js} +64 -57
  217. package/dist/{chunk-eg0tc9yh.js → chunk-h4cqgnfp.js} +3 -3
  218. package/dist/{chunk-s67f3vd9.js → chunk-h5rhq3n7.js} +76 -59
  219. package/dist/{chunk-m1tjr9xq.js → chunk-h6pgm1qp.js} +1 -1
  220. package/dist/chunk-hewjtf7t.js +132 -0
  221. package/dist/{chunk-63aa365z.js → chunk-hfdnqzhf.js} +8 -8
  222. package/dist/{chunk-f4dvpkzw.js → chunk-hhd42y3a.js} +1 -1
  223. package/dist/{chunk-gvf59kpk.js → chunk-hmw06fge.js} +63 -56
  224. package/dist/{chunk-n0vth4gp.js → chunk-hprabxne.js} +1 -1
  225. package/dist/{chunk-nxdnby53.js → chunk-hstsssnj.js} +2 -2
  226. package/dist/chunk-j13svjky.js +158 -0
  227. package/dist/{chunk-vj7ngjnf.js → chunk-j2x5124d.js} +20 -20
  228. package/dist/chunk-j3k55b0k.js +212 -0
  229. package/dist/{chunk-7neqf4fa.js → chunk-j71hj7yz.js} +71 -64
  230. package/dist/{chunk-3wpgtpw3.js → chunk-j7dxyxhv.js} +63 -56
  231. package/dist/{chunk-pdy0cbps.js → chunk-j7xbftdd.js} +5 -5
  232. package/dist/{chunk-7wncxt8v.js → chunk-jars2pn8.js} +63 -56
  233. package/dist/{chunk-ex16f66z.js → chunk-je44d8pc.js} +64 -57
  234. package/dist/{chunk-y744f40h.js → chunk-jgyee51y.js} +64 -57
  235. package/dist/{chunk-2q0frcxq.js → chunk-jk6e2bjt.js} +66 -59
  236. package/dist/chunk-jkcqv906.js +128 -0
  237. package/dist/{chunk-4pkgv0q4.js → chunk-jrkdr66k.js} +64 -57
  238. package/dist/{chunk-v5m176px.js → chunk-jxvms2k5.js} +64 -57
  239. package/dist/{chunk-y8gcjqaj.js → chunk-jzjdkfvb.js} +21 -21
  240. package/dist/{chunk-fry0p30d.js → chunk-k1809z0z.js} +4 -4
  241. package/dist/{chunk-n5r7zefs.js → chunk-k2qry3j2.js} +3 -3
  242. package/dist/{chunk-gbm9xcsb.js → chunk-kaxc456a.js} +4 -4
  243. package/dist/{chunk-xq5m3waj.js → chunk-kh0tbb1f.js} +10 -10
  244. package/dist/{chunk-4w14tqd3.js → chunk-km555nmz.js} +2 -2
  245. package/dist/{chunk-0kce2wqf.js → chunk-kmaj89bz.js} +64 -57
  246. package/dist/chunk-ktvcgnpw.js +46 -0
  247. package/dist/{chunk-zcg5wkge.js → chunk-kty5fqkx.js} +4 -4
  248. package/dist/{chunk-vwmpfzsk.js → chunk-kywppkmb.js} +71 -64
  249. package/dist/chunk-kzj2w83g.js +325 -0
  250. package/dist/{chunk-qe3qr56q.js → chunk-m0avdb0h.js} +1 -1
  251. package/dist/chunk-m0zh7g06.js +13 -0
  252. package/dist/{chunk-b9sss8kt.js → chunk-m1gvrag8.js} +64 -57
  253. package/dist/{chunk-5n5wyzrh.js → chunk-m2r25bw1.js} +4 -4
  254. package/dist/{chunk-5xg0d983.js → chunk-m2rv6qz8.js} +20 -20
  255. package/dist/{chunk-0a04ntky.js → chunk-m3rvjxa4.js} +1 -1
  256. package/dist/{chunk-21mz4040.js → chunk-m48b7sj9.js} +1 -1
  257. package/dist/{chunk-bpww9jrc.js → chunk-m7w3r8n8.js} +63 -56
  258. package/dist/{chunk-dgmtm4rb.js → chunk-mbvn8gy2.js} +65 -58
  259. package/dist/chunk-mdnqgywy.js +32 -0
  260. package/dist/{chunk-834b4cwr.js → chunk-mdnt1rvx.js} +63 -56
  261. package/dist/chunk-mepq00y1.js +337 -0
  262. package/dist/chunk-mfhds0dp.js +415 -0
  263. package/dist/{chunk-zr8jx1me.js → chunk-mja6394w.js} +9 -9
  264. package/dist/{chunk-tq51n13h.js → chunk-mrp3wcy6.js} +63 -56
  265. package/dist/{chunk-53atcfc2.js → chunk-mxx4msjb.js} +63 -56
  266. package/dist/chunk-n014czx3.js +15 -0
  267. package/dist/{chunk-bn09p6rp.js → chunk-n0pqx4rz.js} +6 -6
  268. package/dist/chunk-n3gzjpvg.js +8 -0
  269. package/dist/{chunk-fmmhgjh2.js → chunk-n4h54170.js} +63 -56
  270. package/dist/{chunk-dqrma4xg.js → chunk-n5by3h0t.js} +76 -69
  271. package/dist/chunk-na5yxjbp.js +133 -0
  272. package/dist/{chunk-vvj9yfd6.js → chunk-nb32de90.js} +4 -4
  273. package/dist/{chunk-qd98rbkk.js → chunk-ndgftsr1.js} +1 -1
  274. package/dist/{chunk-nxffmvqq.js → chunk-nez23dsn.js} +28 -28
  275. package/dist/{chunk-n4pdrqfe.js → chunk-nj1wee9b.js} +21 -21
  276. package/dist/{chunk-6383ssyr.js → chunk-nkn6kceq.js} +4 -4
  277. package/dist/{chunk-36ah0k4v.js → chunk-nnhq3697.js} +64 -57
  278. package/dist/chunk-nntvxnk2.js +340 -0
  279. package/dist/chunk-nq0kyezp.js +433 -0
  280. package/dist/chunk-nrwhfe5y.js +105 -0
  281. package/dist/{chunk-81cq3ykn.js → chunk-nt7b1z5t.js} +1 -1
  282. package/dist/{chunk-vyxrqq2j.js → chunk-ntdnzp2z.js} +2 -2
  283. package/dist/{chunk-d86k6nna.js → chunk-ntr44dvp.js} +74 -67
  284. package/dist/chunk-nyq4jqm1.js +243 -0
  285. package/dist/{chunk-xxxpcn1s.js → chunk-p3g3f2ee.js} +84 -56
  286. package/dist/{chunk-2k162dz0.js → chunk-p5q62vjn.js} +64 -57
  287. package/dist/{chunk-ncyvjn2t.js → chunk-p8xpvkpy.js} +66 -59
  288. package/dist/{chunk-csye4xzg.js → chunk-pmn7jtsg.js} +63 -56
  289. package/dist/chunk-pr5a5xz1.js +124 -0
  290. package/dist/chunk-q2aas6kq.js +84 -0
  291. package/dist/{chunk-xm7k6jjc.js → chunk-q2dp7byy.js} +21 -21
  292. package/dist/{chunk-96kvtp4a.js → chunk-q48y3fcp.js} +63 -56
  293. package/dist/{chunk-kegv11w9.js → chunk-q9ekcqx7.js} +3 -3
  294. package/dist/chunk-qazvrdfx.js +8 -0
  295. package/dist/{chunk-mmtadzv4.js → chunk-qb9gk8qg.js} +3 -3
  296. package/dist/{chunk-6fffsyn1.js → chunk-qftvk54y.js} +2 -2
  297. package/dist/{chunk-xpsbj53r.js → chunk-qpsmedbj.js} +64 -57
  298. package/dist/{chunk-xne41nbg.js → chunk-qqvksktb.js} +68 -61
  299. package/dist/{chunk-14x4cnsh.js → chunk-qvmhwtbg.js} +2 -2
  300. package/dist/{chunk-gygm08n5.js → chunk-qvr1mfc2.js} +3 -3
  301. package/dist/{chunk-snkw3ez3.js → chunk-qxbjdz91.js} +69 -62
  302. package/dist/{chunk-hnwtdfn5.js → chunk-qz8h7c7e.js} +63 -56
  303. package/dist/{chunk-byxmnqrn.js → chunk-r446v6sq.js} +63 -56
  304. package/dist/{chunk-j9zd0zgk.js → chunk-r5657hwh.js} +6 -6
  305. package/dist/{chunk-cbb17erf.js → chunk-r98v6fmq.js} +2 -2
  306. package/dist/{chunk-v7kbh63p.js → chunk-ratjpqg8.js} +4 -4
  307. package/dist/{chunk-5r3s9p8x.js → chunk-rcqxbkjs.js} +22 -22
  308. package/dist/{chunk-ctr3c1sg.js → chunk-rcz0e093.js} +2 -2
  309. package/dist/{chunk-vmxyzqbq.js → chunk-rdbr0mc5.js} +3 -3
  310. package/dist/chunk-rebyeaz6.js +226 -0
  311. package/dist/{chunk-mdp7t6vc.js → chunk-rfn63r2s.js} +63 -56
  312. package/dist/chunk-rhjvcccz.js +196 -0
  313. package/dist/chunk-rq3fz6cv.js +125 -0
  314. package/dist/chunk-rqb52zr0.js +273 -0
  315. package/dist/{chunk-9mhk46zc.js → chunk-rramscv8.js} +65 -58
  316. package/dist/{chunk-7yazhrsr.js → chunk-rveecpyh.js} +13 -18
  317. package/dist/{chunk-8e7f9zht.js → chunk-s3nkbr4p.js} +6 -6
  318. package/dist/{chunk-mt5d325t.js → chunk-s4pvw5c2.js} +63 -56
  319. package/dist/{chunk-91aqhy8m.js → chunk-s55ghchb.js} +23 -23
  320. package/dist/{chunk-xfffg80w.js → chunk-s5wv4tve.js} +69 -62
  321. package/dist/{chunk-p4ejm62w.js → chunk-sadtb3z5.js} +63 -56
  322. package/dist/{chunk-kz1tx7rz.js → chunk-sc2j6qsx.js} +64 -57
  323. package/dist/{chunk-b0yyp8et.js → chunk-sd3b922y.js} +41 -5
  324. package/dist/{chunk-sa4v49yg.js → chunk-sdcwxxk6.js} +5 -5
  325. package/dist/chunk-sggasjjn.js +126 -0
  326. package/dist/{chunk-2v5ts0xs.js → chunk-sgnff472.js} +6 -6
  327. package/dist/chunk-sje53cwz.js +160 -0
  328. package/dist/{chunk-2d5783fd.js → chunk-sjhn7p5w.js} +9 -9
  329. package/dist/{chunk-7hqaeswx.js → chunk-skhb9mm3.js} +47 -47
  330. package/dist/chunk-smh1p2qy.js +138 -0
  331. package/dist/chunk-smp65jya.js +152 -0
  332. package/dist/{chunk-c5x53d8e.js → chunk-ss0vfwwq.js} +21 -21
  333. package/dist/chunk-ssxnpnp2.js +185 -0
  334. package/dist/{chunk-q4g44zhy.js → chunk-stvp7mm8.js} +67 -60
  335. package/dist/{chunk-cr287xgs.js → chunk-swasj01d.js} +22 -22
  336. package/dist/{chunk-4wvqsj82.js → chunk-sxkyxfc7.js} +1 -1
  337. package/dist/chunk-t27st4f6.js +11 -0
  338. package/dist/{chunk-h0jkyyzh.js → chunk-t33p3qh3.js} +2 -2
  339. package/dist/{chunk-sqr28nxr.js → chunk-t5am82j3.js} +21 -21
  340. package/dist/{chunk-650dg84f.js → chunk-t688crr3.js} +3 -3
  341. package/dist/chunk-t719e8eh.js +124 -0
  342. package/dist/{chunk-1g7vd9aw.js → chunk-tamranmv.js} +4 -4
  343. package/dist/chunk-tbh4w7g6.js +37 -0
  344. package/dist/{chunk-w6qq17bh.js → chunk-td06pg4k.js} +63 -56
  345. package/dist/{chunk-jv6b8825.js → chunk-tepcfjv9.js} +64 -57
  346. package/dist/{chunk-nfzczzpa.js → chunk-tgtshatc.js} +3 -3
  347. package/dist/{chunk-jyh5er8z.js → chunk-tm5bfdg7.js} +15 -15
  348. package/dist/{chunk-zwmrhef7.js → chunk-tngbfggd.js} +1 -1
  349. package/dist/{chunk-vrbvz6r8.js → chunk-tw9bcrhb.js} +1 -1
  350. package/dist/chunk-twea87k4.js +126 -0
  351. package/dist/{chunk-jw9r1vhk.js → chunk-tzed1ttg.js} +2 -2
  352. package/dist/{chunk-kzws79kx.js → chunk-v077s2dh.js} +63 -56
  353. package/dist/{chunk-ye565wnz.js → chunk-v07sn7tg.js} +4 -4
  354. package/dist/{chunk-0k1jmtw9.js → chunk-v5j77ftw.js} +2 -2
  355. package/dist/{chunk-f8jqr9gf.js → chunk-v70rt7ew.js} +63 -56
  356. package/dist/{chunk-sdw97qke.js → chunk-v7e85mv1.js} +20 -20
  357. package/dist/{chunk-h6xd4mkp.js → chunk-v83yjxgx.js} +4 -4
  358. package/dist/{chunk-r61twape.js → chunk-v8ak17j1.js} +107 -335
  359. package/dist/{chunk-0w5zb7ey.js → chunk-v91nx80s.js} +22 -22
  360. package/dist/{chunk-e41z7j8n.js → chunk-v9qatj12.js} +6 -6
  361. package/dist/{chunk-r9mvmqa3.js → chunk-vaq7mmkt.js} +63 -56
  362. package/dist/{chunk-438syzcr.js → chunk-vekca08b.js} +11 -11
  363. package/dist/{chunk-6rxwptex.js → chunk-vg98anv2.js} +1 -1
  364. package/dist/{chunk-ja87byad.js → chunk-vjy07dp5.js} +72 -65
  365. package/dist/{chunk-q90p1xq1.js → chunk-vp20ty7y.js} +1 -1
  366. package/dist/{chunk-9d00ms93.js → chunk-vpt9jxht.js} +3 -3
  367. package/dist/{chunk-b343wb80.js → chunk-vvsd3vs8.js} +63 -56
  368. package/dist/chunk-vxgc30h6.js +19 -0
  369. package/dist/{chunk-e3ddewwa.js → chunk-vxzmjwjs.js} +63 -56
  370. package/dist/{chunk-36qqb2zz.js → chunk-w6jz347g.js} +63 -56
  371. package/dist/{chunk-0nh980p8.js → chunk-w710jpa2.js} +2 -2
  372. package/dist/{chunk-paycanhw.js → chunk-w7ej2zrf.js} +2 -2
  373. package/dist/{chunk-vjdmt4qp.js → chunk-warzed1x.js} +22 -22
  374. package/dist/{chunk-edk6reza.js → chunk-wb2sg18w.js} +2 -2
  375. package/dist/{chunk-4qd05az9.js → chunk-we1n5raj.js} +7 -7
  376. package/dist/chunk-wf3yck87.js +21 -0
  377. package/dist/{chunk-etym3r9d.js → chunk-wf8acset.js} +3 -3
  378. package/dist/{chunk-2q0zzmty.js → chunk-wghswqwp.js} +27 -27
  379. package/dist/{chunk-gzp6rza1.js → chunk-wmgyt01k.js} +216 -1
  380. package/dist/chunk-wmh6v3e7.js +132 -0
  381. package/dist/chunk-wmpmafbc.js +138 -0
  382. package/dist/{chunk-1sf59qt5.js → chunk-wnf4vwkm.js} +64 -57
  383. package/dist/{chunk-ynv1bpe8.js → chunk-wt20bb12.js} +22 -22
  384. package/dist/{chunk-ap8sbteg.js → chunk-ww3p4y9a.js} +20 -12
  385. package/dist/{chunk-03r5j0h7.js → chunk-x1zesdka.js} +6 -6
  386. package/dist/{chunk-wx6n79wt.js → chunk-x313wqn1.js} +1 -1
  387. package/dist/{chunk-hy4eg9rh.js → chunk-x4xsq1s2.js} +2 -2
  388. package/dist/{chunk-9b6rk8qk.js → chunk-x5r688hj.js} +4 -4
  389. package/dist/chunk-x6f0ext2.js +514 -0
  390. package/dist/chunk-x6pa9me9.js +39 -0
  391. package/dist/{chunk-w4efvhba.js → chunk-xbaknws2.js} +3 -3
  392. package/dist/{chunk-xpwd9a6t.js → chunk-xhf4qr1n.js} +7 -7
  393. package/dist/{chunk-0c1px70b.js → chunk-xjbajnc0.js} +64 -57
  394. package/dist/chunk-xjccz51k.js +129 -0
  395. package/dist/{chunk-4djqhsnj.js → chunk-xk0tvbw1.js} +2 -2
  396. package/dist/{chunk-4h8wztdg.js → chunk-xqjc4jt5.js} +64 -57
  397. package/dist/{chunk-rm1mheme.js → chunk-xsdh0nhd.js} +9 -9
  398. package/dist/{chunk-4r4gn0cf.js → chunk-xsmg4rrh.js} +4 -4
  399. package/dist/chunk-y5tdbxz4.js +127 -0
  400. package/dist/{chunk-hdwtr2yf.js → chunk-y8pkn3xy.js} +5 -5
  401. package/dist/chunk-yashkw24.js +372 -0
  402. package/dist/{chunk-fta35khb.js → chunk-yezeptjf.js} +11 -11
  403. package/dist/{chunk-hr3btr8b.js → chunk-yhb095v3.js} +3 -3
  404. package/dist/{chunk-zhvtmajx.js → chunk-ynqybr2d.js} +64 -57
  405. package/dist/{chunk-pqerscs4.js → chunk-yrbx096r.js} +5 -5
  406. package/dist/{chunk-1b80pdn0.js → chunk-ytp8h1aw.js} +70 -60
  407. package/dist/{chunk-fzzjx191.js → chunk-ywf3v9s7.js} +1 -1
  408. package/dist/{chunk-v1k15ae4.js → chunk-yz7f0ahp.js} +1 -1
  409. package/dist/{chunk-n3w4a8jc.js → chunk-z1wsxdyq.js} +4 -4
  410. package/dist/{chunk-bvnbzqq1.js → chunk-z4phzs0c.js} +63 -56
  411. package/dist/{chunk-e8cewnpa.js → chunk-z5nfm6fz.js} +71 -64
  412. package/dist/{chunk-vcxp7ehh.js → chunk-z6j1ne1h.js} +69 -62
  413. package/dist/{chunk-jrzv14mz.js → chunk-z7k46hmy.js} +126 -115
  414. package/dist/chunk-zbcnvk19.js +38 -0
  415. package/dist/{chunk-p34f6v8t.js → chunk-zgaxdsmh.js} +65 -56
  416. package/dist/chunk-zjv8t5t3.js +942 -0
  417. package/dist/chunk-zjvshnv0.js +131 -0
  418. package/dist/{chunk-t6j072kk.js → chunk-zmrhj53d.js} +21 -21
  419. package/dist/{chunk-tv74hgw9.js → chunk-znv3atvc.js} +1 -1
  420. package/dist/chunk-zsr1mhby.js +126 -0
  421. package/dist/{chunk-2kdh2xhm.js → chunk-zvgv14qd.js} +25 -25
  422. package/dist/{chunk-egwsh2d3.js → chunk-zvh8p8b8.js} +6 -6
  423. package/dist/chunk-zyptmnvp.js +125 -0
  424. package/dist/cli.js +34 -34
  425. package/package.json +7 -2
  426. package/dist/chunk-0786r5qj.js +0 -26
  427. package/dist/chunk-18xdwe7f.js +0 -113
  428. package/dist/chunk-2mvp0yy0.js +0 -121
  429. package/dist/chunk-47te6zef.js +0 -119
  430. package/dist/chunk-83hfzbx3.js +0 -10
  431. package/dist/chunk-8ae0tf0x.js +0 -122
  432. package/dist/chunk-9fmj81q2.js +0 -118
  433. package/dist/chunk-advqggab.js +0 -121
  434. package/dist/chunk-bxwwcaqc.js +0 -129
  435. package/dist/chunk-cwfhgrw5.js +0 -122
  436. package/dist/chunk-dpvkw784.js +0 -117
  437. package/dist/chunk-dyy28gfx.js +0 -119
  438. package/dist/chunk-ec97t249.js +0 -120
  439. package/dist/chunk-fdetpw6s.js +0 -116
  440. package/dist/chunk-feyzykye.js +0 -10
  441. package/dist/chunk-kftpvpke.js +0 -115
  442. package/dist/chunk-mkn9qtyx.js +0 -120
  443. package/dist/chunk-msq3sm15.js +0 -117
  444. package/dist/chunk-pdk7x283.js +0 -131
  445. package/dist/chunk-pfhv31s6.js +0 -121
  446. package/dist/chunk-pkbsek0t.js +0 -118
  447. package/dist/chunk-qhcn44e1.js +0 -119
  448. package/dist/chunk-qsnfsw09.js +0 -119
  449. package/dist/chunk-stbkte9e.js +0 -184
  450. package/dist/chunk-szj5wvdy.js +0 -28
  451. package/dist/chunk-y9zmxrg1.js +0 -57
  452. package/dist/chunk-zaqjcmpr.js +0 -119
  453. package/dist/chunk-zg2vvytp.js +0 -121
  454. package/dist/{chunk-z0csm2zq.js → chunk-jg5ac2fy.js} +394 -394
@@ -1,40 +1,40 @@
1
1
  // @bun
2
- import"./chunk-ns0rmh2k.js";
2
+ import"./chunk-emm7j4dk.js";
3
3
  import {
4
4
  cliError,
5
5
  cliOk
6
6
  } from "./chunk-z2dp53wn.js";
7
7
  import {
8
8
  buildDeepLinkBanner
9
- } from "./chunk-7d11053z.js";
9
+ } from "./chunk-42176dsb.js";
10
10
  import {
11
11
  filterExistingPaths,
12
12
  getKnownPathsForRepo,
13
13
  updateGithubRepoPathMapping
14
- } from "./chunk-pdy0cbps.js";
14
+ } from "./chunk-j7xbftdd.js";
15
15
  import {
16
16
  computeInitialTeamContext,
17
17
  createRemoteSessionConfig,
18
18
  getModelDeprecationWarning,
19
19
  getRelevantTips,
20
20
  refreshExampleCommands
21
- } from "./chunk-qkvakhx1.js";
21
+ } from "./chunk-e732zxst.js";
22
22
  import {
23
23
  processResumedConversation,
24
24
  skillChangeDetector
25
- } from "./chunk-ap8sbteg.js";
25
+ } from "./chunk-ww3p4y9a.js";
26
26
  import {
27
27
  installAsciicastRecorder
28
- } from "./chunk-enq2chfq.js";
28
+ } from "./chunk-2e6jz0ej.js";
29
29
  import {
30
30
  getBaseRenderOptions
31
- } from "./chunk-0a04ntky.js";
31
+ } from "./chunk-m3rvjxa4.js";
32
32
  import {
33
33
  createStatsStore
34
- } from "./chunk-6rxwptex.js";
34
+ } from "./chunk-vg98anv2.js";
35
35
  import {
36
36
  onChangeAppState
37
- } from "./chunk-03r5j0h7.js";
37
+ } from "./chunk-x1zesdka.js";
38
38
  import {
39
39
  seedEarlyInput,
40
40
  stopCapturingEarlyInput
@@ -43,34 +43,34 @@ import"./chunk-4hv90qcz.js";
43
43
  import {
44
44
  exports_assistant,
45
45
  init_assistant
46
- } from "./chunk-y9zmxrg1.js";
46
+ } from "./chunk-3gbmfs3p.js";
47
47
  import"./chunk-2pjptqfa.js";
48
+ import {
49
+ init_setup,
50
+ setupClaudeInChrome,
51
+ shouldAutoEnableClaudeInChrome,
52
+ shouldEnableClaudeInChrome
53
+ } from "./chunk-9s6wjjgc.js";
48
54
  import {
49
55
  buildCliLaunch,
50
56
  init_cliLaunch
51
- } from "./chunk-f4dvpkzw.js";
57
+ } from "./chunk-hhd42y3a.js";
52
58
  import {
53
59
  init_partition,
54
60
  partition_default
55
- } from "./chunk-nxdnby53.js";
56
- import {
57
- init_setup,
58
- setupClaudeInChrome,
59
- shouldAutoEnableClaudeInChrome,
60
- shouldEnableClaudeInChrome
61
- } from "./chunk-svkdak63.js";
61
+ } from "./chunk-hstsssnj.js";
62
62
  import {
63
63
  VALID_INSTALLABLE_SCOPES,
64
64
  VALID_UPDATE_SCOPES
65
- } from "./chunk-xpwd9a6t.js";
66
- import"./chunk-rfk6dz01.js";
65
+ } from "./chunk-xhf4qr1n.js";
66
+ import"./chunk-avv2r6q3.js";
67
67
  import {
68
68
  init_releaseNotes,
69
69
  migrateChangelogFromConfig
70
- } from "./chunk-9bp8584t.js";
71
- import"./chunk-ambd2vf1.js";
72
- import"./chunk-n5r7zefs.js";
73
- import"./chunk-c25j8jpy.js";
70
+ } from "./chunk-f8bpjk0x.js";
71
+ import"./chunk-k2qry3j2.js";
72
+ import"./chunk-dawa9vdn.js";
73
+ import"./chunk-f2anq8fp.js";
74
74
  import {
75
75
  ASK_USER_QUESTION_TOOL_NAME,
76
76
  AppStateProvider,
@@ -337,93 +337,100 @@ import {
337
337
  verifyAutoModeGateAccess,
338
338
  waitForPolicyLimitsToLoad,
339
339
  waitForRemoteManagedSettingsToLoad
340
- } from "./chunk-m2akjkdt.js";
340
+ } from "./chunk-abcmnpw1.js";
341
341
  import"./chunk-et824jj8.js";
342
342
  import {
343
343
  exports_teammateModeSnapshot,
344
344
  init_teammateModeSnapshot
345
- } from "./chunk-j65n711w.js";
346
- import"./chunk-qe3qr56q.js";
345
+ } from "./chunk-94w3b0ds.js";
346
+ import"./chunk-m0avdb0h.js";
347
347
  import {
348
348
  BASE_CHROME_PROMPT,
349
349
  CLAUDE_IN_CHROME_SKILL_HINT,
350
350
  init_prompt as init_prompt6
351
351
  } from "./chunk-var1et7e.js";
352
- import"./chunk-2gzv8nrw.js";
353
352
  import"./chunk-ehtwnxpg.js";
354
- import"./chunk-2x9v6ryw.js";
353
+ import"./chunk-9z8x61ch.js";
355
354
  import {
356
355
  createEmptyAttributionState,
357
356
  init_commitAttribution
358
- } from "./chunk-r0qx6xgc.js";
359
- import"./chunk-2f6hs25r.js";
357
+ } from "./chunk-enqry8t5.js";
360
358
  import {
361
359
  DEFAULT_TASKS_MODE_TASK_LIST_ID,
362
360
  TASK_STATUSES,
363
361
  init_tasks
364
- } from "./chunk-2qnmyxpy.js";
362
+ } from "./chunk-g4jdxw9z.js";
365
363
  import {
366
364
  exports_proactive,
367
365
  getSessionIngressAuthToken,
368
366
  init_proactive,
369
367
  init_sessionIngressAuth
370
- } from "./chunk-7rzk7d37.js";
371
- import"./chunk-eg0tc9yh.js";
368
+ } from "./chunk-4c843krn.js";
369
+ import"./chunk-h4cqgnfp.js";
370
+ import"./chunk-2gzv8nrw.js";
372
371
  import {
373
372
  init_worktreeModeEnabled,
374
373
  isWorktreeModeEnabled
375
374
  } from "./chunk-cgfdkzhb.js";
376
- import {
377
- init_builtinPlugins,
378
- registerBuiltinPlugin
379
- } from "./chunk-7hqaeswx.js";
375
+ import"./chunk-x6pa9me9.js";
376
+ import"./chunk-2f6hs25r.js";
380
377
  import {
381
378
  initSentry,
382
379
  init_sentry
383
- } from "./chunk-mmtadzv4.js";
384
- import"./chunk-0nh980p8.js";
380
+ } from "./chunk-qb9gk8qg.js";
381
+ import"./chunk-w710jpa2.js";
385
382
  import"./chunk-bhdt6k7w.js";
383
+ import {
384
+ init_builtinPlugins,
385
+ registerBuiltinPlugin
386
+ } from "./chunk-skhb9mm3.js";
386
387
  import {
387
388
  CLAUDE_IN_CHROME_MCP_SERVER_NAME,
388
389
  init_common,
389
390
  isClaudeInChromeMCPServer
390
- } from "./chunk-vvj9yfd6.js";
391
- import"./chunk-n0vth4gp.js";
392
- import"./chunk-h0jkyyzh.js";
391
+ } from "./chunk-nb32de90.js";
392
+ import"./chunk-mfhds0dp.js";
393
+ import"./chunk-hprabxne.js";
394
+ import"./chunk-t33p3qh3.js";
393
395
  import {
394
396
  init_referral,
395
397
  prefetchPassesEligibility
396
- } from "./chunk-xrcw33a6.js";
398
+ } from "./chunk-g5snnfpz.js";
397
399
  import"./chunk-7fht54sw.js";
398
- import"./chunk-rm1mheme.js";
399
- import"./chunk-07hme8g1.js";
400
- import"./chunk-zwmrhef7.js";
400
+ import"./chunk-xsdh0nhd.js";
401
+ import"./chunk-0j5m6c68.js";
402
+ import"./chunk-tngbfggd.js";
401
403
  import"./chunk-rd2884ff.js";
402
404
  import"./chunk-ps49ymvj.js";
405
+ import"./chunk-edqtm6y0.js";
403
406
  import"./chunk-t4kcvmes.js";
404
- import"./chunk-4wvqsj82.js";
405
- import"./chunk-cbb17erf.js";
406
- import"./chunk-b3v7tk69.js";
407
- import"./chunk-by6f5f3f.js";
407
+ import"./chunk-wf3yck87.js";
408
+ import"./chunk-sxkyxfc7.js";
409
+ import"./chunk-r98v6fmq.js";
410
+ import"./chunk-cgzktn8a.js";
411
+ import"./chunk-5w9eevss.js";
412
+ import"./chunk-g1fmphn5.js";
413
+ import"./chunk-1fexraxj.js";
408
414
  import {
409
415
  fetchSession,
410
416
  init_api,
411
417
  prepareApiRequest
412
- } from "./chunk-zcg5wkge.js";
413
- import"./chunk-ns5ckn0j.js";
418
+ } from "./chunk-kty5fqkx.js";
419
+ import"./chunk-r854e43q.js";
420
+ import"./chunk-67f16jpf.js";
414
421
  import"./chunk-x52qkhng.js";
415
422
  import {
416
423
  getTelemetryAttributes,
417
424
  init_betaSessionTracing,
418
425
  init_telemetryAttributes,
419
426
  isBetaTracingEnabled
420
- } from "./chunk-pm491jb5.js";
421
- import"./chunk-5gvt170a.js";
422
- import"./chunk-7w71dt0w.js";
427
+ } from "./chunk-7at6y3z2.js";
428
+ import"./chunk-9mvk4gyw.js";
429
+ import"./chunk-a2yz9sk4.js";
423
430
  import"./chunk-4jm600zv.js";
424
431
  import"./chunk-7ebcff63.js";
425
432
  import"./chunk-k97s93n9.js";
426
- import"./chunk-8eg4phfy.js";
433
+ import"./chunk-dsk2j7pz.js";
427
434
  import {
428
435
  BROWSER_TOOLS,
429
436
  init_src as init_src2
@@ -431,14 +438,14 @@ import {
431
438
  import {
432
439
  init_sink,
433
440
  initializeAnalyticsGates
434
- } from "./chunk-vfdax1q6.js";
435
- import"./chunk-hzam3v9n.js";
436
- import"./chunk-dvw8byhq.js";
441
+ } from "./chunk-e2spk4fe.js";
442
+ import"./chunk-816j64jc.js";
443
+ import"./chunk-8450evyk.js";
437
444
  import"./chunk-x69b8r8v.js";
438
- import"./chunk-abay4sak.js";
439
- import"./chunk-temejnge.js";
445
+ import"./chunk-dh52jprq.js";
446
+ import"./chunk-968vbp44.js";
440
447
  import"./chunk-ad6rg8vz.js";
441
- import"./chunk-81cq3ykn.js";
448
+ import"./chunk-nt7b1z5t.js";
442
449
  import {
443
450
  AGENT_TOOL_NAME,
444
451
  SettingsSchema,
@@ -543,12 +550,12 @@ import {
543
550
  updateSettingsForSource,
544
551
  validateForceLoginOrg,
545
552
  withOAuth401Retry
546
- } from "./chunk-za24x8e6.js";
553
+ } from "./chunk-1dh9y2g9.js";
547
554
  import {
548
555
  init_json,
549
556
  safeParseJSON
550
- } from "./chunk-ec9bfefg.js";
551
- import"./chunk-6383ssyr.js";
557
+ } from "./chunk-0rjgkz6a.js";
558
+ import"./chunk-nkn6kceq.js";
552
559
  import {
553
560
  count,
554
561
  exports_teammate,
@@ -559,13 +566,13 @@ import {
559
566
  import {
560
567
  init_windowsPaths,
561
568
  setShellIfWindows
562
- } from "./chunk-kw10fbe0.js";
569
+ } from "./chunk-g5fyyzw4.js";
563
570
  import {
564
571
  configureGlobalAgents,
565
572
  configureGlobalMTLS,
566
573
  init_mtls,
567
574
  init_proxy
568
- } from "./chunk-vrbvz6r8.js";
575
+ } from "./chunk-tw9bcrhb.js";
569
576
  import"./chunk-7hmy36fh.js";
570
577
  import {
571
578
  PERMISSION_MODES
@@ -578,12 +585,12 @@ import"./chunk-8g5pe1gr.js";
578
585
  import {
579
586
  getPlatform,
580
587
  init_platform
581
- } from "./chunk-ctr3c1sg.js";
582
- import"./chunk-qd98rbkk.js";
588
+ } from "./chunk-rcz0e093.js";
589
+ import"./chunk-ndgftsr1.js";
583
590
  import"./chunk-7a31vc3r.js";
584
- import"./chunk-sbzpht0c.js";
591
+ import"./chunk-6veqdcnr.js";
585
592
  import"./chunk-3c25bcsw.js";
586
- import"./chunk-1aaad6af.js";
593
+ import"./chunk-bc7vdtyx.js";
587
594
  import {
588
595
  init_bundledMode,
589
596
  isInBundledMode
@@ -610,7 +617,7 @@ import {
610
617
  init_startupProfiler,
611
618
  profileCheckpoint,
612
619
  profileReport
613
- } from "./chunk-k3h49w53.js";
620
+ } from "./chunk-0s5rp3xp.js";
614
621
  import"./chunk-crmjpsqe.js";
615
622
  import {
616
623
  Byline,
@@ -640,7 +647,7 @@ import {
640
647
  detectCurrentRepositoryWithHost,
641
648
  init_detectRepository,
642
649
  parseGitRemote
643
- } from "./chunk-etym3r9d.js";
650
+ } from "./chunk-wf8acset.js";
644
651
  import {
645
652
  findGitRoot,
646
653
  getBranch,
@@ -650,26 +657,26 @@ import {
650
657
  init_diagLogs,
651
658
  init_git,
652
659
  logForDiagnosticsNoPII
653
- } from "./chunk-a6aj70ts.js";
654
- import"./chunk-vyxrqq2j.js";
660
+ } from "./chunk-e80zc1av.js";
661
+ import"./chunk-ntdnzp2z.js";
655
662
  import"./chunk-jdq8jgyg.js";
656
- import"./chunk-24dgse44.js";
663
+ import"./chunk-9d7dhwhn.js";
657
664
  import {
658
665
  getCwd,
659
666
  init_cwd
660
- } from "./chunk-tv74hgw9.js";
667
+ } from "./chunk-znv3atvc.js";
661
668
  import {
662
669
  init_log,
663
670
  init_privacyLevel,
664
671
  isEssentialTrafficOnly,
665
672
  logError
666
- } from "./chunk-jgdm5p7t.js";
673
+ } from "./chunk-2cyjtt9z.js";
667
674
  import"./chunk-8tnsngw2.js";
668
675
  import {
669
676
  init_which,
670
677
  which
671
- } from "./chunk-wx6n79wt.js";
672
- import"./chunk-2bn3rfrp.js";
678
+ } from "./chunk-x313wqn1.js";
679
+ import"./chunk-e4c9nm5e.js";
673
680
  import {
674
681
  execa,
675
682
  init_execa
@@ -697,7 +704,7 @@ import {
697
704
  setHasFormattedOutput,
698
705
  toError,
699
706
  writeFileSync_DEPRECATED
700
- } from "./chunk-edk6reza.js";
707
+ } from "./chunk-wb2sg18w.js";
701
708
  import {
702
709
  init_process,
703
710
  peekForStdinData,
@@ -721,6 +728,8 @@ import {
721
728
  setAllowedSettingSources,
722
729
  setChromeFlagOverride,
723
730
  setClientType,
731
+ setCwdState,
732
+ setDirectConnectServerUrl,
724
733
  setFlagSettingsPath,
725
734
  setHasDevChannels,
726
735
  setInitialMainLoopModel,
@@ -742,10 +751,10 @@ import {
742
751
  setTeleportedSessionInfo,
743
752
  setUserMsgOptIn,
744
753
  switchSession
745
- } from "./chunk-gzp6rza1.js";
754
+ } from "./chunk-wmgyt01k.js";
746
755
  import"./chunk-50dgek10.js";
747
756
  import"./chunk-7wm5s02e.js";
748
- import"./chunk-z0csm2zq.js";
757
+ import"./chunk-jg5ac2fy.js";
749
758
  import {
750
759
  hasNodeOption,
751
760
  init_envUtils,
@@ -3343,8 +3352,8 @@ var init = memoize_default(async () => {
3343
3352
  setupGracefulShutdown();
3344
3353
  profileCheckpoint("init_after_graceful_shutdown");
3345
3354
  Promise.all([
3346
- import("./chunk-r6hgmetw.js"),
3347
- import("./chunk-vj7ngjnf.js")
3355
+ import("./chunk-91xvmecy.js"),
3356
+ import("./chunk-j2x5124d.js")
3348
3357
  ]).then(([fp, gb]) => {
3349
3358
  fp.initialize1PEventLogging();
3350
3359
  gb.onGrowthBookRefresh(() => {
@@ -3352,6 +3361,8 @@ var init = memoize_default(async () => {
3352
3361
  });
3353
3362
  });
3354
3363
  profileCheckpoint("init_after_1p_event_logging");
3364
+ import("./chunk-rebyeaz6.js").then((m) => m.startBalancePolling());
3365
+ profileCheckpoint("init_after_balance_polling");
3355
3366
  populateOAuthAccountInfoIfNeeded();
3356
3367
  profileCheckpoint("init_after_oauth_populate");
3357
3368
  initJetBrainsDetection();
@@ -3387,7 +3398,7 @@ var init = memoize_default(async () => {
3387
3398
  preconnectAnthropicApi();
3388
3399
  if (isEnvTruthy(process.env.CLAUDE_CODE_REMOTE)) {
3389
3400
  try {
3390
- const { initUpstreamProxy, getUpstreamProxyEnv } = await import("./chunk-v7kbh63p.js");
3401
+ const { initUpstreamProxy, getUpstreamProxyEnv } = await import("./chunk-ratjpqg8.js");
3391
3402
  const { registerUpstreamProxyEnvFn } = await import("./chunk-m4rr25qs.js");
3392
3403
  registerUpstreamProxyEnvFn(getUpstreamProxyEnv);
3393
3404
  await initUpstreamProxy();
@@ -3398,7 +3409,7 @@ var init = memoize_default(async () => {
3398
3409
  setShellIfWindows();
3399
3410
  registerCleanup(shutdownLspServerManager);
3400
3411
  registerCleanup(async () => {
3401
- const { cleanupSessionTeams } = await import("./chunk-zzwvnewd.js");
3412
+ const { cleanupSessionTeams } = await import("./chunk-a1gr9gv9.js");
3402
3413
  await cleanupSessionTeams();
3403
3414
  });
3404
3415
  if (isScratchpadEnabled()) {
@@ -3420,7 +3431,7 @@ var init = memoize_default(async () => {
3420
3431
  gracefulShutdownSync(1);
3421
3432
  return;
3422
3433
  }
3423
- return import("./chunk-zzn4hdgx.js").then((m) => m.showInvalidConfigDialog({ error }));
3434
+ return import("./chunk-bftqj0aq.js").then((m) => m.showInvalidConfigDialog({ error }));
3424
3435
  } else {
3425
3436
  throw error;
3426
3437
  }
@@ -3460,7 +3471,7 @@ async function doInitializeTelemetry() {
3460
3471
  }
3461
3472
  }
3462
3473
  async function setMeterState() {
3463
- const { initializeTelemetry } = await import("./chunk-nxffmvqq.js");
3474
+ const { initializeTelemetry } = await import("./chunk-nez23dsn.js");
3464
3475
  const meter = await initializeTelemetry();
3465
3476
  if (meter) {
3466
3477
  const createAttributedCounter = (name, options) => {
@@ -3487,8 +3498,8 @@ init_history();
3487
3498
  // src/replLauncher.tsx
3488
3499
  var jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
3489
3500
  async function launchRepl(root, appProps, replProps, renderAndRun) {
3490
- const { App } = await import("./chunk-a9576ng3.js");
3491
- const { REPL } = await import("./chunk-stbkte9e.js");
3501
+ const { App } = await import("./chunk-e8fna1ag.js");
3502
+ const { REPL } = await import("./chunk-5q9cm9at.js");
3492
3503
  await renderAndRun(root, /* @__PURE__ */ jsx_dev_runtime.jsxDEV(App, {
3493
3504
  ...appProps,
3494
3505
  children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(REPL, {
@@ -4047,7 +4058,7 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4047
4058
  let onboardingShown = false;
4048
4059
  if (!config.theme || !config.hasCompletedOnboarding) {
4049
4060
  onboardingShown = true;
4050
- const { Onboarding } = await import("./chunk-snkw3ez3.js");
4061
+ const { Onboarding } = await import("./chunk-qxbjdz91.js");
4051
4062
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Onboarding, {
4052
4063
  onDone: () => {
4053
4064
  completeOnboarding();
@@ -4057,7 +4068,7 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4057
4068
  }
4058
4069
  if (!isEnvTruthy(process.env.CLAUBBIT)) {
4059
4070
  if (!checkHasTrustDialogAccepted()) {
4060
- const { TrustDialog } = await import("./chunk-kzws79kx.js");
4071
+ const { TrustDialog } = await import("./chunk-v077s2dh.js");
4061
4072
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(TrustDialog, {
4062
4073
  commands,
4063
4074
  onDone: done
@@ -4073,7 +4084,7 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4073
4084
  }
4074
4085
  if (await shouldShowClaudeMdExternalIncludesWarning()) {
4075
4086
  const externalIncludes = getExternalClaudeMdIncludes(await getMemoryFiles(true));
4076
- const { ClaudeMdExternalIncludesDialog } = await import("./chunk-fdetpw6s.js");
4087
+ const { ClaudeMdExternalIncludesDialog } = await import("./chunk-9h87btmg.js");
4077
4088
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ClaudeMdExternalIncludesDialog, {
4078
4089
  onDone: done,
4079
4090
  isStandaloneDialog: true,
@@ -4088,7 +4099,7 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4088
4099
  applyConfigEnvironmentVariables();
4089
4100
  setImmediate(() => initializeTelemetryAfterTrust());
4090
4101
  if (await isQualifiedForGrove()) {
4091
- const { GroveDialog } = await import("./chunk-9fmj81q2.js");
4102
+ const { GroveDialog } = await import("./chunk-rq3fz6cv.js");
4092
4103
  const decision = await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(GroveDialog, {
4093
4104
  showIfAlreadyViewed: false,
4094
4105
  location: onboardingShown ? "onboarding" : "policy_update_modal",
@@ -4104,7 +4115,7 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4104
4115
  const customApiKeyTruncated = normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY);
4105
4116
  const keyStatus = getCustomApiKeyStatus(customApiKeyTruncated);
4106
4117
  if (keyStatus === "new") {
4107
- const { ApproveApiKey } = await import("./chunk-18xdwe7f.js");
4118
+ const { ApproveApiKey } = await import("./chunk-gc3k4c71.js");
4108
4119
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ApproveApiKey, {
4109
4120
  customApiKeyTruncated,
4110
4121
  onDone: done
@@ -4112,13 +4123,13 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4112
4123
  }
4113
4124
  }
4114
4125
  if ((permissionMode === "bypassPermissions" || allowDangerouslySkipPermissions) && !hasSkipDangerousModePermissionPrompt()) {
4115
- const { BypassPermissionsModeDialog } = await import("./chunk-krrxrzr4.js");
4126
+ const { BypassPermissionsModeDialog } = await import("./chunk-40n35nr8.js");
4116
4127
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(BypassPermissionsModeDialog, {
4117
4128
  onAccept: done
4118
4129
  }, undefined, false, undefined, this));
4119
4130
  }
4120
4131
  if (devChannels && devChannels.length > 0) {
4121
- const { DevChannelsDialog } = await import("./chunk-834b4cwr.js");
4132
+ const { DevChannelsDialog } = await import("./chunk-mdnt1rvx.js");
4122
4133
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(DevChannelsDialog, {
4123
4134
  channels: devChannels,
4124
4135
  onAccept: () => {
@@ -4132,7 +4143,7 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4132
4143
  }, undefined, false, undefined, this));
4133
4144
  }
4134
4145
  if (claudeInChrome && !getGlobalConfig().hasCompletedClaudeInChromeOnboarding) {
4135
- const { ClaudeInChromeOnboarding } = await import("./chunk-s17095ng.js");
4146
+ const { ClaudeInChromeOnboarding } = await import("./chunk-4h87abvn.js");
4136
4147
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ClaudeInChromeOnboarding, {
4137
4148
  onDone: done
4138
4149
  }, undefined, false, undefined, this));
@@ -4193,7 +4204,7 @@ function getRenderContext(exitOnCtrlC) {
4193
4204
  init_KeybindingProviderSetup();
4194
4205
  var jsx_dev_runtime7 = __toESM(require_jsx_dev_runtime(), 1);
4195
4206
  async function launchInvalidSettingsDialog(root, props) {
4196
- const { InvalidSettingsDialog } = await import("./chunk-x916qx2c.js");
4207
+ const { InvalidSettingsDialog } = await import("./chunk-2wa6knad.js");
4197
4208
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(InvalidSettingsDialog, {
4198
4209
  settingsErrors: props.settingsErrors,
4199
4210
  onContinue: done,
@@ -4201,7 +4212,7 @@ async function launchInvalidSettingsDialog(root, props) {
4201
4212
  }, undefined, false, undefined, this));
4202
4213
  }
4203
4214
  async function launchAssistantSessionChooser(root, props) {
4204
- const { AssistantSessionChooser } = await import("./chunk-ck7414y9.js");
4215
+ const { AssistantSessionChooser } = await import("./chunk-c14fx8xd.js");
4205
4216
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(AssistantSessionChooser, {
4206
4217
  sessions: props.sessions,
4207
4218
  onSelect: (id) => done(id),
@@ -4209,7 +4220,7 @@ async function launchAssistantSessionChooser(root, props) {
4209
4220
  }, undefined, false, undefined, this));
4210
4221
  }
4211
4222
  async function launchAssistantInstallWizard(root) {
4212
- const { NewInstallWizard, computeDefaultInstallDir } = await import("./chunk-36ah0k4v.js");
4223
+ const { NewInstallWizard, computeDefaultInstallDir } = await import("./chunk-nnhq3697.js");
4213
4224
  const defaultDir = await computeDefaultInstallDir();
4214
4225
  let rejectWithError;
4215
4226
  const errorPromise = new Promise((_, reject) => {
@@ -4224,7 +4235,7 @@ async function launchAssistantInstallWizard(root) {
4224
4235
  return Promise.race([resultPromise, errorPromise]);
4225
4236
  }
4226
4237
  async function launchTeleportResumeWrapper(root) {
4227
- const { TeleportResumeWrapper } = await import("./chunk-hnwtdfn5.js");
4238
+ const { TeleportResumeWrapper } = await import("./chunk-qz8h7c7e.js");
4228
4239
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(TeleportResumeWrapper, {
4229
4240
  onComplete: done,
4230
4241
  onCancel: () => done(null),
@@ -4232,7 +4243,7 @@ async function launchTeleportResumeWrapper(root) {
4232
4243
  }, undefined, false, undefined, this));
4233
4244
  }
4234
4245
  async function launchTeleportRepoMismatchDialog(root, props) {
4235
- const { TeleportRepoMismatchDialog } = await import("./chunk-nha86vac.js");
4246
+ const { TeleportRepoMismatchDialog } = await import("./chunk-h10sdaft.js");
4236
4247
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(TeleportRepoMismatchDialog, {
4237
4248
  targetRepo: props.targetRepo,
4238
4249
  initialPaths: props.initialPaths,
@@ -4243,8 +4254,8 @@ async function launchTeleportRepoMismatchDialog(root, props) {
4243
4254
  async function launchResumeChooser(root, appProps, worktreePathsPromise, resumeProps) {
4244
4255
  const [worktreePaths, { ResumeConversation }, { App }] = await Promise.all([
4245
4256
  worktreePathsPromise,
4246
- import("./chunk-jrzv14mz.js"),
4247
- import("./chunk-a9576ng3.js")
4257
+ import("./chunk-z7k46hmy.js"),
4258
+ import("./chunk-e8fna1ag.js")
4248
4259
  ]);
4249
4260
  await renderAndRun(root, /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(App, {
4250
4261
  getFpsMetrics: appProps.getFpsMetrics,
@@ -5205,7 +5216,7 @@ function registerLoremIpsumSkill() {
5205
5216
  argumentHint: "[token_count]",
5206
5217
  userInvocable: true,
5207
5218
  async getPromptForCommand(args) {
5208
- const parsed = parseInt(args);
5219
+ const parsed = parseInt(args, 10);
5209
5220
  if (args && (isNaN(parsed) || parsed <= 0)) {
5210
5221
  return [
5211
5222
  {
@@ -7085,6 +7096,59 @@ var connectResponseSchema = lazySchema(() => exports_external.object({
7085
7096
  work_dir: exports_external.string().optional()
7086
7097
  }));
7087
7098
 
7099
+ // src/server/createDirectConnectSession.ts
7100
+ class DirectConnectError extends Error {
7101
+ constructor(message) {
7102
+ super(message);
7103
+ this.name = "DirectConnectError";
7104
+ }
7105
+ }
7106
+ async function createDirectConnectSession({
7107
+ serverUrl,
7108
+ authToken,
7109
+ cwd,
7110
+ dangerouslySkipPermissions
7111
+ }) {
7112
+ const headers = {
7113
+ "content-type": "application/json"
7114
+ };
7115
+ if (authToken) {
7116
+ headers["authorization"] = `Bearer ${authToken}`;
7117
+ }
7118
+ let resp;
7119
+ try {
7120
+ resp = await fetch(`${serverUrl}/sessions`, {
7121
+ method: "POST",
7122
+ headers,
7123
+ body: jsonStringify({
7124
+ cwd,
7125
+ ...dangerouslySkipPermissions && {
7126
+ dangerously_skip_permissions: true
7127
+ }
7128
+ })
7129
+ });
7130
+ } catch (err) {
7131
+ throw new DirectConnectError(`Failed to connect to server at ${serverUrl}: ${errorMessage(err)}`);
7132
+ }
7133
+ if (!resp.ok) {
7134
+ throw new DirectConnectError(`Failed to create session: ${resp.status} ${resp.statusText}`);
7135
+ }
7136
+ const result = connectResponseSchema().safeParse(await resp.json());
7137
+ if (!result.success) {
7138
+ throw new DirectConnectError(`Invalid session response: ${result.error.message}`);
7139
+ }
7140
+ const data = result.data;
7141
+ return {
7142
+ config: {
7143
+ serverUrl,
7144
+ sessionId: data.session_id,
7145
+ wsUrl: data.ws_url,
7146
+ authToken
7147
+ },
7148
+ workDir: data.work_dir
7149
+ };
7150
+ }
7151
+
7088
7152
  // src/main.tsx
7089
7153
  init_manager();
7090
7154
  init_promptSuggestion();
@@ -7314,6 +7378,11 @@ function initializeEntrypoint(isNonInteractive) {
7314
7378
  }
7315
7379
  process.env.CLAUDE_CODE_ENTRYPOINT = isNonInteractive ? "sdk-cli" : "cli";
7316
7380
  }
7381
+ var _pendingConnect = {
7382
+ url: undefined,
7383
+ authToken: undefined,
7384
+ dangerouslySkipPermissions: false
7385
+ };
7317
7386
  var _pendingAssistantChat = { sessionId: undefined, discover: false };
7318
7387
  async function main() {
7319
7388
  profileCheckpoint("main_function_start");
@@ -7329,21 +7398,57 @@ async function main() {
7329
7398
  process.exit(0);
7330
7399
  });
7331
7400
  profileCheckpoint("main_warning_handler_initialized");
7332
- if (false) {}
7401
+ if (true) {
7402
+ const rawCliArgs = process.argv.slice(2);
7403
+ const ccIdx = rawCliArgs.findIndex((a) => a.startsWith("cc://") || a.startsWith("cc+unix://"));
7404
+ if (ccIdx !== -1 && _pendingConnect) {
7405
+ const ccUrl = rawCliArgs[ccIdx];
7406
+ const { parseConnectUrl } = await import("./chunk-1qzt23et.js");
7407
+ const parsed = parseConnectUrl(ccUrl);
7408
+ _pendingConnect.dangerouslySkipPermissions = rawCliArgs.includes("--dangerously-skip-permissions");
7409
+ if (rawCliArgs.includes("-p") || rawCliArgs.includes("--print")) {
7410
+ const stripped = rawCliArgs.filter((_, i) => i !== ccIdx);
7411
+ const dspIdx = stripped.indexOf("--dangerously-skip-permissions");
7412
+ if (dspIdx !== -1) {
7413
+ stripped.splice(dspIdx, 1);
7414
+ }
7415
+ process.argv = [
7416
+ process.argv[0],
7417
+ process.argv[1],
7418
+ "open",
7419
+ ccUrl,
7420
+ ...stripped
7421
+ ];
7422
+ } else {
7423
+ _pendingConnect.url = parsed.serverUrl;
7424
+ _pendingConnect.authToken = parsed.authToken;
7425
+ const stripped = rawCliArgs.filter((_, i) => i !== ccIdx);
7426
+ const dspIdx = stripped.indexOf("--dangerously-skip-permissions");
7427
+ if (dspIdx !== -1) {
7428
+ stripped.splice(dspIdx, 1);
7429
+ }
7430
+ process.argv = [
7431
+ process.argv[0],
7432
+ process.argv[1],
7433
+ ...stripped
7434
+ ];
7435
+ }
7436
+ }
7437
+ }
7333
7438
  if (true) {
7334
7439
  const handleUriIdx = process.argv.indexOf("--handle-uri");
7335
7440
  if (handleUriIdx !== -1 && process.argv[handleUriIdx + 1]) {
7336
- const { enableConfigs: enableConfigs2 } = await import("./chunk-p90f2nc9.js");
7441
+ const { enableConfigs: enableConfigs2 } = await import("./chunk-3sag2vww.js");
7337
7442
  enableConfigs2();
7338
7443
  const uri = process.argv[handleUriIdx + 1];
7339
- const { handleDeepLinkUri } = await import("./chunk-2q0zzmty.js");
7444
+ const { handleDeepLinkUri } = await import("./chunk-wghswqwp.js");
7340
7445
  const exitCode = await handleDeepLinkUri(uri);
7341
7446
  process.exit(exitCode);
7342
7447
  }
7343
7448
  if (process.platform === "darwin" && process.env.__CFBundleIdentifier === "com.anthropic.claude-code-url-handler") {
7344
- const { enableConfigs: enableConfigs2 } = await import("./chunk-p90f2nc9.js");
7449
+ const { enableConfigs: enableConfigs2 } = await import("./chunk-3sag2vww.js");
7345
7450
  enableConfigs2();
7346
- const { handleUrlSchemeLaunch } = await import("./chunk-2q0zzmty.js");
7451
+ const { handleUrlSchemeLaunch } = await import("./chunk-wghswqwp.js");
7347
7452
  const urlSchemeResult = await handleUrlSchemeLaunch();
7348
7453
  process.exit(urlSchemeResult ?? 1);
7349
7454
  }
@@ -7457,7 +7562,7 @@ async function run() {
7457
7562
  if (!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE)) {
7458
7563
  process.title = "claude";
7459
7564
  }
7460
- const { initSinks } = await import("./chunk-2kdh2xhm.js");
7565
+ const { initSinks } = await import("./chunk-zvgv14qd.js");
7461
7566
  initSinks();
7462
7567
  profileCheckpoint("preAction_after_sinks");
7463
7568
  const pluginDir = thisCommand.getOptionValue("pluginDir");
@@ -7825,7 +7930,7 @@ ${formattedErrors}
7825
7930
  const {
7826
7931
  isComputerUseMCPServer,
7827
7932
  COMPUTER_USE_MCP_SERVER_NAME
7828
- } = await import("./chunk-4qd05az9.js");
7933
+ } = await import("./chunk-we1n5raj.js");
7829
7934
  if (nonSdkConfigNames.some(isComputerUseMCPServer)) {
7830
7935
  reservedNameError = `Invalid MCP configuration: "${COMPUTER_USE_MCP_SERVER_NAME}" is a reserved MCP name.`;
7831
7936
  }
@@ -7909,9 +8014,9 @@ ${hint}` : hint;
7909
8014
  }
7910
8015
  if (getPlatform() !== "unknown" && !getIsNonInteractiveSession()) {
7911
8016
  try {
7912
- const { getChicagoEnabled } = await import("./chunk-zs52hzg8.js");
8017
+ const { getChicagoEnabled } = await import("./chunk-fxtm8zfx.js");
7913
8018
  if (getChicagoEnabled()) {
7914
- const { setupComputerUseMCP } = await import("./chunk-jejc5yrq.js");
8019
+ const { setupComputerUseMCP } = await import("./chunk-b607fyhm.js");
7915
8020
  const { mcpConfig: mcpConfig2, allowedTools: cuTools } = setupComputerUseMCP();
7916
8021
  dynamicMcpConfig = {
7917
8022
  ...dynamicMcpConfig,
@@ -8068,7 +8173,7 @@ ${hint}` : hint;
8068
8173
  maybeActivateProactive(options);
8069
8174
  let tools = getTools(toolPermissionContext);
8070
8175
  if (isEnvTruthy(process.env.CLAUDE_CODE_COORDINATOR_MODE)) {
8071
- const { applyCoordinatorToolFilter } = await import("./chunk-zg2vvytp.js");
8176
+ const { applyCoordinatorToolFilter } = await import("./chunk-2xcczxbp.js");
8072
8177
  tools = applyCoordinatorToolFilter(tools);
8073
8178
  }
8074
8179
  profileCheckpoint("action_tools_loaded");
@@ -8093,8 +8198,8 @@ ${hint}` : hint;
8093
8198
  profileCheckpoint("action_before_setup");
8094
8199
  logForDebugging("[STARTUP] Running setup()...");
8095
8200
  const setupStart = Date.now();
8096
- const { setup } = await import("./chunk-r61twape.js");
8097
- const messagingSocketPath = undefined;
8201
+ const { setup } = await import("./chunk-v8ak17j1.js");
8202
+ const messagingSocketPath = options.messagingSocketPath;
8098
8203
  const preSetupCwd = getCwd();
8099
8204
  if (process.env.CLAUDE_CODE_ENTRYPOINT !== "local-agent") {
8100
8205
  initBuiltinPlugins();
@@ -8109,7 +8214,11 @@ ${hint}` : hint;
8109
8214
  logForDebugging(`[STARTUP] setup() completed in ${Date.now() - setupStart}ms`);
8110
8215
  profileCheckpoint("action_after_setup");
8111
8216
  let effectiveReplayUserMessages = !!options.replayUserMessages;
8112
- if (false) {}
8217
+ if (true) {
8218
+ if (!effectiveReplayUserMessages && outputFormat === "stream-json") {
8219
+ effectiveReplayUserMessages = !!options.messagingSocketPath;
8220
+ }
8221
+ }
8113
8222
  if (getIsNonInteractiveSession()) {
8114
8223
  applyConfigEnvironmentVariables();
8115
8224
  getSystemContext();
@@ -8298,7 +8407,7 @@ ${assistantAddendum}` : assistantAddendum;
8298
8407
  const onboardingShown = await showSetupScreens(root, permissionMode, allowDangerouslySkipPermissions, commands, enableClaudeInChrome, devChannels);
8299
8408
  logForDebugging(`[STARTUP] showSetupScreens() completed in ${Date.now() - setupScreensStart}ms`);
8300
8409
  if (remoteControlOption !== undefined) {
8301
- const { getBridgeDisabledReason } = await import("./chunk-0w5zb7ey.js");
8410
+ const { getBridgeDisabledReason } = await import("./chunk-v91nx80s.js");
8302
8411
  const disabledReason = await getBridgeDisabledReason();
8303
8412
  remoteControl = disabledReason === null;
8304
8413
  if (disabledReason) {
@@ -8316,7 +8425,7 @@ ${assistantAddendum}` : assistantAddendum;
8316
8425
  refreshPolicyLimits();
8317
8426
  resetUserCache();
8318
8427
  refreshGrowthBookAfterAuthChange();
8319
- import("./chunk-n4pdrqfe.js").then((m) => {
8428
+ import("./chunk-nj1wee9b.js").then((m) => {
8320
8429
  m.clearTrustedDeviceToken();
8321
8430
  return m.enrollTrustedDevice();
8322
8431
  });
@@ -8646,14 +8755,14 @@ ${assistantAddendum}` : assistantAddendum;
8646
8755
  profileCheckpoint("after_connectMcp_claudeai");
8647
8756
  if (!isBareMode()) {
8648
8757
  startDeferredPrefetches();
8649
- import("./chunk-qhcn44e1.js").then((m) => m.startBackgroundHousekeeping());
8758
+ import("./chunk-b2meyyfn.js").then((m) => m.startBackgroundHousekeeping());
8650
8759
  if (process.env.USER_TYPE === "ant") {
8651
8760
  import("./chunk-3nk79af8.js").then((m) => m.startSdkMemoryMonitor());
8652
8761
  }
8653
8762
  }
8654
8763
  logSessionTelemetry();
8655
8764
  profileCheckpoint("before_print_import");
8656
- const { runHeadless } = await import("./chunk-awhw6wp5.js");
8765
+ const { runHeadless } = await import("./chunk-8scfbgn7.js");
8657
8766
  profileCheckpoint("after_print_import");
8658
8767
  runHeadless(inputPrompt, () => headlessStore.getState(), headlessStore.setState, commandsHeadless, tools, sdkMcpConfigs, agentDefinitions.activeAgents, {
8659
8768
  continue: options.continue,
@@ -8722,9 +8831,10 @@ ${assistantAddendum}` : assistantAddendum;
8722
8831
  priority: "high"
8723
8832
  });
8724
8833
  }
8834
+ const teammateUtils = getTeammateUtils();
8725
8835
  const effectiveToolPermissionContext = {
8726
8836
  ...toolPermissionContext,
8727
- mode: isAgentSwarmsEnabled() && getTeammateUtils().isPlanModeRequired() ? "plan" : toolPermissionContext.mode
8837
+ mode: isAgentSwarmsEnabled() && teammateUtils?.isPlanModeRequired?.() ? "plan" : toolPermissionContext.mode
8728
8838
  };
8729
8839
  const initialIsBriefOnly = getUserMsgOptIn();
8730
8840
  const fullRemoteControl = remoteControl || getRemoteControlAtStartup() || kairosEnabled;
@@ -8880,7 +8990,7 @@ ${assistantAddendum}` : assistantAddendum;
8880
8990
  let resumeSucceeded = false;
8881
8991
  try {
8882
8992
  const resumeStart = performance.now();
8883
- const { clearSessionCaches } = await import("./chunk-msq3sm15.js");
8993
+ const { clearSessionCaches } = await import("./chunk-pr5a5xz1.js");
8884
8994
  clearSessionCaches();
8885
8995
  const result = await loadConversationForResume(undefined, undefined);
8886
8996
  if (!result) {
@@ -8926,8 +9036,41 @@ ${assistantAddendum}` : assistantAddendum;
8926
9036
  logError(error);
8927
9037
  process.exit(1);
8928
9038
  }
8929
- } else if (false) {} else if (false) {} else if (_pendingAssistantChat && (_pendingAssistantChat.sessionId || _pendingAssistantChat.discover)) {
8930
- const { discoverAssistantSessions } = await import("./chunk-n3w4a8jc.js");
9039
+ } else if (_pendingConnect?.url) {
9040
+ let directConnectConfig;
9041
+ try {
9042
+ const session = await createDirectConnectSession({
9043
+ serverUrl: _pendingConnect.url,
9044
+ authToken: _pendingConnect.authToken,
9045
+ cwd: getOriginalCwd(),
9046
+ dangerouslySkipPermissions: _pendingConnect.dangerouslySkipPermissions
9047
+ });
9048
+ if (session.workDir) {
9049
+ setOriginalCwd(session.workDir);
9050
+ setCwdState(session.workDir);
9051
+ }
9052
+ setDirectConnectServerUrl(_pendingConnect.url);
9053
+ directConnectConfig = session.config;
9054
+ } catch (err) {
9055
+ return await exitWithError(root, err instanceof DirectConnectError ? err.message : String(err), () => gracefulShutdown(1));
9056
+ }
9057
+ const connectInfoMessage = createSystemMessage(`Connected to server at ${_pendingConnect.url}
9058
+ Session: ${directConnectConfig.sessionId}`, "info");
9059
+ await launchRepl(root, { getFpsMetrics, stats, initialState }, {
9060
+ debug: debug || debugToStderr,
9061
+ commands,
9062
+ initialTools: [],
9063
+ initialMessages: [connectInfoMessage],
9064
+ mcpClients: [],
9065
+ autoConnectIdeFlag: ide,
9066
+ mainThreadAgentDefinition,
9067
+ disableSlashCommands,
9068
+ directConnectConfig,
9069
+ thinkingConfig
9070
+ }, renderAndRun);
9071
+ return;
9072
+ } else if (false) {} else if (_pendingAssistantChat && (_pendingAssistantChat.sessionId || _pendingAssistantChat.discover)) {
9073
+ const { discoverAssistantSessions } = await import("./chunk-z1wsxdyq.js");
8931
9074
  let targetSessionId = _pendingAssistantChat.sessionId;
8932
9075
  if (!targetSessionId) {
8933
9076
  let sessions;
@@ -8968,7 +9111,7 @@ ${assistantAddendum}` : assistantAddendum;
8968
9111
  const {
8969
9112
  checkAndRefreshOAuthTokenIfNeeded,
8970
9113
  getClaudeAIOAuthTokens: getClaudeAIOAuthTokens2
8971
- } = await import("./chunk-sdw97qke.js");
9114
+ } = await import("./chunk-v7e85mv1.js");
8972
9115
  await checkAndRefreshOAuthTokenIfNeeded();
8973
9116
  let apiCreds;
8974
9117
  try {
@@ -9007,7 +9150,7 @@ ${assistantAddendum}` : assistantAddendum;
9007
9150
  }, renderAndRun);
9008
9151
  return;
9009
9152
  } else if (options.resume || options.fromPr || teleport || remote !== null) {
9010
- const { clearSessionCaches } = await import("./chunk-msq3sm15.js");
9153
+ const { clearSessionCaches } = await import("./chunk-pr5a5xz1.js");
9011
9154
  clearSessionCaches();
9012
9155
  let messages = null;
9013
9156
  let processedResume;
@@ -9082,7 +9225,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9082
9225
  logError(toError(error));
9083
9226
  return await exitWithError(root, `Error: ${errorMessage(error) || "Failed to authenticate"}`, () => gracefulShutdown(1));
9084
9227
  }
9085
- const { getClaudeAIOAuthTokens: getTokensForRemote } = await import("./chunk-sdw97qke.js");
9228
+ const { getClaudeAIOAuthTokens: getTokensForRemote } = await import("./chunk-v7e85mv1.js");
9086
9229
  const getAccessTokenForRemote = () => getTokensForRemote()?.accessToken ?? apiCreds.accessToken;
9087
9230
  const remoteSessionConfig = createRemoteSessionConfig(createdSession.id, getAccessTokenForRemote, apiCreds.orgUUID, hasInitialPrompt);
9088
9231
  const remoteSessionUrl = `${getRemoteSessionUrl(createdSession.id)}?m=0`;
@@ -9155,7 +9298,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9155
9298
  `));
9156
9299
  }
9157
9300
  await validateGitState();
9158
- const { teleportWithProgress } = await import("./chunk-qgvhan2t.js");
9301
+ const { teleportWithProgress } = await import("./chunk-6mb3gprt.js");
9159
9302
  const result = await teleportWithProgress(root, teleport);
9160
9303
  setTeleportedSessionInfo({ sessionId: teleport });
9161
9304
  messages = result.messages;
@@ -9385,7 +9528,9 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9385
9528
  if (true) {
9386
9529
  program2.addOption(new Option("--proactive", "Start in proactive autonomous mode"));
9387
9530
  }
9388
- if (false) {}
9531
+ if (true) {
9532
+ program2.addOption(new Option("--messaging-socket-path <path>", "Unix domain socket path for the UDS messaging server (defaults to a tmp path)"));
9533
+ }
9389
9534
  if (true) {
9390
9535
  program2.addOption(new Option("--brief", "Enable SendUserMessage tool for agent-to-user communication"));
9391
9536
  }
@@ -9424,7 +9569,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9424
9569
  debug,
9425
9570
  verbose
9426
9571
  }) => {
9427
- const { mcpServeHandler } = await import("./chunk-2q0frcxq.js");
9572
+ const { mcpServeHandler } = await import("./chunk-jk6e2bjt.js");
9428
9573
  await mcpServeHandler({ debug, verbose });
9429
9574
  });
9430
9575
  registerMcpAddCommand(mcp);
@@ -9432,32 +9577,117 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9432
9577
  registerMcpXaaIdpCommand(mcp);
9433
9578
  }
9434
9579
  mcp.command("remove <name>").description("Remove an MCP server").option("-s, --scope <scope>", "Configuration scope (local, user, or project) - if not specified, removes from whichever scope it exists in").action(async (name, options) => {
9435
- const { mcpRemoveHandler } = await import("./chunk-2q0frcxq.js");
9580
+ const { mcpRemoveHandler } = await import("./chunk-jk6e2bjt.js");
9436
9581
  await mcpRemoveHandler(name, options);
9437
9582
  });
9438
9583
  mcp.command("list").description("List configured MCP servers. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async () => {
9439
- const { mcpListHandler } = await import("./chunk-2q0frcxq.js");
9584
+ const { mcpListHandler } = await import("./chunk-jk6e2bjt.js");
9440
9585
  await mcpListHandler();
9441
9586
  });
9442
9587
  mcp.command("get <name>").description("Get details about an MCP server. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async (name) => {
9443
- const { mcpGetHandler } = await import("./chunk-2q0frcxq.js");
9588
+ const { mcpGetHandler } = await import("./chunk-jk6e2bjt.js");
9444
9589
  await mcpGetHandler(name);
9445
9590
  });
9446
9591
  mcp.command("add-json <name> <json>").description("Add an MCP server (stdio or SSE) with a JSON string").option("-s, --scope <scope>", "Configuration scope (local, user, or project)", "local").option("--client-secret", "Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").action(async (name, json, options) => {
9447
- const { mcpAddJsonHandler } = await import("./chunk-2q0frcxq.js");
9592
+ const { mcpAddJsonHandler } = await import("./chunk-jk6e2bjt.js");
9448
9593
  await mcpAddJsonHandler(name, json, options);
9449
9594
  });
9450
9595
  mcp.command("add-from-claude-desktop").description("Import MCP servers from Claude Desktop (Mac and WSL only)").option("-s, --scope <scope>", "Configuration scope (local, user, or project)", "local").action(async (options) => {
9451
- const { mcpAddFromDesktopHandler } = await import("./chunk-2q0frcxq.js");
9596
+ const { mcpAddFromDesktopHandler } = await import("./chunk-jk6e2bjt.js");
9452
9597
  await mcpAddFromDesktopHandler(options);
9453
9598
  });
9454
9599
  mcp.command("reset-project-choices").description("Reset all approved and rejected project-scoped (.mcp.json) servers within this project").action(async () => {
9455
- const { mcpResetChoicesHandler } = await import("./chunk-2q0frcxq.js");
9600
+ const { mcpResetChoicesHandler } = await import("./chunk-jk6e2bjt.js");
9456
9601
  await mcpResetChoicesHandler();
9457
9602
  });
9603
+ if (true) {
9604
+ program2.command("server").description("Start a Claude Code session server").option("--port <number>", "HTTP port", "0").option("--host <string>", "Bind address", "0.0.0.0").option("--auth-token <token>", "Bearer token for auth").option("--unix <path>", "Listen on a unix domain socket").option("--workspace <dir>", "Default working directory for sessions that do not specify cwd").option("--idle-timeout <ms>", "Idle timeout for detached sessions in ms (0 = never expire)", "600000").option("--max-sessions <n>", "Maximum concurrent sessions (0 = unlimited)", "32").action(async (opts) => {
9605
+ const { randomBytes } = await import("crypto");
9606
+ const { startServer } = await import("./chunk-1z9bmera.js");
9607
+ const { SessionManager } = await import("./chunk-ee1b0rvz.js");
9608
+ const { DangerousBackend } = await import("./chunk-cbd6s6et.js");
9609
+ const { printBanner } = await import("./chunk-n3gzjpvg.js");
9610
+ const { createServerLogger } = await import("./chunk-9sq8hkpk.js");
9611
+ const {
9612
+ writeServerLock,
9613
+ removeServerLock,
9614
+ probeRunningServer
9615
+ } = await import("./chunk-f054mssm.js");
9616
+ const existing = await probeRunningServer();
9617
+ if (existing) {
9618
+ process.stderr.write(`A claude server is already running (pid ${existing.pid}) at ${existing.httpUrl}
9619
+ `);
9620
+ process.exit(1);
9621
+ }
9622
+ const authToken = opts.authToken ?? `sk-ant-cc-${randomBytes(16).toString("base64url")}`;
9623
+ const config = {
9624
+ port: parseInt(opts.port, 10),
9625
+ host: opts.host,
9626
+ authToken,
9627
+ unix: opts.unix,
9628
+ workspace: opts.workspace,
9629
+ idleTimeoutMs: parseInt(opts.idleTimeout, 10),
9630
+ maxSessions: parseInt(opts.maxSessions, 10)
9631
+ };
9632
+ const backend = new DangerousBackend;
9633
+ const sessionManager = new SessionManager(backend, {
9634
+ idleTimeoutMs: config.idleTimeoutMs,
9635
+ maxSessions: config.maxSessions
9636
+ });
9637
+ const logger = createServerLogger();
9638
+ const server = startServer(config, sessionManager, logger);
9639
+ const actualPort = server.port ?? config.port;
9640
+ printBanner(config, authToken, actualPort);
9641
+ await writeServerLock({
9642
+ pid: process.pid,
9643
+ port: actualPort,
9644
+ host: config.host,
9645
+ httpUrl: config.unix ? `unix:${config.unix}` : `http://${config.host}:${actualPort}`,
9646
+ startedAt: Date.now()
9647
+ });
9648
+ let shuttingDown = false;
9649
+ const shutdown = async () => {
9650
+ if (shuttingDown)
9651
+ return;
9652
+ shuttingDown = true;
9653
+ server.stop(true);
9654
+ await sessionManager.destroyAll();
9655
+ await removeServerLock();
9656
+ process.exit(0);
9657
+ };
9658
+ process.once("SIGINT", () => void shutdown());
9659
+ process.once("SIGTERM", () => void shutdown());
9660
+ });
9661
+ }
9458
9662
  if (false) {}
9459
- if (false) {}
9460
- if (false) {}
9663
+ if (true) {
9664
+ program2.command("open <cc-url>").description("Connect to a Claude Code server (internal \u2014 use cc:// URLs)").option("-p, --print [prompt]", "Print mode (headless)").option("--output-format <format>", "Output format: text, json, stream-json", "text").action(async (ccUrl, opts) => {
9665
+ const { parseConnectUrl } = await import("./chunk-1qzt23et.js");
9666
+ const { serverUrl, authToken } = parseConnectUrl(ccUrl);
9667
+ let connectConfig;
9668
+ try {
9669
+ const session = await createDirectConnectSession({
9670
+ serverUrl,
9671
+ authToken,
9672
+ cwd: getOriginalCwd(),
9673
+ dangerouslySkipPermissions: _pendingConnect?.dangerouslySkipPermissions
9674
+ });
9675
+ if (session.workDir) {
9676
+ setOriginalCwd(session.workDir);
9677
+ setCwdState(session.workDir);
9678
+ }
9679
+ setDirectConnectServerUrl(serverUrl);
9680
+ connectConfig = session.config;
9681
+ } catch (err) {
9682
+ console.error(err instanceof DirectConnectError ? err.message : String(err));
9683
+ process.exit(1);
9684
+ }
9685
+ const { runConnectHeadless } = await import("./chunk-qazvrdfx.js");
9686
+ const prompt = typeof opts.print === "string" ? opts.print : "";
9687
+ const interactive = opts.print === true;
9688
+ await runConnectHeadless(connectConfig, prompt, opts.outputFormat, interactive);
9689
+ });
9690
+ }
9461
9691
  const auth = program2.command("auth").description("Manage authentication").configureHelp(createSortedHelpConfig());
9462
9692
  auth.command("login").description("Sign in to your Anthropic account").option("--email <email>", "Pre-populate email address on the login page").option("--sso", "Force SSO login flow").option("--console", "Use Anthropic Console (API usage billing) instead of Claude subscription").option("--claudeai", "Use Claude subscription (default)").action(async ({
9463
9693
  email,
@@ -9465,74 +9695,74 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9465
9695
  console: useConsole,
9466
9696
  claudeai
9467
9697
  }) => {
9468
- const { authLogin } = await import("./chunk-2mvp0yy0.js");
9698
+ const { authLogin } = await import("./chunk-ewmc9tav.js");
9469
9699
  await authLogin({ email, sso, console: useConsole, claudeai });
9470
9700
  });
9471
9701
  auth.command("status").description("Show authentication status").option("--json", "Output as JSON (default)").option("--text", "Output as human-readable text").action(async (opts) => {
9472
- const { authStatus } = await import("./chunk-2mvp0yy0.js");
9702
+ const { authStatus } = await import("./chunk-ewmc9tav.js");
9473
9703
  await authStatus(opts);
9474
9704
  });
9475
9705
  auth.command("logout").description("Log out from your Anthropic account").action(async () => {
9476
- const { authLogout } = await import("./chunk-2mvp0yy0.js");
9706
+ const { authLogout } = await import("./chunk-ewmc9tav.js");
9477
9707
  await authLogout();
9478
9708
  });
9479
9709
  const coworkOption = () => new Option("--cowork", "Use cowork_plugins directory").hideHelp();
9480
9710
  const pluginCmd = program2.command("plugin").alias("plugins").description("Manage Claude Code plugins").configureHelp(createSortedHelpConfig());
9481
9711
  pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").addOption(coworkOption()).action(async (manifestPath, options) => {
9482
- const { pluginValidateHandler } = await import("./chunk-xfffg80w.js");
9712
+ const { pluginValidateHandler } = await import("./chunk-s5wv4tve.js");
9483
9713
  await pluginValidateHandler(manifestPath, options);
9484
9714
  });
9485
9715
  pluginCmd.command("list").description("List installed plugins").option("--json", "Output as JSON").option("--available", "Include available plugins from marketplaces (requires --json)").addOption(coworkOption()).action(async (options) => {
9486
- const { pluginListHandler } = await import("./chunk-xfffg80w.js");
9716
+ const { pluginListHandler } = await import("./chunk-s5wv4tve.js");
9487
9717
  await pluginListHandler(options);
9488
9718
  });
9489
9719
  const marketplaceCmd = pluginCmd.command("marketplace").description("Manage Claude Code marketplaces").configureHelp(createSortedHelpConfig());
9490
9720
  marketplaceCmd.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").addOption(coworkOption()).option("--sparse <paths...>", "Limit checkout to specific directories via git sparse-checkout (for monorepos). Example: --sparse .claude-plugin plugins").option("--scope <scope>", "Where to declare the marketplace: user (default), project, or local").action(async (source, options) => {
9491
- const { marketplaceAddHandler } = await import("./chunk-xfffg80w.js");
9721
+ const { marketplaceAddHandler } = await import("./chunk-s5wv4tve.js");
9492
9722
  await marketplaceAddHandler(source, options);
9493
9723
  });
9494
9724
  marketplaceCmd.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").addOption(coworkOption()).action(async (options) => {
9495
- const { marketplaceListHandler } = await import("./chunk-xfffg80w.js");
9725
+ const { marketplaceListHandler } = await import("./chunk-s5wv4tve.js");
9496
9726
  await marketplaceListHandler(options);
9497
9727
  });
9498
9728
  marketplaceCmd.command("remove <name>").alias("rm").description("Remove a configured marketplace").addOption(coworkOption()).action(async (name, options) => {
9499
- const { marketplaceRemoveHandler } = await import("./chunk-xfffg80w.js");
9729
+ const { marketplaceRemoveHandler } = await import("./chunk-s5wv4tve.js");
9500
9730
  await marketplaceRemoveHandler(name, options);
9501
9731
  });
9502
9732
  marketplaceCmd.command("update [name]").description("Update marketplace(s) from their source - updates all if no name specified").addOption(coworkOption()).action(async (name, options) => {
9503
- const { marketplaceUpdateHandler } = await import("./chunk-xfffg80w.js");
9733
+ const { marketplaceUpdateHandler } = await import("./chunk-s5wv4tve.js");
9504
9734
  await marketplaceUpdateHandler(name, options);
9505
9735
  });
9506
9736
  pluginCmd.command("install <plugin>").alias("i").description("Install a plugin from available marketplaces (use plugin@marketplace for specific marketplace)").option("-s, --scope <scope>", "Installation scope: user, project, or local", "user").addOption(coworkOption()).action(async (plugin, options) => {
9507
- const { pluginInstallHandler } = await import("./chunk-xfffg80w.js");
9737
+ const { pluginInstallHandler } = await import("./chunk-s5wv4tve.js");
9508
9738
  await pluginInstallHandler(plugin, options);
9509
9739
  });
9510
9740
  pluginCmd.command("uninstall <plugin>").alias("remove").alias("rm").description("Uninstall an installed plugin").option("-s, --scope <scope>", "Uninstall from scope: user, project, or local", "user").option("--keep-data", "Preserve the plugin's persistent data directory (~/.claude/plugins/data/{id}/)").addOption(coworkOption()).action(async (plugin, options) => {
9511
- const { pluginUninstallHandler } = await import("./chunk-xfffg80w.js");
9741
+ const { pluginUninstallHandler } = await import("./chunk-s5wv4tve.js");
9512
9742
  await pluginUninstallHandler(plugin, options);
9513
9743
  });
9514
9744
  pluginCmd.command("enable <plugin>").description("Enable a disabled plugin").option("-s, --scope <scope>", `Installation scope: ${VALID_INSTALLABLE_SCOPES.join(", ")} (default: auto-detect)`).addOption(coworkOption()).action(async (plugin, options) => {
9515
- const { pluginEnableHandler } = await import("./chunk-xfffg80w.js");
9745
+ const { pluginEnableHandler } = await import("./chunk-s5wv4tve.js");
9516
9746
  await pluginEnableHandler(plugin, options);
9517
9747
  });
9518
9748
  pluginCmd.command("disable [plugin]").description("Disable an enabled plugin").option("-a, --all", "Disable all enabled plugins").option("-s, --scope <scope>", `Installation scope: ${VALID_INSTALLABLE_SCOPES.join(", ")} (default: auto-detect)`).addOption(coworkOption()).action(async (plugin, options) => {
9519
- const { pluginDisableHandler } = await import("./chunk-xfffg80w.js");
9749
+ const { pluginDisableHandler } = await import("./chunk-s5wv4tve.js");
9520
9750
  await pluginDisableHandler(plugin, options);
9521
9751
  });
9522
9752
  pluginCmd.command("update <plugin>").description("Update a plugin to the latest version (restart required to apply)").option("-s, --scope <scope>", `Installation scope: ${VALID_UPDATE_SCOPES.join(", ")} (default: user)`).addOption(coworkOption()).action(async (plugin, options) => {
9523
- const { pluginUpdateHandler } = await import("./chunk-xfffg80w.js");
9753
+ const { pluginUpdateHandler } = await import("./chunk-s5wv4tve.js");
9524
9754
  await pluginUpdateHandler(plugin, options);
9525
9755
  });
9526
9756
  program2.command("setup-token").description("Set up a long-lived authentication token (requires Claude subscription)").action(async () => {
9527
9757
  const [{ setupTokenHandler }, { createRoot }] = await Promise.all([
9528
- import("./chunk-dqrma4xg.js"),
9758
+ import("./chunk-n5by3h0t.js"),
9529
9759
  import("./chunk-gybj15eh.js")
9530
9760
  ]);
9531
9761
  const root = await createRoot(getBaseRenderOptions(false));
9532
9762
  await setupTokenHandler(root);
9533
9763
  });
9534
9764
  program2.command("agents").description("List configured agents").option("--setting-sources <sources>", "Comma-separated list of setting sources to load (user, project, local).").action(async () => {
9535
- const { agentsHandler } = await import("./chunk-ex16f66z.js");
9765
+ const { agentsHandler } = await import("./chunk-je44d8pc.js");
9536
9766
  await agentsHandler();
9537
9767
  process.exit(0);
9538
9768
  });
@@ -9540,25 +9770,58 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9540
9770
  if (getAutoModeEnabledStateIfCached() !== "disabled") {
9541
9771
  const autoModeCmd = program2.command("auto-mode").description("Inspect auto mode classifier configuration");
9542
9772
  autoModeCmd.command("defaults").description("Print the default auto mode environment, allow, and deny rules as JSON").action(async () => {
9543
- const { autoModeDefaultsHandler } = await import("./chunk-e3ddewwa.js");
9773
+ const { autoModeDefaultsHandler } = await import("./chunk-vxzmjwjs.js");
9544
9774
  autoModeDefaultsHandler();
9545
9775
  process.exit(0);
9546
9776
  });
9547
9777
  autoModeCmd.command("config").description("Print the effective auto mode config as JSON: your settings where set, defaults otherwise").action(async () => {
9548
- const { autoModeConfigHandler } = await import("./chunk-e3ddewwa.js");
9778
+ const { autoModeConfigHandler } = await import("./chunk-vxzmjwjs.js");
9549
9779
  autoModeConfigHandler();
9550
9780
  process.exit(0);
9551
9781
  });
9552
9782
  autoModeCmd.command("critique").description("Get AI feedback on your custom auto mode rules").option("--model <model>", "Override which model is used").action(async (options) => {
9553
- const { autoModeCritiqueHandler } = await import("./chunk-e3ddewwa.js");
9783
+ const { autoModeCritiqueHandler } = await import("./chunk-vxzmjwjs.js");
9554
9784
  await autoModeCritiqueHandler(options);
9555
9785
  process.exit();
9556
9786
  });
9557
9787
  }
9558
9788
  }
9789
+ {
9790
+ const autonomyCmd = program2.command("autonomy").description("Inspect and manage automatic autonomy runs and flows");
9791
+ autonomyCmd.command("status").description("Print autonomy run, flow, team, pipe, and remote-control status").option("--deep", "Include teams, pipes, daemon, and remote-control sections").action(async (options) => {
9792
+ const { autonomyStatusHandler } = await import("./chunk-fjs4cp8b.js");
9793
+ await autonomyStatusHandler(options);
9794
+ process.exit(0);
9795
+ });
9796
+ autonomyCmd.command("runs [limit]").description("List recent autonomy runs").action(async (limit) => {
9797
+ const { autonomyRunsHandler } = await import("./chunk-fjs4cp8b.js");
9798
+ await autonomyRunsHandler(limit);
9799
+ process.exit(0);
9800
+ });
9801
+ autonomyCmd.command("flows [limit]").description("List recent autonomy flows").action(async (limit) => {
9802
+ const { autonomyFlowsHandler } = await import("./chunk-fjs4cp8b.js");
9803
+ await autonomyFlowsHandler(limit);
9804
+ process.exit(0);
9805
+ });
9806
+ const flowCmd = autonomyCmd.command("flow <flowId>").description("Inspect a single autonomy flow").action(async (flowId) => {
9807
+ const { autonomyFlowHandler } = await import("./chunk-fjs4cp8b.js");
9808
+ await autonomyFlowHandler(flowId);
9809
+ process.exit(0);
9810
+ });
9811
+ flowCmd.command("cancel <flowId>").description("Cancel a queued, waiting, or running autonomy flow").action(async (flowId) => {
9812
+ const { autonomyFlowCancelHandler } = await import("./chunk-fjs4cp8b.js");
9813
+ await autonomyFlowCancelHandler(flowId);
9814
+ process.exit(0);
9815
+ });
9816
+ flowCmd.command("resume <flowId>").description("Resume a waiting autonomy flow").action(async (flowId) => {
9817
+ const { autonomyFlowResumeHandler } = await import("./chunk-fjs4cp8b.js");
9818
+ await autonomyFlowResumeHandler(flowId);
9819
+ process.exit(0);
9820
+ });
9821
+ }
9559
9822
  if (true) {
9560
9823
  program2.command("remote-control", { hidden: true }).alias("rc").description("Connect your local environment for remote-control sessions via claude.ai/code").action(async () => {
9561
- const { bridgeMain } = await import("./chunk-pdk7x283.js");
9824
+ const { bridgeMain } = await import("./chunk-wmpmafbc.js");
9562
9825
  await bridgeMain(process.argv.slice(3));
9563
9826
  });
9564
9827
  }
@@ -9574,7 +9837,7 @@ Omit sessionId to discover and pick from available sessions.
9574
9837
  }
9575
9838
  program2.command("doctor").description("Check the health of your Claude Code auto-updater. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async () => {
9576
9839
  const [{ doctorHandler }, { createRoot }] = await Promise.all([
9577
- import("./chunk-dqrma4xg.js"),
9840
+ import("./chunk-n5by3h0t.js"),
9578
9841
  import("./chunk-gybj15eh.js")
9579
9842
  ]);
9580
9843
  const root = await createRoot(getBaseRenderOptions(false));
@@ -9582,7 +9845,7 @@ Omit sessionId to discover and pick from available sessions.
9582
9845
  });
9583
9846
  if (process.env.USER_TYPE === "ant") {
9584
9847
  program2.command("up").description('[ANT-ONLY] Initialize or upgrade the local dev environment using the "# claude up" section of the nearest CLAUDE.md').action(async () => {
9585
- const { up } = await import("./chunk-3rdscn7v.js");
9848
+ const { up } = await import("./chunk-9sezj2s0.js");
9586
9849
  await up();
9587
9850
  });
9588
9851
  }
@@ -9598,11 +9861,11 @@ Examples:
9598
9861
  });
9599
9862
  }
9600
9863
  program2.command("install [target]").description("Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version)").option("--force", "Force installation even if already installed").action(async (target, options) => {
9601
- const { installHandler } = await import("./chunk-dqrma4xg.js");
9864
+ const { installHandler } = await import("./chunk-n5by3h0t.js");
9602
9865
  await installHandler(target, options);
9603
9866
  });
9604
9867
  program2.command("update").description("Update claude-code-best (ccb) to the latest version").action(async () => {
9605
- const { updateCCB } = await import("./chunk-p4ejm62w.js");
9868
+ const { updateCCB } = await import("./chunk-sadtb3z5.js");
9606
9869
  await updateCCB();
9607
9870
  });
9608
9871
  if (process.env.USER_TYPE === "ant") {
@@ -9613,11 +9876,11 @@ Examples:
9613
9876
  return Number(value);
9614
9877
  };
9615
9878
  program2.command("log").description("[ANT-ONLY] Manage conversation logs.").argument("[number|sessionId]", "A number (0, 1, 2, etc.) to display a specific log, or the sesssion ID (uuid) of a log", validateLogId).action(async (logId) => {
9616
- const { logHandler } = await import("./chunk-8rvn67de.js");
9879
+ const { logHandler } = await import("./chunk-0rbwrjqk.js");
9617
9880
  await logHandler(logId);
9618
9881
  });
9619
9882
  program2.command("error").description("[ANT-ONLY] View error logs. Optionally provide a number (0, -1, -2, etc.) to display a specific log.").argument("[number]", "A number (0, 1, 2, etc.) to display a specific log", parseInt).action(async (number) => {
9620
- const { errorHandler } = await import("./chunk-8rvn67de.js");
9883
+ const { errorHandler } = await import("./chunk-0rbwrjqk.js");
9621
9884
  await errorHandler(number);
9622
9885
  });
9623
9886
  program2.command("export").description("[ANT-ONLY] Export a conversation to a text file.").usage("<source> <outputFile>").argument("<source>", "Session ID, log index (0, 1, 2...), or path to a .json/.jsonl log file").argument("<outputFile>", "Output file path for the exported text").addHelpText("after", `
@@ -9626,34 +9889,34 @@ Examples:
9626
9889
  $ claude export <uuid> conversation.txt Export conversation by session ID
9627
9890
  $ claude export input.json output.txt Render JSON log file to text
9628
9891
  $ claude export <uuid>.jsonl output.txt Render JSONL session file to text`).action(async (source, outputFile) => {
9629
- const { exportHandler } = await import("./chunk-8rvn67de.js");
9892
+ const { exportHandler } = await import("./chunk-0rbwrjqk.js");
9630
9893
  await exportHandler(source, outputFile);
9631
9894
  });
9632
9895
  if (process.env.USER_TYPE === "ant") {
9633
9896
  const taskCmd = program2.command("task").description("[ANT-ONLY] Manage task list tasks");
9634
9897
  taskCmd.command("create <subject>").description("Create a new task").option("-d, --description <text>", "Task description").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').action(async (subject, opts) => {
9635
- const { taskCreateHandler } = await import("./chunk-8rvn67de.js");
9898
+ const { taskCreateHandler } = await import("./chunk-0rbwrjqk.js");
9636
9899
  await taskCreateHandler(subject, opts);
9637
9900
  });
9638
9901
  taskCmd.command("list").description("List all tasks").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').option("--pending", "Show only pending tasks").option("--json", "Output as JSON").action(async (opts) => {
9639
- const { taskListHandler } = await import("./chunk-8rvn67de.js");
9902
+ const { taskListHandler } = await import("./chunk-0rbwrjqk.js");
9640
9903
  await taskListHandler(opts);
9641
9904
  });
9642
9905
  taskCmd.command("get <id>").description("Get details of a task").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').action(async (id, opts) => {
9643
- const { taskGetHandler } = await import("./chunk-8rvn67de.js");
9906
+ const { taskGetHandler } = await import("./chunk-0rbwrjqk.js");
9644
9907
  await taskGetHandler(id, opts);
9645
9908
  });
9646
9909
  taskCmd.command("update <id>").description("Update a task").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').option("-s, --status <status>", `Set status (${TASK_STATUSES.join(", ")})`).option("--subject <text>", "Update subject").option("-d, --description <text>", "Update description").option("--owner <agentId>", "Set owner").option("--clear-owner", "Clear owner").action(async (id, opts) => {
9647
- const { taskUpdateHandler } = await import("./chunk-8rvn67de.js");
9910
+ const { taskUpdateHandler } = await import("./chunk-0rbwrjqk.js");
9648
9911
  await taskUpdateHandler(id, opts);
9649
9912
  });
9650
9913
  taskCmd.command("dir").description("Show the tasks directory path").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').action(async (opts) => {
9651
- const { taskDirHandler } = await import("./chunk-8rvn67de.js");
9914
+ const { taskDirHandler } = await import("./chunk-0rbwrjqk.js");
9652
9915
  await taskDirHandler(opts);
9653
9916
  });
9654
9917
  }
9655
9918
  program2.command("completion <shell>", { hidden: true }).description("Generate shell completion script (bash, zsh, or fish)").option("--output <file>", "Write completion script directly to a file instead of stdout").action(async (shell, opts) => {
9656
- const { completionHandler } = await import("./chunk-8rvn67de.js");
9919
+ const { completionHandler } = await import("./chunk-0rbwrjqk.js");
9657
9920
  await completionHandler(shell, opts, program2);
9658
9921
  });
9659
9922
  }