@costrict/csc 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-jj0pqphf.js → chunk-03g34taj.js} +55 -52
- package/dist/{chunk-srntgfa4.js → chunk-04h1dzn8.js} +58 -55
- package/dist/{chunk-bnqe1rhv.js → chunk-04js9982.js} +14 -14
- package/dist/{chunk-a40pqd86.js → chunk-0cm9fcaq.js} +4 -4
- package/dist/{chunk-3710m54v.js → chunk-0d8p649e.js} +205 -1297
- package/dist/{chunk-q4z98yeq.js → chunk-0ftbdtb6.js} +57909 -57909
- package/dist/{chunk-x1xw4k8y.js → chunk-0kv76cch.js} +69 -66
- package/dist/{chunk-5fmdr8kf.js → chunk-0q8601fc.js} +56 -53
- package/dist/{chunk-99ch3v87.js → chunk-0s2qjxt0.js} +2 -2
- package/dist/{chunk-wvexwzsv.js → chunk-0vjhwg78.js} +4 -4
- package/dist/{chunk-n20s9kza.js → chunk-0wfby4jk.js} +55 -52
- package/dist/{chunk-qsq0dead.js → chunk-0wzfz235.js} +55 -52
- package/dist/{chunk-jkkca78b.js → chunk-0z3swktk.js} +58 -55
- package/dist/{chunk-b50c6d9d.js → chunk-0zwtzj7s.js} +4 -4
- package/dist/{chunk-j4smny6q.js → chunk-12b1dsca.js} +3 -3
- package/dist/{chunk-xstgv88m.js → chunk-172aq1cm.js} +3 -3
- package/dist/{chunk-4cve1vrz.js → chunk-1928vvnf.js} +16 -16
- package/dist/{chunk-18vnrzf5.js → chunk-1gta3pqg.js} +26 -1390
- package/dist/{chunk-jkb9g66a.js → chunk-1hr30g9j.js} +56 -53
- package/dist/{chunk-qkewrphe.js → chunk-1ta87008.js} +13 -13
- package/dist/{chunk-c110nsx0.js → chunk-1tsg5bqp.js} +7 -7
- package/dist/{chunk-9ey1xvcm.js → chunk-1xdybmyp.js} +2 -2
- package/dist/{chunk-zdkvcpbe.js → chunk-1xqh8b38.js} +2 -2
- package/dist/{chunk-pb9tbzx4.js → chunk-1z6393pz.js} +55 -52
- package/dist/{chunk-rq1rj0fm.js → chunk-20rdctr8.js} +59 -56
- package/dist/{chunk-n99mdb05.js → chunk-2278qvvz.js} +82 -69
- package/dist/{chunk-1r3w86w2.js → chunk-27rca2qk.js} +14 -14
- package/dist/{chunk-0yw7zdrk.js → chunk-28p3x5mq.js} +58 -55
- package/dist/{chunk-cdcg7rv7.js → chunk-29n8fs0h.js} +3 -3
- package/dist/{chunk-eemwbs1k.js → chunk-2bahqsy8.js} +5 -5
- package/dist/{chunk-vmnb4fe2.js → chunk-2d4az1sb.js} +1051 -213
- package/dist/{chunk-bbm8cs3b.js → chunk-2dtsff0m.js} +2 -2
- package/dist/{chunk-epb6vn7a.js → chunk-2dvsb5m8.js} +3 -3
- package/dist/{chunk-hh9e110e.js → chunk-2ea63hn5.js} +55 -52
- package/dist/{chunk-2wzw1ch2.js → chunk-2heyngx7.js} +55 -52
- package/dist/{chunk-exy61tq9.js → chunk-2n4jnkr3.js} +5 -5
- package/dist/{chunk-04fesxxb.js → chunk-2npy5n4d.js} +3 -3
- package/dist/chunk-2yz7ej7r.js +215 -0
- package/dist/{chunk-6dszbr2m.js → chunk-347n8wrb.js} +56 -53
- package/dist/{chunk-ac8h9vfx.js → chunk-365z3p8q.js} +4 -4
- package/dist/{chunk-2bjxdx6v.js → chunk-3ax3g4ky.js} +5 -5
- package/dist/{chunk-6tgdp97d.js → chunk-3c22f5y8.js} +4 -4
- package/dist/{chunk-y8h1t9ak.js → chunk-3ed5qycn.js} +59 -56
- package/dist/{chunk-2afnxgdd.js → chunk-3hw6pcqt.js} +12 -12
- package/dist/chunk-3j0f3yyd.js +20 -0
- package/dist/{chunk-yc2nybgd.js → chunk-3keyh8d3.js} +2 -2
- package/dist/{chunk-hegr0s7q.js → chunk-3n8prx9k.js} +3 -3
- package/dist/{chunk-8fvbvp8b.js → chunk-3tnabt1t.js} +2 -2
- package/dist/{chunk-0jehknrf.js → chunk-3ydfy1vc.js} +2 -2
- package/dist/{chunk-246ewz3k.js → chunk-41ncbfk7.js} +3 -3
- package/dist/{chunk-9qdc1dr7.js → chunk-45ynv6r6.js} +2 -2
- package/dist/chunk-46sfycpp.js +125 -0
- package/dist/{chunk-a1mp5wrb.js → chunk-496449vy.js} +2 -2
- package/dist/{chunk-a8w0ptwp.js → chunk-49z79885.js} +3 -3
- package/dist/{chunk-25j8nzw3.js → chunk-4c8mdzm1.js} +4 -4
- package/dist/{chunk-frafv5eb.js → chunk-4f56n8y8.js} +4 -4
- package/dist/{chunk-1mft5mam.js → chunk-4ffz1d36.js} +4 -4
- package/dist/{chunk-9jkv01k5.js → chunk-4hgk89n9.js} +59 -56
- package/dist/{chunk-g2z79a35.js → chunk-4k4kn7h2.js} +18 -18
- package/dist/{chunk-vf5aqnmh.js → chunk-4ks3c21q.js} +64 -61
- package/dist/{chunk-bazg62tk.js → chunk-4v3p8phf.js} +15 -15
- package/dist/chunk-4vzg1cn7.js +264 -0
- package/dist/{chunk-ex5da5zw.js → chunk-4xp653hr.js} +55 -52
- package/dist/{chunk-szhqm62n.js → chunk-4zvptd40.js} +60 -56
- package/dist/{chunk-70ygvt3c.js → chunk-503675yy.js} +2 -2
- package/dist/{chunk-cpmwecza.js → chunk-52d0caw3.js} +58 -55
- package/dist/{chunk-x0vsajns.js → chunk-56speggn.js} +3 -3
- package/dist/{chunk-94zksc1x.js → chunk-58jcwxyh.js} +14 -14
- package/dist/{chunk-ff33xk7c.js → chunk-5bd0sf0q.js} +2 -2
- package/dist/chunk-5cxetff3.js +443 -0
- package/dist/{chunk-10k5cmhr.js → chunk-5dm3xwms.js} +6 -6
- package/dist/{chunk-kb3arncw.js → chunk-5e4sk6wr.js} +3 -3
- package/dist/{chunk-azj0n2d5.js → chunk-5fny1a0a.js} +48 -17
- package/dist/{chunk-vavwasjv.js → chunk-5hn85d4q.js} +58 -55
- package/dist/{chunk-h8mre2wt.js → chunk-5p3bwhcw.js} +5 -5
- package/dist/{chunk-sgmscys1.js → chunk-5r57a99p.js} +15 -15
- package/dist/{chunk-9t6bcs6h.js → chunk-5thf5z45.js} +136 -44
- package/dist/chunk-5vbtjcd2.js +624 -0
- package/dist/{chunk-16mcxht8.js → chunk-5w9qcjjt.js} +61 -58
- package/dist/{chunk-wvevgh1a.js → chunk-5xj3z42h.js} +5 -5
- package/dist/{chunk-r3ve8thc.js → chunk-62r8rxkw.js} +4 -4
- package/dist/chunk-64wm5777.js +85 -0
- package/dist/{chunk-mht29n4v.js → chunk-6a32d602.js} +55 -52
- package/dist/{chunk-007h648h.js → chunk-6aevda19.js} +2 -2
- package/dist/{chunk-445bwfcz.js → chunk-6bb0gyhh.js} +55 -52
- package/dist/{chunk-72jyr3w9.js → chunk-6d9njm1w.js} +2 -2
- package/dist/{chunk-7fxmzq5j.js → chunk-6fbvxhan.js} +3 -3
- package/dist/{chunk-d988v6vq.js → chunk-6kddkcqk.js} +57 -54
- package/dist/{chunk-ejds7a1j.js → chunk-6sytfk68.js} +5 -5
- package/dist/{chunk-7z7d0s4n.js → chunk-6ypvw68g.js} +55 -52
- package/dist/{chunk-cga8jcd5.js → chunk-6zkxtny0.js} +4 -4
- package/dist/{chunk-k7mg4se1.js → chunk-6zn0szv5.js} +19 -17
- package/dist/{chunk-yqb19vg0.js → chunk-71053xes.js} +14 -14
- package/dist/chunk-758qmraw.js +66 -0
- package/dist/{chunk-41rte42b.js → chunk-76g1m8sa.js} +16 -4
- package/dist/{chunk-t7d66zgt.js → chunk-7b1ze28c.js} +55 -52
- package/dist/{chunk-a3m8brwc.js → chunk-7bq6az8b.js} +3 -3
- package/dist/{chunk-p5zfk1p0.js → chunk-7ckqn3c3.js} +55 -52
- package/dist/chunk-7d5gzxsx.js +145 -0
- package/dist/{chunk-wwcagza5.js → chunk-7gyjd00q.js} +3 -3
- package/dist/{chunk-weq1878z.js → chunk-7hnmt967.js} +84 -80
- package/dist/{chunk-07bx2jcz.js → chunk-7jbeh3g8.js} +3 -3
- package/dist/{chunk-nk4avpbc.js → chunk-7k0h27s8.js} +7 -7
- package/dist/{chunk-zyjnx7p3.js → chunk-7myptjaa.js} +5 -5
- package/dist/{chunk-gj458fct.js → chunk-7yq22pd2.js} +57 -54
- package/dist/{chunk-jzngaehg.js → chunk-7zxvjs3d.js} +2 -2
- package/dist/{chunk-1yw96d3f.js → chunk-83v18n96.js} +14 -14
- package/dist/{chunk-cehe5fzp.js → chunk-84a79s9g.js} +124 -149
- package/dist/{chunk-188vmn2q.js → chunk-86n03xsk.js} +60 -57
- package/dist/{chunk-yrx21nzs.js → chunk-87ddk39d.js} +6 -6
- package/dist/{chunk-91pgjs9c.js → chunk-89jrgnx3.js} +15 -15
- package/dist/{chunk-0g5nbhfx.js → chunk-8dehkx39.js} +5 -5
- package/dist/{chunk-r5m7dsya.js → chunk-8fm77brm.js} +59 -56
- package/dist/{chunk-65q352pt.js → chunk-8fqa9v4h.js} +55 -52
- package/dist/{chunk-kr7tq75r.js → chunk-8pqe4w62.js} +62 -59
- package/dist/{chunk-bnma4wvz.js → chunk-8qp0ytjr.js} +2 -2
- package/dist/{chunk-3bz9rf07.js → chunk-8v8n8gxv.js} +3 -3
- package/dist/{chunk-nq3atbmt.js → chunk-94jqjx3g.js} +59 -56
- package/dist/chunk-9663bsk0.js +18 -0
- package/dist/{chunk-k927esxr.js → chunk-96gwphgv.js} +3 -3
- package/dist/{chunk-22gbyh19.js → chunk-9bf696cj.js} +95 -87
- package/dist/{chunk-50dqzjnc.js → chunk-9cw6etxe.js} +56 -53
- package/dist/{chunk-r7a5cqdw.js → chunk-9dwdn2sk.js} +7 -7
- package/dist/{chunk-w5hj47pg.js → chunk-9ggwn844.js} +55 -68
- package/dist/{chunk-3wdtayab.js → chunk-9gxdrrd5.js} +55 -52
- package/dist/{chunk-91n8b2bh.js → chunk-9q952pw0.js} +2 -2
- package/dist/{chunk-rh4c6hqb.js → chunk-9qgzdk8y.js} +7 -7
- package/dist/{chunk-308mgh4v.js → chunk-9qj9t1g4.js} +2 -2
- package/dist/{chunk-fepvmnye.js → chunk-9sr5cheh.js} +55 -52
- package/dist/{chunk-4ksc1s3d.js → chunk-9vvffdb6.js} +64 -61
- package/dist/chunk-a18ypbnr.js +151 -0
- package/dist/{chunk-agp8g4vs.js → chunk-a80y3b1p.js} +3 -3
- package/dist/{chunk-82e5ecfq.js → chunk-a96dsyhm.js} +59 -56
- package/dist/{chunk-pgjmgh51.js → chunk-a97kj439.js} +2 -2
- package/dist/chunk-aggcq5pt.js +16 -0
- package/dist/{chunk-42m1b4hy.js → chunk-am5zfwnf.js} +19 -19
- package/dist/{chunk-dz9y4ynp.js → chunk-b21j3y4h.js} +2 -2
- package/dist/{chunk-k85dxf7e.js → chunk-b52sketm.js} +55 -52
- package/dist/{chunk-nda7wdyd.js → chunk-b7fcydvv.js} +18 -18
- package/dist/{chunk-tfy2cfmx.js → chunk-bb9h35x7.js} +55 -52
- package/dist/{chunk-8yvwvs92.js → chunk-bbpnmz87.js} +2 -2
- package/dist/chunk-bcfd2zw7.js +23 -0
- package/dist/chunk-bdy3869e.js +35 -0
- package/dist/{chunk-6qjny6s9.js → chunk-be8pcep0.js} +2 -2
- package/dist/{chunk-gb253fe4.js → chunk-bgpftrxc.js} +56 -53
- package/dist/{chunk-1psvq5k9.js → chunk-bh4k9q9y.js} +4 -4
- package/dist/{chunk-1ht0vtnv.js → chunk-bjc8f709.js} +62 -59
- package/dist/{chunk-3xn43gdg.js → chunk-bm5370d5.js} +14 -14
- package/dist/{chunk-g14bjgw2.js → chunk-br1qf4bc.js} +12 -21
- package/dist/{chunk-wmxdjz06.js → chunk-bxmc7435.js} +7 -7
- package/dist/chunk-c36xznt7.js +1045 -0
- package/dist/{chunk-3153jw2k.js → chunk-c3z2f4aq.js} +58 -55
- package/dist/chunk-cchv4yn8.js +214 -0
- package/dist/{chunk-j4rqvdds.js → chunk-cewbt8ah.js} +2 -2
- package/dist/{chunk-txcczr8d.js → chunk-cfeakba6.js} +55 -52
- package/dist/{chunk-b0rzqvdk.js → chunk-ckh1zt0n.js} +65 -62
- package/dist/{chunk-xcm658wm.js → chunk-ckq5d8ev.js} +3 -3
- package/dist/chunk-cnfzmqr8.js +115 -0
- package/dist/chunk-crchz5q8.js +16 -0
- package/dist/{chunk-nynqcpbc.js → chunk-cwpxrn2d.js} +17 -17
- package/dist/chunk-cy223s48.js +881 -0
- package/dist/{chunk-7btb0pt0.js → chunk-cydd546q.js} +57 -53
- package/dist/{chunk-vwppfk3m.js → chunk-cz5ycdta.js} +3 -3
- package/dist/{chunk-mkqj6971.js → chunk-da7f9a81.js} +105 -29
- package/dist/{chunk-6w9vbmda.js → chunk-dfzfxt1y.js} +7 -7
- package/dist/{chunk-qwn30dmv.js → chunk-dj6y2sr8.js} +3 -3
- package/dist/{chunk-cbhwxy49.js → chunk-djbawqmw.js} +55 -52
- package/dist/{chunk-n0qw1yqs.js → chunk-dpb1kvb9.js} +56 -53
- package/dist/{chunk-gr3hsybk.js → chunk-dt5c48mh.js} +2 -2
- package/dist/{chunk-sffjkpkr.js → chunk-e1m95nec.js} +6 -6
- package/dist/{chunk-gy5e77gm.js → chunk-e26hypm4.js} +56 -53
- package/dist/{chunk-8z65azad.js → chunk-e5kn4hwp.js} +56 -53
- package/dist/{chunk-750k6p99.js → chunk-e6dq8apj.js} +55 -52
- package/dist/{chunk-afjvd592.js → chunk-e6p5x2p4.js} +4 -4
- package/dist/{chunk-4bwmnypz.js → chunk-eb6x30zz.js} +57 -54
- package/dist/{chunk-mcmhgv5a.js → chunk-ebfv6acv.js} +12 -12
- package/dist/{chunk-zgt8wev2.js → chunk-egkwv0bp.js} +2 -2
- package/dist/{chunk-7e6cm3rj.js → chunk-ennzq1s5.js} +14 -4
- package/dist/{chunk-4am10fzg.js → chunk-envqyd27.js} +59 -55
- package/dist/{chunk-d9c2bj73.js → chunk-epprxdgg.js} +2 -2
- package/dist/{chunk-2nrg59n8.js → chunk-et42fzf1.js} +22 -22
- package/dist/{chunk-h0rbjg6x.js → chunk-f2mhrmww.js} +10 -3
- package/dist/{chunk-ywmprz18.js → chunk-fb5ehysd.js} +57 -54
- package/dist/chunk-fbtp7vga.js +37 -0
- package/dist/{chunk-d2148dsd.js → chunk-fgna18nd.js} +6 -6
- package/dist/{chunk-wzheh2yr.js → chunk-fknjgxt4.js} +56 -53
- package/dist/{chunk-y1jcd7xx.js → chunk-fpb43g1s.js} +6 -6
- package/dist/{chunk-d24kfzcv.js → chunk-ftfz2eh3.js} +2 -2
- package/dist/{chunk-3j8vq1pf.js → chunk-fv94gm4h.js} +56 -53
- package/dist/{chunk-fjqp3q7c.js → chunk-fx7pr1g4.js} +13 -13
- package/dist/{chunk-ryqepdpz.js → chunk-g0axk7cx.js} +56 -53
- package/dist/chunk-g6d9avms.js +205 -0
- package/dist/{chunk-xjfqctzs.js → chunk-g9caj6wj.js} +66 -63
- package/dist/{chunk-nfbw6f7k.js → chunk-gbekxw41.js} +56 -53
- package/dist/{chunk-ahq40vpt.js → chunk-gcpc6b2z.js} +2 -2
- package/dist/{chunk-98174mf4.js → chunk-gfycetpg.js} +5 -5
- package/dist/{chunk-sjjq8xdb.js → chunk-gn0ja3k5.js} +5 -5
- package/dist/{chunk-j2zvdmqh.js → chunk-gt9gwwdh.js} +5 -5
- package/dist/{chunk-cf8d6pz4.js → chunk-gz0nj0mm.js} +55 -52
- package/dist/{chunk-msr65xs2.js → chunk-gz6pze8f.js} +57 -54
- package/dist/{chunk-7m8k6pa3.js → chunk-h1frxdrg.js} +56 -54
- package/dist/{chunk-eac7ypee.js → chunk-h93ve2g2.js} +14 -14
- package/dist/{chunk-vee2y2a3.js → chunk-h9mr8ey4.js} +13 -13
- package/dist/{chunk-59bwmnpt.js → chunk-hd8ydnzq.js} +15 -15
- package/dist/{chunk-kgcmddnw.js → chunk-hebz2z6z.js} +58 -55
- package/dist/chunk-hgxb4qn5.js +390 -0
- package/dist/{chunk-00hg5r38.js → chunk-hh6kgtq5.js} +3 -3
- package/dist/{chunk-hd9nkrx3.js → chunk-hhcx2jjn.js} +3 -3
- package/dist/{chunk-6x5h6cqf.js → chunk-hjp1yckp.js} +56 -53
- package/dist/{chunk-bqbxmdjy.js → chunk-hjxz7a04.js} +58 -55
- package/dist/{chunk-0v69sn62.js → chunk-hkkz8rde.js} +55 -52
- package/dist/{chunk-677p38pg.js → chunk-hnms0snx.js} +2 -2
- package/dist/{chunk-y15fkqed.js → chunk-hq4jd1fy.js} +23 -23
- package/dist/{chunk-hknjwtbv.js → chunk-hthfhdty.js} +15 -15
- package/dist/{chunk-xkavy09t.js → chunk-hy5vd50e.js} +3 -3
- package/dist/{chunk-86nrce87.js → chunk-hyztfnyq.js} +468 -226
- package/dist/{chunk-45m4a7v2.js → chunk-j5rnevxw.js} +62 -59
- package/dist/{chunk-26g6w0ah.js → chunk-j74ctwq9.js} +3 -3
- package/dist/{chunk-nt0qt25w.js → chunk-jcdv05ym.js} +33 -5
- package/dist/{chunk-bdjevwn2.js → chunk-jd5xs374.js} +55 -52
- package/dist/{chunk-rz56zge4.js → chunk-jgbz49jh.js} +6 -4
- package/dist/{chunk-7hsedj2m.js → chunk-jhdtyhk5.js} +57 -54
- package/dist/{chunk-e40wen38.js → chunk-jkbkp0ek.js} +14 -14
- package/dist/{chunk-kf6gt482.js → chunk-jkyn6ge9.js} +5 -5
- package/dist/{chunk-nb02zd8m.js → chunk-jn7qa13m.js} +3 -3
- package/dist/{chunk-4ah5x35c.js → chunk-jt7ea6rq.js} +55 -52
- package/dist/{chunk-827qm1sh.js → chunk-jt7wch8z.js} +2 -2
- package/dist/{chunk-v4vcp64e.js → chunk-jv7tn7yh.js} +55 -52
- package/dist/chunk-jx80x2sn.js +267 -0
- package/dist/{chunk-03fdnx3e.js → chunk-jy13c47g.js} +5 -5
- package/dist/{chunk-dkazyend.js → chunk-k11m1rfc.js} +57 -54
- package/dist/{chunk-z2yjcarh.js → chunk-k3mghke5.js} +57 -86
- package/dist/{chunk-a0dd5hkn.js → chunk-k5rrrd0q.js} +78 -75
- package/dist/{chunk-2wbwn8g8.js → chunk-kbbjfeb8.js} +2 -2
- package/dist/chunk-kcz5b7xv.js +73 -0
- package/dist/{chunk-173gkvba.js → chunk-khnxj5vx.js} +3 -3
- package/dist/{chunk-cgqv2grs.js → chunk-kkwym2b7.js} +5 -5
- package/dist/{chunk-hvve83a7.js → chunk-kn345s2x.js} +2 -2
- package/dist/{chunk-x07xwqrj.js → chunk-kpqx95pr.js} +2 -2
- package/dist/{chunk-qgbfcm47.js → chunk-kszphewb.js} +63 -54
- package/dist/{chunk-h9j4zz8p.js → chunk-kxn6mzy3.js} +4 -4
- package/dist/{chunk-bjgz0wdj.js → chunk-m0zzdgkt.js} +31 -26
- package/dist/{chunk-xpvj19fq.js → chunk-m7qa1fqb.js} +3 -3
- package/dist/{chunk-ffg51hwt.js → chunk-mdm5cbxy.js} +55 -52
- package/dist/chunk-mnqvtfd5.js +78 -0
- package/dist/{chunk-429gckc3.js → chunk-mp5km99q.js} +20 -20
- package/dist/{chunk-psbm5jsc.js → chunk-mpxcgg5f.js} +6 -6
- package/dist/{chunk-a5615tp4.js → chunk-mqr18cwx.js} +4 -4
- package/dist/chunk-n014czx3.js +18 -0
- package/dist/{chunk-wtcd14r5.js → chunk-n40kbp9f.js} +55 -52
- package/dist/{chunk-z3qy0rgg.js → chunk-n51s6m60.js} +14 -14
- package/dist/{chunk-0rr38kc5.js → chunk-n87c314c.js} +56 -53
- package/dist/{chunk-qrzeq3x3.js → chunk-nevf0mb9.js} +15 -15
- package/dist/{chunk-fe3f357e.js → chunk-nkeknzb2.js} +4 -4
- package/dist/{chunk-xcvezw4b.js → chunk-nkgq6a5q.js} +28 -28
- package/dist/{chunk-3208ghtw.js → chunk-nmj9qx2x.js} +65 -62
- package/dist/{chunk-26bfvj72.js → chunk-nmyfe9j9.js} +57 -54
- package/dist/{chunk-fz2zjx1x.js → chunk-nmzy0qjn.js} +7 -7
- package/dist/{chunk-gdajxwh7.js → chunk-np05dg07.js} +55 -52
- package/dist/{chunk-w51sng2s.js → chunk-npgyhaqc.js} +2 -2
- package/dist/{chunk-chfh2dha.js → chunk-nr2skyv7.js} +56 -53
- package/dist/{chunk-5wrrjqyd.js → chunk-nv5rddp1.js} +55 -52
- package/dist/{chunk-7aeww2z6.js → chunk-p10xajeq.js} +69 -66
- package/dist/{chunk-2kajewxj.js → chunk-p1wxbhgj.js} +4 -4
- package/dist/{chunk-q65zt8zd.js → chunk-p6fhtt1h.js} +4 -4
- package/dist/{chunk-5w18hvcs.js → chunk-p8d1q69a.js} +55 -52
- package/dist/{chunk-rrcsw70h.js → chunk-pbmy8ktp.js} +7 -7
- package/dist/{chunk-wvp9qznk.js → chunk-pqrb30bj.js} +2 -2
- package/dist/{chunk-etd086w1.js → chunk-pr321r8d.js} +3 -3
- package/dist/{chunk-t4f85b5b.js → chunk-psq9gtg7.js} +2 -2
- package/dist/{chunk-wt40qpf8.js → chunk-ptermrp1.js} +60 -57
- package/dist/{chunk-ybpn8zcq.js → chunk-pyfrphvc.js} +57 -54
- package/dist/{chunk-vajyw4ea.js → chunk-pzb2zc4x.js} +6 -6
- package/dist/{chunk-9p4wsdjj.js → chunk-q0w614e1.js} +3 -3
- package/dist/{chunk-x8khmg37.js → chunk-q110twdj.js} +59 -116
- package/dist/{chunk-v3ynnwf5.js → chunk-q72dtjqy.js} +2 -2
- package/dist/{chunk-73zyqp47.js → chunk-q90bcq6v.js} +59 -56
- package/dist/{chunk-cmk5fvhp.js → chunk-qavfmmqd.js} +6 -6
- package/dist/{chunk-fsr3wqt8.js → chunk-qjx52q61.js} +2 -2
- package/dist/{chunk-fw4y0f76.js → chunk-qk2tvn8y.js} +56 -53
- package/dist/{chunk-2d9752es.js → chunk-qm3k6vez.js} +13 -13
- package/dist/{chunk-h2q4v2te.js → chunk-qmp50hjb.js} +19 -19
- package/dist/{chunk-tvnzqcya.js → chunk-qnztz65r.js} +56 -53
- package/dist/{chunk-0c1d11gp.js → chunk-qpatv1ep.js} +13 -13
- package/dist/{chunk-dsdbya1y.js → chunk-qwtfyr6d.js} +2 -2
- package/dist/{chunk-nz9rqw9y.js → chunk-qxp3d963.js} +2 -2
- package/dist/{chunk-xq92sh7h.js → chunk-qzp51m93.js} +3 -3
- package/dist/{chunk-gmyt1kr3.js → chunk-r3fadmd6.js} +5 -5
- package/dist/{chunk-sgw20vr8.js → chunk-r4mec6w5.js} +3 -3
- package/dist/chunk-r6g3xx75.js +415 -0
- package/dist/{chunk-3d8wynhd.js → chunk-r8ywba1h.js} +14 -14
- package/dist/{chunk-pc761fjv.js → chunk-r974358t.js} +13 -13
- package/dist/{chunk-s996ghdk.js → chunk-r9qnxgqt.js} +5 -5
- package/dist/{chunk-vyc908t4.js → chunk-rasdgp8g.js} +4 -4
- package/dist/{chunk-z4et0c5h.js → chunk-rbr0tsrz.js} +55 -52
- package/dist/{chunk-qak319wf.js → chunk-re5p7q2e.js} +4 -4
- package/dist/{chunk-ndfk4pk7.js → chunk-rfvzhq5x.js} +55 -52
- package/dist/{chunk-bqxeky5x.js → chunk-rfxctace.js} +3 -4
- package/dist/chunk-rhqffqzf.js +189 -0
- package/dist/{chunk-56qq2p9r.js → chunk-rnjtkqzg.js} +4 -4
- package/dist/{chunk-ws77frz2.js → chunk-rqa3fz1t.js} +55 -52
- package/dist/{chunk-ss1c88v5.js → chunk-rtgff67y.js} +63 -60
- package/dist/{chunk-2vvwrqnf.js → chunk-rw1070pc.js} +4 -4
- package/dist/{chunk-cxkxps51.js → chunk-rzrm7j9x.js} +2 -2
- package/dist/{chunk-bat87bmz.js → chunk-s262tfgm.js} +3 -3
- package/dist/{chunk-mj4zph9q.js → chunk-s4pjm9jw.js} +55 -52
- package/dist/chunk-s5pnejsn.js +216 -0
- package/dist/{chunk-6fp3tvak.js → chunk-sczmmmvj.js} +2 -2
- package/dist/{chunk-pynkknss.js → chunk-sd2g0s0k.js} +9 -9
- package/dist/{chunk-rnsws47e.js → chunk-sg5nsm4p.js} +3 -3
- package/dist/{chunk-c5sm4sc3.js → chunk-stqsfa68.js} +3 -3
- package/dist/{chunk-pxmfaad7.js → chunk-svb5eqfz.js} +14 -14
- package/dist/{chunk-5tbfphgg.js → chunk-swr65v0j.js} +10 -10
- package/dist/{chunk-4gkqm4bn.js → chunk-swtk97hy.js} +14 -14
- package/dist/{chunk-rrbsm1d2.js → chunk-sx4gbak5.js} +56 -53
- package/dist/{chunk-4n3kmsaj.js → chunk-t12d6tby.js} +3 -3
- package/dist/{chunk-w9dy1w2w.js → chunk-t20f5mnk.js} +14 -14
- package/dist/{chunk-rkwfpq4m.js → chunk-t408adb9.js} +56 -53
- package/dist/{chunk-gz1jqh8a.js → chunk-t7434h4s.js} +55 -52
- package/dist/{chunk-dve0wwbm.js → chunk-t7y6mg54.js} +13 -13
- package/dist/{chunk-tdpx7hh3.js → chunk-tdkwcv57.js} +4 -4
- package/dist/{chunk-crpj1nw0.js → chunk-tfew976a.js} +55 -52
- package/dist/{chunk-n9d1qnp6.js → chunk-thzmxfnt.js} +2 -2
- package/dist/{chunk-vh81ygd3.js → chunk-tmedrj3f.js} +4 -4
- package/dist/{chunk-j9q7p2m5.js → chunk-tmscbs2k.js} +4 -4
- package/dist/chunk-tnk7s4ed.js +22 -0
- package/dist/{chunk-h9c871q9.js → chunk-tnqjynvy.js} +14 -14
- package/dist/{chunk-2hevw9te.js → chunk-tq32b105.js} +3 -3
- package/dist/{chunk-gzpsa71f.js → chunk-tr448vwb.js} +3 -3
- package/dist/{chunk-xdfcfm69.js → chunk-tr4hszme.js} +3 -3
- package/dist/{chunk-5nzjxkj9.js → chunk-traxf72w.js} +2 -2
- package/dist/{chunk-xs5ncg1b.js → chunk-ttzyw0y7.js} +17 -17
- package/dist/{chunk-997z9was.js → chunk-tw0b366n.js} +55 -52
- package/dist/{chunk-w2z0zq63.js → chunk-txync4kd.js} +7 -7
- package/dist/chunk-v060k07j.js +416 -0
- package/dist/chunk-v1rkrwwv.js +146 -0
- package/dist/{chunk-t15y7qj2.js → chunk-v21ssxkp.js} +2 -2
- package/dist/{chunk-dn3k7jx0.js → chunk-v2vzfj4h.js} +55 -52
- package/dist/{chunk-f6xc2rtk.js → chunk-v4h7dscd.js} +27 -249
- package/dist/{chunk-vn0y1222.js → chunk-v522k1r4.js} +70 -67
- package/dist/{chunk-b1akqr40.js → chunk-v9b2rh8h.js} +58 -55
- package/dist/{chunk-g8e4wwak.js → chunk-vacje5g9.js} +4 -4
- package/dist/{chunk-x36cer09.js → chunk-vetj2j2n.js} +60 -57
- package/dist/{chunk-354nk8fp.js → chunk-vpn54vqg.js} +6 -6
- package/dist/{chunk-xytm9792.js → chunk-vqhgs52z.js} +7 -7
- package/dist/{chunk-0yyajtmg.js → chunk-vtnm80k9.js} +13 -13
- package/dist/{chunk-0q17nthv.js → chunk-vvk6wx6b.js} +14 -14
- package/dist/{chunk-k4r2smrc.js → chunk-vym5zrn6.js} +4944 -2380
- package/dist/{chunk-9ej0hnae.js → chunk-vzxtxv4a.js} +56 -53
- package/dist/{chunk-pydt2a2n.js → chunk-w3wdqhv0.js} +62 -59
- package/dist/{chunk-esmecavs.js → chunk-w59jkye4.js} +56 -53
- package/dist/{chunk-r86f5rq0.js → chunk-w60fa5cj.js} +65 -62
- package/dist/{chunk-rnr60956.js → chunk-w8xchcwf.js} +3 -3
- package/dist/{chunk-f0a3t1s8.js → chunk-w9fptpp9.js} +64 -61
- package/dist/{chunk-4pc3744p.js → chunk-wa7g3yv7.js} +13 -13
- package/dist/{chunk-appan6jz.js → chunk-wdn3pb9r.js} +3 -3
- package/dist/{chunk-ta3mpea5.js → chunk-wqk03hpc.js} +55 -52
- package/dist/{chunk-6hywp0n9.js → chunk-wvs8wv8t.js} +2 -2
- package/dist/{chunk-nb32etb5.js → chunk-wwfe7gg7.js} +58 -55
- package/dist/{chunk-nmaxmbg9.js → chunk-wz18c465.js} +4 -4
- package/dist/{chunk-9gy4amsa.js → chunk-wz34c685.js} +15 -15
- package/dist/{chunk-5tg67tyt.js → chunk-wzzaxwej.js} +2 -2
- package/dist/chunk-x1wk407b.js +516 -0
- package/dist/{chunk-jysm93mk.js → chunk-x2taqvwd.js} +5 -5
- package/dist/{chunk-4n33zjr2.js → chunk-x41dz9y9.js} +2 -2
- package/dist/chunk-x48x54hx.js +3942 -0
- package/dist/{chunk-fapmq0mf.js → chunk-x6cjkxqe.js} +5 -5
- package/dist/{chunk-37va52e9.js → chunk-x89sscn0.js} +2 -2
- package/dist/chunk-x9qqj8wc.js +153 -0
- package/dist/{chunk-wt541mkc.js → chunk-xa9xpah3.js} +3041 -2505
- package/dist/{chunk-644422j5.js → chunk-xcxcysx3.js} +2 -2
- package/dist/{chunk-qemwdcf4.js → chunk-xftqvncz.js} +9 -46
- package/dist/{chunk-zhmz5pc1.js → chunk-xhnmweqe.js} +86 -61
- package/dist/{chunk-jvnjg83j.js → chunk-xm6t6khx.js} +56 -53
- package/dist/chunk-xt65mfby.js +1395 -0
- package/dist/{chunk-e59fmxpj.js → chunk-xvmtyz8q.js} +2 -2
- package/dist/{chunk-55cx3c4n.js → chunk-xxfz08mf.js} +55 -52
- package/dist/{chunk-9zd21fw9.js → chunk-y061xbn9.js} +5 -5
- package/dist/{chunk-1tc6spqh.js → chunk-y0z468z2.js} +56 -53
- package/dist/{chunk-8x3wqyv3.js → chunk-y3cshvgb.js} +2 -2
- package/dist/{chunk-jakgz278.js → chunk-y6ce2s1q.js} +59 -55
- package/dist/chunk-y9bpc4a6.js +97 -0
- package/dist/{chunk-8c4wbrma.js → chunk-y9mnawak.js} +4 -4
- package/dist/{chunk-4zbc59gv.js → chunk-ycdbp5q4.js} +55 -52
- package/dist/{chunk-q6vrrdxm.js → chunk-ycsh7pst.js} +13 -13
- package/dist/{chunk-00c1cny7.js → chunk-yedzdc0a.js} +14 -8
- package/dist/{chunk-f0613fz6.js → chunk-yrr4d26k.js} +56 -53
- package/dist/{chunk-0mmyn5gx.js → chunk-yt5gwdg5.js} +7 -60
- package/dist/{chunk-bdd27pgp.js → chunk-yteefw26.js} +55 -52
- package/dist/{chunk-m0hg4ry7.js → chunk-yvjzex9w.js} +6 -82
- package/dist/{chunk-5n19f2r9.js → chunk-z124zj20.js} +4 -4
- package/dist/{chunk-sa5fj0d3.js → chunk-z92c7wdq.js} +4 -4
- package/dist/{chunk-pa6m6zh8.js → chunk-zb7ctc11.js} +55 -52
- package/dist/{chunk-tx6c6zpp.js → chunk-zc2mfxy0.js} +58 -55
- package/dist/{chunk-yh935z65.js → chunk-zdsqreyq.js} +3 -3
- package/dist/chunk-zf5btqc3.js +54 -0
- package/dist/{chunk-s6afn83n.js → chunk-zfwgjjde.js} +2 -2
- package/dist/{chunk-35se2h9e.js → chunk-zgvyn6yk.js} +55 -52
- package/dist/{chunk-hryyyanp.js → chunk-zmj9sehj.js} +56 -53
- package/dist/{chunk-cv2hk4fq.js → chunk-zr750mg3.js} +93 -56
- package/dist/{chunk-z1b4600y.js → chunk-zshw91dr.js} +5 -5
- package/dist/{chunk-m2epey0s.js → chunk-zyhpq0w1.js} +17 -5
- package/dist/{chunk-arnzwvcj.js → chunk-zzac564h.js} +15 -15
- package/dist/cli.js +94 -28
- package/dist/services/rawDump/batchWorker.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-0paqc2yw.js +0 -18
- package/dist/chunk-2s9sfj9h.js +0 -99
- package/dist/chunk-76xcw4kg.js +0 -138
- package/dist/chunk-7bdscsqe.js +0 -197
- package/dist/chunk-pppfybd8.js +0 -183
- package/dist/chunk-q2pkj7sp.js +0 -18
- package/dist/chunk-zbn3eb68.js +0 -57
|
@@ -1,85 +1,86 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
HybridTransport,
|
|
4
|
-
WebSocketTransport
|
|
5
|
-
} from "./chunk-d2148dsd.js";
|
|
6
|
-
import {
|
|
7
|
-
CCRClient,
|
|
8
|
-
CCRInitError
|
|
9
|
-
} from "./chunk-98174mf4.js";
|
|
10
2
|
import {
|
|
11
3
|
StructuredIO,
|
|
12
|
-
buildSystemInitMessage,
|
|
13
4
|
cancelQueuedAutonomyCommands,
|
|
14
5
|
claimConsumableQueuedAutonomyCommands,
|
|
15
|
-
exports_MessageSelector,
|
|
16
6
|
exports_cronJitterConfig,
|
|
17
7
|
exports_cronScheduler,
|
|
18
8
|
extractInboundMessageFields,
|
|
19
9
|
finalizeAutonomyCommandsForTurn,
|
|
20
|
-
init_MessageSelector,
|
|
21
10
|
init_autonomyQueueLifecycle,
|
|
22
11
|
init_cronJitterConfig,
|
|
23
12
|
init_cronScheduler,
|
|
24
13
|
ndjsonSafeStringify,
|
|
25
14
|
outputSchema,
|
|
26
15
|
permissionPromptToolResultToPermissionDecision,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
sdkCompatToolName
|
|
30
|
-
} from "./chunk-18vnrzf5.js";
|
|
16
|
+
reconcileMarketplaces
|
|
17
|
+
} from "./chunk-1gta3pqg.js";
|
|
31
18
|
import {
|
|
32
19
|
restoreAgentFromSession,
|
|
33
|
-
restoreSessionStateFromLog
|
|
34
|
-
|
|
35
|
-
} from "./chunk-f6xc2rtk.js";
|
|
20
|
+
restoreSessionStateFromLog
|
|
21
|
+
} from "./chunk-v4h7dscd.js";
|
|
36
22
|
import {
|
|
37
23
|
detectAndUninstallDelistedPlugins
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import"./chunk-
|
|
40
|
-
import"./chunk-x07xwqrj.js";
|
|
24
|
+
} from "./chunk-e6p5x2p4.js";
|
|
25
|
+
import"./chunk-kpqx95pr.js";
|
|
41
26
|
import {
|
|
42
27
|
externalMetadataToAppState
|
|
43
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-mqr18cwx.js";
|
|
29
|
+
import {
|
|
30
|
+
HybridTransport,
|
|
31
|
+
WebSocketTransport
|
|
32
|
+
} from "./chunk-fgna18nd.js";
|
|
33
|
+
import {
|
|
34
|
+
CCRClient,
|
|
35
|
+
CCRInitError
|
|
36
|
+
} from "./chunk-gfycetpg.js";
|
|
37
|
+
import"./chunk-nt837qt9.js";
|
|
38
|
+
import {
|
|
39
|
+
resolveAndPrepend
|
|
40
|
+
} from "./chunk-7d5gzxsx.js";
|
|
44
41
|
import {
|
|
45
42
|
getPollIntervalConfig
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import"./chunk-
|
|
43
|
+
} from "./chunk-7zxvjs3d.js";
|
|
44
|
+
import"./chunk-7bq6az8b.js";
|
|
45
|
+
import {
|
|
46
|
+
ask,
|
|
47
|
+
buildSideQuestionFallbackParams
|
|
48
|
+
} from "./chunk-c36xznt7.js";
|
|
49
|
+
import"./chunk-xt65mfby.js";
|
|
48
50
|
import {
|
|
49
51
|
SSETransport,
|
|
50
52
|
init_SSETransport
|
|
51
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-p6fhtt1h.js";
|
|
54
|
+
import {
|
|
55
|
+
init_skillChangeDetector,
|
|
56
|
+
skillChangeDetector
|
|
57
|
+
} from "./chunk-2yz7ej7r.js";
|
|
58
|
+
import {
|
|
59
|
+
init_toolPool,
|
|
60
|
+
mergeAndFilterTools
|
|
61
|
+
} from "./chunk-fbtp7vga.js";
|
|
62
|
+
import"./chunk-psq9gtg7.js";
|
|
52
63
|
import {
|
|
53
64
|
init_settingsSync
|
|
54
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-zshw91dr.js";
|
|
55
66
|
import {
|
|
56
67
|
init_refresh,
|
|
57
68
|
refreshActivePlugins
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
init_toolPool,
|
|
61
|
-
mergeAndFilterTools
|
|
62
|
-
} from "./chunk-zbn3eb68.js";
|
|
63
|
-
import"./chunk-t4f85b5b.js";
|
|
69
|
+
} from "./chunk-epprxdgg.js";
|
|
64
70
|
import {
|
|
65
71
|
generateSessionTitle,
|
|
66
72
|
init_sessionTitle
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import
|
|
69
|
-
init_systemTheme,
|
|
70
|
-
resolveThemeSetting
|
|
71
|
-
} from "./chunk-cnsj3vq2.js";
|
|
73
|
+
} from "./chunk-bh4k9q9y.js";
|
|
74
|
+
import"./chunk-cnsj3vq2.js";
|
|
72
75
|
import {
|
|
73
76
|
init_mappers,
|
|
74
|
-
localCommandOutputToSDKAssistantMessage,
|
|
75
77
|
toInternalMessages,
|
|
76
|
-
toSDKCompactMetadata,
|
|
77
78
|
toSDKRateLimitInfo
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-0cm9fcaq.js";
|
|
79
80
|
import {
|
|
80
81
|
init_omit,
|
|
81
82
|
omit_default
|
|
82
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-tq32b105.js";
|
|
83
84
|
import {
|
|
84
85
|
ChannelMessageNotificationSchema,
|
|
85
86
|
findChannelEntry,
|
|
@@ -89,34 +90,29 @@ import {
|
|
|
89
90
|
isChannelAllowlisted,
|
|
90
91
|
isChannelsEnabled,
|
|
91
92
|
wrapChannelMessage
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import"./chunk-
|
|
94
|
-
import"./chunk-
|
|
93
|
+
} from "./chunk-hy5vd50e.js";
|
|
94
|
+
import"./chunk-jkyn6ge9.js";
|
|
95
|
+
import"./chunk-gn0ja3k5.js";
|
|
95
96
|
import {
|
|
96
97
|
collectContextData,
|
|
97
98
|
init_context_noninteractive
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import"./chunk-q2pkj7sp.js";
|
|
99
|
+
} from "./chunk-xftqvncz.js";
|
|
100
100
|
import {
|
|
101
101
|
init_sideQuestion,
|
|
102
102
|
runSideQuestion
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-2dvsb5m8.js";
|
|
104
104
|
import"./chunk-rn0v1hk8.js";
|
|
105
105
|
import {
|
|
106
106
|
DEFAULT_OUTPUT_STYLE_NAME,
|
|
107
107
|
EFFORT_LEVELS,
|
|
108
108
|
OAuthService,
|
|
109
|
-
SYNTHETIC_MESSAGES,
|
|
110
109
|
SandboxManager,
|
|
111
|
-
accumulateUsage,
|
|
112
110
|
applySettingsChange,
|
|
113
111
|
areMcpConfigsEqual,
|
|
114
112
|
asSessionId,
|
|
115
113
|
assembleToolPool,
|
|
116
114
|
atomicWriteToZipCache,
|
|
117
115
|
buildBridgeConnectUrl,
|
|
118
|
-
buildEffectiveSystemPrompt,
|
|
119
|
-
categorizeRetryableAPIError,
|
|
120
116
|
checkGroveForNonInteractive,
|
|
121
117
|
cleanupSessionPluginCache,
|
|
122
118
|
clearCommandsCache,
|
|
@@ -125,7 +121,6 @@ import {
|
|
|
125
121
|
clearServerCache,
|
|
126
122
|
commandBelongsToServer,
|
|
127
123
|
connectToServer,
|
|
128
|
-
countToolCalls,
|
|
129
124
|
createAbortController,
|
|
130
125
|
createAutonomyQueuedPromptIfNoActiveSource,
|
|
131
126
|
createCombinedAbortSignal,
|
|
@@ -137,28 +132,24 @@ import {
|
|
|
137
132
|
drainSdkEvents,
|
|
138
133
|
enqueue,
|
|
139
134
|
executeNotificationHooks,
|
|
140
|
-
exports_coordinatorMode,
|
|
141
135
|
exports_extractMemories,
|
|
142
|
-
exports_loadAgentsDir,
|
|
143
|
-
exports_snipCompact,
|
|
144
|
-
exports_snipProjection,
|
|
145
136
|
extractReadFilesFromMessages,
|
|
146
137
|
fetchToolsForClient,
|
|
147
138
|
fileHistoryCanRestore,
|
|
148
139
|
fileHistoryEnabled,
|
|
149
140
|
fileHistoryGetDiffStats,
|
|
150
|
-
fileHistoryMakeSnapshot,
|
|
151
141
|
fileHistoryRewind,
|
|
152
142
|
filterMcpServersByPolicy,
|
|
153
143
|
filterToolsByDenyRules,
|
|
154
144
|
filterToolsByServer,
|
|
155
145
|
finalizePendingAsyncHooks,
|
|
156
146
|
findUnresolvedToolUse,
|
|
157
|
-
flushSessionStorage,
|
|
158
147
|
formatDescriptionWithSource,
|
|
159
148
|
fromArray,
|
|
160
149
|
getAllMcpConfigs,
|
|
161
150
|
getAllOutputStyles,
|
|
151
|
+
getAutoModeUnavailableNotification,
|
|
152
|
+
getAutoModeUnavailableReason,
|
|
162
153
|
getCommandName,
|
|
163
154
|
getCommands,
|
|
164
155
|
getCommandsByMaxPriority,
|
|
@@ -170,17 +161,11 @@ import {
|
|
|
170
161
|
getPluginZipCachePath,
|
|
171
162
|
getRemoteSessionUrl,
|
|
172
163
|
getRunningTasks,
|
|
173
|
-
getScratchpadDir,
|
|
174
|
-
getSlashCommandToolSkills,
|
|
175
|
-
getSystemContext,
|
|
176
|
-
getSystemPrompt,
|
|
177
|
-
getUserContext,
|
|
178
164
|
getZipCacheKnownMarketplacesPath,
|
|
179
165
|
getZipCacheMarketplacesDir,
|
|
180
166
|
getZipCachePluginsDir,
|
|
181
167
|
gracefulShutdown,
|
|
182
168
|
gracefulShutdownSync,
|
|
183
|
-
handleOrphanedPermission,
|
|
184
169
|
hasCommandsInQueue,
|
|
185
170
|
hasPermissionsToUseTool,
|
|
186
171
|
headlessProfilerCheckpoint,
|
|
@@ -188,7 +173,6 @@ import {
|
|
|
188
173
|
hydrateFromCCRv2InternalEvents,
|
|
189
174
|
hydrateRemoteSession,
|
|
190
175
|
init_AsyncHookRegistry,
|
|
191
|
-
init_Shell,
|
|
192
176
|
init_abortController,
|
|
193
177
|
init_agentToolUtils,
|
|
194
178
|
init_applySettingsChange,
|
|
@@ -197,24 +181,18 @@ import {
|
|
|
197
181
|
init_autonomyRuns,
|
|
198
182
|
init_bridgeStatusUtil,
|
|
199
183
|
init_changeDetector,
|
|
200
|
-
init_claude,
|
|
201
184
|
init_claudeAiLimits,
|
|
202
185
|
init_client,
|
|
203
186
|
init_combinedAbortSignal,
|
|
204
187
|
init_commandLifecycle,
|
|
205
188
|
init_commands1 as init_commands,
|
|
206
|
-
init_config
|
|
207
|
-
init_context,
|
|
189
|
+
init_config,
|
|
208
190
|
init_conversationRecovery,
|
|
209
|
-
init_coordinatorMode,
|
|
210
|
-
init_cost_tracker,
|
|
211
191
|
init_effort,
|
|
212
192
|
init_elicitationHandler,
|
|
213
|
-
init_errors as init_errors2,
|
|
214
193
|
init_extractMemories,
|
|
215
194
|
init_fileHistory,
|
|
216
195
|
init_filesApi,
|
|
217
|
-
init_filesystem,
|
|
218
196
|
init_forkedAgent,
|
|
219
197
|
init_framework,
|
|
220
198
|
init_generators,
|
|
@@ -222,13 +200,10 @@ import {
|
|
|
222
200
|
init_grove,
|
|
223
201
|
init_headlessProfiler,
|
|
224
202
|
init_hookEvents,
|
|
225
|
-
init_hookHelpers,
|
|
226
203
|
init_hooks1 as init_hooks,
|
|
227
204
|
init_ids,
|
|
228
|
-
init_last,
|
|
229
205
|
init_loadAgentsDir,
|
|
230
206
|
init_marketplaceManager,
|
|
231
|
-
init_memdir,
|
|
232
207
|
init_messageQueueManager,
|
|
233
208
|
init_messages1 as init_messages,
|
|
234
209
|
init_modelOptions,
|
|
@@ -242,8 +217,6 @@ import {
|
|
|
242
217
|
init_product,
|
|
243
218
|
init_prompt1 as init_prompt9,
|
|
244
219
|
init_promptSuggestion,
|
|
245
|
-
init_prompts1 as init_prompts,
|
|
246
|
-
init_query,
|
|
247
220
|
init_queryHelpers,
|
|
248
221
|
init_queryProfiler,
|
|
249
222
|
init_reject,
|
|
@@ -252,21 +225,18 @@ import {
|
|
|
252
225
|
init_sdkEventQueue,
|
|
253
226
|
init_sessionStart,
|
|
254
227
|
init_sessionStorage,
|
|
255
|
-
init_snipCompact,
|
|
256
|
-
init_snipProjection,
|
|
257
228
|
init_stopTask,
|
|
258
|
-
init_systemPrompt,
|
|
259
|
-
init_systemPromptType,
|
|
260
229
|
init_teammateMailbox,
|
|
261
230
|
init_thinking,
|
|
262
231
|
init_tools,
|
|
263
|
-
|
|
232
|
+
init_types2,
|
|
264
233
|
init_uniqBy,
|
|
265
234
|
init_utils,
|
|
266
235
|
init_uuid,
|
|
267
236
|
init_vscodeSdkMcp,
|
|
268
237
|
init_zipCache,
|
|
269
238
|
installOAuthTokens,
|
|
239
|
+
isAutoModeGateEnabled,
|
|
270
240
|
isBackgroundTask,
|
|
271
241
|
isBuiltInAgent,
|
|
272
242
|
isBypassPermissionsModeDisabled,
|
|
@@ -275,15 +245,11 @@ import {
|
|
|
275
245
|
isPluginZipCacheEnabled,
|
|
276
246
|
isPolicyAllowed,
|
|
277
247
|
isQualifiedForGrove,
|
|
278
|
-
isResultSuccessful,
|
|
279
|
-
isScratchpadEnabled,
|
|
280
248
|
isShutdownApproved,
|
|
281
249
|
isShuttingDown,
|
|
282
|
-
last_default,
|
|
283
250
|
loadAllPluginsCacheOnly,
|
|
284
251
|
loadConversationForResume,
|
|
285
252
|
loadKnownMarketplacesConfigSafe,
|
|
286
|
-
loadMemoryPrompt,
|
|
287
253
|
logHeadlessProfilerTurn,
|
|
288
254
|
logQueryProfileReport,
|
|
289
255
|
logSuggestionOutcome,
|
|
@@ -293,20 +259,17 @@ import {
|
|
|
293
259
|
modelSupportsAdaptiveThinking,
|
|
294
260
|
modelSupportsEffort,
|
|
295
261
|
modelSupportsMaxEffort,
|
|
296
|
-
normalizeMessage,
|
|
297
262
|
notifyCommandLifecycle,
|
|
298
263
|
parseAgentsFromJson,
|
|
299
264
|
peek,
|
|
300
265
|
performMCPOAuthFlow,
|
|
301
266
|
processSessionStartHooks,
|
|
302
267
|
processSetupHooks,
|
|
303
|
-
query,
|
|
304
268
|
readUnreadMessages,
|
|
305
269
|
reconnectMcpServerImpl,
|
|
306
|
-
|
|
270
|
+
recordAttributionSnapshot,
|
|
307
271
|
registerHookEventHandler,
|
|
308
272
|
registerSeedMarketplaces,
|
|
309
|
-
registerStructuredOutputEnforcement,
|
|
310
273
|
reject_default,
|
|
311
274
|
resetSessionFilePointer,
|
|
312
275
|
resolveAgentTools,
|
|
@@ -317,16 +280,13 @@ import {
|
|
|
317
280
|
runElicitationResultHooks,
|
|
318
281
|
saveAgentSetting,
|
|
319
282
|
saveAiGeneratedTitle,
|
|
320
|
-
saveMode,
|
|
321
283
|
setCommandLifecycleListener,
|
|
322
|
-
setCwd,
|
|
323
284
|
setInternalEventReader,
|
|
324
285
|
setInternalEventWriter,
|
|
325
286
|
setMcpServerEnabled,
|
|
326
287
|
settingsChangeDetector,
|
|
327
288
|
setupSdkMcpClients,
|
|
328
289
|
setupVscodeSdkMcp,
|
|
329
|
-
shouldEnableThinkingByDefault,
|
|
330
290
|
startQueryProfile,
|
|
331
291
|
statusListeners,
|
|
332
292
|
stopTask,
|
|
@@ -335,14 +295,31 @@ import {
|
|
|
335
295
|
transitionPermissionMode,
|
|
336
296
|
tryGenerateSuggestion,
|
|
337
297
|
uniqBy_default,
|
|
338
|
-
updateUsage,
|
|
339
298
|
validateUuid,
|
|
340
299
|
waitForRemoteManagedSettingsToLoad
|
|
341
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-vym5zrn6.js";
|
|
342
301
|
import"./chunk-j7g5prq1.js";
|
|
302
|
+
import"./chunk-pqrb30bj.js";
|
|
303
|
+
import"./chunk-et824jj8.js";
|
|
304
|
+
import"./chunk-gcpc6b2z.js";
|
|
305
|
+
import"./chunk-dj0c74sd.js";
|
|
306
|
+
import"./chunk-7cpxexw0.js";
|
|
307
|
+
import"./chunk-2gzv8nrw.js";
|
|
308
|
+
import"./chunk-ehtwnxpg.js";
|
|
309
|
+
import"./chunk-172aq1cm.js";
|
|
310
|
+
import {
|
|
311
|
+
incrementPromptCount,
|
|
312
|
+
init_commitAttribution
|
|
313
|
+
} from "./chunk-5p3bwhcw.js";
|
|
314
|
+
import {
|
|
315
|
+
init_tasks,
|
|
316
|
+
init_teamHelpers,
|
|
317
|
+
removeTeammateFromTeamFile,
|
|
318
|
+
unassignTeammateTasks
|
|
319
|
+
} from "./chunk-bxmc7435.js";
|
|
320
|
+
import"./chunk-3tnabt1t.js";
|
|
343
321
|
import {
|
|
344
322
|
EMPTY_USAGE,
|
|
345
|
-
asSystemPrompt,
|
|
346
323
|
exports_proactive,
|
|
347
324
|
getSessionIngressAuthToken,
|
|
348
325
|
getSessionState,
|
|
@@ -356,57 +333,39 @@ import {
|
|
|
356
333
|
setPermissionModeChangedListener,
|
|
357
334
|
setSessionMetadataChangedListener,
|
|
358
335
|
setSessionStateChangedListener
|
|
359
|
-
} from "./chunk-
|
|
360
|
-
import"./chunk-
|
|
361
|
-
import"./chunk-
|
|
362
|
-
import"./chunk-ahq40vpt.js";
|
|
363
|
-
import"./chunk-dj0c74sd.js";
|
|
364
|
-
import"./chunk-et824jj8.js";
|
|
365
|
-
import"./chunk-7cpxexw0.js";
|
|
366
|
-
import"./chunk-xstgv88m.js";
|
|
367
|
-
import"./chunk-8fvbvp8b.js";
|
|
368
|
-
import"./chunk-2gzv8nrw.js";
|
|
369
|
-
import"./chunk-ehtwnxpg.js";
|
|
370
|
-
import {
|
|
371
|
-
init_commitAttribution
|
|
372
|
-
} from "./chunk-h8mre2wt.js";
|
|
336
|
+
} from "./chunk-9ggwn844.js";
|
|
337
|
+
import"./chunk-496449vy.js";
|
|
338
|
+
import"./chunk-cgfdkzhb.js";
|
|
373
339
|
import"./chunk-x6pa9me9.js";
|
|
374
340
|
import"./chunk-2f6hs25r.js";
|
|
375
|
-
import
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
removeTeammateFromTeamFile,
|
|
379
|
-
unassignTeammateTasks
|
|
380
|
-
} from "./chunk-wmxdjz06.js";
|
|
341
|
+
import"./chunk-hh6kgtq5.js";
|
|
342
|
+
import"./chunk-cnfzmqr8.js";
|
|
343
|
+
import"./chunk-9663bsk0.js";
|
|
381
344
|
import {
|
|
382
345
|
init_pluginIdentifier,
|
|
383
346
|
parsePluginIdentifier
|
|
384
|
-
} from "./chunk-
|
|
385
|
-
import"./chunk-
|
|
386
|
-
import"./chunk-
|
|
387
|
-
import"./chunk-677p38pg.js";
|
|
388
|
-
import"./chunk-41rte42b.js";
|
|
347
|
+
} from "./chunk-wvs8wv8t.js";
|
|
348
|
+
import"./chunk-hnms0snx.js";
|
|
349
|
+
import"./chunk-s5pnejsn.js";
|
|
389
350
|
import"./chunk-dg8c6j5q.js";
|
|
390
|
-
import"./chunk-
|
|
351
|
+
import"./chunk-x6cjkxqe.js";
|
|
391
352
|
import {
|
|
392
353
|
READ_FILE_STATE_CACHE_SIZE,
|
|
393
|
-
cloneFileStateCache,
|
|
394
354
|
createFileStateCacheWithSizeLimit,
|
|
395
355
|
init_fileStateCache,
|
|
396
356
|
mergeFileStateCaches
|
|
397
|
-
} from "./chunk-
|
|
398
|
-
import"./chunk-
|
|
399
|
-
import"./chunk-
|
|
400
|
-
import"./chunk-pgjmgh51.js";
|
|
357
|
+
} from "./chunk-qzp51m93.js";
|
|
358
|
+
import"./chunk-87ddk39d.js";
|
|
359
|
+
import"./chunk-j74ctwq9.js";
|
|
401
360
|
import"./chunk-pdkfgve3.js";
|
|
402
|
-
import"./chunk-
|
|
403
|
-
import"./chunk-
|
|
361
|
+
import"./chunk-a97kj439.js";
|
|
362
|
+
import"./chunk-9qj9t1g4.js";
|
|
363
|
+
import"./chunk-kbbjfeb8.js";
|
|
404
364
|
import"./chunk-t4kcvmes.js";
|
|
405
|
-
import"./chunk-
|
|
365
|
+
import"./chunk-wzzaxwej.js";
|
|
406
366
|
import"./chunk-dx4aw2jf.js";
|
|
407
367
|
import {
|
|
408
368
|
SHELL_TOOL_NAMES,
|
|
409
|
-
SYNTHETIC_OUTPUT_TOOL_NAME,
|
|
410
369
|
createSyntheticOutputTool,
|
|
411
370
|
exports_prompt,
|
|
412
371
|
init_SyntheticOutputTool,
|
|
@@ -422,26 +381,23 @@ import {
|
|
|
422
381
|
init_prompt9 as init_prompt8,
|
|
423
382
|
init_shellToolUtils,
|
|
424
383
|
toolMatchesName
|
|
425
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-ennzq1s5.js";
|
|
426
385
|
import"./chunk-14ya36qs.js";
|
|
427
386
|
import"./chunk-edqtm6y0.js";
|
|
428
|
-
import
|
|
429
|
-
getBridgeAccessToken,
|
|
430
|
-
getBridgeBaseUrl,
|
|
431
|
-
init_bridgeConfig
|
|
432
|
-
} from "./chunk-6fp3tvak.js";
|
|
387
|
+
import"./chunk-76g1m8sa.js";
|
|
433
388
|
import"./chunk-4vbza3s0.js";
|
|
434
|
-
import"./chunk-
|
|
435
|
-
import"./chunk-
|
|
389
|
+
import"./chunk-v21ssxkp.js";
|
|
390
|
+
import"./chunk-sczmmmvj.js";
|
|
391
|
+
import"./chunk-xcxcysx3.js";
|
|
436
392
|
import"./chunk-4jm600zv.js";
|
|
437
|
-
import"./chunk-
|
|
393
|
+
import"./chunk-egkwv0bp.js";
|
|
438
394
|
import"./chunk-mh90mtzg.js";
|
|
439
|
-
import"./chunk-
|
|
440
|
-
import"./chunk-
|
|
441
|
-
import"./chunk-
|
|
395
|
+
import"./chunk-tdkwcv57.js";
|
|
396
|
+
import"./chunk-wdn3pb9r.js";
|
|
397
|
+
import"./chunk-0s2qjxt0.js";
|
|
442
398
|
import"./chunk-0k1kkyw8.js";
|
|
443
|
-
import"./chunk-
|
|
444
|
-
import"./chunk-
|
|
399
|
+
import"./chunk-6d9njm1w.js";
|
|
400
|
+
import"./chunk-2dtsff0m.js";
|
|
445
401
|
import"./chunk-2w8qb2c2.js";
|
|
446
402
|
import"./chunk-26jcng1n.js";
|
|
447
403
|
import {
|
|
@@ -450,10 +406,10 @@ import {
|
|
|
450
406
|
init_types
|
|
451
407
|
} from "./chunk-h6hgwf7t.js";
|
|
452
408
|
import"./chunk-sq54cby2.js";
|
|
453
|
-
import"./chunk-
|
|
454
|
-
import"./chunk-
|
|
409
|
+
import"./chunk-m7qa1fqb.js";
|
|
410
|
+
import"./chunk-1xdybmyp.js";
|
|
455
411
|
import"./chunk-8ye7m55r.js";
|
|
456
|
-
import"./chunk-
|
|
412
|
+
import"./chunk-rasdgp8g.js";
|
|
457
413
|
import"./chunk-nvce80tx.js";
|
|
458
414
|
import {
|
|
459
415
|
AwsAuthStatusManager,
|
|
@@ -466,16 +422,13 @@ import {
|
|
|
466
422
|
getDefaultMainLoopModel,
|
|
467
423
|
getFastModeState,
|
|
468
424
|
getFeatureValue_CACHED_MAY_BE_STALE,
|
|
469
|
-
getGlobalConfig,
|
|
470
425
|
getMainLoopModel,
|
|
471
426
|
getMcpPrefix,
|
|
472
427
|
getSettingsWithSources,
|
|
473
428
|
getSettings_DEPRECATED,
|
|
474
|
-
hasAutoMemPathOverride,
|
|
475
429
|
init_auth,
|
|
476
430
|
init_awsAuthStatusManager,
|
|
477
431
|
init_betas1 as init_betas,
|
|
478
|
-
init_config1 as init_config,
|
|
479
432
|
init_fastMode,
|
|
480
433
|
init_growthbook,
|
|
481
434
|
init_mcpStringUtils,
|
|
@@ -497,7 +450,7 @@ import {
|
|
|
497
450
|
modelSupportsAutoMode,
|
|
498
451
|
parseUserSpecifiedModel,
|
|
499
452
|
runWithWorkload
|
|
500
|
-
} from "./chunk-
|
|
453
|
+
} from "./chunk-5thf5z45.js";
|
|
501
454
|
import {
|
|
502
455
|
init_json,
|
|
503
456
|
safeParseJSON
|
|
@@ -505,9 +458,7 @@ import {
|
|
|
505
458
|
import {
|
|
506
459
|
expandPath,
|
|
507
460
|
init_path
|
|
508
|
-
} from "./chunk-
|
|
509
|
-
import"./chunk-00e8e1k5.js";
|
|
510
|
-
import"./chunk-4bvckeaj.js";
|
|
461
|
+
} from "./chunk-9dwdn2sk.js";
|
|
511
462
|
import {
|
|
512
463
|
hasActiveInProcessTeammates,
|
|
513
464
|
hasWorkingInProcessTeammates,
|
|
@@ -517,32 +468,27 @@ import {
|
|
|
517
468
|
uniq,
|
|
518
469
|
waitForTeammatesToBecomeIdle
|
|
519
470
|
} from "./chunk-zwarn9h7.js";
|
|
471
|
+
import"./chunk-00e8e1k5.js";
|
|
472
|
+
import"./chunk-rzrm7j9x.js";
|
|
473
|
+
import"./chunk-4bvckeaj.js";
|
|
520
474
|
import"./chunk-jakx4th4.js";
|
|
521
475
|
import"./chunk-pe9b769s.js";
|
|
522
|
-
import"./chunk-
|
|
523
|
-
import {
|
|
524
|
-
init_lazySchema,
|
|
525
|
-
lazySchema
|
|
526
|
-
} from "./chunk-64c1avct.js";
|
|
527
|
-
import"./chunk-nz9rqw9y.js";
|
|
476
|
+
import"./chunk-64c1avct.js";
|
|
528
477
|
import {
|
|
529
478
|
init_sleep,
|
|
530
479
|
sleep
|
|
531
480
|
} from "./chunk-8g5pe1gr.js";
|
|
532
481
|
import"./chunk-nq504fa3.js";
|
|
533
|
-
import"./chunk-
|
|
534
|
-
import
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
import {
|
|
538
|
-
exports_external
|
|
539
|
-
} from "./chunk-p26t5d5e.js";
|
|
482
|
+
import"./chunk-8v8n8gxv.js";
|
|
483
|
+
import"./chunk-qxp3d963.js";
|
|
484
|
+
import"./chunk-6dpcm4za.js";
|
|
485
|
+
import"./chunk-p26t5d5e.js";
|
|
540
486
|
import"./chunk-hs71mwbj.js";
|
|
541
487
|
import"./chunk-3c25bcsw.js";
|
|
542
488
|
import"./chunk-j9zpgw9b.js";
|
|
543
489
|
import"./chunk-xhesahm0.js";
|
|
544
490
|
import"./chunk-rh5a2rg9.js";
|
|
545
|
-
import"./chunk-
|
|
491
|
+
import"./chunk-npgyhaqc.js";
|
|
546
492
|
import"./chunk-6ws6m83v.js";
|
|
547
493
|
import"./chunk-a4wjqc9g.js";
|
|
548
494
|
import"./chunk-0f6syxra.js";
|
|
@@ -550,35 +496,31 @@ import"./chunk-4f8eq6n2.js";
|
|
|
550
496
|
import"./chunk-v9smspw2.js";
|
|
551
497
|
import"./chunk-v1kzp02e.js";
|
|
552
498
|
import"./chunk-p2816w9z.js";
|
|
553
|
-
import"./chunk-
|
|
499
|
+
import"./chunk-5e4sk6wr.js";
|
|
554
500
|
import"./chunk-crmjpsqe.js";
|
|
555
|
-
import
|
|
556
|
-
init_strip_ansi,
|
|
557
|
-
stripAnsi
|
|
558
|
-
} from "./chunk-m2epey0s.js";
|
|
501
|
+
import"./chunk-zyhpq0w1.js";
|
|
559
502
|
import"./chunk-64k6ybmm.js";
|
|
560
503
|
import"./chunk-qr5vq8ys.js";
|
|
561
504
|
import {
|
|
562
505
|
init_analytics,
|
|
563
506
|
logEvent
|
|
564
|
-
} from "./chunk-
|
|
507
|
+
} from "./chunk-f2mhrmww.js";
|
|
565
508
|
import"./chunk-kenv28g4.js";
|
|
566
509
|
import"./chunk-nbq5dw92.js";
|
|
567
|
-
import"./chunk-
|
|
510
|
+
import"./chunk-ckq5d8ev.js";
|
|
568
511
|
import {
|
|
569
512
|
init_diagLogs,
|
|
570
513
|
logForDiagnosticsNoPII,
|
|
571
514
|
withDiagnosticsTiming
|
|
572
|
-
} from "./chunk-
|
|
515
|
+
} from "./chunk-vacje5g9.js";
|
|
573
516
|
import"./chunk-nrcew0nb.js";
|
|
574
517
|
import"./chunk-gagn0nrq.js";
|
|
575
|
-
import"./chunk-
|
|
518
|
+
import"./chunk-qwtfyr6d.js";
|
|
576
519
|
import {
|
|
577
520
|
getCwd,
|
|
578
521
|
init_cwd
|
|
579
|
-
} from "./chunk-
|
|
522
|
+
} from "./chunk-ftfz2eh3.js";
|
|
580
523
|
import {
|
|
581
|
-
LOCAL_COMMAND_STDERR_TAG,
|
|
582
524
|
LOCAL_COMMAND_STDOUT_TAG,
|
|
583
525
|
TASK_NOTIFICATION_TAG,
|
|
584
526
|
TEAMMATE_MESSAGE_TAG,
|
|
@@ -619,10 +561,7 @@ import {
|
|
|
619
561
|
getFlagSettingsInline,
|
|
620
562
|
getInitJsonSchema,
|
|
621
563
|
getMainThreadAgentType,
|
|
622
|
-
getModelUsage,
|
|
623
564
|
getSessionId,
|
|
624
|
-
getTotalAPIDuration,
|
|
625
|
-
getTotalCostUSD,
|
|
626
565
|
init_state,
|
|
627
566
|
isSessionPersistenceDisabled,
|
|
628
567
|
registerHookCallbacks,
|
|
@@ -637,7 +576,6 @@ import {
|
|
|
637
576
|
import"./chunk-50dgek10.js";
|
|
638
577
|
import"./chunk-7wm5s02e.js";
|
|
639
578
|
import {
|
|
640
|
-
getClaudeConfigHomeDir,
|
|
641
579
|
init_envUtils,
|
|
642
580
|
isBareMode,
|
|
643
581
|
isEnvDefinedFalsy,
|
|
@@ -645,10 +583,7 @@ import {
|
|
|
645
583
|
} from "./chunk-hxhwzgnn.js";
|
|
646
584
|
import"./chunk-qx8z601m.js";
|
|
647
585
|
import"./chunk-cgm6758j.js";
|
|
648
|
-
import
|
|
649
|
-
axios_default,
|
|
650
|
-
init_axios
|
|
651
|
-
} from "./chunk-ncpa00h9.js";
|
|
586
|
+
import"./chunk-ncpa00h9.js";
|
|
652
587
|
import"./chunk-8pn8tvgg.js";
|
|
653
588
|
import"./chunk-netzwgv1.js";
|
|
654
589
|
import {
|
|
@@ -950,918 +885,6 @@ init_channelAllowlist();
|
|
|
950
885
|
init_pluginIdentifier();
|
|
951
886
|
init_uuid();
|
|
952
887
|
init_generators();
|
|
953
|
-
|
|
954
|
-
// src/QueryEngine.ts
|
|
955
|
-
init_last();
|
|
956
|
-
init_state();
|
|
957
|
-
init_claude();
|
|
958
|
-
init_src();
|
|
959
|
-
init_strip_ansi();
|
|
960
|
-
init_commands();
|
|
961
|
-
init_xml();
|
|
962
|
-
init_cost_tracker();
|
|
963
|
-
init_memdir();
|
|
964
|
-
init_paths();
|
|
965
|
-
init_query();
|
|
966
|
-
init_errors2();
|
|
967
|
-
init_Tool();
|
|
968
|
-
init_loadAgentsDir();
|
|
969
|
-
init_SyntheticOutputTool();
|
|
970
|
-
init_abortController();
|
|
971
|
-
init_config();
|
|
972
|
-
init_cwd();
|
|
973
|
-
init_envUtils();
|
|
974
|
-
init_fastMode();
|
|
975
|
-
init_fileHistory();
|
|
976
|
-
init_fileStateCache();
|
|
977
|
-
init_headlessProfiler();
|
|
978
|
-
init_hookHelpers();
|
|
979
|
-
init_log();
|
|
980
|
-
init_messages();
|
|
981
|
-
init_model();
|
|
982
|
-
init_pluginLoader();
|
|
983
|
-
import { randomUUID } from "crypto";
|
|
984
|
-
|
|
985
|
-
// src/utils/queryContext.ts
|
|
986
|
-
init_prompts();
|
|
987
|
-
init_context();
|
|
988
|
-
init_abortController();
|
|
989
|
-
init_model();
|
|
990
|
-
init_systemPromptType();
|
|
991
|
-
init_thinking();
|
|
992
|
-
async function fetchSystemPromptParts({
|
|
993
|
-
tools,
|
|
994
|
-
mainLoopModel,
|
|
995
|
-
additionalWorkingDirectories,
|
|
996
|
-
mcpClients,
|
|
997
|
-
customSystemPrompt
|
|
998
|
-
}) {
|
|
999
|
-
const [defaultSystemPrompt, userContext, systemContext] = await Promise.all([
|
|
1000
|
-
customSystemPrompt !== undefined ? Promise.resolve([]) : getSystemPrompt(tools, mainLoopModel, additionalWorkingDirectories, mcpClients),
|
|
1001
|
-
getUserContext(),
|
|
1002
|
-
customSystemPrompt !== undefined ? Promise.resolve({}) : getSystemContext()
|
|
1003
|
-
]);
|
|
1004
|
-
return { defaultSystemPrompt, userContext, systemContext };
|
|
1005
|
-
}
|
|
1006
|
-
async function buildSideQuestionFallbackParams({
|
|
1007
|
-
tools,
|
|
1008
|
-
commands,
|
|
1009
|
-
mcpClients,
|
|
1010
|
-
messages,
|
|
1011
|
-
readFileState,
|
|
1012
|
-
getAppState,
|
|
1013
|
-
setAppState,
|
|
1014
|
-
customSystemPrompt,
|
|
1015
|
-
appendSystemPrompt,
|
|
1016
|
-
thinkingConfig,
|
|
1017
|
-
agents
|
|
1018
|
-
}) {
|
|
1019
|
-
const mainLoopModel = getMainLoopModel();
|
|
1020
|
-
const appState = getAppState();
|
|
1021
|
-
const { defaultSystemPrompt, userContext, systemContext } = await fetchSystemPromptParts({
|
|
1022
|
-
tools,
|
|
1023
|
-
mainLoopModel,
|
|
1024
|
-
additionalWorkingDirectories: Array.from(appState.toolPermissionContext.additionalWorkingDirectories.keys()),
|
|
1025
|
-
mcpClients,
|
|
1026
|
-
customSystemPrompt
|
|
1027
|
-
});
|
|
1028
|
-
const systemPrompt = asSystemPrompt([
|
|
1029
|
-
...customSystemPrompt !== undefined ? [customSystemPrompt] : defaultSystemPrompt,
|
|
1030
|
-
...appendSystemPrompt ? [appendSystemPrompt] : []
|
|
1031
|
-
]);
|
|
1032
|
-
const last = messages.at(-1);
|
|
1033
|
-
const forkContextMessages = last?.type === "assistant" && last.message.stop_reason === null ? messages.slice(0, -1) : messages;
|
|
1034
|
-
const toolUseContext = {
|
|
1035
|
-
options: {
|
|
1036
|
-
commands,
|
|
1037
|
-
debug: false,
|
|
1038
|
-
mainLoopModel,
|
|
1039
|
-
tools,
|
|
1040
|
-
verbose: false,
|
|
1041
|
-
thinkingConfig: thinkingConfig ?? (shouldEnableThinkingByDefault() !== false ? { type: "adaptive" } : { type: "disabled" }),
|
|
1042
|
-
mcpClients,
|
|
1043
|
-
mcpResources: {},
|
|
1044
|
-
isNonInteractiveSession: true,
|
|
1045
|
-
agentDefinitions: { activeAgents: agents, allAgents: [] },
|
|
1046
|
-
customSystemPrompt,
|
|
1047
|
-
appendSystemPrompt
|
|
1048
|
-
},
|
|
1049
|
-
abortController: createAbortController(),
|
|
1050
|
-
readFileState,
|
|
1051
|
-
getAppState,
|
|
1052
|
-
setAppState,
|
|
1053
|
-
messages: forkContextMessages,
|
|
1054
|
-
setInProgressToolUseIDs: () => {},
|
|
1055
|
-
setResponseLength: () => {},
|
|
1056
|
-
updateFileHistoryState: () => {},
|
|
1057
|
-
updateAttributionState: () => {}
|
|
1058
|
-
};
|
|
1059
|
-
return {
|
|
1060
|
-
systemPrompt,
|
|
1061
|
-
userContext,
|
|
1062
|
-
systemContext,
|
|
1063
|
-
toolUseContext,
|
|
1064
|
-
forkContextMessages
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
// src/QueryEngine.ts
|
|
1069
|
-
init_Shell();
|
|
1070
|
-
init_sessionStorage();
|
|
1071
|
-
init_systemPrompt();
|
|
1072
|
-
init_systemTheme();
|
|
1073
|
-
init_thinking();
|
|
1074
|
-
init_mappers();
|
|
1075
|
-
init_filesystem();
|
|
1076
|
-
init_queryHelpers();
|
|
1077
|
-
var messageSelector = () => {
|
|
1078
|
-
try {
|
|
1079
|
-
return init_MessageSelector(), __toCommonJS(exports_MessageSelector);
|
|
1080
|
-
} catch {
|
|
1081
|
-
return null;
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
|
-
var getCoordinatorUserContext = (init_coordinatorMode(), __toCommonJS(exports_coordinatorMode)).getCoordinatorUserContext;
|
|
1085
|
-
var snipModule = (init_snipCompact(), __toCommonJS(exports_snipCompact));
|
|
1086
|
-
var snipProjection = (init_snipProjection(), __toCommonJS(exports_snipProjection));
|
|
1087
|
-
|
|
1088
|
-
class QueryEngine {
|
|
1089
|
-
config;
|
|
1090
|
-
mutableMessages;
|
|
1091
|
-
abortController;
|
|
1092
|
-
permissionDenials;
|
|
1093
|
-
totalUsage;
|
|
1094
|
-
hasHandledOrphanedPermission = false;
|
|
1095
|
-
readFileState;
|
|
1096
|
-
discoveredSkillNames = new Set;
|
|
1097
|
-
loadedNestedMemoryPaths = new Set;
|
|
1098
|
-
constructor(config) {
|
|
1099
|
-
this.config = config;
|
|
1100
|
-
this.mutableMessages = config.initialMessages ?? [];
|
|
1101
|
-
this.abortController = config.abortController ?? createAbortController();
|
|
1102
|
-
this.permissionDenials = [];
|
|
1103
|
-
this.readFileState = config.readFileCache;
|
|
1104
|
-
this.totalUsage = EMPTY_USAGE;
|
|
1105
|
-
}
|
|
1106
|
-
async* submitMessage(prompt, options) {
|
|
1107
|
-
const {
|
|
1108
|
-
cwd,
|
|
1109
|
-
commands,
|
|
1110
|
-
tools,
|
|
1111
|
-
mcpClients,
|
|
1112
|
-
verbose = false,
|
|
1113
|
-
thinkingConfig,
|
|
1114
|
-
maxTurns,
|
|
1115
|
-
maxBudgetUsd,
|
|
1116
|
-
taskBudget,
|
|
1117
|
-
canUseTool,
|
|
1118
|
-
customSystemPrompt,
|
|
1119
|
-
appendSystemPrompt,
|
|
1120
|
-
mainThreadAgentDefinition,
|
|
1121
|
-
userSpecifiedModel,
|
|
1122
|
-
fallbackModel,
|
|
1123
|
-
jsonSchema,
|
|
1124
|
-
getAppState,
|
|
1125
|
-
setAppState,
|
|
1126
|
-
replayUserMessages = false,
|
|
1127
|
-
includePartialMessages = false,
|
|
1128
|
-
agents = [],
|
|
1129
|
-
allowedAgentTypes,
|
|
1130
|
-
setSDKStatus,
|
|
1131
|
-
orphanedPermission
|
|
1132
|
-
} = this.config;
|
|
1133
|
-
this.discoveredSkillNames.clear();
|
|
1134
|
-
this.permissionDenials = [];
|
|
1135
|
-
setCwd(cwd);
|
|
1136
|
-
const persistSession = !isSessionPersistenceDisabled();
|
|
1137
|
-
const startTime = Date.now();
|
|
1138
|
-
const wrappedCanUseTool = async (tool, input, toolUseContext, assistantMessage, toolUseID, forceDecision) => {
|
|
1139
|
-
const result2 = await canUseTool(tool, input, toolUseContext, assistantMessage, toolUseID, forceDecision);
|
|
1140
|
-
if (result2.behavior !== "allow") {
|
|
1141
|
-
this.permissionDenials.push({
|
|
1142
|
-
type: "permission_denial",
|
|
1143
|
-
tool_name: sdkCompatToolName(tool.name),
|
|
1144
|
-
tool_use_id: toolUseID,
|
|
1145
|
-
tool_input: input
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
return result2;
|
|
1149
|
-
};
|
|
1150
|
-
const initialAppState = getAppState();
|
|
1151
|
-
const initialMainLoopModel = userSpecifiedModel ? parseUserSpecifiedModel(userSpecifiedModel) : getMainLoopModel();
|
|
1152
|
-
const initialThinkingConfig = thinkingConfig ? thinkingConfig : shouldEnableThinkingByDefault() !== false ? { type: "adaptive" } : { type: "disabled" };
|
|
1153
|
-
headlessProfilerCheckpoint("before_getSystemPrompt");
|
|
1154
|
-
const customPrompt = typeof customSystemPrompt === "string" ? customSystemPrompt : undefined;
|
|
1155
|
-
const customPromptForFetch = mainThreadAgentDefinition && isBuiltInAgent(mainThreadAgentDefinition) ? undefined : customPrompt;
|
|
1156
|
-
const {
|
|
1157
|
-
defaultSystemPrompt,
|
|
1158
|
-
userContext: baseUserContext,
|
|
1159
|
-
systemContext
|
|
1160
|
-
} = await fetchSystemPromptParts({
|
|
1161
|
-
tools,
|
|
1162
|
-
mainLoopModel: initialMainLoopModel,
|
|
1163
|
-
additionalWorkingDirectories: Array.from(initialAppState.toolPermissionContext.additionalWorkingDirectories.keys()),
|
|
1164
|
-
mcpClients,
|
|
1165
|
-
customSystemPrompt: customPromptForFetch
|
|
1166
|
-
});
|
|
1167
|
-
headlessProfilerCheckpoint("after_getSystemPrompt");
|
|
1168
|
-
const userContext = {
|
|
1169
|
-
...baseUserContext,
|
|
1170
|
-
...getCoordinatorUserContext(mcpClients, isScratchpadEnabled() ? getScratchpadDir() : undefined)
|
|
1171
|
-
};
|
|
1172
|
-
const memoryMechanicsPrompt = customPrompt !== undefined && hasAutoMemPathOverride() ? await loadMemoryPrompt() : null;
|
|
1173
|
-
const combinedAppendSystemPrompt = [
|
|
1174
|
-
...memoryMechanicsPrompt ? [memoryMechanicsPrompt] : [],
|
|
1175
|
-
...appendSystemPrompt ? [appendSystemPrompt] : []
|
|
1176
|
-
].join(`
|
|
1177
|
-
`) || undefined;
|
|
1178
|
-
const systemPrompt = buildEffectiveSystemPrompt({
|
|
1179
|
-
mainThreadAgentDefinition,
|
|
1180
|
-
toolUseContext: { options: { customSystemPrompt: customPrompt } },
|
|
1181
|
-
customSystemPrompt: customPrompt,
|
|
1182
|
-
defaultSystemPrompt,
|
|
1183
|
-
appendSystemPrompt: combinedAppendSystemPrompt
|
|
1184
|
-
});
|
|
1185
|
-
const hasStructuredOutputTool = tools.some((t) => toolMatchesName(t, SYNTHETIC_OUTPUT_TOOL_NAME));
|
|
1186
|
-
if (jsonSchema && hasStructuredOutputTool) {
|
|
1187
|
-
registerStructuredOutputEnforcement(setAppState, getSessionId());
|
|
1188
|
-
}
|
|
1189
|
-
let processUserInputContext = {
|
|
1190
|
-
messages: this.mutableMessages,
|
|
1191
|
-
setMessages: (fn) => {
|
|
1192
|
-
this.mutableMessages = fn(this.mutableMessages);
|
|
1193
|
-
},
|
|
1194
|
-
onChangeAPIKey: () => {},
|
|
1195
|
-
handleElicitation: this.config.handleElicitation,
|
|
1196
|
-
options: {
|
|
1197
|
-
commands,
|
|
1198
|
-
debug: false,
|
|
1199
|
-
tools,
|
|
1200
|
-
verbose,
|
|
1201
|
-
mainLoopModel: initialMainLoopModel,
|
|
1202
|
-
thinkingConfig: initialThinkingConfig,
|
|
1203
|
-
mcpClients,
|
|
1204
|
-
mcpResources: {},
|
|
1205
|
-
ideInstallationStatus: null,
|
|
1206
|
-
isNonInteractiveSession: true,
|
|
1207
|
-
customSystemPrompt,
|
|
1208
|
-
appendSystemPrompt,
|
|
1209
|
-
agentDefinitions: { activeAgents: agents, allAgents: [], ...allowedAgentTypes ? { allowedAgentTypes } : {} },
|
|
1210
|
-
theme: resolveThemeSetting(getGlobalConfig().theme),
|
|
1211
|
-
maxBudgetUsd
|
|
1212
|
-
},
|
|
1213
|
-
getAppState,
|
|
1214
|
-
setAppState,
|
|
1215
|
-
abortController: this.abortController,
|
|
1216
|
-
readFileState: this.readFileState,
|
|
1217
|
-
nestedMemoryAttachmentTriggers: new Set,
|
|
1218
|
-
loadedNestedMemoryPaths: this.loadedNestedMemoryPaths,
|
|
1219
|
-
dynamicSkillDirTriggers: new Set,
|
|
1220
|
-
discoveredSkillNames: this.discoveredSkillNames,
|
|
1221
|
-
setInProgressToolUseIDs: () => {},
|
|
1222
|
-
setResponseLength: () => {},
|
|
1223
|
-
updateFileHistoryState: (updater) => {
|
|
1224
|
-
setAppState((prev) => {
|
|
1225
|
-
const updated = updater(prev.fileHistory);
|
|
1226
|
-
if (updated === prev.fileHistory)
|
|
1227
|
-
return prev;
|
|
1228
|
-
return { ...prev, fileHistory: updated };
|
|
1229
|
-
});
|
|
1230
|
-
},
|
|
1231
|
-
updateAttributionState: (updater) => {
|
|
1232
|
-
setAppState((prev) => {
|
|
1233
|
-
const updated = updater(prev.attribution);
|
|
1234
|
-
if (updated === prev.attribution)
|
|
1235
|
-
return prev;
|
|
1236
|
-
return { ...prev, attribution: updated };
|
|
1237
|
-
});
|
|
1238
|
-
},
|
|
1239
|
-
setSDKStatus
|
|
1240
|
-
};
|
|
1241
|
-
if (orphanedPermission && !this.hasHandledOrphanedPermission) {
|
|
1242
|
-
this.hasHandledOrphanedPermission = true;
|
|
1243
|
-
for await (const message of handleOrphanedPermission(orphanedPermission, tools, this.mutableMessages, processUserInputContext)) {
|
|
1244
|
-
yield message;
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
const {
|
|
1248
|
-
messages: messagesFromUserInput,
|
|
1249
|
-
shouldQuery,
|
|
1250
|
-
allowedTools,
|
|
1251
|
-
model: modelFromUserInput,
|
|
1252
|
-
resultText
|
|
1253
|
-
} = await processUserInput({
|
|
1254
|
-
input: prompt,
|
|
1255
|
-
mode: "prompt",
|
|
1256
|
-
setToolJSX: () => {},
|
|
1257
|
-
context: {
|
|
1258
|
-
...processUserInputContext,
|
|
1259
|
-
messages: this.mutableMessages
|
|
1260
|
-
},
|
|
1261
|
-
messages: this.mutableMessages,
|
|
1262
|
-
uuid: options?.uuid,
|
|
1263
|
-
isMeta: options?.isMeta,
|
|
1264
|
-
querySource: "sdk"
|
|
1265
|
-
});
|
|
1266
|
-
this.mutableMessages.push(...messagesFromUserInput);
|
|
1267
|
-
const messages = [...this.mutableMessages];
|
|
1268
|
-
if (persistSession && messagesFromUserInput.length > 0) {
|
|
1269
|
-
const transcriptPromise = recordTranscript(messages);
|
|
1270
|
-
if (isBareMode()) {} else {
|
|
1271
|
-
await transcriptPromise;
|
|
1272
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1273
|
-
await flushSessionStorage();
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
const _selector = messageSelector();
|
|
1278
|
-
const replayableMessages = messagesFromUserInput.filter((msg) => msg.type === "user" && !msg.isMeta && !msg.toolUseResult && (_selector?.selectableUserMessagesFilter(msg) ?? true) || msg.type === "system" && msg.subtype === "compact_boundary");
|
|
1279
|
-
const messagesToAck = replayUserMessages ? replayableMessages : [];
|
|
1280
|
-
setAppState((prev) => ({
|
|
1281
|
-
...prev,
|
|
1282
|
-
toolPermissionContext: {
|
|
1283
|
-
...prev.toolPermissionContext,
|
|
1284
|
-
alwaysAllowRules: {
|
|
1285
|
-
...prev.toolPermissionContext.alwaysAllowRules,
|
|
1286
|
-
command: allowedTools
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
}));
|
|
1290
|
-
const mainLoopModel = modelFromUserInput ?? initialMainLoopModel;
|
|
1291
|
-
processUserInputContext = {
|
|
1292
|
-
messages,
|
|
1293
|
-
setMessages: () => {},
|
|
1294
|
-
onChangeAPIKey: () => {},
|
|
1295
|
-
handleElicitation: this.config.handleElicitation,
|
|
1296
|
-
options: {
|
|
1297
|
-
commands,
|
|
1298
|
-
debug: false,
|
|
1299
|
-
tools,
|
|
1300
|
-
verbose,
|
|
1301
|
-
mainLoopModel,
|
|
1302
|
-
thinkingConfig: initialThinkingConfig,
|
|
1303
|
-
mcpClients,
|
|
1304
|
-
mcpResources: {},
|
|
1305
|
-
ideInstallationStatus: null,
|
|
1306
|
-
isNonInteractiveSession: true,
|
|
1307
|
-
customSystemPrompt,
|
|
1308
|
-
appendSystemPrompt,
|
|
1309
|
-
theme: resolveThemeSetting(getGlobalConfig().theme),
|
|
1310
|
-
agentDefinitions: { activeAgents: agents, allAgents: [], ...allowedAgentTypes ? { allowedAgentTypes } : {} },
|
|
1311
|
-
maxBudgetUsd
|
|
1312
|
-
},
|
|
1313
|
-
getAppState,
|
|
1314
|
-
setAppState,
|
|
1315
|
-
abortController: this.abortController,
|
|
1316
|
-
readFileState: this.readFileState,
|
|
1317
|
-
nestedMemoryAttachmentTriggers: new Set,
|
|
1318
|
-
loadedNestedMemoryPaths: this.loadedNestedMemoryPaths,
|
|
1319
|
-
dynamicSkillDirTriggers: new Set,
|
|
1320
|
-
discoveredSkillNames: this.discoveredSkillNames,
|
|
1321
|
-
setInProgressToolUseIDs: () => {},
|
|
1322
|
-
setResponseLength: () => {},
|
|
1323
|
-
updateFileHistoryState: processUserInputContext.updateFileHistoryState,
|
|
1324
|
-
updateAttributionState: processUserInputContext.updateAttributionState,
|
|
1325
|
-
setSDKStatus
|
|
1326
|
-
};
|
|
1327
|
-
headlessProfilerCheckpoint("before_skills_plugins");
|
|
1328
|
-
const [skills, { enabled: enabledPlugins }] = await Promise.all([
|
|
1329
|
-
getSlashCommandToolSkills(getCwd()),
|
|
1330
|
-
loadAllPluginsCacheOnly()
|
|
1331
|
-
]);
|
|
1332
|
-
headlessProfilerCheckpoint("after_skills_plugins");
|
|
1333
|
-
yield buildSystemInitMessage({
|
|
1334
|
-
tools,
|
|
1335
|
-
mcpClients,
|
|
1336
|
-
model: mainLoopModel,
|
|
1337
|
-
permissionMode: initialAppState.toolPermissionContext.mode,
|
|
1338
|
-
commands,
|
|
1339
|
-
agents,
|
|
1340
|
-
skills,
|
|
1341
|
-
plugins: enabledPlugins,
|
|
1342
|
-
fastMode: initialAppState.fastMode
|
|
1343
|
-
});
|
|
1344
|
-
headlessProfilerCheckpoint("system_message_yielded");
|
|
1345
|
-
if (!shouldQuery) {
|
|
1346
|
-
for (const msg of messagesFromUserInput) {
|
|
1347
|
-
if (msg.type === "user" && typeof msg.message.content === "string" && (msg.message.content.includes(`<${LOCAL_COMMAND_STDOUT_TAG}>`) || msg.message.content.includes(`<${LOCAL_COMMAND_STDERR_TAG}>`) || msg.isCompactSummary)) {
|
|
1348
|
-
yield {
|
|
1349
|
-
type: "user",
|
|
1350
|
-
message: {
|
|
1351
|
-
...msg.message,
|
|
1352
|
-
content: stripAnsi(msg.message.content)
|
|
1353
|
-
},
|
|
1354
|
-
session_id: getSessionId(),
|
|
1355
|
-
parent_tool_use_id: null,
|
|
1356
|
-
uuid: msg.uuid,
|
|
1357
|
-
timestamp: msg.timestamp,
|
|
1358
|
-
isReplay: !msg.isCompactSummary,
|
|
1359
|
-
isSynthetic: msg.isMeta || msg.isVisibleInTranscriptOnly
|
|
1360
|
-
};
|
|
1361
|
-
}
|
|
1362
|
-
if (msg.type === "system" && msg.subtype === "local_command" && typeof msg.content === "string" && (msg.content.includes(`<${LOCAL_COMMAND_STDOUT_TAG}>`) || msg.content.includes(`<${LOCAL_COMMAND_STDERR_TAG}>`))) {
|
|
1363
|
-
yield localCommandOutputToSDKAssistantMessage(msg.content, msg.uuid);
|
|
1364
|
-
}
|
|
1365
|
-
if (msg.type === "system" && msg.subtype === "compact_boundary") {
|
|
1366
|
-
const compactMsg = msg;
|
|
1367
|
-
yield {
|
|
1368
|
-
type: "system",
|
|
1369
|
-
subtype: "compact_boundary",
|
|
1370
|
-
session_id: getSessionId(),
|
|
1371
|
-
uuid: msg.uuid,
|
|
1372
|
-
compact_metadata: toSDKCompactMetadata(compactMsg.compactMetadata)
|
|
1373
|
-
};
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
if (persistSession) {
|
|
1377
|
-
await recordTranscript(messages);
|
|
1378
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1379
|
-
await flushSessionStorage();
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
yield {
|
|
1383
|
-
type: "result",
|
|
1384
|
-
subtype: "success",
|
|
1385
|
-
is_error: false,
|
|
1386
|
-
duration_ms: Date.now() - startTime,
|
|
1387
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1388
|
-
num_turns: messages.length - 1,
|
|
1389
|
-
result: resultText ?? "",
|
|
1390
|
-
stop_reason: null,
|
|
1391
|
-
session_id: getSessionId(),
|
|
1392
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1393
|
-
usage: this.totalUsage,
|
|
1394
|
-
modelUsage: getModelUsage(),
|
|
1395
|
-
permission_denials: this.permissionDenials,
|
|
1396
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1397
|
-
uuid: randomUUID()
|
|
1398
|
-
};
|
|
1399
|
-
return;
|
|
1400
|
-
}
|
|
1401
|
-
if (fileHistoryEnabled() && persistSession) {
|
|
1402
|
-
const _sel = messageSelector();
|
|
1403
|
-
const _filter = _sel?.selectableUserMessagesFilter ?? ((_msg) => true);
|
|
1404
|
-
messagesFromUserInput.filter(_filter).forEach((message) => {
|
|
1405
|
-
fileHistoryMakeSnapshot((updater) => {
|
|
1406
|
-
setAppState((prev) => ({
|
|
1407
|
-
...prev,
|
|
1408
|
-
fileHistory: updater(prev.fileHistory)
|
|
1409
|
-
}));
|
|
1410
|
-
}, message.uuid);
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
let currentMessageUsage = EMPTY_USAGE;
|
|
1414
|
-
let turnCount = 1;
|
|
1415
|
-
let hasAcknowledgedInitialMessages = false;
|
|
1416
|
-
let structuredOutputFromTool;
|
|
1417
|
-
let lastStopReason = null;
|
|
1418
|
-
const errorLogWatermark = getInMemoryErrors().at(-1);
|
|
1419
|
-
const initialStructuredOutputCalls = jsonSchema ? countToolCalls(this.mutableMessages, SYNTHETIC_OUTPUT_TOOL_NAME) : 0;
|
|
1420
|
-
for await (const message of query({
|
|
1421
|
-
messages,
|
|
1422
|
-
systemPrompt,
|
|
1423
|
-
userContext,
|
|
1424
|
-
systemContext,
|
|
1425
|
-
canUseTool: wrappedCanUseTool,
|
|
1426
|
-
toolUseContext: processUserInputContext,
|
|
1427
|
-
fallbackModel,
|
|
1428
|
-
querySource: "sdk",
|
|
1429
|
-
maxTurns,
|
|
1430
|
-
taskBudget
|
|
1431
|
-
})) {
|
|
1432
|
-
if (message.type === "assistant" || message.type === "user" || message.type === "system" && message.subtype === "compact_boundary") {
|
|
1433
|
-
if (persistSession && message.type === "system" && message.subtype === "compact_boundary") {
|
|
1434
|
-
const compactMsg = message;
|
|
1435
|
-
const tailUuid = compactMsg.compactMetadata?.preservedSegment?.tailUuid;
|
|
1436
|
-
if (tailUuid) {
|
|
1437
|
-
const tailIdx = this.mutableMessages.findLastIndex((m) => m.uuid === tailUuid);
|
|
1438
|
-
if (tailIdx !== -1) {
|
|
1439
|
-
await recordTranscript(this.mutableMessages.slice(0, tailIdx + 1));
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
messages.push(message);
|
|
1444
|
-
if (persistSession) {
|
|
1445
|
-
if (message.type === "assistant") {
|
|
1446
|
-
recordTranscript(messages);
|
|
1447
|
-
} else {
|
|
1448
|
-
await recordTranscript(messages);
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
if (!hasAcknowledgedInitialMessages && messagesToAck.length > 0) {
|
|
1452
|
-
hasAcknowledgedInitialMessages = true;
|
|
1453
|
-
for (const msgToAck of messagesToAck) {
|
|
1454
|
-
if (msgToAck.type === "user") {
|
|
1455
|
-
yield {
|
|
1456
|
-
type: "user",
|
|
1457
|
-
message: msgToAck.message,
|
|
1458
|
-
session_id: getSessionId(),
|
|
1459
|
-
parent_tool_use_id: null,
|
|
1460
|
-
uuid: msgToAck.uuid,
|
|
1461
|
-
timestamp: msgToAck.timestamp,
|
|
1462
|
-
isReplay: true
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
if (message.type === "user") {
|
|
1469
|
-
turnCount++;
|
|
1470
|
-
}
|
|
1471
|
-
switch (message.type) {
|
|
1472
|
-
case "tombstone":
|
|
1473
|
-
break;
|
|
1474
|
-
case "assistant": {
|
|
1475
|
-
const msg = message;
|
|
1476
|
-
const stopReason = msg.message?.stop_reason;
|
|
1477
|
-
if (stopReason != null) {
|
|
1478
|
-
lastStopReason = stopReason;
|
|
1479
|
-
}
|
|
1480
|
-
this.mutableMessages.push(msg);
|
|
1481
|
-
yield* normalizeMessage(msg);
|
|
1482
|
-
break;
|
|
1483
|
-
}
|
|
1484
|
-
case "progress": {
|
|
1485
|
-
const msg = message;
|
|
1486
|
-
this.mutableMessages.push(msg);
|
|
1487
|
-
if (persistSession) {
|
|
1488
|
-
messages.push(msg);
|
|
1489
|
-
recordTranscript(messages);
|
|
1490
|
-
}
|
|
1491
|
-
yield* normalizeMessage(msg);
|
|
1492
|
-
break;
|
|
1493
|
-
}
|
|
1494
|
-
case "user": {
|
|
1495
|
-
const msg = message;
|
|
1496
|
-
this.mutableMessages.push(msg);
|
|
1497
|
-
yield* normalizeMessage(msg);
|
|
1498
|
-
break;
|
|
1499
|
-
}
|
|
1500
|
-
case "stream_event": {
|
|
1501
|
-
const event = message.event;
|
|
1502
|
-
if (event.type === "message_start") {
|
|
1503
|
-
currentMessageUsage = EMPTY_USAGE;
|
|
1504
|
-
const eventMessage = event.message;
|
|
1505
|
-
currentMessageUsage = updateUsage(currentMessageUsage, eventMessage.usage);
|
|
1506
|
-
}
|
|
1507
|
-
if (event.type === "message_delta") {
|
|
1508
|
-
currentMessageUsage = updateUsage(currentMessageUsage, event.usage);
|
|
1509
|
-
const delta = event.delta;
|
|
1510
|
-
if (delta.stop_reason != null) {
|
|
1511
|
-
lastStopReason = delta.stop_reason;
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
if (event.type === "message_stop") {
|
|
1515
|
-
this.totalUsage = accumulateUsage(this.totalUsage, currentMessageUsage);
|
|
1516
|
-
}
|
|
1517
|
-
yield {
|
|
1518
|
-
type: "stream_event",
|
|
1519
|
-
event,
|
|
1520
|
-
session_id: getSessionId(),
|
|
1521
|
-
parent_tool_use_id: null,
|
|
1522
|
-
uuid: randomUUID()
|
|
1523
|
-
};
|
|
1524
|
-
break;
|
|
1525
|
-
}
|
|
1526
|
-
case "attachment": {
|
|
1527
|
-
const msg = message;
|
|
1528
|
-
this.mutableMessages.push(msg);
|
|
1529
|
-
if (persistSession) {
|
|
1530
|
-
messages.push(msg);
|
|
1531
|
-
recordTranscript(messages);
|
|
1532
|
-
}
|
|
1533
|
-
const attachment = msg.attachment;
|
|
1534
|
-
if (attachment.type === "structured_output") {
|
|
1535
|
-
structuredOutputFromTool = attachment.data;
|
|
1536
|
-
} else if (attachment.type === "max_turns_reached") {
|
|
1537
|
-
if (persistSession) {
|
|
1538
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1539
|
-
await flushSessionStorage();
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
yield {
|
|
1543
|
-
type: "result",
|
|
1544
|
-
subtype: "error_max_turns",
|
|
1545
|
-
duration_ms: Date.now() - startTime,
|
|
1546
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1547
|
-
is_error: true,
|
|
1548
|
-
num_turns: attachment.turnCount,
|
|
1549
|
-
stop_reason: lastStopReason,
|
|
1550
|
-
session_id: getSessionId(),
|
|
1551
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1552
|
-
usage: this.totalUsage,
|
|
1553
|
-
modelUsage: getModelUsage(),
|
|
1554
|
-
permission_denials: this.permissionDenials,
|
|
1555
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1556
|
-
uuid: randomUUID(),
|
|
1557
|
-
errors: [
|
|
1558
|
-
`Reached maximum number of turns (${attachment.maxTurns})`
|
|
1559
|
-
]
|
|
1560
|
-
};
|
|
1561
|
-
return;
|
|
1562
|
-
} else if (replayUserMessages && attachment.type === "queued_command") {
|
|
1563
|
-
yield {
|
|
1564
|
-
type: "user",
|
|
1565
|
-
message: {
|
|
1566
|
-
role: "user",
|
|
1567
|
-
content: attachment.prompt
|
|
1568
|
-
},
|
|
1569
|
-
session_id: getSessionId(),
|
|
1570
|
-
parent_tool_use_id: null,
|
|
1571
|
-
uuid: attachment.source_uuid || msg.uuid,
|
|
1572
|
-
timestamp: msg.timestamp,
|
|
1573
|
-
isReplay: true
|
|
1574
|
-
};
|
|
1575
|
-
}
|
|
1576
|
-
break;
|
|
1577
|
-
}
|
|
1578
|
-
case "stream_request_start":
|
|
1579
|
-
break;
|
|
1580
|
-
case "system": {
|
|
1581
|
-
const msg = message;
|
|
1582
|
-
const snipResult = this.config.snipReplay?.(msg, this.mutableMessages);
|
|
1583
|
-
if (snipResult !== undefined) {
|
|
1584
|
-
if (snipResult.executed) {
|
|
1585
|
-
this.mutableMessages.length = 0;
|
|
1586
|
-
this.mutableMessages.push(...snipResult.messages);
|
|
1587
|
-
}
|
|
1588
|
-
break;
|
|
1589
|
-
}
|
|
1590
|
-
this.mutableMessages.push(msg);
|
|
1591
|
-
if (msg.subtype === "compact_boundary" && msg.compactMetadata) {
|
|
1592
|
-
const compactMsg = msg;
|
|
1593
|
-
const mutableBoundaryIdx = this.mutableMessages.length - 1;
|
|
1594
|
-
if (mutableBoundaryIdx > 0) {
|
|
1595
|
-
this.mutableMessages.splice(0, mutableBoundaryIdx);
|
|
1596
|
-
}
|
|
1597
|
-
const localBoundaryIdx = messages.length - 1;
|
|
1598
|
-
if (localBoundaryIdx > 0) {
|
|
1599
|
-
messages.splice(0, localBoundaryIdx);
|
|
1600
|
-
}
|
|
1601
|
-
yield {
|
|
1602
|
-
type: "system",
|
|
1603
|
-
subtype: "compact_boundary",
|
|
1604
|
-
session_id: getSessionId(),
|
|
1605
|
-
uuid: msg.uuid,
|
|
1606
|
-
compact_metadata: toSDKCompactMetadata(compactMsg.compactMetadata)
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
|
-
if (msg.subtype === "api_error") {
|
|
1610
|
-
const apiErrorMsg = msg;
|
|
1611
|
-
yield {
|
|
1612
|
-
type: "system",
|
|
1613
|
-
subtype: "api_retry",
|
|
1614
|
-
attempt: apiErrorMsg.retryAttempt,
|
|
1615
|
-
max_retries: apiErrorMsg.maxRetries,
|
|
1616
|
-
retry_delay_ms: apiErrorMsg.retryInMs,
|
|
1617
|
-
error_status: apiErrorMsg.error.status ?? null,
|
|
1618
|
-
error: categorizeRetryableAPIError(apiErrorMsg.error),
|
|
1619
|
-
session_id: getSessionId(),
|
|
1620
|
-
uuid: msg.uuid
|
|
1621
|
-
};
|
|
1622
|
-
}
|
|
1623
|
-
break;
|
|
1624
|
-
}
|
|
1625
|
-
case "tool_use_summary": {
|
|
1626
|
-
const msg = message;
|
|
1627
|
-
yield {
|
|
1628
|
-
type: "tool_use_summary",
|
|
1629
|
-
summary: msg.summary,
|
|
1630
|
-
preceding_tool_use_ids: msg.precedingToolUseIds,
|
|
1631
|
-
session_id: getSessionId(),
|
|
1632
|
-
uuid: msg.uuid
|
|
1633
|
-
};
|
|
1634
|
-
break;
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
if (maxBudgetUsd !== undefined && getTotalCostUSD() >= maxBudgetUsd) {
|
|
1638
|
-
if (persistSession) {
|
|
1639
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1640
|
-
await flushSessionStorage();
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
yield {
|
|
1644
|
-
type: "result",
|
|
1645
|
-
subtype: "error_max_budget_usd",
|
|
1646
|
-
duration_ms: Date.now() - startTime,
|
|
1647
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1648
|
-
is_error: true,
|
|
1649
|
-
num_turns: turnCount,
|
|
1650
|
-
stop_reason: lastStopReason,
|
|
1651
|
-
session_id: getSessionId(),
|
|
1652
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1653
|
-
usage: this.totalUsage,
|
|
1654
|
-
modelUsage: getModelUsage(),
|
|
1655
|
-
permission_denials: this.permissionDenials,
|
|
1656
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1657
|
-
uuid: randomUUID(),
|
|
1658
|
-
errors: [
|
|
1659
|
-
`Reached maximum budget ($${maxBudgetUsd}). Increase the limit with --max-budget-usd or start a new session.`
|
|
1660
|
-
]
|
|
1661
|
-
};
|
|
1662
|
-
return;
|
|
1663
|
-
}
|
|
1664
|
-
if (message.type === "user" && jsonSchema) {
|
|
1665
|
-
const currentCalls = countToolCalls(this.mutableMessages, SYNTHETIC_OUTPUT_TOOL_NAME);
|
|
1666
|
-
const callsThisQuery = currentCalls - initialStructuredOutputCalls;
|
|
1667
|
-
const maxRetries = parseInt(process.env.MAX_STRUCTURED_OUTPUT_RETRIES || "5", 10);
|
|
1668
|
-
if (callsThisQuery >= maxRetries) {
|
|
1669
|
-
if (persistSession) {
|
|
1670
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1671
|
-
await flushSessionStorage();
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
yield {
|
|
1675
|
-
type: "result",
|
|
1676
|
-
subtype: "error_max_structured_output_retries",
|
|
1677
|
-
duration_ms: Date.now() - startTime,
|
|
1678
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1679
|
-
is_error: true,
|
|
1680
|
-
num_turns: turnCount,
|
|
1681
|
-
stop_reason: lastStopReason,
|
|
1682
|
-
session_id: getSessionId(),
|
|
1683
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1684
|
-
usage: this.totalUsage,
|
|
1685
|
-
modelUsage: getModelUsage(),
|
|
1686
|
-
permission_denials: this.permissionDenials,
|
|
1687
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1688
|
-
uuid: randomUUID(),
|
|
1689
|
-
errors: [
|
|
1690
|
-
`Failed to provide valid structured output after ${maxRetries} attempts`
|
|
1691
|
-
]
|
|
1692
|
-
};
|
|
1693
|
-
return;
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
const result = messages.findLast((m) => m.type === "assistant" || m.type === "user");
|
|
1698
|
-
const edeResultType = result?.type ?? "undefined";
|
|
1699
|
-
const edeLastContentType = result?.type === "assistant" ? last_default(result.message.content)?.type ?? "none" : "n/a";
|
|
1700
|
-
if (persistSession) {
|
|
1701
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1702
|
-
await flushSessionStorage();
|
|
1703
|
-
}
|
|
1704
|
-
}
|
|
1705
|
-
if (!isResultSuccessful(result, lastStopReason)) {
|
|
1706
|
-
yield {
|
|
1707
|
-
type: "result",
|
|
1708
|
-
subtype: "error_during_execution",
|
|
1709
|
-
duration_ms: Date.now() - startTime,
|
|
1710
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1711
|
-
is_error: true,
|
|
1712
|
-
is_interrupted: this.abortController.signal.aborted,
|
|
1713
|
-
num_turns: turnCount,
|
|
1714
|
-
stop_reason: lastStopReason,
|
|
1715
|
-
session_id: getSessionId(),
|
|
1716
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1717
|
-
usage: this.totalUsage,
|
|
1718
|
-
modelUsage: getModelUsage(),
|
|
1719
|
-
permission_denials: this.permissionDenials,
|
|
1720
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1721
|
-
uuid: randomUUID(),
|
|
1722
|
-
errors: (() => {
|
|
1723
|
-
const all = getInMemoryErrors();
|
|
1724
|
-
const start = errorLogWatermark ? all.lastIndexOf(errorLogWatermark) + 1 : 0;
|
|
1725
|
-
return [
|
|
1726
|
-
`[ede_diagnostic] result_type=${edeResultType} last_content_type=${edeLastContentType} stop_reason=${lastStopReason}`,
|
|
1727
|
-
...all.slice(start).map((_) => _.error)
|
|
1728
|
-
];
|
|
1729
|
-
})()
|
|
1730
|
-
};
|
|
1731
|
-
return;
|
|
1732
|
-
}
|
|
1733
|
-
let textResult = "";
|
|
1734
|
-
let isApiError = false;
|
|
1735
|
-
if (result.type === "assistant") {
|
|
1736
|
-
const lastContent = last_default(result.message.content);
|
|
1737
|
-
if (lastContent?.type === "text" && !SYNTHETIC_MESSAGES.has(lastContent.text)) {
|
|
1738
|
-
textResult = lastContent.text;
|
|
1739
|
-
}
|
|
1740
|
-
isApiError = Boolean(result.isApiErrorMessage);
|
|
1741
|
-
}
|
|
1742
|
-
yield {
|
|
1743
|
-
type: "result",
|
|
1744
|
-
subtype: "success",
|
|
1745
|
-
is_error: isApiError,
|
|
1746
|
-
duration_ms: Date.now() - startTime,
|
|
1747
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1748
|
-
num_turns: turnCount,
|
|
1749
|
-
result: textResult,
|
|
1750
|
-
stop_reason: lastStopReason,
|
|
1751
|
-
session_id: getSessionId(),
|
|
1752
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1753
|
-
usage: this.totalUsage,
|
|
1754
|
-
modelUsage: getModelUsage(),
|
|
1755
|
-
permission_denials: this.permissionDenials,
|
|
1756
|
-
structured_output: structuredOutputFromTool,
|
|
1757
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1758
|
-
uuid: randomUUID()
|
|
1759
|
-
};
|
|
1760
|
-
}
|
|
1761
|
-
interrupt() {
|
|
1762
|
-
this.abortController.abort();
|
|
1763
|
-
}
|
|
1764
|
-
resetAbortController() {
|
|
1765
|
-
this.abortController = createAbortController();
|
|
1766
|
-
}
|
|
1767
|
-
getAbortSignal() {
|
|
1768
|
-
return this.abortController.signal;
|
|
1769
|
-
}
|
|
1770
|
-
getMessages() {
|
|
1771
|
-
return this.mutableMessages;
|
|
1772
|
-
}
|
|
1773
|
-
getReadFileState() {
|
|
1774
|
-
return this.readFileState;
|
|
1775
|
-
}
|
|
1776
|
-
getSessionId() {
|
|
1777
|
-
return getSessionId();
|
|
1778
|
-
}
|
|
1779
|
-
setModel(model) {
|
|
1780
|
-
this.config.userSpecifiedModel = model;
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
async function* ask({
|
|
1784
|
-
commands,
|
|
1785
|
-
prompt,
|
|
1786
|
-
promptUuid,
|
|
1787
|
-
isMeta,
|
|
1788
|
-
cwd,
|
|
1789
|
-
tools,
|
|
1790
|
-
mcpClients,
|
|
1791
|
-
verbose = false,
|
|
1792
|
-
thinkingConfig,
|
|
1793
|
-
maxTurns,
|
|
1794
|
-
maxBudgetUsd,
|
|
1795
|
-
taskBudget,
|
|
1796
|
-
canUseTool,
|
|
1797
|
-
mutableMessages = [],
|
|
1798
|
-
getReadFileCache,
|
|
1799
|
-
setReadFileCache,
|
|
1800
|
-
customSystemPrompt,
|
|
1801
|
-
appendSystemPrompt,
|
|
1802
|
-
mainThreadAgentDefinition,
|
|
1803
|
-
userSpecifiedModel,
|
|
1804
|
-
fallbackModel,
|
|
1805
|
-
jsonSchema,
|
|
1806
|
-
getAppState,
|
|
1807
|
-
setAppState,
|
|
1808
|
-
abortController,
|
|
1809
|
-
replayUserMessages = false,
|
|
1810
|
-
includePartialMessages = false,
|
|
1811
|
-
handleElicitation,
|
|
1812
|
-
agents = [],
|
|
1813
|
-
allowedAgentTypes,
|
|
1814
|
-
setSDKStatus,
|
|
1815
|
-
orphanedPermission
|
|
1816
|
-
}) {
|
|
1817
|
-
const engine = new QueryEngine({
|
|
1818
|
-
cwd,
|
|
1819
|
-
tools,
|
|
1820
|
-
commands,
|
|
1821
|
-
mcpClients,
|
|
1822
|
-
agents: agents ?? [],
|
|
1823
|
-
allowedAgentTypes,
|
|
1824
|
-
canUseTool,
|
|
1825
|
-
getAppState,
|
|
1826
|
-
setAppState,
|
|
1827
|
-
initialMessages: mutableMessages,
|
|
1828
|
-
readFileCache: cloneFileStateCache(getReadFileCache()),
|
|
1829
|
-
customSystemPrompt,
|
|
1830
|
-
appendSystemPrompt,
|
|
1831
|
-
mainThreadAgentDefinition,
|
|
1832
|
-
userSpecifiedModel,
|
|
1833
|
-
fallbackModel,
|
|
1834
|
-
thinkingConfig,
|
|
1835
|
-
maxTurns,
|
|
1836
|
-
maxBudgetUsd,
|
|
1837
|
-
taskBudget,
|
|
1838
|
-
jsonSchema,
|
|
1839
|
-
verbose,
|
|
1840
|
-
handleElicitation,
|
|
1841
|
-
replayUserMessages,
|
|
1842
|
-
includePartialMessages,
|
|
1843
|
-
setSDKStatus,
|
|
1844
|
-
abortController,
|
|
1845
|
-
orphanedPermission,
|
|
1846
|
-
...{
|
|
1847
|
-
snipReplay: (yielded, store) => {
|
|
1848
|
-
if (!snipProjection.isSnipBoundaryMessage(yielded))
|
|
1849
|
-
return;
|
|
1850
|
-
return snipModule.snipCompactIfNeeded(store, { force: true });
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
try {
|
|
1855
|
-
yield* engine.submitMessage(prompt, {
|
|
1856
|
-
uuid: promptUuid,
|
|
1857
|
-
isMeta
|
|
1858
|
-
});
|
|
1859
|
-
} finally {
|
|
1860
|
-
setReadFileCache(engine.getReadFileState());
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
// src/cli/print.ts
|
|
1865
888
|
init_fileStateCache();
|
|
1866
889
|
init_path();
|
|
1867
890
|
init_queryHelpers();
|
|
@@ -1924,116 +947,6 @@ init_policyLimits();
|
|
|
1924
947
|
init_product();
|
|
1925
948
|
init_bridgeStatusUtil();
|
|
1926
949
|
import { cwd } from "process";
|
|
1927
|
-
|
|
1928
|
-
// src/bridge/inboundAttachments.ts
|
|
1929
|
-
init_axios();
|
|
1930
|
-
init_v4();
|
|
1931
|
-
init_state();
|
|
1932
|
-
init_debug();
|
|
1933
|
-
init_envUtils();
|
|
1934
|
-
init_lazySchema();
|
|
1935
|
-
init_bridgeConfig();
|
|
1936
|
-
import { randomUUID as randomUUID2 } from "crypto";
|
|
1937
|
-
import { mkdir, writeFile } from "fs/promises";
|
|
1938
|
-
import { basename, join } from "path";
|
|
1939
|
-
var DOWNLOAD_TIMEOUT_MS = 30000;
|
|
1940
|
-
function debug(msg) {
|
|
1941
|
-
logForDebugging(`[bridge:inbound-attach] ${msg}`);
|
|
1942
|
-
}
|
|
1943
|
-
var attachmentSchema = lazySchema(() => exports_external.object({
|
|
1944
|
-
file_uuid: exports_external.string(),
|
|
1945
|
-
file_name: exports_external.string()
|
|
1946
|
-
}));
|
|
1947
|
-
var attachmentsArraySchema = lazySchema(() => exports_external.array(attachmentSchema()));
|
|
1948
|
-
function extractInboundAttachments(msg) {
|
|
1949
|
-
if (typeof msg !== "object" || msg === null || !("file_attachments" in msg)) {
|
|
1950
|
-
return [];
|
|
1951
|
-
}
|
|
1952
|
-
const parsed = attachmentsArraySchema().safeParse(msg.file_attachments);
|
|
1953
|
-
return parsed.success ? parsed.data : [];
|
|
1954
|
-
}
|
|
1955
|
-
function sanitizeFileName(name) {
|
|
1956
|
-
const base = basename(name).replace(/[^a-zA-Z0-9._-]/g, "_");
|
|
1957
|
-
return base || "attachment";
|
|
1958
|
-
}
|
|
1959
|
-
function uploadsDir() {
|
|
1960
|
-
return join(getClaudeConfigHomeDir(), "uploads", getSessionId());
|
|
1961
|
-
}
|
|
1962
|
-
async function resolveOne(att) {
|
|
1963
|
-
const token = getBridgeAccessToken();
|
|
1964
|
-
if (!token) {
|
|
1965
|
-
debug("skip: no oauth token");
|
|
1966
|
-
return;
|
|
1967
|
-
}
|
|
1968
|
-
let data;
|
|
1969
|
-
try {
|
|
1970
|
-
const url = `${getBridgeBaseUrl()}/api/oauth/files/${encodeURIComponent(att.file_uuid)}/content`;
|
|
1971
|
-
const response = await axios_default.get(url, {
|
|
1972
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
1973
|
-
responseType: "arraybuffer",
|
|
1974
|
-
timeout: DOWNLOAD_TIMEOUT_MS,
|
|
1975
|
-
validateStatus: () => true
|
|
1976
|
-
});
|
|
1977
|
-
if (response.status !== 200) {
|
|
1978
|
-
debug(`fetch ${att.file_uuid} failed: status=${response.status}`);
|
|
1979
|
-
return;
|
|
1980
|
-
}
|
|
1981
|
-
data = Buffer.from(response.data);
|
|
1982
|
-
} catch (e) {
|
|
1983
|
-
debug(`fetch ${att.file_uuid} threw: ${e}`);
|
|
1984
|
-
return;
|
|
1985
|
-
}
|
|
1986
|
-
const safeName = sanitizeFileName(att.file_name);
|
|
1987
|
-
const prefix = (att.file_uuid.slice(0, 8) || randomUUID2().slice(0, 8)).replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
1988
|
-
const dir = uploadsDir();
|
|
1989
|
-
const outPath = join(dir, `${prefix}-${safeName}`);
|
|
1990
|
-
try {
|
|
1991
|
-
await mkdir(dir, { recursive: true });
|
|
1992
|
-
await writeFile(outPath, data);
|
|
1993
|
-
} catch (e) {
|
|
1994
|
-
debug(`write ${outPath} failed: ${e}`);
|
|
1995
|
-
return;
|
|
1996
|
-
}
|
|
1997
|
-
debug(`resolved ${att.file_uuid} \u2192 ${outPath} (${data.length} bytes)`);
|
|
1998
|
-
return outPath;
|
|
1999
|
-
}
|
|
2000
|
-
async function resolveInboundAttachments(attachments) {
|
|
2001
|
-
if (attachments.length === 0)
|
|
2002
|
-
return "";
|
|
2003
|
-
debug(`resolving ${attachments.length} attachment(s)`);
|
|
2004
|
-
const paths = await Promise.all(attachments.map(resolveOne));
|
|
2005
|
-
const ok = paths.filter((p) => p !== undefined);
|
|
2006
|
-
if (ok.length === 0)
|
|
2007
|
-
return "";
|
|
2008
|
-
return ok.map((p) => `@"${p}"`).join(" ") + " ";
|
|
2009
|
-
}
|
|
2010
|
-
function prependPathRefs(content, prefix) {
|
|
2011
|
-
if (!prefix)
|
|
2012
|
-
return content;
|
|
2013
|
-
if (typeof content === "string")
|
|
2014
|
-
return prefix + content;
|
|
2015
|
-
const i = content.findLastIndex((b) => b.type === "text");
|
|
2016
|
-
if (i !== -1) {
|
|
2017
|
-
const b = content[i];
|
|
2018
|
-
if (b.type === "text") {
|
|
2019
|
-
return [
|
|
2020
|
-
...content.slice(0, i),
|
|
2021
|
-
{ ...b, text: prefix + b.text },
|
|
2022
|
-
...content.slice(i + 1)
|
|
2023
|
-
];
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
return [...content, { type: "text", text: prefix.trimEnd() }];
|
|
2027
|
-
}
|
|
2028
|
-
async function resolveAndPrepend(msg, content) {
|
|
2029
|
-
const attachments = extractInboundAttachments(msg);
|
|
2030
|
-
if (attachments.length === 0)
|
|
2031
|
-
return content;
|
|
2032
|
-
const prefix = await resolveInboundAttachments(attachments);
|
|
2033
|
-
return prependPathRefs(content, prefix);
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
// src/cli/print.ts
|
|
2037
950
|
init_permissions();
|
|
2038
951
|
init_json();
|
|
2039
952
|
init_abortController();
|
|
@@ -2060,11 +973,11 @@ init_SyntheticOutputTool();
|
|
|
2060
973
|
|
|
2061
974
|
// src/utils/sessionUrl.ts
|
|
2062
975
|
init_uuid();
|
|
2063
|
-
import { randomUUID
|
|
976
|
+
import { randomUUID } from "crypto";
|
|
2064
977
|
function parseSessionIdentifier(resumeIdentifier) {
|
|
2065
978
|
if (resumeIdentifier.toLowerCase().endsWith(".jsonl")) {
|
|
2066
979
|
return {
|
|
2067
|
-
sessionId:
|
|
980
|
+
sessionId: randomUUID(),
|
|
2068
981
|
ingressUrl: null,
|
|
2069
982
|
isUrl: false,
|
|
2070
983
|
jsonlFile: resumeIdentifier,
|
|
@@ -2083,7 +996,7 @@ function parseSessionIdentifier(resumeIdentifier) {
|
|
|
2083
996
|
try {
|
|
2084
997
|
const url = new URL(resumeIdentifier);
|
|
2085
998
|
return {
|
|
2086
|
-
sessionId:
|
|
999
|
+
sessionId: randomUUID(),
|
|
2087
1000
|
ingressUrl: url.href,
|
|
2088
1001
|
isUrl: true,
|
|
2089
1002
|
jsonlFile: null,
|
|
@@ -2097,7 +1010,7 @@ function parseSessionIdentifier(resumeIdentifier) {
|
|
|
2097
1010
|
init_sessionStorage();
|
|
2098
1011
|
init_commitAttribution();
|
|
2099
1012
|
init_client();
|
|
2100
|
-
|
|
1013
|
+
init_config();
|
|
2101
1014
|
init_auth2();
|
|
2102
1015
|
init_elicitationHandler();
|
|
2103
1016
|
init_hooks();
|
|
@@ -2105,7 +1018,7 @@ init_types();
|
|
|
2105
1018
|
init_mcpStringUtils();
|
|
2106
1019
|
init_utils();
|
|
2107
1020
|
init_vscodeSdkMcp();
|
|
2108
|
-
|
|
1021
|
+
init_config();
|
|
2109
1022
|
init_grove();
|
|
2110
1023
|
init_mappers();
|
|
2111
1024
|
init_messages();
|
|
@@ -2121,7 +1034,7 @@ init_modelStrings();
|
|
|
2121
1034
|
init_state();
|
|
2122
1035
|
init_workloadContext();
|
|
2123
1036
|
init_fileHistory();
|
|
2124
|
-
import { randomUUID as
|
|
1037
|
+
import { randomUUID as randomUUID2 } from "crypto";
|
|
2125
1038
|
init_sandbox_adapter();
|
|
2126
1039
|
init_headlessProfiler();
|
|
2127
1040
|
init_queryProfiler();
|
|
@@ -2129,6 +1042,7 @@ init_ids();
|
|
|
2129
1042
|
init_autonomyRuns();
|
|
2130
1043
|
init_autonomyQueueLifecycle();
|
|
2131
1044
|
init_slowOperations();
|
|
1045
|
+
init_skillChangeDetector();
|
|
2132
1046
|
init_commands();
|
|
2133
1047
|
init_envUtils();
|
|
2134
1048
|
|
|
@@ -2150,7 +1064,7 @@ init_marketplaceManager();
|
|
|
2150
1064
|
init_schemas();
|
|
2151
1065
|
init_zipCache();
|
|
2152
1066
|
import { readFile } from "fs/promises";
|
|
2153
|
-
import { join
|
|
1067
|
+
import { join } from "path";
|
|
2154
1068
|
async function readZipCacheKnownMarketplaces() {
|
|
2155
1069
|
try {
|
|
2156
1070
|
const content = await readFile(getZipCacheKnownMarketplacesPath(), "utf-8");
|
|
@@ -2175,13 +1089,13 @@ async function saveMarketplaceJsonToZipCache(marketplaceName, installLocation) {
|
|
|
2175
1089
|
const content = await readMarketplaceJsonContent(installLocation);
|
|
2176
1090
|
if (content !== null) {
|
|
2177
1091
|
const relPath = getMarketplaceJsonRelativePath(marketplaceName);
|
|
2178
|
-
await atomicWriteToZipCache(
|
|
1092
|
+
await atomicWriteToZipCache(join(zipCachePath, relPath), content);
|
|
2179
1093
|
}
|
|
2180
1094
|
}
|
|
2181
1095
|
async function readMarketplaceJsonContent(dir) {
|
|
2182
1096
|
const candidates = [
|
|
2183
|
-
|
|
2184
|
-
|
|
1097
|
+
join(dir, ".claude-plugin", "marketplace.json"),
|
|
1098
|
+
join(dir, "marketplace.json"),
|
|
2185
1099
|
dir
|
|
2186
1100
|
];
|
|
2187
1101
|
for (const candidate of candidates) {
|
|
@@ -2297,7 +1211,6 @@ init_growthbook();
|
|
|
2297
1211
|
init_errors();
|
|
2298
1212
|
init_sleep();
|
|
2299
1213
|
init_paths();
|
|
2300
|
-
var coordinatorModeModule = (init_coordinatorMode(), __toCommonJS(exports_coordinatorMode));
|
|
2301
1214
|
var proactiveModule = (init_proactive(), __toCommonJS(exports_proactive));
|
|
2302
1215
|
var cronSchedulerModule = (init_cronScheduler(), __toCommonJS(exports_cronScheduler));
|
|
2303
1216
|
var cronJitterConfigModule = (init_cronJitterConfig(), __toCommonJS(exports_cronJitterConfig));
|
|
@@ -2447,7 +1360,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2447
1360
|
hook_id: event.hookId,
|
|
2448
1361
|
hook_name: event.hookName,
|
|
2449
1362
|
hook_event: event.hookEvent,
|
|
2450
|
-
uuid:
|
|
1363
|
+
uuid: randomUUID2(),
|
|
2451
1364
|
session_id: getSessionId()
|
|
2452
1365
|
};
|
|
2453
1366
|
case "progress":
|
|
@@ -2460,7 +1373,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2460
1373
|
stdout: event.stdout,
|
|
2461
1374
|
stderr: event.stderr,
|
|
2462
1375
|
output: event.output,
|
|
2463
|
-
uuid:
|
|
1376
|
+
uuid: randomUUID2(),
|
|
2464
1377
|
session_id: getSessionId()
|
|
2465
1378
|
};
|
|
2466
1379
|
case "response":
|
|
@@ -2475,7 +1388,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2475
1388
|
stderr: event.stderr,
|
|
2476
1389
|
exit_code: event.exitCode,
|
|
2477
1390
|
outcome: event.outcome,
|
|
2478
|
-
uuid:
|
|
1391
|
+
uuid: randomUUID2(),
|
|
2479
1392
|
session_id: getSessionId()
|
|
2480
1393
|
};
|
|
2481
1394
|
}
|
|
@@ -2561,7 +1474,15 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2561
1474
|
let filteredTools = [...tools, ...allowedMcpTools];
|
|
2562
1475
|
const effectivePermissionPromptToolName = options.sdkUrl ? "stdio" : options.permissionPromptToolName;
|
|
2563
1476
|
const onPermissionPrompt = (details) => {
|
|
2564
|
-
if (
|
|
1477
|
+
if (true) {
|
|
1478
|
+
setAppState((prev) => ({
|
|
1479
|
+
...prev,
|
|
1480
|
+
attribution: {
|
|
1481
|
+
...prev.attribution,
|
|
1482
|
+
permissionPromptCount: prev.attribution.permissionPromptCount + 1
|
|
1483
|
+
}
|
|
1484
|
+
}));
|
|
1485
|
+
}
|
|
2565
1486
|
notifySessionStateChanged("requires_action", details);
|
|
2566
1487
|
};
|
|
2567
1488
|
const canUseTool = getCanUseToolFn(effectivePermissionPromptToolName, structuredIO, () => getAppState().mcp.tools, onPermissionPrompt);
|
|
@@ -2674,13 +1595,13 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2674
1595
|
});
|
|
2675
1596
|
});
|
|
2676
1597
|
setPermissionModeChangedListener((newMode) => {
|
|
2677
|
-
if (newMode === "default" || newMode === "acceptEdits" || newMode === "bypassPermissions" || newMode === "plan" || newMode ===
|
|
1598
|
+
if (newMode === "default" || newMode === "acceptEdits" || newMode === "bypassPermissions" || newMode === "plan" || newMode === "auto" || newMode === "dontAsk") {
|
|
2678
1599
|
output.enqueue({
|
|
2679
1600
|
type: "system",
|
|
2680
1601
|
subtype: "status",
|
|
2681
1602
|
status: null,
|
|
2682
1603
|
permissionMode: newMode,
|
|
2683
|
-
uuid:
|
|
1604
|
+
uuid: randomUUID2(),
|
|
2684
1605
|
session_id: getSessionId()
|
|
2685
1606
|
});
|
|
2686
1607
|
}
|
|
@@ -2701,7 +1622,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2701
1622
|
isAuthenticating: status.isAuthenticating,
|
|
2702
1623
|
output: status.output,
|
|
2703
1624
|
error: status.error,
|
|
2704
|
-
uuid:
|
|
1625
|
+
uuid: randomUUID2(),
|
|
2705
1626
|
session_id: getSessionId()
|
|
2706
1627
|
});
|
|
2707
1628
|
});
|
|
@@ -2712,7 +1633,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2712
1633
|
output.enqueue({
|
|
2713
1634
|
type: "rate_limit_event",
|
|
2714
1635
|
rate_limit_info: rateLimitInfo,
|
|
2715
|
-
uuid:
|
|
1636
|
+
uuid: randomUUID2(),
|
|
2716
1637
|
session_id: getSessionId()
|
|
2717
1638
|
});
|
|
2718
1639
|
}
|
|
@@ -2728,7 +1649,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2728
1649
|
enqueue({
|
|
2729
1650
|
mode: "prompt",
|
|
2730
1651
|
value: turnInterruptionState.message.message.content,
|
|
2731
|
-
uuid:
|
|
1652
|
+
uuid: randomUUID2()
|
|
2732
1653
|
});
|
|
2733
1654
|
}
|
|
2734
1655
|
const modelOptions = getModelOptions();
|
|
@@ -2823,7 +1744,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2823
1744
|
subtype: "elicitation_complete",
|
|
2824
1745
|
mcp_server_name: serverName,
|
|
2825
1746
|
elicitation_id: elicitationId,
|
|
2826
|
-
uuid:
|
|
1747
|
+
uuid: randomUUID2(),
|
|
2827
1748
|
session_id: getSessionId()
|
|
2828
1749
|
});
|
|
2829
1750
|
});
|
|
@@ -3078,7 +1999,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3078
1999
|
for (const command of commands2) {
|
|
3079
2000
|
enqueue({
|
|
3080
2001
|
...command,
|
|
3081
|
-
uuid:
|
|
2002
|
+
uuid: randomUUID2()
|
|
3082
2003
|
});
|
|
3083
2004
|
}
|
|
3084
2005
|
run();
|
|
@@ -3122,7 +2043,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3122
2043
|
}
|
|
3123
2044
|
pluginInstallPromise = null;
|
|
3124
2045
|
await refreshPluginState();
|
|
3125
|
-
const { setupPluginHookHotReload } = await import("./chunk-
|
|
2046
|
+
const { setupPluginHookHotReload } = await import("./chunk-rfvzhq5x.js");
|
|
3126
2047
|
setupPluginHookHotReload();
|
|
3127
2048
|
}
|
|
3128
2049
|
const isMainThread = (cmd) => cmd.agentId === undefined;
|
|
@@ -3217,7 +2138,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3217
2138
|
duration_ms: durationMsMatch ? parseInt(durationMsMatch[1], 10) : 0
|
|
3218
2139
|
} : undefined,
|
|
3219
2140
|
session_id: getSessionId(),
|
|
3220
|
-
uuid:
|
|
2141
|
+
uuid: randomUUID2()
|
|
3221
2142
|
});
|
|
3222
2143
|
}
|
|
3223
2144
|
}
|
|
@@ -3296,7 +2217,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3296
2217
|
subtype: "status",
|
|
3297
2218
|
status,
|
|
3298
2219
|
session_id: getSessionId(),
|
|
3299
|
-
uuid:
|
|
2220
|
+
uuid: randomUUID2()
|
|
3300
2221
|
});
|
|
3301
2222
|
}
|
|
3302
2223
|
})) {
|
|
@@ -3343,7 +2264,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3343
2264
|
for (const nextCommand of nextCommands) {
|
|
3344
2265
|
enqueue({
|
|
3345
2266
|
...nextCommand,
|
|
3346
|
-
uuid:
|
|
2267
|
+
uuid: randomUUID2()
|
|
3347
2268
|
});
|
|
3348
2269
|
}
|
|
3349
2270
|
}
|
|
@@ -3381,7 +2302,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3381
2302
|
const suggestionMsg = {
|
|
3382
2303
|
type: "prompt_suggestion",
|
|
3383
2304
|
suggestion: result.suggestion,
|
|
3384
|
-
uuid:
|
|
2305
|
+
uuid: randomUUID2(),
|
|
3385
2306
|
session_id: getSessionId()
|
|
3386
2307
|
};
|
|
3387
2308
|
const lastEmittedEntry = {
|
|
@@ -3471,7 +2392,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3471
2392
|
usage: EMPTY_USAGE,
|
|
3472
2393
|
modelUsage: {},
|
|
3473
2394
|
permission_denials: [],
|
|
3474
|
-
uuid:
|
|
2395
|
+
uuid: randomUUID2(),
|
|
3475
2396
|
errors: [
|
|
3476
2397
|
errorMessage(error),
|
|
3477
2398
|
...getInMemoryErrors().map((_) => _.error)
|
|
@@ -3560,7 +2481,7 @@ ${m.text}
|
|
|
3560
2481
|
enqueue({
|
|
3561
2482
|
mode: "prompt",
|
|
3562
2483
|
value: formatted,
|
|
3563
|
-
uuid:
|
|
2484
|
+
uuid: randomUUID2()
|
|
3564
2485
|
});
|
|
3565
2486
|
run();
|
|
3566
2487
|
return;
|
|
@@ -3571,7 +2492,7 @@ ${m.text}
|
|
|
3571
2492
|
enqueue({
|
|
3572
2493
|
mode: "prompt",
|
|
3573
2494
|
value: SHUTDOWN_TEAM_PROMPT,
|
|
3574
|
-
uuid:
|
|
2495
|
+
uuid: randomUUID2()
|
|
3575
2496
|
});
|
|
3576
2497
|
run();
|
|
3577
2498
|
return;
|
|
@@ -3595,7 +2516,7 @@ ${m.text}
|
|
|
3595
2516
|
enqueue({
|
|
3596
2517
|
mode: "prompt",
|
|
3597
2518
|
value: SHUTDOWN_TEAM_PROMPT,
|
|
3598
|
-
uuid:
|
|
2519
|
+
uuid: randomUUID2()
|
|
3599
2520
|
});
|
|
3600
2521
|
run();
|
|
3601
2522
|
} else if (!process.env.CSC_SERVE_MODE) {
|
|
@@ -3643,7 +2564,7 @@ ${m.text}
|
|
|
3643
2564
|
const enqueueAndRun = (command) => {
|
|
3644
2565
|
enqueue({
|
|
3645
2566
|
...command,
|
|
3646
|
-
uuid:
|
|
2567
|
+
uuid: randomUUID2()
|
|
3647
2568
|
});
|
|
3648
2569
|
run();
|
|
3649
2570
|
};
|
|
@@ -3732,7 +2653,15 @@ ${m.text}
|
|
|
3732
2653
|
const msg = message;
|
|
3733
2654
|
const req = msg.request;
|
|
3734
2655
|
if (msg.request.subtype === "interrupt") {
|
|
3735
|
-
if (
|
|
2656
|
+
if (true) {
|
|
2657
|
+
setAppState((prev) => ({
|
|
2658
|
+
...prev,
|
|
2659
|
+
attribution: {
|
|
2660
|
+
...prev.attribution,
|
|
2661
|
+
escapeCount: prev.attribution.escapeCount + 1
|
|
2662
|
+
}
|
|
2663
|
+
}));
|
|
2664
|
+
}
|
|
3736
2665
|
if (abortController) {
|
|
3737
2666
|
abortController.abort();
|
|
3738
2667
|
}
|
|
@@ -4397,7 +3326,7 @@ ${m.text}
|
|
|
4397
3326
|
} else {
|
|
4398
3327
|
let bridgeFailureDetail;
|
|
4399
3328
|
try {
|
|
4400
|
-
const { initReplBridge } = await import("./chunk-
|
|
3329
|
+
const { initReplBridge } = await import("./chunk-9bf696cj.js");
|
|
4401
3330
|
const handle = await initReplBridge({
|
|
4402
3331
|
onInboundMessage(msg2) {
|
|
4403
3332
|
const fields = extractInboundMessageFields(msg2);
|
|
@@ -4445,7 +3374,7 @@ ${m.text}
|
|
|
4445
3374
|
subtype: "bridge_state",
|
|
4446
3375
|
state,
|
|
4447
3376
|
detail,
|
|
4448
|
-
uuid:
|
|
3377
|
+
uuid: randomUUID2(),
|
|
4449
3378
|
session_id: getSessionId()
|
|
4450
3379
|
});
|
|
4451
3380
|
},
|
|
@@ -4548,7 +3477,16 @@ ${m.text}
|
|
|
4548
3477
|
uuid: userMsg.uuid,
|
|
4549
3478
|
priority: userMsg.priority
|
|
4550
3479
|
});
|
|
4551
|
-
if (
|
|
3480
|
+
if (true) {
|
|
3481
|
+
setAppState((prev) => ({
|
|
3482
|
+
...prev,
|
|
3483
|
+
attribution: incrementPromptCount(prev.attribution, (snapshot) => {
|
|
3484
|
+
recordAttributionSnapshot(snapshot).catch((error) => {
|
|
3485
|
+
logForDebugging(`Attribution: Failed to save snapshot: ${error}`);
|
|
3486
|
+
});
|
|
3487
|
+
})
|
|
3488
|
+
}));
|
|
3489
|
+
}
|
|
4552
3490
|
}
|
|
4553
3491
|
run();
|
|
4554
3492
|
}
|
|
@@ -4766,7 +3704,7 @@ async function handleInitializeRequest(request, requestId, initialized, output,
|
|
|
4766
3704
|
isAuthenticating: status.isAuthenticating,
|
|
4767
3705
|
output: status.output,
|
|
4768
3706
|
error: status.error,
|
|
4769
|
-
uuid:
|
|
3707
|
+
uuid: randomUUID2(),
|
|
4770
3708
|
session_id: getSessionId()
|
|
4771
3709
|
});
|
|
4772
3710
|
}
|
|
@@ -4835,7 +3773,18 @@ function handleSetPermissionMode(request, requestId, toolPermissionContext, outp
|
|
|
4835
3773
|
return toolPermissionContext;
|
|
4836
3774
|
}
|
|
4837
3775
|
}
|
|
4838
|
-
if (
|
|
3776
|
+
if (request.mode === "auto" && !isAutoModeGateEnabled()) {
|
|
3777
|
+
const reason = getAutoModeUnavailableReason();
|
|
3778
|
+
output.enqueue({
|
|
3779
|
+
type: "control_response",
|
|
3780
|
+
response: {
|
|
3781
|
+
subtype: "error",
|
|
3782
|
+
request_id: requestId,
|
|
3783
|
+
error: reason ? `Cannot set permission mode to auto: ${getAutoModeUnavailableNotification(reason)}` : "Cannot set permission mode to auto"
|
|
3784
|
+
}
|
|
3785
|
+
});
|
|
3786
|
+
return toolPermissionContext;
|
|
3787
|
+
}
|
|
4839
3788
|
output.enqueue({
|
|
4840
3789
|
type: "control_response",
|
|
4841
3790
|
response: {
|
|
@@ -4959,7 +3908,7 @@ function emitLoadError(message, outputFormat) {
|
|
|
4959
3908
|
usage: EMPTY_USAGE,
|
|
4960
3909
|
modelUsage: {},
|
|
4961
3910
|
permission_denials: [],
|
|
4962
|
-
uuid:
|
|
3911
|
+
uuid: randomUUID2(),
|
|
4963
3912
|
errors: [message]
|
|
4964
3913
|
};
|
|
4965
3914
|
process.stdout.write(jsonStringify(errorResult) + `
|
|
@@ -4982,27 +3931,7 @@ async function loadInitialMessages(setAppState, options) {
|
|
|
4982
3931
|
logEvent("tengu_continue_print", {});
|
|
4983
3932
|
const result = await loadConversationForResume(undefined, undefined);
|
|
4984
3933
|
if (result) {
|
|
4985
|
-
if (
|
|
4986
|
-
const warning = coordinatorModeModule.matchSessionMode(result.mode);
|
|
4987
|
-
if (warning) {
|
|
4988
|
-
process.stderr.write(warning + `
|
|
4989
|
-
`);
|
|
4990
|
-
const {
|
|
4991
|
-
getAgentDefinitionsWithOverrides,
|
|
4992
|
-
getActiveAgentsFromList
|
|
4993
|
-
} = (init_loadAgentsDir(), __toCommonJS(exports_loadAgentsDir));
|
|
4994
|
-
getAgentDefinitionsWithOverrides.cache.clear?.();
|
|
4995
|
-
const freshAgentDefs = await getAgentDefinitionsWithOverrides(getCwd());
|
|
4996
|
-
setAppState((prev) => ({
|
|
4997
|
-
...prev,
|
|
4998
|
-
agentDefinitions: {
|
|
4999
|
-
...freshAgentDefs,
|
|
5000
|
-
allAgents: freshAgentDefs.allAgents,
|
|
5001
|
-
activeAgents: getActiveAgentsFromList(freshAgentDefs.allAgents)
|
|
5002
|
-
}
|
|
5003
|
-
}));
|
|
5004
|
-
}
|
|
5005
|
-
}
|
|
3934
|
+
if (false) {}
|
|
5006
3935
|
if (!options.forkSession) {
|
|
5007
3936
|
if (result.sessionId) {
|
|
5008
3937
|
switchSession(asSessionId(result.sessionId), result.fullPath ? dirname(result.fullPath) : null);
|
|
@@ -5013,9 +3942,7 @@ async function loadInitialMessages(setAppState, options) {
|
|
|
5013
3942
|
}
|
|
5014
3943
|
restoreSessionStateFromLog(result, setAppState);
|
|
5015
3944
|
restoreSessionMetadata(options.forkSession ? { ...result, worktreeSession: undefined } : result);
|
|
5016
|
-
if (
|
|
5017
|
-
saveMode(coordinatorModeModule.isCoordinatorMode() ? "coordinator" : "normal");
|
|
5018
|
-
}
|
|
3945
|
+
if (false) {}
|
|
5019
3946
|
return {
|
|
5020
3947
|
messages: result.messages,
|
|
5021
3948
|
turnInterruptionState: result.turnInterruptionState,
|
|
@@ -5042,7 +3969,7 @@ async function loadInitialMessages(setAppState, options) {
|
|
|
5042
3969
|
processMessagesForTeleportResume,
|
|
5043
3970
|
teleportResumeCodeSession,
|
|
5044
3971
|
validateGitState
|
|
5045
|
-
} = await import("./chunk-
|
|
3972
|
+
} = await import("./chunk-djbawqmw.js");
|
|
5046
3973
|
await validateGitState();
|
|
5047
3974
|
const teleportResult = await teleportResumeCodeSession(options.teleport);
|
|
5048
3975
|
const { branchError } = await checkOutTeleportedSessionBranch(teleportResult.branch);
|
|
@@ -5103,24 +4030,7 @@ async function loadInitialMessages(setAppState, options) {
|
|
|
5103
4030
|
}
|
|
5104
4031
|
result.messages = index >= 0 ? result.messages.slice(0, index + 1) : [];
|
|
5105
4032
|
}
|
|
5106
|
-
if (
|
|
5107
|
-
const warning = coordinatorModeModule.matchSessionMode(result.mode);
|
|
5108
|
-
if (warning) {
|
|
5109
|
-
process.stderr.write(warning + `
|
|
5110
|
-
`);
|
|
5111
|
-
const { getAgentDefinitionsWithOverrides, getActiveAgentsFromList } = (init_loadAgentsDir(), __toCommonJS(exports_loadAgentsDir));
|
|
5112
|
-
getAgentDefinitionsWithOverrides.cache.clear?.();
|
|
5113
|
-
const freshAgentDefs = await getAgentDefinitionsWithOverrides(getCwd());
|
|
5114
|
-
setAppState((prev) => ({
|
|
5115
|
-
...prev,
|
|
5116
|
-
agentDefinitions: {
|
|
5117
|
-
...freshAgentDefs,
|
|
5118
|
-
allAgents: freshAgentDefs.allAgents,
|
|
5119
|
-
activeAgents: getActiveAgentsFromList(freshAgentDefs.allAgents)
|
|
5120
|
-
}
|
|
5121
|
-
}));
|
|
5122
|
-
}
|
|
5123
|
-
}
|
|
4033
|
+
if (false) {}
|
|
5124
4034
|
if (!options.forkSession && result.sessionId) {
|
|
5125
4035
|
switchSession(asSessionId(result.sessionId), result.fullPath ? dirname(result.fullPath) : null);
|
|
5126
4036
|
if (persistSession) {
|
|
@@ -5129,9 +4039,7 @@ async function loadInitialMessages(setAppState, options) {
|
|
|
5129
4039
|
}
|
|
5130
4040
|
restoreSessionStateFromLog(result, setAppState);
|
|
5131
4041
|
restoreSessionMetadata(options.forkSession ? { ...result, worktreeSession: undefined } : result);
|
|
5132
|
-
if (
|
|
5133
|
-
saveMode(coordinatorModeModule.isCoordinatorMode() ? "coordinator" : "normal");
|
|
5134
|
-
}
|
|
4042
|
+
if (false) {}
|
|
5135
4043
|
return {
|
|
5136
4044
|
messages: result.messages,
|
|
5137
4045
|
turnInterruptionState: result.turnInterruptionState,
|
|
@@ -5396,5 +4304,5 @@ export {
|
|
|
5396
4304
|
canBatchWith
|
|
5397
4305
|
};
|
|
5398
4306
|
|
|
5399
|
-
//# debugId=
|
|
5400
|
-
//# sourceMappingURL=chunk-
|
|
4307
|
+
//# debugId=C027994B4112AC6764756E2164756E21
|
|
4308
|
+
//# sourceMappingURL=chunk-0d8p649e.js.map
|