@luluyun/automd 1.0.0 → 1.0.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 (370) hide show
  1. package/README.md +32 -167
  2. package/README_EN.md +42 -19
  3. package/dist/{chunk-kkrpj15z.js → chunk-03yhyp33.js} +54 -53
  4. package/dist/{chunk-1b0n2maf.js → chunk-049cr4p3.js} +24 -23
  5. package/dist/{chunk-g7eswh87.js → chunk-07m6ht7d.js} +3 -3
  6. package/dist/{chunk-606nnckq.js → chunk-07rz03vg.js} +55 -54
  7. package/dist/{chunk-tc89z36b.js → chunk-07vnzh77.js} +4 -4
  8. package/dist/{chunk-9g94a34g.js → chunk-0ckrqekf.js} +54 -53
  9. package/dist/{chunk-11b3qsgr.js → chunk-0d0gkvg8.js} +1 -1
  10. package/dist/{chunk-1qqh5vcy.js → chunk-0d6amtma.js} +55 -54
  11. package/dist/{chunk-v8p9708x.js → chunk-0ezhm4vc.js} +3 -3
  12. package/dist/{chunk-7drmtgxp.js → chunk-0fyx9hph.js} +1 -1
  13. package/dist/{chunk-009984kz.js → chunk-0htp168q.js} +60 -59
  14. package/dist/chunk-0j698zm0.js +122 -0
  15. package/dist/{chunk-y3vzfy52.js → chunk-0pwt7qjx.js} +55 -54
  16. package/dist/{chunk-p1mdfgf4.js → chunk-11x0rbgg.js} +9 -8
  17. package/dist/{chunk-3wg497by.js → chunk-163tc8gd.js} +8 -6
  18. package/dist/{chunk-wpbdb292.js → chunk-1896h0na.js} +55 -54
  19. package/dist/{chunk-cqck4p0r.js → chunk-18nc0ymb.js} +55 -54
  20. package/dist/{chunk-js2mtdhx.js → chunk-19s1686b.js} +65 -64
  21. package/dist/{chunk-rkd7svgz.js → chunk-19y1nvgy.js} +69 -68
  22. package/dist/{chunk-w5r9c2qp.js → chunk-1es18r7g.js} +55 -54
  23. package/dist/{chunk-z2n64ef3.js → chunk-1khtzqrj.js} +5 -3
  24. package/dist/{chunk-j68ya1wq.js → chunk-1m674djk.js} +2 -2
  25. package/dist/{chunk-kkbavq92.js → chunk-1n08xy3a.js} +59 -58
  26. package/dist/{chunk-d2ydv73x.js → chunk-1p34gh9f.js} +55 -54
  27. package/dist/{chunk-21nz9nnc.js → chunk-1pkd62xw.js} +6 -6
  28. package/dist/{chunk-7jedqj9h.js → chunk-1pvqx2gk.js} +71 -70
  29. package/dist/{chunk-jtk7x4k0.js → chunk-1ray0p0s.js} +35 -33
  30. package/dist/{chunk-9xnsynpm.js → chunk-1scbyvc1.js} +6 -4
  31. package/dist/{chunk-vr9y1psc.js → chunk-1sh5aytt.js} +2 -1
  32. package/dist/{chunk-2zf7q833.js → chunk-1v1fkw9y.js} +8 -6
  33. package/dist/{chunk-9ak75gr6.js → chunk-1vpvfxca.js} +22 -21
  34. package/dist/{chunk-yqk99a86.js → chunk-1waynmy2.js} +2 -2
  35. package/dist/{chunk-4v661jfp.js → chunk-1we0hsed.js} +69 -68
  36. package/dist/{chunk-q14y53q1.js → chunk-1zh1bmad.js} +9 -7
  37. package/dist/{chunk-k1d8wfxs.js → chunk-1zz9gcjv.js} +55 -54
  38. package/dist/{chunk-m0a7dxqc.js → chunk-26vc0ke5.js} +20 -19
  39. package/dist/{chunk-j77j3xj5.js → chunk-275z8v5m.js} +9 -7
  40. package/dist/{chunk-b7nkgbms.js → chunk-27gewfhk.js} +5 -4
  41. package/dist/{chunk-q26j42bk.js → chunk-27srbs9p.js} +57 -56
  42. package/dist/{chunk-7ma84vsd.js → chunk-29vz8fqt.js} +54 -53
  43. package/dist/{chunk-z6a8xk3m.js → chunk-2c404886.js} +54 -53
  44. package/dist/{chunk-he1psp6f.js → chunk-2k7fb0y2.js} +1 -1
  45. package/dist/{chunk-3xngbz05.js → chunk-2m3ex024.js} +3 -3
  46. package/dist/{chunk-7706wbz7.js → chunk-2mecpdm4.js} +1 -1
  47. package/dist/{chunk-kv2tmk99.js → chunk-31prke86.js} +11 -9
  48. package/dist/{chunk-rqy8a9zn.js → chunk-38ngqpnb.js} +22 -21
  49. package/dist/{chunk-sf8drsdx.js → chunk-3bzt2tme.js} +7 -5
  50. package/dist/{chunk-ngm4pavy.js → chunk-3ej354vb.js} +4 -4
  51. package/dist/{chunk-s0r332zb.js → chunk-3jd9y134.js} +22 -20
  52. package/dist/{chunk-9vbfgsj2.js → chunk-3q8w9bbc.js} +1 -1
  53. package/dist/{chunk-adshwmsk.js → chunk-3qdknfrw.js} +3 -3
  54. package/dist/{chunk-0gctm20b.js → chunk-3v9vthmt.js} +5 -3
  55. package/dist/{chunk-h7mhp2mz.js → chunk-3xqafqjv.js} +10 -8
  56. package/dist/{chunk-gttvs4dz.js → chunk-3y8s02bw.js} +10 -8
  57. package/dist/{chunk-37bk9h3n.js → chunk-40v25wtv.js} +1 -7
  58. package/dist/{chunk-e434dqzf.js → chunk-44dnbs9c.js} +1 -1
  59. package/dist/{chunk-x5wr7tbp.js → chunk-486tcv6d.js} +20 -19
  60. package/dist/{chunk-g4y9jq1x.js → chunk-490052nn.js} +5 -4
  61. package/dist/{chunk-7tef20gk.js → chunk-49kn4ttd.js} +5 -5
  62. package/dist/{chunk-k5j1eqdm.js → chunk-4ac29e5q.js} +57 -56
  63. package/dist/{chunk-j7yr3vyy.js → chunk-4csvvre0.js} +23 -22
  64. package/dist/{chunk-3j7xjxa1.js → chunk-4ftbpd8r.js} +5 -3
  65. package/dist/{chunk-n70fs18n.js → chunk-4hcasyaf.js} +21 -20
  66. package/dist/{chunk-268hmtet.js → chunk-4j1yte1a.js} +55 -54
  67. package/dist/{chunk-72tamsb6.js → chunk-4kg91jva.js} +55 -54
  68. package/dist/{chunk-ggpxa6pv.js → chunk-4mbd13g5.js} +63 -62
  69. package/dist/{chunk-3rwfjhjg.js → chunk-4nwfzwsr.js} +24 -22
  70. package/dist/{chunk-dfxgqwz3.js → chunk-4qtxtg58.js} +21 -20
  71. package/dist/{chunk-r7hnnbw3.js → chunk-4scpe9pr.js} +8 -6
  72. package/dist/{chunk-a9br06ma.js → chunk-4vrtv2dc.js} +22 -21
  73. package/dist/{chunk-zyjqv5c3.js → chunk-52rf6m28.js} +11 -10
  74. package/dist/{chunk-03d70atn.js → chunk-57pb8wj9.js} +21 -20
  75. package/dist/{chunk-fxprxmrh.js → chunk-59zfcfhx.js} +6 -6
  76. package/dist/{chunk-ejpegwgn.js → chunk-5f3s5jbj.js} +6 -6
  77. package/dist/{chunk-wfgdqbza.js → chunk-5fm2scps.js} +1 -1
  78. package/dist/{chunk-mv72ye31.js → chunk-5hmr2c99.js} +7 -5
  79. package/dist/{chunk-2qgjf1zx.js → chunk-5ppj3ekh.js} +3 -3
  80. package/dist/{chunk-58qm58st.js → chunk-6be3a2p7.js} +2 -2
  81. package/dist/{chunk-v5r0zytv.js → chunk-6c48e3zt.js} +21 -20
  82. package/dist/{chunk-kzb38p8m.js → chunk-6nn3p38n.js} +26 -25
  83. package/dist/{chunk-0z9rtar5.js → chunk-6p2nxwcg.js} +57 -56
  84. package/dist/{chunk-ymtxxvt6.js → chunk-6s7ve29n.js} +4 -4
  85. package/dist/{chunk-js3jewxx.js → chunk-6v95y20t.js} +1 -1
  86. package/dist/{chunk-vsaqhchc.js → chunk-71veamfj.js} +57 -56
  87. package/dist/{chunk-qgh9yenv.js → chunk-7chxdbhx.js} +55 -54
  88. package/dist/{chunk-gy98csm9.js → chunk-7eqvz3g8.js} +21 -20
  89. package/dist/{chunk-rsj1w4cv.js → chunk-7f200vcg.js} +55 -54
  90. package/dist/{chunk-6kqp09yz.js → chunk-7fkxk9by.js} +2 -2
  91. package/dist/{chunk-9pnst74f.js → chunk-7jz54fee.js} +9 -7
  92. package/dist/{chunk-474v72wq.js → chunk-7krt9z38.js} +6 -6
  93. package/dist/{chunk-rtkfbw0m.js → chunk-7sjk6100.js} +21 -20
  94. package/dist/{chunk-krjx63ge.js → chunk-7ssm0jkg.js} +1 -1
  95. package/dist/{chunk-ah18jasj.js → chunk-7svwcjtj.js} +12 -10
  96. package/dist/{chunk-nd69zp7b.js → chunk-813jv72j.js} +1 -1
  97. package/dist/{chunk-x9ntdxt7.js → chunk-8a573a8v.js} +58 -57
  98. package/dist/{chunk-0yq5hdc4.js → chunk-8ndk835h.js} +21 -20
  99. package/dist/{chunk-kwgrbr2j.js → chunk-8qr3gcz8.js} +59 -58
  100. package/dist/{chunk-27mmaf0x.js → chunk-8t14cjnx.js} +1 -1
  101. package/dist/{chunk-e7ty93hy.js → chunk-8xtzhpy9.js} +15 -13
  102. package/dist/{chunk-rahbr3qv.js → chunk-90cvnjgd.js} +20 -19
  103. package/dist/{chunk-595zqmhh.js → chunk-926b935w.js} +60 -59
  104. package/dist/{chunk-ay7ert7t.js → chunk-984wdqxh.js} +54 -53
  105. package/dist/{chunk-pgw1hq7r.js → chunk-98x2tswg.js} +57 -55
  106. package/dist/{chunk-szv4542t.js → chunk-9cfqyw0w.js} +72 -70
  107. package/dist/{chunk-5k1k3d6m.js → chunk-9ds0ercn.js} +4 -4
  108. package/dist/{chunk-rt9hmh7z.js → chunk-9dwzm332.js} +4 -4
  109. package/dist/{chunk-agqw1abk.js → chunk-9f8dr27m.js} +15 -13
  110. package/dist/{chunk-dpemqhf4.js → chunk-9nr7ef4a.js} +10 -9
  111. package/dist/{chunk-3hr1832a.js → chunk-9rnat1cm.js} +4 -4
  112. package/dist/{chunk-k566ab0v.js → chunk-9t728wrh.js} +21 -20
  113. package/dist/{chunk-m2gkjypz.js → chunk-9xcttsfw.js} +57 -56
  114. package/dist/{chunk-ecwrcz5z.js → chunk-9z71ydnn.js} +1 -1
  115. package/dist/{chunk-mfhhc5sm.js → chunk-a2m4jp23.js} +5 -5
  116. package/dist/{chunk-sqmkz226.js → chunk-actn9xy3.js} +6 -4
  117. package/dist/{chunk-w9jpytt1.js → chunk-ahxa2dfc.js} +54 -53
  118. package/dist/{chunk-h2n8s1re.js → chunk-aj5af2qt.js} +56 -55
  119. package/dist/{chunk-hxwr1814.js → chunk-ann1j62j.js} +56 -55
  120. package/dist/{chunk-a5r4y882.js → chunk-arqs4yec.js} +9 -7
  121. package/dist/{chunk-wqrfjb54.js → chunk-b36mgqc4.js} +92 -90
  122. package/dist/{chunk-023ch6fb.js → chunk-b3x0351w.js} +56 -55
  123. package/dist/{chunk-c89k5tac.js → chunk-b59znrc6.js} +54 -53
  124. package/dist/{chunk-tne98r9y.js → chunk-b6fqg2s3.js} +55 -54
  125. package/dist/{chunk-hyvnej21.js → chunk-b9e8647r.js} +9 -9
  126. package/dist/{chunk-pgm8amfj.js → chunk-bcqtgtgh.js} +54 -53
  127. package/dist/{chunk-sepwzp6y.js → chunk-berrk2wz.js} +13 -518
  128. package/dist/{chunk-3dsq4e0v.js → chunk-bhae604f.js} +57 -55
  129. package/dist/{chunk-mdtvwee6.js → chunk-bhqqn89c.js} +6 -6
  130. package/dist/{chunk-gt5ephty.js → chunk-bky485sf.js} +54 -53
  131. package/dist/{chunk-2m5gxb4x.js → chunk-bmwmkvdt.js} +7 -6
  132. package/dist/{chunk-bdc7csmj.js → chunk-c59zntr0.js} +2 -2
  133. package/dist/{chunk-qfwkb701.js → chunk-c86t5vxw.js} +2 -2
  134. package/dist/{chunk-y0ragvhd.js → chunk-ckkn8hyr.js} +1 -1
  135. package/dist/{chunk-4g3mr6ey.js → chunk-cm5pgvw0.js} +7 -6
  136. package/dist/{chunk-j48qr37t.js → chunk-cmxnw1av.js} +7 -5
  137. package/dist/{chunk-zhrd2qa9.js → chunk-ctpnv4gs.js} +2 -2
  138. package/dist/{chunk-hzaba6g1.js → chunk-czebmh3m.js} +59 -58
  139. package/dist/{chunk-74sqxz7f.js → chunk-d1pa6s33.js} +8 -6
  140. package/dist/{chunk-48886h6r.js → chunk-d41g0g7a.js} +5 -3
  141. package/dist/{chunk-93y70e2n.js → chunk-db02s4sh.js} +11 -9
  142. package/dist/{chunk-72v17pwk.js → chunk-dcxkw56m.js} +54 -53
  143. package/dist/{chunk-5g220843.js → chunk-dd743gjn.js} +62 -61
  144. package/dist/{chunk-ajt9q255.js → chunk-dn9bhy8j.js} +9 -8
  145. package/dist/{chunk-2ts94cnh.js → chunk-dq8td2y9.js} +8 -6
  146. package/dist/{chunk-qgz20q4v.js → chunk-dvwv7snv.js} +26 -26
  147. package/dist/{chunk-fbmq76bj.js → chunk-dxh3gytb.js} +22 -21
  148. package/dist/{chunk-zhxkd4kj.js → chunk-e966jd0k.js} +3 -3
  149. package/dist/{chunk-f4epa3hc.js → chunk-e9bez5dn.js} +1 -1
  150. package/dist/{chunk-995kmmrz.js → chunk-eaahr2r4.js} +1 -1
  151. package/dist/{chunk-164wnfy0.js → chunk-egs5jd5x.js} +55 -54
  152. package/dist/{chunk-j0kzzyjd.js → chunk-ej24wkkb.js} +5 -5
  153. package/dist/{chunk-d3h1vpsm.js → chunk-ervdjsdx.js} +9 -8
  154. package/dist/{chunk-m2w7bvy5.js → chunk-exmr6rxj.js} +4 -4
  155. package/dist/{chunk-7zszecca.js → chunk-ey2bdkkh.js} +5 -5
  156. package/dist/{chunk-9jyzah2d.js → chunk-eybanjf4.js} +9 -7
  157. package/dist/{chunk-jdggam3k.js → chunk-eyr9fq31.js} +60 -59
  158. package/dist/{chunk-bxzqgj26.js → chunk-eyrdjcn9.js} +21 -20
  159. package/dist/{chunk-4dy7571n.js → chunk-ez3jjzyw.js} +55 -54
  160. package/dist/{chunk-0nbcz4ss.js → chunk-f1ep2fhh.js} +56 -55
  161. package/dist/{chunk-qqynb587.js → chunk-f5t7hps2.js} +56 -55
  162. package/dist/{chunk-4z5e64cd.js → chunk-f8sm9vp2.js} +55 -54
  163. package/dist/{chunk-zk3w50yj.js → chunk-fav4kraz.js} +1 -1
  164. package/dist/{chunk-c772gc4k.js → chunk-fc0vs6ch.js} +11 -10
  165. package/dist/{chunk-95qjskk2.js → chunk-fjx8jpna.js} +4 -4
  166. package/dist/chunk-fq8vpp8s.js +185 -0
  167. package/dist/{chunk-4zvhmyca.js → chunk-ftxkjear.js} +54 -53
  168. package/dist/{chunk-833c36vk.js → chunk-fwb8h053.js} +48 -46
  169. package/dist/{chunk-1hsygdr1.js → chunk-fx4z8jhr.js} +55 -54
  170. package/dist/{chunk-6qf93p8j.js → chunk-g4qbshyq.js} +3 -3
  171. package/dist/{chunk-9d9ez9r3.js → chunk-g7q1asth.js} +6 -6
  172. package/dist/{chunk-yxgqz1e1.js → chunk-gb33nk84.js} +54 -53
  173. package/dist/{chunk-cctc0ern.js → chunk-ge14z4d6.js} +15 -15
  174. package/dist/{chunk-kfzv3z83.js → chunk-gnrhatd7.js} +8 -6
  175. package/dist/{chunk-f54pn813.js → chunk-gw6bs4pc.js} +21 -20
  176. package/dist/{chunk-hf2kz9cy.js → chunk-gw7em9ax.js} +59 -57
  177. package/dist/{chunk-bhva894j.js → chunk-gytve1pf.js} +10 -8
  178. package/dist/{chunk-hzpb0xmv.js → chunk-h19qy0q7.js} +2 -2
  179. package/dist/{chunk-0392yj84.js → chunk-h3av2qdd.js} +8 -8
  180. package/dist/{chunk-fkct2yqq.js → chunk-h5mst1mc.js} +21 -20
  181. package/dist/{chunk-ygqj2dzj.js → chunk-h7c6ccc8.js} +5 -5
  182. package/dist/chunk-h9z4ajv7.js +119 -0
  183. package/dist/{chunk-qrrjjag5.js → chunk-hcc8z63k.js} +56 -55
  184. package/dist/{chunk-94bw60a7.js → chunk-hgzzfp8e.js} +56 -55
  185. package/dist/{chunk-j1xxwx0h.js → chunk-hk2g8dns.js} +8 -8
  186. package/dist/{chunk-9rvaeawh.js → chunk-hkwassdn.js} +20 -19
  187. package/dist/{chunk-kgyjrmz5.js → chunk-hsz0vb28.js} +10 -9
  188. package/dist/{chunk-3jnsm9tj.js → chunk-ht7g8sna.js} +55 -54
  189. package/dist/{chunk-7ggd0jz5.js → chunk-htd64cb9.js} +6 -6
  190. package/dist/{chunk-q1b5cjnw.js → chunk-hts80g90.js} +4 -3
  191. package/dist/{chunk-gfp4h4yv.js → chunk-hvez228m.js} +8 -6
  192. package/dist/{chunk-25ckr5z4.js → chunk-hxd9gg36.js} +65 -63
  193. package/dist/{chunk-q6pc57m2.js → chunk-hxmhg1e5.js} +5 -5
  194. package/dist/{chunk-c5c0an9e.js → chunk-hys76hws.js} +57 -56
  195. package/dist/{chunk-gfawgyha.js → chunk-j09wtjms.js} +2 -2
  196. package/dist/{chunk-x4ckp6p9.js → chunk-j2ap635h.js} +1 -1
  197. package/dist/{chunk-c2fpsd31.js → chunk-j3rhm8e4.js} +1 -1
  198. package/dist/{chunk-57xh5nw2.js → chunk-j5ymrvfh.js} +11 -9
  199. package/dist/{chunk-pvhffspb.js → chunk-j6bmy7rr.js} +55 -54
  200. package/dist/{chunk-jq3br2ep.js → chunk-j6f03zve.js} +1 -1
  201. package/dist/{chunk-g3zggh5s.js → chunk-j70kn8a4.js} +63 -62
  202. package/dist/{chunk-jw6sawwy.js → chunk-j7bb9d57.js} +2 -2
  203. package/dist/{chunk-f7hfhp06.js → chunk-jbabv6h2.js} +20 -19
  204. package/dist/{chunk-tkm3r9dx.js → chunk-jczygw42.js} +1 -1
  205. package/dist/{chunk-fkby609a.js → chunk-jf50dy1a.js} +179 -177
  206. package/dist/{chunk-aqts9eem.js → chunk-jnmjrt8q.js} +4 -4
  207. package/dist/{chunk-yqm9qex5.js → chunk-jqhx74tb.js} +61 -60
  208. package/dist/{chunk-5zq1myse.js → chunk-jqvcragy.js} +7 -6
  209. package/dist/{chunk-mn8t4kb8.js → chunk-jtc5hc3v.js} +1 -1
  210. package/dist/chunk-k2aedy4h.js +494 -0
  211. package/dist/{chunk-4jjz11cv.js → chunk-k3fdvzs9.js} +16 -16
  212. package/dist/{chunk-zp5wzmcg.js → chunk-kb1bzmyx.js} +1 -1
  213. package/dist/{chunk-xg24xr82.js → chunk-kbfcbhnf.js} +54 -53
  214. package/dist/{chunk-0tav8jts.js → chunk-kbjdrctf.js} +2 -2
  215. package/dist/{chunk-brgcwy2d.js → chunk-kcq8htsq.js} +10 -9
  216. package/dist/{chunk-vz2a56z3.js → chunk-kesshk0v.js} +21 -20
  217. package/dist/{chunk-94t681v2.js → chunk-knmfr8k6.js} +6 -4
  218. package/dist/{chunk-d3tvytm9.js → chunk-kr605k2f.js} +54 -53
  219. package/dist/{chunk-w04071n1.js → chunk-kvn29adk.js} +1 -8
  220. package/dist/{chunk-wb6qms6j.js → chunk-kxqj72pz.js} +8 -6
  221. package/dist/{chunk-g6v738nc.js → chunk-kz7q0kzc.js} +2 -2
  222. package/dist/{chunk-em0tcgcb.js → chunk-mcrcmq41.js} +14 -12
  223. package/dist/{chunk-63mmec9v.js → chunk-md4k3zdj.js} +3 -3
  224. package/dist/{chunk-bbajeek4.js → chunk-me7t5g4j.js} +10 -8
  225. package/dist/{chunk-e0kx60nq.js → chunk-mh97drey.js} +63 -61
  226. package/dist/{chunk-2qc3g8pg.js → chunk-mky9qzjp.js} +68 -66
  227. package/dist/{chunk-y0285awc.js → chunk-mnb6dmek.js} +19 -17
  228. package/dist/{chunk-wzvsfwn9.js → chunk-ms52tsjt.js} +1 -1
  229. package/dist/{chunk-m6tjzhxk.js → chunk-mwqz6csw.js} +58 -56
  230. package/dist/{chunk-b8xxc1zm.js → chunk-n3aa4cb1.js} +4 -4
  231. package/dist/{chunk-j7gfqh8v.js → chunk-nfm5ndj4.js} +2 -2
  232. package/dist/{chunk-j676tme0.js → chunk-nj7tp8v8.js} +3 -3
  233. package/dist/{chunk-peta84gt.js → chunk-nmb01v4w.js} +22 -21
  234. package/dist/{chunk-19d6p645.js → chunk-p5xpj8v0.js} +9 -7
  235. package/dist/{chunk-g6a24f3c.js → chunk-p6fkxhjp.js} +54 -53
  236. package/dist/{chunk-fhejpaee.js → chunk-p7nf05sy.js} +63 -62
  237. package/dist/{chunk-e3a12qcr.js → chunk-p7x7hfq2.js} +9 -7
  238. package/dist/{chunk-vvkcc1sc.js → chunk-paem1yxq.js} +56 -55
  239. package/dist/{chunk-0wz695w4.js → chunk-pb7x469y.js} +9 -8
  240. package/dist/{chunk-nj4sav8f.js → chunk-pcfbtjt5.js} +55 -54
  241. package/dist/{chunk-3xq9hjtz.js → chunk-pcrbcd2b.js} +7 -7
  242. package/dist/{chunk-kfswbr9v.js → chunk-pdpseqc9.js} +54 -53
  243. package/dist/{chunk-926f5m2d.js → chunk-pjztxan3.js} +54 -53
  244. package/dist/{chunk-n280s88s.js → chunk-pnwyawca.js} +1 -1
  245. package/dist/{chunk-s8k5adwg.js → chunk-pp14gd6q.js} +9 -7
  246. package/dist/{chunk-nn0d1dcc.js → chunk-pp8jg9mv.js} +55 -54
  247. package/dist/{chunk-nmwy4vdy.js → chunk-psqqxdb0.js} +2 -2
  248. package/dist/{chunk-5jnsv9y8.js → chunk-pt0tf166.js} +2 -2
  249. package/dist/{chunk-m00kgtdv.js → chunk-pt509hh1.js} +60 -58
  250. package/dist/{chunk-3kgmjhey.js → chunk-pwajrasd.js} +9 -8
  251. package/dist/{chunk-dayaf02m.js → chunk-py5vaaaq.js} +35 -33
  252. package/dist/{chunk-1x50ys1y.js → chunk-q117re3g.js} +20 -19
  253. package/dist/{chunk-zq8y3355.js → chunk-q3jh73k8.js} +1 -1
  254. package/dist/{chunk-h3bdc76z.js → chunk-q5egc5ra.js} +54 -53
  255. package/dist/{chunk-tsr13vfe.js → chunk-q60bz9y6.js} +5 -8
  256. package/dist/{chunk-17rhtdg6.js → chunk-qawtymmw.js} +2 -2
  257. package/dist/{chunk-3qzmqejh.js → chunk-qbthzfym.js} +59 -58
  258. package/dist/{chunk-e9q08z34.js → chunk-qe2ppfda.js} +3 -3
  259. package/dist/{chunk-zbcfjyw0.js → chunk-qf96q4pz.js} +54 -53
  260. package/dist/{chunk-53j4whv1.js → chunk-qffsmp22.js} +3 -3
  261. package/dist/{chunk-av5hq58j.js → chunk-qj7zh2fe.js} +17 -17
  262. package/dist/{chunk-vakspmnq.js → chunk-qjzvsq8w.js} +64 -63
  263. package/dist/{chunk-q6pn7mdk.js → chunk-qna8h7pt.js} +54 -53
  264. package/dist/{chunk-6xw0f15a.js → chunk-qpg0hbn2.js} +20 -19
  265. package/dist/{chunk-g714v635.js → chunk-qprwfra0.js} +54 -53
  266. package/dist/{chunk-xzj1v56g.js → chunk-qqk0yxtr.js} +1 -1
  267. package/dist/{chunk-jfk454hh.js → chunk-qrcgmnxm.js} +1 -1
  268. package/dist/{chunk-nb6xj9yd.js → chunk-qvr6rjqq.js} +57 -56
  269. package/dist/{chunk-604q83ks.js → chunk-qyqw604q.js} +2 -2
  270. package/dist/{chunk-f31e900p.js → chunk-r0zznvhg.js} +26 -25
  271. package/dist/{chunk-whdhabrc.js → chunk-r6nc66q8.js} +58 -57
  272. package/dist/{chunk-qcqnyy0q.js → chunk-r80t5k98.js} +6 -4
  273. package/dist/{chunk-d12ja1w1.js → chunk-r94h1z5r.js} +54 -53
  274. package/dist/{chunk-qkj4k00m.js → chunk-rb4evejq.js} +1 -1
  275. package/dist/{chunk-zfqgxmcz.js → chunk-rh0e38e2.js} +1 -1
  276. package/dist/{chunk-22p30zkd.js → chunk-rhf1z7gc.js} +1 -1
  277. package/dist/{chunk-66dm3nwe.js → chunk-rr2hzer2.js} +886 -880
  278. package/dist/{chunk-zasn6e6b.js → chunk-rr43zswx.js} +57 -56
  279. package/dist/{chunk-8sa7hjcs.js → chunk-rr6qqq1v.js} +57 -56
  280. package/dist/{chunk-5yfm0wv7.js → chunk-rsezdx6w.js} +100 -98
  281. package/dist/{chunk-3bcs7meg.js → chunk-ry4h96fp.js} +2 -2
  282. package/dist/{chunk-zjcma7km.js → chunk-s1v256k5.js} +6 -5
  283. package/dist/{chunk-p6y1yedy.js → chunk-s3cexa82.js} +58 -56
  284. package/dist/{chunk-7sspj7q7.js → chunk-s3fbdhty.js} +57 -56
  285. package/dist/chunk-s51wc9yj.js +119 -0
  286. package/dist/{chunk-jwj3nj5b.js → chunk-s5g6cna1.js} +4 -3
  287. package/dist/{chunk-w3fp57qz.js → chunk-s5tfdnkv.js} +3 -2
  288. package/dist/{chunk-qbd4h5aj.js → chunk-s727qyst.js} +22 -21
  289. package/dist/{chunk-wfzajb4k.js → chunk-s81zfphq.js} +54 -53
  290. package/dist/{chunk-s9cwh8jr.js → chunk-s8a1er0k.js} +4 -4
  291. package/dist/{chunk-eeankjhv.js → chunk-sg1by608.js} +58 -57
  292. package/dist/{chunk-vshwxbdt.js → chunk-sm080rzr.js} +55 -54
  293. package/dist/{chunk-mg27yq5g.js → chunk-sr231sxa.js} +57 -56
  294. package/dist/{chunk-hdydbd6n.js → chunk-ssqkwayr.js} +3 -3
  295. package/dist/{chunk-fwwfs5px.js → chunk-sxw4cmwa.js} +26 -24
  296. package/dist/{chunk-3g9qc0r7.js → chunk-syb8q1a7.js} +6 -6
  297. package/dist/{chunk-6p01yzbv.js → chunk-sz369f7p.js} +1 -1
  298. package/dist/{chunk-55cdfz5s.js → chunk-tec2m8m9.js} +55 -54
  299. package/dist/{chunk-hbqf8gcx.js → chunk-th778mte.js} +22 -21
  300. package/dist/{chunk-69fev66a.js → chunk-tmxndttq.js} +1 -1
  301. package/dist/{chunk-8j3t8sfh.js → chunk-ty0yf565.js} +2 -2
  302. package/dist/{chunk-pfne5pc6.js → chunk-tzxm1qpd.js} +54 -53
  303. package/dist/{chunk-5fbc0x1x.js → chunk-v4h287k2.js} +10 -10
  304. package/dist/{chunk-7kf7bhsn.js → chunk-v8qxrewy.js} +5 -5
  305. package/dist/{chunk-gbc3hqxr.js → chunk-vekf3h3e.js} +5 -5
  306. package/dist/{chunk-13f7w7t7.js → chunk-vgmgqjdr.js} +21 -20
  307. package/dist/{chunk-v0nhtzyr.js → chunk-vhd3112j.js} +54 -53
  308. package/dist/{chunk-0fgksm4v.js → chunk-vn0s2f0t.js} +2 -2
  309. package/dist/{chunk-30t167rn.js → chunk-vrtkdk78.js} +24 -23
  310. package/dist/{chunk-hbj8nfr8.js → chunk-vs6jbwce.js} +55 -54
  311. package/dist/{chunk-pk919mxt.js → chunk-vym6ecc4.js} +1 -1
  312. package/dist/{chunk-ecnp0gg8.js → chunk-vz7s36ha.js} +6 -4
  313. package/dist/{chunk-t9bjcy5g.js → chunk-vzj5fr8q.js} +57 -56
  314. package/dist/{chunk-1ydcbefn.js → chunk-w0vmqtw5.js} +1 -1
  315. package/dist/{chunk-gg0tq2y9.js → chunk-w1b95wbx.js} +2 -2
  316. package/dist/{chunk-acvbnx48.js → chunk-w9v1v0zw.js} +5 -5
  317. package/dist/{chunk-eg9c4vg6.js → chunk-wd1vz4aq.js} +57 -56
  318. package/dist/{chunk-2a02pnrg.js → chunk-wdr8sk6s.js} +54 -53
  319. package/dist/{chunk-a5rhefy3.js → chunk-wfa6tv6q.js} +59 -58
  320. package/dist/{chunk-rbq3arh6.js → chunk-wfrj757m.js} +1 -1
  321. package/dist/{chunk-edty0bmy.js → chunk-wgg5m77q.js} +5 -3
  322. package/dist/chunk-wj7tkzgf.js +122 -0
  323. package/dist/{chunk-jy5tdhvj.js → chunk-wktyrws7.js} +10 -8
  324. package/dist/{chunk-7knsym93.js → chunk-wqb2gr1q.js} +61 -60
  325. package/dist/{chunk-jkrmwfzj.js → chunk-x258tnhw.js} +54 -53
  326. package/dist/{chunk-s216t5fh.js → chunk-x5bpppd4.js} +2 -2
  327. package/dist/{chunk-g2c7g1rs.js → chunk-xaje82s9.js} +25 -25
  328. package/dist/{chunk-xfpw9epw.js → chunk-xfkp0p02.js} +56 -55
  329. package/dist/{chunk-k398drqn.js → chunk-xhasgaxp.js} +63 -62
  330. package/dist/{chunk-708j0sq4.js → chunk-xnfp379r.js} +22 -21
  331. package/dist/{chunk-z3gr6gsz.js → chunk-xpzcbvcd.js} +9 -9
  332. package/dist/{chunk-r2p162kd.js → chunk-xs2y2sav.js} +56 -55
  333. package/dist/{chunk-pce5hv6g.js → chunk-xs4xpxjg.js} +54 -53
  334. package/dist/{chunk-79a3qw9m.js → chunk-xtfc0528.js} +21 -20
  335. package/dist/{chunk-1eth2p2m.js → chunk-xww754c2.js} +9 -8
  336. package/dist/{chunk-ap269m7m.js → chunk-xx0wk227.js} +12 -10
  337. package/dist/{chunk-kbt96bs4.js → chunk-y1fhmk40.js} +21 -17
  338. package/dist/{chunk-pf1bvr99.js → chunk-y1gvgx5x.js} +1 -1
  339. package/dist/{chunk-dahentrc.js → chunk-y230hx8v.js} +14 -12
  340. package/dist/{chunk-caxnxf4z.js → chunk-y56m5qyh.js} +32 -30
  341. package/dist/{chunk-aeepqjh1.js → chunk-y92r0hrv.js} +3 -2
  342. package/dist/{chunk-mk9avgv8.js → chunk-yf81mjer.js} +9 -7
  343. package/dist/{chunk-c001ecx7.js → chunk-yk441xjd.js} +2 -2
  344. package/dist/{chunk-t2ey4g22.js → chunk-yk6bb79v.js} +68 -67
  345. package/dist/{chunk-2st57p4f.js → chunk-yq9t8xss.js} +8 -6
  346. package/dist/{chunk-d90r72sm.js → chunk-yt85vdfb.js} +4 -4
  347. package/dist/{chunk-zrwg85kf.js → chunk-ytam595f.js} +54 -53
  348. package/dist/{chunk-xc3vycnq.js → chunk-yx1zay4h.js} +54 -53
  349. package/dist/{chunk-yentky6k.js → chunk-yyrs5wj8.js} +54 -53
  350. package/dist/{chunk-1g64f12t.js → chunk-z0khh7cw.js} +27 -25
  351. package/dist/{chunk-fxdj4wxj.js → chunk-z2jyv3za.js} +54 -53
  352. package/dist/{chunk-gskba4cp.js → chunk-z88xhqp8.js} +56 -55
  353. package/dist/{chunk-kme5xvp8.js → chunk-za5qp8vn.js} +54 -53
  354. package/dist/{chunk-p550m9ph.js → chunk-zb242aza.js} +22 -21
  355. package/dist/{chunk-avwppas4.js → chunk-zgepe2he.js} +25 -24
  356. package/dist/{chunk-2nxg3smd.js → chunk-zjnwa5a7.js} +116 -115
  357. package/dist/{chunk-pbvewrys.js → chunk-zk4649wd.js} +13 -13
  358. package/dist/{chunk-n12fkqm8.js → chunk-zmg2y3m0.js} +1 -1
  359. package/dist/{chunk-q2dcwd0s.js → chunk-zn0391k2.js} +21 -20
  360. package/dist/{chunk-g0708sxq.js → chunk-zr3vxx8f.js} +54 -53
  361. package/dist/{chunk-bprg82eg.js → chunk-zrk1k0n6.js} +58 -56
  362. package/dist/{chunk-1wsxfmjh.js → chunk-zwrzne74.js} +57 -56
  363. package/dist/cli.js +36 -36
  364. package/package.json +2 -2
  365. package/dist/chunk-0rv9hreq.js +0 -184
  366. package/dist/chunk-8nd0phkx.js +0 -121
  367. package/dist/chunk-adjzdv3w.js +0 -118
  368. package/dist/chunk-aej03dqk.js +0 -118
  369. package/dist/chunk-y1pf1gq2.js +0 -121
  370. package/dist/{chunk-6kp74mx0.js → chunk-ejnxa6q2.js} +4 -4
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getTeammateModeFromSnapshot,
4
4
  init_teammateModeSnapshot
5
- } from "./chunk-6qf93p8j.js";
5
+ } from "./chunk-g4qbshyq.js";
6
6
  import {
7
7
  DANGEROUS_uncachedSystemPromptSection,
8
8
  clearSystemPromptSections,
@@ -33,7 +33,7 @@ import {
33
33
  getUndercoverInstructions,
34
34
  init_undercover,
35
35
  isUndercover
36
- } from "./chunk-bdc7csmj.js";
36
+ } from "./chunk-c59zntr0.js";
37
37
  import {
38
38
  calculateCommitAttribution,
39
39
  createEmptyAttributionState,
@@ -41,7 +41,7 @@ import {
41
41
  isInternalModelRepo,
42
42
  isInternalModelRepoCached,
43
43
  sanitizeModelName
44
- } from "./chunk-19d6p645.js";
44
+ } from "./chunk-p5xpj8v0.js";
45
45
  import {
46
46
  init_subprocessEnv,
47
47
  subprocessEnv
@@ -80,7 +80,7 @@ import {
80
80
  unregisterTeamForSessionCleanup,
81
81
  updateTask,
82
82
  writeTeamFileAsync
83
- } from "./chunk-57xh5nw2.js";
83
+ } from "./chunk-j5ymrvfh.js";
84
84
  import {
85
85
  EMPTY_USAGE,
86
86
  asSystemPrompt,
@@ -104,15 +104,15 @@ import {
104
104
  sendSessionActivitySignal,
105
105
  startSessionActivity,
106
106
  stopSessionActivity
107
- } from "./chunk-e3a12qcr.js";
107
+ } from "./chunk-p7x7hfq2.js";
108
108
  import {
109
109
  clearTrustedDeviceTokenCache,
110
110
  init_trustedDevice
111
- } from "./chunk-j48qr37t.js";
111
+ } from "./chunk-cmxnw1av.js";
112
112
  import {
113
113
  init_bridgeEnabled,
114
114
  isBridgeEnabled
115
- } from "./chunk-d90r72sm.js";
115
+ } from "./chunk-yt85vdfb.js";
116
116
  import {
117
117
  BRIDGE_LOGIN_INSTRUCTION,
118
118
  REMOTE_CONTROL_DISCONNECTED_MSG,
@@ -134,22 +134,22 @@ import {
134
134
  parsePluginIdentifier,
135
135
  scopeToSettingSource,
136
136
  settingSourceToScope
137
- } from "./chunk-x4ckp6p9.js";
137
+ } from "./chunk-j2ap635h.js";
138
138
  import {
139
139
  captureException,
140
140
  closeSentry,
141
141
  init_sentry
142
- } from "./chunk-ngm4pavy.js";
142
+ } from "./chunk-3ej354vb.js";
143
143
  import {
144
144
  CLAUDE_IN_CHROME_MCP_SERVER_NAME,
145
145
  init_common as init_common2,
146
146
  isAngshengInChromeMCPServer,
147
147
  trackAngshengInChromeTabId
148
- } from "./chunk-3wg497by.js";
148
+ } from "./chunk-163tc8gd.js";
149
149
  import {
150
150
  getCompanion,
151
151
  init_companion
152
- } from "./chunk-11b3qsgr.js";
152
+ } from "./chunk-0d0gkvg8.js";
153
153
  import {
154
154
  hasMalformedTokens,
155
155
  hasShellQuoteSingleQuoteBug,
@@ -157,7 +157,7 @@ import {
157
157
  quote,
158
158
  require_shell_quote,
159
159
  tryParseShellCommand
160
- } from "./chunk-qfwkb701.js";
160
+ } from "./chunk-c86t5vxw.js";
161
161
  import {
162
162
  READ_FILE_STATE_CACHE_SIZE,
163
163
  cacheKeys,
@@ -174,13 +174,13 @@ import {
174
174
  init_useDoublePress,
175
175
  init_useExitOnCtrlCDWithKeybindings,
176
176
  useExitOnCtrlCDWithKeybindings
177
- } from "./chunk-9d9ez9r3.js";
177
+ } from "./chunk-g7q1asth.js";
178
178
  import {
179
179
  init_projectOnboardingState,
180
180
  init_terminalSetup,
181
181
  markBackslashReturnUsed,
182
182
  maybeMarkProjectOnboardingComplete
183
- } from "./chunk-e7ty93hy.js";
183
+ } from "./chunk-8xtzhpy9.js";
184
184
  import {
185
185
  debugBody,
186
186
  exports_sessionIdCompat,
@@ -188,10 +188,10 @@ import {
188
188
  init_debugUtils,
189
189
  init_sessionIdCompat,
190
190
  toCompatSessionId
191
- } from "./chunk-3j7xjxa1.js";
191
+ } from "./chunk-4ftbpd8r.js";
192
192
  import {
193
193
  init_useKeybinding
194
- } from "./chunk-n12fkqm8.js";
194
+ } from "./chunk-zmg2y3m0.js";
195
195
  import {
196
196
  gt,
197
197
  gte,
@@ -207,34 +207,34 @@ import {
207
207
  exports_poorMode,
208
208
  init_poorMode,
209
209
  isPoorModeActive
210
- } from "./chunk-jfk454hh.js";
210
+ } from "./chunk-qrcgmnxm.js";
211
211
  import {
212
212
  checkComputerUseLock,
213
213
  init_computerUseLock,
214
214
  tryAcquireComputerUseLock
215
- } from "./chunk-z2n64ef3.js";
215
+ } from "./chunk-1khtzqrj.js";
216
216
  import {
217
217
  getBridgeBaseUrl,
218
218
  init_bridgeConfig,
219
219
  isSelfHostedBridge
220
- } from "./chunk-zk3w50yj.js";
220
+ } from "./chunk-fav4kraz.js";
221
221
  import {
222
222
  init_voiceModeEnabled,
223
223
  isVoiceGrowthBookEnabled,
224
224
  isVoiceModeEnabled
225
- } from "./chunk-wfgdqbza.js";
225
+ } from "./chunk-5fm2scps.js";
226
226
  import {
227
227
  fetchSession,
228
228
  getBranchFromSession,
229
229
  getOAuthHeaders,
230
230
  init_api,
231
231
  isTransientNetworkError
232
- } from "./chunk-a5r4y882.js";
232
+ } from "./chunk-arqs4yec.js";
233
233
  import {
234
234
  init_browser,
235
235
  openBrowser,
236
236
  openPath
237
- } from "./chunk-y0ragvhd.js";
237
+ } from "./chunk-ckkn8hyr.js";
238
238
  import {
239
239
  OTLPTraceExporter,
240
240
  init_esm as init_esm3
@@ -261,13 +261,13 @@ import {
261
261
  startToolExecutionSpan,
262
262
  startToolSpan,
263
263
  unregisterAgent
264
- } from "./chunk-sqmkz226.js";
264
+ } from "./chunk-actn9xy3.js";
265
265
  import {
266
266
  BasicTracerProvider,
267
267
  BatchSpanProcessor,
268
268
  SimpleSpanProcessor,
269
269
  init_esm as init_esm2
270
- } from "./chunk-wzvsfwn9.js";
270
+ } from "./chunk-ms52tsjt.js";
271
271
  import {
272
272
  init_detection,
273
273
  isInITerm2,
@@ -275,7 +275,7 @@ import {
275
275
  isInsideTmuxSync,
276
276
  isIt2CliAvailable,
277
277
  isTmuxAvailable
278
- } from "./chunk-c001ecx7.js";
278
+ } from "./chunk-yk441xjd.js";
279
279
  import {
280
280
  SWARM_SESSION_NAME,
281
281
  TEAMMATE_COMMAND_ENV_VAR,
@@ -286,15 +286,15 @@ import {
286
286
  import {
287
287
  getComputerUseHostAdapter,
288
288
  init_hostAdapter
289
- } from "./chunk-7tef20gk.js";
289
+ } from "./chunk-49kn4ttd.js";
290
290
  import {
291
291
  getChicagoCoordinateMode,
292
292
  init_gates
293
- } from "./chunk-7706wbz7.js";
293
+ } from "./chunk-2mecpdm4.js";
294
294
  import {
295
295
  init_datadog,
296
296
  shutdownDatadog
297
- } from "./chunk-0fgksm4v.js";
297
+ } from "./chunk-vn0s2f0t.js";
298
298
  import {
299
299
  ReadBuffer,
300
300
  init_stdio,
@@ -311,7 +311,7 @@ import {
311
311
  import {
312
312
  init_escHotkey,
313
313
  registerEscHotkey
314
- } from "./chunk-pf1bvr99.js";
314
+ } from "./chunk-y1gvgx5x.js";
315
315
  import {
316
316
  ADVISOR_BETA_HEADER,
317
317
  AFK_MODE_BETA_HEADER,
@@ -681,7 +681,7 @@ import {
681
681
  validateSettingsFileContent,
682
682
  withOAuth401Retry,
683
683
  writeTextContent
684
- } from "./chunk-jtk7x4k0.js";
684
+ } from "./chunk-1ray0p0s.js";
685
685
  import {
686
686
  ConfigScopeSchema,
687
687
  McpJsonConfigSchema,
@@ -692,7 +692,7 @@ import {
692
692
  parseJSONL,
693
693
  safeParseJSON,
694
694
  stripBOM
695
- } from "./chunk-kbt96bs4.js";
695
+ } from "./chunk-y1fhmk40.js";
696
696
  import {
697
697
  containsPathTraversal,
698
698
  expandPath,
@@ -700,7 +700,7 @@ import {
700
700
  init_path,
701
701
  normalizePathForConfigKey,
702
702
  toRelativePath
703
- } from "./chunk-adshwmsk.js";
703
+ } from "./chunk-3qdknfrw.js";
704
704
  import {
705
705
  disableKeepAlive,
706
706
  getMTLSConfig,
@@ -712,7 +712,7 @@ import {
712
712
  init_mtls,
713
713
  init_proxy,
714
714
  shouldBypassProxy
715
- } from "./chunk-edty0bmy.js";
715
+ } from "./chunk-wgg5m77q.js";
716
716
  import {
717
717
  check,
718
718
  count,
@@ -742,7 +742,7 @@ import {
742
742
  init_windowsPaths,
743
743
  posixPathToWindowsPath,
744
744
  windowsPathToPosixPath
745
- } from "./chunk-m2w7bvy5.js";
745
+ } from "./chunk-exmr6rxj.js";
746
746
  import {
747
747
  LITE_READ_BUF_SIZE,
748
748
  MAX_SANITIZED_LENGTH,
@@ -773,7 +773,7 @@ import {
773
773
  import {
774
774
  getPlatform,
775
775
  init_platform
776
- } from "./chunk-jw6sawwy.js";
776
+ } from "./chunk-j7bb9d57.js";
777
777
  import {
778
778
  init_sleep,
779
779
  sleep
@@ -783,18 +783,18 @@ import {
783
783
  getProcessCommand,
784
784
  init_genericProcessUtils,
785
785
  isProcessRunning
786
- } from "./chunk-js3jewxx.js";
786
+ } from "./chunk-6v95y20t.js";
787
787
  import {
788
788
  PARSE_ABORTED,
789
789
  SHELL_KEYWORDS,
790
790
  init_bashParser,
791
791
  init_parser,
792
792
  parseCommandRaw
793
- } from "./chunk-ecwrcz5z.js";
793
+ } from "./chunk-9z71ydnn.js";
794
794
  import {
795
795
  exports_common,
796
796
  init_common
797
- } from "./chunk-995kmmrz.js";
797
+ } from "./chunk-eaahr2r4.js";
798
798
  import {
799
799
  init_normalization,
800
800
  normalizeNameForMCP
@@ -805,7 +805,7 @@ import {
805
805
  getGlobalConfigFile,
806
806
  init_env,
807
807
  init_findExecutable
808
- } from "./chunk-j7gfqh8v.js";
808
+ } from "./chunk-nfm5ndj4.js";
809
809
  import {
810
810
  init_bundledMode,
811
811
  isInBundledMode,
@@ -908,7 +908,7 @@ import {
908
908
  truncate,
909
909
  truncateToWidth,
910
910
  truncateToWidthNoEllipsis
911
- } from "./chunk-9xnsynpm.js";
911
+ } from "./chunk-1scbyvc1.js";
912
912
  import {
913
913
  firstGrapheme,
914
914
  getGraphemeSegmenter,
@@ -984,7 +984,7 @@ import {
984
984
  wrapAnsi,
985
985
  wrapForMultiplexer,
986
986
  wrapText
987
- } from "./chunk-6kp74mx0.js";
987
+ } from "./chunk-ejnxa6q2.js";
988
988
  import {
989
989
  require_jsx_dev_runtime,
990
990
  require_react
@@ -999,7 +999,7 @@ import {
999
999
  init_detectRepository,
1000
1000
  parseGitHubRepository,
1001
1001
  parseGitRemote
1002
- } from "./chunk-8j3t8sfh.js";
1002
+ } from "./chunk-ty0yf565.js";
1003
1003
  import {
1004
1004
  findCanonicalGitRoot,
1005
1005
  findGitRoot,
@@ -1026,11 +1026,11 @@ import {
1026
1026
  resolveRef,
1027
1027
  stashToCleanState,
1028
1028
  withDiagnosticsTiming
1029
- } from "./chunk-jy5tdhvj.js";
1029
+ } from "./chunk-wktyrws7.js";
1030
1030
  import {
1031
1031
  init_memoize as init_memoize2,
1032
1032
  memoizeWithLRU
1033
- } from "./chunk-yqk99a86.js";
1033
+ } from "./chunk-1waynmy2.js";
1034
1034
  import {
1035
1035
  L,
1036
1036
  init_index_min
@@ -1040,7 +1040,7 @@ import {
1040
1040
  execFileNoThrowWithCwd,
1041
1041
  execSyncWithDefaults_DEPRECATED,
1042
1042
  init_execFileNoThrow
1043
- } from "./chunk-37bk9h3n.js";
1043
+ } from "./chunk-40v25wtv.js";
1044
1044
  import {
1045
1045
  getCwd,
1046
1046
  init_cwd,
@@ -1083,7 +1083,7 @@ import {
1083
1083
  logMCPError,
1084
1084
  sortLogs,
1085
1085
  stripIdeContextTags
1086
- } from "./chunk-wb6qms6j.js";
1086
+ } from "./chunk-kxqj72pz.js";
1087
1087
  import {
1088
1088
  djb2Hash,
1089
1089
  hashContent,
@@ -1093,59 +1093,30 @@ import {
1093
1093
  import {
1094
1094
  init_which,
1095
1095
  which
1096
- } from "./chunk-9vbfgsj2.js";
1096
+ } from "./chunk-3q8w9bbc.js";
1097
1097
  import {
1098
1098
  execa,
1099
1099
  init_execa,
1100
1100
  require_cross_spawn
1101
1101
  } from "./chunk-c1yc761e.js";
1102
1102
  import {
1103
- figures_default,
1104
- init_figures
1105
- } from "./chunk-c5g9shkw.js";
1106
- import {
1107
- AbortError,
1108
- ClaudeError,
1109
- ConfigParseError,
1110
- MalformedCommandError,
1111
- ShellError,
1112
- TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
1113
- TeleportOperationError,
1114
1103
  _assignValue_default,
1115
1104
  _baseAssignValue_default,
1116
- classifyAxiosError,
1117
1105
  cloneDeep_default,
1118
- errorMessage,
1119
- getErrnoCode,
1120
- getErrnoPath,
1121
- getFsImplementation,
1122
- getPathsForPermissionCheck,
1123
- hasExactErrorMessage,
1124
1106
  init__assignValue,
1125
1107
  init__baseAssignValue,
1126
1108
  init_cleanupRegistry,
1127
1109
  init_debug,
1128
- init_errors,
1129
- init_fsOperations,
1130
1110
  init_slowOperations,
1131
- isAbortError,
1132
1111
  isDebugMode,
1133
- isDuplicatePath,
1134
- isENOENT,
1135
- isFsInaccessible,
1136
1112
  jsonParse,
1137
1113
  jsonStringify,
1138
1114
  logAntError,
1139
1115
  logForDebugging,
1140
- readFileRange,
1141
- readLinesReverse,
1142
1116
  registerCleanup,
1143
1117
  runCleanupFunctions,
1144
- safeResolvePath,
1145
- tailFile,
1146
- toError,
1147
1118
  writeFileSync_DEPRECATED
1148
- } from "./chunk-sepwzp6y.js";
1119
+ } from "./chunk-berrk2wz.js";
1149
1120
  import {
1150
1121
  init_process,
1151
1122
  writeToStderr
@@ -1297,6 +1268,37 @@ import {
1297
1268
  toString_default,
1298
1269
  waitForScrollIdle
1299
1270
  } from "./chunk-6s8exf34.js";
1271
+ import {
1272
+ figures_default,
1273
+ init_figures
1274
+ } from "./chunk-c5g9shkw.js";
1275
+ import {
1276
+ AbortError,
1277
+ ClaudeError,
1278
+ ConfigParseError,
1279
+ MalformedCommandError,
1280
+ ShellError,
1281
+ TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
1282
+ TeleportOperationError,
1283
+ classifyAxiosError,
1284
+ errorMessage,
1285
+ getErrnoCode,
1286
+ getErrnoPath,
1287
+ getFsImplementation,
1288
+ getPathsForPermissionCheck,
1289
+ hasExactErrorMessage,
1290
+ init_errors,
1291
+ init_fsOperations,
1292
+ isAbortError,
1293
+ isDuplicatePath,
1294
+ isENOENT,
1295
+ isFsInaccessible,
1296
+ readFileRange,
1297
+ readLinesReverse,
1298
+ safeResolvePath,
1299
+ tailFile,
1300
+ toError
1301
+ } from "./chunk-k2aedy4h.js";
1300
1302
  import {
1301
1303
  init_mjs,
1302
1304
  onExit
@@ -1630,7 +1632,7 @@ var init_add_dir = __esm(() => {
1630
1632
  name: "add-dir",
1631
1633
  description: "Add a new working directory",
1632
1634
  argumentHint: "<path>",
1633
- load: () => import("./chunk-009984kz.js")
1635
+ load: () => import("./chunk-0htp168q.js")
1634
1636
  };
1635
1637
  add_dir_default = addDir;
1636
1638
  });
@@ -1656,7 +1658,7 @@ var init_btw = __esm(() => {
1656
1658
  description: "Ask a quick side question without interrupting the main conversation",
1657
1659
  immediate: true,
1658
1660
  argumentHint: "<question>",
1659
- load: () => import("./chunk-c5c0an9e.js")
1661
+ load: () => import("./chunk-hys76hws.js")
1660
1662
  };
1661
1663
  btw_default = btw;
1662
1664
  });
@@ -8883,7 +8885,7 @@ function getAttributionHeader(fingerprint) {
8883
8885
  if (!isAttributionHeaderEnabled()) {
8884
8886
  return "";
8885
8887
  }
8886
- const version = `${"1.8.0"}.${fingerprint}`;
8888
+ const version = `${"1.0.1"}.${fingerprint}`;
8887
8889
  const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
8888
8890
  const cch = "";
8889
8891
  const workload = getWorkload();
@@ -12858,7 +12860,7 @@ async function resolveAttachments(rawPaths, uploadCtx) {
12858
12860
  }
12859
12861
  if (true) {
12860
12862
  const shouldUpload = uploadCtx.replBridgeEnabled || isEnvTruthy(process.env.CLAUDE_CODE_BRIEF_UPLOAD);
12861
- const { uploadBriefAttachment } = await import("./chunk-13f7w7t7.js");
12863
+ const { uploadBriefAttachment } = await import("./chunk-vgmgqjdr.js");
12862
12864
  const uuids = await Promise.all(stated.map((a) => uploadBriefAttachment(a.path, a.size, {
12863
12865
  replBridgeEnabled: shouldUpload,
12864
12866
  signal: uploadCtx.signal
@@ -25110,7 +25112,7 @@ async function doParse(command) {
25110
25112
  const treeSitterAvailable = await getTreeSitterAvailable();
25111
25113
  if (treeSitterAvailable) {
25112
25114
  try {
25113
- const { parseCommand } = await import("./chunk-aeepqjh1.js");
25115
+ const { parseCommand } = await import("./chunk-y92r0hrv.js");
25114
25116
  const data = await parseCommand(command);
25115
25117
  if (data) {
25116
25118
  return buildParsedCommandFromRoot(command, data.rootNode);
@@ -25126,7 +25128,7 @@ var init_ParsedCommand = __esm(() => {
25126
25128
  init_treeSitterAnalysis();
25127
25129
  getTreeSitterAvailable = memoize_default(async () => {
25128
25130
  try {
25129
- const { parseCommand } = await import("./chunk-aeepqjh1.js");
25131
+ const { parseCommand } = await import("./chunk-y92r0hrv.js");
25130
25132
  const testResult = await parseCommand("echo test");
25131
25133
  return testResult !== null;
25132
25134
  } catch {
@@ -32551,7 +32553,7 @@ function trackGitOperations(command, exitCode, stdout) {
32551
32553
  if (stdout) {
32552
32554
  const prInfo = findPrInStdout(stdout);
32553
32555
  if (prInfo) {
32554
- import("./chunk-fxdj4wxj.js").then(({ linkSessionToPR }) => {
32556
+ import("./chunk-z2jyv3za.js").then(({ linkSessionToPR }) => {
32555
32557
  import("./chunk-2zbgaxd6.js").then(({ getSessionId: getSessionId2 }) => {
32556
32558
  const sessionId = getSessionId2();
32557
32559
  if (sessionId) {
@@ -45394,7 +45396,7 @@ async function persistFileSnapshotIfRemote() {
45394
45396
  uuid: randomUUID4(),
45395
45397
  snapshotFiles
45396
45398
  };
45397
- const { recordTranscript } = await import("./chunk-fxdj4wxj.js");
45399
+ const { recordTranscript } = await import("./chunk-z2jyv3za.js");
45398
45400
  await recordTranscript([message]);
45399
45401
  } catch (error) {
45400
45402
  logError(error);
@@ -47233,7 +47235,7 @@ function getInstallationEnv() {
47233
47235
  return;
47234
47236
  }
47235
47237
  function getClaudeCodeVersion() {
47236
- return "1.8.0";
47238
+ return "1.0.1";
47237
47239
  }
47238
47240
  async function getInstalledVSCodeExtensionVersion(command) {
47239
47241
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -58572,7 +58574,7 @@ function initLangfuse() {
58572
58574
  flushInterval: parseInt(process.env.LANGFUSE_FLUSH_INTERVAL ?? "10", 10),
58573
58575
  mask: maskFn,
58574
58576
  environment: process.env.LANGFUSE_TRACING_ENVIRONMENT ?? "development",
58575
- release: "1.8.0",
58577
+ release: "1.0.1",
58576
58578
  exportMode: process.env.LANGFUSE_EXPORT_MODE ?? "batched",
58577
58579
  timeout: parseInt(process.env.LANGFUSE_TIMEOUT ?? "5", 10)
58578
58580
  });
@@ -59060,7 +59062,7 @@ function computeFingerprint(messageText, version) {
59060
59062
  }
59061
59063
  function computeFingerprintFromMessages(messages) {
59062
59064
  const firstMessageText = extractFirstMessageText(messages);
59063
- return computeFingerprint(firstMessageText, "1.8.0");
59065
+ return computeFingerprint(firstMessageText, "1.0.1");
59064
59066
  }
59065
59067
  var FINGERPRINT_SALT = "59cf53e54c78";
59066
59068
  var init_fingerprint = () => {};
@@ -59102,7 +59104,7 @@ async function sideQuery(opts) {
59102
59104
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
59103
59105
  }
59104
59106
  const messageText = extractFirstUserMessageText(messages);
59105
- const fingerprint = computeFingerprint(messageText, "1.8.0");
59107
+ const fingerprint = computeFingerprint(messageText, "1.0.1");
59106
59108
  const attributionHeader = getAttributionHeader(fingerprint);
59107
59109
  const systemBlocks = [
59108
59110
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -68590,7 +68592,7 @@ async function addMcpConfig(name, config2, scope) {
68590
68592
  throw new Error(`Cannot add MCP server "${name}": this name is reserved.`);
68591
68593
  }
68592
68594
  if (true) {
68593
- const { isComputerUseMCPServer } = await import("./chunk-tsr13vfe.js");
68595
+ const { isComputerUseMCPServer } = await import("./chunk-q60bz9y6.js");
68594
68596
  if (isComputerUseMCPServer(name)) {
68595
68597
  throw new Error(`Cannot add MCP server "${name}": this name is reserved.`);
68596
68598
  }
@@ -90743,7 +90745,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
90743
90745
  const client = new Client({
90744
90746
  name: "claude-code",
90745
90747
  title: "Angsheng",
90746
- version: "1.8.0",
90748
+ version: "1.0.1",
90747
90749
  description: "Anthropic's agentic coding tool",
90748
90750
  websiteUrl: PRODUCT_URL
90749
90751
  }, {
@@ -91066,7 +91068,7 @@ var init_client6 = __esm(() => {
91066
91068
  transport = new StreamableHTTPClientTransport(new URL(proxyUrl), transportOptions);
91067
91069
  logMCPDebug(name, `claude.ai proxy transport created successfully`);
91068
91070
  } else if ((serverRef.type === "stdio" || !serverRef.type) && isAngshengInChromeMCPServer(name)) {
91069
- const { createChromeContext } = await import("./chunk-pvhffspb.js");
91071
+ const { createChromeContext } = await import("./chunk-j6bmy7rr.js");
91070
91072
  const { createClaudeForChromeMcpServer } = await import("./chunk-4nme1fwg.js");
91071
91073
  const { createLinkedTransportPair: createLinkedTransportPair2 } = await import("./chunk-9w6ckyk4.js");
91072
91074
  const context2 = createChromeContext(serverRef.env);
@@ -91076,7 +91078,7 @@ var init_client6 = __esm(() => {
91076
91078
  transport = clientTransport;
91077
91079
  logMCPDebug(name, `In-process Chrome MCP server started`);
91078
91080
  } else if ((serverRef.type === "stdio" || !serverRef.type) && isComputerUseMCPServer(name)) {
91079
- const { createComputerUseMcpServerForCli } = await import("./chunk-kzb38p8m.js");
91081
+ const { createComputerUseMcpServerForCli } = await import("./chunk-6nn3p38n.js");
91080
91082
  const { createLinkedTransportPair: createLinkedTransportPair2 } = await import("./chunk-9w6ckyk4.js");
91081
91083
  inProcessServer = await createComputerUseMcpServerForCli();
91082
91084
  const [clientTransport, serverTransport] = createLinkedTransportPair2();
@@ -91117,7 +91119,7 @@ var init_client6 = __esm(() => {
91117
91119
  const client = new Client({
91118
91120
  name: "claude-code",
91119
91121
  title: "Angsheng",
91120
- version: "1.8.0",
91122
+ version: "1.0.1",
91121
91123
  description: "Anthropic's agentic coding tool",
91122
91124
  websiteUrl: PRODUCT_URL
91123
91125
  }, {
@@ -106443,7 +106445,7 @@ async function* runAgent({
106443
106445
  }
106444
106446
  validSkills.push({ skillName, skill });
106445
106447
  }
106446
- const { formatSkillLoadingMetadata } = await import("./chunk-m00kgtdv.js");
106448
+ const { formatSkillLoadingMetadata } = await import("./chunk-pt509hh1.js");
106447
106449
  const loaded = await Promise.all(validSkills.map(async ({ skillName, skill }) => ({
106448
106450
  skillName,
106449
106451
  skill,
@@ -107445,7 +107447,7 @@ async function gracefulShutdown(exitCode = 0, reason = "other", options) {
107445
107447
  return;
107446
107448
  }
107447
107449
  shutdownInProgress = true;
107448
- const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-g0708sxq.js");
107450
+ const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-zr3vxx8f.js");
107449
107451
  const sessionEndTimeoutMs = getSessionEndHookTimeoutMs();
107450
107452
  failsafeTimer = setTimeout((code) => {
107451
107453
  cleanupTerminalModes();
@@ -108274,7 +108276,7 @@ var init_remoteManagedSettings = __esm(() => {
108274
108276
  async function performLogout({
108275
108277
  clearOnboarding = false
108276
108278
  }) {
108277
- const { flushTelemetry } = await import("./chunk-caxnxf4z.js");
108279
+ const { flushTelemetry } = await import("./chunk-y56m5qyh.js");
108278
108280
  await flushTelemetry();
108279
108281
  await removeApiKey();
108280
108282
  const secureStorage = getSecureStorage();
@@ -109354,7 +109356,7 @@ function detectLinuxGlobPatternWarnings() {
109354
109356
  }
109355
109357
  async function getDoctorDiagnostic() {
109356
109358
  const installationType = await getCurrentInstallationType();
109357
- const version2 = typeof MACRO !== "undefined" ? "1.8.0" : "unknown";
109359
+ const version2 = typeof MACRO !== "undefined" ? "1.0.1" : "unknown";
109358
109360
  const installationPath = await getInstallationPath();
109359
109361
  const invokedBinary = getInvokedBinary();
109360
109362
  const multipleInstallations = await detectMultipleInstallations();
@@ -110264,8 +110266,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
110264
110266
  const maxVersion = await getMaxVersion();
110265
110267
  if (maxVersion && gt(version2, maxVersion)) {
110266
110268
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
110267
- if (gte("1.8.0", maxVersion)) {
110268
- logForDebugging(`Native installer: current version ${"1.8.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
110269
+ if (gte("1.0.1", maxVersion)) {
110270
+ logForDebugging(`Native installer: current version ${"1.0.1"} is already at or above maxVersion ${maxVersion}, skipping update`);
110269
110271
  logEvent("tengu_native_update_skipped_max_version", {
110270
110272
  latency_ms: Date.now() - startTime,
110271
110273
  max_version: maxVersion,
@@ -110276,7 +110278,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
110276
110278
  version2 = maxVersion;
110277
110279
  }
110278
110280
  }
110279
- if (!forceReinstall && version2 === "1.8.0" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
110281
+ if (!forceReinstall && version2 === "1.0.1" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
110280
110282
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
110281
110283
  logEvent("tengu_native_update_complete", {
110282
110284
  latency_ms: Date.now() - startTime,
@@ -118808,7 +118810,7 @@ async function loadConversationForResume(source, sourceJsonlFile) {
118808
118810
  let skip = new Set;
118809
118811
  if (true) {
118810
118812
  try {
118811
- const { listAllLiveSessions } = await import("./chunk-kv2tmk99.js");
118813
+ const { listAllLiveSessions } = await import("./chunk-31prke86.js");
118812
118814
  const live = await listAllLiveSessions();
118813
118815
  skip = new Set(live.flatMap((s) => s.kind && s.kind !== "interactive" && s.sessionId ? [s.sessionId] : []));
118814
118816
  } catch {}
@@ -124646,7 +124648,7 @@ function clearTeammateColors() {
124646
124648
  colorIndex = 0;
124647
124649
  }
124648
124650
  async function isInsideTmux2() {
124649
- const { isInsideTmux: checkTmux } = await import("./chunk-0wz695w4.js");
124651
+ const { isInsideTmux: checkTmux } = await import("./chunk-pb7x469y.js");
124650
124652
  return checkTmux();
124651
124653
  }
124652
124654
  async function createTeammatePaneInSwarmView(teammateName, teammateColor) {
@@ -124842,8 +124844,8 @@ var init_PaneBackendExecutor = __esm(() => {
124842
124844
  async function ensureBackendsRegistered() {
124843
124845
  if (backendsRegistered)
124844
124846
  return;
124845
- await import("./chunk-z6a8xk3m.js");
124846
- await import("./chunk-4zvhmyca.js");
124847
+ await import("./chunk-2c404886.js");
124848
+ await import("./chunk-ftxkjear.js");
124847
124849
  backendsRegistered = true;
124848
124850
  }
124849
124851
  function registerTmuxBackend(backendClass) {
@@ -126613,7 +126615,7 @@ var init_extra_usage = __esm(() => {
126613
126615
  name: "extra-usage",
126614
126616
  description: "Configure extra usage to keep working when limits are hit",
126615
126617
  isEnabled: () => isExtraUsageAllowed() && !getIsNonInteractiveSession(),
126616
- load: () => import("./chunk-y1pf1gq2.js")
126618
+ load: () => import("./chunk-0j698zm0.js")
126617
126619
  };
126618
126620
  extraUsageNonInteractive = {
126619
126621
  type: "local",
@@ -126624,7 +126626,7 @@ var init_extra_usage = __esm(() => {
126624
126626
  get isHidden() {
126625
126627
  return !getIsNonInteractiveSession();
126626
126628
  },
126627
- load: () => import("./chunk-f31e900p.js")
126629
+ load: () => import("./chunk-r0zznvhg.js")
126628
126630
  };
126629
126631
  });
126630
126632
 
@@ -133915,7 +133917,7 @@ var init_SkillTool = __esm(() => {
133915
133917
  if (command?.type === "prompt" && command.context === "fork") {
133916
133918
  return executeForkedSkill(command, commandName, args, context2, canUseTool, parentMessage, onProgress);
133917
133919
  }
133918
- const { processPromptSlashCommand } = await import("./chunk-m00kgtdv.js");
133920
+ const { processPromptSlashCommand } = await import("./chunk-pt509hh1.js");
133919
133921
  const processedCommand = await processPromptSlashCommand(commandName, args || "", commands, context2);
133920
133922
  if (!processedCommand.shouldQuery) {
133921
133923
  throw new Error("Command processing failed");
@@ -141050,7 +141052,7 @@ var init_ConfigTool = __esm(() => {
141050
141052
  renderToolUseRejectedMessage: renderToolUseRejectedMessage8,
141051
141053
  async call({ setting, value }, context2) {
141052
141054
  if (setting === "voiceEnabled") {
141053
- const { isVoiceGrowthBookEnabled: isVoiceGrowthBookEnabled2 } = await import("./chunk-79a3qw9m.js");
141055
+ const { isVoiceGrowthBookEnabled: isVoiceGrowthBookEnabled2 } = await import("./chunk-xtfc0528.js");
141054
141056
  if (!isVoiceGrowthBookEnabled2()) {
141055
141057
  return {
141056
141058
  data: { success: false, error: `Unknown setting: "${setting}"` }
@@ -141143,9 +141145,9 @@ var init_ConfigTool = __esm(() => {
141143
141145
  }
141144
141146
  }
141145
141147
  if (setting === "voiceEnabled" && finalValue === true) {
141146
- const { isVoiceModeEnabled: isVoiceModeEnabled2 } = await import("./chunk-79a3qw9m.js");
141148
+ const { isVoiceModeEnabled: isVoiceModeEnabled2 } = await import("./chunk-xtfc0528.js");
141147
141149
  if (!isVoiceModeEnabled2()) {
141148
- const { isAnthropicAuthEnabled } = await import("./chunk-rahbr3qv.js");
141150
+ const { isAnthropicAuthEnabled } = await import("./chunk-90cvnjgd.js");
141149
141151
  return {
141150
141152
  data: {
141151
141153
  success: false,
@@ -141153,12 +141155,12 @@ var init_ConfigTool = __esm(() => {
141153
141155
  }
141154
141156
  };
141155
141157
  }
141156
- const { isVoiceStreamAvailable } = await import("./chunk-dfxgqwz3.js");
141158
+ const { isVoiceStreamAvailable } = await import("./chunk-4qtxtg58.js");
141157
141159
  const {
141158
141160
  checkRecordingAvailability,
141159
141161
  checkVoiceDependencies,
141160
141162
  requestMicrophonePermission
141161
- } = await import("./chunk-q1b5cjnw.js");
141163
+ } = await import("./chunk-hts80g90.js");
141162
141164
  const recording = await checkRecordingAvailability();
141163
141165
  if (!recording.available) {
141164
141166
  return {
@@ -141236,7 +141238,7 @@ var init_ConfigTool = __esm(() => {
141236
141238
  }
141237
141239
  }
141238
141240
  if (setting === "voiceEnabled") {
141239
- const { settingsChangeDetector: settingsChangeDetector2 } = await import("./chunk-kkrpj15z.js");
141241
+ const { settingsChangeDetector: settingsChangeDetector2 } = await import("./chunk-03yhyp33.js");
141240
141242
  settingsChangeDetector2.notifyChange("userSettings");
141241
141243
  }
141242
141244
  if (config3.appStateKey) {
@@ -143145,7 +143147,7 @@ Guidelines:
143145
143147
  let fileUuid;
143146
143148
  if (appState.replBridgeEnabled) {
143147
143149
  try {
143148
- const { uploadBriefAttachment } = await import("./chunk-13f7w7t7.js");
143150
+ const { uploadBriefAttachment } = await import("./chunk-vgmgqjdr.js");
143149
143151
  fileUuid = await uploadBriefAttachment(file_path, fileSize, {
143150
143152
  replBridgeEnabled: true,
143151
143153
  signal: context2.abortController.signal
@@ -143227,7 +143229,7 @@ Requires Remote Control to be configured. Respects user notification settings (t
143227
143229
  if (appState.replBridgeEnabled) {
143228
143230
  if (true) {
143229
143231
  try {
143230
- const { getBridgeAccessToken, getBridgeBaseUrl: getBridgeBaseUrl2 } = await import("./chunk-bxzqgj26.js");
143232
+ const { getBridgeAccessToken, getBridgeBaseUrl: getBridgeBaseUrl2 } = await import("./chunk-eyrdjcn9.js");
143231
143233
  const { getSessionId: getSessionId2 } = await import("./chunk-2zbgaxd6.js");
143232
143234
  const token = getBridgeAccessToken();
143233
143235
  const sessionId = getSessionId2();
@@ -157079,8 +157081,8 @@ async function countBuiltInToolTokens(tools, getToolPermissionContext, agentInfo
157079
157081
  systemToolDetails: []
157080
157082
  };
157081
157083
  }
157082
- const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-pgm8amfj.js");
157083
- const { isDeferredTool: isDeferredTool2 } = await import("./chunk-xg24xr82.js");
157084
+ const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-bcqtgtgh.js");
157085
+ const { isDeferredTool: isDeferredTool2 } = await import("./chunk-kbfcbhnf.js");
157084
157086
  const isDeferred = await isToolSearchEnabled2(model ?? "", tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeBuiltIn");
157085
157087
  const alwaysLoadedTools = builtInTools.filter((t) => !isDeferredTool2(t));
157086
157088
  const deferredBuiltinTools = builtInTools.filter((t) => isDeferredTool2(t));
@@ -157214,8 +157216,8 @@ async function countMcpToolTokens(tools, getToolPermissionContext, agentInfo, mo
157214
157216
  }))));
157215
157217
  const estimateTotal = estimates.reduce((s, e) => s + e, 0) || 1;
157216
157218
  const mcpToolTokensByTool = estimates.map((e) => Math.round(e / estimateTotal * totalTokens));
157217
- const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-pgm8amfj.js");
157218
- const { isDeferredTool: isDeferredTool2 } = await import("./chunk-xg24xr82.js");
157219
+ const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-bcqtgtgh.js");
157220
+ const { isDeferredTool: isDeferredTool2 } = await import("./chunk-kbfcbhnf.js");
157219
157221
  const isDeferred = await isToolSearchEnabled2(model, tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeMcp");
157220
157222
  const loadedMcpToolNames = new Set;
157221
157223
  if (isDeferred && messages) {
@@ -160857,7 +160859,7 @@ async function* handleStopHooks(messagesForQuery, assistantMessages, systemPromp
160857
160859
  new Promise((r) => setTimeout(r, 60000).unref())
160858
160860
  ]);
160859
160861
  }
160860
- const poorMode = (await import("./chunk-0yq5hdc4.js")).isPoorModeActive();
160862
+ const poorMode = (await import("./chunk-8ndk835h.js")).isPoorModeActive();
160861
160863
  if (!isBareMode()) {
160862
160864
  if (!isEnvDefinedFalsy(process.env.CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION) && !poorMode) {
160863
160865
  executePromptSuggestion(stopHookContext);
@@ -160871,7 +160873,7 @@ async function* handleStopHooks(messagesForQuery, assistantMessages, systemPromp
160871
160873
  }
160872
160874
  if (!toolUseContext.agentId) {
160873
160875
  try {
160874
- const { cleanupComputerUseAfterTurn } = await import("./chunk-2st57p4f.js");
160876
+ const { cleanupComputerUseAfterTurn } = await import("./chunk-yq9t8xss.js");
160875
160877
  await cleanupComputerUseAfterTurn(toolUseContext);
160876
160878
  } catch {}
160877
160879
  }
@@ -161360,777 +161362,781 @@ async function* queryLoop(params, consumedCommandUuids) {
161360
161362
  const budgetTracker = createBudgetTracker();
161361
161363
  let taskBudgetRemaining = undefined;
161362
161364
  const config3 = buildQueryConfig();
161363
- using pendingMemoryPrefetch = startRelevantMemoryPrefetch(state.messages, state.toolUseContext);
161364
- while (true) {
161365
- let { toolUseContext } = state;
161366
- const {
161367
- messages,
161368
- autoCompactTracking,
161369
- maxOutputTokensRecoveryCount,
161370
- hasAttemptedReactiveCompact,
161371
- maxOutputTokensOverride,
161372
- pendingToolUseSummary,
161373
- stopHookActive,
161374
- turnCount
161375
- } = state;
161376
- const pendingSkillPrefetch = skillPrefetch?.startSkillDiscoveryPrefetch(null, messages, toolUseContext);
161377
- yield { type: "stream_request_start" };
161378
- queryCheckpoint("query_fn_entry");
161379
- if (!toolUseContext.agentId) {
161380
- headlessProfilerCheckpoint("query_started");
161381
- }
161382
- const queryTracking = toolUseContext.queryTracking ? {
161383
- chainId: toolUseContext.queryTracking.chainId,
161384
- depth: toolUseContext.queryTracking.depth + 1
161385
- } : {
161386
- chainId: deps.uuid(),
161387
- depth: 0
161388
- };
161389
- const queryChainIdForAnalytics = queryTracking.chainId;
161390
- toolUseContext = {
161391
- ...toolUseContext,
161392
- queryTracking
161393
- };
161394
- let messagesForQuery = [...getMessagesAfterCompactBoundary(messages)];
161395
- let tracking = autoCompactTracking;
161396
- const persistReplacements = querySource.startsWith("agent:") || querySource.startsWith("repl_main_thread");
161397
- messagesForQuery = await applyToolResultBudget(messagesForQuery, toolUseContext.contentReplacementState, persistReplacements ? (records) => void recordContentReplacement(records, toolUseContext.agentId).catch(logError) : undefined, new Set(toolUseContext.options.tools.filter((t) => !Number.isFinite(t.maxResultSizeChars)).map((t) => t.name)));
161398
- let snipTokensFreed = 0;
161399
- if (true) {
161400
- queryCheckpoint("query_snip_start");
161401
- const snipResult = snipModule.snipCompactIfNeeded(messagesForQuery);
161402
- messagesForQuery = snipResult.messages;
161403
- snipTokensFreed = snipResult.tokensFreed;
161404
- if (snipResult.boundaryMessage) {
161405
- yield snipResult.boundaryMessage;
161406
- }
161407
- queryCheckpoint("query_snip_end");
161408
- }
161409
- queryCheckpoint("query_microcompact_start");
161410
- const microcompactResult = await deps.microcompact(messagesForQuery, toolUseContext, querySource);
161411
- messagesForQuery = microcompactResult.messages;
161412
- const pendingCacheEdits2 = undefined;
161413
- queryCheckpoint("query_microcompact_end");
161414
- if (contextCollapse) {
161415
- const collapseResult = await contextCollapse.applyCollapsesIfNeeded(messagesForQuery, toolUseContext, querySource);
161416
- messagesForQuery = collapseResult.messages;
161417
- }
161418
- const fullSystemPrompt = asSystemPrompt(appendSystemContext(systemPrompt, systemContext));
161419
- queryCheckpoint("query_autocompact_start");
161420
- const { compactionResult, consecutiveFailures } = await deps.autocompact(messagesForQuery, toolUseContext, {
161421
- systemPrompt,
161422
- userContext,
161423
- systemContext,
161424
- toolUseContext,
161425
- forkContextMessages: messagesForQuery
161426
- }, querySource, tracking, snipTokensFreed);
161427
- queryCheckpoint("query_autocompact_end");
161428
- if (compactionResult) {
161365
+ const pendingMemoryPrefetch = startRelevantMemoryPrefetch(state.messages, state.toolUseContext);
161366
+ try {
161367
+ while (true) {
161368
+ let { toolUseContext } = state;
161429
161369
  const {
161430
- preCompactTokenCount,
161431
- postCompactTokenCount,
161432
- truePostCompactTokenCount,
161433
- compactionUsage
161434
- } = compactionResult;
161435
- logEvent("tengu_auto_compact_succeeded", {
161436
- originalMessageCount: messages.length,
161437
- compactedMessageCount: compactionResult.summaryMessages.length + compactionResult.attachments.length + compactionResult.hookResults.length,
161438
- preCompactTokenCount,
161439
- postCompactTokenCount,
161440
- truePostCompactTokenCount,
161441
- compactionInputTokens: compactionUsage?.input_tokens,
161442
- compactionOutputTokens: compactionUsage?.output_tokens,
161443
- compactionCacheReadTokens: compactionUsage?.cache_read_input_tokens ?? 0,
161444
- compactionCacheCreationTokens: compactionUsage?.cache_creation_input_tokens ?? 0,
161445
- compactionTotalTokens: compactionUsage ? compactionUsage.input_tokens + (compactionUsage.cache_creation_input_tokens ?? 0) + (compactionUsage.cache_read_input_tokens ?? 0) + compactionUsage.output_tokens : 0,
161446
- queryChainId: queryChainIdForAnalytics,
161447
- queryDepth: queryTracking.depth
161448
- });
161449
- if (params.taskBudget) {
161450
- const preCompactContext = finalContextTokensFromLastResponse(messagesForQuery);
161451
- taskBudgetRemaining = Math.max(0, (taskBudgetRemaining ?? params.taskBudget.total) - preCompactContext);
161370
+ messages,
161371
+ autoCompactTracking,
161372
+ maxOutputTokensRecoveryCount,
161373
+ hasAttemptedReactiveCompact,
161374
+ maxOutputTokensOverride,
161375
+ pendingToolUseSummary,
161376
+ stopHookActive,
161377
+ turnCount
161378
+ } = state;
161379
+ const pendingSkillPrefetch = skillPrefetch?.startSkillDiscoveryPrefetch(null, messages, toolUseContext);
161380
+ yield { type: "stream_request_start" };
161381
+ queryCheckpoint("query_fn_entry");
161382
+ if (!toolUseContext.agentId) {
161383
+ headlessProfilerCheckpoint("query_started");
161452
161384
  }
161453
- tracking = {
161454
- compacted: true,
161455
- turnId: deps.uuid(),
161456
- turnCounter: 0,
161457
- consecutiveFailures: 0
161385
+ const queryTracking = toolUseContext.queryTracking ? {
161386
+ chainId: toolUseContext.queryTracking.chainId,
161387
+ depth: toolUseContext.queryTracking.depth + 1
161388
+ } : {
161389
+ chainId: deps.uuid(),
161390
+ depth: 0
161458
161391
  };
161459
- const postCompactMessages = buildPostCompactMessages(compactionResult);
161460
- for (const message of postCompactMessages) {
161461
- yield message;
161462
- }
161463
- messagesForQuery = postCompactMessages;
161464
- } else if (consecutiveFailures !== undefined) {
161465
- tracking = {
161466
- ...tracking ?? { compacted: false, turnId: "", turnCounter: 0 },
161467
- consecutiveFailures
161392
+ const queryChainIdForAnalytics = queryTracking.chainId;
161393
+ toolUseContext = {
161394
+ ...toolUseContext,
161395
+ queryTracking
161468
161396
  };
161469
- }
161470
- toolUseContext = {
161471
- ...toolUseContext,
161472
- messages: messagesForQuery
161473
- };
161474
- const assistantMessages = [];
161475
- const toolResults = [];
161476
- const toolUseBlocks = [];
161477
- let needsFollowUp = false;
161478
- queryCheckpoint("query_setup_start");
161479
- const useStreamingToolExecution = config3.gates.streamingToolExecution;
161480
- let streamingToolExecutor = useStreamingToolExecution ? new StreamingToolExecutor(toolUseContext.options.tools, canUseTool, toolUseContext) : null;
161481
- const appState = toolUseContext.getAppState();
161482
- const permissionMode = appState.toolPermissionContext.mode;
161483
- let currentModel = getRuntimeMainLoopModel({
161484
- permissionMode,
161485
- mainLoopModel: toolUseContext.options.mainLoopModel,
161486
- exceeds200kTokens: permissionMode === "plan" && doesMostRecentAssistantMessageExceed200k(messagesForQuery)
161487
- });
161488
- queryCheckpoint("query_setup_end");
161489
- const dumpPromptsFetch = config3.gates.isAnt ? createDumpPromptsFetch(toolUseContext.agentId ?? config3.sessionId) : undefined;
161490
- let collapseOwnsIt = false;
161491
- if (true) {
161492
- collapseOwnsIt = (contextCollapse?.isContextCollapseEnabled() ?? false) && isAutoCompactEnabled();
161493
- }
161494
- const mediaRecoveryEnabled = reactiveCompact?.isReactiveCompactEnabled() ?? false;
161495
- if (!compactionResult && querySource !== "compact" && querySource !== "session_memory" && !(reactiveCompact?.isReactiveCompactEnabled() && isAutoCompactEnabled()) && !collapseOwnsIt) {
161496
- const { isAtBlockingLimit } = calculateTokenWarningState(tokenCountWithEstimation(messagesForQuery) - snipTokensFreed, toolUseContext.options.mainLoopModel);
161497
- if (isAtBlockingLimit) {
161498
- yield createAssistantAPIErrorMessage({
161499
- content: PROMPT_TOO_LONG_ERROR_MESSAGE,
161500
- error: "invalid_request"
161397
+ let messagesForQuery = [...getMessagesAfterCompactBoundary(messages)];
161398
+ let tracking = autoCompactTracking;
161399
+ const persistReplacements = querySource.startsWith("agent:") || querySource.startsWith("repl_main_thread");
161400
+ messagesForQuery = await applyToolResultBudget(messagesForQuery, toolUseContext.contentReplacementState, persistReplacements ? (records) => void recordContentReplacement(records, toolUseContext.agentId).catch(logError) : undefined, new Set(toolUseContext.options.tools.filter((t) => !Number.isFinite(t.maxResultSizeChars)).map((t) => t.name)));
161401
+ let snipTokensFreed = 0;
161402
+ if (true) {
161403
+ queryCheckpoint("query_snip_start");
161404
+ const snipResult = snipModule.snipCompactIfNeeded(messagesForQuery);
161405
+ messagesForQuery = snipResult.messages;
161406
+ snipTokensFreed = snipResult.tokensFreed;
161407
+ if (snipResult.boundaryMessage) {
161408
+ yield snipResult.boundaryMessage;
161409
+ }
161410
+ queryCheckpoint("query_snip_end");
161411
+ }
161412
+ queryCheckpoint("query_microcompact_start");
161413
+ const microcompactResult = await deps.microcompact(messagesForQuery, toolUseContext, querySource);
161414
+ messagesForQuery = microcompactResult.messages;
161415
+ const pendingCacheEdits2 = undefined;
161416
+ queryCheckpoint("query_microcompact_end");
161417
+ if (contextCollapse) {
161418
+ const collapseResult = await contextCollapse.applyCollapsesIfNeeded(messagesForQuery, toolUseContext, querySource);
161419
+ messagesForQuery = collapseResult.messages;
161420
+ }
161421
+ const fullSystemPrompt = asSystemPrompt(appendSystemContext(systemPrompt, systemContext));
161422
+ queryCheckpoint("query_autocompact_start");
161423
+ const { compactionResult, consecutiveFailures } = await deps.autocompact(messagesForQuery, toolUseContext, {
161424
+ systemPrompt,
161425
+ userContext,
161426
+ systemContext,
161427
+ toolUseContext,
161428
+ forkContextMessages: messagesForQuery
161429
+ }, querySource, tracking, snipTokensFreed);
161430
+ queryCheckpoint("query_autocompact_end");
161431
+ if (compactionResult) {
161432
+ const {
161433
+ preCompactTokenCount,
161434
+ postCompactTokenCount,
161435
+ truePostCompactTokenCount,
161436
+ compactionUsage
161437
+ } = compactionResult;
161438
+ logEvent("tengu_auto_compact_succeeded", {
161439
+ originalMessageCount: messages.length,
161440
+ compactedMessageCount: compactionResult.summaryMessages.length + compactionResult.attachments.length + compactionResult.hookResults.length,
161441
+ preCompactTokenCount,
161442
+ postCompactTokenCount,
161443
+ truePostCompactTokenCount,
161444
+ compactionInputTokens: compactionUsage?.input_tokens,
161445
+ compactionOutputTokens: compactionUsage?.output_tokens,
161446
+ compactionCacheReadTokens: compactionUsage?.cache_read_input_tokens ?? 0,
161447
+ compactionCacheCreationTokens: compactionUsage?.cache_creation_input_tokens ?? 0,
161448
+ compactionTotalTokens: compactionUsage ? compactionUsage.input_tokens + (compactionUsage.cache_creation_input_tokens ?? 0) + (compactionUsage.cache_read_input_tokens ?? 0) + compactionUsage.output_tokens : 0,
161449
+ queryChainId: queryChainIdForAnalytics,
161450
+ queryDepth: queryTracking.depth
161501
161451
  });
161502
- return { reason: "blocking_limit" };
161452
+ if (params.taskBudget) {
161453
+ const preCompactContext = finalContextTokensFromLastResponse(messagesForQuery);
161454
+ taskBudgetRemaining = Math.max(0, (taskBudgetRemaining ?? params.taskBudget.total) - preCompactContext);
161455
+ }
161456
+ tracking = {
161457
+ compacted: true,
161458
+ turnId: deps.uuid(),
161459
+ turnCounter: 0,
161460
+ consecutiveFailures: 0
161461
+ };
161462
+ const postCompactMessages = buildPostCompactMessages(compactionResult);
161463
+ for (const message of postCompactMessages) {
161464
+ yield message;
161465
+ }
161466
+ messagesForQuery = postCompactMessages;
161467
+ } else if (consecutiveFailures !== undefined) {
161468
+ tracking = {
161469
+ ...tracking ?? { compacted: false, turnId: "", turnCounter: 0 },
161470
+ consecutiveFailures
161471
+ };
161503
161472
  }
161504
- }
161505
- let attemptWithFallback = true;
161506
- queryCheckpoint("query_api_loop_start");
161507
- try {
161508
- while (attemptWithFallback) {
161509
- attemptWithFallback = false;
161510
- try {
161511
- let streamingFallbackOccured = false;
161512
- queryCheckpoint("query_api_streaming_start");
161513
- for await (const message of deps.callModel({
161514
- messages: prependUserContext(messagesForQuery, userContext),
161515
- systemPrompt: fullSystemPrompt,
161516
- thinkingConfig: toolUseContext.options.thinkingConfig,
161517
- tools: toolUseContext.options.tools,
161518
- signal: toolUseContext.abortController.signal,
161519
- options: {
161520
- async getToolPermissionContext() {
161521
- const appState2 = toolUseContext.getAppState();
161522
- return appState2.toolPermissionContext;
161523
- },
161524
- model: currentModel,
161525
- ...config3.gates.fastModeEnabled && {
161526
- fastMode: appState.fastMode
161527
- },
161528
- toolChoice: undefined,
161529
- isNonInteractiveSession: toolUseContext.options.isNonInteractiveSession,
161530
- fallbackModel,
161531
- onStreamingFallback: () => {
161532
- streamingFallbackOccured = true;
161533
- },
161534
- querySource,
161535
- agents: toolUseContext.options.agentDefinitions.activeAgents,
161536
- allowedAgentTypes: toolUseContext.options.agentDefinitions.allowedAgentTypes,
161537
- hasAppendSystemPrompt: !!toolUseContext.options.appendSystemPrompt,
161538
- maxOutputTokensOverride,
161539
- fetchOverride: dumpPromptsFetch,
161540
- mcpTools: appState.mcp.tools,
161541
- hasPendingMcpServers: appState.mcp.clients.some((c) => c.type === "pending"),
161542
- queryTracking,
161543
- effortValue: appState.effortValue,
161544
- advisorModel: appState.advisorModel,
161545
- skipCacheWrite,
161546
- agentId: toolUseContext.agentId,
161547
- addNotification: toolUseContext.addNotification,
161548
- ...params.taskBudget && {
161549
- taskBudget: {
161550
- total: params.taskBudget.total,
161551
- ...taskBudgetRemaining !== undefined && {
161552
- remaining: taskBudgetRemaining
161473
+ toolUseContext = {
161474
+ ...toolUseContext,
161475
+ messages: messagesForQuery
161476
+ };
161477
+ const assistantMessages = [];
161478
+ const toolResults = [];
161479
+ const toolUseBlocks = [];
161480
+ let needsFollowUp = false;
161481
+ queryCheckpoint("query_setup_start");
161482
+ const useStreamingToolExecution = config3.gates.streamingToolExecution;
161483
+ let streamingToolExecutor = useStreamingToolExecution ? new StreamingToolExecutor(toolUseContext.options.tools, canUseTool, toolUseContext) : null;
161484
+ const appState = toolUseContext.getAppState();
161485
+ const permissionMode = appState.toolPermissionContext.mode;
161486
+ let currentModel = getRuntimeMainLoopModel({
161487
+ permissionMode,
161488
+ mainLoopModel: toolUseContext.options.mainLoopModel,
161489
+ exceeds200kTokens: permissionMode === "plan" && doesMostRecentAssistantMessageExceed200k(messagesForQuery)
161490
+ });
161491
+ queryCheckpoint("query_setup_end");
161492
+ const dumpPromptsFetch = config3.gates.isAnt ? createDumpPromptsFetch(toolUseContext.agentId ?? config3.sessionId) : undefined;
161493
+ let collapseOwnsIt = false;
161494
+ if (true) {
161495
+ collapseOwnsIt = (contextCollapse?.isContextCollapseEnabled() ?? false) && isAutoCompactEnabled();
161496
+ }
161497
+ const mediaRecoveryEnabled = reactiveCompact?.isReactiveCompactEnabled() ?? false;
161498
+ if (!compactionResult && querySource !== "compact" && querySource !== "session_memory" && !(reactiveCompact?.isReactiveCompactEnabled() && isAutoCompactEnabled()) && !collapseOwnsIt) {
161499
+ const { isAtBlockingLimit } = calculateTokenWarningState(tokenCountWithEstimation(messagesForQuery) - snipTokensFreed, toolUseContext.options.mainLoopModel);
161500
+ if (isAtBlockingLimit) {
161501
+ yield createAssistantAPIErrorMessage({
161502
+ content: PROMPT_TOO_LONG_ERROR_MESSAGE,
161503
+ error: "invalid_request"
161504
+ });
161505
+ return { reason: "blocking_limit" };
161506
+ }
161507
+ }
161508
+ let attemptWithFallback = true;
161509
+ queryCheckpoint("query_api_loop_start");
161510
+ try {
161511
+ while (attemptWithFallback) {
161512
+ attemptWithFallback = false;
161513
+ try {
161514
+ let streamingFallbackOccured = false;
161515
+ queryCheckpoint("query_api_streaming_start");
161516
+ for await (const message of deps.callModel({
161517
+ messages: prependUserContext(messagesForQuery, userContext),
161518
+ systemPrompt: fullSystemPrompt,
161519
+ thinkingConfig: toolUseContext.options.thinkingConfig,
161520
+ tools: toolUseContext.options.tools,
161521
+ signal: toolUseContext.abortController.signal,
161522
+ options: {
161523
+ async getToolPermissionContext() {
161524
+ const appState2 = toolUseContext.getAppState();
161525
+ return appState2.toolPermissionContext;
161526
+ },
161527
+ model: currentModel,
161528
+ ...config3.gates.fastModeEnabled && {
161529
+ fastMode: appState.fastMode
161530
+ },
161531
+ toolChoice: undefined,
161532
+ isNonInteractiveSession: toolUseContext.options.isNonInteractiveSession,
161533
+ fallbackModel,
161534
+ onStreamingFallback: () => {
161535
+ streamingFallbackOccured = true;
161536
+ },
161537
+ querySource,
161538
+ agents: toolUseContext.options.agentDefinitions.activeAgents,
161539
+ allowedAgentTypes: toolUseContext.options.agentDefinitions.allowedAgentTypes,
161540
+ hasAppendSystemPrompt: !!toolUseContext.options.appendSystemPrompt,
161541
+ maxOutputTokensOverride,
161542
+ fetchOverride: dumpPromptsFetch,
161543
+ mcpTools: appState.mcp.tools,
161544
+ hasPendingMcpServers: appState.mcp.clients.some((c) => c.type === "pending"),
161545
+ queryTracking,
161546
+ effortValue: appState.effortValue,
161547
+ advisorModel: appState.advisorModel,
161548
+ skipCacheWrite,
161549
+ agentId: toolUseContext.agentId,
161550
+ addNotification: toolUseContext.addNotification,
161551
+ ...params.taskBudget && {
161552
+ taskBudget: {
161553
+ total: params.taskBudget.total,
161554
+ ...taskBudgetRemaining !== undefined && {
161555
+ remaining: taskBudgetRemaining
161556
+ }
161553
161557
  }
161554
- }
161555
- },
161556
- langfuseTrace: toolUseContext.langfuseTrace
161557
- }
161558
- })) {
161559
- if (streamingFallbackOccured) {
161560
- for (const msg of assistantMessages) {
161561
- yield { type: "tombstone", message: msg };
161558
+ },
161559
+ langfuseTrace: toolUseContext.langfuseTrace
161562
161560
  }
161563
- logEvent("tengu_orphaned_messages_tombstoned", {
161564
- orphanedMessageCount: assistantMessages.length,
161565
- queryChainId: queryChainIdForAnalytics,
161566
- queryDepth: queryTracking.depth
161567
- });
161568
- assistantMessages.length = 0;
161569
- toolResults.length = 0;
161570
- toolUseBlocks.length = 0;
161571
- needsFollowUp = false;
161572
- if (streamingToolExecutor) {
161573
- streamingToolExecutor.discard();
161574
- streamingToolExecutor = new StreamingToolExecutor(toolUseContext.options.tools, canUseTool, toolUseContext);
161561
+ })) {
161562
+ if (streamingFallbackOccured) {
161563
+ for (const msg of assistantMessages) {
161564
+ yield { type: "tombstone", message: msg };
161565
+ }
161566
+ logEvent("tengu_orphaned_messages_tombstoned", {
161567
+ orphanedMessageCount: assistantMessages.length,
161568
+ queryChainId: queryChainIdForAnalytics,
161569
+ queryDepth: queryTracking.depth
161570
+ });
161571
+ assistantMessages.length = 0;
161572
+ toolResults.length = 0;
161573
+ toolUseBlocks.length = 0;
161574
+ needsFollowUp = false;
161575
+ if (streamingToolExecutor) {
161576
+ streamingToolExecutor.discard();
161577
+ streamingToolExecutor = new StreamingToolExecutor(toolUseContext.options.tools, canUseTool, toolUseContext);
161578
+ }
161575
161579
  }
161576
- }
161577
- let yieldMessage = message;
161578
- if (message.type === "assistant") {
161579
- const assistantMsg = message;
161580
- const contentArr = Array.isArray(assistantMsg.message?.content) ? assistantMsg.message.content : [];
161581
- let clonedContent;
161582
- for (let i = 0;i < contentArr.length; i++) {
161583
- const block = contentArr[i];
161584
- if (block.type === "tool_use" && typeof block.input === "object" && block.input !== null) {
161585
- const tool = findToolByName(toolUseContext.options.tools, block.name);
161586
- if (tool?.backfillObservableInput) {
161587
- const originalInput = block.input;
161588
- const inputCopy = { ...originalInput };
161589
- tool.backfillObservableInput(inputCopy);
161590
- const addedFields = Object.keys(inputCopy).some((k2) => !(k2 in originalInput));
161591
- if (addedFields) {
161592
- clonedContent ??= [...contentArr];
161593
- clonedContent[i] = { ...block, input: inputCopy };
161580
+ let yieldMessage = message;
161581
+ if (message.type === "assistant") {
161582
+ const assistantMsg = message;
161583
+ const contentArr = Array.isArray(assistantMsg.message?.content) ? assistantMsg.message.content : [];
161584
+ let clonedContent;
161585
+ for (let i = 0;i < contentArr.length; i++) {
161586
+ const block = contentArr[i];
161587
+ if (block.type === "tool_use" && typeof block.input === "object" && block.input !== null) {
161588
+ const tool = findToolByName(toolUseContext.options.tools, block.name);
161589
+ if (tool?.backfillObservableInput) {
161590
+ const originalInput = block.input;
161591
+ const inputCopy = { ...originalInput };
161592
+ tool.backfillObservableInput(inputCopy);
161593
+ const addedFields = Object.keys(inputCopy).some((k2) => !(k2 in originalInput));
161594
+ if (addedFields) {
161595
+ clonedContent ??= [...contentArr];
161596
+ clonedContent[i] = { ...block, input: inputCopy };
161597
+ }
161594
161598
  }
161595
161599
  }
161596
161600
  }
161601
+ if (clonedContent) {
161602
+ yieldMessage = {
161603
+ ...message,
161604
+ message: { ...assistantMsg.message ?? {}, content: clonedContent }
161605
+ };
161606
+ }
161597
161607
  }
161598
- if (clonedContent) {
161599
- yieldMessage = {
161600
- ...message,
161601
- message: { ...assistantMsg.message ?? {}, content: clonedContent }
161602
- };
161608
+ let withheld = false;
161609
+ if (true) {
161610
+ if (contextCollapse?.isWithheldPromptTooLong(message, isPromptTooLongMessage, querySource)) {
161611
+ withheld = true;
161612
+ }
161603
161613
  }
161604
- }
161605
- let withheld = false;
161606
- if (true) {
161607
- if (contextCollapse?.isWithheldPromptTooLong(message, isPromptTooLongMessage, querySource)) {
161614
+ if (reactiveCompact?.isWithheldPromptTooLong(message)) {
161608
161615
  withheld = true;
161609
161616
  }
161610
- }
161611
- if (reactiveCompact?.isWithheldPromptTooLong(message)) {
161612
- withheld = true;
161613
- }
161614
- if (mediaRecoveryEnabled && reactiveCompact?.isWithheldMediaSizeError(message)) {
161615
- withheld = true;
161616
- }
161617
- if (isWithheldMaxOutputTokens(message)) {
161618
- withheld = true;
161619
- }
161620
- if (!withheld) {
161621
- yield yieldMessage;
161622
- }
161623
- if (message.type === "assistant") {
161624
- const assistantMessage = message;
161625
- assistantMessages.push(assistantMessage);
161626
- const msgToolUseBlocks = (Array.isArray(assistantMessage.message?.content) ? assistantMessage.message.content : []).filter((content) => content.type === "tool_use");
161627
- if (msgToolUseBlocks.length > 0) {
161628
- toolUseBlocks.push(...msgToolUseBlocks);
161629
- needsFollowUp = true;
161617
+ if (mediaRecoveryEnabled && reactiveCompact?.isWithheldMediaSizeError(message)) {
161618
+ withheld = true;
161630
161619
  }
161631
- if (streamingToolExecutor && !toolUseContext.abortController.signal.aborted) {
161632
- for (const toolBlock of msgToolUseBlocks) {
161633
- streamingToolExecutor.addTool(toolBlock, assistantMessage);
161620
+ if (isWithheldMaxOutputTokens(message)) {
161621
+ withheld = true;
161622
+ }
161623
+ if (!withheld) {
161624
+ yield yieldMessage;
161625
+ }
161626
+ if (message.type === "assistant") {
161627
+ const assistantMessage = message;
161628
+ assistantMessages.push(assistantMessage);
161629
+ const msgToolUseBlocks = (Array.isArray(assistantMessage.message?.content) ? assistantMessage.message.content : []).filter((content) => content.type === "tool_use");
161630
+ if (msgToolUseBlocks.length > 0) {
161631
+ toolUseBlocks.push(...msgToolUseBlocks);
161632
+ needsFollowUp = true;
161633
+ }
161634
+ if (streamingToolExecutor && !toolUseContext.abortController.signal.aborted) {
161635
+ for (const toolBlock of msgToolUseBlocks) {
161636
+ streamingToolExecutor.addTool(toolBlock, assistantMessage);
161637
+ }
161634
161638
  }
161635
161639
  }
161636
- }
161637
- if (streamingToolExecutor && !toolUseContext.abortController.signal.aborted) {
161638
- for (const result of streamingToolExecutor.getCompletedResults()) {
161639
- if (result.message) {
161640
- yield result.message;
161641
- toolResults.push(...normalizeMessagesForAPI([result.message], toolUseContext.options.tools).filter((_2) => _2.type === "user"));
161640
+ if (streamingToolExecutor && !toolUseContext.abortController.signal.aborted) {
161641
+ for (const result of streamingToolExecutor.getCompletedResults()) {
161642
+ if (result.message) {
161643
+ yield result.message;
161644
+ toolResults.push(...normalizeMessagesForAPI([result.message], toolUseContext.options.tools).filter((_2) => _2.type === "user"));
161645
+ }
161642
161646
  }
161643
161647
  }
161644
161648
  }
161645
- }
161646
- queryCheckpoint("query_api_streaming_end");
161647
- if (false) {}
161648
- } catch (innerError) {
161649
- if (innerError instanceof FallbackTriggeredError && fallbackModel) {
161650
- currentModel = fallbackModel;
161651
- attemptWithFallback = true;
161652
- yield* yieldMissingToolResultBlocks(assistantMessages, "Model fallback triggered");
161653
- assistantMessages.length = 0;
161654
- toolResults.length = 0;
161655
- toolUseBlocks.length = 0;
161656
- needsFollowUp = false;
161657
- if (streamingToolExecutor) {
161658
- streamingToolExecutor.discard();
161659
- streamingToolExecutor = new StreamingToolExecutor(toolUseContext.options.tools, canUseTool, toolUseContext);
161660
- }
161661
- toolUseContext.options.mainLoopModel = fallbackModel;
161662
- if (process.env.USER_TYPE === "ant") {
161663
- messagesForQuery = stripSignatureBlocks(messagesForQuery);
161649
+ queryCheckpoint("query_api_streaming_end");
161650
+ if (false) {}
161651
+ } catch (innerError) {
161652
+ if (innerError instanceof FallbackTriggeredError && fallbackModel) {
161653
+ currentModel = fallbackModel;
161654
+ attemptWithFallback = true;
161655
+ yield* yieldMissingToolResultBlocks(assistantMessages, "Model fallback triggered");
161656
+ assistantMessages.length = 0;
161657
+ toolResults.length = 0;
161658
+ toolUseBlocks.length = 0;
161659
+ needsFollowUp = false;
161660
+ if (streamingToolExecutor) {
161661
+ streamingToolExecutor.discard();
161662
+ streamingToolExecutor = new StreamingToolExecutor(toolUseContext.options.tools, canUseTool, toolUseContext);
161663
+ }
161664
+ toolUseContext.options.mainLoopModel = fallbackModel;
161665
+ if (process.env.USER_TYPE === "ant") {
161666
+ messagesForQuery = stripSignatureBlocks(messagesForQuery);
161667
+ }
161668
+ logEvent("tengu_model_fallback_triggered", {
161669
+ original_model: innerError.originalModel,
161670
+ fallback_model: fallbackModel,
161671
+ entrypoint: "cli",
161672
+ queryChainId: queryChainIdForAnalytics,
161673
+ queryDepth: queryTracking.depth
161674
+ });
161675
+ yield createSystemMessage(`Switched to ${renderModelName(innerError.fallbackModel)} due to high demand for ${renderModelName(innerError.originalModel)}`, "warning");
161676
+ continue;
161664
161677
  }
161665
- logEvent("tengu_model_fallback_triggered", {
161666
- original_model: innerError.originalModel,
161667
- fallback_model: fallbackModel,
161668
- entrypoint: "cli",
161669
- queryChainId: queryChainIdForAnalytics,
161670
- queryDepth: queryTracking.depth
161671
- });
161672
- yield createSystemMessage(`Switched to ${renderModelName(innerError.fallbackModel)} due to high demand for ${renderModelName(innerError.originalModel)}`, "warning");
161673
- continue;
161678
+ throw innerError;
161674
161679
  }
161675
- throw innerError;
161676
161680
  }
161677
- }
161678
- } catch (error40) {
161679
- logError(error40);
161680
- const errorMessage2 = error40 instanceof Error ? error40.message : String(error40);
161681
- logEvent("tengu_query_error", {
161682
- assistantMessages: assistantMessages.length,
161683
- toolUses: assistantMessages.flatMap((_2) => (Array.isArray(_2.message?.content) ? _2.message.content : []).filter((content) => content.type === "tool_use")).length,
161684
- queryChainId: queryChainIdForAnalytics,
161685
- queryDepth: queryTracking.depth
161686
- });
161687
- if (error40 instanceof ImageSizeError || error40 instanceof ImageResizeError) {
161681
+ } catch (error40) {
161682
+ logError(error40);
161683
+ const errorMessage2 = error40 instanceof Error ? error40.message : String(error40);
161684
+ logEvent("tengu_query_error", {
161685
+ assistantMessages: assistantMessages.length,
161686
+ toolUses: assistantMessages.flatMap((_2) => (Array.isArray(_2.message?.content) ? _2.message.content : []).filter((content) => content.type === "tool_use")).length,
161687
+ queryChainId: queryChainIdForAnalytics,
161688
+ queryDepth: queryTracking.depth
161689
+ });
161690
+ if (error40 instanceof ImageSizeError || error40 instanceof ImageResizeError) {
161691
+ yield createAssistantAPIErrorMessage({
161692
+ content: error40.message
161693
+ });
161694
+ return { reason: "image_error" };
161695
+ }
161696
+ yield* yieldMissingToolResultBlocks(assistantMessages, errorMessage2);
161688
161697
  yield createAssistantAPIErrorMessage({
161689
- content: error40.message
161698
+ content: errorMessage2
161690
161699
  });
161691
- return { reason: "image_error" };
161700
+ logAntError("Query error", error40);
161701
+ return { reason: "model_error", error: error40 };
161692
161702
  }
161693
- yield* yieldMissingToolResultBlocks(assistantMessages, errorMessage2);
161694
- yield createAssistantAPIErrorMessage({
161695
- content: errorMessage2
161696
- });
161697
- logAntError("Query error", error40);
161698
- return { reason: "model_error", error: error40 };
161699
- }
161700
- if (assistantMessages.length > 0) {
161701
- executePostSamplingHooks([...messagesForQuery, ...assistantMessages], systemPrompt, userContext, systemContext, toolUseContext, querySource);
161702
- }
161703
- if (toolUseContext.abortController.signal.aborted) {
161704
- if (streamingToolExecutor) {
161705
- for await (const update of streamingToolExecutor.getRemainingResults()) {
161706
- if (update.message) {
161707
- yield update.message;
161703
+ if (assistantMessages.length > 0) {
161704
+ executePostSamplingHooks([...messagesForQuery, ...assistantMessages], systemPrompt, userContext, systemContext, toolUseContext, querySource);
161705
+ }
161706
+ if (toolUseContext.abortController.signal.aborted) {
161707
+ if (streamingToolExecutor) {
161708
+ for await (const update of streamingToolExecutor.getRemainingResults()) {
161709
+ if (update.message) {
161710
+ yield update.message;
161711
+ }
161708
161712
  }
161713
+ } else {
161714
+ yield* yieldMissingToolResultBlocks(assistantMessages, "Interrupted by user");
161709
161715
  }
161710
- } else {
161711
- yield* yieldMissingToolResultBlocks(assistantMessages, "Interrupted by user");
161712
- }
161713
- if (!toolUseContext.agentId) {
161714
- try {
161715
- const { cleanupComputerUseAfterTurn } = await import("./chunk-2st57p4f.js");
161716
- await cleanupComputerUseAfterTurn(toolUseContext);
161717
- } catch {}
161718
- }
161719
- if (toolUseContext.abortController.signal.reason !== "interrupt") {
161720
- yield createUserInterruptionMessage({
161721
- toolUse: false
161722
- });
161723
- }
161724
- return { reason: "aborted_streaming" };
161725
- }
161726
- if (pendingToolUseSummary) {
161727
- const summary = await pendingToolUseSummary;
161728
- if (summary) {
161729
- yield summary;
161716
+ if (!toolUseContext.agentId) {
161717
+ try {
161718
+ const { cleanupComputerUseAfterTurn } = await import("./chunk-yq9t8xss.js");
161719
+ await cleanupComputerUseAfterTurn(toolUseContext);
161720
+ } catch {}
161721
+ }
161722
+ if (toolUseContext.abortController.signal.reason !== "interrupt") {
161723
+ yield createUserInterruptionMessage({
161724
+ toolUse: false
161725
+ });
161726
+ }
161727
+ return { reason: "aborted_streaming" };
161730
161728
  }
161731
- }
161732
- if (!needsFollowUp) {
161733
- const lastMessage = assistantMessages.at(-1);
161734
- const isWithheld413 = lastMessage?.type === "assistant" && lastMessage.isApiErrorMessage && isPromptTooLongMessage(lastMessage);
161735
- const isWithheldMedia = mediaRecoveryEnabled && reactiveCompact?.isWithheldMediaSizeError(lastMessage);
161736
- if (isWithheld413) {
161737
- if (contextCollapse && state.transition?.reason !== "collapse_drain_retry") {
161738
- const drained = contextCollapse.recoverFromOverflow(messagesForQuery, querySource);
161739
- if (drained.committed > 0) {
161729
+ if (pendingToolUseSummary) {
161730
+ const summary = await pendingToolUseSummary;
161731
+ if (summary) {
161732
+ yield summary;
161733
+ }
161734
+ }
161735
+ if (!needsFollowUp) {
161736
+ const lastMessage = assistantMessages.at(-1);
161737
+ const isWithheld413 = lastMessage?.type === "assistant" && lastMessage.isApiErrorMessage && isPromptTooLongMessage(lastMessage);
161738
+ const isWithheldMedia = mediaRecoveryEnabled && reactiveCompact?.isWithheldMediaSizeError(lastMessage);
161739
+ if (isWithheld413) {
161740
+ if (contextCollapse && state.transition?.reason !== "collapse_drain_retry") {
161741
+ const drained = contextCollapse.recoverFromOverflow(messagesForQuery, querySource);
161742
+ if (drained.committed > 0) {
161743
+ const next2 = {
161744
+ messages: drained.messages,
161745
+ toolUseContext,
161746
+ autoCompactTracking: tracking,
161747
+ maxOutputTokensRecoveryCount,
161748
+ hasAttemptedReactiveCompact,
161749
+ maxOutputTokensOverride: undefined,
161750
+ pendingToolUseSummary: undefined,
161751
+ stopHookActive: undefined,
161752
+ turnCount,
161753
+ transition: {
161754
+ reason: "collapse_drain_retry",
161755
+ committed: drained.committed
161756
+ }
161757
+ };
161758
+ state = next2;
161759
+ continue;
161760
+ }
161761
+ }
161762
+ }
161763
+ if ((isWithheld413 || isWithheldMedia) && reactiveCompact) {
161764
+ const compacted = await reactiveCompact.tryReactiveCompact({
161765
+ hasAttempted: hasAttemptedReactiveCompact,
161766
+ querySource,
161767
+ aborted: toolUseContext.abortController.signal.aborted,
161768
+ messages: messagesForQuery,
161769
+ cacheSafeParams: {
161770
+ systemPrompt,
161771
+ userContext,
161772
+ systemContext,
161773
+ toolUseContext,
161774
+ forkContextMessages: messagesForQuery
161775
+ }
161776
+ });
161777
+ if (compacted) {
161778
+ if (params.taskBudget) {
161779
+ const preCompactContext = finalContextTokensFromLastResponse(messagesForQuery);
161780
+ taskBudgetRemaining = Math.max(0, (taskBudgetRemaining ?? params.taskBudget.total) - preCompactContext);
161781
+ }
161782
+ const postCompactMessages = buildPostCompactMessages(compacted);
161783
+ for (const msg of postCompactMessages) {
161784
+ yield msg;
161785
+ }
161786
+ const next2 = {
161787
+ messages: postCompactMessages,
161788
+ toolUseContext,
161789
+ autoCompactTracking: undefined,
161790
+ maxOutputTokensRecoveryCount,
161791
+ hasAttemptedReactiveCompact: true,
161792
+ maxOutputTokensOverride: undefined,
161793
+ pendingToolUseSummary: undefined,
161794
+ stopHookActive: undefined,
161795
+ turnCount,
161796
+ transition: { reason: "reactive_compact_retry" }
161797
+ };
161798
+ state = next2;
161799
+ continue;
161800
+ }
161801
+ yield lastMessage;
161802
+ executeStopFailureHooks(lastMessage, toolUseContext);
161803
+ return { reason: isWithheldMedia ? "image_error" : "prompt_too_long" };
161804
+ } else if (isWithheld413) {
161805
+ yield lastMessage;
161806
+ executeStopFailureHooks(lastMessage, toolUseContext);
161807
+ return { reason: "prompt_too_long" };
161808
+ }
161809
+ if (isWithheldMaxOutputTokens(lastMessage)) {
161810
+ const capEnabled = getFeatureValue_CACHED_MAY_BE_STALE("tengu_otk_slot_v1", false);
161811
+ if (capEnabled && maxOutputTokensOverride === undefined && !process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS) {
161812
+ logEvent("tengu_max_tokens_escalate", {
161813
+ escalatedTo: ESCALATED_MAX_TOKENS
161814
+ });
161740
161815
  const next2 = {
161741
- messages: drained.messages,
161816
+ messages: messagesForQuery,
161742
161817
  toolUseContext,
161743
161818
  autoCompactTracking: tracking,
161744
161819
  maxOutputTokensRecoveryCount,
161745
161820
  hasAttemptedReactiveCompact,
161821
+ maxOutputTokensOverride: ESCALATED_MAX_TOKENS,
161822
+ pendingToolUseSummary: undefined,
161823
+ stopHookActive: undefined,
161824
+ turnCount,
161825
+ transition: { reason: "max_output_tokens_escalate" }
161826
+ };
161827
+ state = next2;
161828
+ continue;
161829
+ }
161830
+ if (maxOutputTokensRecoveryCount < MAX_OUTPUT_TOKENS_RECOVERY_LIMIT) {
161831
+ const recoveryMessage = createUserMessage({
161832
+ content: `Output token limit hit. Resume directly \u2014 no apology, no recap of what you were doing. ` + `Pick up mid-thought if that is where the cut happened. Break remaining work into smaller pieces.`,
161833
+ isMeta: true
161834
+ });
161835
+ const next2 = {
161836
+ messages: [
161837
+ ...messagesForQuery,
161838
+ ...assistantMessages,
161839
+ recoveryMessage
161840
+ ],
161841
+ toolUseContext,
161842
+ autoCompactTracking: tracking,
161843
+ maxOutputTokensRecoveryCount: maxOutputTokensRecoveryCount + 1,
161844
+ hasAttemptedReactiveCompact,
161746
161845
  maxOutputTokensOverride: undefined,
161747
161846
  pendingToolUseSummary: undefined,
161748
161847
  stopHookActive: undefined,
161749
161848
  turnCount,
161750
161849
  transition: {
161751
- reason: "collapse_drain_retry",
161752
- committed: drained.committed
161850
+ reason: "max_output_tokens_recovery",
161851
+ attempt: maxOutputTokensRecoveryCount + 1
161753
161852
  }
161754
161853
  };
161755
161854
  state = next2;
161756
161855
  continue;
161757
161856
  }
161857
+ yield lastMessage;
161758
161858
  }
161759
- }
161760
- if ((isWithheld413 || isWithheldMedia) && reactiveCompact) {
161761
- const compacted = await reactiveCompact.tryReactiveCompact({
161762
- hasAttempted: hasAttemptedReactiveCompact,
161763
- querySource,
161764
- aborted: toolUseContext.abortController.signal.aborted,
161765
- messages: messagesForQuery,
161766
- cacheSafeParams: {
161767
- systemPrompt,
161768
- userContext,
161769
- systemContext,
161770
- toolUseContext,
161771
- forkContextMessages: messagesForQuery
161772
- }
161773
- });
161774
- if (compacted) {
161775
- if (params.taskBudget) {
161776
- const preCompactContext = finalContextTokensFromLastResponse(messagesForQuery);
161777
- taskBudgetRemaining = Math.max(0, (taskBudgetRemaining ?? params.taskBudget.total) - preCompactContext);
161778
- }
161779
- const postCompactMessages = buildPostCompactMessages(compacted);
161780
- for (const msg of postCompactMessages) {
161781
- yield msg;
161782
- }
161783
- const next2 = {
161784
- messages: postCompactMessages,
161785
- toolUseContext,
161786
- autoCompactTracking: undefined,
161787
- maxOutputTokensRecoveryCount,
161788
- hasAttemptedReactiveCompact: true,
161789
- maxOutputTokensOverride: undefined,
161790
- pendingToolUseSummary: undefined,
161791
- stopHookActive: undefined,
161792
- turnCount,
161793
- transition: { reason: "reactive_compact_retry" }
161794
- };
161795
- state = next2;
161796
- continue;
161859
+ if (lastMessage?.isApiErrorMessage) {
161860
+ executeStopFailureHooks(lastMessage, toolUseContext);
161861
+ return { reason: "completed" };
161797
161862
  }
161798
- yield lastMessage;
161799
- executeStopFailureHooks(lastMessage, toolUseContext);
161800
- return { reason: isWithheldMedia ? "image_error" : "prompt_too_long" };
161801
- } else if (isWithheld413) {
161802
- yield lastMessage;
161803
- executeStopFailureHooks(lastMessage, toolUseContext);
161804
- return { reason: "prompt_too_long" };
161805
- }
161806
- if (isWithheldMaxOutputTokens(lastMessage)) {
161807
- const capEnabled = getFeatureValue_CACHED_MAY_BE_STALE("tengu_otk_slot_v1", false);
161808
- if (capEnabled && maxOutputTokensOverride === undefined && !process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS) {
161809
- logEvent("tengu_max_tokens_escalate", {
161810
- escalatedTo: ESCALATED_MAX_TOKENS
161811
- });
161812
- const next2 = {
161813
- messages: messagesForQuery,
161814
- toolUseContext,
161815
- autoCompactTracking: tracking,
161816
- maxOutputTokensRecoveryCount,
161817
- hasAttemptedReactiveCompact,
161818
- maxOutputTokensOverride: ESCALATED_MAX_TOKENS,
161819
- pendingToolUseSummary: undefined,
161820
- stopHookActive: undefined,
161821
- turnCount,
161822
- transition: { reason: "max_output_tokens_escalate" }
161823
- };
161824
- state = next2;
161825
- continue;
161863
+ const stopHookResult = yield* handleStopHooks(messagesForQuery, assistantMessages, systemPrompt, userContext, systemContext, toolUseContext, querySource, stopHookActive);
161864
+ if (stopHookResult.preventContinuation) {
161865
+ return { reason: "stop_hook_prevented" };
161826
161866
  }
161827
- if (maxOutputTokensRecoveryCount < MAX_OUTPUT_TOKENS_RECOVERY_LIMIT) {
161828
- const recoveryMessage = createUserMessage({
161829
- content: `Output token limit hit. Resume directly \u2014 no apology, no recap of what you were doing. ` + `Pick up mid-thought if that is where the cut happened. Break remaining work into smaller pieces.`,
161830
- isMeta: true
161831
- });
161867
+ if (stopHookResult.blockingErrors.length > 0) {
161832
161868
  const next2 = {
161833
161869
  messages: [
161834
161870
  ...messagesForQuery,
161835
161871
  ...assistantMessages,
161836
- recoveryMessage
161872
+ ...stopHookResult.blockingErrors
161837
161873
  ],
161838
161874
  toolUseContext,
161839
161875
  autoCompactTracking: tracking,
161840
- maxOutputTokensRecoveryCount: maxOutputTokensRecoveryCount + 1,
161876
+ maxOutputTokensRecoveryCount: 0,
161841
161877
  hasAttemptedReactiveCompact,
161842
161878
  maxOutputTokensOverride: undefined,
161843
161879
  pendingToolUseSummary: undefined,
161844
- stopHookActive: undefined,
161880
+ stopHookActive: true,
161845
161881
  turnCount,
161846
- transition: {
161847
- reason: "max_output_tokens_recovery",
161848
- attempt: maxOutputTokensRecoveryCount + 1
161849
- }
161882
+ transition: { reason: "stop_hook_blocking" }
161850
161883
  };
161851
161884
  state = next2;
161852
161885
  continue;
161853
161886
  }
161854
- yield lastMessage;
161855
- }
161856
- if (lastMessage?.isApiErrorMessage) {
161857
- executeStopFailureHooks(lastMessage, toolUseContext);
161887
+ if (true) {
161888
+ const decision = checkTokenBudget(budgetTracker, toolUseContext.agentId, getCurrentTurnTokenBudget(), getTurnOutputTokens());
161889
+ if (decision.action === "continue") {
161890
+ incrementBudgetContinuationCount();
161891
+ logForDebugging(`Token budget continuation #${decision.continuationCount}: ${decision.pct}% (${decision.turnTokens.toLocaleString()} / ${decision.budget.toLocaleString()})`);
161892
+ state = {
161893
+ messages: [
161894
+ ...messagesForQuery,
161895
+ ...assistantMessages,
161896
+ createUserMessage({
161897
+ content: decision.nudgeMessage,
161898
+ isMeta: true
161899
+ })
161900
+ ],
161901
+ toolUseContext,
161902
+ autoCompactTracking: tracking,
161903
+ maxOutputTokensRecoveryCount: 0,
161904
+ hasAttemptedReactiveCompact: false,
161905
+ maxOutputTokensOverride: undefined,
161906
+ pendingToolUseSummary: undefined,
161907
+ stopHookActive: undefined,
161908
+ turnCount,
161909
+ transition: { reason: "token_budget_continuation" }
161910
+ };
161911
+ continue;
161912
+ }
161913
+ if (decision.completionEvent) {
161914
+ if (decision.completionEvent.diminishingReturns) {
161915
+ logForDebugging(`Token budget early stop: diminishing returns at ${decision.completionEvent.pct}%`);
161916
+ }
161917
+ logEvent("tengu_token_budget_completed", {
161918
+ ...decision.completionEvent,
161919
+ queryChainId: queryChainIdForAnalytics,
161920
+ queryDepth: queryTracking.depth
161921
+ });
161922
+ }
161923
+ }
161858
161924
  return { reason: "completed" };
161859
161925
  }
161860
- const stopHookResult = yield* handleStopHooks(messagesForQuery, assistantMessages, systemPrompt, userContext, systemContext, toolUseContext, querySource, stopHookActive);
161861
- if (stopHookResult.preventContinuation) {
161862
- return { reason: "stop_hook_prevented" };
161863
- }
161864
- if (stopHookResult.blockingErrors.length > 0) {
161865
- const next2 = {
161866
- messages: [
161867
- ...messagesForQuery,
161868
- ...assistantMessages,
161869
- ...stopHookResult.blockingErrors
161870
- ],
161871
- toolUseContext,
161872
- autoCompactTracking: tracking,
161873
- maxOutputTokensRecoveryCount: 0,
161874
- hasAttemptedReactiveCompact,
161875
- maxOutputTokensOverride: undefined,
161876
- pendingToolUseSummary: undefined,
161877
- stopHookActive: true,
161878
- turnCount,
161879
- transition: { reason: "stop_hook_blocking" }
161880
- };
161881
- state = next2;
161882
- continue;
161926
+ let shouldPreventContinuation = false;
161927
+ let updatedToolUseContext = toolUseContext;
161928
+ queryCheckpoint("query_tool_execution_start");
161929
+ if (streamingToolExecutor) {
161930
+ logEvent("tengu_streaming_tool_execution_used", {
161931
+ tool_count: toolUseBlocks.length,
161932
+ queryChainId: queryChainIdForAnalytics,
161933
+ queryDepth: queryTracking.depth
161934
+ });
161935
+ } else {
161936
+ logEvent("tengu_streaming_tool_execution_not_used", {
161937
+ tool_count: toolUseBlocks.length,
161938
+ queryChainId: queryChainIdForAnalytics,
161939
+ queryDepth: queryTracking.depth
161940
+ });
161883
161941
  }
161884
- if (true) {
161885
- const decision = checkTokenBudget(budgetTracker, toolUseContext.agentId, getCurrentTurnTokenBudget(), getTurnOutputTokens());
161886
- if (decision.action === "continue") {
161887
- incrementBudgetContinuationCount();
161888
- logForDebugging(`Token budget continuation #${decision.continuationCount}: ${decision.pct}% (${decision.turnTokens.toLocaleString()} / ${decision.budget.toLocaleString()})`);
161889
- state = {
161890
- messages: [
161891
- ...messagesForQuery,
161892
- ...assistantMessages,
161893
- createUserMessage({
161894
- content: decision.nudgeMessage,
161895
- isMeta: true
161896
- })
161897
- ],
161898
- toolUseContext,
161899
- autoCompactTracking: tracking,
161900
- maxOutputTokensRecoveryCount: 0,
161901
- hasAttemptedReactiveCompact: false,
161902
- maxOutputTokensOverride: undefined,
161903
- pendingToolUseSummary: undefined,
161904
- stopHookActive: undefined,
161905
- turnCount,
161906
- transition: { reason: "token_budget_continuation" }
161942
+ const toolUpdates = streamingToolExecutor ? streamingToolExecutor.getRemainingResults() : runTools(toolUseBlocks, assistantMessages, canUseTool, toolUseContext);
161943
+ for await (const update of toolUpdates) {
161944
+ if (update.message) {
161945
+ yield update.message;
161946
+ if (update.message.type === "attachment" && update.message.attachment.type === "hook_stopped_continuation") {
161947
+ shouldPreventContinuation = true;
161948
+ }
161949
+ toolResults.push(...normalizeMessagesForAPI([update.message], toolUseContext.options.tools).filter((_2) => _2.type === "user"));
161950
+ }
161951
+ if (update.newContext) {
161952
+ updatedToolUseContext = {
161953
+ ...update.newContext,
161954
+ queryTracking
161907
161955
  };
161908
- continue;
161909
161956
  }
161910
- if (decision.completionEvent) {
161911
- if (decision.completionEvent.diminishingReturns) {
161912
- logForDebugging(`Token budget early stop: diminishing returns at ${decision.completionEvent.pct}%`);
161957
+ }
161958
+ queryCheckpoint("query_tool_execution_end");
161959
+ let nextPendingToolUseSummary;
161960
+ if (config3.gates.emitToolUseSummaries && toolUseBlocks.length > 0 && !toolUseContext.abortController.signal.aborted && !toolUseContext.agentId) {
161961
+ const lastAssistantMessage = assistantMessages.at(-1);
161962
+ let lastAssistantText;
161963
+ if (lastAssistantMessage) {
161964
+ const textBlocks = (Array.isArray(lastAssistantMessage.message?.content) ? lastAssistantMessage.message.content : []).filter((block) => block.type === "text");
161965
+ if (textBlocks.length > 0) {
161966
+ const lastTextBlock = textBlocks.at(-1);
161967
+ if (lastTextBlock && "text" in lastTextBlock) {
161968
+ lastAssistantText = lastTextBlock.text;
161969
+ }
161970
+ }
161971
+ }
161972
+ const toolUseIds = toolUseBlocks.map((block) => block.id);
161973
+ const toolInfoForSummary = toolUseBlocks.map((block) => {
161974
+ const toolResult = toolResults.find((result) => result.type === "user" && Array.isArray(result.message.content) && result.message.content.some((content) => content.type === "tool_result" && content.tool_use_id === block.id));
161975
+ const resultContent = toolResult?.type === "user" && Array.isArray(toolResult.message.content) ? toolResult.message.content.find((c) => c.type === "tool_result" && c.tool_use_id === block.id) : undefined;
161976
+ return {
161977
+ name: block.name,
161978
+ input: block.input,
161979
+ output: resultContent && "content" in resultContent ? resultContent.content : null
161980
+ };
161981
+ });
161982
+ nextPendingToolUseSummary = generateToolUseSummary({
161983
+ tools: toolInfoForSummary,
161984
+ signal: toolUseContext.abortController.signal,
161985
+ isNonInteractiveSession: toolUseContext.options.isNonInteractiveSession,
161986
+ lastAssistantText
161987
+ }).then((summary) => {
161988
+ if (summary) {
161989
+ return createToolUseSummaryMessage(summary, toolUseIds);
161913
161990
  }
161914
- logEvent("tengu_token_budget_completed", {
161915
- ...decision.completionEvent,
161916
- queryChainId: queryChainIdForAnalytics,
161917
- queryDepth: queryTracking.depth
161991
+ return null;
161992
+ }).catch(() => null);
161993
+ }
161994
+ if (toolUseContext.abortController.signal.aborted) {
161995
+ if (!toolUseContext.agentId) {
161996
+ try {
161997
+ const { cleanupComputerUseAfterTurn } = await import("./chunk-yq9t8xss.js");
161998
+ await cleanupComputerUseAfterTurn(toolUseContext);
161999
+ } catch {}
162000
+ }
162001
+ if (toolUseContext.abortController.signal.reason !== "interrupt") {
162002
+ yield createUserInterruptionMessage({
162003
+ toolUse: true
162004
+ });
162005
+ }
162006
+ const nextTurnCountOnAbort = turnCount + 1;
162007
+ if (maxTurns && nextTurnCountOnAbort > maxTurns) {
162008
+ yield createAttachmentMessage({
162009
+ type: "max_turns_reached",
162010
+ maxTurns,
162011
+ turnCount: nextTurnCountOnAbort
161918
162012
  });
161919
162013
  }
162014
+ return { reason: "aborted_tools" };
161920
162015
  }
161921
- return { reason: "completed" };
161922
- }
161923
- let shouldPreventContinuation = false;
161924
- let updatedToolUseContext = toolUseContext;
161925
- queryCheckpoint("query_tool_execution_start");
161926
- if (streamingToolExecutor) {
161927
- logEvent("tengu_streaming_tool_execution_used", {
161928
- tool_count: toolUseBlocks.length,
162016
+ if (shouldPreventContinuation) {
162017
+ return { reason: "hook_stopped" };
162018
+ }
162019
+ if (tracking?.compacted) {
162020
+ tracking.turnCounter++;
162021
+ logEvent("tengu_post_autocompact_turn", {
162022
+ turnId: tracking.turnId,
162023
+ turnCounter: tracking.turnCounter,
162024
+ queryChainId: queryChainIdForAnalytics,
162025
+ queryDepth: queryTracking.depth
162026
+ });
162027
+ }
162028
+ logEvent("tengu_query_before_attachments", {
162029
+ messagesForQueryCount: messagesForQuery.length,
162030
+ assistantMessagesCount: assistantMessages.length,
162031
+ toolResultsCount: toolResults.length,
161929
162032
  queryChainId: queryChainIdForAnalytics,
161930
162033
  queryDepth: queryTracking.depth
161931
162034
  });
161932
- } else {
161933
- logEvent("tengu_streaming_tool_execution_not_used", {
161934
- tool_count: toolUseBlocks.length,
161935
- queryChainId: queryChainIdForAnalytics,
161936
- queryDepth: queryTracking.depth
162035
+ const sleepRan = toolUseBlocks.some((b2) => b2.name === SLEEP_TOOL_NAME);
162036
+ const isMainThread = querySource.startsWith("repl_main_thread") || querySource === "sdk";
162037
+ const currentAgentId = toolUseContext.agentId;
162038
+ const queuedCommandsSnapshot = getCommandsByMaxPriority(sleepRan ? "later" : "next").filter((cmd) => {
162039
+ if (isSlashCommand(cmd))
162040
+ return false;
162041
+ if (isMainThread)
162042
+ return cmd.agentId === undefined;
162043
+ return cmd.mode === "task-notification" && cmd.agentId === currentAgentId;
161937
162044
  });
161938
- }
161939
- const toolUpdates = streamingToolExecutor ? streamingToolExecutor.getRemainingResults() : runTools(toolUseBlocks, assistantMessages, canUseTool, toolUseContext);
161940
- for await (const update of toolUpdates) {
161941
- if (update.message) {
161942
- yield update.message;
161943
- if (update.message.type === "attachment" && update.message.attachment.type === "hook_stopped_continuation") {
161944
- shouldPreventContinuation = true;
162045
+ for await (const attachment of getAttachmentMessages(null, updatedToolUseContext, null, queuedCommandsSnapshot, [...messagesForQuery, ...assistantMessages, ...toolResults], querySource)) {
162046
+ yield attachment;
162047
+ toolResults.push(attachment);
162048
+ }
162049
+ if (pendingMemoryPrefetch && pendingMemoryPrefetch.settledAt !== null && pendingMemoryPrefetch.consumedOnIteration === -1) {
162050
+ const memoryAttachments = filterDuplicateMemoryAttachments(await pendingMemoryPrefetch.promise, toolUseContext.readFileState);
162051
+ for (const memAttachment of memoryAttachments) {
162052
+ const msg = createAttachmentMessage(memAttachment);
162053
+ yield msg;
162054
+ toolResults.push(msg);
161945
162055
  }
161946
- toolResults.push(...normalizeMessagesForAPI([update.message], toolUseContext.options.tools).filter((_2) => _2.type === "user"));
162056
+ pendingMemoryPrefetch.consumedOnIteration = turnCount - 1;
161947
162057
  }
161948
- if (update.newContext) {
161949
- updatedToolUseContext = {
161950
- ...update.newContext,
161951
- queryTracking
161952
- };
162058
+ if (skillPrefetch && pendingSkillPrefetch) {
162059
+ const skillAttachments = await skillPrefetch.collectSkillDiscoveryPrefetch(pendingSkillPrefetch);
162060
+ for (const att of skillAttachments) {
162061
+ const msg = createAttachmentMessage(att);
162062
+ yield msg;
162063
+ toolResults.push(msg);
162064
+ }
161953
162065
  }
161954
- }
161955
- queryCheckpoint("query_tool_execution_end");
161956
- let nextPendingToolUseSummary;
161957
- if (config3.gates.emitToolUseSummaries && toolUseBlocks.length > 0 && !toolUseContext.abortController.signal.aborted && !toolUseContext.agentId) {
161958
- const lastAssistantMessage = assistantMessages.at(-1);
161959
- let lastAssistantText;
161960
- if (lastAssistantMessage) {
161961
- const textBlocks = (Array.isArray(lastAssistantMessage.message?.content) ? lastAssistantMessage.message.content : []).filter((block) => block.type === "text");
161962
- if (textBlocks.length > 0) {
161963
- const lastTextBlock = textBlocks.at(-1);
161964
- if (lastTextBlock && "text" in lastTextBlock) {
161965
- lastAssistantText = lastTextBlock.text;
162066
+ const consumedCommands = queuedCommandsSnapshot.filter((cmd) => cmd.mode === "prompt" || cmd.mode === "task-notification");
162067
+ if (consumedCommands.length > 0) {
162068
+ for (const cmd of consumedCommands) {
162069
+ if (cmd.uuid) {
162070
+ consumedCommandUuids.push(cmd.uuid);
162071
+ notifyCommandLifecycle(cmd.uuid, "started");
161966
162072
  }
161967
162073
  }
162074
+ remove(consumedCommands);
161968
162075
  }
161969
- const toolUseIds = toolUseBlocks.map((block) => block.id);
161970
- const toolInfoForSummary = toolUseBlocks.map((block) => {
161971
- const toolResult = toolResults.find((result) => result.type === "user" && Array.isArray(result.message.content) && result.message.content.some((content) => content.type === "tool_result" && content.tool_use_id === block.id));
161972
- const resultContent = toolResult?.type === "user" && Array.isArray(toolResult.message.content) ? toolResult.message.content.find((c) => c.type === "tool_result" && c.tool_use_id === block.id) : undefined;
161973
- return {
161974
- name: block.name,
161975
- input: block.input,
161976
- output: resultContent && "content" in resultContent ? resultContent.content : null
161977
- };
162076
+ const fileChangeAttachmentCount = count(toolResults, (tr) => tr.type === "attachment" && tr.attachment.type === "edited_text_file");
162077
+ logEvent("tengu_query_after_attachments", {
162078
+ totalToolResultsCount: toolResults.length,
162079
+ fileChangeAttachmentCount,
162080
+ queryChainId: queryChainIdForAnalytics,
162081
+ queryDepth: queryTracking.depth
161978
162082
  });
161979
- nextPendingToolUseSummary = generateToolUseSummary({
161980
- tools: toolInfoForSummary,
161981
- signal: toolUseContext.abortController.signal,
161982
- isNonInteractiveSession: toolUseContext.options.isNonInteractiveSession,
161983
- lastAssistantText
161984
- }).then((summary) => {
161985
- if (summary) {
161986
- return createToolUseSummaryMessage(summary, toolUseIds);
162083
+ if (updatedToolUseContext.options.refreshTools) {
162084
+ const refreshedTools = updatedToolUseContext.options.refreshTools();
162085
+ if (refreshedTools !== updatedToolUseContext.options.tools) {
162086
+ updatedToolUseContext = {
162087
+ ...updatedToolUseContext,
162088
+ options: {
162089
+ ...updatedToolUseContext.options,
162090
+ tools: refreshedTools
162091
+ }
162092
+ };
161987
162093
  }
161988
- return null;
161989
- }).catch(() => null);
161990
- }
161991
- if (toolUseContext.abortController.signal.aborted) {
161992
- if (!toolUseContext.agentId) {
161993
- try {
161994
- const { cleanupComputerUseAfterTurn } = await import("./chunk-2st57p4f.js");
161995
- await cleanupComputerUseAfterTurn(toolUseContext);
161996
- } catch {}
161997
162094
  }
161998
- if (toolUseContext.abortController.signal.reason !== "interrupt") {
161999
- yield createUserInterruptionMessage({
162000
- toolUse: true
162001
- });
162095
+ const toolUseContextWithQueryTracking = {
162096
+ ...updatedToolUseContext,
162097
+ queryTracking
162098
+ };
162099
+ const nextTurnCount = turnCount + 1;
162100
+ if (true) {
162101
+ if (!toolUseContext.agentId && taskSummaryModule.shouldGenerateTaskSummary()) {
162102
+ taskSummaryModule.maybeGenerateTaskSummary({
162103
+ systemPrompt,
162104
+ userContext,
162105
+ systemContext,
162106
+ toolUseContext,
162107
+ forkContextMessages: [
162108
+ ...messagesForQuery,
162109
+ ...assistantMessages,
162110
+ ...toolResults
162111
+ ]
162112
+ });
162113
+ }
162002
162114
  }
162003
- const nextTurnCountOnAbort = turnCount + 1;
162004
- if (maxTurns && nextTurnCountOnAbort > maxTurns) {
162115
+ if (maxTurns && nextTurnCount > maxTurns) {
162005
162116
  yield createAttachmentMessage({
162006
162117
  type: "max_turns_reached",
162007
162118
  maxTurns,
162008
- turnCount: nextTurnCountOnAbort
162119
+ turnCount: nextTurnCount
162009
162120
  });
162010
- }
162011
- return { reason: "aborted_tools" };
162012
- }
162013
- if (shouldPreventContinuation) {
162014
- return { reason: "hook_stopped" };
162015
- }
162016
- if (tracking?.compacted) {
162017
- tracking.turnCounter++;
162018
- logEvent("tengu_post_autocompact_turn", {
162019
- turnId: tracking.turnId,
162020
- turnCounter: tracking.turnCounter,
162021
- queryChainId: queryChainIdForAnalytics,
162022
- queryDepth: queryTracking.depth
162023
- });
162024
- }
162025
- logEvent("tengu_query_before_attachments", {
162026
- messagesForQueryCount: messagesForQuery.length,
162027
- assistantMessagesCount: assistantMessages.length,
162028
- toolResultsCount: toolResults.length,
162029
- queryChainId: queryChainIdForAnalytics,
162030
- queryDepth: queryTracking.depth
162031
- });
162032
- const sleepRan = toolUseBlocks.some((b2) => b2.name === SLEEP_TOOL_NAME);
162033
- const isMainThread = querySource.startsWith("repl_main_thread") || querySource === "sdk";
162034
- const currentAgentId = toolUseContext.agentId;
162035
- const queuedCommandsSnapshot = getCommandsByMaxPriority(sleepRan ? "later" : "next").filter((cmd) => {
162036
- if (isSlashCommand(cmd))
162037
- return false;
162038
- if (isMainThread)
162039
- return cmd.agentId === undefined;
162040
- return cmd.mode === "task-notification" && cmd.agentId === currentAgentId;
162041
- });
162042
- for await (const attachment of getAttachmentMessages(null, updatedToolUseContext, null, queuedCommandsSnapshot, [...messagesForQuery, ...assistantMessages, ...toolResults], querySource)) {
162043
- yield attachment;
162044
- toolResults.push(attachment);
162045
- }
162046
- if (pendingMemoryPrefetch && pendingMemoryPrefetch.settledAt !== null && pendingMemoryPrefetch.consumedOnIteration === -1) {
162047
- const memoryAttachments = filterDuplicateMemoryAttachments(await pendingMemoryPrefetch.promise, toolUseContext.readFileState);
162048
- for (const memAttachment of memoryAttachments) {
162049
- const msg = createAttachmentMessage(memAttachment);
162050
- yield msg;
162051
- toolResults.push(msg);
162052
- }
162053
- pendingMemoryPrefetch.consumedOnIteration = turnCount - 1;
162054
- }
162055
- if (skillPrefetch && pendingSkillPrefetch) {
162056
- const skillAttachments = await skillPrefetch.collectSkillDiscoveryPrefetch(pendingSkillPrefetch);
162057
- for (const att of skillAttachments) {
162058
- const msg = createAttachmentMessage(att);
162059
- yield msg;
162060
- toolResults.push(msg);
162061
- }
162062
- }
162063
- const consumedCommands = queuedCommandsSnapshot.filter((cmd) => cmd.mode === "prompt" || cmd.mode === "task-notification");
162064
- if (consumedCommands.length > 0) {
162065
- for (const cmd of consumedCommands) {
162066
- if (cmd.uuid) {
162067
- consumedCommandUuids.push(cmd.uuid);
162068
- notifyCommandLifecycle(cmd.uuid, "started");
162069
- }
162070
- }
162071
- remove(consumedCommands);
162072
- }
162073
- const fileChangeAttachmentCount = count(toolResults, (tr) => tr.type === "attachment" && tr.attachment.type === "edited_text_file");
162074
- logEvent("tengu_query_after_attachments", {
162075
- totalToolResultsCount: toolResults.length,
162076
- fileChangeAttachmentCount,
162077
- queryChainId: queryChainIdForAnalytics,
162078
- queryDepth: queryTracking.depth
162079
- });
162080
- if (updatedToolUseContext.options.refreshTools) {
162081
- const refreshedTools = updatedToolUseContext.options.refreshTools();
162082
- if (refreshedTools !== updatedToolUseContext.options.tools) {
162083
- updatedToolUseContext = {
162084
- ...updatedToolUseContext,
162085
- options: {
162086
- ...updatedToolUseContext.options,
162087
- tools: refreshedTools
162088
- }
162089
- };
162090
- }
162091
- }
162092
- const toolUseContextWithQueryTracking = {
162093
- ...updatedToolUseContext,
162094
- queryTracking
162095
- };
162096
- const nextTurnCount = turnCount + 1;
162097
- if (true) {
162098
- if (!toolUseContext.agentId && taskSummaryModule.shouldGenerateTaskSummary()) {
162099
- taskSummaryModule.maybeGenerateTaskSummary({
162100
- systemPrompt,
162101
- userContext,
162102
- systemContext,
162103
- toolUseContext,
162104
- forkContextMessages: [
162105
- ...messagesForQuery,
162106
- ...assistantMessages,
162107
- ...toolResults
162108
- ]
162109
- });
162110
- }
162111
- }
162112
- if (maxTurns && nextTurnCount > maxTurns) {
162113
- yield createAttachmentMessage({
162114
- type: "max_turns_reached",
162115
- maxTurns,
162116
- turnCount: nextTurnCount
162117
- });
162118
- return { reason: "max_turns", turnCount: nextTurnCount };
162121
+ return { reason: "max_turns", turnCount: nextTurnCount };
162122
+ }
162123
+ queryCheckpoint("query_recursive_call");
162124
+ const next = {
162125
+ messages: [...messagesForQuery, ...assistantMessages, ...toolResults],
162126
+ toolUseContext: toolUseContextWithQueryTracking,
162127
+ autoCompactTracking: tracking,
162128
+ turnCount: nextTurnCount,
162129
+ maxOutputTokensRecoveryCount: 0,
162130
+ hasAttemptedReactiveCompact: false,
162131
+ pendingToolUseSummary: nextPendingToolUseSummary,
162132
+ maxOutputTokensOverride: undefined,
162133
+ stopHookActive,
162134
+ transition: { reason: "next_turn" }
162135
+ };
162136
+ state = next;
162119
162137
  }
162120
- queryCheckpoint("query_recursive_call");
162121
- const next = {
162122
- messages: [...messagesForQuery, ...assistantMessages, ...toolResults],
162123
- toolUseContext: toolUseContextWithQueryTracking,
162124
- autoCompactTracking: tracking,
162125
- turnCount: nextTurnCount,
162126
- maxOutputTokensRecoveryCount: 0,
162127
- hasAttemptedReactiveCompact: false,
162128
- pendingToolUseSummary: nextPendingToolUseSummary,
162129
- maxOutputTokensOverride: undefined,
162130
- stopHookActive,
162131
- transition: { reason: "next_turn" }
162132
- };
162133
- state = next;
162138
+ } finally {
162139
+ pendingMemoryPrefetch?.[Symbol.dispose]();
162134
162140
  }
162135
162141
  }
162136
162142
  var reactiveCompact = null, contextCollapse, skillPrefetch = null, jobClassifier, snipModule, taskSummaryModule, MAX_OUTPUT_TOKENS_RECOVERY_LIMIT = 3;
@@ -165050,7 +165056,7 @@ function getAnthropicEnvMetadata() {
165050
165056
  function getBuildAgeMinutes() {
165051
165057
  if (false)
165052
165058
  ;
165053
- const buildTime = new Date("2026-06-05T14:11:43.574Z").getTime();
165059
+ const buildTime = new Date("2026-06-07T07:03:00.583Z").getTime();
165054
165060
  if (isNaN(buildTime))
165055
165061
  return;
165056
165062
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -166007,17 +166013,17 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
166007
166013
  }
166008
166014
  messagesForAPI = stripExcessMediaItems(messagesForAPI, API_MAX_MEDIA_PER_REQUEST);
166009
166015
  if (getAPIProvider() === "openai") {
166010
- const { queryModelOpenAI } = await import("./chunk-606nnckq.js");
166016
+ const { queryModelOpenAI } = await import("./chunk-07rz03vg.js");
166011
166017
  yield* queryModelOpenAI(messagesForAPI, systemPrompt, filteredTools, signal, options);
166012
166018
  return;
166013
166019
  }
166014
166020
  if (getAPIProvider() === "gemini") {
166015
- const { queryModelGemini } = await import("./chunk-m6tjzhxk.js");
166021
+ const { queryModelGemini } = await import("./chunk-mwqz6csw.js");
166016
166022
  yield* queryModelGemini(messagesForAPI, systemPrompt, filteredTools, signal, options, thinkingConfig);
166017
166023
  return;
166018
166024
  }
166019
166025
  if (getAPIProvider() === "grok") {
166020
- const { queryModelGrok } = await import("./chunk-4dy7571n.js");
166026
+ const { queryModelGrok } = await import("./chunk-ez3jjzyw.js");
166021
166027
  yield* queryModelGrok(messagesForAPI, systemPrompt, filteredTools, signal, options);
166022
166028
  return;
166023
166029
  }
@@ -174733,7 +174739,7 @@ var init_feedback = __esm(() => {
174733
174739
  description: `Submit feedback about Angsheng`,
174734
174740
  argumentHint: "[report]",
174735
174741
  isEnabled: () => !(isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) || isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) || isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) || isEnvTruthy(process.env.DISABLE_FEEDBACK_COMMAND) || isEnvTruthy(process.env.DISABLE_BUG_COMMAND) || isEssentialTrafficOnly() || process.env.USER_TYPE === "ant" || !isPolicyAllowed("allow_product_feedback")),
174736
- load: () => import("./chunk-72tamsb6.js")
174742
+ load: () => import("./chunk-4kg91jva.js")
174737
174743
  };
174738
174744
  feedback_default = feedback;
174739
174745
  });
@@ -174747,7 +174753,7 @@ var init_clear = __esm(() => {
174747
174753
  description: "Clear conversation history and free up context",
174748
174754
  aliases: ["reset", "new"],
174749
174755
  supportsNonInteractive: false,
174750
- load: () => import("./chunk-eg9c4vg6.js")
174756
+ load: () => import("./chunk-wd1vz4aq.js")
174751
174757
  };
174752
174758
  clear_default = clear;
174753
174759
  });
@@ -174761,7 +174767,7 @@ var init_color = __esm(() => {
174761
174767
  description: "Set the prompt bar color for this session",
174762
174768
  immediate: true,
174763
174769
  argumentHint: "<color|default>",
174764
- load: () => import("./chunk-ay7ert7t.js")
174770
+ load: () => import("./chunk-984wdqxh.js")
174765
174771
  };
174766
174772
  color_default = color2;
174767
174773
  });
@@ -174861,7 +174867,7 @@ var init_copy = __esm(() => {
174861
174867
  type: "local-jsx",
174862
174868
  name: "copy",
174863
174869
  description: "Copy Claude's last response to clipboard (or /copy N for the Nth-latest)",
174864
- load: () => import("./chunk-d3tvytm9.js")
174870
+ load: () => import("./chunk-kr605k2f.js")
174865
174871
  };
174866
174872
  copy_default = copy;
174867
174873
  });
@@ -174888,7 +174894,7 @@ var init_desktop = __esm(() => {
174888
174894
  get isHidden() {
174889
174895
  return !isSupportedPlatform3();
174890
174896
  },
174891
- load: () => import("./chunk-rsj1w4cv.js")
174897
+ load: () => import("./chunk-7f200vcg.js")
174892
174898
  };
174893
174899
  desktop_default = desktop;
174894
174900
  });
@@ -175051,7 +175057,7 @@ var init_compact2 = __esm(() => {
175051
175057
  isEnabled: () => !isEnvTruthy(process.env.DISABLE_COMPACT),
175052
175058
  supportsNonInteractive: true,
175053
175059
  argumentHint: "<optional custom summarization instructions>",
175054
- load: () => import("./chunk-7sspj7q7.js")
175060
+ load: () => import("./chunk-s3fbdhty.js")
175055
175061
  };
175056
175062
  compact_default = compact;
175057
175063
  });
@@ -175064,7 +175070,7 @@ var init_config7 = __esm(() => {
175064
175070
  type: "local-jsx",
175065
175071
  name: "config",
175066
175072
  description: "Open config panel",
175067
- load: () => import("./chunk-k398drqn.js")
175073
+ load: () => import("./chunk-xhasgaxp.js")
175068
175074
  };
175069
175075
  config_default = config3;
175070
175076
  });
@@ -175078,7 +175084,7 @@ var init_context3 = __esm(() => {
175078
175084
  description: "Visualize current context usage as a colored grid",
175079
175085
  isEnabled: () => !getIsNonInteractiveSession(),
175080
175086
  type: "local-jsx",
175081
- load: () => import("./chunk-t9bjcy5g.js")
175087
+ load: () => import("./chunk-vzj5fr8q.js")
175082
175088
  };
175083
175089
  contextNonInteractive = {
175084
175090
  type: "local",
@@ -175091,7 +175097,7 @@ var init_context3 = __esm(() => {
175091
175097
  isEnabled() {
175092
175098
  return getIsNonInteractiveSession();
175093
175099
  },
175094
- load: () => import("./chunk-y3vzfy52.js")
175100
+ load: () => import("./chunk-0pwt7qjx.js")
175095
175101
  };
175096
175102
  });
175097
175103
 
@@ -175110,7 +175116,7 @@ var init_cost = __esm(() => {
175110
175116
  return isWebAppSubscriber();
175111
175117
  },
175112
175118
  supportsNonInteractive: true,
175113
- load: () => import("./chunk-jkrmwfzj.js")
175119
+ load: () => import("./chunk-x258tnhw.js")
175114
175120
  };
175115
175121
  cost_default = cost;
175116
175122
  });
@@ -175122,7 +175128,7 @@ var init_diff2 = __esm(() => {
175122
175128
  type: "local-jsx",
175123
175129
  name: "diff",
175124
175130
  description: "View uncommitted changes and per-turn diffs",
175125
- load: () => import("./chunk-22p30zkd.js")
175131
+ load: () => import("./chunk-rhf1z7gc.js")
175126
175132
  };
175127
175133
  });
175128
175134
 
@@ -175141,7 +175147,7 @@ var init_doctor = __esm(() => {
175141
175147
  description: "Diagnose and verify your Angsheng installation and settings",
175142
175148
  isEnabled: () => !isEnvTruthy(process.env.DISABLE_DOCTOR_COMMAND),
175143
175149
  type: "local-jsx",
175144
- load: () => import("./chunk-7knsym93.js")
175150
+ load: () => import("./chunk-wqb2gr1q.js")
175145
175151
  };
175146
175152
  doctor_default = doctor;
175147
175153
  });
@@ -175153,7 +175159,7 @@ var init_memory = __esm(() => {
175153
175159
  type: "local-jsx",
175154
175160
  name: "memory",
175155
175161
  description: "Edit Claude memory files",
175156
- load: () => import("./chunk-x9ntdxt7.js")
175162
+ load: () => import("./chunk-8a573a8v.js")
175157
175163
  };
175158
175164
  memory_default = memory;
175159
175165
  });
@@ -175165,7 +175171,7 @@ var init_help = __esm(() => {
175165
175171
  type: "local-jsx",
175166
175172
  name: "help",
175167
175173
  description: "Show help and available commands",
175168
- load: () => import("./chunk-qrrjjag5.js")
175174
+ load: () => import("./chunk-hcc8z63k.js")
175169
175175
  };
175170
175176
  help_default = help;
175171
175177
  });
@@ -175178,7 +175184,7 @@ var init_ide2 = __esm(() => {
175178
175184
  name: "ide",
175179
175185
  description: "Manage IDE integrations and show status",
175180
175186
  argumentHint: "[open]",
175181
- load: () => import("./chunk-926f5m2d.js")
175187
+ load: () => import("./chunk-pjztxan3.js")
175182
175188
  };
175183
175189
  ide_default = ide;
175184
175190
  });
@@ -175701,7 +175707,7 @@ var init_keybindings = __esm(() => {
175701
175707
  isEnabled: () => isKeybindingCustomizationEnabled(),
175702
175708
  supportsNonInteractive: false,
175703
175709
  type: "local",
175704
- load: () => import("./chunk-bprg82eg.js")
175710
+ load: () => import("./chunk-zrk1k0n6.js")
175705
175711
  };
175706
175712
  keybindings_default = keybindings;
175707
175713
  });
@@ -175715,7 +175721,7 @@ var init_lang = __esm(() => {
175715
175721
  description: "Set display language (en/zh/auto)",
175716
175722
  immediate: true,
175717
175723
  argumentHint: "<en|zh|auto>",
175718
- load: () => import("./chunk-rtkfbw0m.js")
175724
+ load: () => import("./chunk-7sjk6100.js")
175719
175725
  };
175720
175726
  lang_default = lang;
175721
175727
  });
@@ -175726,7 +175732,7 @@ var login_default = () => ({
175726
175732
  name: "login",
175727
175733
  description: hasAnthropicApiKeyAuth() ? "Switch ANGSHENG accounts" : "Sign in with your ANGSHENG account",
175728
175734
  isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGIN_COMMAND),
175729
- load: () => import("./chunk-m2gkjypz.js")
175735
+ load: () => import("./chunk-9xcttsfw.js")
175730
175736
  });
175731
175737
  var init_login = __esm(() => {
175732
175738
  init_auth();
@@ -175742,7 +175748,7 @@ var init_logout2 = __esm(() => {
175742
175748
  name: "logout",
175743
175749
  description: "Sign out from your Anthropic account",
175744
175750
  isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGOUT_COMMAND),
175745
- load: () => import("./chunk-pce5hv6g.js")
175751
+ load: () => import("./chunk-xs4xpxjg.js")
175746
175752
  };
175747
175753
  });
175748
175754
 
@@ -175756,7 +175762,7 @@ var init_install_github_app = __esm(() => {
175756
175762
  description: "Set up Claude GitHub Actions for a repository",
175757
175763
  availability: ["claude-ai", "console"],
175758
175764
  isEnabled: () => !isEnvTruthy(process.env.DISABLE_INSTALL_GITHUB_APP_COMMAND),
175759
- load: () => import("./chunk-gskba4cp.js")
175765
+ load: () => import("./chunk-z88xhqp8.js")
175760
175766
  };
175761
175767
  install_github_app_default = installGitHubApp;
175762
175768
  });
@@ -175770,7 +175776,7 @@ var init_install_slack_app = __esm(() => {
175770
175776
  description: "Install the Claude Slack app",
175771
175777
  availability: ["claude-ai"],
175772
175778
  supportsNonInteractive: false,
175773
- load: () => import("./chunk-q2dcwd0s.js")
175779
+ load: () => import("./chunk-zn0391k2.js")
175774
175780
  };
175775
175781
  install_slack_app_default = installSlackApp;
175776
175782
  });
@@ -175790,7 +175796,7 @@ var init_mcp = __esm(() => {
175790
175796
  description: "Manage MCP servers",
175791
175797
  immediate: true,
175792
175798
  argumentHint: "[enable|disable [server-name]]",
175793
- load: () => import("./chunk-t2ey4g22.js")
175799
+ load: () => import("./chunk-yk6bb79v.js")
175794
175800
  };
175795
175801
  mcp_default = mcp;
175796
175802
  });
@@ -175803,7 +175809,7 @@ var init_mobile = __esm(() => {
175803
175809
  name: "mobile",
175804
175810
  aliases: ["ios", "android"],
175805
175811
  description: "Show QR code to download the Claude mobile app",
175806
- load: () => import("./chunk-j676tme0.js")
175812
+ load: () => import("./chunk-nj7tp8v8.js")
175807
175813
  };
175808
175814
  mobile_default = mobile;
175809
175815
  });
@@ -175919,7 +175925,7 @@ var init_release_notes = __esm(() => {
175919
175925
  name: "release-notes",
175920
175926
  type: "local",
175921
175927
  supportsNonInteractive: true,
175922
- load: () => import("./chunk-f54pn813.js")
175928
+ load: () => import("./chunk-gw6bs4pc.js")
175923
175929
  };
175924
175930
  release_notes_default = releaseNotes;
175925
175931
  });
@@ -175933,7 +175939,7 @@ var init_rename = __esm(() => {
175933
175939
  description: "Rename the current conversation",
175934
175940
  immediate: true,
175935
175941
  argumentHint: "[name]",
175936
- load: () => import("./chunk-q26j42bk.js")
175942
+ load: () => import("./chunk-27srbs9p.js")
175937
175943
  };
175938
175944
  rename_default = rename7;
175939
175945
  });
@@ -175947,7 +175953,7 @@ var init_resume = __esm(() => {
175947
175953
  description: "Resume a previous conversation",
175948
175954
  aliases: ["continue"],
175949
175955
  argumentHint: "[conversation id or search term]",
175950
- load: () => import("./chunk-4v661jfp.js")
175956
+ load: () => import("./chunk-1we0hsed.js")
175951
175957
  };
175952
175958
  resume_default = resume;
175953
175959
  });
@@ -176003,7 +176009,7 @@ var init_review = __esm(() => {
176003
176009
  name: "ultrareview",
176004
176010
  description: `~10\u201320 min \xB7 Finds and verifies bugs in your branch. Runs in Angsheng on the web. See ${CCR_TERMS_URL}`,
176005
176011
  isEnabled: () => isUltrareviewEnabled(),
176006
- load: () => import("./chunk-1hsygdr1.js")
176012
+ load: () => import("./chunk-fx4z8jhr.js")
176007
176013
  };
176008
176014
  review_default = review;
176009
176015
  });
@@ -176021,7 +176027,7 @@ var init_session = __esm(() => {
176021
176027
  get isHidden() {
176022
176028
  return !getIsRemoteMode();
176023
176029
  },
176024
- load: () => import("./chunk-kfswbr9v.js")
176030
+ load: () => import("./chunk-pdpseqc9.js")
176025
176031
  };
176026
176032
  session_default = session;
176027
176033
  });
@@ -176039,7 +176045,7 @@ var init_skills = __esm(() => {
176039
176045
  type: "local-jsx",
176040
176046
  name: "skills",
176041
176047
  description: "List available skills",
176042
- load: () => import("./chunk-7ma84vsd.js")
176048
+ load: () => import("./chunk-29vz8fqt.js")
176043
176049
  };
176044
176050
  skills_default = skills;
176045
176051
  });
@@ -176052,7 +176058,7 @@ var init_status2 = __esm(() => {
176052
176058
  name: "status",
176053
176059
  description: "Show Angsheng status including version, model, account, API connectivity, and tool statuses",
176054
176060
  immediate: true,
176055
- load: () => import("./chunk-g3zggh5s.js")
176061
+ load: () => import("./chunk-j70kn8a4.js")
176056
176062
  };
176057
176063
  status_default = status;
176058
176064
  });
@@ -176065,7 +176071,7 @@ var init_tasks3 = __esm(() => {
176065
176071
  name: "tasks",
176066
176072
  aliases: ["bashes"],
176067
176073
  description: "List and manage background tasks",
176068
- load: () => import("./chunk-mg27yq5g.js")
176074
+ load: () => import("./chunk-sr231sxa.js")
176069
176075
  };
176070
176076
  tasks_default = tasks;
176071
176077
  });
@@ -176329,7 +176335,7 @@ var init_terminalSetup2 = __esm(() => {
176329
176335
  name: "terminal-setup",
176330
176336
  description: env.terminal === "Apple_Terminal" ? "Enable Option+Enter key binding for newlines and visual bell" : "Install Shift+Enter key binding for newlines",
176331
176337
  isHidden: env.terminal !== null && env.terminal in NATIVE_CSIU_TERMINALS,
176332
- load: () => import("./chunk-rqy8a9zn.js")
176338
+ load: () => import("./chunk-38ngqpnb.js")
176333
176339
  };
176334
176340
  terminalSetup_default = terminalSetup;
176335
176341
  });
@@ -176342,7 +176348,7 @@ var init_usage = __esm(() => {
176342
176348
  name: "usage",
176343
176349
  description: "Show plan usage limits",
176344
176350
  availability: ["claude-ai"],
176345
- load: () => import("./chunk-fhejpaee.js")
176351
+ load: () => import("./chunk-p7nf05sy.js")
176346
176352
  };
176347
176353
  });
176348
176354
 
@@ -176353,7 +176359,7 @@ var init_theme2 = __esm(() => {
176353
176359
  type: "local-jsx",
176354
176360
  name: "theme",
176355
176361
  description: "Change the theme",
176356
- load: () => import("./chunk-k1d8wfxs.js")
176362
+ load: () => import("./chunk-1zz9gcjv.js")
176357
176363
  };
176358
176364
  theme_default = theme;
176359
176365
  });
@@ -176366,7 +176372,7 @@ var init_vim = __esm(() => {
176366
176372
  description: "Toggle between Vim and Normal editing modes",
176367
176373
  supportsNonInteractive: false,
176368
176374
  type: "local",
176369
- load: () => import("./chunk-9rvaeawh.js")
176375
+ load: () => import("./chunk-hkwassdn.js")
176370
176376
  };
176371
176377
  vim_default = command5;
176372
176378
  });
@@ -176687,7 +176693,7 @@ var init_thinkback = __esm(() => {
176687
176693
  name: "think-back",
176688
176694
  description: "Your 2025 Angsheng Year in Review",
176689
176695
  isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
176690
- load: () => import("./chunk-8sa7hjcs.js")
176696
+ load: () => import("./chunk-rr6qqq1v.js")
176691
176697
  };
176692
176698
  thinkback_default = thinkback;
176693
176699
  });
@@ -176703,7 +176709,7 @@ var init_thinkback_play = __esm(() => {
176703
176709
  isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
176704
176710
  isHidden: true,
176705
176711
  supportsNonInteractive: false,
176706
- load: () => import("./chunk-1wsxfmjh.js")
176712
+ load: () => import("./chunk-zwrzne74.js")
176707
176713
  };
176708
176714
  thinkback_play_default = thinkbackPlay;
176709
176715
  });
@@ -176716,7 +176722,7 @@ var init_permissions3 = __esm(() => {
176716
176722
  name: "permissions",
176717
176723
  aliases: ["allowed-tools"],
176718
176724
  description: "Manage allow & deny tool permission rules",
176719
- load: () => import("./chunk-ggpxa6pv.js")
176725
+ load: () => import("./chunk-4mbd13g5.js")
176720
176726
  };
176721
176727
  permissions_default = permissions;
176722
176728
  });
@@ -176737,7 +176743,7 @@ var init_plan = __esm(() => {
176737
176743
  name: "plan",
176738
176744
  description: "Enable plan mode or view the current session plan",
176739
176745
  argumentHint: "[open|<description>]",
176740
- load: () => import("./chunk-vvkcc1sc.js")
176746
+ load: () => import("./chunk-paem1yxq.js")
176741
176747
  };
176742
176748
  plan_default = plan;
176743
176749
  });
@@ -176770,7 +176776,7 @@ var init_fast = __esm(() => {
176770
176776
  get immediate() {
176771
176777
  return shouldInferenceConfigCommandBeImmediate();
176772
176778
  },
176773
- load: () => import("./chunk-3jnsm9tj.js")
176779
+ load: () => import("./chunk-ht7g8sna.js")
176774
176780
  };
176775
176781
  fast_default = fast;
176776
176782
  });
@@ -176793,7 +176799,7 @@ var init_passes = __esm(() => {
176793
176799
  const { eligible: eligible2, hasCache } = checkCachedPassesEligibility();
176794
176800
  return !eligible2 || !hasCache;
176795
176801
  },
176796
- load: () => import("./chunk-30t167rn.js")
176802
+ load: () => import("./chunk-vrtkdk78.js")
176797
176803
  };
176798
176804
  });
176799
176805
 
@@ -176808,7 +176814,7 @@ var init_privacy_settings = __esm(() => {
176808
176814
  isEnabled: () => {
176809
176815
  return isConsumerSubscriber();
176810
176816
  },
176811
- load: () => import("./chunk-tne98r9y.js")
176817
+ load: () => import("./chunk-b6fqg2s3.js")
176812
176818
  };
176813
176819
  privacy_settings_default = privacySettings;
176814
176820
  });
@@ -176821,7 +176827,7 @@ var init_hooks = __esm(() => {
176821
176827
  name: "hooks",
176822
176828
  description: "View hook configurations for tool events",
176823
176829
  immediate: true,
176824
- load: () => import("./chunk-0z9rtar5.js")
176830
+ load: () => import("./chunk-6p2nxwcg.js")
176825
176831
  };
176826
176832
  hooks_default = hooks;
176827
176833
  });
@@ -176849,7 +176855,7 @@ var init_branch = __esm(() => {
176849
176855
  aliases: [],
176850
176856
  description: "Create a branch of the current conversation at this point",
176851
176857
  argumentHint: "[name]",
176852
- load: () => import("./chunk-h3bdc76z.js")
176858
+ load: () => import("./chunk-q5egc5ra.js")
176853
176859
  };
176854
176860
  branch_default = branch;
176855
176861
  });
@@ -176861,7 +176867,7 @@ var init_agents = __esm(() => {
176861
176867
  type: "local-jsx",
176862
176868
  name: "agents",
176863
176869
  description: "Manage agent configurations",
176864
- load: () => import("./chunk-2qc3g8pg.js")
176870
+ load: () => import("./chunk-mky9qzjp.js")
176865
176871
  };
176866
176872
  agents_default = agents;
176867
176873
  });
@@ -176875,7 +176881,7 @@ var init_plugin2 = __esm(() => {
176875
176881
  aliases: ["plugins", "marketplace"],
176876
176882
  description: "Manage Angsheng plugins",
176877
176883
  immediate: true,
176878
- load: () => import("./chunk-vakspmnq.js")
176884
+ load: () => import("./chunk-qjzvsq8w.js")
176879
176885
  };
176880
176886
  plugin_default = plugin;
176881
176887
  });
@@ -176888,7 +176894,7 @@ var init_reload_plugins = __esm(() => {
176888
176894
  name: "reload-plugins",
176889
176895
  description: "Activate pending plugin changes in the current session",
176890
176896
  supportsNonInteractive: false,
176891
- load: () => import("./chunk-xfpw9epw.js")
176897
+ load: () => import("./chunk-xfkp0p02.js")
176892
176898
  };
176893
176899
  reload_plugins_default = reloadPlugins;
176894
176900
  });
@@ -176917,7 +176923,7 @@ var init_heapdump = __esm(() => {
176917
176923
  description: "Dump the JS heap to ~/Desktop",
176918
176924
  isHidden: true,
176919
176925
  supportsNonInteractive: true,
176920
- load: () => import("./chunk-1g64f12t.js")
176926
+ load: () => import("./chunk-z0khh7cw.js")
176921
176927
  };
176922
176928
  heapdump_default = heapDump;
176923
176929
  });
@@ -177405,7 +177411,7 @@ var init_bridge_kick = __esm(() => {
177405
177411
  var call3 = async () => {
177406
177412
  return {
177407
177413
  type: "text",
177408
- value: `${"1.8.0"} (built ${"2026-06-05T14:11:43.574Z"})`
177414
+ value: `${"1.0.1"} (built ${"2026-06-07T07:03:00.583Z"})`
177409
177415
  };
177410
177416
  }, version2, version_default;
177411
177417
  var init_version = __esm(() => {
@@ -177481,7 +177487,7 @@ var init_sandbox_toggle = __esm(() => {
177481
177487
  },
177482
177488
  immediate: true,
177483
177489
  type: "local-jsx",
177484
- load: () => import("./chunk-9g94a34g.js")
177490
+ load: () => import("./chunk-0ckrqekf.js")
177485
177491
  };
177486
177492
  sandbox_toggle_default = command6;
177487
177493
  });
@@ -177496,7 +177502,7 @@ var init_chrome = __esm(() => {
177496
177502
  availability: [],
177497
177503
  isEnabled: () => !getIsNonInteractiveSession(),
177498
177504
  type: "local-jsx",
177499
- load: () => import("./chunk-164wnfy0.js")
177505
+ load: () => import("./chunk-egs5jd5x.js")
177500
177506
  };
177501
177507
  chrome_default = command7;
177502
177508
  });
@@ -177509,7 +177515,7 @@ var init_stickers = __esm(() => {
177509
177515
  name: "stickers",
177510
177516
  description: "Order Angsheng stickers",
177511
177517
  supportsNonInteractive: false,
177512
- load: () => import("./chunk-zjcma7km.js")
177518
+ load: () => import("./chunk-s1v256k5.js")
177513
177519
  };
177514
177520
  stickers_default = stickers;
177515
177521
  });
@@ -177745,7 +177751,7 @@ var init_provider = __esm(() => {
177745
177751
  aliases: ["api"],
177746
177752
  argumentHint: "[anthropic|openai|gemini|grok|bedrock|vertex|foundry|unset]",
177747
177753
  supportsNonInteractive: true,
177748
- load: () => import("./chunk-zasn6e6b.js")
177754
+ load: () => import("./chunk-rr43zswx.js")
177749
177755
  };
177750
177756
  });
177751
177757
 
@@ -177880,7 +177886,7 @@ var init_exit = __esm(() => {
177880
177886
  aliases: ["quit"],
177881
177887
  description: "Exit the REPL",
177882
177888
  immediate: true,
177883
- load: () => import("./chunk-wpbdb292.js")
177889
+ load: () => import("./chunk-1896h0na.js")
177884
177890
  };
177885
177891
  exit_default = exit;
177886
177892
  });
@@ -177893,7 +177899,7 @@ var init_export = __esm(() => {
177893
177899
  name: "export",
177894
177900
  description: "Export the current conversation to a file or clipboard",
177895
177901
  argumentHint: "[filename]",
177896
- load: () => import("./chunk-js2mtdhx.js")
177902
+ load: () => import("./chunk-19s1686b.js")
177897
177903
  };
177898
177904
  export_default = exportCommand;
177899
177905
  });
@@ -177913,7 +177919,7 @@ var init_model2 = __esm(() => {
177913
177919
  get immediate() {
177914
177920
  return shouldInferenceConfigCommandBeImmediate();
177915
177921
  },
177916
- load: () => import("./chunk-qgh9yenv.js")
177922
+ load: () => import("./chunk-7chxdbhx.js")
177917
177923
  };
177918
177924
  });
177919
177925
 
@@ -177926,7 +177932,7 @@ var init_tag = __esm(() => {
177926
177932
  description: "Toggle a searchable tag on the current session",
177927
177933
  isEnabled: () => process.env.USER_TYPE === "ant",
177928
177934
  argumentHint: "<tag-name>",
177929
- load: () => import("./chunk-c89k5tac.js")
177935
+ load: () => import("./chunk-b59znrc6.js")
177930
177936
  };
177931
177937
  tag_default = tag;
177932
177938
  });
@@ -177957,7 +177963,7 @@ var init_remote_env = __esm(() => {
177957
177963
  get isHidden() {
177958
177964
  return !isWebAppSubscriber() || !isPolicyAllowed("allow_remote_sessions");
177959
177965
  },
177960
- load: () => import("./chunk-0nbcz4ss.js")
177966
+ load: () => import("./chunk-f1ep2fhh.js")
177961
177967
  };
177962
177968
  });
177963
177969
 
@@ -177972,7 +177978,7 @@ var init_upgrade = __esm(() => {
177972
177978
  description: "Upgrade to Max for higher rate limits and more Opus",
177973
177979
  availability: ["claude-ai"],
177974
177980
  isEnabled: () => !isEnvTruthy(process.env.DISABLE_UPGRADE_COMMAND) && getSubscriptionType() !== "enterprise",
177975
- load: () => import("./chunk-aej03dqk.js")
177981
+ load: () => import("./chunk-h9z4ajv7.js")
177976
177982
  };
177977
177983
  upgrade_default = upgrade;
177978
177984
  });
@@ -177992,7 +177998,7 @@ var init_rate_limit_options = __esm(() => {
177992
177998
  return true;
177993
177999
  },
177994
178000
  isHidden: true,
177995
- load: () => import("./chunk-5g220843.js")
178001
+ load: () => import("./chunk-dd743gjn.js")
177996
178002
  };
177997
178003
  rate_limit_options_default = rateLimitOptions;
177998
178004
  });
@@ -178040,7 +178046,7 @@ var init_effort2 = __esm(() => {
178040
178046
  get immediate() {
178041
178047
  return shouldInferenceConfigCommandBeImmediate();
178042
178048
  },
178043
- load: () => import("./chunk-vshwxbdt.js")
178049
+ load: () => import("./chunk-sm080rzr.js")
178044
178050
  };
178045
178051
  });
178046
178052
 
@@ -178051,7 +178057,7 @@ var init_stats = __esm(() => {
178051
178057
  type: "local-jsx",
178052
178058
  name: "stats",
178053
178059
  description: "Show your Angsheng usage statistics and activity",
178054
- load: () => import("./chunk-e0kx60nq.js")
178060
+ load: () => import("./chunk-mh97drey.js")
178055
178061
  };
178056
178062
  stats_default = stats;
178057
178063
  });
@@ -178235,7 +178241,7 @@ var init_assistant = __esm(() => {
178235
178241
  return !isAssistantEnabled();
178236
178242
  },
178237
178243
  immediate: true,
178238
- load: () => import("./chunk-nb6xj9yd.js")
178244
+ load: () => import("./chunk-qvr6rjqq.js")
178239
178245
  };
178240
178246
  assistant_default = assistant;
178241
178247
  });
@@ -178263,7 +178269,7 @@ var init_bridge = __esm(() => {
178263
178269
  return !isEnabled();
178264
178270
  },
178265
178271
  immediate: true,
178266
- load: () => import("./chunk-whdhabrc.js")
178272
+ load: () => import("./chunk-r6nc66q8.js")
178267
178273
  };
178268
178274
  bridge_default = bridge;
178269
178275
  });
@@ -178290,7 +178296,7 @@ var init_remoteControlServer = __esm(() => {
178290
178296
  return !isEnabled2();
178291
178297
  },
178292
178298
  immediate: true,
178293
- load: () => import("./chunk-a5rhefy3.js")
178299
+ load: () => import("./chunk-wfa6tv6q.js")
178294
178300
  };
178295
178301
  remoteControlServer_default = remoteControlServer;
178296
178302
  });
@@ -178313,7 +178319,7 @@ var init_voice2 = __esm(() => {
178313
178319
  return !isVoiceModeEnabled();
178314
178320
  },
178315
178321
  supportsNonInteractive: false,
178316
- load: () => import("./chunk-kkbavq92.js")
178322
+ load: () => import("./chunk-1n08xy3a.js")
178317
178323
  };
178318
178324
  voice_default = voice;
178319
178325
  });
@@ -179202,7 +179208,7 @@ var init_daemon = __esm(() => {
179202
179208
  return true;
179203
179209
  return false;
179204
179210
  },
179205
- load: () => import("./chunk-gfawgyha.js")
179211
+ load: () => import("./chunk-j09wtjms.js")
179206
179212
  };
179207
179213
  daemon_default = daemon;
179208
179214
  });
@@ -179224,7 +179230,7 @@ var init_job = __esm(() => {
179224
179230
  return true;
179225
179231
  return false;
179226
179232
  },
179227
- load: () => import("./chunk-69fev66a.js")
179233
+ load: () => import("./chunk-tmxndttq.js")
179228
179234
  };
179229
179235
  job_default = job;
179230
179236
  });
@@ -179241,7 +179247,7 @@ var init_fork = __esm(() => {
179241
179247
  name: "fork",
179242
179248
  description: "Fork the current session into a new sub-agent",
179243
179249
  argumentHint: "<prompt>",
179244
- load: () => import("./chunk-2a02pnrg.js")
179250
+ load: () => import("./chunk-wdr8sk6s.js")
179245
179251
  };
179246
179252
  fork_default = fork;
179247
179253
  });
@@ -179324,7 +179330,7 @@ var init_buddy = __esm(() => {
179324
179330
  get isHidden() {
179325
179331
  return !isBuddyLive();
179326
179332
  },
179327
- load: () => import("./chunk-9ak75gr6.js")
179333
+ load: () => import("./chunk-1vpvfxca.js")
179328
179334
  };
179329
179335
  buddy_default = buddy;
179330
179336
  });
@@ -179341,7 +179347,7 @@ var init_poor = __esm(() => {
179341
179347
  name: "poor",
179342
179348
  description: "Toggle poor mode \u2014 disable extract_memories and prompt_suggestion to save tokens",
179343
179349
  supportsNonInteractive: false,
179344
- load: () => import("./chunk-n70fs18n.js")
179350
+ load: () => import("./chunk-4hcasyaf.js")
179345
179351
  };
179346
179352
  poor_default = poor;
179347
179353
  });
@@ -179637,7 +179643,7 @@ var init_commands2 = __esm(() => {
179637
179643
  progressMessage: "analyzing your sessions",
179638
179644
  source: "builtin",
179639
179645
  async getPromptForCommand(args, context3) {
179640
- const real = (await import("./chunk-hf2kz9cy.js")).default;
179646
+ const real = (await import("./chunk-gw7em9ax.js")).default;
179641
179647
  if (real.type !== "prompt")
179642
179648
  throw new Error("unreachable");
179643
179649
  return real.getPromptForCommand(args, context3);
@@ -182814,7 +182820,7 @@ var init_sessionStorage = __esm(() => {
182814
182820
  init_settings();
182815
182821
  init_slowOperations();
182816
182822
  init_uuid();
182817
- VERSION = typeof MACRO !== "undefined" ? "1.8.0" : "unknown";
182823
+ VERSION = typeof MACRO !== "undefined" ? "1.0.1" : "unknown";
182818
182824
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
182819
182825
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
182820
182826
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -184087,7 +184093,7 @@ var init_filesystem = __esm(() => {
184087
184093
  });
184088
184094
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
184089
184095
  const nonce = randomBytes14(16).toString("hex");
184090
- return join84(getClaudeTempDir(), "bundled-skills", "1.8.0", nonce);
184096
+ return join84(getClaudeTempDir(), "bundled-skills", "1.0.1", nonce);
184091
184097
  });
184092
184098
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
184093
184099
  });
@@ -185434,7 +185440,7 @@ var init_ssrfGuard = () => {};
185434
185440
 
185435
185441
  // src/utils/hooks/execHttpHook.ts
185436
185442
  async function getSandboxProxyConfig() {
185437
- const { SandboxManager: SandboxManager3 } = await import("./chunk-72v17pwk.js");
185443
+ const { SandboxManager: SandboxManager3 } = await import("./chunk-dcxkw56m.js");
185438
185444
  if (!SandboxManager3.isSandboxingEnabled()) {
185439
185445
  return;
185440
185446
  }