claude-code-best 1.4.0 → 1.4.2

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 (369) hide show
  1. package/README.md +8 -11
  2. package/dist/{chunk-x4t0n8t3.js → chunk-0051wr8d.js} +3 -4
  3. package/dist/chunk-03spjt6z.js +119 -0
  4. package/dist/{chunk-vvsc8651.js → chunk-057p2c7q.js} +63 -61
  5. package/dist/{chunk-fjh0vhqw.js → chunk-05p2rq7p.js} +10 -8
  6. package/dist/{chunk-8favkbxx.js → chunk-0bged80h.js} +5 -5
  7. package/dist/{chunk-rywnz223.js → chunk-0ks6dz1s.js} +12 -16
  8. package/dist/{chunk-5xjn56aq.js → chunk-0m3cqq85.js} +5 -5
  9. package/dist/{chunk-4nf1ec4f.js → chunk-0nae74g7.js} +6 -8
  10. package/dist/chunk-0spb0sqd.js +104 -0
  11. package/dist/{chunk-5wzcv9gh.js → chunk-0w7nszy9.js} +9 -11
  12. package/dist/{chunk-q7e35wkk.js → chunk-0x2wtgpc.js} +4 -6
  13. package/dist/{chunk-2apay7a3.js → chunk-0x6bwqtj.js} +59 -56
  14. package/dist/{chunk-etg0he8j.js → chunk-12yafvjz.js} +54 -51
  15. package/dist/chunk-136cpn7r.js +119 -0
  16. package/dist/{chunk-xayw54gs.js → chunk-140880hg.js} +23 -22
  17. package/dist/{chunk-ew9re4pd.js → chunk-18dacfjw.js} +6 -6
  18. package/dist/{chunk-z9f8mvd1.js → chunk-1avwhb0y.js} +61 -58
  19. package/dist/{chunk-mfmqxvy3.js → chunk-1byxenrx.js} +60 -58
  20. package/dist/{chunk-3c0rxf7q.js → chunk-1cvzdf3f.js} +62 -60
  21. package/dist/chunk-1d39h7zf.js +57 -0
  22. package/dist/{chunk-vdv5g7q5.js → chunk-1nxqqjjt.js} +57 -55
  23. package/dist/{chunk-ne7y2xb5.js → chunk-1q3ht06y.js} +11 -13
  24. package/dist/{chunk-w74twxev.js → chunk-1re18c21.js} +22 -21
  25. package/dist/{chunk-1j332jvg.js → chunk-1t58cm9p.js} +26 -30
  26. package/dist/{chunk-qbmbmhef.js → chunk-20k0vm6d.js} +54 -51
  27. package/dist/{chunk-25yy8wx5.js → chunk-25c7xvcj.js} +23 -23
  28. package/dist/{chunk-ptxwtjpj.js → chunk-2aqy976t.js} +19 -17
  29. package/dist/{chunk-c4y7537k.js → chunk-2c5g8fre.js} +3 -3
  30. package/dist/chunk-2f1f034j.js +101 -0
  31. package/dist/{chunk-v1chtgnf.js → chunk-2m6jk78c.js} +1 -1
  32. package/dist/{chunk-mh9bbz4s.js → chunk-2nwebta4.js} +3 -3
  33. package/dist/{chunk-n5pe3jtt.js → chunk-2pjptqfa.js} +2 -2
  34. package/dist/chunk-2pnjckz1.js +367 -0
  35. package/dist/{chunk-m08081ys.js → chunk-2q5mzsfz.js} +55 -52
  36. package/dist/{chunk-x3p67k4j.js → chunk-2tahgz0j.js} +2 -2
  37. package/dist/{chunk-90vttb3v.js → chunk-30qe8vg5.js} +65 -62
  38. package/dist/{chunk-fsrg55vw.js → chunk-36p752m8.js} +21 -20
  39. package/dist/{chunk-21pvq2fw.js → chunk-37gp1zzs.js} +58 -56
  40. package/dist/{chunk-qxy16bqn.js → chunk-385yn056.js} +322 -197
  41. package/dist/{chunk-nzrgdzqp.js → chunk-3ayj5sjm.js} +3 -3
  42. package/dist/{chunk-mcwdvkc5.js → chunk-3dnzff6j.js} +22 -21
  43. package/dist/{chunk-vmb323h1.js → chunk-3gx9gg4n.js} +200 -200
  44. package/dist/{chunk-djp9rrcq.js → chunk-3j2q2rdk.js} +24 -26
  45. package/dist/{chunk-tw4tjc73.js → chunk-3rk983b5.js} +1 -1
  46. package/dist/{chunk-jhbtp60e.js → chunk-3t37as7j.js} +21 -20
  47. package/dist/{chunk-vpp13z80.js → chunk-3twcp74a.js} +2 -2
  48. package/dist/{chunk-2dsqf7sp.js → chunk-3xzcr9ha.js} +1 -1
  49. package/dist/{chunk-w64rnehj.js → chunk-3zzgpj8d.js} +22 -21
  50. package/dist/{chunk-3fjgkntc.js → chunk-41qawevz.js} +1 -1
  51. package/dist/{chunk-2wvxqpfc.js → chunk-469hyn07.js} +8 -9
  52. package/dist/{chunk-ysdxmhpv.js → chunk-4d6ryx98.js} +59 -56
  53. package/dist/{chunk-4gpt5ay1.js → chunk-4e1mxma5.js} +57 -55
  54. package/dist/{chunk-w8hh0w92.js → chunk-4g82v54s.js} +54 -51
  55. package/dist/{chunk-6ye6d9gw.js → chunk-4j0dtzpj.js} +1 -1
  56. package/dist/{chunk-8cn35yvf.js → chunk-4n8p6kj0.js} +22 -21
  57. package/dist/{chunk-zhq7vk2g.js → chunk-4qenyk9g.js} +24 -24
  58. package/dist/{chunk-b2vzxkee.js → chunk-4t38jjwb.js} +22 -21
  59. package/dist/{chunk-v88g6btg.js → chunk-51a8mdyr.js} +4 -4
  60. package/dist/{chunk-cr6s4vp6.js → chunk-57zs28dc.js} +17 -18
  61. package/dist/{chunk-cj8m3h8r.js → chunk-5aw4k8fc.js} +2 -2
  62. package/dist/{chunk-fbs21kq9.js → chunk-5c6rsxsf.js} +72 -10
  63. package/dist/{chunk-kmgp6prw.js → chunk-5khwvj1z.js} +112 -5
  64. package/dist/{chunk-yatby2yh.js → chunk-5smyhzmn.js} +2 -2
  65. package/dist/{chunk-v3kfrhgg.js → chunk-5t6qedbx.js} +7 -9
  66. package/dist/{chunk-vjbm6e89.js → chunk-5tf3y2x4.js} +25 -24
  67. package/dist/chunk-5xbvemsj.js +32 -0
  68. package/dist/{chunk-nnbp6hww.js → chunk-5y175yzc.js} +7 -9
  69. package/dist/{chunk-r4hf85nn.js → chunk-61nfv7fe.js} +6 -6
  70. package/dist/{chunk-p88crc0s.js → chunk-68d95r50.js} +21 -20
  71. package/dist/{chunk-zh7z8zmq.js → chunk-69rtrkmf.js} +8 -8
  72. package/dist/{chunk-pzxksam8.js → chunk-6er7h0ce.js} +54 -51
  73. package/dist/{chunk-fsqp1hdd.js → chunk-6j28h9yw.js} +2 -2
  74. package/dist/{chunk-ytwnb2km.js → chunk-6mr0jg0z.js} +57 -56
  75. package/dist/{chunk-k8vb990d.js → chunk-6p49gxps.js} +55 -53
  76. package/dist/{chunk-pp11ggs7.js → chunk-6pn8yw8f.js} +5 -7
  77. package/dist/{chunk-s9nr589x.js → chunk-6qj1adtm.js} +6 -8
  78. package/dist/chunk-6xbff4vx.js +32 -0
  79. package/dist/{chunk-79wycw4g.js → chunk-6y2fbkkx.js} +462 -292
  80. package/dist/{chunk-ardzdtan.js → chunk-6y2wszkc.js} +1 -1
  81. package/dist/{chunk-6ad36q0w.js → chunk-70r0vj1c.js} +6 -8
  82. package/dist/{chunk-v7vav1dg.js → chunk-7290d32y.js} +55 -52
  83. package/dist/{chunk-pedmqmrf.js → chunk-73pxnrgv.js} +6 -6
  84. package/dist/{chunk-r8cbwyz2.js → chunk-76vhxz6d.js} +65 -62
  85. package/dist/{chunk-bx6g17ek.js → chunk-796j6qp5.js} +21 -20
  86. package/dist/{chunk-vchfbqh0.js → chunk-7aa7tk3e.js} +8 -9
  87. package/dist/{chunk-fjne3x6c.js → chunk-7r1n0c67.js} +8 -8
  88. package/dist/chunk-7sn5nw7n.js +187 -0
  89. package/dist/chunk-7zj334zr.js +104 -0
  90. package/dist/{chunk-ajs8dza3.js → chunk-81amwnap.js} +54 -51
  91. package/dist/{chunk-erxndz83.js → chunk-8cb8dhn1.js} +7 -9
  92. package/dist/{chunk-2x5az5dc.js → chunk-8dmvv3vh.js} +55 -52
  93. package/dist/{chunk-5840qkdv.js → chunk-8h43r0g4.js} +3 -3
  94. package/dist/{chunk-zddcrj90.js → chunk-8k3skcxp.js} +54 -51
  95. package/dist/{chunk-vqrph16d.js → chunk-8mt5w0hv.js} +2 -2
  96. package/dist/{chunk-sfs23jb0.js → chunk-8nq3rcrh.js} +54 -51
  97. package/dist/{chunk-53sfy7n4.js → chunk-8wegtg2m.js} +59 -58
  98. package/dist/{chunk-5526qw2k.js → chunk-8zdrx5jf.js} +49 -160
  99. package/dist/{chunk-n4by7yk8.js → chunk-8zy4rsnp.js} +55 -52
  100. package/dist/{chunk-53vj9v9s.js → chunk-90d9rpg3.js} +23 -22
  101. package/dist/{chunk-swjmy1ec.js → chunk-90vj8x7v.js} +21 -20
  102. package/dist/{chunk-p2pgnk1y.js → chunk-91e25as4.js} +56 -54
  103. package/dist/{chunk-edz2xqmx.js → chunk-927q4w00.js} +65 -62
  104. package/dist/{chunk-jver0cay.js → chunk-94jwe227.js} +2 -3
  105. package/dist/{chunk-34vnwd0v.js → chunk-957q89kn.js} +16 -18
  106. package/dist/{chunk-bv1k9d6v.js → chunk-95qc0qm2.js} +54 -51
  107. package/dist/{chunk-386z9vh4.js → chunk-95t31nbm.js} +56 -53
  108. package/dist/{chunk-x0qzkte0.js → chunk-98z3psrf.js} +5 -7
  109. package/dist/{chunk-81dq52pk.js → chunk-99zt59gg.js} +2 -2
  110. package/dist/{chunk-smskbnfh.js → chunk-9ceyr5ed.js} +10 -14
  111. package/dist/{chunk-n1pa72ns.js → chunk-9qh5f9r3.js} +7 -12
  112. package/dist/{chunk-y0fvv8rp.js → chunk-9t3jghwt.js} +26 -6
  113. package/dist/{chunk-txz05nf1.js → chunk-a53nf3qs.js} +3 -3
  114. package/dist/{chunk-zrrd9egx.js → chunk-ab2ksmbe.js} +55 -52
  115. package/dist/{chunk-2katyzq9.js → chunk-ab6gc90x.js} +3 -5
  116. package/dist/{chunk-j50zvssc.js → chunk-ad6rg8vz.js} +5 -5
  117. package/dist/{chunk-d6ecf8f1.js → chunk-aew7yrsf.js} +83 -78
  118. package/dist/{chunk-agabmbjf.js → chunk-af58qhb4.js} +57 -54
  119. package/dist/{chunk-mdk5vcer.js → chunk-anw7kmsz.js} +29 -28
  120. package/dist/{chunk-s7gt9pbp.js → chunk-aq013trm.js} +55 -52
  121. package/dist/{chunk-hhx05ny2.js → chunk-axc8en7y.js} +69 -67
  122. package/dist/{chunk-prgsmrmy.js → chunk-axenqvc8.js} +2 -2
  123. package/dist/{chunk-8j0cag62.js → chunk-b4byq7f8.js} +1 -1
  124. package/dist/{chunk-ns3babbs.js → chunk-b5wxetbv.js} +224 -1
  125. package/dist/chunk-b7kfr260.js +168 -0
  126. package/dist/{chunk-wh42d494.js → chunk-bcqk9yw1.js} +55 -52
  127. package/dist/{chunk-cyjjqcs3.js → chunk-bdy2epzn.js} +62 -53
  128. package/dist/{chunk-vcv8kqah.js → chunk-behtrnvw.js} +59 -57
  129. package/dist/{chunk-ts2892h4.js → chunk-bf9fz19d.js} +23 -22
  130. package/dist/chunk-bgbyse6n.js +116 -0
  131. package/dist/chunk-bgt8qg6a.js +33 -0
  132. package/dist/{chunk-1zjrec16.js → chunk-bhp62x16.js} +23 -22
  133. package/dist/{chunk-cdqf4qst.js → chunk-bnnfby0p.js} +55 -53
  134. package/dist/{chunk-tr91zear.js → chunk-bnsgd143.js} +15 -15
  135. package/dist/{chunk-mg88phh5.js → chunk-bp52cyyh.js} +54 -51
  136. package/dist/{chunk-2smwf3e9.js → chunk-bvvnv69h.js} +6 -8
  137. package/dist/chunk-bx1aj5va.js +117 -0
  138. package/dist/{chunk-cd6mvmte.js → chunk-bxecxvr6.js} +55 -52
  139. package/dist/{chunk-wmbpegg3.js → chunk-c7t69jmn.js} +1 -1
  140. package/dist/{chunk-jjcks6sw.js → chunk-c7vjkt02.js} +1 -1
  141. package/dist/{chunk-0kp39at8.js → chunk-c965t34b.js} +69 -67
  142. package/dist/{chunk-rfnh6gdw.js → chunk-c9f9bxyz.js} +22 -21
  143. package/dist/{chunk-rejx7z4t.js → chunk-cbew0pjr.js} +3 -4
  144. package/dist/{chunk-m8v1x99r.js → chunk-chzfw06n.js} +3 -5
  145. package/dist/{chunk-pc4szfak.js → chunk-ckan2z85.js} +22 -21
  146. package/dist/{chunk-4m47hfh0.js → chunk-cqqbkkf0.js} +57 -55
  147. package/dist/{chunk-cyxsqapw.js → chunk-cwbdfjp9.js} +7 -9
  148. package/dist/{chunk-5wb5ym2h.js → chunk-cy1z66c2.js} +3 -5
  149. package/dist/{chunk-4169yf5x.js → chunk-d127m8zb.js} +7 -7
  150. package/dist/{chunk-cj8t81dc.js → chunk-d161bz6z.js} +54 -51
  151. package/dist/{chunk-0rbezx7s.js → chunk-d3kt34ew.js} +54 -51
  152. package/dist/{chunk-dtv3phgm.js → chunk-d4a8wx96.js} +54 -51
  153. package/dist/{chunk-86epd45z.js → chunk-d68resa3.js} +23 -27
  154. package/dist/{chunk-77dn0tk8.js → chunk-d6pvxq4t.js} +5 -5
  155. package/dist/chunk-d6v6abvy.js +397 -0
  156. package/dist/{chunk-q223vmcc.js → chunk-d6ytdgha.js} +6 -8
  157. package/dist/chunk-d9y7sf7e.js +351 -0
  158. package/dist/{chunk-fy6tp8zj.js → chunk-daycsk4d.js} +2 -2
  159. package/dist/{chunk-rck3g0jk.js → chunk-dcekzc4y.js} +55 -52
  160. package/dist/{chunk-tjbjxrqz.js → chunk-dfcm57ek.js} +6 -6
  161. package/dist/{chunk-mqqg7cf6.js → chunk-dgz6h4qd.js} +5 -5
  162. package/dist/{chunk-t5vfbd78.js → chunk-dmcepess.js} +55 -53
  163. package/dist/{chunk-vjvstd86.js → chunk-dpzdk73b.js} +2 -2
  164. package/dist/{chunk-y81y5v3d.js → chunk-dttqmtms.js} +57 -53
  165. package/dist/{chunk-s26mv9yh.js → chunk-dy8tttdp.js} +7 -8
  166. package/dist/{chunk-xjcmfp13.js → chunk-dyaf8e7s.js} +57 -55
  167. package/dist/{chunk-3ef0cpf6.js → chunk-e7m4m372.js} +56 -54
  168. package/dist/{chunk-jz86pz25.js → chunk-e90spxq9.js} +97 -86
  169. package/dist/{chunk-157v5wtn.js → chunk-edyny263.js} +10 -14
  170. package/dist/{chunk-vf3etxnx.js → chunk-emxnq07z.js} +1 -1
  171. package/dist/{chunk-607fe07t.js → chunk-en7bhyyg.js} +54 -51
  172. package/dist/{chunk-y315v6st.js → chunk-eqt6c9hn.js} +54 -42
  173. package/dist/chunk-ermp1abj.js +116 -0
  174. package/dist/{chunk-zkv7atzf.js → chunk-f081fc9h.js} +69 -67
  175. package/dist/{chunk-adjan1zm.js → chunk-f4cbehwk.js} +56 -54
  176. package/dist/{chunk-qga7he5v.js → chunk-f5h4mxdx.js} +9 -9
  177. package/dist/{chunk-enzrrdn4.js → chunk-fbkfb5yy.js} +8 -10
  178. package/dist/{chunk-9msn8xwq.js → chunk-fckykghd.js} +2 -3
  179. package/dist/{chunk-7cfbwd7q.js → chunk-fh1ax1cg.js} +59 -56
  180. package/dist/{chunk-4drmj637.js → chunk-fhz29daj.js} +12 -12
  181. package/dist/{chunk-t76a178c.js → chunk-fjg2v3kn.js} +54 -51
  182. package/dist/{chunk-5hjsrynt.js → chunk-fqfhd27m.js} +1 -1
  183. package/dist/{chunk-29yjrfeq.js → chunk-fr9p38bg.js} +6 -4
  184. package/dist/{chunk-evww0yyb.js → chunk-frnvg2zn.js} +11 -12
  185. package/dist/{chunk-sjr9vygr.js → chunk-fsq6r5fm.js} +7 -9
  186. package/dist/{chunk-x7jtxq14.js → chunk-fxpsa506.js} +3 -5
  187. package/dist/{chunk-m77e1esy.js → chunk-fy965myk.js} +5 -7
  188. package/dist/{chunk-2c4003f8.js → chunk-gccn64qd.js} +54 -51
  189. package/dist/{chunk-s95y1wsx.js → chunk-ggntxyqw.js} +7 -7
  190. package/dist/{chunk-kyvg0zcc.js → chunk-gsfvjkxs.js} +4 -4
  191. package/dist/{chunk-ndgnv15y.js → chunk-gss0qg24.js} +56 -54
  192. package/dist/{chunk-n8whv674.js → chunk-gtzjdd18.js} +5 -6
  193. package/dist/{chunk-nrgyjw8e.js → chunk-gwhnvzbg.js} +7 -7
  194. package/dist/{chunk-0asd58w2.js → chunk-gxnyeps9.js} +11 -11
  195. package/dist/{chunk-fq1j9zm0.js → chunk-gybj15eh.js} +2 -3
  196. package/dist/{chunk-hnx0eg6x.js → chunk-h3p151fx.js} +3 -3
  197. package/dist/{chunk-gra7rch0.js → chunk-hb2tgq01.js} +65 -62
  198. package/dist/{chunk-zjhz0qyc.js → chunk-hmx6fwqe.js} +56 -53
  199. package/dist/{chunk-ap1ykep6.js → chunk-hp4cdr1t.js} +6 -4
  200. package/dist/{chunk-v47r6dev.js → chunk-hqsvvf0s.js} +94 -66
  201. package/dist/{chunk-gyzh9997.js → chunk-ht4k8qc2.js} +54 -51
  202. package/dist/{chunk-j06y02aw.js → chunk-hxc8e6wd.js} +1 -1
  203. package/dist/{chunk-29p0hjfs.js → chunk-j71410ke.js} +5 -7
  204. package/dist/{chunk-fxqp3yt4.js → chunk-jd2r7m9t.js} +4 -5
  205. package/dist/{chunk-drnxbc1w.js → chunk-jeqt4y47.js} +2 -2
  206. package/dist/{chunk-crvsdcfv.js → chunk-jhq4q5mx.js} +58 -56
  207. package/dist/{chunk-p78dmmrg.js → chunk-jjj6rejt.js} +56 -54
  208. package/dist/{chunk-beq5rrj7.js → chunk-jtmqgw9b.js} +18 -18
  209. package/dist/{chunk-7w2h14a6.js → chunk-jz4f7zpz.js} +22 -21
  210. package/dist/{chunk-a27gcyws.js → chunk-jzj3p696.js} +3 -3
  211. package/dist/{chunk-mhd4n6av.js → chunk-k523rbgc.js} +3 -5
  212. package/dist/chunk-k7aebzb7.js +2011 -0
  213. package/dist/{chunk-6sqsx9jy.js → chunk-k83gceng.js} +22 -21
  214. package/dist/{chunk-ypgs2acw.js → chunk-kay473m2.js} +22 -21
  215. package/dist/{chunk-w5f4g9ty.js → chunk-kbys4txa.js} +3 -3
  216. package/dist/{chunk-45bbgebk.js → chunk-kntspztd.js} +5 -5
  217. package/dist/{chunk-4f5xrg8h.js → chunk-m6h8sefk.js} +55 -53
  218. package/dist/{chunk-hz4cc1fy.js → chunk-m8j8f4rm.js} +65 -137
  219. package/dist/{chunk-e4jqbn4d.js → chunk-m9w972ny.js} +2 -4
  220. package/dist/{chunk-3gww1j1y.js → chunk-mb0j3qcs.js} +73 -113
  221. package/dist/{chunk-eserktyd.js → chunk-mb93ek5j.js} +4 -6
  222. package/dist/{chunk-akkp39da.js → chunk-mgdpdt82.js} +54 -51
  223. package/dist/{chunk-3ah2pq1f.js → chunk-mmegp36z.js} +66 -64
  224. package/dist/{chunk-688ah6p4.js → chunk-mw1qkqcc.js} +71 -70
  225. package/dist/chunk-mxezad7a.js +115 -0
  226. package/dist/{chunk-j5pcp6j1.js → chunk-n01yv986.js} +4 -4
  227. package/dist/{chunk-h6wkvzrd.js → chunk-n3pqr3pc.js} +6 -8
  228. package/dist/{chunk-7750n93j.js → chunk-n3r19e7j.js} +4 -4
  229. package/dist/{chunk-0qe6jzfm.js → chunk-n7e9fm08.js} +54 -51
  230. package/dist/{chunk-nskrydpn.js → chunk-n9pjjkmd.js} +55 -52
  231. package/dist/{chunk-e6rrn2tj.js → chunk-nbr86en0.js} +55 -53
  232. package/dist/{chunk-g3t3tpmr.js → chunk-nkz07g41.js} +23 -21
  233. package/dist/{chunk-egwqdd9k.js → chunk-nm2nptw1.js} +29 -29
  234. package/dist/{chunk-ptpynwv2.js → chunk-nrnctdca.js} +56 -54
  235. package/dist/{chunk-nt5vedsr.js → chunk-nt2esar1.js} +1 -1
  236. package/dist/{chunk-gfc6zk7q.js → chunk-p0mmn00m.js} +5 -5
  237. package/dist/chunk-p466g3q9.js +36 -0
  238. package/dist/chunk-p5816r2t.js +157 -0
  239. package/dist/{chunk-9qbwahdr.js → chunk-p5fg24e5.js} +4 -6
  240. package/dist/{chunk-ccb92crb.js → chunk-p6zb606e.js} +21 -20
  241. package/dist/{chunk-qwj4n799.js → chunk-p7pj6wf8.js} +1 -1
  242. package/dist/{chunk-4f4jqsza.js → chunk-padnh4m8.js} +1 -1
  243. package/dist/chunk-pb73zgyd.js +55 -0
  244. package/dist/{chunk-5yd55bg7.js → chunk-pe5vktd8.js} +54 -51
  245. package/dist/{chunk-cnggqnzm.js → chunk-pjvrckqq.js} +26 -26
  246. package/dist/{chunk-7nebst32.js → chunk-pjz4m7pd.js} +2 -2
  247. package/dist/{chunk-4581z0wr.js → chunk-pp51xf04.js} +46 -121
  248. package/dist/{chunk-ns11b23b.js → chunk-ptkr15ng.js} +56 -53
  249. package/dist/{chunk-mt10f1tp.js → chunk-q180111z.js} +3 -3
  250. package/dist/{chunk-vq51wj3f.js → chunk-q2g2za2r.js} +55 -53
  251. package/dist/{chunk-7hftfbxa.js → chunk-qfr1sn45.js} +6 -8
  252. package/dist/{chunk-xsevshsa.js → chunk-qgtt30h3.js} +8 -10
  253. package/dist/chunk-qkxfahwy.js +271 -0
  254. package/dist/{chunk-txeekahj.js → chunk-qppzesmk.js} +4 -6
  255. package/dist/{chunk-p9rdn455.js → chunk-r2e2d9te.js} +56 -54
  256. package/dist/chunk-r4sr5fcm.js +93 -0
  257. package/dist/{chunk-ebzv9705.js → chunk-r5eka7tm.js} +14 -14
  258. package/dist/{chunk-50xwa16q.js → chunk-r5jmfhb0.js} +56 -54
  259. package/dist/{chunk-6b45etp0.js → chunk-r770mj33.js} +2 -2
  260. package/dist/chunk-r854e43q.js +25 -0
  261. package/dist/{chunk-t0twk3e5.js → chunk-rd2884ff.js} +1 -1
  262. package/dist/{chunk-d92pjy0h.js → chunk-rnwcyhhr.js} +57 -54
  263. package/dist/{chunk-hy2yy9dj.js → chunk-rs9c0tp6.js} +3 -5
  264. package/dist/{chunk-qqfr3g23.js → chunk-rvt67hgh.js} +56 -53
  265. package/dist/{chunk-amyrs3hm.js → chunk-rxtbs7n0.js} +4 -4
  266. package/dist/chunk-s2a06w54.js +295 -0
  267. package/dist/{chunk-3b9ar57s.js → chunk-s39ksgef.js} +4 -6
  268. package/dist/{chunk-cqndxy46.js → chunk-s5kja2qn.js} +1 -1
  269. package/dist/{chunk-3gtk4mh3.js → chunk-s72mp5r4.js} +62 -60
  270. package/dist/{chunk-xe4dvfz2.js → chunk-s99sq9ns.js} +54 -51
  271. package/dist/{chunk-v9bnkmpp.js → chunk-sg1qd2yq.js} +55 -52
  272. package/dist/{chunk-deatxv64.js → chunk-sgxttpf4.js} +15 -17
  273. package/dist/chunk-sjj998mb.js +91 -0
  274. package/dist/{chunk-tgav5bz9.js → chunk-skd3bkmx.js} +120 -116
  275. package/dist/{chunk-m007chff.js → chunk-swyjab92.js} +23 -25
  276. package/dist/{chunk-fezbtqkp.js → chunk-sx14s38q.js} +66 -64
  277. package/dist/{chunk-qkwmefpm.js → chunk-sz611c7y.js} +58 -56
  278. package/dist/{chunk-2mbctja8.js → chunk-szcsdmpv.js} +9 -9
  279. package/dist/chunk-t7gpw9nw.js +183 -0
  280. package/dist/{chunk-v4nrk2f9.js → chunk-tbas522c.js} +7 -8
  281. package/dist/{chunk-4vjvqns0.js → chunk-tjntxkt8.js} +8 -10
  282. package/dist/{chunk-xaw4scep.js → chunk-trt2sfjg.js} +2 -2
  283. package/dist/{chunk-r8m19xnp.js → chunk-v038k0we.js} +4 -6
  284. package/dist/{chunk-9tgts6mc.js → chunk-v134wa9t.js} +1 -1
  285. package/dist/{chunk-9gpr8jae.js → chunk-v1sfwgy2.js} +55 -52
  286. package/dist/{chunk-9je35yst.js → chunk-v6vnhsk9.js} +16 -22
  287. package/dist/{chunk-7p1esgzf.js → chunk-ve35wfqa.js} +3 -3
  288. package/dist/{chunk-4krsdy3p.js → chunk-vf30axzz.js} +4 -4
  289. package/dist/chunk-vfmx405p.js +14 -0
  290. package/dist/{chunk-s4erjnky.js → chunk-vg3exmen.js} +56 -53
  291. package/dist/{chunk-6yahjmr9.js → chunk-vk9rhhqy.js} +1 -1
  292. package/dist/{chunk-d2vb6m9e.js → chunk-vp2p7azg.js} +5 -7
  293. package/dist/{chunk-brnc96x6.js → chunk-vq6he9z3.js} +203 -24
  294. package/dist/{chunk-d3paf9v2.js → chunk-vqsjg97m.js} +54 -51
  295. package/dist/{chunk-8fwh1vg6.js → chunk-vqtate03.js} +22 -21
  296. package/dist/{chunk-8833n19q.js → chunk-vrpq3d3m.js} +9 -11
  297. package/dist/{chunk-g9t81ym4.js → chunk-vrt7c6k9.js} +55 -52
  298. package/dist/{chunk-2t5ve6ev.js → chunk-vsbyhpfy.js} +1 -1
  299. package/dist/chunk-vsd9yrbq.js +47 -0
  300. package/dist/{chunk-ewb2cm8z.js → chunk-vyemja4g.js} +8 -10
  301. package/dist/{chunk-g5w87dmr.js → chunk-w2fv2vbn.js} +2 -2
  302. package/dist/{chunk-mmc59v16.js → chunk-w3h4a3kh.js} +3725 -1985
  303. package/dist/chunk-w5j0dhpp.js +14 -0
  304. package/dist/chunk-w669wpk5.js +100 -0
  305. package/dist/{chunk-1e8f0nx0.js → chunk-w78h4cpg.js} +54 -51
  306. package/dist/{chunk-z6gvvfmf.js → chunk-wf0tb0v2.js} +2 -2
  307. package/dist/{chunk-k5kw9hyy.js → chunk-wfmkfs38.js} +5 -5
  308. package/dist/{chunk-3wjy1cpr.js → chunk-wqmpewdd.js} +7 -9
  309. package/dist/{chunk-0n0r9fwa.js → chunk-wrbh0cfk.js} +1 -1
  310. package/dist/{chunk-s0c72pgz.js → chunk-wtmv0phz.js} +55 -52
  311. package/dist/{chunk-erjs2wr4.js → chunk-wvc46bgr.js} +21 -20
  312. package/dist/chunk-wxt5dmty.js +312 -0
  313. package/dist/{chunk-e5mw3cyw.js → chunk-x03eqvrv.js} +4 -6
  314. package/dist/{chunk-5dn1m1r7.js → chunk-x0ym1db4.js} +2 -4
  315. package/dist/{chunk-2eb66dha.js → chunk-x1ja2cne.js} +25 -24
  316. package/dist/{chunk-43b84za2.js → chunk-x5k1etjx.js} +3 -3
  317. package/dist/{chunk-zda436nm.js → chunk-x8s2ysqw.js} +2 -2
  318. package/dist/{chunk-wcxc5m91.js → chunk-x95fhbwq.js} +1 -1
  319. package/dist/{chunk-0w8eb8gt.js → chunk-xcx7yh0e.js} +6 -8
  320. package/dist/chunk-xhesahm0.js +15 -0
  321. package/dist/{chunk-hcwq2bw3.js → chunk-xpk6dapv.js} +27 -27
  322. package/dist/{chunk-2j4wdmkt.js → chunk-xpsb3jm8.js} +9 -96
  323. package/dist/chunk-xr75ftr6.js +37 -0
  324. package/dist/{chunk-39zy97qa.js → chunk-xsc3ccj0.js} +3 -3
  325. package/dist/{chunk-yg0h97bm.js → chunk-xt7s28fx.js} +56 -54
  326. package/dist/{chunk-xmretc2b.js → chunk-xt8gvmsx.js} +58 -55
  327. package/dist/{chunk-b0x349dj.js → chunk-xz76edqf.js} +56 -54
  328. package/dist/{chunk-xqf27kff.js → chunk-y07sc1z5.js} +54 -51
  329. package/dist/{chunk-6k1w8x4k.js → chunk-y2e98987.js} +56 -53
  330. package/dist/{chunk-wm9c1620.js → chunk-y3wg874f.js} +4 -4
  331. package/dist/{chunk-j5eb93j4.js → chunk-y48wfwm4.js} +1 -517
  332. package/dist/{chunk-00b2znqm.js → chunk-yg5r52h3.js} +3 -3
  333. package/dist/{chunk-6wpr3tjc.js → chunk-yh01ya6y.js} +54 -51
  334. package/dist/{chunk-a5b9swcd.js → chunk-yh18j16m.js} +54 -51
  335. package/dist/chunk-yhpxy5st.js +117 -0
  336. package/dist/chunk-ynywa4qc.js +181 -0
  337. package/dist/chunk-ypmj8k22.js +131 -0
  338. package/dist/{chunk-q6d7rjw1.js → chunk-ys9yeb7q.js} +55 -53
  339. package/dist/{chunk-8n7czf03.js → chunk-ytew4nzj.js} +55 -52
  340. package/dist/{chunk-5km8j211.js → chunk-ytrefhw5.js} +5 -5
  341. package/dist/{chunk-1neq14g8.js → chunk-yvypnga9.js} +54 -51
  342. package/dist/{chunk-gc91es60.js → chunk-yzggptj9.js} +60 -59
  343. package/dist/{chunk-ns09xpt7.js → chunk-zc5b1zt8.js} +1 -1
  344. package/dist/{chunk-qpprdv6x.js → chunk-ze24rc11.js} +2 -2
  345. package/dist/{chunk-c1jzx2gv.js → chunk-zpr7s3f8.js} +9 -9
  346. package/dist/chunk-zvdc0eh1.js +94 -0
  347. package/dist/{chunk-h65cdcmj.js → chunk-zzv0m6zw.js} +27 -26
  348. package/dist/cli.js +53 -23
  349. package/package.json +6 -4
  350. package/dist/chunk-0731m51q.js +0 -8
  351. package/dist/chunk-0ctfznp2.js +0 -176
  352. package/dist/chunk-2fwze72g.js +0 -24
  353. package/dist/chunk-3ev51j3h.js +0 -117
  354. package/dist/chunk-4vj2d7dz.js +0 -116
  355. package/dist/chunk-6cqap182.js +0 -113
  356. package/dist/chunk-74v2mh4t.js +0 -40
  357. package/dist/chunk-75fdprgp.js +0 -254
  358. package/dist/chunk-9fsvmcz5.js +0 -112
  359. package/dist/chunk-azksrewr.js +0 -113
  360. package/dist/chunk-fve53rbk.js +0 -22
  361. package/dist/chunk-mz2rbmwe.js +0 -114
  362. package/dist/chunk-npf5eh3g.js +0 -8
  363. package/dist/chunk-ppwjyveh.js +0 -8
  364. package/dist/chunk-r1gkg1zh.js +0 -114
  365. package/dist/chunk-vxnvzfnv.js +0 -233
  366. package/dist/chunk-w5b8wpff.js +0 -1026
  367. package/dist/chunk-x6r4v44b.js +0 -8
  368. package/dist/chunk-y2x0t2gb.js +0 -116
  369. package/dist/chunk-z6q66vf8.js +0 -61
@@ -1,7 +1,4 @@
1
1
  // @bun
2
- import {
3
- useManagePlugins
4
- } from "./chunk-4vjvqns0.js";
5
2
  import {
6
3
  DesktopUpsellStartup,
7
4
  RemoteSessionManager,
@@ -12,7 +9,13 @@ import {
12
9
  initializeTeammateContextFromSession,
13
10
  recordTipShown,
14
11
  shouldShowDesktopUpsellStartup
15
- } from "./chunk-1j332jvg.js";
12
+ } from "./chunk-1t58cm9p.js";
13
+ import {
14
+ useManagePlugins
15
+ } from "./chunk-tjntxkt8.js";
16
+ import {
17
+ BoundedUUIDSet
18
+ } from "./chunk-5c6rsxsf.js";
16
19
  import {
17
20
  createCronScheduler,
18
21
  diffMarketplaces,
@@ -20,7 +23,7 @@ import {
20
23
  init_cronJitterConfig,
21
24
  init_cronScheduler,
22
25
  reconcileMarketplaces
23
- } from "./chunk-ptxwtjpj.js";
26
+ } from "./chunk-2aqy976t.js";
24
27
  import {
25
28
  computeStandaloneAgentContext,
26
29
  exitRestoredWorktree,
@@ -28,26 +31,23 @@ import {
28
31
  restoreSessionStateFromLog,
29
32
  restoreWorktreeForResume,
30
33
  skillChangeDetector
31
- } from "./chunk-2mbctja8.js";
34
+ } from "./chunk-szcsdmpv.js";
32
35
  import {
33
36
  applySkillImprovement,
34
37
  startBackgroundHousekeeping
35
- } from "./chunk-4drmj637.js";
36
- import {
37
- BoundedUUIDSet
38
- } from "./chunk-fbs21kq9.js";
38
+ } from "./chunk-fhz29daj.js";
39
39
  import {
40
40
  PermissionDialog,
41
41
  PermissionRequestTitle,
42
42
  init_PermissionDialog,
43
43
  init_PermissionRequestTitle
44
- } from "./chunk-n5pe3jtt.js";
44
+ } from "./chunk-2pjptqfa.js";
45
+ import {
46
+ useFpsMetrics
47
+ } from "./chunk-x0ym1db4.js";
45
48
  import {
46
49
  consumeEarlyInput
47
50
  } from "./chunk-46fcr28b.js";
48
- import {
49
- useFpsMetrics
50
- } from "./chunk-5dn1m1r7.js";
51
51
  import {
52
52
  MessageSelector,
53
53
  findUltraplanTriggerPositions,
@@ -56,36 +56,36 @@ import {
56
56
  messagesAfterAreOnlySynthetic,
57
57
  processUserInput,
58
58
  selectableUserMessagesFilter
59
- } from "./chunk-cr6s4vp6.js";
59
+ } from "./chunk-57zs28dc.js";
60
60
  import {
61
61
  exports_useVoice,
62
62
  init_useVoice
63
- } from "./chunk-ne7y2xb5.js";
63
+ } from "./chunk-1q3ht06y.js";
64
+ import {
65
+ init_setup,
66
+ isChromeExtensionInstalled,
67
+ shouldEnableClaudeInChrome
68
+ } from "./chunk-fbkfb5yy.js";
64
69
  import {
65
70
  ExitFlow,
66
71
  init_ExitFlow
67
- } from "./chunk-4nf1ec4f.js";
72
+ } from "./chunk-0nae74g7.js";
68
73
  import {
69
74
  init_exportRenderer,
70
75
  renderMessagesToPlainText
71
- } from "./chunk-2smwf3e9.js";
76
+ } from "./chunk-bvvnv69h.js";
72
77
  import {
73
78
  init_useMergedTools,
74
79
  useMergedTools
75
- } from "./chunk-a27gcyws.js";
80
+ } from "./chunk-jzj3p696.js";
76
81
  import {
77
82
  init_toolPool,
78
83
  mergeAndFilterTools
79
- } from "./chunk-qpprdv6x.js";
84
+ } from "./chunk-ze24rc11.js";
80
85
  import {
81
86
  init_refresh,
82
87
  refreshActivePlugins
83
- } from "./chunk-m77e1esy.js";
84
- import {
85
- init_setup,
86
- isChromeExtensionInstalled,
87
- shouldEnableClaudeInChrome
88
- } from "./chunk-enzrrdn4.js";
88
+ } from "./chunk-fy965myk.js";
89
89
  import {
90
90
  init_autoModeDenials
91
91
  } from "./chunk-0paqc2yw.js";
@@ -94,31 +94,15 @@ import {
94
94
  getFastIconString,
95
95
  init_FastIcon,
96
96
  init_fast
97
- } from "./chunk-nnbp6hww.js";
98
- import {
99
- BackgroundTasksDialog,
100
- enterTeammateView,
101
- exitTeammateView,
102
- init_BackgroundTasksDialog,
103
- init_Dialog,
104
- init_taskStatusUtils,
105
- init_teammateViewHelpers,
106
- isTerminalStatus,
107
- shouldHideTasksFooter,
108
- stopOrDismissAgent
109
- } from "./chunk-9je35yst.js";
110
- import {
111
- fromSDKCompactMetadata,
112
- init_mappers
113
- } from "./chunk-w5f4g9ty.js";
97
+ } from "./chunk-5y175yzc.js";
114
98
  import {
115
99
  generateSessionName,
116
100
  init_generateSessionName
117
- } from "./chunk-qga7he5v.js";
101
+ } from "./chunk-f5h4mxdx.js";
118
102
  import {
119
103
  generateSessionTitle,
120
104
  init_sessionTitle
121
- } from "./chunk-ap1ykep6.js";
105
+ } from "./chunk-hp4cdr1t.js";
122
106
  import {
123
107
  Fuse,
124
108
  init_fuse
@@ -133,7 +117,29 @@ import {
133
117
  useSetPromptOverlay,
134
118
  useSetPromptOverlayDialog,
135
119
  useUnseenDivider
136
- } from "./chunk-egwqdd9k.js";
120
+ } from "./chunk-nm2nptw1.js";
121
+ import {
122
+ BackgroundTasksDialog,
123
+ enterTeammateView,
124
+ exitTeammateView,
125
+ init_BackgroundTasksDialog,
126
+ init_taskStatusUtils,
127
+ init_teammateViewHelpers,
128
+ isTerminalStatus,
129
+ shouldHideTasksFooter,
130
+ stopOrDismissAgent
131
+ } from "./chunk-v6vnhsk9.js";
132
+ import {
133
+ fromSDKCompactMetadata,
134
+ init_mappers
135
+ } from "./chunk-kbys4txa.js";
136
+ import {
137
+ init_Dialog
138
+ } from "./chunk-w5j0dhpp.js";
139
+ import {
140
+ getResolvedLanguage,
141
+ init_language
142
+ } from "./chunk-p466g3q9.js";
137
143
  import {
138
144
  MCPConnectionManager,
139
145
  filterPermissionRelayClients,
@@ -141,16 +147,16 @@ import {
141
147
  init_channelPermissions,
142
148
  shortRequestId,
143
149
  truncateForPreview
144
- } from "./chunk-smskbnfh.js";
150
+ } from "./chunk-9ceyr5ed.js";
145
151
  import {
146
152
  init_pluginAutoupdate,
147
153
  onPluginsAutoUpdated
148
- } from "./chunk-xsevshsa.js";
154
+ } from "./chunk-qgtt30h3.js";
149
155
  import {
150
156
  CHANNEL_PERMISSION_REQUEST_METHOD,
151
157
  findChannelEntry,
152
158
  init_channelNotification
153
- } from "./chunk-45bbgebk.js";
159
+ } from "./chunk-kntspztd.js";
154
160
  import {
155
161
  $toString,
156
162
  init_server
@@ -158,18 +164,11 @@ import {
158
164
  import {
159
165
  init_useSettingsErrors,
160
166
  useSettingsErrors
161
- } from "./chunk-g5w87dmr.js";
167
+ } from "./chunk-w2fv2vbn.js";
162
168
  import {
163
169
  detectUnreachableRules,
164
170
  init_shadowedRuleDetection
165
- } from "./chunk-cqndxy46.js";
166
- import {
167
- PromptInputHelpMenu,
168
- init_PromptInputHelpMenu,
169
- init_utils as init_utils3,
170
- isNonSpacePrintable,
171
- isVimModeEnabled
172
- } from "./chunk-s95y1wsx.js";
171
+ } from "./chunk-s5kja2qn.js";
173
172
  import {
174
173
  editFileInEditor,
175
174
  editPromptInEditor,
@@ -177,11 +176,30 @@ import {
177
176
  init_editor,
178
177
  init_promptEditor,
179
178
  openFileInExternalEditor
180
- } from "./chunk-k5kw9hyy.js";
179
+ } from "./chunk-wfmkfs38.js";
180
+ import {
181
+ PromptInputHelpMenu,
182
+ init_PromptInputHelpMenu,
183
+ init_utils as init_utils3,
184
+ isNonSpacePrintable,
185
+ isVimModeEnabled
186
+ } from "./chunk-ggntxyqw.js";
187
+ import {
188
+ clearConversation,
189
+ init_conversation
190
+ } from "./chunk-9t3jghwt.js";
191
+ import {
192
+ applyFileSuggestion,
193
+ findLongestCommonPrefix,
194
+ generateFileSuggestions,
195
+ init_fileSuggestions,
196
+ onIndexBuildComplete,
197
+ startBackgroundCacheRefresh
198
+ } from "./chunk-sgxttpf4.js";
181
199
  import {
182
200
  init_bridgeEnabled,
183
201
  isBridgeEnabled
184
- } from "./chunk-v88g6btg.js";
202
+ } from "./chunk-51a8mdyr.js";
185
203
  import {
186
204
  ModelPicker,
187
205
  effortLevelToSymbol,
@@ -190,51 +208,43 @@ import {
190
208
  init_ModelPicker,
191
209
  init_extraUsage,
192
210
  isBilledAsExtraUsage
193
- } from "./chunk-cyxsqapw.js";
211
+ } from "./chunk-cwbdfjp9.js";
194
212
  import {
195
213
  init_useSearchInput,
196
214
  useSearchInput
197
- } from "./chunk-7p1esgzf.js";
198
- import {
199
- init_Feedback,
200
- redactSensitiveInfo
201
- } from "./chunk-ebzv9705.js";
202
- import {
203
- clearConversation,
204
- init_conversation
205
- } from "./chunk-y0fvv8rp.js";
206
- import {
207
- applyFileSuggestion,
208
- findLongestCommonPrefix,
209
- generateFileSuggestions,
210
- init_fileSuggestions,
211
- onIndexBuildComplete,
212
- startBackgroundCacheRefresh
213
- } from "./chunk-deatxv64.js";
215
+ } from "./chunk-ve35wfqa.js";
214
216
  import {
215
217
  getDirectoryCompletions,
216
218
  getPathCompletions,
217
219
  init_directoryCompletion,
218
220
  isPathLikeToken
219
- } from "./chunk-5840qkdv.js";
221
+ } from "./chunk-8h43r0g4.js";
220
222
  import {
221
223
  PromptInputFooterSuggestions,
222
224
  init_PromptInputFooterSuggestions
223
- } from "./chunk-pp11ggs7.js";
225
+ } from "./chunk-6pn8yw8f.js";
224
226
  import {
225
227
  findBtwTriggerPositions,
226
228
  init_sideQuestion
227
- } from "./chunk-29yjrfeq.js";
229
+ } from "./chunk-fr9p38bg.js";
230
+ import {
231
+ init_Feedback,
232
+ redactSensitiveInfo
233
+ } from "./chunk-r5eka7tm.js";
234
+ import {
235
+ attachNdjsonFramer,
236
+ init_ndjsonFramer
237
+ } from "./chunk-r854e43q.js";
228
238
  import {
229
239
  checkAndDisableBypassPermissionsIfNeeded,
230
240
  init_bypassPermissionsKillswitch,
231
241
  useKickOffCheckAndDisableAutoModeIfNeeded,
232
242
  useKickOffCheckAndDisableBypassPermissionsIfNeeded
233
- } from "./chunk-x3p67k4j.js";
243
+ } from "./chunk-2tahgz0j.js";
234
244
  import {
235
245
  init_useMainLoopModel,
236
246
  useMainLoopModel
237
- } from "./chunk-00b2znqm.js";
247
+ } from "./chunk-yg5r52h3.js";
238
248
  import {
239
249
  AGENT_COLORS,
240
250
  AGENT_COLOR_TO_THEME_COLOR,
@@ -323,7 +333,6 @@ import {
323
333
  archiveRemoteSession,
324
334
  asAgentId,
325
335
  asSessionId,
326
- asSystemPrompt,
327
336
  assembleToolPool,
328
337
  axolotl,
329
338
  backgroundAll,
@@ -362,12 +371,14 @@ import {
362
371
  createApiMetricsMessage,
363
372
  createAssistantMessage,
364
373
  createAttachmentMessage,
374
+ createAutonomyQueuedPrompt,
365
375
  createAwaySummaryMessage,
366
376
  createBaseHookInput,
367
377
  createCommandInputMessage,
368
378
  createIdleNotification,
369
379
  createModeSetRequestMessage,
370
380
  createPermissionRequest,
381
+ createProactiveAutonomyCommands,
371
382
  createPromptRuleContent,
372
383
  createScheduledTaskFireMessage,
373
384
  createSystemMessage,
@@ -382,7 +393,6 @@ import {
382
393
  doesMostRecentAssistantMessageExceed200k,
383
394
  dragon,
384
395
  duck,
385
- emitTaskTerminatedSdk,
386
396
  enqueue,
387
397
  enqueuePendingNotification,
388
398
  ensureBackendsRegistered,
@@ -401,7 +411,6 @@ import {
401
411
  exports_contextCollapse,
402
412
  exports_coordinatorMode,
403
413
  exports_loadAgentsDir,
404
- exports_proactive,
405
414
  exports_sessionStorage,
406
415
  extractAgentIdsFromMessages,
407
416
  extractBashToolsFromMessages,
@@ -415,6 +424,8 @@ import {
415
424
  fileHistoryMakeSnapshot,
416
425
  fileHistoryRestoreStateFromLog,
417
426
  fileHistoryRewind,
427
+ finalizeAutonomyRunCompleted,
428
+ finalizeAutonomyRunFailed,
418
429
  findActualString,
419
430
  findInProcessTeammateTaskId,
420
431
  findTeammateTaskByAgentId,
@@ -590,6 +601,7 @@ import {
590
601
  init_argumentSubstitution,
591
602
  init_attachments,
592
603
  init_autoCompact,
604
+ init_autonomyRuns,
593
605
  init_bashClassifier,
594
606
  init_bashPermissions,
595
607
  init_bridgeStatusUtil,
@@ -680,7 +692,6 @@ import {
680
692
  init_pluginLoader,
681
693
  init_policyLimits,
682
694
  init_postCompactCleanup,
683
- init_proactive,
684
695
  init_product,
685
696
  init_prompt1 as init_prompt,
686
697
  init_prompt11 as init_prompt4,
@@ -702,7 +713,6 @@ import {
702
713
  init_resumeAgent,
703
714
  init_ripgrep,
704
715
  init_sandbox_adapter,
705
- init_sdkEventQueue,
706
716
  init_sedEditParser,
707
717
  init_select,
708
718
  init_selectors,
@@ -711,7 +721,6 @@ import {
711
721
  init_sessionMemoryUtils,
712
722
  init_sessionStart,
713
723
  init_sessionStorage,
714
- init_shellQuote,
715
724
  init_shellRuleMatching,
716
725
  init_shortcutFormat,
717
726
  init_shouldUseSandbox,
@@ -759,11 +768,11 @@ import {
759
768
  isAutoCompactEnabled,
760
769
  isAutoManagedMemoryFile,
761
770
  isBackgroundTask,
771
+ isBgSession,
762
772
  isChainParticipant,
763
773
  isClassifierPermissionsEnabled,
764
774
  isCommandEnabled,
765
775
  isCompactBoundaryMessage,
766
- isContextBlocked,
767
776
  isEphemeralToolProgress,
768
777
  isFullscreenActive,
769
778
  isFullscreenEnvEnabled,
@@ -784,8 +793,6 @@ import {
784
793
  isPlanModeInterviewPhaseEnabled,
785
794
  isPluginInstalled,
786
795
  isPolicyAllowed,
787
- isProactiveActive,
788
- isProactivePaused,
789
796
  isQueuedCommandEditable,
790
797
  isQueuedCommandVisible,
791
798
  isSandboxPermissionRequest,
@@ -814,6 +821,8 @@ import {
814
821
  logSuggestionSuppressed,
815
822
  makeHistoryReader,
816
823
  markAgentsNotified,
824
+ markAutonomyRunFailed,
825
+ markAutonomyRunRunning,
817
826
  markGitUnavailable,
818
827
  markHintPluginShown,
819
828
  markMessagesAsRead,
@@ -853,7 +862,6 @@ import {
853
862
  queryHaiku,
854
863
  queryModelWithoutStreaming,
855
864
  queuePendingMessage,
856
- quote,
857
865
  rabbit,
858
866
  readCapped,
859
867
  readUnreadMessages,
@@ -891,11 +899,9 @@ import {
891
899
  sendSandboxPermissionResponseViaMailbox,
892
900
  sendShutdownRequestToMailbox,
893
901
  setEnvHookNotifier,
894
- setNextTickAt,
895
902
  setPlanSlug,
896
903
  shouldAllowManagedSandboxDomainsOnly,
897
904
  shouldShowAlwaysAllowOptions,
898
- shouldTick,
899
905
  shouldUseSandbox,
900
906
  shouldUseSessionMemoryCompaction,
901
907
  sideQuery,
@@ -915,11 +921,11 @@ import {
915
921
  toRGBColor,
916
922
  tokenCountFromLastAPIResponse,
917
923
  transitionPermissionMode,
918
- tryParseShellCommand,
919
924
  turtle,
920
925
  uniqBy_default,
921
926
  unregisterLeaderSetToolPermissionContext,
922
927
  unregisterLeaderToolUseConfirmQueue,
928
+ updateSessionActivity,
923
929
  updateSessionName,
924
930
  updateTaskState,
925
931
  useAppState,
@@ -945,14 +951,21 @@ import {
945
951
  verifyApiKey,
946
952
  withMemoryCorrectionHint,
947
953
  writeToMailbox
948
- } from "./chunk-mmc59v16.js";
949
- import {
950
- init_undercover,
951
- isUndercover
952
- } from "./chunk-z6gvvfmf.js";
954
+ } from "./chunk-w3h4a3kh.js";
953
955
  import {
954
- init_commitAttribution
955
- } from "./chunk-5km8j211.js";
956
+ asSystemPrompt,
957
+ emitTaskTerminatedSdk,
958
+ exports_proactive,
959
+ init_proactive,
960
+ init_sdkEventQueue,
961
+ init_sessionState,
962
+ isContextBlocked,
963
+ isProactiveActive,
964
+ isProactivePaused,
965
+ notifyAutomationStateChanged,
966
+ setNextTickAt,
967
+ shouldTick
968
+ } from "./chunk-k7aebzb7.js";
956
969
  import {
957
970
  DEFAULT_TASKS_MODE_TASK_LIST_ID,
958
971
  claimTask,
@@ -972,17 +985,29 @@ import {
972
985
  syncTeammateMode,
973
986
  unassignTeammateTasks,
974
987
  updateTask
975
- } from "./chunk-8833n19q.js";
988
+ } from "./chunk-vrpq3d3m.js";
989
+ import {
990
+ init_undercover,
991
+ isUndercover
992
+ } from "./chunk-wf0tb0v2.js";
993
+ import {
994
+ init_commitAttribution
995
+ } from "./chunk-ytrefhw5.js";
976
996
  import {
977
997
  CLAUDE_IN_CHROME_MCP_SERVER_NAME,
978
998
  init_common,
979
999
  isTrackedClaudeInChromeTabId
980
- } from "./chunk-s9nr589x.js";
1000
+ } from "./chunk-6qj1adtm.js";
1001
+ import {
1002
+ init_shellQuote,
1003
+ quote,
1004
+ tryParseShellCommand
1005
+ } from "./chunk-d6v6abvy.js";
981
1006
  import {
982
1007
  init_useDoublePress,
983
1008
  init_useExitOnCtrlCDWithKeybindings,
984
1009
  useExitOnCtrlCDWithKeybindings
985
- } from "./chunk-4169yf5x.js";
1010
+ } from "./chunk-d127m8zb.js";
986
1011
  import {
987
1012
  READ_FILE_STATE_CACHE_SIZE,
988
1013
  createFileStateCacheWithSizeLimit,
@@ -994,43 +1019,43 @@ import {
994
1019
  init_projectOnboardingState,
995
1020
  init_terminalSetup,
996
1021
  maybeMarkProjectOnboardingComplete
997
- } from "./chunk-5526qw2k.js";
1022
+ } from "./chunk-8zdrx5jf.js";
998
1023
  import {
999
1024
  init_useKeybinding
1000
- } from "./chunk-t0twk3e5.js";
1025
+ } from "./chunk-rd2884ff.js";
1001
1026
  import {
1002
1027
  hasVoiceAuth,
1003
1028
  init_voiceModeEnabled,
1004
1029
  isVoiceGrowthBookEnabled
1005
- } from "./chunk-9tgts6mc.js";
1030
+ } from "./chunk-v134wa9t.js";
1006
1031
  import {
1007
1032
  IT2_COMMAND,
1008
1033
  init_detection,
1009
1034
  isInsideTmux,
1010
1035
  isInsideTmuxSync
1011
- } from "./chunk-vpp13z80.js";
1036
+ } from "./chunk-3twcp74a.js";
1012
1037
  import {
1013
1038
  TEAM_LEAD_NAME,
1014
1039
  TMUX_COMMAND,
1015
1040
  getSwarmSocketName,
1016
1041
  init_constants as init_constants7
1017
1042
  } from "./chunk-4jm600zv.js";
1018
- import {
1019
- init_browser,
1020
- openBrowser
1021
- } from "./chunk-2dsqf7sp.js";
1022
1043
  import {
1023
1044
  getOAuthHeaders,
1024
1045
  init_api,
1025
1046
  prepareApiRequest,
1026
1047
  updateSessionTitle
1027
- } from "./chunk-v3kfrhgg.js";
1048
+ } from "./chunk-5t6qedbx.js";
1049
+ import {
1050
+ init_browser,
1051
+ openBrowser
1052
+ } from "./chunk-3xzcr9ha.js";
1028
1053
  import {
1029
1054
  endInteractionSpan,
1030
1055
  init_events,
1031
1056
  init_sessionTracing,
1032
1057
  logOTelEvent
1033
- } from "./chunk-mhd4n6av.js";
1058
+ } from "./chunk-k523rbgc.js";
1034
1059
  import {
1035
1060
  ALLOWED_OFFICIAL_MARKETPLACE_NAMES,
1036
1061
  AwsAuthStatusManager,
@@ -1137,17 +1162,17 @@ import {
1137
1162
  toExternalPermissionMode,
1138
1163
  truncateToLines,
1139
1164
  updateSettingsForSource
1140
- } from "./chunk-4581z0wr.js";
1165
+ } from "./chunk-pp51xf04.js";
1141
1166
  import {
1142
1167
  init_json,
1143
1168
  safeParseJSON
1144
- } from "./chunk-hnx0eg6x.js";
1169
+ } from "./chunk-h3p151fx.js";
1145
1170
  import {
1146
1171
  expandPath,
1147
1172
  getDirectoryForPath,
1148
1173
  init_path,
1149
1174
  toRelativePath
1150
- } from "./chunk-2j4wdmkt.js";
1175
+ } from "./chunk-0spb0sqd.js";
1151
1176
  import {
1152
1177
  count,
1153
1178
  getAgentName,
@@ -1170,7 +1195,7 @@ import {
1170
1195
  import {
1171
1196
  getPlatform,
1172
1197
  init_platform
1173
- } from "./chunk-7nebst32.js";
1198
+ } from "./chunk-pjz4m7pd.js";
1174
1199
  import {
1175
1200
  init_v4
1176
1201
  } from "./chunk-8g747a8x.js";
@@ -1181,14 +1206,16 @@ import {
1181
1206
  extractCommandArguments,
1182
1207
  init_parser,
1183
1208
  parseCommand
1184
- } from "./chunk-wmbpegg3.js";
1209
+ } from "./chunk-c7t69jmn.js";
1185
1210
  import {
1186
1211
  env,
1187
1212
  getHostPlatformForAnalytics,
1213
+ init_env
1214
+ } from "./chunk-9qh5f9r3.js";
1215
+ import {
1188
1216
  init_bundledMode,
1189
- init_env,
1190
1217
  isInBundledMode
1191
- } from "./chunk-n1pa72ns.js";
1218
+ } from "./chunk-xhesahm0.js";
1192
1219
  import {
1193
1220
  getOauthConfig,
1194
1221
  init_oauth
@@ -1201,7 +1228,7 @@ import {
1201
1228
  formatTokens,
1202
1229
  init_format,
1203
1230
  truncateToWidth
1204
- } from "./chunk-prgsmrmy.js";
1231
+ } from "./chunk-axenqvc8.js";
1205
1232
  import {
1206
1233
  firstGrapheme,
1207
1234
  getGraphemeSegmenter,
@@ -1258,13 +1285,11 @@ import {
1258
1285
  use_input_default,
1259
1286
  use_stdin_default,
1260
1287
  wrapText
1261
- } from "./chunk-e4jqbn4d.js";
1262
- import {
1263
- require_jsx_dev_runtime
1264
- } from "./chunk-vxnvzfnv.js";
1288
+ } from "./chunk-m9w972ny.js";
1265
1289
  import {
1290
+ require_jsx_dev_runtime,
1266
1291
  require_react
1267
- } from "./chunk-ns3babbs.js";
1292
+ } from "./chunk-b5wxetbv.js";
1268
1293
  import {
1269
1294
  init_analytics,
1270
1295
  logEvent
@@ -1276,15 +1301,15 @@ import {
1276
1301
  init_diagLogs,
1277
1302
  init_git,
1278
1303
  logForDiagnosticsNoPII
1279
- } from "./chunk-pedmqmrf.js";
1304
+ } from "./chunk-73pxnrgv.js";
1280
1305
  import {
1281
1306
  init_memoize,
1282
1307
  memoizeWithLRU
1283
- } from "./chunk-cj8m3h8r.js";
1308
+ } from "./chunk-5aw4k8fc.js";
1284
1309
  import {
1285
1310
  execFileNoThrow,
1286
1311
  init_execFileNoThrow
1287
- } from "./chunk-81dq52pk.js";
1312
+ } from "./chunk-99zt59gg.js";
1288
1313
  import {
1289
1314
  getCwd,
1290
1315
  init_cwd
@@ -1302,34 +1327,32 @@ import {
1302
1327
  init_log,
1303
1328
  init_xml,
1304
1329
  logError
1305
- } from "./chunk-d2vb6m9e.js";
1330
+ } from "./chunk-vp2p7azg.js";
1306
1331
  import {
1307
1332
  init_which,
1308
1333
  which
1309
- } from "./chunk-2t5ve6ev.js";
1334
+ } from "./chunk-vsbyhpfy.js";
1310
1335
  import {
1311
1336
  figures_default,
1312
1337
  init_figures
1313
1338
  } from "./chunk-qajrkk97.js";
1314
1339
  import {
1340
+ AbortError,
1341
+ errorMessage,
1315
1342
  getFsImplementation,
1316
1343
  init_cleanupRegistry,
1317
1344
  init_debug,
1345
+ init_errors,
1318
1346
  init_fsOperations,
1319
1347
  init_slowOperations,
1348
+ isENOENT,
1320
1349
  jsonParse,
1321
1350
  jsonStringify,
1322
1351
  logForDebugging,
1323
1352
  registerCleanup,
1324
- safeResolvePath
1325
- } from "./chunk-kmgp6prw.js";
1326
- import {
1327
- AbortError,
1328
- errorMessage,
1329
- init_errors,
1330
- isENOENT,
1353
+ safeResolvePath,
1331
1354
  toError
1332
- } from "./chunk-3ev51j3h.js";
1355
+ } from "./chunk-5khwvj1z.js";
1333
1356
  import {
1334
1357
  createSignal,
1335
1358
  getAllowedChannels,
@@ -2491,12 +2514,15 @@ function useProactive(opts) {
2491
2514
  scheduleTick();
2492
2515
  return;
2493
2516
  }
2494
- const tickContent = `<${TICK_TAG}>${new Date().toLocaleTimeString()}</${TICK_TAG}>`;
2495
- if (queuedCommandsLength === 0) {
2496
- optsRef.current.onSubmitTick(tickContent);
2497
- } else {
2498
- optsRef.current.onQueueTick(tickContent);
2499
- }
2517
+ (async () => {
2518
+ const commands = await createProactiveAutonomyCommands({
2519
+ basePrompt: `<${TICK_TAG}>${new Date().toLocaleTimeString()}</${TICK_TAG}>`,
2520
+ currentDir: getCwd()
2521
+ });
2522
+ for (const command of commands) {
2523
+ optsRef.current.onQueueTick(command);
2524
+ }
2525
+ })();
2500
2526
  scheduleTick();
2501
2527
  }, TICK_INTERVAL_MS);
2502
2528
  }
@@ -2517,6 +2543,8 @@ function useProactive(opts) {
2517
2543
  var import_react125, TICK_INTERVAL_MS = 30000;
2518
2544
  var init_useProactive = __esm(() => {
2519
2545
  init_xml();
2546
+ init_cwd();
2547
+ init_autonomyRuns();
2520
2548
  init_proactive();
2521
2549
  import_react125 = __toESM(require_react(), 1);
2522
2550
  });
@@ -2538,29 +2566,66 @@ function useScheduledTasks({
2538
2566
  import_react126.useEffect(() => {
2539
2567
  if (!isKairosCronEnabled())
2540
2568
  return;
2541
- const enqueueForLead = (prompt) => enqueuePendingNotification({
2542
- value: prompt,
2543
- mode: "prompt",
2544
- priority: "later",
2545
- isMeta: true,
2546
- workload: WORKLOAD_CRON
2547
- });
2569
+ const enqueueForLead = async (prompt) => {
2570
+ const command = await createAutonomyQueuedPrompt({
2571
+ basePrompt: prompt,
2572
+ trigger: "scheduled-task",
2573
+ currentDir: getCwd(),
2574
+ workload: WORKLOAD_CRON
2575
+ });
2576
+ if (!command) {
2577
+ return;
2578
+ }
2579
+ enqueuePendingNotification(command);
2580
+ };
2548
2581
  const scheduler = createCronScheduler({
2549
- onFire: enqueueForLead,
2582
+ onFire: (prompt) => {
2583
+ enqueueForLead(prompt);
2584
+ },
2550
2585
  onFireTask: (task) => {
2551
- if (task.agentId) {
2552
- const teammate = findTeammateTaskByAgentId(task.agentId, store.getState().tasks);
2553
- if (teammate && !isTerminalTaskStatus(teammate.status)) {
2554
- injectUserMessageToTeammate(teammate.id, task.prompt, setAppState);
2586
+ (async () => {
2587
+ if (task.agentId) {
2588
+ const teammate = findTeammateTaskByAgentId(task.agentId, store.getState().tasks);
2589
+ if (teammate && !isTerminalTaskStatus(teammate.status)) {
2590
+ const command2 = await createAutonomyQueuedPrompt({
2591
+ basePrompt: task.prompt,
2592
+ trigger: "scheduled-task",
2593
+ currentDir: getCwd(),
2594
+ sourceId: task.id,
2595
+ sourceLabel: task.prompt,
2596
+ workload: WORKLOAD_CRON
2597
+ });
2598
+ if (!command2) {
2599
+ return;
2600
+ }
2601
+ const injected = injectUserMessageToTeammate(teammate.id, command2.value, {
2602
+ autonomyRunId: command2.autonomy?.runId,
2603
+ origin: command2.origin
2604
+ }, setAppState);
2605
+ if (!injected && command2.autonomy?.runId) {
2606
+ await markAutonomyRunFailed(command2.autonomy.runId, `Teammate ${task.agentId} exited before the scheduled message could be delivered.`);
2607
+ }
2608
+ return;
2609
+ }
2610
+ logForDebugging(`[ScheduledTasks] teammate ${task.agentId} gone, removing orphaned cron ${task.id}`);
2611
+ removeCronTasks([task.id]);
2555
2612
  return;
2556
2613
  }
2557
- logForDebugging(`[ScheduledTasks] teammate ${task.agentId} gone, removing orphaned cron ${task.id}`);
2558
- removeCronTasks([task.id]);
2559
- return;
2560
- }
2561
- const msg = createScheduledTaskFireMessage(`Running scheduled task (${formatCronFireTime(new Date)})`);
2562
- setMessages((prev) => [...prev, msg]);
2563
- enqueueForLead(task.prompt);
2614
+ const command = await createAutonomyQueuedPrompt({
2615
+ basePrompt: task.prompt,
2616
+ trigger: "scheduled-task",
2617
+ currentDir: getCwd(),
2618
+ sourceId: task.id,
2619
+ sourceLabel: task.prompt,
2620
+ workload: WORKLOAD_CRON
2621
+ });
2622
+ if (!command) {
2623
+ return;
2624
+ }
2625
+ const msg = createScheduledTaskFireMessage(`Running scheduled task (${formatCronFireTime(new Date)})`);
2626
+ setMessages((prev) => [...prev, msg]);
2627
+ enqueuePendingNotification(command);
2628
+ })();
2564
2629
  },
2565
2630
  isLoading: () => isLoadingRef.current,
2566
2631
  assistantMode,
@@ -2585,9 +2650,12 @@ var init_useScheduledTasks = __esm(() => {
2585
2650
  init_Task();
2586
2651
  init_InProcessTeammateTask();
2587
2652
  init_prompt3();
2653
+ init_cwd();
2588
2654
  init_cronJitterConfig();
2589
2655
  init_cronScheduler();
2590
2656
  init_cronTasks();
2657
+ init_autonomyRuns();
2658
+ init_autonomyRuns();
2591
2659
  init_debug();
2592
2660
  init_messageQueueManager();
2593
2661
  init_messages();
@@ -2637,6 +2705,7 @@ init_src();
2637
2705
  init_exportRenderer();
2638
2706
  init_editor();
2639
2707
  init_src();
2708
+ import { spawnSync } from "child_process";
2640
2709
  import { dirname, join as join6 } from "path";
2641
2710
  import { tmpdir } from "os";
2642
2711
  import { writeFile as writeFile3 } from "fs/promises";
@@ -2904,6 +2973,7 @@ class QueryGuard {
2904
2973
  // src/screens/REPL.tsx
2905
2974
  init_envUtils();
2906
2975
  init_format();
2976
+ init_autonomyRuns();
2907
2977
  init_teamHelpers();
2908
2978
  init_permissionSync();
2909
2979
  init_useSwarmPermissionPoller();
@@ -3088,11 +3158,14 @@ init_messageQueueManager();
3088
3158
  init_messages();
3089
3159
  init_permissionSetup();
3090
3160
  init_leaderPermissionBridge();
3161
+ init_tasks();
3091
3162
  var jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
3092
3163
  function useReplBridge(messages, setMessages, abortControllerRef, commands, mainLoopModel) {
3093
3164
  const handleRef = import_react2.useRef(null);
3094
3165
  const teardownPromiseRef = import_react2.useRef(undefined);
3095
3166
  const lastWrittenIndexRef = import_react2.useRef(0);
3167
+ const pendingResultAfterFlushRef = import_react2.useRef(false);
3168
+ const transcriptResetPendingRef = import_react2.useRef(false);
3096
3169
  const flushedUUIDsRef = import_react2.useRef(new Set);
3097
3170
  const failureTimeoutRef = import_react2.useRef(undefined);
3098
3171
  const consecutiveFailuresRef = import_react2.useRef(0);
@@ -3107,6 +3180,7 @@ function useReplBridge(messages, setMessages, abortControllerRef, commands, main
3107
3180
  const { addNotification } = useNotifications();
3108
3181
  const replBridgeEnabled = false;
3109
3182
  const replBridgeConnected = false;
3183
+ const replBridgeSessionActive = false;
3110
3184
  const replBridgeOutboundOnly = false;
3111
3185
  const replBridgeInitialName = undefined;
3112
3186
  import_react2.useEffect(() => {
@@ -3123,9 +3197,12 @@ function useReplBridge(messages, setMessages, abortControllerRef, commands, main
3123
3197
  import_react2.useEffect(() => {
3124
3198
  if (false) {}
3125
3199
  }, [messages, replBridgeConnected]);
3200
+ import_react2.useEffect(() => {
3201
+ if (false) {}
3202
+ }, [replBridgeSessionActive, replBridgeOutboundOnly]);
3126
3203
  const sendBridgeResult = import_react2.useCallback(() => {
3127
3204
  if (false) {}
3128
- }, []);
3205
+ }, [replBridgeConnected]);
3129
3206
  return { sendBridgeResult };
3130
3207
  }
3131
3208
 
@@ -17859,30 +17936,11 @@ var import_react62 = __toESM(require_react(), 1);
17859
17936
  // src/utils/pipeTransport.ts
17860
17937
  init_envUtils();
17861
17938
  init_log();
17939
+ init_ndjsonFramer();
17862
17940
  import { createServer, createConnection } from "net";
17863
17941
  import { mkdir, unlink, readdir, writeFile } from "fs/promises";
17864
17942
  import { join as join2 } from "path";
17865
17943
  import { EventEmitter } from "events";
17866
-
17867
- // src/utils/ndjsonFramer.ts
17868
- function attachNdjsonFramer(socket, onMessage, parse = (text) => JSON.parse(text)) {
17869
- let buffer = "";
17870
- socket.on("data", (chunk) => {
17871
- buffer += chunk.toString();
17872
- const lines = buffer.split(`
17873
- `);
17874
- buffer = lines.pop() ?? "";
17875
- for (const line of lines) {
17876
- if (!line.trim())
17877
- continue;
17878
- try {
17879
- onMessage(parse(line));
17880
- } catch {}
17881
- }
17882
- });
17883
- }
17884
-
17885
- // src/utils/pipeTransport.ts
17886
17944
  function getPipesDir() {
17887
17945
  return join2(getClaudeConfigHomeDir(), "pipes");
17888
17946
  }
@@ -22117,6 +22175,9 @@ function convertSDKMessage(msg, opts) {
22117
22175
  case "rate_limit_event":
22118
22176
  logForDebugging("[sdkMessageAdapter] Ignoring rate_limit_event message");
22119
22177
  return { type: "ignored" };
22178
+ case "task_state":
22179
+ logForDebugging("[sdkMessageAdapter] Ignoring task_state message");
22180
+ return { type: "ignored" };
22120
22181
  default: {
22121
22182
  logForDebugging(`[sdkMessageAdapter] Unknown message type: ${msg.type}`);
22122
22183
  return { type: "ignored" };
@@ -24200,6 +24261,7 @@ function useTeammateViewAutoExit() {
24200
24261
  init_errors();
24201
24262
  init_messagePredicates();
24202
24263
  init_log();
24264
+ init_cwd();
24203
24265
 
24204
24266
  // src/hooks/useCanUseTool.tsx
24205
24267
  init_sdk();
@@ -24255,10 +24317,13 @@ import { randomUUID as randomUUID7 } from "crypto";
24255
24317
  import { randomUUID as randomUUID6 } from "crypto";
24256
24318
  var pendingPipePermissions = new Map;
24257
24319
  var _pipeRelay = null;
24320
+ var _relayMuted = false;
24258
24321
  function getPipeSender() {
24259
24322
  return _pipeRelay ?? null;
24260
24323
  }
24261
24324
  function tryRelayPipePermissionRequest(toolUseConfirm, onResponse) {
24325
+ if (_relayMuted)
24326
+ return null;
24262
24327
  const send = getPipeSender();
24263
24328
  if (!send)
24264
24329
  return null;
@@ -24284,6 +24349,8 @@ function forgetPipePermissionRequest(requestId) {
24284
24349
  function notifyPipePermissionCancel(requestId, reason) {
24285
24350
  if (!requestId)
24286
24351
  return;
24352
+ if (_relayMuted)
24353
+ return;
24287
24354
  const send = getPipeSender();
24288
24355
  if (!send)
24289
24356
  return;
@@ -24931,6 +24998,7 @@ function useCanUseTool(setToolUseConfirmQueue, setToolPermissionContext) {
24931
24998
  var useCanUseTool_default = useCanUseTool;
24932
24999
 
24933
25000
  // src/screens/REPL.tsx
25001
+ init_sessionState();
24934
25002
  init_PermissionUpdate();
24935
25003
  init_permissionSetup();
24936
25004
  init_filesystem();
@@ -24959,6 +25027,7 @@ init_fileHistory();
24959
25027
  init_gracefulShutdown();
24960
25028
  init_messageQueueManager();
24961
25029
  init_model();
25030
+ init_autonomyRuns();
24962
25031
  init_queryProfiler();
24963
25032
  init_workloadContext();
24964
25033
  function exit() {
@@ -24985,7 +25054,8 @@ async function handlePromptSubmit(params) {
24985
25054
  canUseTool,
24986
25055
  queuedCommands,
24987
25056
  uuid,
24988
- skipSlashCommands
25057
+ skipSlashCommands,
25058
+ bridgeOrigin
24989
25059
  } = params;
24990
25060
  const { setCursorOffset, clearBuffer, resetHistory } = helpers;
24991
25061
  if (queuedCommands?.length) {
@@ -25106,6 +25176,7 @@ async function handlePromptSubmit(params) {
25106
25176
  mode,
25107
25177
  pastedContents: hasImages ? pastedContents : undefined,
25108
25178
  skipSlashCommands,
25179
+ bridgeOrigin,
25109
25180
  uuid
25110
25181
  });
25111
25182
  onInputChange("");
@@ -25122,6 +25193,7 @@ async function handlePromptSubmit(params) {
25122
25193
  mode,
25123
25194
  pastedContents: hasImages ? pastedContents : undefined,
25124
25195
  skipSlashCommands,
25196
+ bridgeOrigin,
25125
25197
  uuid
25126
25198
  };
25127
25199
  await executeUserInput({
@@ -25180,89 +25252,118 @@ async function executeUserInput(params) {
25180
25252
  const commands = queuedCommands ?? [];
25181
25253
  const firstWorkload = commands[0]?.workload;
25182
25254
  const turnWorkload = firstWorkload !== undefined && commands.every((c) => c.workload === firstWorkload) ? firstWorkload : undefined;
25183
- await runWithWorkload(turnWorkload, async () => {
25184
- for (let i = 0;i < commands.length; i++) {
25185
- const cmd = commands[i];
25186
- const isFirst = i === 0;
25187
- const result = await processUserInput({
25188
- input: cmd.value,
25189
- preExpansionInput: cmd.preExpansionValue,
25190
- mode: cmd.mode,
25191
- setToolJSX,
25192
- context: makeContext(),
25193
- pastedContents: isFirst ? cmd.pastedContents : undefined,
25194
- messages,
25195
- setUserInputOnProcessing: isFirst ? setUserInputOnProcessing : undefined,
25196
- isAlreadyProcessing: !isFirst,
25197
- querySource,
25198
- canUseTool,
25199
- uuid: cmd.uuid,
25200
- ideSelection: isFirst ? ideSelection : undefined,
25201
- skipSlashCommands: cmd.skipSlashCommands,
25202
- bridgeOrigin: cmd.bridgeOrigin,
25203
- isMeta: cmd.isMeta,
25204
- skipAttachments: !isFirst
25205
- });
25206
- const origin = cmd.origin ?? (cmd.mode === "task-notification" ? { kind: "task-notification" } : undefined);
25207
- if (origin) {
25208
- for (const m of result.messages) {
25209
- if (m.type === "user")
25210
- m.origin = origin;
25255
+ let autonomyRunIds;
25256
+ try {
25257
+ await runWithWorkload(turnWorkload, async () => {
25258
+ for (let i = 0;i < commands.length; i++) {
25259
+ const cmd = commands[i];
25260
+ const isFirst = i === 0;
25261
+ if (cmd.autonomy?.runId) {
25262
+ (autonomyRunIds ??= []).push(cmd.autonomy.runId);
25263
+ await markAutonomyRunRunning(cmd.autonomy.runId);
25264
+ }
25265
+ const result = await processUserInput({
25266
+ input: cmd.value,
25267
+ preExpansionInput: cmd.preExpansionValue,
25268
+ mode: cmd.mode,
25269
+ setToolJSX,
25270
+ context: makeContext(),
25271
+ pastedContents: isFirst ? cmd.pastedContents : undefined,
25272
+ messages,
25273
+ setUserInputOnProcessing: isFirst ? setUserInputOnProcessing : undefined,
25274
+ isAlreadyProcessing: !isFirst,
25275
+ querySource,
25276
+ canUseTool,
25277
+ uuid: cmd.uuid,
25278
+ ideSelection: isFirst ? ideSelection : undefined,
25279
+ skipSlashCommands: cmd.skipSlashCommands,
25280
+ bridgeOrigin: cmd.bridgeOrigin,
25281
+ isMeta: cmd.isMeta,
25282
+ skipAttachments: !isFirst
25283
+ });
25284
+ const origin = cmd.origin ?? (cmd.mode === "task-notification" ? { kind: "task-notification" } : undefined);
25285
+ if (origin) {
25286
+ for (const m of result.messages) {
25287
+ if (m.type === "user")
25288
+ m.origin = origin;
25289
+ }
25290
+ }
25291
+ newMessages.push(...result.messages);
25292
+ if (isFirst) {
25293
+ shouldQuery = result.shouldQuery;
25294
+ allowedTools = result.allowedTools;
25295
+ model = result.model;
25296
+ effort = result.effort;
25297
+ nextInput = result.nextInput;
25298
+ submitNextInput = result.submitNextInput;
25211
25299
  }
25212
25300
  }
25213
- newMessages.push(...result.messages);
25214
- if (isFirst) {
25215
- shouldQuery = result.shouldQuery;
25216
- allowedTools = result.allowedTools;
25217
- model = result.model;
25218
- effort = result.effort;
25219
- nextInput = result.nextInput;
25220
- submitNextInput = result.submitNextInput;
25301
+ queryCheckpoint("query_process_user_input_end");
25302
+ if (fileHistoryEnabled()) {
25303
+ queryCheckpoint("query_file_history_snapshot_start");
25304
+ newMessages.filter(selectableUserMessagesFilter).forEach((message) => {
25305
+ fileHistoryMakeSnapshot((updater) => {
25306
+ setAppState((prev) => ({
25307
+ ...prev,
25308
+ fileHistory: updater(prev.fileHistory)
25309
+ }));
25310
+ }, message.uuid);
25311
+ });
25312
+ queryCheckpoint("query_file_history_snapshot_end");
25221
25313
  }
25222
- }
25223
- queryCheckpoint("query_process_user_input_end");
25224
- if (fileHistoryEnabled()) {
25225
- queryCheckpoint("query_file_history_snapshot_start");
25226
- newMessages.filter(selectableUserMessagesFilter).forEach((message) => {
25227
- fileHistoryMakeSnapshot((updater) => {
25228
- setAppState((prev) => ({
25229
- ...prev,
25230
- fileHistory: updater(prev.fileHistory)
25231
- }));
25232
- }, message.uuid);
25233
- });
25234
- queryCheckpoint("query_file_history_snapshot_end");
25235
- }
25236
- if (newMessages.length) {
25237
- resetHistory();
25238
- setToolJSX({
25239
- jsx: null,
25240
- shouldHidePromptInput: false,
25241
- clearLocalJSX: true
25242
- });
25243
- const primaryCmd = commands[0];
25244
- const primaryMode = primaryCmd?.mode ?? "prompt";
25245
- const primaryInput = primaryCmd && typeof primaryCmd.value === "string" ? primaryCmd.value : undefined;
25246
- const shouldCallBeforeQuery = primaryMode === "prompt";
25247
- await onQuery(newMessages, abortController, shouldQuery, allowedTools ?? [], model ? resolveSkillModelOverride(model, mainLoopModel) : mainLoopModel, shouldCallBeforeQuery ? onBeforeQuery : undefined, primaryInput, effort);
25248
- } else {
25249
- queryGuard.cancelReservation();
25250
- setToolJSX({
25251
- jsx: null,
25252
- shouldHidePromptInput: false,
25253
- clearLocalJSX: true
25254
- });
25255
- resetHistory();
25256
- setAbortController(null);
25257
- }
25258
- if (nextInput) {
25259
- if (submitNextInput) {
25260
- enqueue({ value: nextInput, mode: "prompt" });
25314
+ if (newMessages.length) {
25315
+ resetHistory();
25316
+ setToolJSX({
25317
+ jsx: null,
25318
+ shouldHidePromptInput: false,
25319
+ clearLocalJSX: true
25320
+ });
25321
+ const primaryCmd = commands[0];
25322
+ const primaryMode = primaryCmd?.mode ?? "prompt";
25323
+ const primaryInput = primaryCmd && typeof primaryCmd.value === "string" ? primaryCmd.value : undefined;
25324
+ const shouldCallBeforeQuery = primaryMode === "prompt";
25325
+ await onQuery(newMessages, abortController, shouldQuery, allowedTools ?? [], model ? resolveSkillModelOverride(model, mainLoopModel) : mainLoopModel, shouldCallBeforeQuery ? onBeforeQuery : undefined, primaryInput, effort);
25261
25326
  } else {
25262
- params.onInputChange(nextInput);
25327
+ queryGuard.cancelReservation();
25328
+ setToolJSX({
25329
+ jsx: null,
25330
+ shouldHidePromptInput: false,
25331
+ clearLocalJSX: true
25332
+ });
25333
+ resetHistory();
25334
+ setAbortController(null);
25335
+ }
25336
+ if (nextInput) {
25337
+ if (submitNextInput) {
25338
+ enqueue({ value: nextInput, mode: "prompt" });
25339
+ } else {
25340
+ params.onInputChange(nextInput);
25341
+ }
25342
+ }
25343
+ });
25344
+ if (autonomyRunIds?.length) {
25345
+ for (const runId of autonomyRunIds) {
25346
+ const nextCommands = await finalizeAutonomyRunCompleted({
25347
+ runId,
25348
+ priority: "later",
25349
+ workload: turnWorkload
25350
+ });
25351
+ for (const nextCommand of nextCommands) {
25352
+ enqueue(nextCommand);
25353
+ }
25263
25354
  }
25264
25355
  }
25265
- });
25356
+ } catch (error) {
25357
+ if (autonomyRunIds?.length) {
25358
+ for (const runId of autonomyRunIds) {
25359
+ await finalizeAutonomyRunFailed({
25360
+ runId,
25361
+ error: String(error)
25362
+ });
25363
+ }
25364
+ }
25365
+ throw error;
25366
+ }
25266
25367
  } finally {
25267
25368
  queryGuard.cancelReservation();
25268
25369
  setUserInputOnProcessing(undefined);
@@ -25277,11 +25378,11 @@ var import_react86 = __toESM(require_react(), 1);
25277
25378
  init_messageQueueManager();
25278
25379
  function isSlashCommand(cmd) {
25279
25380
  if (typeof cmd.value === "string") {
25280
- return cmd.value.trim().startsWith("/");
25381
+ return cmd.value.trim().startsWith("/") && (!cmd.skipSlashCommands || cmd.bridgeOrigin === true);
25281
25382
  }
25282
25383
  for (const block of cmd.value) {
25283
25384
  if (block.type === "text") {
25284
- return block.text.trim().startsWith("/");
25385
+ return block.text.trim().startsWith("/") && (!cmd.skipSlashCommands || cmd.bridgeOrigin === true);
25285
25386
  }
25286
25387
  }
25287
25388
  return false;
@@ -27760,15 +27861,19 @@ init_debug();
27760
27861
  init_messages();
27761
27862
  init_model();
27762
27863
  init_systemPromptType();
27864
+ init_language();
27763
27865
  init_claude();
27764
27866
  init_sessionMemoryUtils();
27765
27867
  var RECENT_MESSAGE_WINDOW = 30;
27868
+ var PROMPT_EN = "The user stepped away and is coming back. Write exactly 1-3 short sentences. Start by stating the high-level task \u2014 what they are building or debugging, not implementation details. Next: the concrete next step. Skip status reports and commit recaps.";
27869
+ var PROMPT_ZH = "\u7528\u6237\u79BB\u5F00\u540E\u56DE\u6765\u4E86\u3002\u7528\u4E2D\u6587\u5199 1-3 \u53E5\u8BDD\u3002\u5148\u8BF4\u660E\u7528\u6237\u5728\u505A\u4EC0\u4E48\uFF08\u9AD8\u5C42\u76EE\u6807\uFF0C\u4E0D\u662F\u5B9E\u73B0\u7EC6\u8282\uFF09\uFF0C\u7136\u540E\u8BF4\u660E\u4E0B\u4E00\u6B65\u5177\u4F53\u64CD\u4F5C\u3002\u4E0D\u8981\u5199\u72B6\u6001\u62A5\u544A\u6216\u63D0\u4EA4\u603B\u7ED3\u3002";
27766
27870
  function buildAwaySummaryPrompt(memory) {
27767
27871
  const memoryBlock = memory ? `Session memory (broader context):
27768
27872
  ${memory}
27769
27873
 
27770
27874
  ` : "";
27771
- return `${memoryBlock}The user stepped away and is coming back. Write exactly 1-3 short sentences. Start by stating the high-level task \u2014 what they are building or debugging, not implementation details. Next: the concrete next step. Skip status reports and commit recaps.`;
27875
+ const prompt = getResolvedLanguage() === "zh" ? PROMPT_ZH : PROMPT_EN;
27876
+ return `${memoryBlock}${prompt}`;
27772
27877
  }
27773
27878
  async function generateAwaySummary(messages, signal) {
27774
27879
  if (messages.length === 0) {
@@ -31584,6 +31689,7 @@ var getCoordinatorUserContext = (init_coordinatorMode(), __toCommonJS(exports_co
31584
31689
  var proactiveModule3 = (init_proactive(), __toCommonJS(exports_proactive));
31585
31690
  var PROACTIVE_NO_OP_SUBSCRIBE = (_cb) => () => {};
31586
31691
  var PROACTIVE_FALSE = () => false;
31692
+ var PROACTIVE_NULL = () => null;
31587
31693
  var SUGGEST_BG_PR_NOOP = (_p, _n) => false;
31588
31694
  var useProactive2 = (init_useProactive(), __toCommonJS(exports_useProactive)).useProactive;
31589
31695
  var useScheduledTasks2 = (init_useScheduledTasks(), __toCommonJS(exports_useScheduledTasks)).useScheduledTasks;
@@ -31600,6 +31706,9 @@ var usePipeRelay = () => ({ relayPipeMessage: () => false, pipeReturnHadErrorRef
31600
31706
  var usePipePermissionForward = () => {
31601
31707
  return;
31602
31708
  };
31709
+ var usePipeMuteSync = () => {
31710
+ return;
31711
+ };
31603
31712
  var usePipeRouter = () => ({ routeToSelectedPipes: () => false });
31604
31713
  var AntModelSwitchCallout2 = process.env.USER_TYPE === "ant" ? (init_AntModelSwitchCallout(), __toCommonJS(exports_AntModelSwitchCallout)).AntModelSwitchCallout : null;
31605
31714
  var shouldShowAntModelSwitch = process.env.USER_TYPE === "ant" ? (init_AntModelSwitchCallout(), __toCommonJS(exports_AntModelSwitchCallout)).shouldShowModelSwitchCallout : () => false;
@@ -31884,6 +31993,7 @@ function REPL({
31884
31993
  const [localCommands, setLocalCommands] = import_react128.useState(initialCommands);
31885
31994
  useSkillsChange(isRemoteSession ? undefined : getProjectRoot(), setLocalCommands);
31886
31995
  const proactiveActive = React49.useSyncExternalStore(proactiveModule3?.subscribeToProactiveChanges ?? PROACTIVE_NO_OP_SUBSCRIBE, proactiveModule3?.isProactiveActive ?? PROACTIVE_FALSE);
31996
+ const proactiveNextTickAt = React49.useSyncExternalStore(proactiveModule3?.subscribeToProactiveChanges ?? PROACTIVE_NO_OP_SUBSCRIBE, proactiveModule3?.getNextTickAt ?? PROACTIVE_NULL);
31887
31997
  const isBriefOnly = useAppState((s) => s.isBriefOnly);
31888
31998
  const localTools = import_react128.useMemo(() => getTools(toolPermissionContext), [toolPermissionContext, proactiveActive, isBriefOnly]);
31889
31999
  useKickOffCheckAndDisableBypassPermissionsIfNeeded();
@@ -32052,9 +32162,9 @@ function REPL({
32052
32162
  import_react128.useEffect(() => {
32053
32163
  if (process.env.USER_TYPE === "ant") {
32054
32164
  (async () => {
32055
- const { isInternalModelRepo } = await import("./chunk-b2vzxkee.js");
32165
+ const { isInternalModelRepo } = await import("./chunk-4t38jjwb.js");
32056
32166
  await isInternalModelRepo();
32057
- const { shouldShowUndercoverAutoNotice } = await import("./chunk-ts2892h4.js");
32167
+ const { shouldShowUndercoverAutoNotice } = await import("./chunk-bf9fz19d.js");
32058
32168
  if (shouldShowUndercoverAutoNotice()) {
32059
32169
  setShowUndercoverCallout(true);
32060
32170
  }
@@ -32107,7 +32217,9 @@ function REPL({
32107
32217
  const sessionStatus = isWaitingForApproval || isShowingLocalJSXCommand ? "waiting" : isLoading ? "busy" : "idle";
32108
32218
  const waitingFor = sessionStatus !== "waiting" ? undefined : toolUseConfirmQueue.length > 0 ? `approve ${toolUseConfirmQueue[0].tool.name}` : pendingWorkerRequest ? "worker request" : pendingSandboxRequest ? "sandbox request" : isShowingLocalJSXCommand ? "dialog open" : "input needed";
32109
32219
  import_react128.useEffect(() => {
32110
- if (false) {}
32220
+ if (true) {
32221
+ updateSessionActivity({ status: sessionStatus, waitingFor });
32222
+ }
32111
32223
  }, [sessionStatus, waitingFor]);
32112
32224
  const tabStatusGateEnabled = getFeatureValue_CACHED_MAY_BE_STALE("tengu_terminal_sidebar", false);
32113
32225
  const showStatusInTerminalTab = tabStatusGateEnabled && (getGlobalConfig().showStatusInTerminalTab ?? false);
@@ -32487,7 +32599,7 @@ function REPL({
32487
32599
  saveCurrentSessionCosts();
32488
32600
  resetCostState();
32489
32601
  switchSession(asSessionId(sessionId), log.fullPath ? dirname(log.fullPath) : null);
32490
- const { renameRecordingForSession } = await import("./chunk-zh7z8zmq.js");
32602
+ const { renameRecordingForSession } = await import("./chunk-69rtrkmf.js");
32491
32603
  await renameRecordingForSession();
32492
32604
  await resetSessionFilePointer();
32493
32605
  clearSessionMetadata();
@@ -33336,7 +33448,7 @@ Error: sandbox required but unavailable: ${reason}
33336
33448
  async function processInitialMessage(initialMsg) {
33337
33449
  if (initialMsg.clearContext) {
33338
33450
  const oldPlanSlug = initialMsg.message.planContent ? getPlanSlug() : undefined;
33339
- const { clearConversation: clearConversation2 } = await import("./chunk-9fsvmcz5.js");
33451
+ const { clearConversation: clearConversation2 } = await import("./chunk-mxezad7a.js");
33340
33452
  await clearConversation2({
33341
33453
  setMessages,
33342
33454
  readFileState: readFileState.current,
@@ -33354,21 +33466,13 @@ Error: sandbox required but unavailable: ${reason}
33354
33466
  setPlanSlug(getSessionId(), oldPlanSlug);
33355
33467
  }
33356
33468
  }
33357
- const shouldStorePlanForVerification = initialMsg.message.planContent && process.env.USER_TYPE === "ant" && isEnvTruthy(undefined);
33358
33469
  setAppState((prev) => {
33359
33470
  let updatedToolPermissionContext = initialMsg.mode ? applyPermissionUpdates(prev.toolPermissionContext, buildPermissionUpdates(initialMsg.mode, initialMsg.allowedPrompts)) : prev.toolPermissionContext;
33360
33471
  if (false) {}
33361
33472
  return {
33362
33473
  ...prev,
33363
33474
  initialMessage: null,
33364
- toolPermissionContext: updatedToolPermissionContext,
33365
- ...shouldStorePlanForVerification ? {
33366
- pendingPlanVerification: {
33367
- plan: initialMsg.message.planContent,
33368
- verificationStarted: false,
33369
- verificationCompleted: false
33370
- }
33371
- } : {}
33475
+ toolPermissionContext: updatedToolPermissionContext
33372
33476
  };
33373
33477
  });
33374
33478
  if (fileHistoryEnabled()) {
@@ -33703,7 +33807,7 @@ Error: sandbox required but unavailable: ${reason}
33703
33807
  });
33704
33808
  }
33705
33809
  } else {
33706
- injectUserMessageToTeammate(task.id, input, setAppState);
33810
+ injectUserMessageToTeammate(task.id, input, undefined, setAppState);
33707
33811
  }
33708
33812
  setInputValue("");
33709
33813
  helpers.setCursorOffset(0);
@@ -33744,7 +33848,11 @@ Error: sandbox required but unavailable: ${reason}
33744
33848
  }, []);
33745
33849
  const handleExit = import_react128.useCallback(async () => {
33746
33850
  setIsExiting(true);
33747
- if (false) {}
33851
+ if (isBgSession()) {
33852
+ spawnSync("tmux", ["detach-client"], { stdio: "ignore" });
33853
+ setIsExiting(false);
33854
+ return;
33855
+ }
33748
33856
  const showWorktree = getCurrentWorktreeSession() !== null;
33749
33857
  if (showWorktree) {
33750
33858
  setExitFlow(/* @__PURE__ */ jsx_dev_runtime99.jsxDEV(ExitFlow, {
@@ -34054,19 +34162,49 @@ ${fileList}`);
34054
34162
  idleHintShownRef.current = false;
34055
34163
  };
34056
34164
  }, [lastQueryCompletionTime, isLoading, addNotification, removeNotification]);
34057
- const handleIncomingPrompt = import_react128.useCallback((content, options) => {
34165
+ const handleIncomingPrompt = import_react128.useCallback((input, options) => {
34058
34166
  if (queryGuard.isActive)
34059
34167
  return false;
34060
34168
  if (getCommandQueue().some((cmd) => cmd.mode === "prompt" || cmd.mode === "bash")) {
34061
34169
  return false;
34062
34170
  }
34171
+ const queuedCommand = typeof input === "string" ? {
34172
+ value: input,
34173
+ mode: "prompt",
34174
+ isMeta: options?.isMeta ? true : undefined
34175
+ } : input;
34063
34176
  const newAbortController = createAbortController();
34064
34177
  setAbortController(newAbortController);
34065
34178
  const userMessage = createUserMessage({
34066
- content,
34067
- isMeta: options?.isMeta ? true : undefined
34179
+ content: queuedCommand.value,
34180
+ isMeta: queuedCommand.isMeta ? true : undefined,
34181
+ origin: queuedCommand.origin
34182
+ });
34183
+ const autonomyRunId = queuedCommand.autonomy?.runId;
34184
+ if (autonomyRunId) {
34185
+ markAutonomyRunRunning(autonomyRunId);
34186
+ }
34187
+ onQuery([userMessage], newAbortController, true, [], mainLoopModel).then(() => {
34188
+ if (autonomyRunId) {
34189
+ finalizeAutonomyRunCompleted({
34190
+ runId: autonomyRunId,
34191
+ currentDir: getCwd(),
34192
+ priority: "later"
34193
+ }).then((nextCommands) => {
34194
+ for (const command of nextCommands) {
34195
+ enqueue(command);
34196
+ }
34197
+ });
34198
+ }
34199
+ }).catch((error) => {
34200
+ if (autonomyRunId) {
34201
+ finalizeAutonomyRunFailed({
34202
+ runId: autonomyRunId,
34203
+ error: String(error)
34204
+ });
34205
+ }
34206
+ logError(toError(error));
34068
34207
  });
34069
- onQuery([userMessage], newAbortController, true, [], mainLoopModel);
34070
34208
  return true;
34071
34209
  }, [onQuery, mainLoopModel, store]);
34072
34210
  const { relayPipeMessage, pipeReturnHadErrorRef } = usePipeRelay();
@@ -34082,6 +34220,7 @@ ${fileList}`);
34082
34220
  useSlaveNotifications();
34083
34221
  const pipeIpcState = useAppState((s) => getPipeIpc(s));
34084
34222
  usePipePermissionForward({ store, tools, setMessages, setToolUseConfirmQueue, getToolUseContext, mainLoopModel });
34223
+ usePipeMuteSync({ setToolUseConfirmQueue });
34085
34224
  usePipeIpc({ store, handleIncomingPrompt });
34086
34225
  const { routeToSelectedPipes } = usePipeRouter({ store, setAppState, addNotification });
34087
34226
  if (true) {
@@ -34100,9 +34239,40 @@ ${fileList}`);
34100
34239
  queuedCommandsLength: queuedCommands.length,
34101
34240
  hasActiveLocalJsxUI: isShowingLocalJSXCommand,
34102
34241
  isInPlanMode: toolPermissionContext.mode === "plan",
34103
- onSubmitTick: (prompt) => handleIncomingPrompt(prompt, { isMeta: true }),
34104
- onQueueTick: (prompt) => enqueue({ mode: "prompt", value: prompt, isMeta: true })
34242
+ onQueueTick: (command) => enqueue(command)
34105
34243
  });
34244
+ import_react128.useEffect(() => {
34245
+ if (!proactiveActive) {
34246
+ notifyAutomationStateChanged(null);
34247
+ return;
34248
+ }
34249
+ if (isLoading) {
34250
+ return;
34251
+ }
34252
+ if (proactiveNextTickAt !== null && queuedCommands.length === 0 && !isShowingLocalJSXCommand && toolPermissionContext.mode !== "plan" && initialMessage === null) {
34253
+ notifyAutomationStateChanged({
34254
+ enabled: true,
34255
+ phase: "standby",
34256
+ next_tick_at: proactiveNextTickAt,
34257
+ sleep_until: null
34258
+ });
34259
+ return;
34260
+ }
34261
+ notifyAutomationStateChanged({
34262
+ enabled: true,
34263
+ phase: null,
34264
+ next_tick_at: null,
34265
+ sleep_until: null
34266
+ });
34267
+ }, [
34268
+ initialMessage,
34269
+ isLoading,
34270
+ isShowingLocalJSXCommand,
34271
+ proactiveActive,
34272
+ proactiveNextTickAt,
34273
+ queuedCommands.length,
34274
+ toolPermissionContext.mode
34275
+ ]);
34106
34276
  import_react128.useEffect(() => {
34107
34277
  if (queuedCommands.some((cmd) => cmd.priority === "now")) {
34108
34278
  abortControllerRef.current?.abort("interrupt");
@@ -34758,7 +34928,7 @@ Note: ctrl + z now suspends Claude Code, ctrl + _ undoes input.
34758
34928
  });
34759
34929
  }
34760
34930
  if (action === "clear") {
34761
- const { clearConversation: clearConversation2 } = await import("./chunk-9fsvmcz5.js");
34931
+ const { clearConversation: clearConversation2 } = await import("./chunk-mxezad7a.js");
34762
34932
  await clearConversation2({
34763
34933
  setMessages,
34764
34934
  readFileState: readFileState.current,