claude-code-best 1.1.0 → 1.2.1

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 (542) hide show
  1. package/README.md +66 -75
  2. package/dist/chunk-03hxwxzh.js +344 -0
  3. package/dist/chunk-07069jq1.js +30 -0
  4. package/dist/{chunk-kq098bkj.js → chunk-08g51x43.js} +254 -320
  5. package/dist/{chunk-7tqhx6dr.js → chunk-093r60b7.js} +109 -213
  6. package/dist/{chunk-ahjgghpe.js → chunk-0aya4737.js} +1 -1
  7. package/dist/{chunk-b4mnbry0.js → chunk-0fsdxz74.js} +4 -4
  8. package/dist/chunk-0jzdwbdc.js +14 -0
  9. package/dist/chunk-0mbxeb5q.js +406 -0
  10. package/dist/chunk-0pryepme.js +66 -0
  11. package/dist/chunk-0qsm7jac.js +169 -0
  12. package/dist/{chunk-1cbn5kxf.js → chunk-0rpb2bdp.js} +3 -2
  13. package/dist/chunk-0se7sxd4.js +38 -0
  14. package/dist/{chunk-3m7ge6tj.js → chunk-0xnepnph.js} +14 -12
  15. package/dist/{chunk-q7tvkc86.js → chunk-0zsam7pn.js} +10 -115
  16. package/dist/{chunk-44fpr6jq.js → chunk-168xb8v1.js} +4 -2
  17. package/dist/{chunk-bj0rvnjw.js → chunk-19h3a9pw.js} +40 -30
  18. package/dist/chunk-19wjkpe7.js +115 -0
  19. package/dist/{chunk-wsqhnjj3.js → chunk-1atfzck5.js} +24 -24
  20. package/dist/{chunk-0e1xsncc.js → chunk-1cwdhk7a.js} +1 -1
  21. package/dist/{chunk-c8jv6rtj.js → chunk-1hq59w8z.js} +78 -69
  22. package/dist/chunk-1qzk963z.js +108 -0
  23. package/dist/{chunk-fk06pejm.js → chunk-1rrmvwjn.js} +9 -9
  24. package/dist/{chunk-d18z9pna.js → chunk-1thgdca1.js} +2 -2
  25. package/dist/chunk-1tjnmcw7.js +68 -0
  26. package/dist/chunk-1xj83yc8.js +219 -0
  27. package/dist/chunk-21j2jfen.js +435 -0
  28. package/dist/{chunk-wc6wwwyb.js → chunk-21z7acxh.js} +3 -3
  29. package/dist/chunk-22gbbc5x.js +313 -0
  30. package/dist/chunk-238g70xa.js +1 -1
  31. package/dist/{chunk-vpb723tx.js → chunk-23ad5t92.js} +5 -5
  32. package/dist/{chunk-vbbf707n.js → chunk-24r3gfks.js} +39 -29
  33. package/dist/chunk-24sahbec.js +71 -0
  34. package/dist/chunk-28az45r7.js +112 -0
  35. package/dist/{chunk-9g827w4j.js → chunk-2q39ej51.js} +6 -6
  36. package/dist/chunk-2qwgfjcj.js +5370 -0
  37. package/dist/{chunk-0cpnzx7t.js → chunk-2rgvd09y.js} +118 -151
  38. package/dist/chunk-2wq8q15s.js +475 -0
  39. package/dist/{chunk-bqq4zamw.js → chunk-2ys5wcxk.js} +3 -3
  40. package/dist/{chunk-t24ytdcw.js → chunk-31nce7eh.js} +12 -10
  41. package/dist/chunk-31q6p2ke.js +123 -0
  42. package/dist/chunk-3394wc12.js +1024 -0
  43. package/dist/{chunk-33khw5gy.js → chunk-365zvqv3.js} +7 -7
  44. package/dist/{chunk-9g2ncq68.js → chunk-36gkb95k.js} +124 -128
  45. package/dist/{chunk-khdjg2v9.js → chunk-37y42ayh.js} +39 -29
  46. package/dist/chunk-3816xd5p.js +195 -0
  47. package/dist/chunk-3a6bynts.js +656 -0
  48. package/dist/{chunk-qvd0k5dn.js → chunk-3avfhw6x.js} +190 -348
  49. package/dist/{chunk-660kcy7p.js → chunk-3b25ycrx.js} +14 -8
  50. package/dist/chunk-3b4xhwhp.js +113 -0
  51. package/dist/chunk-3fjzvf0e.js +128 -0
  52. package/dist/chunk-3fvc0a79.js +67 -0
  53. package/dist/chunk-3g50kcwk.js +513 -0
  54. package/dist/chunk-3jnmy0nd.js +114 -0
  55. package/dist/chunk-3jzsxj3v.js +310 -0
  56. package/dist/{chunk-frbv3xqa.js → chunk-3mpfxbab.js} +2 -2
  57. package/dist/{chunk-aqa7w38f.js → chunk-3v03e2kz.js} +5 -5
  58. package/dist/chunk-3x5hdd5g.js +1030 -0
  59. package/dist/{chunk-mecs0gpc.js → chunk-3xv7rjsy.js} +14 -11
  60. package/dist/{chunk-j3215c49.js → chunk-3ygnhge8.js} +232 -372
  61. package/dist/chunk-42x5tjk2.js +42 -0
  62. package/dist/chunk-430tvx8d.js +110 -0
  63. package/dist/{chunk-dh6c8y1j.js → chunk-43h8sw5x.js} +3 -3
  64. package/dist/chunk-44d150tz.js +1175 -0
  65. package/dist/chunk-45dj834r.js +115 -0
  66. package/dist/{chunk-yhd82045.js → chunk-46fcr28b.js} +30 -9
  67. package/dist/{chunk-wm2f2f1z.js → chunk-474y75ga.js} +2 -2
  68. package/dist/{chunk-6fkwz9yk.js → chunk-478rpnqm.js} +8 -8
  69. package/dist/{chunk-83z0wrnz.js → chunk-47j9e6m2.js} +2 -2
  70. package/dist/chunk-47wqjw88.js +112 -0
  71. package/dist/{chunk-v4t6dyyh.js → chunk-4cp6193g.js} +2 -2
  72. package/dist/chunk-4h102wt5.js +65 -0
  73. package/dist/{chunk-3mgywd32.js → chunk-4hv90qcz.js} +1 -1
  74. package/dist/chunk-4k2270je.js +295 -0
  75. package/dist/{chunk-2wcbcdky.js → chunk-4k842par.js} +5 -5
  76. package/dist/chunk-4nspekjp.js +69 -0
  77. package/dist/chunk-4pjqtps4.js +151 -0
  78. package/dist/chunk-4sehjy27.js +112 -0
  79. package/dist/{chunk-pgnnrm2v.js → chunk-4t86n23n.js} +21 -17
  80. package/dist/{chunk-2de1vaxf.js → chunk-4whfjn78.js} +68 -78
  81. package/dist/{chunk-41mpwc8h.js → chunk-53c9gb9c.js} +19 -15
  82. package/dist/chunk-53kt8caz.js +122 -0
  83. package/dist/chunk-5a6ahhvy.js +594 -0
  84. package/dist/{chunk-12pv5fez.js → chunk-5gbqknz6.js} +10 -8
  85. package/dist/{chunk-hfzj1m07.js → chunk-5kkvfgzs.js} +14 -5
  86. package/dist/{chunk-4ycz58wj.js → chunk-5pxygepg.js} +68 -8
  87. package/dist/{chunk-2w8633e3.js → chunk-5rgbq3kf.js} +61 -100
  88. package/dist/{chunk-ggqx30m9.js → chunk-5z28bqne.js} +23 -311
  89. package/dist/{chunk-7ejt5gqq.js → chunk-5z8w2q5k.js} +65 -48
  90. package/dist/chunk-60k6v40t.js +70 -0
  91. package/dist/{chunk-p7g7pf3f.js → chunk-61ahbn23.js} +8 -6
  92. package/dist/{chunk-rmbp2das.js → chunk-64pp4hsr.js} +21 -19
  93. package/dist/{chunk-0sb5scxx.js → chunk-652wnf1z.js} +5 -5
  94. package/dist/{chunk-q25bjaev.js → chunk-677as3nh.js} +2 -2
  95. package/dist/{chunk-xs0hwvpa.js → chunk-68pfxvxt.js} +14 -9
  96. package/dist/{chunk-epmheefa.js → chunk-69hys77v.js} +8 -8
  97. package/dist/{chunk-427m88ms.js → chunk-6p1cptq5.js} +9 -9
  98. package/dist/{chunk-0nqrscrr.js → chunk-6p3mtny2.js} +5 -5
  99. package/dist/{chunk-v1mgv1et.js → chunk-6p4cyhb3.js} +4 -3
  100. package/dist/{chunk-m17y8b22.js → chunk-6rxz872v.js} +39 -29
  101. package/dist/chunk-6sjxvthw.js +106 -0
  102. package/dist/{chunk-6mz58s8p.js → chunk-6xana182.js} +18 -14
  103. package/dist/{chunk-vaebptnz.js → chunk-6zn3fm1k.js} +39 -29
  104. package/dist/chunk-704jkbsp.js +183 -0
  105. package/dist/chunk-71sf47by.js +154 -0
  106. package/dist/chunk-73a5g713.js +78 -0
  107. package/dist/chunk-78p7h20f.js +259 -0
  108. package/dist/chunk-7a3b1d4s.js +75 -0
  109. package/dist/{chunk-fpf4cgbt.js → chunk-7bfach0x.js} +9 -9
  110. package/dist/{chunk-ckcagq32.js → chunk-7gqf9wej.js} +5 -5
  111. package/dist/{chunk-sa7nc0vv.js → chunk-7y25wk51.js} +1 -1
  112. package/dist/{chunk-vyd8jzde.js → chunk-81v55vtd.js} +96 -85
  113. package/dist/{chunk-dv1wfr85.js → chunk-8225arm6.js} +5 -4
  114. package/dist/chunk-86715d2d.js +186 -0
  115. package/dist/chunk-8ah9easf.js +365 -0
  116. package/dist/{chunk-rwexx5ns.js → chunk-8baq1s87.js} +1 -3
  117. package/dist/chunk-8fy8hx84.js +386 -0
  118. package/dist/{chunk-4pbx3g7s.js → chunk-8g747a8x.js} +1 -1
  119. package/dist/{chunk-xyqr1cww.js → chunk-8me0yq6v.js} +12 -12
  120. package/dist/{chunk-sdj9b9wh.js → chunk-8pn8tvgg.js} +9 -154
  121. package/dist/chunk-8qxyxgkb.js +161 -0
  122. package/dist/{chunk-ecsw41df.js → chunk-8xs4yp9x.js} +85 -77
  123. package/dist/{chunk-24x87knx.js → chunk-9000dg9h.js} +1327 -2882
  124. package/dist/{chunk-bmvb57qb.js → chunk-905d2hee.js} +5 -5
  125. package/dist/chunk-90qsc60s.js +378 -0
  126. package/dist/chunk-92x6xgex.js +265 -0
  127. package/dist/{chunk-jknt3rxg.js → chunk-9ctg4x6c.js} +7 -9
  128. package/dist/chunk-9e4z7dx7.js +389 -0
  129. package/dist/chunk-9hy6ejmp.js +151 -0
  130. package/dist/chunk-9jvggd30.js +173 -0
  131. package/dist/{chunk-z9tgzh90.js → chunk-9m729tsn.js} +46 -35
  132. package/dist/chunk-9r90d3jt.js +121 -0
  133. package/dist/chunk-9rx2m3cb.js +124 -0
  134. package/dist/chunk-9sr2etaw.js +110 -0
  135. package/dist/chunk-9z8hzgve.js +68 -0
  136. package/dist/{chunk-yxnwsp4f.js → chunk-9zy607vw.js} +8 -6
  137. package/dist/chunk-a0bz6g5e.js +63 -0
  138. package/dist/chunk-a136cvvz.js +27 -0
  139. package/dist/{chunk-n5t9m8h9.js → chunk-a1bjde7d.js} +7 -7
  140. package/dist/{chunk-mvss16tj.js → chunk-a2aj2mtb.js} +414 -636
  141. package/dist/{chunk-8hsyagr8.js → chunk-a3sfy6as.js} +1 -1
  142. package/dist/{chunk-8hq5kk3y.js → chunk-a4twdmhf.js} +3 -2
  143. package/dist/chunk-ae76ded0.js +30 -0
  144. package/dist/chunk-aegyxcne.js +111 -0
  145. package/dist/chunk-aj1dcvrh.js +131 -0
  146. package/dist/{chunk-1yabrspp.js → chunk-amxm6996.js} +2 -2
  147. package/dist/{chunk-t6h4wf3k.js → chunk-ar39mr9c.js} +11 -11
  148. package/dist/{chunk-r6b58y3x.js → chunk-ase86y73.js} +1 -3
  149. package/dist/chunk-asfxrz4f.js +94 -0
  150. package/dist/chunk-axj46c2c.js +196 -0
  151. package/dist/{chunk-m5eb5pt2.js → chunk-ayz6f38j.js} +6 -6
  152. package/dist/{chunk-5b7119h5.js → chunk-b00zd850.js} +8 -6
  153. package/dist/chunk-b2abjkf7.js +126 -0
  154. package/dist/{chunk-8bedvdm1.js → chunk-b81hd3m6.js} +1 -1
  155. package/dist/chunk-bcfd2zw7.js +20 -0
  156. package/dist/{chunk-n5516f5q.js → chunk-bd8zk9tn.js} +4 -4
  157. package/dist/chunk-bhdt6k7w.js +15 -0
  158. package/dist/{chunk-jy35mvy3.js → chunk-bmjmrk76.js} +7 -7
  159. package/dist/chunk-bqaqz1j1.js +126 -0
  160. package/dist/chunk-bsbmmfyt.js +17 -0
  161. package/dist/{chunk-snvypj85.js → chunk-bt64sq5y.js} +3 -2
  162. package/dist/{chunk-zq9xa1xe.js → chunk-bwevztsj.js} +109 -141
  163. package/dist/{chunk-vyc0rjyx.js → chunk-bwg7582d.js} +1 -1
  164. package/dist/{chunk-3be7ka25.js → chunk-bxcfz5gy.js} +1 -1
  165. package/dist/chunk-c2mn2fyg.js +1406 -0
  166. package/dist/chunk-c2tw0dep.js +1811 -0
  167. package/dist/{chunk-402jrnj6.js → chunk-c5bngssh.js} +8 -8
  168. package/dist/chunk-c6sjhj89.js +1284 -0
  169. package/dist/chunk-cb2hpe6k.js +443 -0
  170. package/dist/{chunk-91r0z5qq.js → chunk-ccr1s7qs.js} +1152 -1771
  171. package/dist/chunk-cewqh6rb.js +111 -0
  172. package/dist/{chunk-k9a8jemz.js → chunk-cg01f3ez.js} +7 -7
  173. package/dist/{chunk-f64npa3b.js → chunk-chsyvavm.js} +704 -4
  174. package/dist/{chunk-z8nbjar4.js → chunk-cmcbatgz.js} +7 -5
  175. package/dist/chunk-cnsj3vq2.js +35 -0
  176. package/dist/{chunk-rj86xm6z.js → chunk-cpwe0yw7.js} +1 -1
  177. package/dist/chunk-cqjmxeqv.js +269 -0
  178. package/dist/{chunk-qpm1tmzz.js → chunk-crefny3c.js} +125 -193
  179. package/dist/{chunk-ks0m9njy.js → chunk-d2jekryq.js} +8 -8
  180. package/dist/chunk-d4mdda98.js +94 -0
  181. package/dist/{chunk-26wtxbdc.js → chunk-d7886r6a.js} +6928 -6928
  182. package/dist/chunk-dfkgpfaj.js +135 -0
  183. package/dist/{chunk-9mfbqw9k.js → chunk-dm3n2qgd.js} +4 -4
  184. package/dist/chunk-dnj95atq.js +66 -0
  185. package/dist/{chunk-vjc1svpc.js → chunk-dqgzpb0q.js} +87 -77
  186. package/dist/chunk-drenq3c7.js +383 -0
  187. package/dist/chunk-drkm8yx2.js +34 -0
  188. package/dist/{chunk-ra8fbt9p.js → chunk-dvjzq9x9.js} +543 -874
  189. package/dist/{chunk-w7h2yphx.js → chunk-dwekpr47.js} +2 -2
  190. package/dist/{chunk-49k5ktrj.js → chunk-e18dg1md.js} +31 -16
  191. package/dist/chunk-e396ak46.js +111 -0
  192. package/dist/{chunk-r55r29js.js → chunk-e3c32vwa.js} +191 -276
  193. package/dist/chunk-e3m7kqkb.js +1185 -0
  194. package/dist/{chunk-9cc60ae5.js → chunk-ea9m4e0k.js} +79 -70
  195. package/dist/chunk-ecsa9nd5.js +63 -0
  196. package/dist/{chunk-cmdsbsb6.js → chunk-edzkkadh.js} +2 -2
  197. package/dist/chunk-ek1jasqg.js +142 -0
  198. package/dist/chunk-ep0hwv07.js +126 -0
  199. package/dist/{chunk-cs6y2pc9.js → chunk-ergam9ft.js} +5 -5
  200. package/dist/{chunk-ptwn7qw7.js → chunk-f2k8b4nd.js} +38 -10
  201. package/dist/{chunk-h0rbjg6x.js → chunk-f2mhrmww.js} +8 -1
  202. package/dist/{chunk-s84smrx4.js → chunk-f32cksgw.js} +155 -190
  203. package/dist/{chunk-vzqrbsd1.js → chunk-f69rgsm2.js} +5 -5
  204. package/dist/{chunk-f3bapa1x.js → chunk-f6rbj3gz.js} +12 -7
  205. package/dist/chunk-f7n3xete.js +113 -0
  206. package/dist/chunk-fbest4vx.js +109 -0
  207. package/dist/{chunk-v0wa5ref.js → chunk-fdtcb8qr.js} +13 -555
  208. package/dist/chunk-feh2j8m2.js +136 -0
  209. package/dist/chunk-feyzykye.js +10 -0
  210. package/dist/chunk-fkkysfev.js +158 -0
  211. package/dist/chunk-fn510gqw.js +216 -0
  212. package/dist/{chunk-ch53fgm5.js → chunk-ft9qsa01.js} +13 -11
  213. package/dist/chunk-fw0ckaxh.js +109 -0
  214. package/dist/{chunk-kd97kxjn.js → chunk-fz0ch109.js} +3 -2
  215. package/dist/{chunk-ks0dm6t3.js → chunk-fzn524wa.js} +17 -71
  216. package/dist/chunk-g1k68z1b.js +15 -0
  217. package/dist/{chunk-9t1x831d.js → chunk-g5nb4xhz.js} +86 -74
  218. package/dist/chunk-g82mdy27.js +429 -0
  219. package/dist/{chunk-68qevppc.js → chunk-g8sz060e.js} +82 -72
  220. package/dist/chunk-g9f19ttm.js +15 -0
  221. package/dist/{chunk-zz21rvr7.js → chunk-gdqxtdh4.js} +9 -6
  222. package/dist/chunk-get9fk3h.js +74 -0
  223. package/dist/{chunk-4x5ym4h2.js → chunk-gf6qjt7j.js} +130 -16
  224. package/dist/{chunk-bq6x1ehp.js → chunk-gpz0ddyz.js} +8 -8
  225. package/dist/{chunk-mwp7sj0q.js → chunk-gs5eeqmc.js} +110336 -114801
  226. package/dist/{chunk-qqfa0dqg.js → chunk-h4b85amj.js} +20 -32
  227. package/dist/{chunk-j4c8s7tn.js → chunk-h5zv78zq.js} +9 -6
  228. package/dist/{chunk-cgn27dqf.js → chunk-ha5d5zfj.js} +3 -3
  229. package/dist/{chunk-crr52hf4.js → chunk-han7cwc0.js} +14 -12
  230. package/dist/{chunk-dnyeb288.js → chunk-hbv0tk35.js} +74 -106
  231. package/dist/{chunk-nxsh6de2.js → chunk-hcgkak1j.js} +20 -125
  232. package/dist/{chunk-224x480q.js → chunk-hd1p4hrd.js} +8 -6
  233. package/dist/{chunk-tjaqa99q.js → chunk-hezj20qy.js} +3 -3
  234. package/dist/{chunk-z7pr85qw.js → chunk-hfdyez7b.js} +3 -3
  235. package/dist/chunk-hh7hqa2c.js +272 -0
  236. package/dist/chunk-hk4a2sks.js +83 -0
  237. package/dist/{chunk-5zh1fbrj.js → chunk-hq85v2s7.js} +3 -3
  238. package/dist/chunk-hr06142m.js +117 -0
  239. package/dist/chunk-j1b3r6v6.js +66 -0
  240. package/dist/{chunk-v8xem37v.js → chunk-j2fgn3kq.js} +8 -6
  241. package/dist/chunk-j2wgj22c.js +441 -0
  242. package/dist/{chunk-9gbamk79.js → chunk-j5bth84e.js} +5 -1
  243. package/dist/{chunk-vratq94g.js → chunk-j9gxwbe3.js} +1 -1
  244. package/dist/{chunk-cettj572.js → chunk-ja87jt56.js} +7 -131
  245. package/dist/{chunk-3r24h7t6.js → chunk-jaaxk89e.js} +1 -1
  246. package/dist/{chunk-f4jcw0ea.js → chunk-jaew3662.js} +18 -14
  247. package/dist/{chunk-e1ge9n4d.js → chunk-jb2nh0m0.js} +2 -2
  248. package/dist/{chunk-f9b4wb89.js → chunk-jb4fc073.js} +84 -75
  249. package/dist/chunk-jba8f3hz.js +108 -0
  250. package/dist/{chunk-er9vzjac.js → chunk-jbt0jgtc.js} +16 -14
  251. package/dist/{chunk-v399mzxk.js → chunk-jf0p00fz.js} +2 -2
  252. package/dist/{chunk-vygf94dw.js → chunk-jg4ge4de.js} +78 -69
  253. package/dist/chunk-jkvy2cmt.js +346 -0
  254. package/dist/{chunk-80qg1pzv.js → chunk-jmdy5vdy.js} +11 -9
  255. package/dist/{chunk-dqh7e4mt.js → chunk-jn08nxj8.js} +52 -42
  256. package/dist/{chunk-av73dywf.js → chunk-jna2tcvj.js} +8 -8
  257. package/dist/chunk-jwh384j5.js +126 -0
  258. package/dist/chunk-jwx2scxy.js +222 -0
  259. package/dist/{chunk-41xeh3t9.js → chunk-jy6c07wa.js} +4 -4
  260. package/dist/{chunk-ctmt7xh1.js → chunk-jy77nthd.js} +740 -907
  261. package/dist/{chunk-hzttn8j7.js → chunk-jyjpaqbt.js} +139 -135
  262. package/dist/chunk-jztjnw31.js +147 -0
  263. package/dist/chunk-k0jhzcwg.js +2540 -0
  264. package/dist/{chunk-myzwt5yw.js → chunk-k0kwfqr8.js} +9 -15
  265. package/dist/{chunk-bqfnp99q.js → chunk-k3s4yk22.js} +1 -1
  266. package/dist/{chunk-1dyeexvn.js → chunk-kd3mmsd2.js} +4 -4
  267. package/dist/{chunk-x51h62jq.js → chunk-ke78h68m.js} +78 -69
  268. package/dist/{chunk-1xkekb9y.js → chunk-kfd89dsd.js} +5 -3
  269. package/dist/chunk-ksvvwa9w.js +111 -0
  270. package/dist/{chunk-jy35z4n0.js → chunk-m1z5td19.js} +9 -9
  271. package/dist/{chunk-jafes477.js → chunk-m2bcpk8j.js} +4 -3
  272. package/dist/{chunk-n6fbyke9.js → chunk-m2mzpskw.js} +3 -3
  273. package/dist/{chunk-s2dmn3yg.js → chunk-m47q5mxt.js} +5 -5
  274. package/dist/{chunk-s7qj2hg5.js → chunk-m8vyp6rw.js} +2 -2
  275. package/dist/chunk-mm4m13ng.js +881 -0
  276. package/dist/{chunk-ghr4s9g6.js → chunk-mq1qrwhq.js} +79 -70
  277. package/dist/{chunk-45e9mkyr.js → chunk-mqqw60br.js} +43 -83
  278. package/dist/chunk-mtcdknc8.js +2842 -0
  279. package/dist/{chunk-cvge4pvp.js → chunk-mzd6frw6.js} +2 -2
  280. package/dist/{chunk-n2874aq5.js → chunk-n1neft0d.js} +13 -7
  281. package/dist/{chunk-bcrxtdcy.js → chunk-n2mysxn1.js} +40 -30
  282. package/dist/chunk-n4wkxbq0.js +365 -0
  283. package/dist/chunk-n57dw6h9.js +128 -0
  284. package/dist/chunk-n5wf3b82.js +118 -0
  285. package/dist/{chunk-zgrg0wk3.js → chunk-n7ce94nd.js} +27 -67
  286. package/dist/{chunk-me2ef6g4.js → chunk-n8mpqdje.js} +1 -1
  287. package/dist/{chunk-g5sg6y9q.js → chunk-na2e0dfj.js} +82 -72
  288. package/dist/chunk-netzwgv1.js +154 -0
  289. package/dist/{chunk-xszk7n10.js → chunk-nh3cd07f.js} +1 -1
  290. package/dist/{chunk-5tx8dsy0.js → chunk-npjsp3z3.js} +10493 -18453
  291. package/dist/{chunk-5hva0tsg.js → chunk-p2yv7m0g.js} +6 -6
  292. package/dist/chunk-p4rmbc1e.js +409 -0
  293. package/dist/chunk-p7jdncj4.js +122 -0
  294. package/dist/{chunk-zk2wsm7d.js → chunk-p7vkh4wx.js} +2 -2
  295. package/dist/{chunk-da4ve9t5.js → chunk-p8crqj70.js} +10 -10
  296. package/dist/{chunk-hy3g1nv8.js → chunk-prw4xz5q.js} +9 -7
  297. package/dist/{chunk-zsfxha74.js → chunk-pshjyzq4.js} +8 -7
  298. package/dist/{chunk-684kdqez.js → chunk-q08sb44h.js} +203 -304
  299. package/dist/{chunk-n7158r58.js → chunk-q78bgdtk.js} +79 -70
  300. package/dist/{chunk-e5pntxye.js → chunk-q7tpyeb3.js} +6 -4
  301. package/dist/{chunk-7ymfj7m3.js → chunk-q82r31er.js} +1 -1
  302. package/dist/chunk-qajrkk97.js +298 -0
  303. package/dist/chunk-qbrsmra3.js +23 -0
  304. package/dist/chunk-qhfn4vgv.js +66 -0
  305. package/dist/{chunk-d7mx1phm.js → chunk-qndzvkdx.js} +61 -103
  306. package/dist/{chunk-35y0r56v.js → chunk-qtfc6wdh.js} +1 -4
  307. package/dist/{chunk-v9y80148.js → chunk-qwcnwn5t.js} +100 -191
  308. package/dist/chunk-qwehvedn.js +440 -0
  309. package/dist/{chunk-2cgdr2n7.js → chunk-qwk9fq7r.js} +78 -69
  310. package/dist/chunk-qy75c2vm.js +70 -0
  311. package/dist/{chunk-rryx19hp.js → chunk-r2k2jy0y.js} +2 -2
  312. package/dist/chunk-r47p0ff0.js +61 -0
  313. package/dist/{chunk-t3bf8hcf.js → chunk-r5tk54yt.js} +2 -2
  314. package/dist/{chunk-bt9krt49.js → chunk-r8q993g6.js} +38 -32
  315. package/dist/{chunk-veb0gkcf.js → chunk-ra2rykps.js} +78 -69
  316. package/dist/{chunk-gbcqdr0x.js → chunk-rav5xp8h.js} +1 -1
  317. package/dist/chunk-rbe0tcn9.js +120 -0
  318. package/dist/chunk-rd5cfz3k.js +68 -0
  319. package/dist/{chunk-cenpqc2t.js → chunk-rdvaan98.js} +8 -6
  320. package/dist/{chunk-dr4qq42x.js → chunk-rgbbtszq.js} +9 -9
  321. package/dist/chunk-rjsb9s3q.js +206 -0
  322. package/dist/{chunk-fdwa7gem.js → chunk-rkak3kjw.js} +7 -7
  323. package/dist/{chunk-a6s8wnhe.js → chunk-rnam0xc5.js} +4 -4
  324. package/dist/chunk-rqkqbppr.js +112 -0
  325. package/dist/{chunk-ye18m1zb.js → chunk-rqvqqrpg.js} +38 -8
  326. package/dist/{chunk-rw466wqn.js → chunk-rvkvehat.js} +5284 -3093
  327. package/dist/chunk-s1baskk7.js +14 -0
  328. package/dist/{chunk-jt0pha6y.js → chunk-s5gnvx67.js} +227 -198
  329. package/dist/chunk-s7dtt7tw.js +109 -0
  330. package/dist/chunk-s9ftt1fh.js +135 -0
  331. package/dist/chunk-sc6sy490.js +240 -0
  332. package/dist/chunk-sh9er84d.js +1073 -0
  333. package/dist/{chunk-faycqscv.js → chunk-sk9xag9g.js} +2 -2
  334. package/dist/{chunk-zpc0kwkb.js → chunk-t0g8wbcq.js} +7 -7
  335. package/dist/chunk-tbgm1v8n.js +146 -0
  336. package/dist/{chunk-35b0ek0j.js → chunk-tcdv4gp8.js} +13 -9
  337. package/dist/{chunk-mt25echc.js → chunk-tezak8rx.js} +1 -1
  338. package/dist/chunk-thk6yn51.js +154 -0
  339. package/dist/{chunk-s2gm9vfk.js → chunk-tkf24yhv.js} +7 -7
  340. package/dist/{chunk-6td4c2eq.js → chunk-tkrjcekq.js} +54 -72
  341. package/dist/{chunk-9rcbyag3.js → chunk-tmdbrszg.js} +2 -2
  342. package/dist/chunk-tw2g1yhq.js +118 -0
  343. package/dist/chunk-twzjxwhf.js +182 -0
  344. package/dist/{chunk-m94pnhfa.js → chunk-v4e4f711.js} +39 -29
  345. package/dist/{chunk-b51jjfh5.js → chunk-v5k7zmqm.js} +43 -32
  346. package/dist/chunk-var1et7e.js +66 -0
  347. package/dist/chunk-vd11xbz3.js +304 -0
  348. package/dist/{chunk-hqmz36b3.js → chunk-vf612n57.js} +21 -101
  349. package/dist/chunk-vfhqj46w.js +144 -0
  350. package/dist/chunk-vkxx8ymr.js +2377 -0
  351. package/dist/{chunk-n9x557ea.js → chunk-vs094cby.js} +2332 -4220
  352. package/dist/{chunk-dxc7begm.js → chunk-vtb8z6as.js} +14 -10
  353. package/dist/{chunk-x51mdzqq.js → chunk-vzd3cjy9.js} +3 -3
  354. package/dist/chunk-w2es9743.js +439 -0
  355. package/dist/{chunk-8z039kef.js → chunk-w92b262y.js} +53 -54
  356. package/dist/chunk-wa1dpga1.js +236 -0
  357. package/dist/{chunk-qf2v384j.js → chunk-wbmacbfb.js} +9 -7
  358. package/dist/{chunk-ryj80g9p.js → chunk-wbn46nb4.js} +136 -178
  359. package/dist/{chunk-t9z6njcr.js → chunk-wtycm8km.js} +9 -9
  360. package/dist/{chunk-q6rax9kh.js → chunk-wymtgh88.js} +5 -5
  361. package/dist/{chunk-pa7saazk.js → chunk-x0aj8rh8.js} +28 -56
  362. package/dist/{chunk-1szr63w0.js → chunk-x69w7xr7.js} +86 -74
  363. package/dist/{chunk-k5gdea6r.js → chunk-x6qmm22r.js} +84 -75
  364. package/dist/{chunk-zrse3zpz.js → chunk-xbprynsc.js} +18 -46
  365. package/dist/chunk-xc0v11v6.js +914 -0
  366. package/dist/chunk-xed18bb5.js +233 -0
  367. package/dist/{chunk-gjyc3293.js → chunk-xj76qk4z.js} +288 -499
  368. package/dist/chunk-xmd9eezd.js +83 -0
  369. package/dist/chunk-xrzrbw0f.js +142 -0
  370. package/dist/{chunk-fzxg8v1y.js → chunk-xycy3c8q.js} +15 -12
  371. package/dist/chunk-y0m0rd5v.js +140 -0
  372. package/dist/chunk-y2vtmzre.js +137 -0
  373. package/dist/{chunk-vybkxr18.js → chunk-y5z1cjbk.js} +42 -32
  374. package/dist/chunk-y60q54ph.js +111 -0
  375. package/dist/{chunk-d7vv2ydf.js → chunk-y78t50v0.js} +2 -2
  376. package/dist/{chunk-xkr7as9h.js → chunk-y9bgt2k1.js} +13 -9
  377. package/dist/chunk-ycwdzwz5.js +233 -0
  378. package/dist/chunk-yfyc2y1v.js +136 -0
  379. package/dist/chunk-yg6gtf9j.js +152 -0
  380. package/dist/{chunk-kyer92r4.js → chunk-yk8vcecd.js} +33 -5
  381. package/dist/{chunk-hkn7tzgv.js → chunk-ym5r3jnk.js} +1 -1
  382. package/dist/chunk-yr6gqw17.js +132 -0
  383. package/dist/chunk-yw62vhjz.js +445 -0
  384. package/dist/{chunk-athjeyrt.js → chunk-yw79dz62.js} +4 -4
  385. package/dist/{chunk-5mrhhmas.js → chunk-yx64nmbh.js} +8 -5
  386. package/dist/chunk-yy232vtj.js +84 -0
  387. package/dist/chunk-z1bs6d7k.js +24 -0
  388. package/dist/chunk-z4mgvsdj.js +456 -0
  389. package/dist/chunk-z6e5jp2w.js +119 -0
  390. package/dist/{chunk-t7cbhqd2.js → chunk-z6zt2ns7.js} +111 -123
  391. package/dist/chunk-z735r3p2.js +114 -0
  392. package/dist/{chunk-rjz6btwk.js → chunk-z7ssqvt6.js} +4972 -4638
  393. package/dist/{chunk-bpts9jbq.js → chunk-z8nv1ah0.js} +39 -31
  394. package/dist/chunk-z9mbssbe.js +128 -0
  395. package/dist/chunk-zdctabq6.js +264 -0
  396. package/dist/{chunk-ve60fbtd.js → chunk-ze6zvkg6.js} +2 -2
  397. package/dist/{chunk-t0rgmccj.js → chunk-zejm280k.js} +1 -1
  398. package/dist/{chunk-krstc7m7.js → chunk-zfapazzd.js} +15 -11
  399. package/dist/{chunk-2j0j79p0.js → chunk-zg4ae27v.js} +8 -8
  400. package/dist/chunk-zqxe8qnw.js +3590 -0
  401. package/dist/{chunk-q6dpqj3z.js → chunk-zs2ddzfv.js} +10 -7
  402. package/dist/chunk-zy80g72r.js +512 -0
  403. package/dist/{chunk-g3t0act8.js → chunk-zzm33q8x.js} +1 -1
  404. package/dist/{chunk-s8fzxy94.js → chunk-zzzc1ead.js} +17 -13
  405. package/dist/cli.js +63 -11
  406. package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
  407. package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
  408. package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
  409. package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
  410. package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
  411. package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
  412. package/package.json +8 -5
  413. package/scripts/postinstall.cjs +319 -0
  414. package/dist/chunk-0291smg3.js +0 -42
  415. package/dist/chunk-04g2ty3v.js +0 -104
  416. package/dist/chunk-069x95ne.js +0 -764
  417. package/dist/chunk-06x02eab.js +0 -655
  418. package/dist/chunk-09pjmga5.js +0 -713
  419. package/dist/chunk-0g90je6r.js +0 -145
  420. package/dist/chunk-0paqc2yw.js +0 -15
  421. package/dist/chunk-0rddv9vb.js +0 -328
  422. package/dist/chunk-162w6yv3.js +0 -756
  423. package/dist/chunk-1gjbaa3n.js +0 -128
  424. package/dist/chunk-23wg4mnt.js +0 -404
  425. package/dist/chunk-2gbjtg7c.js +0 -102
  426. package/dist/chunk-2v1q0ezq.js +0 -102
  427. package/dist/chunk-37n7jkxe.js +0 -436
  428. package/dist/chunk-38svjnh4.js +0 -158
  429. package/dist/chunk-3bg1089y.js +0 -616
  430. package/dist/chunk-3d8ck5ne.js +0 -112
  431. package/dist/chunk-3g6rf9sz.js +0 -106
  432. package/dist/chunk-3x3rr2n5.js +0 -57
  433. package/dist/chunk-4f6q3d38.js +0 -117
  434. package/dist/chunk-4h57km3m.js +0 -74
  435. package/dist/chunk-4kyh2618.js +0 -99
  436. package/dist/chunk-4w9vc9vc.js +0 -119
  437. package/dist/chunk-53hqpp5z.js +0 -208
  438. package/dist/chunk-5deqy8r0.js +0 -143
  439. package/dist/chunk-5m2rmc2k.js +0 -128
  440. package/dist/chunk-5wp9pkpt.js +0 -539
  441. package/dist/chunk-5ym9f6w3.js +0 -263
  442. package/dist/chunk-6f938733.js +0 -1027
  443. package/dist/chunk-6nenxecd.js +0 -115
  444. package/dist/chunk-6rja0h86.js +0 -1593
  445. package/dist/chunk-70q6dp4d.js +0 -96
  446. package/dist/chunk-7bn0wzs3.js +0 -1493
  447. package/dist/chunk-7e2e0bfm.js +0 -65
  448. package/dist/chunk-7ywadnax.js +0 -490
  449. package/dist/chunk-7z33j54s.js +0 -142
  450. package/dist/chunk-8yvfkzyh.js +0 -58
  451. package/dist/chunk-9abpx1kv.js +0 -2833
  452. package/dist/chunk-9ks2nswb.js +0 -114
  453. package/dist/chunk-9wrds5tr.js +0 -109
  454. package/dist/chunk-ab2twken.js +0 -102
  455. package/dist/chunk-abncjeag.js +0 -97
  456. package/dist/chunk-am6w4x6y.js +0 -103
  457. package/dist/chunk-b1xt9jqg.js +0 -28
  458. package/dist/chunk-b73bd7db.js +0 -496
  459. package/dist/chunk-bc7nvynh.js +0 -195
  460. package/dist/chunk-br17dhef.js +0 -103
  461. package/dist/chunk-c3k0sdey.js +0 -281
  462. package/dist/chunk-c909bmyv.js +0 -103
  463. package/dist/chunk-cftsv9w4.js +0 -129
  464. package/dist/chunk-cj1a7npk.js +0 -99
  465. package/dist/chunk-cpma9zs5.js +0 -335
  466. package/dist/chunk-cyscs4k5.js +0 -1330
  467. package/dist/chunk-czr7y063.js +0 -348
  468. package/dist/chunk-d93sndem.js +0 -372
  469. package/dist/chunk-ddz8xbpd.js +0 -481
  470. package/dist/chunk-dkhqx4hk.js +0 -84
  471. package/dist/chunk-dsrharmv.js +0 -359
  472. package/dist/chunk-eqmy5d05.js +0 -56
  473. package/dist/chunk-f2crxw2c.js +0 -5400
  474. package/dist/chunk-f8zga40p.js +0 -234
  475. package/dist/chunk-fbgm2ym6.js +0 -990
  476. package/dist/chunk-fcbbsswe.js +0 -119
  477. package/dist/chunk-fda654nt.js +0 -6121
  478. package/dist/chunk-ffmv9ezj.js +0 -104
  479. package/dist/chunk-fmjte7md.js +0 -38
  480. package/dist/chunk-fqtwqxxc.js +0 -293
  481. package/dist/chunk-g8k85nkd.js +0 -802
  482. package/dist/chunk-ge4ak7dj.js +0 -127
  483. package/dist/chunk-gpqemecy.js +0 -126
  484. package/dist/chunk-h19p6s3b.js +0 -131
  485. package/dist/chunk-j0sk1rct.js +0 -998
  486. package/dist/chunk-j1wfpa1a.js +0 -70
  487. package/dist/chunk-j829fx31.js +0 -3458
  488. package/dist/chunk-jqctzrvd.js +0 -722
  489. package/dist/chunk-jx817w05.js +0 -11
  490. package/dist/chunk-ka6sab33.js +0 -174
  491. package/dist/chunk-krjsvmwp.js +0 -101
  492. package/dist/chunk-kvpe50pm.js +0 -311
  493. package/dist/chunk-mez504fj.js +0 -113
  494. package/dist/chunk-mj6wbrae.js +0 -105
  495. package/dist/chunk-n0k8xrey.js +0 -319
  496. package/dist/chunk-n0pg2kpe.js +0 -122
  497. package/dist/chunk-n4qtqkp0.js +0 -295
  498. package/dist/chunk-n9meha2m.js +0 -73
  499. package/dist/chunk-ndk7q5n3.js +0 -169
  500. package/dist/chunk-ng6n9t4h.js +0 -56
  501. package/dist/chunk-p3pz13x2.js +0 -1933
  502. package/dist/chunk-p9ez6zgq.js +0 -2656
  503. package/dist/chunk-ph750kx1.js +0 -550
  504. package/dist/chunk-pxb99zqs.js +0 -117
  505. package/dist/chunk-q1yqc5n3.js +0 -100
  506. package/dist/chunk-q5b91nhh.js +0 -40
  507. package/dist/chunk-qtfqk0jr.js +0 -131
  508. package/dist/chunk-qzfmdh1t.js +0 -388
  509. package/dist/chunk-r3cv0j9n.js +0 -456
  510. package/dist/chunk-rx0pbgym.js +0 -97
  511. package/dist/chunk-s624rd5j.js +0 -531
  512. package/dist/chunk-satndwqj.js +0 -285
  513. package/dist/chunk-ssrxnkd1.js +0 -109
  514. package/dist/chunk-t2pgctqx.js +0 -106
  515. package/dist/chunk-t7sgwf31.js +0 -644
  516. package/dist/chunk-tth904tj.js +0 -53
  517. package/dist/chunk-typpbjhy.js +0 -128
  518. package/dist/chunk-vp6nrhdq.js +0 -102
  519. package/dist/chunk-vtjm53nt.js +0 -432
  520. package/dist/chunk-w412n7tq.js +0 -469
  521. package/dist/chunk-w4153rky.js +0 -1885
  522. package/dist/chunk-wdgv15as.js +0 -212
  523. package/dist/chunk-wgn9kydv.js +0 -58
  524. package/dist/chunk-whknbrk0.js +0 -184
  525. package/dist/chunk-x1k8e1xc.js +0 -56
  526. package/dist/chunk-x45xx6sc.js +0 -105
  527. package/dist/chunk-x4xvqbe5.js +0 -1166
  528. package/dist/chunk-x8b7vft8.js +0 -132
  529. package/dist/chunk-xaycc8qe.js +0 -44
  530. package/dist/chunk-xd4785ks.js +0 -73
  531. package/dist/chunk-xjxgmxhq.js +0 -463
  532. package/dist/chunk-xx2x3tz9.js +0 -166
  533. package/dist/chunk-y2j23eem.js +0 -101
  534. package/dist/chunk-y83j09wv.js +0 -123
  535. package/dist/chunk-yh8460pb.js +0 -119
  536. package/dist/chunk-z6nhchdb.js +0 -60
  537. package/dist/chunk-zbt73sj7.js +0 -192
  538. package/dist/chunk-zmwaatmq.js +0 -118
  539. package/dist/chunk-zvdg9tex.js +0 -135
  540. package/dist/chunk-zwa780cx.js +0 -584
  541. package/dist/{chunk-whvdag1y.js → chunk-3bfs3x0h.js} +9 -9
  542. package/dist/{chunk-27xc1csx.js → chunk-dggvswz1.js} +3 -3
@@ -1,80 +1,85 @@
1
1
  // @bun
2
- import"./chunk-jy35z4n0.js";
2
+ import"./chunk-m1z5td19.js";
3
3
  import {
4
4
  cliError,
5
5
  cliOk
6
6
  } from "./chunk-z2dp53wn.js";
7
+ import {
8
+ buildDeepLinkBanner
9
+ } from "./chunk-rd5cfz3k.js";
7
10
  import {
8
11
  filterExistingPaths,
9
12
  getKnownPathsForRepo,
10
13
  updateGithubRepoPathMapping
11
- } from "./chunk-s2dmn3yg.js";
14
+ } from "./chunk-m47q5mxt.js";
12
15
  import {
13
16
  computeInitialTeamContext,
14
17
  createRemoteSessionConfig,
15
18
  getModelDeprecationWarning,
16
19
  getRelevantTips,
17
20
  refreshExampleCommands
18
- } from "./chunk-v9y80148.js";
21
+ } from "./chunk-qwcnwn5t.js";
19
22
  import {
20
23
  processResumedConversation,
21
24
  skillChangeDetector
22
- } from "./chunk-t6h4wf3k.js";
25
+ } from "./chunk-ar39mr9c.js";
23
26
  import {
24
27
  installAsciicastRecorder
25
- } from "./chunk-cs6y2pc9.js";
26
- import"./chunk-bc7nvynh.js";
28
+ } from "./chunk-ergam9ft.js";
27
29
  import {
28
30
  getBaseRenderOptions
29
- } from "./chunk-v399mzxk.js";
31
+ } from "./chunk-jf0p00fz.js";
30
32
  import {
31
33
  createStatsStore
32
- } from "./chunk-zgrg0wk3.js";
34
+ } from "./chunk-n7ce94nd.js";
33
35
  import {
34
- applyConfigEnvironmentVariables,
35
- applySafeConfigEnvironmentVariables,
36
36
  onChangeAppState
37
- } from "./chunk-q7tvkc86.js";
38
- import"./chunk-t3bf8hcf.js";
39
- import"./chunk-x8b7vft8.js";
40
- import"./chunk-3mgywd32.js";
37
+ } from "./chunk-0zsam7pn.js";
38
+ import"./chunk-r5tk54yt.js";
39
+ import {
40
+ seedEarlyInput,
41
+ stopCapturingEarlyInput
42
+ } from "./chunk-46fcr28b.js";
43
+ import"./chunk-4hv90qcz.js";
44
+ import"./chunk-s7dtt7tw.js";
45
+ import {
46
+ init_partition,
47
+ partition_default
48
+ } from "./chunk-3mpfxbab.js";
41
49
  import {
42
50
  init_setup,
43
51
  setupClaudeInChrome,
44
52
  shouldAutoEnableClaudeInChrome,
45
53
  shouldEnableClaudeInChrome
46
- } from "./chunk-3m7ge6tj.js";
47
- import {
48
- init_partition,
49
- partition_default
50
- } from "./chunk-frbv3xqa.js";
54
+ } from "./chunk-0xnepnph.js";
51
55
  import {
52
56
  VALID_INSTALLABLE_SCOPES,
53
57
  VALID_UPDATE_SCOPES
54
- } from "./chunk-hy3g1nv8.js";
55
- import"./chunk-q6rax9kh.js";
58
+ } from "./chunk-prw4xz5q.js";
59
+ import"./chunk-wymtgh88.js";
56
60
  import {
57
61
  init_releaseNotes,
58
62
  migrateChangelogFromConfig
59
- } from "./chunk-m5eb5pt2.js";
60
- import"./chunk-7tqhx6dr.js";
61
- import"./chunk-rx0pbgym.js";
62
- import"./chunk-zbt73sj7.js";
63
- import"./chunk-2wcbcdky.js";
63
+ } from "./chunk-ayz6f38j.js";
64
+ import"./chunk-093r60b7.js";
65
+ import"./chunk-tbgm1v8n.js";
66
+ import"./chunk-4k842par.js";
64
67
  import {
65
68
  BROWSER_TOOLS,
66
- init_src
67
- } from "./chunk-hkn7tzgv.js";
69
+ init_src as init_src2
70
+ } from "./chunk-ym5r3jnk.js";
68
71
  import {
69
72
  init_sink,
70
73
  initializeAnalyticsGates
71
- } from "./chunk-5zh1fbrj.js";
74
+ } from "./chunk-hq85v2s7.js";
72
75
  import {
73
76
  ASK_USER_QUESTION_TOOL_NAME,
74
77
  AppStateProvider,
75
78
  CLAUDE_CODE_GUIDE_AGENT_TYPE,
76
79
  CRON_CREATE_TOOL_NAME,
77
80
  CRON_DELETE_TOOL_NAME,
81
+ CRON_LIST_TOOL_NAME,
82
+ ConfigurableShortcutHint,
78
83
  DEFAULT_BINDINGS,
79
84
  DEFAULT_MAX_AGE_DAYS,
80
85
  ENTER_PLAN_MODE_TOOL_NAME,
@@ -92,9 +97,10 @@ import {
92
97
  acquireIdpIdToken,
93
98
  addMcpConfig,
94
99
  addToHistory,
100
+ applyConfigEnvironmentVariables,
101
+ applySafeConfigEnvironmentVariables,
95
102
  areMcpConfigsAllowedWithEnterpriseMcpConfig,
96
103
  asSessionId,
97
- assertMinVersion,
98
104
  buildConsolidationPrompt,
99
105
  cacheSessionTitle,
100
106
  canUserConfigureAdvisor,
@@ -124,6 +130,7 @@ import {
124
130
  excludeCommandsByServer,
125
131
  excludeResourcesByServer,
126
132
  exports_BriefTool,
133
+ exports_autoModeState,
127
134
  exports_teammatePromptAddendum,
128
135
  fetchClaudeAIMcpConfigsIfEligible,
129
136
  fetchEnvironments,
@@ -132,6 +139,8 @@ import {
132
139
  generateTempFilePath,
133
140
  getActiveAgentsFromList,
134
141
  getAgentDefinitionsWithOverrides,
142
+ getAutoModeEnabledState,
143
+ getAutoModeEnabledStateIfCached,
135
144
  getCachedIdpIdToken,
136
145
  getCharBudget,
137
146
  getClaudeCodeMcpConfigs,
@@ -167,6 +176,7 @@ import {
167
176
  init_AppState,
168
177
  init_AppStateStore,
169
178
  init_BriefTool,
179
+ init_ConfigurableShortcutHint,
170
180
  init_CustomSelect,
171
181
  init_KeybindingProviderSetup,
172
182
  init_SelectMulti,
@@ -176,7 +186,7 @@ import {
176
186
  init_allErrors,
177
187
  init_api as init_api2,
178
188
  init_auth as init_auth2,
179
- init_autoUpdater,
189
+ init_autoModeState,
180
190
  init_bundledSkills,
181
191
  init_cacheUtils,
182
192
  init_changeDetector,
@@ -211,6 +221,7 @@ import {
211
221
  init_internalLogging,
212
222
  init_loadAgentsDir,
213
223
  init_loadUserBindings,
224
+ init_managedEnv,
214
225
  init_managedPlugins,
215
226
  init_manager,
216
227
  init_mapValues,
@@ -223,10 +234,10 @@ import {
223
234
  init_policyLimits,
224
235
  init_preconditions,
225
236
  init_product,
226
- init_prompt12 as init_prompt4,
227
- init_prompt6 as init_prompt,
228
- init_prompt8 as init_prompt2,
229
- init_prompt9 as init_prompt3,
237
+ init_prompt12 as init_prompt5,
238
+ init_prompt6 as init_prompt2,
239
+ init_prompt8 as init_prompt3,
240
+ init_prompt9 as init_prompt4,
230
241
  init_promptSuggestion,
231
242
  init_remoteManagedSettings,
232
243
  init_reservedShortcuts,
@@ -254,6 +265,7 @@ import {
254
265
  initializeVersionedPlugins,
255
266
  isAdvisorEnabled,
256
267
  isBuiltInAgent,
268
+ isDefaultPermissionModeAuto,
257
269
  isEligibleForRemoteManagedSettings,
258
270
  isKairosCronEnabled,
259
271
  isKeybindingCustomizationEnabled,
@@ -285,6 +297,7 @@ import {
285
297
  parseMcpConfig,
286
298
  parseMcpConfigFromFilePath,
287
299
  parsePRReference,
300
+ parseToolListFromCLI,
288
301
  prefetchAllMcpResources,
289
302
  processMessagesForTeleportResume,
290
303
  processSessionStartHooks,
@@ -310,127 +323,106 @@ import {
310
323
  shouldEnableThinkingByDefault,
311
324
  shouldShowClaudeMdExternalIncludesWarning,
312
325
  shutdownLspServerManager,
326
+ stripDangerousPermissionsForAutoMode,
313
327
  teleportToRemoteWithErrorHandling,
314
328
  uniqBy_default,
315
329
  updateSessionName,
316
330
  validateGitState,
317
331
  validateSessionRepository,
318
332
  validateUuid,
333
+ verifyAutoModeGateAccess,
319
334
  waitForPolicyLimitsToLoad,
320
335
  waitForRemoteManagedSettingsToLoad
321
- } from "./chunk-mwp7sj0q.js";
322
- import"./chunk-t0rgmccj.js";
323
- import {
324
- getSessionIngressAuthToken,
325
- init_sessionIngressAuth
326
- } from "./chunk-ye18m1zb.js";
327
- import"./chunk-12pv5fez.js";
328
- import {
329
- initSentry,
330
- init_sentry
331
- } from "./chunk-cgn27dqf.js";
336
+ } from "./chunk-gs5eeqmc.js";
337
+ import"./chunk-4nspekjp.js";
332
338
  import {
333
339
  exports_teammateModeSnapshot,
334
340
  init_teammateModeSnapshot
335
- } from "./chunk-dh6c8y1j.js";
341
+ } from "./chunk-43h8sw5x.js";
342
+ import"./chunk-zejm280k.js";
336
343
  import {
337
344
  BASE_CHROME_PROMPT,
338
- Byline,
339
345
  CLAUDE_IN_CHROME_SKILL_HINT,
340
- ConfigurableShortcutHint,
341
- Dialog,
342
- KeyboardShortcutHint,
343
- init_Byline,
344
- init_ConfigurableShortcutHint,
345
- init_Dialog,
346
- init_KeyboardShortcutHint,
347
- init_prompt as init_prompt5
348
- } from "./chunk-xjxgmxhq.js";
349
- import"./chunk-2gzv8nrw.js";
346
+ init_prompt as init_prompt6
347
+ } from "./chunk-var1et7e.js";
350
348
  import"./chunk-ehtwnxpg.js";
351
- import"./chunk-n6fbyke9.js";
349
+ import"./chunk-m2mzpskw.js";
352
350
  import {
353
351
  createEmptyAttributionState,
354
352
  init_commitAttribution
355
- } from "./chunk-33khw5gy.js";
356
- import"./chunk-3be7ka25.js";
353
+ } from "./chunk-365zvqv3.js";
354
+ import {
355
+ getSessionIngressAuthToken,
356
+ init_sessionIngressAuth
357
+ } from "./chunk-rqvqqrpg.js";
358
+ import"./chunk-5gbqknz6.js";
359
+ import"./chunk-2gzv8nrw.js";
360
+ import {
361
+ init_worktreeModeEnabled,
362
+ isWorktreeModeEnabled
363
+ } from "./chunk-cgfdkzhb.js";
364
+ import"./chunk-bxcfz5gy.js";
357
365
  import {
358
366
  DEFAULT_TASKS_MODE_TASK_LIST_ID,
359
367
  TASK_STATUSES,
360
368
  init_tasks
361
- } from "./chunk-er9vzjac.js";
369
+ } from "./chunk-jbt0jgtc.js";
370
+ import {
371
+ initSentry,
372
+ init_sentry
373
+ } from "./chunk-ha5d5zfj.js";
374
+ import"./chunk-28az45r7.js";
375
+ import"./chunk-bhdt6k7w.js";
362
376
  import {
363
377
  CLAUDE_IN_CHROME_MCP_SERVER_NAME,
364
378
  init_common,
365
379
  isClaudeInChromeMCPServer
366
- } from "./chunk-f3bapa1x.js";
367
- import {
368
- init_worktreeModeEnabled,
369
- isWorktreeModeEnabled
370
- } from "./chunk-cgfdkzhb.js";
380
+ } from "./chunk-f6rbj3gz.js";
381
+ import"./chunk-axj46c2c.js";
371
382
  import {
372
383
  init_referral,
373
384
  prefetchPassesEligibility
374
- } from "./chunk-4ycz58wj.js";
375
- import"./chunk-4kyh2618.js";
376
- import"./chunk-9gbamk79.js";
377
- import"./chunk-d7mx1phm.js";
378
- import"./chunk-hfzj1m07.js";
379
- import"./chunk-g8k85nkd.js";
380
- import {
381
- Link,
382
- SHOW_CURSOR,
383
- ThemedBox_default,
384
- ThemedText,
385
- init_dec,
386
- init_ink,
387
- init_terminal,
388
- isSynchronizedOutputSupported,
389
- require_compiler_runtime
390
- } from "./chunk-rw466wqn.js";
391
- import {
392
- init_earlyInput,
393
- seedEarlyInput,
394
- stopCapturingEarlyInput
395
- } from "./chunk-yhd82045.js";
385
+ } from "./chunk-5pxygepg.js";
386
+ import"./chunk-j5bth84e.js";
387
+ import"./chunk-qndzvkdx.js";
388
+ import"./chunk-5kkvfgzs.js";
389
+ import"./chunk-0jzdwbdc.js";
396
390
  import"./chunk-ps49ymvj.js";
397
- import {
398
- require_jsx_dev_runtime
399
- } from "./chunk-g338npwr.js";
400
- import"./chunk-zk2wsm7d.js";
401
- import"./chunk-z8nbjar4.js";
402
- import"./chunk-660kcy7p.js";
403
- import"./chunk-rj86xm6z.js";
404
- import"./chunk-d7vv2ydf.js";
391
+ import"./chunk-p7vkh4wx.js";
392
+ import"./chunk-cmcbatgz.js";
393
+ import"./chunk-3b25ycrx.js";
394
+ import"./chunk-yx64nmbh.js";
395
+ import"./chunk-cpwe0yw7.js";
396
+ import"./chunk-y78t50v0.js";
405
397
  import"./chunk-4jm600zv.js";
406
- import"./chunk-me2ef6g4.js";
398
+ import"./chunk-n8mpqdje.js";
407
399
  import {
408
400
  fetchSession,
409
401
  init_api,
410
402
  prepareApiRequest
411
- } from "./chunk-t24ytdcw.js";
403
+ } from "./chunk-31nce7eh.js";
412
404
  import {
413
405
  getTelemetryAttributes,
414
406
  init_betaSessionTracing,
415
407
  init_telemetryAttributes,
416
408
  isBetaTracingEnabled
417
- } from "./chunk-cenpqc2t.js";
409
+ } from "./chunk-rdvaan98.js";
418
410
  import"./chunk-mx28h61f.js";
419
- import"./chunk-ptwn7qw7.js";
420
- import"./chunk-b4mnbry0.js";
421
- import"./chunk-faycqscv.js";
422
- import"./chunk-fbgm2ym6.js";
423
- import"./chunk-f64npa3b.js";
424
- import"./chunk-8z039kef.js";
411
+ import"./chunk-f2k8b4nd.js";
412
+ import"./chunk-sk9xag9g.js";
413
+ import"./chunk-0fsdxz74.js";
414
+ import"./chunk-2qwgfjcj.js";
415
+ import"./chunk-chsyvavm.js";
416
+ import"./chunk-w92b262y.js";
425
417
  import {
426
418
  AGENT_TOOL_NAME,
427
- PERMISSION_MODES,
428
419
  SettingsSchema,
429
420
  checkHasTrustDialogAccepted,
430
421
  enableConfigs,
431
422
  ensureKeychainPrefetchCompleted,
432
423
  ensureMdmSettingsLoaded,
433
424
  ensureModelStringsInitialized,
425
+ exports_prompt,
434
426
  filterAllowedSdkBetas,
435
427
  getAPIProvider,
436
428
  getAnthropicApiKey,
@@ -454,6 +446,7 @@ import {
454
446
  getSettings_DEPRECATED,
455
447
  getSubscriptionType,
456
448
  getUserSpecifiedModelSetting,
449
+ hasAutoModeOptIn,
457
450
  hasGrowthBookEnvOverride,
458
451
  hasProfileScope,
459
452
  hasSkipDangerousModePermissionPrompt,
@@ -482,11 +475,11 @@ import {
482
475
  init_officialRegistry,
483
476
  init_paths,
484
477
  init_pickBy,
478
+ init_prompt1 as init_prompt,
485
479
  init_providers,
486
480
  init_rawRead,
487
481
  init_settings,
488
482
  init_settings1 as init_settings2,
489
- init_source,
490
483
  init_stringUtils,
491
484
  init_types,
492
485
  init_user,
@@ -496,6 +489,7 @@ import {
496
489
  isAnalyticsDisabled,
497
490
  isAutoMemoryEnabled,
498
491
  isAutoUpdaterDisabled,
492
+ isClaudeAISubscriber,
499
493
  isEqual_default,
500
494
  isFastModeEnabled,
501
495
  isLegacyModelRemapEnabled,
@@ -522,89 +516,108 @@ import {
522
516
  resolveFastModeStatusFromCache,
523
517
  saveCurrentProjectConfig,
524
518
  saveGlobalConfig,
525
- source_default,
526
519
  startKeychainPrefetch,
527
520
  startMdmRawRead,
528
521
  updateSettingsForSource,
529
522
  validateForceLoginOrg,
530
523
  withOAuth401Retry
531
- } from "./chunk-mvss16tj.js";
524
+ } from "./chunk-a2aj2mtb.js";
532
525
  import {
533
526
  init_json,
534
527
  safeParseJSON
535
- } from "./chunk-bmvb57qb.js";
528
+ } from "./chunk-905d2hee.js";
536
529
  import {
537
530
  init_windowsPaths,
538
531
  setShellIfWindows
539
- } from "./chunk-fdwa7gem.js";
540
- import"./chunk-vratq94g.js";
532
+ } from "./chunk-rkak3kjw.js";
541
533
  import {
542
534
  configureGlobalAgents,
543
535
  configureGlobalMTLS,
544
536
  init_mtls,
545
537
  init_proxy
546
- } from "./chunk-5hva0tsg.js";
538
+ } from "./chunk-p2yv7m0g.js";
547
539
  import {
548
540
  count,
549
541
  exports_teammate,
550
542
  init_array,
551
543
  init_teammate,
552
544
  uniq
553
- } from "./chunk-0e1xsncc.js";
545
+ } from "./chunk-1cwdhk7a.js";
546
+ import"./chunk-j9gxwbe3.js";
554
547
  import {
555
548
  init_lazySchema,
556
549
  lazySchema
557
550
  } from "./chunk-64c1avct.js";
558
- import"./chunk-8g5pe1gr.js";
551
+ import {
552
+ PERMISSION_MODES
553
+ } from "./chunk-qbrsmra3.js";
559
554
  import {
560
555
  getPlatform,
561
556
  init_platform
562
- } from "./chunk-tjaqa99q.js";
563
- import"./chunk-v4t6dyyh.js";
557
+ } from "./chunk-hezj20qy.js";
558
+ import"./chunk-8g5pe1gr.js";
559
+ import"./chunk-4cp6193g.js";
564
560
  import {
565
561
  init_v4
566
- } from "./chunk-4pbx3g7s.js";
562
+ } from "./chunk-8g747a8x.js";
567
563
  import {
568
564
  exports_external,
569
565
  toJSONSchema
570
- } from "./chunk-26wtxbdc.js";
566
+ } from "./chunk-d7886r6a.js";
571
567
  import"./chunk-f5ma3nh5.js";
572
568
  import"./chunk-qz2x630m.js";
573
- import"./chunk-cvge4pvp.js";
574
- import"./chunk-rryx19hp.js";
569
+ import"./chunk-mzd6frw6.js";
570
+ import"./chunk-r2k2jy0y.js";
575
571
  import"./chunk-3c25bcsw.js";
576
572
  import {
577
573
  init_bundledMode,
578
574
  isInBundledMode
579
- } from "./chunk-9g827w4j.js";
575
+ } from "./chunk-2q39ej51.js";
580
576
  import {
581
577
  OAUTH_BETA_HEADER,
582
578
  getOauthConfig,
583
579
  init_oauth
584
- } from "./chunk-7ymfj7m3.js";
580
+ } from "./chunk-q82r31er.js";
585
581
  import"./chunk-p2816w9z.js";
586
582
  import"./chunk-v9smspw2.js";
587
583
  import"./chunk-v1kzp02e.js";
588
- import"./chunk-0vkfrmqm.js";
589
- import"./chunk-0xjaqda8.js";
590
584
  import {
591
585
  formatFileSize,
592
586
  init_format,
593
587
  init_startupProfiler,
594
588
  profileCheckpoint,
595
589
  profileReport
596
- } from "./chunk-jqctzrvd.js";
590
+ } from "./chunk-z4mgvsdj.js";
597
591
  import"./chunk-crmjpsqe.js";
592
+ import {
593
+ Byline,
594
+ Dialog,
595
+ KeyboardShortcutHint,
596
+ Link,
597
+ SHOW_CURSOR,
598
+ ThemedBox_default,
599
+ ThemedText,
600
+ init_source,
601
+ init_src,
602
+ isSynchronizedOutputSupported,
603
+ source_default
604
+ } from "./chunk-rvkvehat.js";
605
+ import {
606
+ require_jsx_dev_runtime,
607
+ require_react
608
+ } from "./chunk-g338npwr.js";
598
609
  import {
599
610
  init_analytics,
600
611
  logEvent
601
- } from "./chunk-h0rbjg6x.js";
612
+ } from "./chunk-f2mhrmww.js";
613
+ import"./chunk-0vkfrmqm.js";
614
+ import"./chunk-0xjaqda8.js";
602
615
  import {
603
616
  detectCurrentRepository,
604
617
  detectCurrentRepositoryWithHost,
605
618
  init_detectRepository,
606
619
  parseGitRemote
607
- } from "./chunk-wc6wwwyb.js";
620
+ } from "./chunk-21z7acxh.js";
608
621
  import {
609
622
  findGitRoot,
610
623
  getBranch,
@@ -613,61 +626,62 @@ import {
613
626
  getWorktreeCount,
614
627
  init_diagLogs,
615
628
  init_git,
616
- init_gitFilesystem,
617
629
  logForDiagnosticsNoPII
618
- } from "./chunk-dr4qq42x.js";
619
- import"./chunk-d18z9pna.js";
630
+ } from "./chunk-rgbbtszq.js";
631
+ import"./chunk-1thgdca1.js";
620
632
  import"./chunk-qnfx3qtx.js";
621
- import"./chunk-athjeyrt.js";
633
+ import"./chunk-yw79dz62.js";
622
634
  import {
623
635
  getCwd,
624
636
  init_cwd
625
- } from "./chunk-8bedvdm1.js";
637
+ } from "./chunk-b81hd3m6.js";
626
638
  import {
627
639
  init_log,
628
640
  init_privacyLevel,
629
641
  isEssentialTrafficOnly,
630
642
  logError
631
- } from "./chunk-p7g7pf3f.js";
643
+ } from "./chunk-61ahbn23.js";
632
644
  import"./chunk-8tnsngw2.js";
633
645
  import {
634
646
  init_which,
635
647
  which
636
- } from "./chunk-cmdsbsb6.js";
637
- import"./chunk-vyc0rjyx.js";
648
+ } from "./chunk-edzkkadh.js";
649
+ import"./chunk-bwg7582d.js";
638
650
  import {
639
651
  execa,
640
652
  init_execa
641
- } from "./chunk-ggqx30m9.js";
642
- import"./chunk-7wm5s02e.js";
653
+ } from "./chunk-5z28bqne.js";
654
+ import"./chunk-qajrkk97.js";
643
655
  import {
644
- ConfigParseError,
645
- TeleportOperationError,
646
656
  enableDebugLogging,
647
- errorMessage,
648
657
  getDebugLogPath,
649
- getErrnoCode,
650
658
  getFsImplementation,
651
659
  init_cleanupRegistry,
652
660
  init_debug,
653
- init_errors,
654
661
  init_fsOperations,
655
662
  init_slowOperations,
656
- isENOENT,
657
663
  jsonParse,
658
664
  jsonStringify,
659
665
  logForDebugging,
660
666
  registerCleanup,
661
667
  safeResolvePath,
662
668
  setHasFormattedOutput,
663
- toError,
664
669
  writeFileSync_DEPRECATED
665
- } from "./chunk-nxsh6de2.js";
670
+ } from "./chunk-hcgkak1j.js";
666
671
  import {
667
672
  init_process,
668
673
  peekForStdinData,
669
674
  writeToStderr
670
675
  } from "./chunk-fbv4apne.js";
676
+ import {
677
+ ConfigParseError,
678
+ TeleportOperationError,
679
+ errorMessage,
680
+ getErrnoCode,
681
+ init_errors,
682
+ isENOENT,
683
+ toError
684
+ } from "./chunk-z6e5jp2w.js";
671
685
  import {
672
686
  hasNodeOption,
673
687
  init_envUtils,
@@ -676,7 +690,7 @@ import {
676
690
  isInProtectedNamespace,
677
691
  isRunningOnHomespace,
678
692
  parseEnvVars
679
- } from "./chunk-3r24h7t6.js";
693
+ } from "./chunk-jaaxk89e.js";
680
694
  import {
681
695
  getInitialMainLoopModel,
682
696
  getIsNonInteractiveSession,
@@ -685,6 +699,7 @@ import {
685
699
  getSdkBetas,
686
700
  getSessionCounter,
687
701
  getSessionId,
702
+ getUserMsgOptIn,
688
703
  init_settingsCache,
689
704
  init_state,
690
705
  resetSettingsCache,
@@ -711,18 +726,22 @@ import {
711
726
  setTeleportedSessionInfo,
712
727
  setUserMsgOptIn,
713
728
  switchSession
714
- } from "./chunk-qqfa0dqg.js";
729
+ } from "./chunk-h4b85amj.js";
730
+ import"./chunk-07069jq1.js";
715
731
  import {
716
732
  init_memoize,
717
733
  memoize_default
718
- } from "./chunk-hqmz36b3.js";
734
+ } from "./chunk-vf612n57.js";
735
+ import"./chunk-d4mdda98.js";
736
+ import"./chunk-7wm5s02e.js";
719
737
  import"./chunk-4g3v8y12.js";
720
738
  import"./chunk-7739pg2c.js";
721
739
  import {
722
740
  axios_default,
723
741
  init_axios
724
- } from "./chunk-xszk7n10.js";
725
- import"./chunk-sdj9b9wh.js";
742
+ } from "./chunk-nh3cd07f.js";
743
+ import"./chunk-8pn8tvgg.js";
744
+ import"./chunk-netzwgv1.js";
726
745
  import {
727
746
  __commonJS,
728
747
  __esm,
@@ -3132,8 +3151,8 @@ var BASE58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", BASE_
3132
3151
  var init_scheduleRemoteAgents = __esm(() => {
3133
3152
  init_growthbook();
3134
3153
  init_policyLimits();
3135
- init_prompt2();
3136
- init_prompt4();
3154
+ init_prompt3();
3155
+ init_prompt5();
3137
3156
  init_auth();
3138
3157
  init_preconditions();
3139
3158
  init_debug();
@@ -3252,6 +3271,7 @@ init_envDynamic();
3252
3271
  init_envUtils();
3253
3272
  init_errors();
3254
3273
  init_gracefulShutdown();
3274
+ init_managedEnv();
3255
3275
  init_mtls();
3256
3276
  init_filesystem();
3257
3277
  init_proxy();
@@ -3281,8 +3301,8 @@ var init = memoize_default(async () => {
3281
3301
  setupGracefulShutdown();
3282
3302
  profileCheckpoint("init_after_graceful_shutdown");
3283
3303
  Promise.all([
3284
- import("./chunk-7e2e0bfm.js"),
3285
- import("./chunk-m94pnhfa.js")
3304
+ import("./chunk-7a3b1d4s.js"),
3305
+ import("./chunk-v4e4f711.js")
3286
3306
  ]).then(([fp, gb]) => {
3287
3307
  fp.initialize1PEventLogging();
3288
3308
  gb.onGrowthBookRefresh(() => {
@@ -3322,8 +3342,8 @@ var init = memoize_default(async () => {
3322
3342
  preconnectAnthropicApi();
3323
3343
  if (isEnvTruthy(process.env.CLAUDE_CODE_REMOTE)) {
3324
3344
  try {
3325
- const { initUpstreamProxy, getUpstreamProxyEnv } = await import("./chunk-xs0hwvpa.js");
3326
- const { registerUpstreamProxyEnvFn } = await import("./chunk-v1mgv1et.js");
3345
+ const { initUpstreamProxy, getUpstreamProxyEnv } = await import("./chunk-68pfxvxt.js");
3346
+ const { registerUpstreamProxyEnvFn } = await import("./chunk-6p4cyhb3.js");
3327
3347
  registerUpstreamProxyEnvFn(getUpstreamProxyEnv);
3328
3348
  await initUpstreamProxy();
3329
3349
  } catch (err) {
@@ -3333,7 +3353,7 @@ var init = memoize_default(async () => {
3333
3353
  setShellIfWindows();
3334
3354
  registerCleanup(shutdownLspServerManager);
3335
3355
  registerCleanup(async () => {
3336
- const { cleanupSessionTeams } = await import("./chunk-pgnnrm2v.js");
3356
+ const { cleanupSessionTeams } = await import("./chunk-4t86n23n.js");
3337
3357
  await cleanupSessionTeams();
3338
3358
  });
3339
3359
  if (isScratchpadEnabled()) {
@@ -3355,7 +3375,7 @@ var init = memoize_default(async () => {
3355
3375
  gracefulShutdownSync(1);
3356
3376
  return;
3357
3377
  }
3358
- return import("./chunk-n4qtqkp0.js").then((m) => m.showInvalidConfigDialog({ error }));
3378
+ return import("./chunk-jwx2scxy.js").then((m) => m.showInvalidConfigDialog({ error }));
3359
3379
  } else {
3360
3380
  throw error;
3361
3381
  }
@@ -3395,7 +3415,7 @@ async function doInitializeTelemetry() {
3395
3415
  }
3396
3416
  }
3397
3417
  async function setMeterState() {
3398
- const { initializeTelemetry } = await import("./chunk-z9tgzh90.js");
3418
+ const { initializeTelemetry } = await import("./chunk-9m729tsn.js");
3399
3419
  const meter = await initializeTelemetry();
3400
3420
  if (meter) {
3401
3421
  const createAttributedCounter = (name, options) => {
@@ -3422,12 +3442,8 @@ init_history();
3422
3442
  // src/replLauncher.tsx
3423
3443
  var jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
3424
3444
  async function launchRepl(root, appProps, replProps, renderAndRun) {
3425
- const {
3426
- App
3427
- } = await import("./chunk-xx2x3tz9.js");
3428
- const {
3429
- REPL
3430
- } = await import("./chunk-38svjnh4.js");
3445
+ const { App } = await import("./chunk-xrzrbw0f.js");
3446
+ const { REPL } = await import("./chunk-9jvggd30.js");
3431
3447
  await renderAndRun(root, /* @__PURE__ */ jsx_dev_runtime.jsxDEV(App, {
3432
3448
  ...appProps,
3433
3449
  children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(REPL, {
@@ -3553,9 +3569,9 @@ init_agentSwarmsEnabled();
3553
3569
  init_array();
3554
3570
  init_auth();
3555
3571
  init_config2();
3556
- init_earlyInput();
3557
3572
  init_effort();
3558
3573
  init_fastMode();
3574
+ init_managedEnv();
3559
3575
  init_messages();
3560
3576
  init_platform();
3561
3577
  init_sessionIngressAuth();
@@ -3628,7 +3644,7 @@ init_gracefulShutdown();
3628
3644
  init_state();
3629
3645
  import { appendFileSync } from "fs";
3630
3646
  init_context2();
3631
- init_terminal();
3647
+ init_src();
3632
3648
  init_KeybindingProviderSetup();
3633
3649
  init_growthbook();
3634
3650
  init_grove();
@@ -3637,324 +3653,189 @@ init_grove();
3637
3653
  init_analytics();
3638
3654
  init_settings2();
3639
3655
  init_CustomSelect();
3640
- init_Dialog();
3641
- var import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
3656
+ init_src();
3642
3657
 
3643
3658
  // src/components/MCPServerDialogCopy.tsx
3644
- init_ink();
3645
- var import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
3659
+ init_src();
3646
3660
  var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
3647
3661
  function MCPServerDialogCopy() {
3648
- const $ = import_compiler_runtime.c(1);
3649
- let t0;
3650
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
3651
- t0 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
3652
- children: [
3653
- "MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the",
3654
- " ",
3655
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Link, {
3656
- url: "https://code.claude.com/docs/en/mcp",
3657
- children: "MCP documentation"
3658
- }, undefined, false, undefined, this),
3659
- "."
3660
- ]
3661
- }, undefined, true, undefined, this);
3662
- $[0] = t0;
3663
- } else {
3664
- t0 = $[0];
3665
- }
3666
- return t0;
3662
+ return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
3663
+ children: [
3664
+ "MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the",
3665
+ " ",
3666
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Link, {
3667
+ url: "https://code.claude.com/docs/en/mcp",
3668
+ children: "MCP documentation"
3669
+ }, undefined, false, undefined, this),
3670
+ "."
3671
+ ]
3672
+ }, undefined, true, undefined, this);
3667
3673
  }
3668
3674
 
3669
3675
  // src/components/MCPServerApprovalDialog.tsx
3670
3676
  var jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
3671
- function MCPServerApprovalDialog(t0) {
3672
- const $ = import_compiler_runtime2.c(13);
3673
- const {
3674
- serverName,
3675
- onDone
3676
- } = t0;
3677
- let t1;
3678
- if ($[0] !== onDone || $[1] !== serverName) {
3679
- t1 = function onChange2(value) {
3680
- logEvent("tengu_mcp_dialog_choice", {
3681
- choice: value
3682
- });
3683
- bb2:
3684
- switch (value) {
3685
- case "yes":
3686
- case "yes_all": {
3687
- const currentSettings_0 = getSettings_DEPRECATED() || {};
3688
- const enabledServers = currentSettings_0.enabledMcpjsonServers || [];
3689
- if (!enabledServers.includes(serverName)) {
3690
- updateSettingsForSource("localSettings", {
3691
- enabledMcpjsonServers: [...enabledServers, serverName]
3692
- });
3693
- }
3694
- if (value === "yes_all") {
3695
- updateSettingsForSource("localSettings", {
3696
- enableAllProjectMcpServers: true
3697
- });
3698
- }
3699
- onDone();
3700
- break bb2;
3701
- }
3702
- case "no": {
3703
- const currentSettings = getSettings_DEPRECATED() || {};
3704
- const disabledServers = currentSettings.disabledMcpjsonServers || [];
3705
- if (!disabledServers.includes(serverName)) {
3706
- updateSettingsForSource("localSettings", {
3707
- disabledMcpjsonServers: [...disabledServers, serverName]
3708
- });
3709
- }
3710
- onDone();
3711
- }
3677
+ function MCPServerApprovalDialog({
3678
+ serverName,
3679
+ onDone
3680
+ }) {
3681
+ function onChange(value) {
3682
+ logEvent("tengu_mcp_dialog_choice", {
3683
+ choice: value
3684
+ });
3685
+ switch (value) {
3686
+ case "yes":
3687
+ case "yes_all": {
3688
+ const currentSettings = getSettings_DEPRECATED() || {};
3689
+ const enabledServers = currentSettings.enabledMcpjsonServers || [];
3690
+ if (!enabledServers.includes(serverName)) {
3691
+ updateSettingsForSource("localSettings", {
3692
+ enabledMcpjsonServers: [...enabledServers, serverName]
3693
+ });
3712
3694
  }
3713
- };
3714
- $[0] = onDone;
3715
- $[1] = serverName;
3716
- $[2] = t1;
3717
- } else {
3718
- t1 = $[2];
3719
- }
3720
- const onChange = t1;
3721
- const t2 = `New MCP server found in .mcp.json: ${serverName}`;
3722
- let t3;
3723
- if ($[3] !== onChange) {
3724
- t3 = () => onChange("no");
3725
- $[3] = onChange;
3726
- $[4] = t3;
3727
- } else {
3728
- t3 = $[4];
3729
- }
3730
- let t4;
3731
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
3732
- t4 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(MCPServerDialogCopy, {}, undefined, false, undefined, this);
3733
- $[5] = t4;
3734
- } else {
3735
- t4 = $[5];
3736
- }
3737
- let t5;
3738
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
3739
- t5 = [{
3740
- label: "Use this and all future MCP servers in this project",
3741
- value: "yes_all"
3742
- }, {
3743
- label: "Use this MCP server",
3744
- value: "yes"
3745
- }, {
3746
- label: "Continue without using this MCP server",
3747
- value: "no"
3748
- }];
3749
- $[6] = t5;
3750
- } else {
3751
- t5 = $[6];
3752
- }
3753
- let t6;
3754
- if ($[7] !== onChange) {
3755
- t6 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Select, {
3756
- options: t5,
3757
- onChange: (value_0) => onChange(value_0),
3758
- onCancel: () => onChange("no")
3759
- }, undefined, false, undefined, this);
3760
- $[7] = onChange;
3761
- $[8] = t6;
3762
- } else {
3763
- t6 = $[8];
3764
- }
3765
- let t7;
3766
- if ($[9] !== t2 || $[10] !== t3 || $[11] !== t6) {
3767
- t7 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Dialog, {
3768
- title: t2,
3769
- color: "warning",
3770
- onCancel: t3,
3771
- children: [
3772
- t4,
3773
- t6
3774
- ]
3775
- }, undefined, true, undefined, this);
3776
- $[9] = t2;
3777
- $[10] = t3;
3778
- $[11] = t6;
3779
- $[12] = t7;
3780
- } else {
3781
- t7 = $[12];
3695
+ if (value === "yes_all") {
3696
+ updateSettingsForSource("localSettings", {
3697
+ enableAllProjectMcpServers: true
3698
+ });
3699
+ }
3700
+ onDone();
3701
+ break;
3702
+ }
3703
+ case "no": {
3704
+ const currentSettings = getSettings_DEPRECATED() || {};
3705
+ const disabledServers = currentSettings.disabledMcpjsonServers || [];
3706
+ if (!disabledServers.includes(serverName)) {
3707
+ updateSettingsForSource("localSettings", {
3708
+ disabledMcpjsonServers: [...disabledServers, serverName]
3709
+ });
3710
+ }
3711
+ onDone();
3712
+ break;
3713
+ }
3714
+ }
3782
3715
  }
3783
- return t7;
3716
+ return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Dialog, {
3717
+ title: `New MCP server found in .mcp.json: ${serverName}`,
3718
+ color: "warning",
3719
+ onCancel: () => onChange("no"),
3720
+ children: [
3721
+ /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(MCPServerDialogCopy, {}, undefined, false, undefined, this),
3722
+ /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Select, {
3723
+ options: [
3724
+ {
3725
+ label: `Use this and all future MCP servers in this project`,
3726
+ value: "yes_all"
3727
+ },
3728
+ { label: `Use this MCP server`, value: "yes" },
3729
+ { label: `Continue without using this MCP server`, value: "no" }
3730
+ ],
3731
+ onChange: (value) => onChange(value),
3732
+ onCancel: () => onChange("no")
3733
+ }, undefined, false, undefined, this)
3734
+ ]
3735
+ }, undefined, true, undefined, this);
3784
3736
  }
3785
3737
 
3786
3738
  // src/components/MCPServerMultiselectDialog.tsx
3787
3739
  init_partition();
3788
3740
  init_analytics();
3789
- init_ink();
3741
+ init_src();
3790
3742
  init_settings2();
3791
3743
  init_ConfigurableShortcutHint();
3792
3744
  init_SelectMulti();
3793
- init_Byline();
3794
- init_Dialog();
3795
- init_KeyboardShortcutHint();
3796
- var import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
3745
+ init_src();
3746
+ var import_react = __toESM(require_react(), 1);
3797
3747
  var jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
3798
- function MCPServerMultiselectDialog(t0) {
3799
- const $ = import_compiler_runtime3.c(21);
3800
- const {
3801
- serverNames,
3802
- onDone
3803
- } = t0;
3804
- let t1;
3805
- if ($[0] !== onDone || $[1] !== serverNames) {
3806
- t1 = function onSubmit2(selectedServers) {
3807
- const currentSettings = getSettings_DEPRECATED() || {};
3808
- const enabledServers = currentSettings.enabledMcpjsonServers || [];
3809
- const disabledServers = currentSettings.disabledMcpjsonServers || [];
3810
- const [approvedServers, rejectedServers] = partition_default(serverNames, (server) => selectedServers.includes(server));
3811
- logEvent("tengu_mcp_multidialog_choice", {
3812
- approved: approvedServers.length,
3813
- rejected: rejectedServers.length
3748
+ function MCPServerMultiselectDialog({
3749
+ serverNames,
3750
+ onDone
3751
+ }) {
3752
+ function onSubmit(selectedServers) {
3753
+ const currentSettings = getSettings_DEPRECATED() || {};
3754
+ const enabledServers = currentSettings.enabledMcpjsonServers || [];
3755
+ const disabledServers = currentSettings.disabledMcpjsonServers || [];
3756
+ const [approvedServers, rejectedServers] = partition_default(serverNames, (server) => selectedServers.includes(server));
3757
+ logEvent("tengu_mcp_multidialog_choice", {
3758
+ approved: approvedServers.length,
3759
+ rejected: rejectedServers.length
3760
+ });
3761
+ if (approvedServers.length > 0) {
3762
+ const newEnabledServers = [
3763
+ ...new Set([...enabledServers, ...approvedServers])
3764
+ ];
3765
+ updateSettingsForSource("localSettings", {
3766
+ enabledMcpjsonServers: newEnabledServers
3814
3767
  });
3815
- if (approvedServers.length > 0) {
3816
- const newEnabledServers = [...new Set([...enabledServers, ...approvedServers])];
3817
- updateSettingsForSource("localSettings", {
3818
- enabledMcpjsonServers: newEnabledServers
3819
- });
3820
- }
3821
- if (rejectedServers.length > 0) {
3822
- const newDisabledServers = [...new Set([...disabledServers, ...rejectedServers])];
3823
- updateSettingsForSource("localSettings", {
3824
- disabledMcpjsonServers: newDisabledServers
3825
- });
3826
- }
3827
- onDone();
3828
- };
3829
- $[0] = onDone;
3830
- $[1] = serverNames;
3831
- $[2] = t1;
3832
- } else {
3833
- t1 = $[2];
3834
- }
3835
- const onSubmit = t1;
3836
- let t2;
3837
- if ($[3] !== onDone || $[4] !== serverNames) {
3838
- t2 = () => {
3839
- const currentSettings_0 = getSettings_DEPRECATED() || {};
3840
- const disabledServers_0 = currentSettings_0.disabledMcpjsonServers || [];
3841
- const newDisabledServers_0 = [...new Set([...disabledServers_0, ...serverNames])];
3768
+ }
3769
+ if (rejectedServers.length > 0) {
3770
+ const newDisabledServers = [
3771
+ ...new Set([...disabledServers, ...rejectedServers])
3772
+ ];
3842
3773
  updateSettingsForSource("localSettings", {
3843
- disabledMcpjsonServers: newDisabledServers_0
3774
+ disabledMcpjsonServers: newDisabledServers
3844
3775
  });
3845
- onDone();
3846
- };
3847
- $[3] = onDone;
3848
- $[4] = serverNames;
3849
- $[5] = t2;
3850
- } else {
3851
- t2 = $[5];
3852
- }
3853
- const handleEscRejectAll = t2;
3854
- const t3 = `${serverNames.length} new MCP servers found in .mcp.json`;
3855
- let t4;
3856
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
3857
- t4 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPServerDialogCopy, {}, undefined, false, undefined, this);
3858
- $[6] = t4;
3859
- } else {
3860
- t4 = $[6];
3776
+ }
3777
+ onDone();
3861
3778
  }
3862
- let t5;
3863
- if ($[7] !== serverNames) {
3864
- t5 = serverNames.map(_temp);
3865
- $[7] = serverNames;
3866
- $[8] = t5;
3867
- } else {
3868
- t5 = $[8];
3869
- }
3870
- let t6;
3871
- if ($[9] !== handleEscRejectAll || $[10] !== onSubmit || $[11] !== serverNames || $[12] !== t5) {
3872
- t6 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SelectMulti, {
3873
- options: t5,
3874
- defaultValue: serverNames,
3875
- onSubmit,
3876
- onCancel: handleEscRejectAll,
3877
- hideIndexes: true
3878
- }, undefined, false, undefined, this);
3879
- $[9] = handleEscRejectAll;
3880
- $[10] = onSubmit;
3881
- $[11] = serverNames;
3882
- $[12] = t5;
3883
- $[13] = t6;
3884
- } else {
3885
- t6 = $[13];
3886
- }
3887
- let t7;
3888
- if ($[14] !== handleEscRejectAll || $[15] !== t3 || $[16] !== t6) {
3889
- t7 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Dialog, {
3890
- title: t3,
3891
- subtitle: "Select any you wish to enable.",
3892
- color: "warning",
3893
- onCancel: handleEscRejectAll,
3894
- hideInputGuide: true,
3895
- children: [
3896
- t4,
3897
- t6
3898
- ]
3899
- }, undefined, true, undefined, this);
3900
- $[14] = handleEscRejectAll;
3901
- $[15] = t3;
3902
- $[16] = t6;
3903
- $[17] = t7;
3904
- } else {
3905
- t7 = $[17];
3906
- }
3907
- let t8;
3908
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
3909
- t8 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
3910
- paddingX: 1,
3911
- children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
3912
- dimColor: true,
3913
- italic: true,
3914
- children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Byline, {
3915
- children: [
3916
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(KeyboardShortcutHint, {
3917
- shortcut: "Space",
3918
- action: "select"
3919
- }, undefined, false, undefined, this),
3920
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(KeyboardShortcutHint, {
3921
- shortcut: "Enter",
3922
- action: "confirm"
3923
- }, undefined, false, undefined, this),
3924
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ConfigurableShortcutHint, {
3925
- action: "confirm:no",
3926
- context: "Confirmation",
3927
- fallback: "Esc",
3928
- description: "reject all"
3929
- }, undefined, false, undefined, this)
3930
- ]
3931
- }, undefined, true, undefined, this)
3779
+ const handleEscRejectAll = import_react.useCallback(() => {
3780
+ const currentSettings = getSettings_DEPRECATED() || {};
3781
+ const disabledServers = currentSettings.disabledMcpjsonServers || [];
3782
+ const newDisabledServers = [
3783
+ ...new Set([...disabledServers, ...serverNames])
3784
+ ];
3785
+ updateSettingsForSource("localSettings", {
3786
+ disabledMcpjsonServers: newDisabledServers
3787
+ });
3788
+ onDone();
3789
+ }, [serverNames, onDone]);
3790
+ return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(jsx_dev_runtime4.Fragment, {
3791
+ children: [
3792
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Dialog, {
3793
+ title: `${serverNames.length} new MCP servers found in .mcp.json`,
3794
+ subtitle: "Select any you wish to enable.",
3795
+ color: "warning",
3796
+ onCancel: handleEscRejectAll,
3797
+ hideInputGuide: true,
3798
+ children: [
3799
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPServerDialogCopy, {}, undefined, false, undefined, this),
3800
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SelectMulti, {
3801
+ options: serverNames.map((server) => ({
3802
+ label: server,
3803
+ value: server
3804
+ })),
3805
+ defaultValue: serverNames,
3806
+ onSubmit,
3807
+ onCancel: handleEscRejectAll,
3808
+ hideIndexes: true
3809
+ }, undefined, false, undefined, this)
3810
+ ]
3811
+ }, undefined, true, undefined, this),
3812
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
3813
+ paddingX: 1,
3814
+ children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
3815
+ dimColor: true,
3816
+ italic: true,
3817
+ children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Byline, {
3818
+ children: [
3819
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(KeyboardShortcutHint, {
3820
+ shortcut: "Space",
3821
+ action: "select"
3822
+ }, undefined, false, undefined, this),
3823
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(KeyboardShortcutHint, {
3824
+ shortcut: "Enter",
3825
+ action: "confirm"
3826
+ }, undefined, false, undefined, this),
3827
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ConfigurableShortcutHint, {
3828
+ action: "confirm:no",
3829
+ context: "Confirmation",
3830
+ fallback: "Esc",
3831
+ description: "reject all"
3832
+ }, undefined, false, undefined, this)
3833
+ ]
3834
+ }, undefined, true, undefined, this)
3835
+ }, undefined, false, undefined, this)
3932
3836
  }, undefined, false, undefined, this)
3933
- }, undefined, false, undefined, this);
3934
- $[18] = t8;
3935
- } else {
3936
- t8 = $[18];
3937
- }
3938
- let t9;
3939
- if ($[19] !== t7) {
3940
- t9 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(jsx_dev_runtime4.Fragment, {
3941
- children: [
3942
- t7,
3943
- t8
3944
- ]
3945
- }, undefined, true, undefined, this);
3946
- $[19] = t7;
3947
- $[20] = t9;
3948
- } else {
3949
- t9 = $[20];
3950
- }
3951
- return t9;
3952
- }
3953
- function _temp(server_0) {
3954
- return {
3955
- label: server_0,
3956
- value: server_0
3957
- };
3837
+ ]
3838
+ }, undefined, true, undefined, this);
3958
3839
  }
3959
3840
 
3960
3841
  // src/services/mcpServerApproval.tsx
@@ -3964,9 +3845,7 @@ init_config3();
3964
3845
  init_utils();
3965
3846
  var jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
3966
3847
  async function handleMcpjsonServerApprovals(root) {
3967
- const {
3968
- servers: projectServers
3969
- } = getMcpConfigsByScope("project");
3848
+ const { servers: projectServers } = getMcpConfigsByScope("project");
3970
3849
  const pendingServers = Object.keys(projectServers).filter((serverName) => getProjectMcpServerStatus(serverName) === "pending");
3971
3850
  if (pendingServers.length === 0) {
3972
3851
  return;
@@ -4005,6 +3884,30 @@ init_config2();
4005
3884
  // src/utils/deepLink/terminalPreference.ts
4006
3885
  init_config2();
4007
3886
  init_debug();
3887
+ var TERM_PROGRAM_TO_APP = {
3888
+ iterm: "iTerm",
3889
+ "iterm.app": "iTerm",
3890
+ ghostty: "Ghostty",
3891
+ kitty: "kitty",
3892
+ alacritty: "Alacritty",
3893
+ wezterm: "WezTerm",
3894
+ apple_terminal: "Terminal"
3895
+ };
3896
+ function updateDeepLinkTerminalPreference() {
3897
+ if (process.platform !== "darwin")
3898
+ return;
3899
+ const termProgram = process.env.TERM_PROGRAM;
3900
+ if (!termProgram)
3901
+ return;
3902
+ const app = TERM_PROGRAM_TO_APP[termProgram.toLowerCase()];
3903
+ if (!app)
3904
+ return;
3905
+ const config = getGlobalConfig();
3906
+ if (config.deepLinkTerminal === app)
3907
+ return;
3908
+ saveGlobalConfig((current) => ({ ...current, deepLinkTerminal: app }));
3909
+ logForDebugging(`Stored deep link terminal preference: ${app}`);
3910
+ }
4008
3911
 
4009
3912
  // src/interactiveHelpers.tsx
4010
3913
  init_envUtils();
@@ -4044,6 +3947,7 @@ class FpsTracker {
4044
3947
  }
4045
3948
 
4046
3949
  // src/interactiveHelpers.tsx
3950
+ init_managedEnv();
4047
3951
  init_allErrors();
4048
3952
  init_settings2();
4049
3953
  var jsx_dev_runtime6 = __toESM(require_jsx_dev_runtime(), 1);
@@ -4061,15 +3965,10 @@ function showDialog(root, renderer) {
4061
3965
  });
4062
3966
  }
4063
3967
  async function exitWithError(root, message, beforeExit) {
4064
- return exitWithMessage(root, message, {
4065
- color: "error",
4066
- beforeExit
4067
- });
3968
+ return exitWithMessage(root, message, { color: "error", beforeExit });
4068
3969
  }
4069
3970
  async function exitWithMessage(root, message, options) {
4070
- const {
4071
- Text
4072
- } = await import("./chunk-h19p6s3b.js");
3971
+ const { Text } = await import("./chunk-cqjmxeqv.js");
4073
3972
  const color = options?.color;
4074
3973
  const exitCode = options?.exitCode ?? 1;
4075
3974
  root.render(color ? /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
@@ -4104,23 +4003,17 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4104
4003
  let onboardingShown = false;
4105
4004
  if (!config.theme || !config.hasCompletedOnboarding) {
4106
4005
  onboardingShown = true;
4107
- const {
4108
- Onboarding
4109
- } = await import("./chunk-684kdqez.js");
4006
+ const { Onboarding } = await import("./chunk-q08sb44h.js");
4110
4007
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Onboarding, {
4111
4008
  onDone: () => {
4112
4009
  completeOnboarding();
4113
4010
  done();
4114
4011
  }
4115
- }, undefined, false, undefined, this), {
4116
- onChangeAppState
4117
- });
4012
+ }, undefined, false, undefined, this), { onChangeAppState });
4118
4013
  }
4119
4014
  if (!isEnvTruthy(process.env.CLAUBBIT)) {
4120
4015
  if (!checkHasTrustDialogAccepted()) {
4121
- const {
4122
- TrustDialog
4123
- } = await import("./chunk-3bg1089y.js");
4016
+ const { TrustDialog } = await import("./chunk-j2wgj22c.js");
4124
4017
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(TrustDialog, {
4125
4018
  commands,
4126
4019
  onDone: done
@@ -4130,17 +4023,13 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4130
4023
  resetGrowthBook();
4131
4024
  initializeGrowthBook();
4132
4025
  getSystemContext();
4133
- const {
4134
- errors: allErrors
4135
- } = getSettingsWithAllErrors();
4026
+ const { errors: allErrors } = getSettingsWithAllErrors();
4136
4027
  if (allErrors.length === 0) {
4137
4028
  await handleMcpjsonServerApprovals(root);
4138
4029
  }
4139
4030
  if (await shouldShowClaudeMdExternalIncludesWarning()) {
4140
4031
  const externalIncludes = getExternalClaudeMdIncludes(await getMemoryFiles(true));
4141
- const {
4142
- ClaudeMdExternalIncludesDialog
4143
- } = await import("./chunk-q1yqc5n3.js");
4032
+ const { ClaudeMdExternalIncludesDialog } = await import("./chunk-fw0ckaxh.js");
4144
4033
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ClaudeMdExternalIncludesDialog, {
4145
4034
  onDone: done,
4146
4035
  isStandaloneDialog: true,
@@ -4149,13 +4038,13 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4149
4038
  }
4150
4039
  }
4151
4040
  updateGithubRepoPathMapping();
4152
- if (false) {}
4041
+ if (true) {
4042
+ updateDeepLinkTerminalPreference();
4043
+ }
4153
4044
  applyConfigEnvironmentVariables();
4154
4045
  setImmediate(() => initializeTelemetryAfterTrust());
4155
4046
  if (await isQualifiedForGrove()) {
4156
- const {
4157
- GroveDialog
4158
- } = await import("./chunk-2v1q0ezq.js");
4047
+ const { GroveDialog } = await import("./chunk-ksvvwa9w.js");
4159
4048
  const decision = await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(GroveDialog, {
4160
4049
  showIfAlreadyViewed: false,
4161
4050
  location: onboardingShown ? "onboarding" : "policy_update_modal",
@@ -4171,31 +4060,32 @@ async function showSetupScreens(root, permissionMode, allowDangerouslySkipPermis
4171
4060
  const customApiKeyTruncated = normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY);
4172
4061
  const keyStatus = getCustomApiKeyStatus(customApiKeyTruncated);
4173
4062
  if (keyStatus === "new") {
4174
- const {
4175
- ApproveApiKey
4176
- } = await import("./chunk-abncjeag.js");
4063
+ const { ApproveApiKey } = await import("./chunk-6sjxvthw.js");
4177
4064
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ApproveApiKey, {
4178
4065
  customApiKeyTruncated,
4179
4066
  onDone: done
4180
- }, undefined, false, undefined, this), {
4181
- onChangeAppState
4182
- });
4067
+ }, undefined, false, undefined, this), { onChangeAppState });
4183
4068
  }
4184
4069
  }
4185
4070
  if ((permissionMode === "bypassPermissions" || allowDangerouslySkipPermissions) && !hasSkipDangerousModePermissionPrompt()) {
4186
- const {
4187
- BypassPermissionsModeDialog
4188
- } = await import("./chunk-f8zga40p.js");
4071
+ const { BypassPermissionsModeDialog } = await import("./chunk-3816xd5p.js");
4189
4072
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(BypassPermissionsModeDialog, {
4190
4073
  onAccept: done
4191
4074
  }, undefined, false, undefined, this));
4192
4075
  }
4193
- if (false) {}
4076
+ if (true) {
4077
+ if (permissionMode === "auto" && !hasAutoModeOptIn()) {
4078
+ const { AutoModeOptInDialog } = await import("./chunk-jba8f3hz.js");
4079
+ await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(AutoModeOptInDialog, {
4080
+ onAccept: done,
4081
+ onDecline: () => gracefulShutdownSync(1),
4082
+ declineExits: true
4083
+ }, undefined, false, undefined, this));
4084
+ }
4085
+ }
4194
4086
  if (false) {}
4195
4087
  if (claudeInChrome && !getGlobalConfig().hasCompletedClaudeInChromeOnboarding) {
4196
- const {
4197
- ClaudeInChromeOnboarding
4198
- } = await import("./chunk-5ym9f6w3.js");
4088
+ const { ClaudeInChromeOnboarding } = await import("./chunk-0qsm7jac.js");
4199
4089
  await showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(ClaudeInChromeOnboarding, {
4200
4090
  onDone: done
4201
4091
  }, undefined, false, undefined, this));
@@ -4256,9 +4146,7 @@ function getRenderContext(exitOnCtrlC) {
4256
4146
  init_KeybindingProviderSetup();
4257
4147
  var jsx_dev_runtime7 = __toESM(require_jsx_dev_runtime(), 1);
4258
4148
  async function launchInvalidSettingsDialog(root, props) {
4259
- const {
4260
- InvalidSettingsDialog
4261
- } = await import("./chunk-53hqpp5z.js");
4149
+ const { InvalidSettingsDialog } = await import("./chunk-8qxyxgkb.js");
4262
4150
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(InvalidSettingsDialog, {
4263
4151
  settingsErrors: props.settingsErrors,
4264
4152
  onContinue: done,
@@ -4266,9 +4154,7 @@ async function launchInvalidSettingsDialog(root, props) {
4266
4154
  }, undefined, false, undefined, this));
4267
4155
  }
4268
4156
  async function launchTeleportResumeWrapper(root) {
4269
- const {
4270
- TeleportResumeWrapper
4271
- } = await import("./chunk-j3215c49.js");
4157
+ const { TeleportResumeWrapper } = await import("./chunk-3ygnhge8.js");
4272
4158
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(TeleportResumeWrapper, {
4273
4159
  onComplete: done,
4274
4160
  onCancel: () => done(null),
@@ -4276,9 +4162,7 @@ async function launchTeleportResumeWrapper(root) {
4276
4162
  }, undefined, false, undefined, this));
4277
4163
  }
4278
4164
  async function launchTeleportRepoMismatchDialog(root, props) {
4279
- const {
4280
- TeleportRepoMismatchDialog
4281
- } = await import("./chunk-c3k0sdey.js");
4165
+ const { TeleportRepoMismatchDialog } = await import("./chunk-xed18bb5.js");
4282
4166
  return showSetupDialog(root, (done) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(TeleportRepoMismatchDialog, {
4283
4167
  targetRepo: props.targetRepo,
4284
4168
  initialPaths: props.initialPaths,
@@ -4287,11 +4171,11 @@ async function launchTeleportRepoMismatchDialog(root, props) {
4287
4171
  }, undefined, false, undefined, this));
4288
4172
  }
4289
4173
  async function launchResumeChooser(root, appProps, worktreePathsPromise, resumeProps) {
4290
- const [worktreePaths, {
4291
- ResumeConversation
4292
- }, {
4293
- App
4294
- }] = await Promise.all([worktreePathsPromise, import("./chunk-kq098bkj.js"), import("./chunk-xx2x3tz9.js")]);
4174
+ const [worktreePaths, { ResumeConversation }, { App }] = await Promise.all([
4175
+ worktreePathsPromise,
4176
+ import("./chunk-08g51x43.js"),
4177
+ import("./chunk-xrzrbw0f.js")
4178
+ ]);
4295
4179
  await renderAndRun(root, /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(App, {
4296
4180
  getFpsMetrics: appProps.getFpsMetrics,
4297
4181
  stats: appProps.stats,
@@ -4306,7 +4190,7 @@ async function launchResumeChooser(root, appProps, worktreePathsPromise, resumeP
4306
4190
  }
4307
4191
 
4308
4192
  // src/main.tsx
4309
- init_dec();
4193
+ init_src();
4310
4194
 
4311
4195
  // src/plugins/bundled/index.ts
4312
4196
  function initBuiltinPlugins() {}
@@ -4320,7 +4204,7 @@ init_setup();
4320
4204
 
4321
4205
  // src/skills/bundled/batch.ts
4322
4206
  init_constants2();
4323
- init_prompt2();
4207
+ init_prompt3();
4324
4208
  init_constants4();
4325
4209
  init_constants3();
4326
4210
  init_constants5();
@@ -4435,8 +4319,8 @@ function registerBatchSkill() {
4435
4319
  }
4436
4320
 
4437
4321
  // src/skills/bundled/claudeInChrome.ts
4438
- init_src();
4439
- init_prompt5();
4322
+ init_src2();
4323
+ init_prompt6();
4440
4324
  init_setup();
4441
4325
  init_bundledSkills();
4442
4326
  var CLAUDE_IN_CHROME_MCP_TOOLS = BROWSER_TOOLS.map((tool) => `mcp__claude-in-chrome__${tool.name}`);
@@ -5673,8 +5557,58 @@ ${args}
5673
5557
  });
5674
5558
  }
5675
5559
 
5560
+ // src/skills/bundled/cronManage.ts
5561
+ init_prompt4();
5562
+ init_bundledSkills();
5563
+ function registerCronListSkill() {
5564
+ registerBundledSkill({
5565
+ name: "cron-list",
5566
+ description: "List all scheduled cron jobs in this session",
5567
+ whenToUse: "When the user wants to see their scheduled/recurring tasks, check active cron jobs, or review what is currently looping.",
5568
+ userInvocable: true,
5569
+ isEnabled: isKairosCronEnabled,
5570
+ async getPromptForCommand() {
5571
+ return [
5572
+ {
5573
+ type: "text",
5574
+ text: `Call ${CRON_LIST_TOOL_NAME} to list all scheduled cron jobs. Display the results in a table with columns: ID, Schedule, Prompt, Recurring, Durable. If no jobs exist, say "No scheduled tasks."`
5575
+ }
5576
+ ];
5577
+ }
5578
+ });
5579
+ }
5580
+ function registerCronDeleteSkill() {
5581
+ registerBundledSkill({
5582
+ name: "cron-delete",
5583
+ description: "Cancel a scheduled cron job by ID",
5584
+ whenToUse: "When the user wants to cancel, stop, or remove a scheduled/recurring task or cron job.",
5585
+ argumentHint: "<job-id>",
5586
+ userInvocable: true,
5587
+ isEnabled: isKairosCronEnabled,
5588
+ async getPromptForCommand(args) {
5589
+ const id = args.trim();
5590
+ if (!id) {
5591
+ return [
5592
+ {
5593
+ type: "text",
5594
+ text: `Usage: /cron-delete <job-id>
5595
+
5596
+ Provide the job ID to cancel. Use /cron-list to see active jobs and their IDs.`
5597
+ }
5598
+ ];
5599
+ }
5600
+ return [
5601
+ {
5602
+ type: "text",
5603
+ text: `Call ${CRON_DELETE_TOOL_NAME} with id "${id}" to cancel that scheduled job. Confirm the result to the user.`
5604
+ }
5605
+ ];
5606
+ }
5607
+ });
5608
+ }
5609
+
5676
5610
  // src/skills/bundled/loop.ts
5677
- init_prompt3();
5611
+ init_prompt4();
5678
5612
  init_bundledSkills();
5679
5613
  var DEFAULT_INTERVAL = "10m";
5680
5614
  var USAGE_MESSAGE = `Usage: /loop [interval] <prompt>
@@ -6328,6 +6262,8 @@ function initBundledSkills() {
6328
6262
  registerBatchSkill();
6329
6263
  registerStuckSkill();
6330
6264
  registerLoopSkill();
6265
+ registerCronListSkill();
6266
+ registerCronDeleteSkill();
6331
6267
  registerDreamSkill();
6332
6268
  if (false) {}
6333
6269
  if (true) {
@@ -6345,19 +6281,10 @@ function initBundledSkills() {
6345
6281
 
6346
6282
  // src/main.tsx
6347
6283
  init_loadAgentsDir();
6348
- init_autoUpdater();
6349
- init_prompt5();
6284
+ init_prompt6();
6350
6285
  init_setup();
6351
6286
  init_context();
6352
6287
  init_conversationRecovery();
6353
-
6354
- // src/utils/deepLink/banner.ts
6355
- init_format();
6356
- init_gitFilesystem();
6357
- init_git();
6358
- var STALE_FETCH_WARN_MS = 7 * 24 * 60 * 60 * 1000;
6359
-
6360
- // src/main.tsx
6361
6288
  init_envUtils();
6362
6289
  init_getWorktreePaths();
6363
6290
  init_git();
@@ -6403,7 +6330,7 @@ init_pluginTelemetry();
6403
6330
  // src/utils/telemetry/skillLoadedEvent.ts
6404
6331
  init_commands();
6405
6332
  init_analytics();
6406
- init_prompt();
6333
+ init_prompt2();
6407
6334
  async function logSkillsLoaded(cwd, contextWindowTokens) {
6408
6335
  const skills = await getSkillToolCommands(cwd);
6409
6336
  const skillBudget = getCharBudget(contextWindowTokens);
@@ -6737,46 +6664,6 @@ init_constants();
6737
6664
  init_stringUtils();
6738
6665
  init_state();
6739
6666
 
6740
- // src/migrations/migrateAutoUpdatesToSettings.ts
6741
- init_analytics();
6742
- init_config2();
6743
- init_log();
6744
- init_settings2();
6745
- function migrateAutoUpdatesToSettings() {
6746
- const globalConfig = getGlobalConfig();
6747
- if (globalConfig.autoUpdates !== false || globalConfig.autoUpdatesProtectedForNative === true) {
6748
- return;
6749
- }
6750
- try {
6751
- const userSettings = getSettingsForSource("userSettings") || {};
6752
- updateSettingsForSource("userSettings", {
6753
- ...userSettings,
6754
- env: {
6755
- ...userSettings.env,
6756
- DISABLE_AUTOUPDATER: "1"
6757
- }
6758
- });
6759
- logEvent("tengu_migrate_autoupdates_to_settings", {
6760
- was_user_preference: true,
6761
- already_had_env_var: !!userSettings.env?.DISABLE_AUTOUPDATER
6762
- });
6763
- process.env.DISABLE_AUTOUPDATER = "1";
6764
- saveGlobalConfig((current) => {
6765
- const {
6766
- autoUpdates: _,
6767
- autoUpdatesProtectedForNative: __,
6768
- ...updatedConfig
6769
- } = current;
6770
- return updatedConfig;
6771
- });
6772
- } catch (error) {
6773
- logError(new Error(`Failed to migrate auto-updates: ${error}`));
6774
- logEvent("tengu_migrate_autoupdates_error", {
6775
- has_error: true
6776
- });
6777
- }
6778
- }
6779
-
6780
6667
  // src/migrations/migrateBypassPermissionsAcceptedToSettings.ts
6781
6668
  init_analytics();
6782
6669
  init_config2();
@@ -7022,6 +6909,31 @@ init_config2();
7022
6909
  init_log();
7023
6910
  init_permissionSetup();
7024
6911
  init_settings2();
6912
+ function resetAutoModeOptInForDefaultOffer() {
6913
+ if (true) {
6914
+ const config = getGlobalConfig();
6915
+ if (config.hasResetAutoModeOptInForDefaultOffer)
6916
+ return;
6917
+ if (getAutoModeEnabledState() !== "enabled")
6918
+ return;
6919
+ try {
6920
+ const user = getSettingsForSource("userSettings");
6921
+ if (user?.skipAutoPermissionPrompt && user?.permissions?.defaultMode !== "auto") {
6922
+ updateSettingsForSource("userSettings", {
6923
+ skipAutoPermissionPrompt: undefined
6924
+ });
6925
+ logEvent("tengu_migrate_reset_auto_opt_in_for_default_offer", {});
6926
+ }
6927
+ saveGlobalConfig((c) => {
6928
+ if (c.hasResetAutoModeOptInForDefaultOffer)
6929
+ return c;
6930
+ return { ...c, hasResetAutoModeOptInForDefaultOffer: true };
6931
+ });
6932
+ } catch (error) {
6933
+ logError(new Error(`Failed to reset auto mode opt-in: ${error}`));
6934
+ }
6935
+ }
6936
+ }
7025
6937
 
7026
6938
  // src/migrations/resetProToOpusDefault.ts
7027
6939
  init_analytics();
@@ -7104,6 +7016,7 @@ var getTeammateUtils = () => (init_teammate(), __toCommonJS(exports_teammate));
7104
7016
  var getTeammatePromptAddendum = () => (init_teammatePromptAddendum(), __toCommonJS(exports_teammatePromptAddendum));
7105
7017
  var getTeammateModeSnapshot = () => (init_teammateModeSnapshot(), __toCommonJS(exports_teammateModeSnapshot));
7106
7018
  var coordinatorModeModule = null;
7019
+ var autoModeStateModule = (init_autoModeState(), __toCommonJS(exports_autoModeState));
7107
7020
  profileCheckpoint("main_tsx_imports_loaded");
7108
7021
  function logManagedSettings() {
7109
7022
  try {
@@ -7120,10 +7033,7 @@ function logManagedSettings() {
7120
7033
  function logSessionTelemetry() {
7121
7034
  const model = parseUserSpecifiedModel(getInitialMainLoopModel() ?? getDefaultMainLoopModel());
7122
7035
  logSkillsLoaded(getCwd(), getContextWindowForModel(model, getSdkBetas()));
7123
- loadAllPluginsCacheOnly().then(({
7124
- enabled,
7125
- errors
7126
- }) => {
7036
+ loadAllPluginsCacheOnly().then(({ enabled, errors }) => {
7127
7037
  const managedNames = getManagedPluginNames();
7128
7038
  logPluginsEnabledForSession(enabled, managedNames, getPluginSeedDirs());
7129
7039
  logPluginLoadErrors(errors, managedNames);
@@ -7148,7 +7058,11 @@ function getCertEnvVarTelemetry() {
7148
7058
  async function logStartupTelemetry() {
7149
7059
  if (isAnalyticsDisabled())
7150
7060
  return;
7151
- const [isGit, worktreeCount, ghAuthStatus] = await Promise.all([getIsGit(), getWorktreeCount(), getGhAuthStatus()]);
7061
+ const [isGit, worktreeCount, ghAuthStatus] = await Promise.all([
7062
+ getIsGit(),
7063
+ getWorktreeCount(),
7064
+ getGhAuthStatus()
7065
+ ]);
7152
7066
  logEvent("tengu_startup_telemetry", {
7153
7067
  is_git: isGit,
7154
7068
  worktree_count: worktreeCount,
@@ -7164,7 +7078,6 @@ async function logStartupTelemetry() {
7164
7078
  var CURRENT_MIGRATION_VERSION = 11;
7165
7079
  function runMigrations() {
7166
7080
  if (getGlobalConfig().migrationVersion !== CURRENT_MIGRATION_VERSION) {
7167
- migrateAutoUpdatesToSettings();
7168
7081
  migrateBypassPermissionsAcceptedToSettings();
7169
7082
  migrateEnableAllProjectMcpServersToSettings();
7170
7083
  resetProToOpusDefault();
@@ -7173,14 +7086,13 @@ function runMigrations() {
7173
7086
  migrateSonnet45ToSonnet46();
7174
7087
  migrateOpusToOpus1m();
7175
7088
  migrateReplBridgeEnabledToRemoteControlAtStartup();
7176
- if (false) {}
7089
+ if (true) {
7090
+ resetAutoModeOptInForDefaultOffer();
7091
+ }
7177
7092
  if (process.env.USER_TYPE === "ant") {
7178
7093
  migrateFennecToOpus();
7179
7094
  }
7180
- saveGlobalConfig((prev) => prev.migrationVersion === CURRENT_MIGRATION_VERSION ? prev : {
7181
- ...prev,
7182
- migrationVersion: CURRENT_MIGRATION_VERSION
7183
- });
7095
+ saveGlobalConfig((prev) => prev.migrationVersion === CURRENT_MIGRATION_VERSION ? prev : { ...prev, migrationVersion: CURRENT_MIGRATION_VERSION });
7184
7096
  }
7185
7097
  migrateChangelogFromConfig().catch(() => {});
7186
7098
  }
@@ -7242,9 +7154,7 @@ function loadSettingsFromFlag(settingsFile) {
7242
7154
  });
7243
7155
  writeFileSync_DEPRECATED(settingsPath, trimmedSettings, "utf8");
7244
7156
  } else {
7245
- const {
7246
- resolvedPath: resolvedSettingsPath
7247
- } = safeResolvePath(getFsImplementation(), settingsFile);
7157
+ const { resolvedPath: resolvedSettingsPath } = safeResolvePath(getFsImplementation(), settingsFile);
7248
7158
  try {
7249
7159
  readFileSync(resolvedSettingsPath, "utf8");
7250
7160
  } catch (e) {
@@ -7325,7 +7235,24 @@ async function main() {
7325
7235
  });
7326
7236
  profileCheckpoint("main_warning_handler_initialized");
7327
7237
  if (false) {}
7328
- if (false) {}
7238
+ if (true) {
7239
+ const handleUriIdx = process.argv.indexOf("--handle-uri");
7240
+ if (handleUriIdx !== -1 && process.argv[handleUriIdx + 1]) {
7241
+ const { enableConfigs: enableConfigs2 } = await import("./chunk-6rxz872v.js");
7242
+ enableConfigs2();
7243
+ const uri = process.argv[handleUriIdx + 1];
7244
+ const { handleDeepLinkUri } = await import("./chunk-2wq8q15s.js");
7245
+ const exitCode = await handleDeepLinkUri(uri);
7246
+ process.exit(exitCode);
7247
+ }
7248
+ if (process.platform === "darwin" && process.env.__CFBundleIdentifier === "com.anthropic.claude-code-url-handler") {
7249
+ const { enableConfigs: enableConfigs2 } = await import("./chunk-6rxz872v.js");
7250
+ enableConfigs2();
7251
+ const { handleUrlSchemeLaunch } = await import("./chunk-2wq8q15s.js");
7252
+ const urlSchemeResult = await handleUrlSchemeLaunch();
7253
+ process.exit(urlSchemeResult ?? 1);
7254
+ }
7255
+ }
7329
7256
  if (false) {}
7330
7257
  if (false) {}
7331
7258
  const cliArgs = process.argv.slice(2);
@@ -7402,10 +7329,7 @@ async function run() {
7402
7329
  profileCheckpoint("run_function_start");
7403
7330
  function createSortedHelpConfig() {
7404
7331
  const getOptionSortKey = (opt) => opt.long?.replace(/^--/, "") ?? opt.short?.replace(/^-/, "") ?? "";
7405
- return Object.assign({
7406
- sortSubcommands: true,
7407
- sortOptions: true
7408
- }, {
7332
+ return Object.assign({ sortSubcommands: true, sortOptions: true }, {
7409
7333
  compareOptions: (a, b) => getOptionSortKey(a).localeCompare(getOptionSortKey(b))
7410
7334
  });
7411
7335
  }
@@ -7413,16 +7337,17 @@ async function run() {
7413
7337
  profileCheckpoint("run_commander_initialized");
7414
7338
  program2.hook("preAction", async (thisCommand) => {
7415
7339
  profileCheckpoint("preAction_start");
7416
- await Promise.all([ensureMdmSettingsLoaded(), ensureKeychainPrefetchCompleted()]);
7340
+ await Promise.all([
7341
+ ensureMdmSettingsLoaded(),
7342
+ ensureKeychainPrefetchCompleted()
7343
+ ]);
7417
7344
  profileCheckpoint("preAction_after_mdm");
7418
7345
  await init();
7419
7346
  profileCheckpoint("preAction_after_init");
7420
7347
  if (!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE)) {
7421
7348
  process.title = "claude";
7422
7349
  }
7423
- const {
7424
- initSinks
7425
- } = await import("./chunk-tth904tj.js");
7350
+ const { initSinks } = await import("./chunk-a0bz6g5e.js");
7426
7351
  initSinks();
7427
7352
  profileCheckpoint("preAction_after_sinks");
7428
7353
  const pluginDir = thisCommand.getOptionValue("pluginDir");
@@ -7473,9 +7398,7 @@ async function run() {
7473
7398
  prompt = undefined;
7474
7399
  }
7475
7400
  if (prompt && typeof prompt === "string" && !/\s/.test(prompt) && prompt.length > 0) {
7476
- logEvent("tengu_single_word_prompt", {
7477
- length: prompt.length
7478
- });
7401
+ logEvent("tengu_single_word_prompt", { length: prompt.length });
7479
7402
  }
7480
7403
  let kairosEnabled = false;
7481
7404
  let assistantTeamContext;
@@ -7702,7 +7625,11 @@ ${addendum}` : addendum;
7702
7625
  dangerouslySkipPermissions
7703
7626
  });
7704
7627
  setSessionBypassPermissionsMode(permissionMode === "bypassPermissions");
7705
- if (false) {}
7628
+ if (true) {
7629
+ if (options.enableAutoMode || permissionModeCli === "auto" || permissionMode === "auto" || !permissionModeCli && isDefaultPermissionModeAuto()) {
7630
+ autoModeStateModule?.setAutoModeFlagCli(true);
7631
+ }
7632
+ }
7706
7633
  let dynamicMcpConfig = {};
7707
7634
  if (mcpConfig && mcpConfig.length > 0) {
7708
7635
  const processedConfigs = mcpConfig.map((config) => config.trim()).filter((config) => config.length > 0);
@@ -7740,10 +7667,7 @@ ${addendum}` : addendum;
7740
7667
  if (errors.length > 0) {
7741
7668
  allErrors.push(...errors);
7742
7669
  } else if (configs) {
7743
- allConfigs = {
7744
- ...allConfigs,
7745
- ...configs
7746
- };
7670
+ allConfigs = { ...allConfigs, ...configs };
7747
7671
  }
7748
7672
  }
7749
7673
  if (allErrors.length > 0) {
@@ -7766,7 +7690,7 @@ ${formattedErrors}
7766
7690
  const {
7767
7691
  isComputerUseMCPServer,
7768
7692
  COMPUTER_USE_MCP_SERVER_NAME
7769
- } = await import("./chunk-krstc7m7.js");
7693
+ } = await import("./chunk-zfapazzd.js");
7770
7694
  if (nonSdkConfigNames.some(isComputerUseMCPServer)) {
7771
7695
  reservedNameError = `Invalid MCP configuration: "${COMPUTER_USE_MCP_SERVER_NAME}" is a reserved MCP name.`;
7772
7696
  }
@@ -7780,23 +7704,17 @@ ${formattedErrors}
7780
7704
  ...config,
7781
7705
  scope: "dynamic"
7782
7706
  }));
7783
- const {
7784
- allowed,
7785
- blocked
7786
- } = filterMcpServersByPolicy(scopedConfigs);
7707
+ const { allowed, blocked } = filterMcpServersByPolicy(scopedConfigs);
7787
7708
  if (blocked.length > 0) {
7788
7709
  process.stderr.write(`Warning: MCP ${plural(blocked.length, "server")} blocked by enterprise policy: ${blocked.join(", ")}
7789
7710
  `);
7790
7711
  }
7791
- dynamicMcpConfig = {
7792
- ...dynamicMcpConfig,
7793
- ...allowed
7794
- };
7712
+ dynamicMcpConfig = { ...dynamicMcpConfig, ...allowed };
7795
7713
  }
7796
7714
  }
7797
7715
  const chromeOpts = options;
7798
7716
  setChromeFlagOverride(chromeOpts.chrome);
7799
- const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome);
7717
+ const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && (process.env.USER_TYPE === "ant" || isClaudeAISubscriber());
7800
7718
  const autoEnableClaudeInChrome = !enableClaudeInChrome && shouldAutoEnableClaudeInChrome();
7801
7719
  if (enableClaudeInChrome) {
7802
7720
  const platform = getPlatform();
@@ -7830,9 +7748,7 @@ ${appendSystemPrompt}` : chromeSystemPrompt;
7830
7748
  }
7831
7749
  } else if (autoEnableClaudeInChrome) {
7832
7750
  try {
7833
- const {
7834
- mcpConfig: chromeMcpConfig
7835
- } = setupClaudeInChrome();
7751
+ const { mcpConfig: chromeMcpConfig } = setupClaudeInChrome();
7836
7752
  dynamicMcpConfig = {
7837
7753
  ...dynamicMcpConfig,
7838
7754
  ...chromeMcpConfig
@@ -7856,19 +7772,12 @@ ${hint}` : hint;
7856
7772
  process.exit(1);
7857
7773
  }
7858
7774
  }
7859
- if (!getIsNonInteractiveSession()) {
7775
+ if (getPlatform() !== "unknown" && !getIsNonInteractiveSession()) {
7860
7776
  try {
7861
- const {
7862
- getChicagoEnabled
7863
- } = await import("./chunk-ng6n9t4h.js");
7777
+ const { getChicagoEnabled } = await import("./chunk-0pryepme.js");
7864
7778
  if (getChicagoEnabled()) {
7865
- const {
7866
- setupComputerUseMCP
7867
- } = await import("./chunk-vybkxr18.js");
7868
- const {
7869
- mcpConfig: mcpConfig2,
7870
- allowedTools: cuTools
7871
- } = setupComputerUseMCP();
7779
+ const { setupComputerUseMCP } = await import("./chunk-y5z1cjbk.js");
7780
+ const { mcpConfig: mcpConfig2, allowedTools: cuTools } = setupComputerUseMCP();
7872
7781
  dynamicMcpConfig = {
7873
7782
  ...dynamicMcpConfig,
7874
7783
  ...mcpConfig2
@@ -7882,7 +7791,14 @@ ${hint}` : hint;
7882
7791
  setAdditionalDirectoriesForClaudeMd(addDir);
7883
7792
  let devChannels;
7884
7793
  if (false) {}
7885
- if (false) {}
7794
+ if (baseTools.length > 0) {
7795
+ const { BRIEF_TOOL_NAME, LEGACY_BRIEF_TOOL_NAME } = (init_prompt(), __toCommonJS(exports_prompt));
7796
+ const { isBriefEntitled } = (init_BriefTool(), __toCommonJS(exports_BriefTool));
7797
+ const parsed = parseToolListFromCLI(baseTools);
7798
+ if ((parsed.includes(BRIEF_TOOL_NAME) || parsed.includes(LEGACY_BRIEF_TOOL_NAME)) && isBriefEntitled()) {
7799
+ setUserMsgOptIn(true);
7800
+ }
7801
+ }
7886
7802
  const initResult = await initializeToolPermissionContext({
7887
7803
  allowedToolsCli: allowedTools,
7888
7804
  disallowedToolsCli: disallowedTools,
@@ -7903,16 +7819,14 @@ ${hint}` : hint;
7903
7819
  }
7904
7820
  toolPermissionContext = removeDangerousPermissions(toolPermissionContext, overlyBroadBashPermissions);
7905
7821
  }
7906
- if (false) {}
7822
+ if (dangerousPermissions.length > 0) {
7823
+ toolPermissionContext = stripDangerousPermissionsForAutoMode(toolPermissionContext);
7824
+ }
7907
7825
  warnings.forEach((warning) => {
7908
7826
  console.error(warning);
7909
7827
  });
7910
- assertMinVersion();
7911
7828
  const claudeaiConfigPromise = isNonInteractiveSession && !strictMcpConfig && !doesEnterpriseMcpConfigExist() && !isBareMode() ? fetchClaudeAIMcpConfigsIfEligible().then((configs) => {
7912
- const {
7913
- allowed,
7914
- blocked
7915
- } = filterMcpServersByPolicy(configs);
7829
+ const { allowed, blocked } = filterMcpServersByPolicy(configs);
7916
7830
  if (blocked.length > 0) {
7917
7831
  process.stderr.write(`Warning: claude.ai MCP ${plural(blocked.length, "server")} blocked by enterprise policy: ${blocked.join(", ")}
7918
7832
  `);
@@ -7966,9 +7880,7 @@ ${hint}` : hint;
7966
7880
  if (false) {}
7967
7881
  profileCheckpoint("action_tools_loaded");
7968
7882
  let jsonSchema;
7969
- if (isSyntheticOutputToolEnabled({
7970
- isNonInteractiveSession
7971
- }) && options.jsonSchema) {
7883
+ if (isSyntheticOutputToolEnabled({ isNonInteractiveSession }) && options.jsonSchema) {
7972
7884
  jsonSchema = jsonParse(options.jsonSchema);
7973
7885
  }
7974
7886
  if (jsonSchema) {
@@ -7988,9 +7900,7 @@ ${hint}` : hint;
7988
7900
  profileCheckpoint("action_before_setup");
7989
7901
  logForDebugging("[STARTUP] Running setup()...");
7990
7902
  const setupStart = Date.now();
7991
- const {
7992
- setup
7993
- } = await import("./chunk-vyd8jzde.js");
7903
+ const { setup } = await import("./chunk-81v55vtd.js");
7994
7904
  const messagingSocketPath = undefined;
7995
7905
  const preSetupCwd = getCwd();
7996
7906
  if (process.env.CLAUDE_CODE_ENTRYPOINT !== "local-agent") {
@@ -8026,7 +7936,10 @@ ${hint}` : hint;
8026
7936
  const currentCwd = worktreeEnabled ? getCwd() : preSetupCwd;
8027
7937
  logForDebugging("[STARTUP] Loading commands and agents...");
8028
7938
  const commandsStart = Date.now();
8029
- const [commands, agentDefinitionsResult] = await Promise.all([commandsPromise ?? getCommands(currentCwd), agentDefsPromise ?? getAgentDefinitionsWithOverrides(currentCwd)]);
7939
+ const [commands, agentDefinitionsResult] = await Promise.all([
7940
+ commandsPromise ?? getCommands(currentCwd),
7941
+ agentDefsPromise ?? getAgentDefinitionsWithOverrides(currentCwd)
7942
+ ]);
8030
7943
  logForDebugging(`[STARTUP] Commands and agents loaded in ${Date.now() - commandsStart}ms`);
8031
7944
  profileCheckpoint("action_commands_loaded");
8032
7945
  let cliAgents = [];
@@ -8040,7 +7953,10 @@ ${hint}` : hint;
8040
7953
  logError(error);
8041
7954
  }
8042
7955
  }
8043
- const allAgents = [...agentDefinitionsResult.allAgents, ...cliAgents];
7956
+ const allAgents = [
7957
+ ...agentDefinitionsResult.allAgents,
7958
+ ...cliAgents
7959
+ ];
8044
7960
  const agentDefinitions = {
8045
7961
  ...agentDefinitionsResult,
8046
7962
  allAgents,
@@ -8142,7 +8058,12 @@ ${customInstructions}` : customInstructions;
8142
8058
  }
8143
8059
  }
8144
8060
  maybeActivateBrief(options);
8145
- if (false) {}
8061
+ if (!getIsNonInteractiveSession() && !getUserMsgOptIn() && getInitialSettings().defaultView === "chat") {
8062
+ const { isBriefEntitled } = (init_BriefTool(), __toCommonJS(exports_BriefTool));
8063
+ if (isBriefEntitled()) {
8064
+ setUserMsgOptIn(true);
8065
+ }
8066
+ }
8146
8067
  if (false) {}
8147
8068
  if (false) {}
8148
8069
  let root;
@@ -8155,9 +8076,7 @@ ${customInstructions}` : customInstructions;
8155
8076
  if (process.env.USER_TYPE === "ant") {
8156
8077
  installAsciicastRecorder();
8157
8078
  }
8158
- const {
8159
- createRoot
8160
- } = await import("./chunk-h19p6s3b.js");
8079
+ const { createRoot } = await import("./chunk-cqjmxeqv.js");
8161
8080
  root = await createRoot(ctx.renderOptions);
8162
8081
  logEvent("tengu_timer", {
8163
8082
  event: "startup",
@@ -8167,7 +8086,16 @@ ${customInstructions}` : customInstructions;
8167
8086
  const setupScreensStart = Date.now();
8168
8087
  const onboardingShown = await showSetupScreens(root, permissionMode, allowDangerouslySkipPermissions, commands, enableClaudeInChrome, devChannels);
8169
8088
  logForDebugging(`[STARTUP] showSetupScreens() completed in ${Date.now() - setupScreensStart}ms`);
8170
- if (false) {}
8089
+ if (remoteControlOption !== undefined) {
8090
+ const { getBridgeDisabledReason } = await import("./chunk-73a5g713.js");
8091
+ const disabledReason = await getBridgeDisabledReason();
8092
+ remoteControl = disabledReason === null;
8093
+ if (disabledReason) {
8094
+ process.stderr.write(source_default.yellow(`${disabledReason}
8095
+ --rc flag ignored.
8096
+ `));
8097
+ }
8098
+ }
8171
8099
  if (false) {}
8172
8100
  if (onboardingShown && prompt?.trim().toLowerCase() === "/login") {
8173
8101
  prompt = "";
@@ -8177,7 +8105,7 @@ ${customInstructions}` : customInstructions;
8177
8105
  refreshPolicyLimits();
8178
8106
  resetUserCache();
8179
8107
  refreshGrowthBookAfterAuthChange();
8180
- import("./chunk-8yvfkzyh.js").then((m) => {
8108
+ import("./chunk-1tjnmcw7.js").then((m) => {
8181
8109
  m.clearTrustedDeviceToken();
8182
8110
  return m.enrollTrustedDevice();
8183
8111
  });
@@ -8193,9 +8121,7 @@ ${customInstructions}` : customInstructions;
8193
8121
  }
8194
8122
  initializeLspServerManager();
8195
8123
  if (!isNonInteractiveSession) {
8196
- const {
8197
- errors
8198
- } = getSettingsWithErrors();
8124
+ const { errors } = getSettingsWithErrors();
8199
8125
  const nonMcpErrors = errors.filter((e) => !e.mcpErrorMetadata);
8200
8126
  if (nonMcpErrors.length > 0) {
8201
8127
  await launchInvalidSettingsDialog(root, {
@@ -8231,9 +8157,7 @@ ${customInstructions}` : customInstructions;
8231
8157
  if (!isNonInteractiveSession) {
8232
8158
  refreshExampleCommands();
8233
8159
  }
8234
- const {
8235
- servers: existingMcpConfigs
8236
- } = await mcpConfigPromise;
8160
+ const { servers: existingMcpConfigs } = await mcpConfigPromise;
8237
8161
  logForDebugging(`[STARTUP] MCP configs resolved in ${mcpConfigResolvedMs}ms (awaited at +${Date.now() - mcpConfigStart}ms)`);
8238
8162
  const allMcpConfigs = {
8239
8163
  ...existingMcpConfigs,
@@ -8250,21 +8174,12 @@ ${customInstructions}` : customInstructions;
8250
8174
  }
8251
8175
  }
8252
8176
  profileCheckpoint("action_mcp_configs_loaded");
8253
- const localMcpPromise = isNonInteractiveSession ? Promise.resolve({
8254
- clients: [],
8255
- tools: [],
8256
- commands: []
8257
- }) : prefetchAllMcpResources(regularMcpConfigs);
8258
- const claudeaiMcpPromise = isNonInteractiveSession ? Promise.resolve({
8259
- clients: [],
8260
- tools: [],
8261
- commands: []
8262
- }) : claudeaiConfigPromise.then((configs) => Object.keys(configs).length > 0 ? prefetchAllMcpResources(configs) : {
8263
- clients: [],
8264
- tools: [],
8265
- commands: []
8266
- });
8267
- const mcpPromise = Promise.all([localMcpPromise, claudeaiMcpPromise]).then(([local, claudeai]) => ({
8177
+ const localMcpPromise = isNonInteractiveSession ? Promise.resolve({ clients: [], tools: [], commands: [] }) : prefetchAllMcpResources(regularMcpConfigs);
8178
+ const claudeaiMcpPromise = isNonInteractiveSession ? Promise.resolve({ clients: [], tools: [], commands: [] }) : claudeaiConfigPromise.then((configs) => Object.keys(configs).length > 0 ? prefetchAllMcpResources(configs) : { clients: [], tools: [], commands: [] });
8179
+ const mcpPromise = Promise.all([
8180
+ localMcpPromise,
8181
+ claudeaiMcpPromise
8182
+ ]).then(([local, claudeai]) => ({
8268
8183
  clients: [...local.clients, ...claudeai.clients],
8269
8184
  tools: uniqBy_default([...local.tools, ...claudeai.tools], "name"),
8270
8185
  commands: uniqBy_default([...local.commands, ...claudeai.commands], "name")
@@ -8279,21 +8194,13 @@ ${customInstructions}` : customInstructions;
8279
8194
  const mcpTools = [];
8280
8195
  const mcpCommands = [];
8281
8196
  let thinkingEnabled = shouldEnableThinkingByDefault();
8282
- let thinkingConfig = thinkingEnabled !== false ? {
8283
- type: "adaptive"
8284
- } : {
8285
- type: "disabled"
8286
- };
8197
+ let thinkingConfig = thinkingEnabled !== false ? { type: "adaptive" } : { type: "disabled" };
8287
8198
  if (options.thinking === "adaptive" || options.thinking === "enabled") {
8288
8199
  thinkingEnabled = true;
8289
- thinkingConfig = {
8290
- type: "adaptive"
8291
- };
8200
+ thinkingConfig = { type: "adaptive" };
8292
8201
  } else if (options.thinking === "disabled") {
8293
8202
  thinkingEnabled = false;
8294
- thinkingConfig = {
8295
- type: "disabled"
8296
- };
8203
+ thinkingConfig = { type: "disabled" };
8297
8204
  } else {
8298
8205
  const maxThinkingTokens = process.env.MAX_THINKING_TOKENS ? parseInt(process.env.MAX_THINKING_TOKENS, 10) : options.maxThinkingTokens;
8299
8206
  if (maxThinkingTokens !== undefined) {
@@ -8305,9 +8212,7 @@ ${customInstructions}` : customInstructions;
8305
8212
  };
8306
8213
  } else if (maxThinkingTokens === 0) {
8307
8214
  thinkingEnabled = false;
8308
- thinkingConfig = {
8309
- type: "disabled"
8310
- };
8215
+ thinkingConfig = { type: "disabled" };
8311
8216
  }
8312
8217
  }
8313
8218
  }
@@ -8373,9 +8278,7 @@ ${customInstructions}` : customInstructions;
8373
8278
  const setupTrigger = initOnly || init2 ? "init" : maintenance ? "maintenance" : null;
8374
8279
  if (initOnly) {
8375
8280
  applyConfigEnvironmentVariables();
8376
- await processSetupHooks("init", {
8377
- forceSyncExecution: true
8378
- });
8281
+ await processSetupHooks("init", { forceSyncExecution: true });
8379
8282
  await processSessionStartHooks("startup", {
8380
8283
  forceSyncExecution: true
8381
8284
  });
@@ -8412,16 +8315,23 @@ ${customInstructions}` : customInstructions;
8412
8315
  ...isFastModeEnabled() && {
8413
8316
  fastMode: getInitialFastModeSetting(effectiveModel ?? null)
8414
8317
  },
8415
- ...isAdvisorEnabled() && advisorModel && {
8416
- advisorModel
8417
- },
8318
+ ...isAdvisorEnabled() && advisorModel && { advisorModel },
8418
8319
  ...{}
8419
8320
  };
8420
8321
  const headlessStore = createStore(headlessInitialState, onChangeAppState);
8421
8322
  if (toolPermissionContext.mode === "bypassPermissions" || allowDangerouslySkipPermissions) {
8422
8323
  checkAndDisableBypassPermissions(toolPermissionContext);
8423
8324
  }
8424
- if (false) {}
8325
+ if (true) {
8326
+ verifyAutoModeGateAccess(toolPermissionContext, headlessStore.getState().fastMode).then(({ updateContext }) => {
8327
+ headlessStore.setState((prev) => {
8328
+ const nextCtx = updateContext(prev.toolPermissionContext);
8329
+ if (nextCtx === prev.toolPermissionContext)
8330
+ return prev;
8331
+ return { ...prev, toolPermissionContext: nextCtx };
8332
+ });
8333
+ });
8334
+ }
8425
8335
  if (options.sessionPersistence === false) {
8426
8336
  setSessionPersistenceDisabled(true);
8427
8337
  }
@@ -8433,18 +8343,17 @@ ${customInstructions}` : customInstructions;
8433
8343
  ...prev,
8434
8344
  mcp: {
8435
8345
  ...prev.mcp,
8436
- clients: [...prev.mcp.clients, ...Object.entries(configs).map(([name, config]) => ({
8437
- name,
8438
- type: "pending",
8439
- config
8440
- }))]
8346
+ clients: [
8347
+ ...prev.mcp.clients,
8348
+ ...Object.entries(configs).map(([name, config]) => ({
8349
+ name,
8350
+ type: "pending",
8351
+ config
8352
+ }))
8353
+ ]
8441
8354
  }
8442
8355
  }));
8443
- return getMcpToolsCommandsAndResources(({
8444
- client,
8445
- tools: tools2,
8446
- commands: commands2
8447
- }) => {
8356
+ return getMcpToolsCommandsAndResources(({ client, tools: tools2, commands: commands2 }) => {
8448
8357
  headlessStore.setState((prev) => ({
8449
8358
  ...prev,
8450
8359
  mcp: {
@@ -8511,15 +8420,16 @@ ${customInstructions}` : customInstructions;
8511
8420
  }
8512
8421
  }
8513
8422
  const nonPluginConfigs = pickBy_default(regularMcpConfigs, (_, n) => !n.startsWith("plugin:"));
8514
- const {
8515
- servers: dedupedClaudeAi
8516
- } = dedupClaudeAiMcpServers(claudeaiConfigs, nonPluginConfigs);
8423
+ const { servers: dedupedClaudeAi } = dedupClaudeAiMcpServers(claudeaiConfigs, nonPluginConfigs);
8517
8424
  return connectMcpBatch(dedupedClaudeAi, "claudeai");
8518
8425
  });
8519
8426
  let claudeaiTimer;
8520
- const claudeaiTimedOut = await Promise.race([claudeaiConnect.then(() => false), new Promise((resolve2) => {
8521
- claudeaiTimer = setTimeout((r) => r(true), CLAUDE_AI_MCP_TIMEOUT_MS, resolve2);
8522
- })]);
8427
+ const claudeaiTimedOut = await Promise.race([
8428
+ claudeaiConnect.then(() => false),
8429
+ new Promise((resolve2) => {
8430
+ claudeaiTimer = setTimeout((r) => r(true), CLAUDE_AI_MCP_TIMEOUT_MS, resolve2);
8431
+ })
8432
+ ]);
8523
8433
  if (claudeaiTimer)
8524
8434
  clearTimeout(claudeaiTimer);
8525
8435
  if (claudeaiTimedOut) {
@@ -8528,16 +8438,14 @@ ${customInstructions}` : customInstructions;
8528
8438
  profileCheckpoint("after_connectMcp_claudeai");
8529
8439
  if (!isBareMode()) {
8530
8440
  startDeferredPrefetches();
8531
- import("./chunk-krjsvmwp.js").then((m) => m.startBackgroundHousekeeping());
8441
+ import("./chunk-e396ak46.js").then((m) => m.startBackgroundHousekeeping());
8532
8442
  if (process.env.USER_TYPE === "ant") {
8533
8443
  import("./chunk-3nk79af8.js").then((m) => m.startSdkMemoryMonitor());
8534
8444
  }
8535
8445
  }
8536
8446
  logSessionTelemetry();
8537
8447
  profileCheckpoint("before_print_import");
8538
- const {
8539
- runHeadless
8540
- } = await import("./chunk-r55r29js.js");
8448
+ const { runHeadless } = await import("./chunk-e3c32vwa.js");
8541
8449
  profileCheckpoint("after_print_import");
8542
8450
  runHeadless(inputPrompt, () => headlessStore.getState(), headlessStore.setState, commandsHeadless, tools, sdkMcpConfigs, agentDefinitions.activeAgents, {
8543
8451
  continue: options.continue,
@@ -8550,9 +8458,7 @@ ${customInstructions}` : customInstructions;
8550
8458
  thinkingConfig,
8551
8459
  maxTurns: options.maxTurns,
8552
8460
  maxBudgetUsd: options.maxBudgetUsd,
8553
- taskBudget: options.taskBudget ? {
8554
- total: options.taskBudget
8555
- } : undefined,
8461
+ taskBudget: options.taskBudget ? { total: options.taskBudget } : undefined,
8556
8462
  systemPrompt,
8557
8463
  appendSystemPrompt,
8558
8464
  userSpecifiedModel: effectiveModel,
@@ -8612,7 +8518,7 @@ ${customInstructions}` : customInstructions;
8612
8518
  ...toolPermissionContext,
8613
8519
  mode: isAgentSwarmsEnabled() && getTeammateUtils().isPlanModeRequired() ? "plan" : toolPermissionContext.mode
8614
8520
  };
8615
- const initialIsBriefOnly = false;
8521
+ const initialIsBriefOnly = getUserMsgOptIn();
8616
8522
  const fullRemoteControl = remoteControl || getRemoteControlAtStartup() || kairosEnabled;
8617
8523
  let ccrMirrorEnabled = false;
8618
8524
  if (false) {}
@@ -8717,10 +8623,8 @@ ${customInstructions}` : customInstructions;
8717
8623
  effortValue: parseEffortValue(options.effort) ?? getInitialEffortSetting(),
8718
8624
  activeOverlays: new Set,
8719
8625
  fastMode: getInitialFastModeSetting(resolvedInitialModel),
8720
- ...isAdvisorEnabled() && advisorModel && {
8721
- advisorModel
8722
- },
8723
- teamContext: computeInitialTeamContext?.() || undefined
8626
+ ...isAdvisorEnabled() && advisorModel && { advisorModel },
8627
+ teamContext: computeInitialTeamContext?.()
8724
8628
  };
8725
8629
  if (inputPrompt) {
8726
8630
  addToHistory(String(inputPrompt));
@@ -8768,9 +8672,7 @@ ${customInstructions}` : customInstructions;
8768
8672
  let resumeSucceeded = false;
8769
8673
  try {
8770
8674
  const resumeStart = performance.now();
8771
- const {
8772
- clearSessionCaches
8773
- } = await import("./chunk-vp6nrhdq.js");
8675
+ const { clearSessionCaches } = await import("./chunk-9sr2etaw.js");
8774
8676
  clearSessionCaches();
8775
8677
  const result = await loadConversationForResume(undefined, undefined);
8776
8678
  if (!result) {
@@ -8817,16 +8719,14 @@ ${customInstructions}` : customInstructions;
8817
8719
  process.exit(1);
8818
8720
  }
8819
8721
  } else if (false) {} else if (false) {} else if (false) {} else if (options.resume || options.fromPr || teleport || remote !== null) {
8820
- const {
8821
- clearSessionCaches
8822
- } = await import("./chunk-vp6nrhdq.js");
8722
+ const { clearSessionCaches } = await import("./chunk-9sr2etaw.js");
8823
8723
  clearSessionCaches();
8824
8724
  let messages = null;
8825
- let processedResume = undefined;
8725
+ let processedResume;
8826
8726
  let maybeSessionId = validateUuid(options.resume);
8827
- let searchTerm = undefined;
8727
+ let searchTerm;
8828
8728
  let matchedLog = null;
8829
- let filterByPr = undefined;
8729
+ let filterByPr;
8830
8730
  if (options.fromPr) {
8831
8731
  if (options.fromPr === true) {
8832
8732
  filterByPr = true;
@@ -8894,16 +8794,12 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
8894
8794
  logError(toError(error));
8895
8795
  return await exitWithError(root, `Error: ${errorMessage(error) || "Failed to authenticate"}`, () => gracefulShutdown(1));
8896
8796
  }
8897
- const {
8898
- getClaudeAIOAuthTokens: getTokensForRemote
8899
- } = await import("./chunk-khdjg2v9.js");
8797
+ const { getClaudeAIOAuthTokens: getTokensForRemote } = await import("./chunk-37y42ayh.js");
8900
8798
  const getAccessTokenForRemote = () => getTokensForRemote()?.accessToken ?? apiCreds.accessToken;
8901
8799
  const remoteSessionConfig = createRemoteSessionConfig(createdSession.id, getAccessTokenForRemote, apiCreds.orgUUID, hasInitialPrompt);
8902
8800
  const remoteSessionUrl = `${getRemoteSessionUrl(createdSession.id)}?m=0`;
8903
8801
  const remoteInfoMessage = createSystemMessage(`/remote-control is active. Code in CLI or at ${remoteSessionUrl}`, "info");
8904
- const initialUserMessage = hasInitialPrompt ? createUserMessage({
8905
- content: remote
8906
- }) : null;
8802
+ const initialUserMessage = hasInitialPrompt ? createUserMessage({ content: remote }) : null;
8907
8803
  const remoteInitialState = {
8908
8804
  ...initialState,
8909
8805
  remoteSessionUrl
@@ -8935,9 +8831,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
8935
8831
  await gracefulShutdown(0);
8936
8832
  process.exit(0);
8937
8833
  }
8938
- const {
8939
- branchError
8940
- } = await checkOutTeleportedSessionBranch(teleportResult.branch);
8834
+ const { branchError } = await checkOutTeleportedSessionBranch(teleportResult.branch);
8941
8835
  messages = processMessagesForTeleportResume(teleportResult.log, branchError);
8942
8836
  } else if (typeof teleport === "string") {
8943
8837
  logEvent("tengu_teleport_resume_session", {
@@ -8973,13 +8867,9 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
8973
8867
  `));
8974
8868
  }
8975
8869
  await validateGitState();
8976
- const {
8977
- teleportWithProgress
8978
- } = await import("./chunk-fqtwqxxc.js");
8870
+ const { teleportWithProgress } = await import("./chunk-ycwdzwz5.js");
8979
8871
  const result = await teleportWithProgress(root, teleport);
8980
- setTeleportedSessionInfo({
8981
- sessionId: teleport
8982
- });
8872
+ setTeleportedSessionInfo({ sessionId: teleport });
8983
8873
  messages = result.messages;
8984
8874
  } catch (error) {
8985
8875
  if (error instanceof TeleportOperationError) {
@@ -8996,10 +8886,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
8996
8886
  }
8997
8887
  if (process.env.USER_TYPE === "ant") {
8998
8888
  if (options.resume && typeof options.resume === "string" && !maybeSessionId) {
8999
- const {
9000
- parseCcshareId,
9001
- loadCcshare
9002
- } = await import("./chunk-9x5zgy22.js");
8889
+ const { parseCcshareId, loadCcshare } = await import("./chunk-9x5zgy22.js");
9003
8890
  const ccshareId = parseCcshareId(options.resume);
9004
8891
  if (ccshareId) {
9005
8892
  try {
@@ -9150,11 +9037,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9150
9037
  initialAgentColor: resumeData.agentColor
9151
9038
  }, renderAndRun);
9152
9039
  } else {
9153
- await launchResumeChooser(root, {
9154
- getFpsMetrics,
9155
- stats,
9156
- initialState
9157
- }, getWorktreePaths(getOriginalCwd()), {
9040
+ await launchResumeChooser(root, { getFpsMetrics, stats, initialState }, getWorktreePaths(getOriginalCwd()), {
9158
9041
  ...sessionConfig,
9159
9042
  initialSearchQuery: searchTerm,
9160
9043
  forkSession: options.forkSession,
@@ -9168,13 +9051,24 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9168
9051
  maybeActivateBrief(options);
9169
9052
  if (false) {}
9170
9053
  let deepLinkBanner = null;
9171
- if (false) {}
9054
+ if (true) {
9055
+ if (options.deepLinkOrigin) {
9056
+ logEvent("tengu_deep_link_opened", {
9057
+ has_prefill: Boolean(options.prefill),
9058
+ has_repo: Boolean(options.deepLinkRepo)
9059
+ });
9060
+ deepLinkBanner = createSystemMessage(buildDeepLinkBanner({
9061
+ cwd: getCwd(),
9062
+ prefillLength: options.prefill?.length,
9063
+ repo: options.deepLinkRepo,
9064
+ lastFetch: options.deepLinkLastFetch !== undefined ? new Date(options.deepLinkLastFetch) : undefined
9065
+ }), "warning");
9066
+ } else if (options.prefill) {
9067
+ deepLinkBanner = createSystemMessage("Launched with a pre-filled prompt \u2014 review it before pressing Enter.", "warning");
9068
+ }
9069
+ }
9172
9070
  const initialMessages = deepLinkBanner ? [deepLinkBanner, ...hookMessages] : hookMessages.length > 0 ? hookMessages : undefined;
9173
- await launchRepl(root, {
9174
- getFpsMetrics,
9175
- stats,
9176
- initialState
9177
- }, {
9071
+ await launchRepl(root, { getFpsMetrics, stats, initialState }, {
9178
9072
  ...sessionConfig,
9179
9073
  initialMessages,
9180
9074
  pendingHookMessages
@@ -9190,19 +9084,19 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9190
9084
  program2.addOption(new Option("--delegate-permissions", "[ANT-ONLY] Alias for --permission-mode auto.").implies({
9191
9085
  permissionMode: "auto"
9192
9086
  }));
9193
- program2.addOption(new Option("--dangerously-skip-permissions-with-classifiers", "[ANT-ONLY] Deprecated alias for --permission-mode auto.").hideHelp().implies({
9194
- permissionMode: "auto"
9195
- }));
9196
- program2.addOption(new Option("--afk", "[ANT-ONLY] Deprecated alias for --permission-mode auto.").hideHelp().implies({
9197
- permissionMode: "auto"
9198
- }));
9087
+ program2.addOption(new Option("--dangerously-skip-permissions-with-classifiers", "[ANT-ONLY] Deprecated alias for --permission-mode auto.").hideHelp().implies({ permissionMode: "auto" }));
9088
+ program2.addOption(new Option("--afk", "[ANT-ONLY] Deprecated alias for --permission-mode auto.").hideHelp().implies({ permissionMode: "auto" }));
9199
9089
  program2.addOption(new Option("--tasks [id]", '[ANT-ONLY] Tasks mode: watch for tasks and auto-process them. Optional id is used as both the task list ID and agent ID (defaults to "tasklist").').argParser(String).hideHelp());
9200
9090
  program2.option("--agent-teams", "[ANT-ONLY] Force Claude to use multi-agent mode for solving problems", () => true);
9201
9091
  }
9092
+ if (true) {
9093
+ program2.addOption(new Option("--enable-auto-mode", "Opt in to auto mode").hideHelp());
9094
+ }
9202
9095
  if (false) {}
9203
9096
  if (false) {}
9204
- if (false) {}
9205
- if (false) {}
9097
+ if (true) {
9098
+ program2.addOption(new Option("--brief", "Enable SendUserMessage tool for agent-to-user communication"));
9099
+ }
9206
9100
  if (false) {}
9207
9101
  if (false) {}
9208
9102
  program2.addOption(new Option("--agent-id <id>", "Teammate agent ID").hideHelp());
@@ -9216,7 +9110,10 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9216
9110
  program2.addOption(new Option("--sdk-url <url>", "Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)").hideHelp());
9217
9111
  program2.addOption(new Option("--teleport [session]", "Resume a teleport session, optionally specify session ID").hideHelp());
9218
9112
  program2.addOption(new Option("--remote [description]", "Create a remote session with the given description").hideHelp());
9219
- if (false) {}
9113
+ if (true) {
9114
+ program2.addOption(new Option("--remote-control [name]", "Start an interactive session with Remote Control enabled (optionally named)").argParser((value) => value || true).hideHelp());
9115
+ program2.addOption(new Option("--rc [name]", "Alias for --remote-control").argParser((value) => value || true).hideHelp());
9116
+ }
9220
9117
  if (false) {}
9221
9118
  profileCheckpoint("run_main_options_built");
9222
9119
  const isPrintMode = process.argv.includes("-p") || process.argv.includes("--print");
@@ -9232,52 +9129,35 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9232
9129
  debug,
9233
9130
  verbose
9234
9131
  }) => {
9235
- const {
9236
- mcpServeHandler
9237
- } = await import("./chunk-qvd0k5dn.js");
9238
- await mcpServeHandler({
9239
- debug,
9240
- verbose
9241
- });
9132
+ const { mcpServeHandler } = await import("./chunk-3avfhw6x.js");
9133
+ await mcpServeHandler({ debug, verbose });
9242
9134
  });
9243
9135
  registerMcpAddCommand(mcp);
9244
9136
  if (isXaaEnabled()) {
9245
9137
  registerMcpXaaIdpCommand(mcp);
9246
9138
  }
9247
9139
  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) => {
9248
- const {
9249
- mcpRemoveHandler
9250
- } = await import("./chunk-qvd0k5dn.js");
9140
+ const { mcpRemoveHandler } = await import("./chunk-3avfhw6x.js");
9251
9141
  await mcpRemoveHandler(name, options);
9252
9142
  });
9253
9143
  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 () => {
9254
- const {
9255
- mcpListHandler
9256
- } = await import("./chunk-qvd0k5dn.js");
9144
+ const { mcpListHandler } = await import("./chunk-3avfhw6x.js");
9257
9145
  await mcpListHandler();
9258
9146
  });
9259
9147
  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) => {
9260
- const {
9261
- mcpGetHandler
9262
- } = await import("./chunk-qvd0k5dn.js");
9148
+ const { mcpGetHandler } = await import("./chunk-3avfhw6x.js");
9263
9149
  await mcpGetHandler(name);
9264
9150
  });
9265
9151
  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) => {
9266
- const {
9267
- mcpAddJsonHandler
9268
- } = await import("./chunk-qvd0k5dn.js");
9152
+ const { mcpAddJsonHandler } = await import("./chunk-3avfhw6x.js");
9269
9153
  await mcpAddJsonHandler(name, json, options);
9270
9154
  });
9271
9155
  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) => {
9272
- const {
9273
- mcpAddFromDesktopHandler
9274
- } = await import("./chunk-qvd0k5dn.js");
9156
+ const { mcpAddFromDesktopHandler } = await import("./chunk-3avfhw6x.js");
9275
9157
  await mcpAddFromDesktopHandler(options);
9276
9158
  });
9277
9159
  mcp.command("reset-project-choices").description("Reset all approved and rejected project-scoped (.mcp.json) servers within this project").action(async () => {
9278
- const {
9279
- mcpResetChoicesHandler
9280
- } = await import("./chunk-qvd0k5dn.js");
9160
+ const { mcpResetChoicesHandler } = await import("./chunk-3avfhw6x.js");
9281
9161
  await mcpResetChoicesHandler();
9282
9162
  });
9283
9163
  if (false) {}
@@ -9290,136 +9170,115 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
9290
9170
  console: useConsole,
9291
9171
  claudeai
9292
9172
  }) => {
9293
- const {
9294
- authLogin
9295
- } = await import("./chunk-x45xx6sc.js");
9296
- await authLogin({
9297
- email,
9298
- sso,
9299
- console: useConsole,
9300
- claudeai
9301
- });
9173
+ const { authLogin } = await import("./chunk-z735r3p2.js");
9174
+ await authLogin({ email, sso, console: useConsole, claudeai });
9302
9175
  });
9303
9176
  auth.command("status").description("Show authentication status").option("--json", "Output as JSON (default)").option("--text", "Output as human-readable text").action(async (opts) => {
9304
- const {
9305
- authStatus
9306
- } = await import("./chunk-x45xx6sc.js");
9177
+ const { authStatus } = await import("./chunk-z735r3p2.js");
9307
9178
  await authStatus(opts);
9308
9179
  });
9309
9180
  auth.command("logout").description("Log out from your Anthropic account").action(async () => {
9310
- const {
9311
- authLogout
9312
- } = await import("./chunk-x45xx6sc.js");
9181
+ const { authLogout } = await import("./chunk-z735r3p2.js");
9313
9182
  await authLogout();
9314
9183
  });
9315
9184
  const coworkOption = () => new Option("--cowork", "Use cowork_plugins directory").hideHelp();
9316
9185
  const pluginCmd = program2.command("plugin").alias("plugins").description("Manage Claude Code plugins").configureHelp(createSortedHelpConfig());
9317
9186
  pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").addOption(coworkOption()).action(async (manifestPath, options) => {
9318
- const {
9319
- pluginValidateHandler
9320
- } = await import("./chunk-vjc1svpc.js");
9187
+ const { pluginValidateHandler } = await import("./chunk-dqgzpb0q.js");
9321
9188
  await pluginValidateHandler(manifestPath, options);
9322
9189
  });
9323
9190
  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) => {
9324
- const {
9325
- pluginListHandler
9326
- } = await import("./chunk-vjc1svpc.js");
9191
+ const { pluginListHandler } = await import("./chunk-dqgzpb0q.js");
9327
9192
  await pluginListHandler(options);
9328
9193
  });
9329
9194
  const marketplaceCmd = pluginCmd.command("marketplace").description("Manage Claude Code marketplaces").configureHelp(createSortedHelpConfig());
9330
9195
  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) => {
9331
- const {
9332
- marketplaceAddHandler
9333
- } = await import("./chunk-vjc1svpc.js");
9196
+ const { marketplaceAddHandler } = await import("./chunk-dqgzpb0q.js");
9334
9197
  await marketplaceAddHandler(source, options);
9335
9198
  });
9336
9199
  marketplaceCmd.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").addOption(coworkOption()).action(async (options) => {
9337
- const {
9338
- marketplaceListHandler
9339
- } = await import("./chunk-vjc1svpc.js");
9200
+ const { marketplaceListHandler } = await import("./chunk-dqgzpb0q.js");
9340
9201
  await marketplaceListHandler(options);
9341
9202
  });
9342
9203
  marketplaceCmd.command("remove <name>").alias("rm").description("Remove a configured marketplace").addOption(coworkOption()).action(async (name, options) => {
9343
- const {
9344
- marketplaceRemoveHandler
9345
- } = await import("./chunk-vjc1svpc.js");
9204
+ const { marketplaceRemoveHandler } = await import("./chunk-dqgzpb0q.js");
9346
9205
  await marketplaceRemoveHandler(name, options);
9347
9206
  });
9348
9207
  marketplaceCmd.command("update [name]").description("Update marketplace(s) from their source - updates all if no name specified").addOption(coworkOption()).action(async (name, options) => {
9349
- const {
9350
- marketplaceUpdateHandler
9351
- } = await import("./chunk-vjc1svpc.js");
9208
+ const { marketplaceUpdateHandler } = await import("./chunk-dqgzpb0q.js");
9352
9209
  await marketplaceUpdateHandler(name, options);
9353
9210
  });
9354
9211
  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) => {
9355
- const {
9356
- pluginInstallHandler
9357
- } = await import("./chunk-vjc1svpc.js");
9212
+ const { pluginInstallHandler } = await import("./chunk-dqgzpb0q.js");
9358
9213
  await pluginInstallHandler(plugin, options);
9359
9214
  });
9360
9215
  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) => {
9361
- const {
9362
- pluginUninstallHandler
9363
- } = await import("./chunk-vjc1svpc.js");
9216
+ const { pluginUninstallHandler } = await import("./chunk-dqgzpb0q.js");
9364
9217
  await pluginUninstallHandler(plugin, options);
9365
9218
  });
9366
9219
  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) => {
9367
- const {
9368
- pluginEnableHandler
9369
- } = await import("./chunk-vjc1svpc.js");
9220
+ const { pluginEnableHandler } = await import("./chunk-dqgzpb0q.js");
9370
9221
  await pluginEnableHandler(plugin, options);
9371
9222
  });
9372
9223
  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) => {
9373
- const {
9374
- pluginDisableHandler
9375
- } = await import("./chunk-vjc1svpc.js");
9224
+ const { pluginDisableHandler } = await import("./chunk-dqgzpb0q.js");
9376
9225
  await pluginDisableHandler(plugin, options);
9377
9226
  });
9378
9227
  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) => {
9379
- const {
9380
- pluginUpdateHandler
9381
- } = await import("./chunk-vjc1svpc.js");
9228
+ const { pluginUpdateHandler } = await import("./chunk-dqgzpb0q.js");
9382
9229
  await pluginUpdateHandler(plugin, options);
9383
9230
  });
9384
9231
  program2.command("setup-token").description("Set up a long-lived authentication token (requires Claude subscription)").action(async () => {
9385
- const [{
9386
- setupTokenHandler
9387
- }, {
9388
- createRoot
9389
- }] = await Promise.all([import("./chunk-t7cbhqd2.js"), import("./chunk-h19p6s3b.js")]);
9232
+ const [{ setupTokenHandler }, { createRoot }] = await Promise.all([
9233
+ import("./chunk-z6zt2ns7.js"),
9234
+ import("./chunk-cqjmxeqv.js")
9235
+ ]);
9390
9236
  const root = await createRoot(getBaseRenderOptions(false));
9391
9237
  await setupTokenHandler(root);
9392
9238
  });
9393
9239
  program2.command("agents").description("List configured agents").option("--setting-sources <sources>", "Comma-separated list of setting sources to load (user, project, local).").action(async () => {
9394
- const {
9395
- agentsHandler
9396
- } = await import("./chunk-n7158r58.js");
9240
+ const { agentsHandler } = await import("./chunk-q78bgdtk.js");
9397
9241
  await agentsHandler();
9398
9242
  process.exit(0);
9399
9243
  });
9400
- if (false) {}
9401
- if (false) {}
9244
+ if (true) {
9245
+ if (getAutoModeEnabledStateIfCached() !== "disabled") {
9246
+ const autoModeCmd = program2.command("auto-mode").description("Inspect auto mode classifier configuration");
9247
+ autoModeCmd.command("defaults").description("Print the default auto mode environment, allow, and deny rules as JSON").action(async () => {
9248
+ const { autoModeDefaultsHandler } = await import("./chunk-wa1dpga1.js");
9249
+ autoModeDefaultsHandler();
9250
+ process.exit(0);
9251
+ });
9252
+ autoModeCmd.command("config").description("Print the effective auto mode config as JSON: your settings where set, defaults otherwise").action(async () => {
9253
+ const { autoModeConfigHandler } = await import("./chunk-wa1dpga1.js");
9254
+ autoModeConfigHandler();
9255
+ process.exit(0);
9256
+ });
9257
+ autoModeCmd.command("critique").description("Get AI feedback on your custom auto mode rules").option("--model <model>", "Override which model is used").action(async (options) => {
9258
+ const { autoModeCritiqueHandler } = await import("./chunk-wa1dpga1.js");
9259
+ await autoModeCritiqueHandler(options);
9260
+ process.exit();
9261
+ });
9262
+ }
9263
+ }
9264
+ if (true) {
9265
+ program2.command("remote-control", { hidden: true }).alias("rc").description("Connect your local environment for remote-control sessions via claude.ai/code").action(async () => {
9266
+ const { bridgeMain } = await import("./chunk-31q6p2ke.js");
9267
+ await bridgeMain(process.argv.slice(3));
9268
+ });
9269
+ }
9402
9270
  if (false) {}
9403
9271
  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 () => {
9404
- const [{
9405
- doctorHandler
9406
- }, {
9407
- createRoot
9408
- }] = await Promise.all([import("./chunk-t7cbhqd2.js"), import("./chunk-h19p6s3b.js")]);
9272
+ const [{ doctorHandler }, { createRoot }] = await Promise.all([
9273
+ import("./chunk-z6zt2ns7.js"),
9274
+ import("./chunk-cqjmxeqv.js")
9275
+ ]);
9409
9276
  const root = await createRoot(getBaseRenderOptions(false));
9410
9277
  await doctorHandler(root);
9411
9278
  });
9412
- program2.command("update").alias("upgrade").description("Check for updates and install if available").action(async () => {
9413
- const {
9414
- update
9415
- } = await import("./chunk-ddz8xbpd.js");
9416
- await update();
9417
- });
9418
9279
  if (process.env.USER_TYPE === "ant") {
9419
9280
  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 () => {
9420
- const {
9421
- up
9422
- } = await import("./chunk-ppwjyveh.js");
9281
+ const { up } = await import("./chunk-ppwjyveh.js");
9423
9282
  await up();
9424
9283
  });
9425
9284
  }
@@ -9430,16 +9289,12 @@ Examples:
9430
9289
  claude rollback Go 1 version back from current
9431
9290
  claude rollback 3 Go 3 versions back from current
9432
9291
  claude rollback 2.0.73-dev.20251217.t190658 Roll back to a specific version`).option("-l, --list", "List recent published versions with ages").option("--dry-run", "Show what would be installed without installing").option("--safe", "Roll back to the server-pinned safe version (set by oncall during incidents)").action(async (target, options) => {
9433
- const {
9434
- rollback
9435
- } = await import("./chunk-x6r4v44b.js");
9292
+ const { rollback } = await import("./chunk-x6r4v44b.js");
9436
9293
  await rollback(target, options);
9437
9294
  });
9438
9295
  }
9439
9296
  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) => {
9440
- const {
9441
- installHandler
9442
- } = await import("./chunk-t7cbhqd2.js");
9297
+ const { installHandler } = await import("./chunk-z6zt2ns7.js");
9443
9298
  await installHandler(target, options);
9444
9299
  });
9445
9300
  if (process.env.USER_TYPE === "ant") {
@@ -9450,15 +9305,11 @@ Examples:
9450
9305
  return Number(value);
9451
9306
  };
9452
9307
  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) => {
9453
- const {
9454
- logHandler
9455
- } = await import("./chunk-2fwze72g.js");
9308
+ const { logHandler } = await import("./chunk-2fwze72g.js");
9456
9309
  await logHandler(logId);
9457
9310
  });
9458
9311
  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) => {
9459
- const {
9460
- errorHandler
9461
- } = await import("./chunk-2fwze72g.js");
9312
+ const { errorHandler } = await import("./chunk-2fwze72g.js");
9462
9313
  await errorHandler(number);
9463
9314
  });
9464
9315
  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", `
@@ -9467,50 +9318,34 @@ Examples:
9467
9318
  $ claude export <uuid> conversation.txt Export conversation by session ID
9468
9319
  $ claude export input.json output.txt Render JSON log file to text
9469
9320
  $ claude export <uuid>.jsonl output.txt Render JSONL session file to text`).action(async (source, outputFile) => {
9470
- const {
9471
- exportHandler
9472
- } = await import("./chunk-2fwze72g.js");
9321
+ const { exportHandler } = await import("./chunk-2fwze72g.js");
9473
9322
  await exportHandler(source, outputFile);
9474
9323
  });
9475
9324
  if (process.env.USER_TYPE === "ant") {
9476
9325
  const taskCmd = program2.command("task").description("[ANT-ONLY] Manage task list tasks");
9477
9326
  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) => {
9478
- const {
9479
- taskCreateHandler
9480
- } = await import("./chunk-2fwze72g.js");
9327
+ const { taskCreateHandler } = await import("./chunk-2fwze72g.js");
9481
9328
  await taskCreateHandler(subject, opts);
9482
9329
  });
9483
9330
  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) => {
9484
- const {
9485
- taskListHandler
9486
- } = await import("./chunk-2fwze72g.js");
9331
+ const { taskListHandler } = await import("./chunk-2fwze72g.js");
9487
9332
  await taskListHandler(opts);
9488
9333
  });
9489
9334
  taskCmd.command("get <id>").description("Get details of a task").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').action(async (id, opts) => {
9490
- const {
9491
- taskGetHandler
9492
- } = await import("./chunk-2fwze72g.js");
9335
+ const { taskGetHandler } = await import("./chunk-2fwze72g.js");
9493
9336
  await taskGetHandler(id, opts);
9494
9337
  });
9495
9338
  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) => {
9496
- const {
9497
- taskUpdateHandler
9498
- } = await import("./chunk-2fwze72g.js");
9339
+ const { taskUpdateHandler } = await import("./chunk-2fwze72g.js");
9499
9340
  await taskUpdateHandler(id, opts);
9500
9341
  });
9501
9342
  taskCmd.command("dir").description("Show the tasks directory path").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').action(async (opts) => {
9502
- const {
9503
- taskDirHandler
9504
- } = await import("./chunk-2fwze72g.js");
9343
+ const { taskDirHandler } = await import("./chunk-2fwze72g.js");
9505
9344
  await taskDirHandler(opts);
9506
9345
  });
9507
9346
  }
9508
- program2.command("completion <shell>", {
9509
- hidden: true
9510
- }).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) => {
9511
- const {
9512
- completionHandler
9513
- } = await import("./chunk-2fwze72g.js");
9347
+ 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) => {
9348
+ const { completionHandler } = await import("./chunk-2fwze72g.js");
9514
9349
  await completionHandler(shell, opts, program2);
9515
9350
  });
9516
9351
  }
@@ -9599,15 +9434,13 @@ function maybeActivateProactive(options) {
9599
9434
  if (false) {}
9600
9435
  }
9601
9436
  function maybeActivateBrief(options) {
9602
- if (true)
9603
- return;
9437
+ if (false)
9438
+ ;
9604
9439
  const briefFlag = options.brief;
9605
9440
  const briefEnv = isEnvTruthy(process.env.CLAUDE_CODE_BRIEF);
9606
9441
  if (!briefFlag && !briefEnv)
9607
9442
  return;
9608
- const {
9609
- isBriefEntitled
9610
- } = (init_BriefTool(), __toCommonJS(exports_BriefTool));
9443
+ const { isBriefEntitled } = (init_BriefTool(), __toCommonJS(exports_BriefTool));
9611
9444
  const entitled = isBriefEntitled();
9612
9445
  if (entitled) {
9613
9446
  setUserMsgOptIn(true);