claude-code-best 1.3.7 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{chunk-cdgv0k77.js → chunk-00vfg42v.js} +61 -59
- package/dist/{chunk-6ex0f5ej.js → chunk-01ysfcs0.js} +6 -8
- package/dist/{chunk-1vzb650a.js → chunk-04ws37gv.js} +6 -8
- package/dist/{chunk-7etmzq13.js → chunk-0b0fq180.js} +27 -27
- package/dist/{chunk-drsh1vv8.js → chunk-0cs46nj6.js} +63 -62
- package/dist/chunk-0fzcyd0s.js +116 -0
- package/dist/{chunk-7nebst32.js → chunk-0knhp7v5.js} +2 -2
- package/dist/{chunk-n42nvr59.js → chunk-0xth516w.js} +14 -14
- package/dist/{chunk-egcx83tp.js → chunk-0y6h57c5.js} +6 -6
- package/dist/{chunk-d267stxj.js → chunk-0z0m6mm5.js} +1 -1
- package/dist/{chunk-y10byvag.js → chunk-196qs1ty.js} +30 -29
- package/dist/chunk-1d39h7zf.js +57 -0
- package/dist/{chunk-antr836n.js → chunk-1k3ahc24.js} +59 -57
- package/dist/{chunk-5scrgrwv.js → chunk-1nhx3qpn.js} +2 -2
- package/dist/{chunk-zv5yt0g4.js → chunk-1qbype3e.js} +9 -9
- package/dist/{chunk-bkzs71af.js → chunk-1r70yykn.js} +3 -3
- package/dist/{chunk-tvnrwrg3.js → chunk-1x1wb96n.js} +62 -60
- package/dist/{chunk-j44ngncb.js → chunk-1yscv3t1.js} +7 -9
- package/dist/{chunk-zhe3rws3.js → chunk-27ppq985.js} +7 -9
- package/dist/{chunk-kbshq7zc.js → chunk-28a1ffp7.js} +59 -56
- package/dist/{chunk-m95fj0wm.js → chunk-2ag1bjqx.js} +4 -4
- package/dist/{chunk-2fx2x8qp.js → chunk-2cz1rwf3.js} +22 -21
- package/dist/{chunk-v1chtgnf.js → chunk-2m6jk78c.js} +1 -1
- package/dist/{chunk-nzchm0f2.js → chunk-2mhgyhns.js} +1 -1
- package/dist/{chunk-n5pe3jtt.js → chunk-2pjptqfa.js} +2 -2
- package/dist/{chunk-5r3wgr44.js → chunk-2qfb22ax.js} +29 -1399
- package/dist/{chunk-n0rn505k.js → chunk-2rcaw0yh.js} +4 -4
- package/dist/{chunk-wp9nwczx.js → chunk-2rtngpm1.js} +8 -10
- package/dist/{chunk-s2cwz71x.js → chunk-2tzmvvew.js} +60 -57
- package/dist/{chunk-ydraa9ey.js → chunk-2xrp0wp0.js} +70 -68
- package/dist/{chunk-jty4xkhc.js → chunk-313nbvgt.js} +5 -5
- package/dist/chunk-3e2a6c4k.js +33 -0
- package/dist/{chunk-hbf3y5tw.js → chunk-3fnhdnj6.js} +22 -21
- package/dist/{chunk-qahkzpj6.js → chunk-3g6kvmg4.js} +6 -8
- package/dist/{chunk-kz13d2bs.js → chunk-3mapywg0.js} +2 -2
- package/dist/{chunk-tw4tjc73.js → chunk-3rk983b5.js} +1 -1
- package/dist/chunk-3vc6mx77.js +119 -0
- package/dist/{chunk-nsxw7en4.js → chunk-3yzyedet.js} +23 -22
- package/dist/{chunk-1q82ecz5.js → chunk-40w1c21c.js} +58 -55
- package/dist/{chunk-bnvd1jc1.js → chunk-4brmjvph.js} +4 -4
- package/dist/{chunk-zwrt0s3s.js → chunk-4er46edn.js} +69 -141
- package/dist/{chunk-fsex4yt2.js → chunk-4h9ek408.js} +7 -9
- package/dist/chunk-4mdqm8b7.js +115 -0
- package/dist/{chunk-9p95042q.js → chunk-4qjh89qr.js} +1 -1
- package/dist/chunk-506gq3zq.js +104 -0
- package/dist/{chunk-w6rh4zpx.js → chunk-5158j5ph.js} +8 -10
- package/dist/{chunk-d969b8ne.js → chunk-524xgs6r.js} +7 -7
- package/dist/{chunk-76hrbqgr.js → chunk-52rnpp5t.js} +16 -18
- package/dist/{chunk-0a2qnsbr.js → chunk-54bwa086.js} +61 -57
- package/dist/{chunk-qn4cbm38.js → chunk-5famfv4a.js} +23 -22
- package/dist/{chunk-kmgp6prw.js → chunk-5khwvj1z.js} +112 -5
- package/dist/{chunk-9byk2a4b.js → chunk-5m7095hq.js} +25 -25
- package/dist/{chunk-g14ex9z0.js → chunk-5mv51kkx.js} +59 -56
- package/dist/{chunk-p2sww3pd.js → chunk-5vqwq0f9.js} +59 -56
- package/dist/{chunk-s26mv9yh.js → chunk-5zbp0a48.js} +7 -8
- package/dist/{chunk-pvtzf6vs.js → chunk-60xm3v9r.js} +3 -3
- package/dist/chunk-6356tyx5.js +32 -0
- package/dist/{chunk-1vzaw5f6.js → chunk-66s9m31j.js} +23 -22
- package/dist/{chunk-c1cm8km0.js → chunk-6ebb5ym0.js} +58 -55
- package/dist/{chunk-yp2yx0qj.js → chunk-6f0296p8.js} +5 -7
- package/dist/{chunk-m2cskgz4.js → chunk-6gftrxn5.js} +86 -81
- package/dist/{chunk-y95se10r.js → chunk-6h1reb8m.js} +22 -21
- package/dist/{chunk-fy6tp8zj.js → chunk-6pb9n4m3.js} +2 -2
- package/dist/{chunk-ardzdtan.js → chunk-6y2wszkc.js} +1 -1
- package/dist/{chunk-4ydmya8m.js → chunk-6y8e5c85.js} +24 -22
- package/dist/{chunk-rshk7m9c.js → chunk-718k4vsj.js} +62 -60
- package/dist/{chunk-tm4w23dp.js → chunk-72091jsk.js} +1 -1
- package/dist/{chunk-xtaw765g.js → chunk-760hjt0a.js} +3 -3
- package/dist/chunk-77dnrj5q.js +119 -0
- package/dist/{chunk-gz4r3k7a.js → chunk-77w9ffyy.js} +5 -5
- package/dist/{chunk-xaw4scep.js → chunk-78009jh9.js} +2 -2
- package/dist/{chunk-6xr5mayh.js → chunk-79vh2q13.js} +58 -55
- package/dist/{chunk-p7d5ms03.js → chunk-7ba2qns8.js} +22 -21
- package/dist/{chunk-6wrs3ahh.js → chunk-7dy65axk.js} +22 -21
- package/dist/{chunk-n35gnb9g.js → chunk-7hmy36fh.js} +121 -2
- package/dist/{chunk-erxndz83.js → chunk-7kfps7yt.js} +7 -9
- package/dist/chunk-7r3d9nyj.js +113 -0
- package/dist/{chunk-dne2ghq6.js → chunk-7yfxza07.js} +16 -22
- package/dist/chunk-7zw138yt.js +32 -0
- package/dist/{chunk-6ye6d9gw.js → chunk-81dxa3fd.js} +1 -1
- package/dist/{chunk-540608wh.js → chunk-86jhenxk.js} +66 -57
- package/dist/chunk-88mfsn97.js +115 -0
- package/dist/{chunk-zy4fsy90.js → chunk-8gs07wbw.js} +18 -18
- package/dist/{chunk-4ayhftnk.js → chunk-8h4gpg9r.js} +83 -119
- package/dist/{chunk-brnc96x6.js → chunk-8h7bg6q9.js} +203 -24
- package/dist/chunk-8mspr5sg.js +47 -0
- package/dist/{chunk-62dx37pf.js → chunk-8pskaz4y.js} +9 -11
- package/dist/{chunk-sn3wbs2w.js → chunk-8xbwczap.js} +58 -55
- package/dist/{chunk-tw2wjsnb.js → chunk-8xsjtkh4.js} +4 -4
- package/dist/{chunk-ky85ntn8.js → chunk-8y0ghcs4.js} +69 -66
- package/dist/chunk-8zzqydag.js +101 -0
- package/dist/{chunk-cpvn0j86.js → chunk-924n94wb.js} +22 -21
- package/dist/{chunk-0asd58w2.js → chunk-92p2k7yk.js} +11 -11
- package/dist/{chunk-qvywetwr.js → chunk-93cd0z7w.js} +66 -64
- package/dist/{chunk-db82mfh9.js → chunk-97svwq59.js} +73 -71
- package/dist/{chunk-3j857x3k.js → chunk-99cjjht1.js} +60 -58
- package/dist/{chunk-pedmqmrf.js → chunk-9awawyvh.js} +6 -6
- package/dist/{chunk-22rs73mh.js → chunk-9b6wqcyk.js} +60 -57
- package/dist/{chunk-cxf74p1t.js → chunk-9datyj43.js} +2 -2
- package/dist/{chunk-n1pa72ns.js → chunk-9qh5f9r3.js} +7 -12
- package/dist/{chunk-vb6w46m9.js → chunk-9revwk5g.js} +59 -56
- package/dist/{chunk-g71q1n7x.js → chunk-a0m994d6.js} +58 -55
- package/dist/{chunk-ftajx4gw.js → chunk-a0qhdfct.js} +49 -160
- package/dist/{chunk-0xq2bfvv.js → chunk-a5w8nyhg.js} +2 -2
- package/dist/{chunk-ms9225af.js → chunk-a85wqwq4.js} +58 -55
- package/dist/{chunk-3c81vb6k.js → chunk-a92eevfn.js} +6 -8
- package/dist/{chunk-2katyzq9.js → chunk-ab6gc90x.js} +3 -5
- package/dist/{chunk-j50zvssc.js → chunk-ad6rg8vz.js} +5 -5
- package/dist/{chunk-z7svjppe.js → chunk-admwpsa6.js} +10 -14
- package/dist/{chunk-v081mpyx.js → chunk-ahexmj4s.js} +24 -26
- package/dist/{chunk-7z0078sp.js → chunk-att0rknb.js} +2 -2
- package/dist/{chunk-prgsmrmy.js → chunk-axenqvc8.js} +2 -2
- package/dist/{chunk-mfzgqp0c.js → chunk-azq1qstz.js} +10 -14
- package/dist/{chunk-zajs1j2b.js → chunk-b125aa22.js} +59 -57
- package/dist/{chunk-9f01qpne.js → chunk-b4wfv4fx.js} +73 -71
- package/dist/{chunk-ns3babbs.js → chunk-b5wxetbv.js} +224 -1
- package/dist/chunk-b62vj92a.js +94 -0
- package/dist/{chunk-9v5bwvbm.js → chunk-b6drr9se.js} +63 -61
- package/dist/chunk-b7kfr260.js +168 -0
- package/dist/chunk-b9pqgq8z.js +37 -0
- package/dist/{chunk-c8rgc3hw.js → chunk-bevwqet9.js} +66 -64
- package/dist/{chunk-m2rx2dtd.js → chunk-bgf5zvvv.js} +91 -89
- package/dist/{chunk-fye86v7m.js → chunk-bq8zdg7m.js} +58 -55
- package/dist/chunk-bww2h6d4.js +114 -0
- package/dist/{chunk-m83vaktc.js → chunk-bx165r58.js} +1 -1
- package/dist/{chunk-4q5a5mjb.js → chunk-c092k38b.js} +3532 -1684
- package/dist/{chunk-163379k5.js → chunk-c0avjkfn.js} +58 -55
- package/dist/{chunk-ermvk1xn.js → chunk-c3s22pgw.js} +61 -58
- package/dist/{chunk-zahg0adp.js → chunk-c4g5qaey.js} +5 -5
- package/dist/{chunk-f6wypwa6.js → chunk-c6nthjxa.js} +6 -4
- package/dist/{chunk-wmd0v561.js → chunk-c7d1acex.js} +5 -7
- package/dist/{chunk-wmbpegg3.js → chunk-c7t69jmn.js} +1 -1
- package/dist/{chunk-vm0b9vaz.js → chunk-cg3bb5pe.js} +9 -9
- package/dist/{chunk-m8v1x99r.js → chunk-chzfw06n.js} +3 -5
- package/dist/chunk-cm2xfg7q.js +1394 -0
- package/dist/{chunk-4yxd0e7k.js → chunk-crj9bjh5.js} +58 -55
- package/dist/{chunk-v4nrk2f9.js → chunk-cstkqpd5.js} +7 -8
- package/dist/{chunk-3nwsgn73.js → chunk-ctj2ehwz.js} +59 -56
- package/dist/{chunk-mcbqmbp2.js → chunk-cwwfyvbq.js} +6 -4
- package/dist/{chunk-9nddm5c7.js → chunk-cxf9amp4.js} +2 -3
- package/dist/chunk-cxmyg49v.js +104 -0
- package/dist/{chunk-5wb5ym2h.js → chunk-cy1z66c2.js} +3 -5
- package/dist/{chunk-nbzntnkz.js → chunk-d2q17m4k.js} +60 -58
- package/dist/{chunk-ymtkahxp.js → chunk-d2wzkwws.js} +69 -66
- package/dist/{chunk-x4t0n8t3.js → chunk-d4qdesrx.js} +3 -4
- package/dist/chunk-d4zyytan.js +3802 -0
- package/dist/{chunk-8q4yg5pk.js → chunk-d57t992t.js} +9 -96
- package/dist/{chunk-g2tmm7k7.js → chunk-dafnbqhh.js} +76 -74
- package/dist/{chunk-tjbjxrqz.js → chunk-dfcm57ek.js} +6 -6
- package/dist/{chunk-ynjbppdn.js → chunk-dgnwk906.js} +60 -58
- package/dist/{chunk-7gxyarah.js → chunk-dhwpmz98.js} +61 -58
- package/dist/{chunk-yevbmk5g.js → chunk-djzvjzdg.js} +3 -3
- package/dist/chunk-dm5e2sj0.js +187 -0
- package/dist/{chunk-145d3809.js → chunk-dnpy3zcs.js} +63 -60
- package/dist/{chunk-h7ffkxg4.js → chunk-drvfxfe5.js} +26 -25
- package/dist/{chunk-c14sp904.js → chunk-dv4dsh0t.js} +7 -7
- package/dist/{chunk-9ejadhq8.js → chunk-dyp88vca.js} +64 -62
- package/dist/{chunk-xfft38wf.js → chunk-dytg8n15.js} +12 -12
- package/dist/{chunk-j3ctqpsn.js → chunk-e1bt4m2g.js} +2 -2
- package/dist/{chunk-vvm5az9j.js → chunk-e23snepr.js} +3 -3
- package/dist/{chunk-hgfw7nx2.js → chunk-e6sqr0av.js} +58 -55
- package/dist/{chunk-v7xwthvg.js → chunk-e9eyqwk5.js} +405 -283
- package/dist/{chunk-2wvxqpfc.js → chunk-efkjha6m.js} +8 -9
- package/dist/{chunk-3s2gjp2n.js → chunk-ekpm458a.js} +67 -65
- package/dist/{chunk-vf3etxnx.js → chunk-emxnq07z.js} +1 -1
- package/dist/{chunk-c4x4fb6d.js → chunk-erkssp71.js} +58 -55
- package/dist/chunk-es08rrda.js +112 -0
- package/dist/{chunk-c209ascy.js → chunk-ewxpkqxt.js} +9 -9
- package/dist/{chunk-1wykga1n.js → chunk-f25pnrvx.js} +4 -6
- package/dist/chunk-f2y3t9hh.js +295 -0
- package/dist/{chunk-427mfnyx.js → chunk-f31b63fd.js} +1 -1
- package/dist/{chunk-2dsqf7sp.js → chunk-f57cvf1d.js} +1 -1
- package/dist/{chunk-ry1jb15g.js → chunk-f872fekv.js} +58 -55
- package/dist/{chunk-r7s0jwb1.js → chunk-faey4sqw.js} +59 -56
- package/dist/{chunk-40ax4h54.js → chunk-fbbjchdz.js} +60 -58
- package/dist/{chunk-fskf0b3x.js → chunk-fbedkst6.js} +6 -8
- package/dist/{chunk-9msn8xwq.js → chunk-fckykghd.js} +2 -3
- package/dist/{chunk-ztrgnar4.js → chunk-fdbvcs34.js} +7 -9
- package/dist/{chunk-667f3w39.js → chunk-ffpz33kr.js} +23 -22
- package/dist/{chunk-0fpkjw2j.js → chunk-ffvja87d.js} +8 -10
- package/dist/{chunk-r6gyed9y.js → chunk-fjpdtr6s.js} +9 -9
- package/dist/{chunk-8y1zs48n.js → chunk-fnpd8cnq.js} +1 -1
- package/dist/{chunk-eef1npre.js → chunk-fxpsa506.js} +4 -6
- package/dist/{chunk-2z6bv21c.js → chunk-fxrrsvnw.js} +23 -27
- package/dist/chunk-fz4wmnm6.js +157 -0
- package/dist/{chunk-2c4jgf3n.js → chunk-g3dbfhxa.js} +5 -7
- package/dist/{chunk-s13m8efn.js → chunk-g86dg6h5.js} +5 -5
- package/dist/{chunk-h7mpryyc.js → chunk-gc4x22mt.js} +59 -56
- package/dist/{chunk-5s1bctjb.js → chunk-gfxebcsw.js} +28 -28
- package/dist/chunk-ghbtnfr2.js +117 -0
- package/dist/{chunk-gpk30ekc.js → chunk-gqftywrx.js} +23 -22
- package/dist/{chunk-z2aps7d9.js → chunk-gwrngewt.js} +3 -3
- package/dist/{chunk-psp1n9vg.js → chunk-gxfbedta.js} +1 -1
- package/dist/{chunk-fq1j9zm0.js → chunk-gybj15eh.js} +2 -3
- package/dist/chunk-h0vzd5vg.js +1012 -0
- package/dist/{chunk-0ahxmrws.js → chunk-h14dkna4.js} +23 -22
- package/dist/{chunk-x42kc5wj.js → chunk-h26xfh6d.js} +22 -21
- package/dist/{chunk-nwgkkhk7.js → chunk-h2vfn30x.js} +4 -4
- package/dist/{chunk-mh8752jz.js → chunk-h37gar4j.js} +1 -1
- package/dist/{chunk-n612gr22.js → chunk-h4k9kgjw.js} +59 -56
- package/dist/{chunk-1av0kkwh.js → chunk-hc1tkwfn.js} +3 -5
- package/dist/{chunk-h5dk6k0g.js → chunk-hf086e2e.js} +58 -55
- package/dist/{chunk-66j7fn6z.js → chunk-hhwqk5as.js} +58 -55
- package/dist/{chunk-e8zmtbry.js → chunk-hjw03d0k.js} +60 -58
- package/dist/{chunk-e1t8jh0t.js → chunk-hkh1vbm6.js} +58 -55
- package/dist/{chunk-81dq52pk.js → chunk-hnxmafvc.js} +2 -2
- package/dist/{chunk-cj8m3h8r.js → chunk-hqpzpr71.js} +2 -2
- package/dist/{chunk-s3aygngf.js → chunk-hrz2d28r.js} +62 -60
- package/dist/chunk-hxb3js2g.js +91 -0
- package/dist/{chunk-j06y02aw.js → chunk-hxc8e6wd.js} +1 -1
- package/dist/chunk-hyy2fcba.js +351 -0
- package/dist/{chunk-dvf5921w.js → chunk-hyz9tx05.js} +15 -17
- package/dist/{chunk-ag3hbrat.js → chunk-j34h8cfj.js} +23 -22
- package/dist/{chunk-b31v41mz.js → chunk-j5w0b4d2.js} +23 -22
- package/dist/{chunk-2tcznfv0.js → chunk-j66ragf9.js} +1 -1
- package/dist/chunk-j7b884wk.js +397 -0
- package/dist/{chunk-35xyzbd2.js → chunk-ja21qbpj.js} +65 -62
- package/dist/{chunk-dchgtage.js → chunk-ja3eb4h9.js} +3 -3
- package/dist/{chunk-2crz81z3.js → chunk-jac470kz.js} +1 -1
- package/dist/{chunk-9nydmbm4.js → chunk-jaqtnpbt.js} +2 -2
- package/dist/{chunk-e03zrq9n.js → chunk-jc5dtv57.js} +60 -58
- package/dist/{chunk-jg7na104.js → chunk-jda4vjad.js} +58 -55
- package/dist/{chunk-drnxbc1w.js → chunk-jeqt4y47.js} +2 -2
- package/dist/{chunk-r7r3jm3y.js → chunk-jga4j8jp.js} +59 -57
- package/dist/{chunk-58rg6rn2.js → chunk-jge10dbd.js} +4 -6
- package/dist/{chunk-9k2c5sxb.js → chunk-jhbj5mnf.js} +58 -55
- package/dist/{chunk-zh6xf1fd.js → chunk-jje04m6z.js} +2 -2
- package/dist/{chunk-qkrenskm.js → chunk-jnfd01as.js} +9 -11
- package/dist/chunk-jpbkdg47.js +131 -0
- package/dist/{chunk-xcq3rdb0.js → chunk-jwb3bqa7.js} +27 -31
- package/dist/{chunk-s1p2w5a5.js → chunk-jy4dnnjk.js} +5 -5
- package/dist/{chunk-c9p5eyxf.js → chunk-k27dq4vd.js} +60 -57
- package/dist/{chunk-kmcaa88h.js → chunk-k81zec2p.js} +1 -1
- package/dist/{chunk-fxqp3yt4.js → chunk-kb2b4rkg.js} +4 -5
- package/dist/{chunk-h6dqpbac.js → chunk-kbsckx2r.js} +3 -3
- package/dist/{chunk-451hjtv9.js → chunk-kvezjrjy.js} +58 -55
- package/dist/{chunk-zc1s4swn.js → chunk-kw2ymvyv.js} +6 -8
- package/dist/{chunk-9jg130e9.js → chunk-kymh4vxw.js} +58 -55
- package/dist/{chunk-z66q1nam.js → chunk-kz3q1ce0.js} +58 -55
- package/dist/chunk-m089kb0s.js +312 -0
- package/dist/{chunk-86tz7yxt.js → chunk-m1efbjqe.js} +58 -55
- package/dist/chunk-m1xw79dd.js +1757 -0
- package/dist/{chunk-k303kw9v.js → chunk-m365zhp8.js} +59 -56
- package/dist/{chunk-0h4sw1v3.js → chunk-m97dyxn0.js} +61 -60
- package/dist/{chunk-e4jqbn4d.js → chunk-m9w972ny.js} +2 -4
- package/dist/{chunk-eserktyd.js → chunk-mb93ek5j.js} +4 -6
- package/dist/{chunk-c96k89rp.js → chunk-mgjc0yj9.js} +59 -57
- package/dist/{chunk-qmckdcc4.js → chunk-mh2pdxpc.js} +60 -58
- package/dist/{chunk-hnx0eg6x.js → chunk-mkae8zj9.js} +3 -3
- package/dist/{chunk-h0s737p0.js → chunk-mmq55gyp.js} +4 -4
- package/dist/{chunk-5k4kh5n9.js → chunk-ndrn50x0.js} +59 -57
- package/dist/{chunk-0pxmxyxv.js → chunk-ng2xq7ey.js} +3 -3
- package/dist/{chunk-gdb6dvba.js → chunk-nsbpzpmf.js} +61 -59
- package/dist/{chunk-18mm4jf8.js → chunk-nz7sgbbr.js} +5 -5
- package/dist/{chunk-t0b0bas5.js → chunk-nzfwsrd7.js} +3 -3
- package/dist/{chunk-rhxtttx1.js → chunk-p3zbzfbn.js} +3 -3
- package/dist/{chunk-9tc901nb.js → chunk-p5jssxha.js} +24 -24
- package/dist/{chunk-zmpygkz6.js → chunk-p7es39d1.js} +47 -122
- package/dist/{chunk-qwj4n799.js → chunk-p7pj6wf8.js} +1 -1
- package/dist/{chunk-855katq2.js → chunk-p9f12fp9.js} +60 -57
- package/dist/chunk-pb73zgyd.js +55 -0
- package/dist/chunk-prpjmapz.js +117 -0
- package/dist/{chunk-379rspd7.js → chunk-ps01q3n9.js} +64 -63
- package/dist/{chunk-ay9wm3tf.js → chunk-q19p9j0v.js} +5 -5
- package/dist/{chunk-536fmbtq.js → chunk-q7e12ymw.js} +4 -4
- package/dist/{chunk-w65283w4.js → chunk-qgajfxr7.js} +7 -7
- package/dist/{chunk-24qcj0k5.js → chunk-qgnsf30p.js} +24 -23
- package/dist/{chunk-xvjdbsfa.js → chunk-qs2atqgy.js} +60 -58
- package/dist/chunk-r469z4mx.js +183 -0
- package/dist/chunk-r5mqktt5.js +100 -0
- package/dist/chunk-r854e43q.js +25 -0
- package/dist/{chunk-fx6ghdvg.js → chunk-rbgr86hh.js} +59 -57
- package/dist/{chunk-qxv21mcq.js → chunk-rbvawtdz.js} +59 -56
- package/dist/chunk-rce8gj2b.js +93 -0
- package/dist/{chunk-t0twk3e5.js → chunk-rd2884ff.js} +1 -1
- package/dist/{chunk-c2ktjyc0.js → chunk-reqz49y3.js} +336 -1149
- package/dist/{chunk-b4twmt0s.js → chunk-rhjb0dgd.js} +24 -23
- package/dist/{chunk-bpmw0wp2.js → chunk-rq1nfp7x.js} +60 -58
- package/dist/{chunk-qhbchv06.js → chunk-rsr0mksm.js} +61 -59
- package/dist/{chunk-txeekahj.js → chunk-rz3rq0gt.js} +4 -6
- package/dist/{chunk-14mkqwft.js → chunk-rz69sqyh.js} +70 -68
- package/dist/{chunk-gfk81w5r.js → chunk-s2n5kxm0.js} +5 -5
- package/dist/{chunk-3b9ar57s.js → chunk-s39ksgef.js} +4 -6
- package/dist/{chunk-3er4wswe.js → chunk-s70z817q.js} +197 -196
- package/dist/{chunk-5h17d17z.js → chunk-se153zng.js} +1 -1
- package/dist/chunk-spqq5qf1.js +116 -0
- package/dist/{chunk-xjd32sva.js → chunk-srnstx2s.js} +23 -22
- package/dist/{chunk-s9nr589x.js → chunk-sv7afh51.js} +6 -8
- package/dist/{chunk-b6whrv9m.js → chunk-swzfr1f5.js} +24 -23
- package/dist/{chunk-2h06sph0.js → chunk-t2822cex.js} +63 -60
- package/dist/{chunk-h93tjx98.js → chunk-t2re5hhc.js} +125 -119
- package/dist/{chunk-r325sbz7.js → chunk-t7e9etws.js} +23 -25
- package/dist/{chunk-59mg8c5k.js → chunk-tnx1zk9t.js} +62 -59
- package/dist/{chunk-rgpxnjx4.js → chunk-tw24rz1x.js} +11 -13
- package/dist/{chunk-r8m19xnp.js → chunk-v038k0we.js} +4 -6
- package/dist/chunk-v2qqkqxp.js +116 -0
- package/dist/{chunk-fjne3x6c.js → chunk-v4qke3cz.js} +8 -8
- package/dist/{chunk-qwa5erw8.js → chunk-v6p3019x.js} +24 -23
- package/dist/{chunk-4stgesb0.js → chunk-vatz6gan.js} +25 -27
- package/dist/chunk-vfmx405p.js +14 -0
- package/dist/{chunk-x639j7py.js → chunk-vnn4x6jw.js} +62 -59
- package/dist/{chunk-b4btw5kv.js → chunk-vpe2s4eq.js} +7 -9
- package/dist/{chunk-2t5ve6ev.js → chunk-vsbyhpfy.js} +1 -1
- package/dist/{chunk-52evx0rm.js → chunk-w0pf4mvz.js} +12 -16
- package/dist/chunk-w5j0dhpp.js +14 -0
- package/dist/{chunk-vqawqpkx.js → chunk-w7zp9j8v.js} +72 -70
- package/dist/{chunk-d2vb6m9e.js → chunk-wd8mqz95.js} +3 -5
- package/dist/chunk-wj0c0zfa.js +36 -0
- package/dist/{chunk-ps5rsyxe.js → chunk-wqdr8v9x.js} +58 -55
- package/dist/{chunk-vpp13z80.js → chunk-wxa2hdfg.js} +2 -2
- package/dist/{chunk-kh04yrpx.js → chunk-wy3f5b81.js} +59 -56
- package/dist/{chunk-5dn1m1r7.js → chunk-x0ym1db4.js} +2 -4
- package/dist/{chunk-d73t8nhj.js → chunk-x1t80e36.js} +39 -39
- package/dist/{chunk-08a6n2pp.js → chunk-x63c39tp.js} +5 -7
- package/dist/{chunk-q890kpff.js → chunk-x6622cb2.js} +23 -22
- package/dist/{chunk-wcxc5m91.js → chunk-x95fhbwq.js} +1 -1
- package/dist/{chunk-px27vhxx.js → chunk-x9gbnheg.js} +8 -10
- package/dist/{chunk-9gypgvd7.js → chunk-xahpt5e2.js} +3 -5
- package/dist/{chunk-y3rg86fk.js → chunk-xct1m4sf.js} +23 -22
- package/dist/chunk-xee276gg.js +367 -0
- package/dist/{chunk-n8whv674.js → chunk-xfkf8q6w.js} +5 -6
- package/dist/chunk-xhesahm0.js +15 -0
- package/dist/{chunk-tbma29g4.js → chunk-xk1wdwxq.js} +60 -57
- package/dist/{chunk-gwah3f17.js → chunk-xpj4qca4.js} +58 -55
- package/dist/{chunk-h6wkvzrd.js → chunk-xqk8srdh.js} +6 -8
- package/dist/{chunk-39zy97qa.js → chunk-xsc3ccj0.js} +3 -3
- package/dist/{chunk-y82s03p7.js → chunk-xwc8e4yv.js} +2 -2
- package/dist/{chunk-8wv29424.js → chunk-xxmxv448.js} +8 -9
- package/dist/{chunk-symd8dvh.js → chunk-xz7cf7fa.js} +69 -66
- package/dist/{chunk-h7bkf3h2.js → chunk-y3qdyf8r.js} +28 -27
- package/dist/{chunk-j5eb93j4.js → chunk-y48wfwm4.js} +1 -517
- package/dist/{chunk-6qexrv9a.js → chunk-y7vzcjyn.js} +60 -58
- package/dist/chunk-yb03gvd8.js +271 -0
- package/dist/chunk-yem3ge7z.js +182 -0
- package/dist/{chunk-vmpcmvqq.js → chunk-yf5qwpnp.js} +3 -3
- package/dist/{chunk-awwfrm4f.js → chunk-yrnbgtk0.js} +26 -25
- package/dist/{chunk-64mwy58c.js → chunk-yrs92qya.js} +5 -7
- package/dist/{chunk-y29pdynp.js → chunk-ys6cza46.js} +7 -9
- package/dist/{chunk-kcp8svja.js → chunk-yvgmpc5z.js} +5 -5
- package/dist/{chunk-3avnvgnv.js → chunk-yxr0yf6h.js} +4 -4
- package/dist/{chunk-ar8awa36.js → chunk-yyc1yvnr.js} +59 -57
- package/dist/{chunk-kmzv85ze.js → chunk-z0vk43bt.js} +69 -66
- package/dist/chunk-z1seyvya.js +110 -0
- package/dist/{chunk-2pdcq92c.js → chunk-z6hqga26.js} +3 -4
- package/dist/{chunk-5ccpwbk7.js → chunk-z7hv619f.js} +58 -55
- package/dist/{chunk-1ez8vf1y.js → chunk-zb0mctxm.js} +6 -6
- package/dist/{chunk-49n22kr8.js → chunk-zhyc7npp.js} +58 -55
- package/dist/{chunk-9r28w6ye.js → chunk-zttmdag3.js} +1 -1
- package/dist/{chunk-p1af059d.js → chunk-zvegtrc4.js} +63 -60
- package/dist/{chunk-n2gc23dm.js → chunk-zwsrj2yy.js} +9 -11
- package/dist/cli.js +58 -22
- package/package.json +12 -4
- package/dist/chunk-0731m51q.js +0 -8
- package/dist/chunk-2fwze72g.js +0 -24
- package/dist/chunk-3ev51j3h.js +0 -117
- package/dist/chunk-5cc50ecq.js +0 -116
- package/dist/chunk-74v2mh4t.js +0 -40
- package/dist/chunk-9b0btjar.js +0 -114
- package/dist/chunk-bhvmpf9m.js +0 -113
- package/dist/chunk-bzps3qec.js +0 -113
- package/dist/chunk-e6nenv5n.js +0 -112
- package/dist/chunk-ez958w7j.js +0 -110
- package/dist/chunk-fve53rbk.js +0 -22
- package/dist/chunk-g5rf37hh.js +0 -116
- package/dist/chunk-ga2vcmhy.js +0 -111
- package/dist/chunk-k5c76pvm.js +0 -114
- package/dist/chunk-npf5eh3g.js +0 -8
- package/dist/chunk-ppwjyveh.js +0 -8
- package/dist/chunk-t38536jf.js +0 -254
- package/dist/chunk-tf8gr3bs.js +0 -112
- package/dist/chunk-vam5at9t.js +0 -175
- package/dist/chunk-vxnvzfnv.js +0 -233
- package/dist/chunk-wef34bk5.js +0 -107
- package/dist/chunk-wkjjv1jr.js +0 -1026
- package/dist/chunk-wkx2xsed.js +0 -113
- package/dist/chunk-x6r4v44b.js +0 -8
- package/dist/chunk-xwhmcc3g.js +0 -109
|
@@ -2,41 +2,36 @@
|
|
|
2
2
|
import {
|
|
3
3
|
HybridTransport,
|
|
4
4
|
WebSocketTransport
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-0y6h57c5.js";
|
|
6
6
|
import {
|
|
7
7
|
CCRClient,
|
|
8
8
|
CCRInitError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zwsrj2yy.js";
|
|
10
10
|
import {
|
|
11
11
|
StructuredIO,
|
|
12
|
-
buildSystemInitMessage,
|
|
13
|
-
exports_MessageSelector,
|
|
14
12
|
exports_cronJitterConfig,
|
|
15
13
|
exports_cronScheduler,
|
|
16
14
|
extractInboundMessageFields,
|
|
17
|
-
init_MessageSelector,
|
|
18
15
|
init_cronJitterConfig,
|
|
19
16
|
init_cronScheduler,
|
|
20
17
|
ndjsonSafeStringify,
|
|
21
18
|
outputSchema,
|
|
22
19
|
permissionPromptToolResultToPermissionDecision,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
sdkCompatToolName
|
|
26
|
-
} from "./chunk-5r3wgr44.js";
|
|
20
|
+
reconcileMarketplaces
|
|
21
|
+
} from "./chunk-2qfb22ax.js";
|
|
27
22
|
import {
|
|
28
23
|
restoreAgentFromSession,
|
|
29
24
|
restoreSessionStateFromLog,
|
|
30
25
|
skillChangeDetector
|
|
31
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-fjpdtr6s.js";
|
|
32
27
|
import {
|
|
33
28
|
detectAndUninstallDelistedPlugins
|
|
34
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-a92eevfn.js";
|
|
35
30
|
import"./chunk-nt837qt9.js";
|
|
36
|
-
import"./chunk-
|
|
31
|
+
import"./chunk-ja3eb4h9.js";
|
|
37
32
|
import {
|
|
38
33
|
externalMetadataToAppState
|
|
39
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-jy4dnnjk.js";
|
|
40
35
|
import {
|
|
41
36
|
getSessionState,
|
|
42
37
|
notifySessionMetadataChanged,
|
|
@@ -44,87 +39,82 @@ import {
|
|
|
44
39
|
setPermissionModeChangedListener,
|
|
45
40
|
setSessionMetadataChangedListener,
|
|
46
41
|
setSessionStateChangedListener
|
|
47
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-j66ragf9.js";
|
|
43
|
+
import {
|
|
44
|
+
ask,
|
|
45
|
+
buildSideQuestionFallbackParams
|
|
46
|
+
} from "./chunk-h0vzd5vg.js";
|
|
47
|
+
import"./chunk-cm2xfg7q.js";
|
|
48
48
|
import {
|
|
49
49
|
getPollIntervalConfig
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import"./chunk-
|
|
50
|
+
} from "./chunk-72091jsk.js";
|
|
51
|
+
import"./chunk-rz3rq0gt.js";
|
|
52
52
|
import {
|
|
53
53
|
SSETransport,
|
|
54
54
|
init_SSETransport
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-01ysfcs0.js";
|
|
56
56
|
import {
|
|
57
57
|
init_toolPool,
|
|
58
58
|
mergeAndFilterTools
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import"./chunk-
|
|
59
|
+
} from "./chunk-xwc8e4yv.js";
|
|
60
|
+
import"./chunk-bx165r58.js";
|
|
61
61
|
import {
|
|
62
62
|
init_settingsSync
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-8xsjtkh4.js";
|
|
64
64
|
import {
|
|
65
65
|
init_refresh,
|
|
66
66
|
refreshActivePlugins
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
init_mappers,
|
|
70
|
-
localCommandOutputToSDKAssistantMessage,
|
|
71
|
-
toInternalMessages,
|
|
72
|
-
toSDKCompactMetadata,
|
|
73
|
-
toSDKRateLimitInfo
|
|
74
|
-
} from "./chunk-yevbmk5g.js";
|
|
67
|
+
} from "./chunk-c7d1acex.js";
|
|
75
68
|
import {
|
|
76
69
|
generateSessionTitle,
|
|
77
70
|
init_sessionTitle
|
|
78
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-c6nthjxa.js";
|
|
72
|
+
import"./chunk-cnsj3vq2.js";
|
|
79
73
|
import {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
init_mappers,
|
|
75
|
+
toInternalMessages,
|
|
76
|
+
toSDKRateLimitInfo
|
|
77
|
+
} from "./chunk-djzvjzdg.js";
|
|
83
78
|
import {
|
|
84
79
|
init_omit,
|
|
85
80
|
omit_default
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import"./chunk-
|
|
88
|
-
import"./chunk-
|
|
81
|
+
} from "./chunk-2rcaw0yh.js";
|
|
82
|
+
import"./chunk-27ppq985.js";
|
|
83
|
+
import"./chunk-313nbvgt.js";
|
|
89
84
|
import {
|
|
90
85
|
ChannelMessageNotificationSchema,
|
|
91
86
|
findChannelEntry,
|
|
92
87
|
gateChannelServer,
|
|
93
88
|
init_channelNotification,
|
|
94
89
|
wrapChannelMessage
|
|
95
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-yvgmpc5z.js";
|
|
96
91
|
import {
|
|
97
92
|
init_channelAllowlist,
|
|
98
93
|
isChannelAllowlisted,
|
|
99
94
|
isChannelsEnabled
|
|
100
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-3mapywg0.js";
|
|
101
96
|
import {
|
|
102
97
|
collectContextData,
|
|
103
98
|
init_context_noninteractive
|
|
104
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-e23snepr.js";
|
|
105
100
|
import"./chunk-q2pkj7sp.js";
|
|
106
101
|
import {
|
|
107
102
|
init_sideQuestion,
|
|
108
103
|
runSideQuestion
|
|
109
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-cwwfyvbq.js";
|
|
110
105
|
import"./chunk-rn0v1hk8.js";
|
|
111
106
|
import {
|
|
112
107
|
DEFAULT_OUTPUT_STYLE_NAME,
|
|
113
108
|
EFFORT_LEVELS,
|
|
114
109
|
OAuthService,
|
|
115
110
|
SHELL_TOOL_NAMES,
|
|
116
|
-
SYNTHETIC_MESSAGES,
|
|
117
|
-
SYNTHETIC_OUTPUT_TOOL_NAME,
|
|
118
111
|
SandboxManager,
|
|
119
|
-
accumulateUsage,
|
|
120
112
|
applySettingsChange,
|
|
121
113
|
areMcpConfigsEqual,
|
|
122
114
|
asSessionId,
|
|
123
|
-
asSystemPrompt,
|
|
124
115
|
assembleToolPool,
|
|
125
116
|
atomicWriteToZipCache,
|
|
126
117
|
buildBridgeConnectUrl,
|
|
127
|
-
categorizeRetryableAPIError,
|
|
128
118
|
checkGroveForNonInteractive,
|
|
129
119
|
cleanupSessionPluginCache,
|
|
130
120
|
clearCommandsCache,
|
|
@@ -132,11 +122,12 @@ import {
|
|
|
132
122
|
clearPluginCache,
|
|
133
123
|
clearServerCache,
|
|
134
124
|
commandBelongsToServer,
|
|
125
|
+
commitAutonomyQueuedPrompt,
|
|
135
126
|
connectToServer,
|
|
136
|
-
countToolCalls,
|
|
137
127
|
createAbortController,
|
|
138
128
|
createCombinedAbortSignal,
|
|
139
129
|
createModelSwitchBreadcrumbs,
|
|
130
|
+
createProactiveAutonomyCommands,
|
|
140
131
|
createSyntheticOutputTool,
|
|
141
132
|
dequeue,
|
|
142
133
|
dequeueAllMatching,
|
|
@@ -149,21 +140,19 @@ import {
|
|
|
149
140
|
exports_loadAgentsDir,
|
|
150
141
|
exports_proactive,
|
|
151
142
|
exports_prompt1 as exports_prompt,
|
|
152
|
-
exports_snipCompact,
|
|
153
|
-
exports_snipProjection,
|
|
154
143
|
extractReadFilesFromMessages,
|
|
155
144
|
fetchToolsForClient,
|
|
156
145
|
fileHistoryCanRestore,
|
|
157
146
|
fileHistoryEnabled,
|
|
158
147
|
fileHistoryGetDiffStats,
|
|
159
|
-
fileHistoryMakeSnapshot,
|
|
160
148
|
fileHistoryRewind,
|
|
161
149
|
filterMcpServersByPolicy,
|
|
162
150
|
filterToolsByDenyRules,
|
|
163
151
|
filterToolsByServer,
|
|
152
|
+
finalizeAutonomyRunCompleted,
|
|
153
|
+
finalizeAutonomyRunFailed,
|
|
164
154
|
finalizePendingAsyncHooks,
|
|
165
155
|
findUnresolvedToolUse,
|
|
166
|
-
flushSessionStorage,
|
|
167
156
|
formatDescriptionWithSource,
|
|
168
157
|
fromArray,
|
|
169
158
|
getAllMcpConfigs,
|
|
@@ -179,17 +168,11 @@ import {
|
|
|
179
168
|
getPluginZipCachePath,
|
|
180
169
|
getRemoteSessionUrl,
|
|
181
170
|
getRunningTasks,
|
|
182
|
-
getScratchpadDir,
|
|
183
|
-
getSlashCommandToolSkills,
|
|
184
|
-
getSystemContext,
|
|
185
|
-
getSystemPrompt,
|
|
186
|
-
getUserContext,
|
|
187
171
|
getZipCacheKnownMarketplacesPath,
|
|
188
172
|
getZipCacheMarketplacesDir,
|
|
189
173
|
getZipCachePluginsDir,
|
|
190
174
|
gracefulShutdown,
|
|
191
175
|
gracefulShutdownSync,
|
|
192
|
-
handleOrphanedPermission,
|
|
193
176
|
hasCommandsInQueue,
|
|
194
177
|
hasPermissionsToUseTool,
|
|
195
178
|
headlessProfilerCheckpoint,
|
|
@@ -197,35 +180,31 @@ import {
|
|
|
197
180
|
hydrateFromCCRv2InternalEvents,
|
|
198
181
|
hydrateRemoteSession,
|
|
199
182
|
init_AsyncHookRegistry,
|
|
200
|
-
init_Shell,
|
|
201
183
|
init_SyntheticOutputTool,
|
|
202
184
|
init_Tool,
|
|
203
185
|
init_abortController,
|
|
204
186
|
init_applySettingsChange,
|
|
205
187
|
init_auth as init_auth2,
|
|
206
188
|
init_auth1 as init_auth3,
|
|
189
|
+
init_autonomyAuthority,
|
|
190
|
+
init_autonomyRuns,
|
|
207
191
|
init_bridgeStatusUtil,
|
|
208
192
|
init_changeDetector,
|
|
209
|
-
init_claude,
|
|
210
193
|
init_claudeAiLimits,
|
|
211
194
|
init_client,
|
|
212
195
|
init_combinedAbortSignal,
|
|
213
196
|
init_commandLifecycle,
|
|
214
197
|
init_commands1 as init_commands,
|
|
215
|
-
init_config
|
|
198
|
+
init_config,
|
|
216
199
|
init_constants,
|
|
217
200
|
init_constants1 as init_constants2,
|
|
218
|
-
init_context,
|
|
219
201
|
init_conversationRecovery,
|
|
220
202
|
init_coordinatorMode,
|
|
221
|
-
init_cost_tracker,
|
|
222
203
|
init_effort,
|
|
223
204
|
init_elicitationHandler,
|
|
224
|
-
init_errors as init_errors2,
|
|
225
205
|
init_extractMemories,
|
|
226
206
|
init_fileHistory,
|
|
227
207
|
init_filesApi,
|
|
228
|
-
init_filesystem,
|
|
229
208
|
init_forkedAgent,
|
|
230
209
|
init_framework,
|
|
231
210
|
init_generators,
|
|
@@ -233,14 +212,10 @@ import {
|
|
|
233
212
|
init_grove,
|
|
234
213
|
init_headlessProfiler,
|
|
235
214
|
init_hookEvents,
|
|
236
|
-
init_hookHelpers,
|
|
237
215
|
init_hooks1 as init_hooks,
|
|
238
216
|
init_ids,
|
|
239
|
-
init_last,
|
|
240
217
|
init_loadAgentsDir,
|
|
241
|
-
init_logging,
|
|
242
218
|
init_marketplaceManager,
|
|
243
|
-
init_memdir,
|
|
244
219
|
init_messageQueueManager,
|
|
245
220
|
init_messages1 as init_messages,
|
|
246
221
|
init_modelOptions,
|
|
@@ -262,8 +237,6 @@ import {
|
|
|
262
237
|
init_prompt5 as init_prompt6,
|
|
263
238
|
init_prompt9 as init_prompt7,
|
|
264
239
|
init_promptSuggestion,
|
|
265
|
-
init_prompts1 as init_prompts,
|
|
266
|
-
init_query,
|
|
267
240
|
init_queryHelpers,
|
|
268
241
|
init_queryProfiler,
|
|
269
242
|
init_reject,
|
|
@@ -273,10 +246,7 @@ import {
|
|
|
273
246
|
init_sessionStart,
|
|
274
247
|
init_sessionStorage,
|
|
275
248
|
init_shellToolUtils,
|
|
276
|
-
init_snipCompact,
|
|
277
|
-
init_snipProjection,
|
|
278
249
|
init_stopTask,
|
|
279
|
-
init_systemPromptType,
|
|
280
250
|
init_teammateMailbox,
|
|
281
251
|
init_thinking,
|
|
282
252
|
init_tools1 as init_tools,
|
|
@@ -295,37 +265,32 @@ import {
|
|
|
295
265
|
isPluginZipCacheEnabled,
|
|
296
266
|
isPolicyAllowed,
|
|
297
267
|
isQualifiedForGrove,
|
|
298
|
-
isResultSuccessful,
|
|
299
|
-
isScratchpadEnabled,
|
|
300
268
|
isShutdownApproved,
|
|
301
269
|
isShuttingDown,
|
|
302
|
-
last_default,
|
|
303
270
|
loadAllPluginsCacheOnly,
|
|
304
271
|
loadConversationForResume,
|
|
305
272
|
loadKnownMarketplacesConfigSafe,
|
|
306
|
-
loadMemoryPrompt,
|
|
307
273
|
logHeadlessProfilerTurn,
|
|
308
274
|
logQueryProfileReport,
|
|
309
275
|
logSuggestionOutcome,
|
|
310
276
|
logSuggestionSuppressed,
|
|
277
|
+
markAutonomyRunFailed,
|
|
278
|
+
markAutonomyRunRunning,
|
|
311
279
|
markMessagesAsRead,
|
|
312
280
|
modelSupportsAdaptiveThinking,
|
|
313
281
|
modelSupportsEffort,
|
|
314
282
|
modelSupportsMaxEffort,
|
|
315
|
-
normalizeMessage,
|
|
316
283
|
notifyCommandLifecycle,
|
|
317
284
|
parseAgentsFromJson,
|
|
318
285
|
peek,
|
|
319
286
|
performMCPOAuthFlow,
|
|
287
|
+
prepareAutonomyTurnPrompt,
|
|
320
288
|
processSessionStartHooks,
|
|
321
289
|
processSetupHooks,
|
|
322
|
-
query,
|
|
323
290
|
readUnreadMessages,
|
|
324
291
|
reconnectMcpServerImpl,
|
|
325
|
-
recordTranscript,
|
|
326
292
|
registerHookEventHandler,
|
|
327
293
|
registerSeedMarketplaces,
|
|
328
|
-
registerStructuredOutputEnforcement,
|
|
329
294
|
reject_default,
|
|
330
295
|
resetSessionFilePointer,
|
|
331
296
|
resolveAppliedEffort,
|
|
@@ -337,14 +302,12 @@ import {
|
|
|
337
302
|
saveAiGeneratedTitle,
|
|
338
303
|
saveMode,
|
|
339
304
|
setCommandLifecycleListener,
|
|
340
|
-
setCwd,
|
|
341
305
|
setInternalEventReader,
|
|
342
306
|
setInternalEventWriter,
|
|
343
307
|
setMcpServerEnabled,
|
|
344
308
|
settingsChangeDetector,
|
|
345
309
|
setupSdkMcpClients,
|
|
346
310
|
setupVscodeSdkMcp,
|
|
347
|
-
shouldEnableThinkingByDefault,
|
|
348
311
|
startQueryProfile,
|
|
349
312
|
statusListeners,
|
|
350
313
|
stopTask,
|
|
@@ -354,74 +317,75 @@ import {
|
|
|
354
317
|
transitionPermissionMode,
|
|
355
318
|
tryGenerateSuggestion,
|
|
356
319
|
uniqBy_default,
|
|
357
|
-
updateUsage,
|
|
358
320
|
validateUuid,
|
|
359
321
|
waitForRemoteManagedSettingsToLoad
|
|
360
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-c092k38b.js";
|
|
361
323
|
import {
|
|
362
324
|
EMPTY_USAGE,
|
|
363
325
|
getSessionIngressAuthToken,
|
|
364
|
-
init_sessionIngressAuth
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
import"./chunk-
|
|
368
|
-
import"./chunk-h6dqpbac.js";
|
|
326
|
+
init_sessionIngressAuth,
|
|
327
|
+
init_src
|
|
328
|
+
} from "./chunk-m1xw79dd.js";
|
|
329
|
+
import"./chunk-kbsckx2r.js";
|
|
369
330
|
import"./chunk-qe3qr56q.js";
|
|
370
|
-
import"./chunk-
|
|
331
|
+
import"./chunk-x63c39tp.js";
|
|
332
|
+
import"./chunk-et824jj8.js";
|
|
371
333
|
import {
|
|
372
334
|
init_pluginIdentifier,
|
|
373
335
|
parsePluginIdentifier
|
|
374
|
-
} from "./chunk-
|
|
375
|
-
import"./chunk-
|
|
376
|
-
import"./chunk-0xq2bfvv.js";
|
|
377
|
-
import {
|
|
378
|
-
init_commitAttribution
|
|
379
|
-
} from "./chunk-gfk81w5r.js";
|
|
380
|
-
import"./chunk-2f6hs25r.js";
|
|
336
|
+
} from "./chunk-k81zec2p.js";
|
|
337
|
+
import"./chunk-var1et7e.js";
|
|
381
338
|
import {
|
|
382
339
|
init_tasks,
|
|
383
340
|
init_teamHelpers,
|
|
384
341
|
removeTeammateFromTeamFile,
|
|
385
342
|
unassignTeammateTasks
|
|
386
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-8pskaz4y.js";
|
|
387
344
|
import"./chunk-2gzv8nrw.js";
|
|
388
|
-
import"./chunk-
|
|
345
|
+
import"./chunk-ehtwnxpg.js";
|
|
346
|
+
import"./chunk-a5w8nyhg.js";
|
|
347
|
+
import {
|
|
348
|
+
init_commitAttribution
|
|
349
|
+
} from "./chunk-s2n5kxm0.js";
|
|
389
350
|
import"./chunk-cgfdkzhb.js";
|
|
390
|
-
import"./chunk-
|
|
391
|
-
import"./chunk-
|
|
351
|
+
import"./chunk-2f6hs25r.js";
|
|
352
|
+
import"./chunk-9datyj43.js";
|
|
353
|
+
import"./chunk-sv7afh51.js";
|
|
354
|
+
import"./chunk-j7b884wk.js";
|
|
355
|
+
import"./chunk-qgajfxr7.js";
|
|
392
356
|
import {
|
|
393
357
|
READ_FILE_STATE_CACHE_SIZE,
|
|
394
|
-
cloneFileStateCache,
|
|
395
358
|
createFileStateCacheWithSizeLimit,
|
|
396
359
|
init_fileStateCache,
|
|
397
360
|
mergeFileStateCaches
|
|
398
|
-
} from "./chunk-
|
|
399
|
-
import"./chunk-
|
|
361
|
+
} from "./chunk-zttmdag3.js";
|
|
362
|
+
import"./chunk-a0qhdfct.js";
|
|
363
|
+
import"./chunk-fz4wmnm6.js";
|
|
364
|
+
import"./chunk-ps49ymvj.js";
|
|
365
|
+
import"./chunk-chzfw06n.js";
|
|
366
|
+
import"./chunk-rd2884ff.js";
|
|
367
|
+
import"./chunk-t4kcvmes.js";
|
|
400
368
|
import {
|
|
401
369
|
getBridgeAccessToken,
|
|
402
370
|
getBridgeBaseUrl,
|
|
403
371
|
init_bridgeConfig
|
|
404
|
-
} from "./chunk-
|
|
405
|
-
import"./chunk-
|
|
406
|
-
import"./chunk-
|
|
407
|
-
import"./chunk-
|
|
408
|
-
import"./chunk-
|
|
409
|
-
import"./chunk-mh8752jz.js";
|
|
410
|
-
import"./chunk-5wb5ym2h.js";
|
|
411
|
-
import"./chunk-8y1zs48n.js";
|
|
412
|
-
import"./chunk-vpp13z80.js";
|
|
372
|
+
} from "./chunk-jac470kz.js";
|
|
373
|
+
import"./chunk-h37gar4j.js";
|
|
374
|
+
import"./chunk-cy1z66c2.js";
|
|
375
|
+
import"./chunk-fnpd8cnq.js";
|
|
376
|
+
import"./chunk-wxa2hdfg.js";
|
|
413
377
|
import"./chunk-4jm600zv.js";
|
|
414
|
-
import"./chunk-
|
|
415
|
-
import"./chunk-
|
|
378
|
+
import"./chunk-fdbvcs34.js";
|
|
379
|
+
import"./chunk-f57cvf1d.js";
|
|
416
380
|
import"./chunk-rkmwx1yz.js";
|
|
417
|
-
import"./chunk-
|
|
381
|
+
import"./chunk-xahpt5e2.js";
|
|
418
382
|
import"./chunk-ykr5qx9v.js";
|
|
419
|
-
import"./chunk-
|
|
420
|
-
import"./chunk-
|
|
421
|
-
import"./chunk-
|
|
422
|
-
import"./chunk-
|
|
423
|
-
import"./chunk-
|
|
424
|
-
import"./chunk-
|
|
383
|
+
import"./chunk-g86dg6h5.js";
|
|
384
|
+
import"./chunk-2mhgyhns.js";
|
|
385
|
+
import"./chunk-1nhx3qpn.js";
|
|
386
|
+
import"./chunk-7kfps7yt.js";
|
|
387
|
+
import"./chunk-ad6rg8vz.js";
|
|
388
|
+
import"./chunk-x95fhbwq.js";
|
|
425
389
|
import {
|
|
426
390
|
AwsAuthStatusManager,
|
|
427
391
|
KnownMarketplacesFileSchema,
|
|
@@ -433,16 +397,13 @@ import {
|
|
|
433
397
|
getDefaultMainLoopModel,
|
|
434
398
|
getFastModeState,
|
|
435
399
|
getFeatureValue_CACHED_MAY_BE_STALE,
|
|
436
|
-
getGlobalConfig,
|
|
437
400
|
getMainLoopModel,
|
|
438
401
|
getMcpPrefix,
|
|
439
402
|
getSettingsWithSources,
|
|
440
403
|
getSettings_DEPRECATED,
|
|
441
|
-
hasAutoMemPathOverride,
|
|
442
404
|
init_auth,
|
|
443
405
|
init_awsAuthStatusManager,
|
|
444
406
|
init_betas1 as init_betas,
|
|
445
|
-
init_config1 as init_config,
|
|
446
407
|
init_fastMode,
|
|
447
408
|
init_growthbook,
|
|
448
409
|
init_mcpStringUtils,
|
|
@@ -464,16 +425,15 @@ import {
|
|
|
464
425
|
modelSupportsAutoMode,
|
|
465
426
|
parseUserSpecifiedModel,
|
|
466
427
|
runWithWorkload
|
|
467
|
-
} from "./chunk-
|
|
428
|
+
} from "./chunk-p7es39d1.js";
|
|
468
429
|
import {
|
|
469
430
|
init_json,
|
|
470
431
|
safeParseJSON
|
|
471
|
-
} from "./chunk-
|
|
432
|
+
} from "./chunk-mkae8zj9.js";
|
|
472
433
|
import {
|
|
473
434
|
expandPath,
|
|
474
435
|
init_path
|
|
475
|
-
} from "./chunk-
|
|
476
|
-
import"./chunk-j06y02aw.js";
|
|
436
|
+
} from "./chunk-cxmyg49v.js";
|
|
477
437
|
import {
|
|
478
438
|
hasActiveInProcessTeammates,
|
|
479
439
|
hasWorkingInProcessTeammates,
|
|
@@ -483,17 +443,20 @@ import {
|
|
|
483
443
|
uniq,
|
|
484
444
|
waitForTeammatesToBecomeIdle
|
|
485
445
|
} from "./chunk-zwarn9h7.js";
|
|
486
|
-
import"./chunk-
|
|
446
|
+
import"./chunk-hxc8e6wd.js";
|
|
447
|
+
import"./chunk-7hmy36fh.js";
|
|
448
|
+
import"./chunk-6kpbgc5w.js";
|
|
449
|
+
import"./chunk-d57t992t.js";
|
|
487
450
|
import {
|
|
488
451
|
init_lazySchema,
|
|
489
452
|
lazySchema
|
|
490
453
|
} from "./chunk-64c1avct.js";
|
|
491
|
-
import"./chunk-
|
|
454
|
+
import"./chunk-0knhp7v5.js";
|
|
492
455
|
import {
|
|
493
456
|
init_sleep,
|
|
494
457
|
sleep
|
|
495
458
|
} from "./chunk-8g5pe1gr.js";
|
|
496
|
-
import"./chunk-
|
|
459
|
+
import"./chunk-b62vj92a.js";
|
|
497
460
|
import {
|
|
498
461
|
ElicitRequestSchema,
|
|
499
462
|
ElicitationCompleteNotificationSchema,
|
|
@@ -509,43 +472,39 @@ import"./chunk-90wp6wez.js";
|
|
|
509
472
|
import"./chunk-a8ejc632.js";
|
|
510
473
|
import"./chunk-f5ma3nh5.js";
|
|
511
474
|
import"./chunk-qz2x630m.js";
|
|
512
|
-
import"./chunk-
|
|
513
|
-
import"./chunk-
|
|
475
|
+
import"./chunk-c7t69jmn.js";
|
|
476
|
+
import"./chunk-6y2wszkc.js";
|
|
514
477
|
import"./chunk-3c25bcsw.js";
|
|
515
|
-
import"./chunk-
|
|
478
|
+
import"./chunk-9qh5f9r3.js";
|
|
479
|
+
import"./chunk-xhesahm0.js";
|
|
516
480
|
import"./chunk-rh5a2rg9.js";
|
|
517
481
|
import"./chunk-p2816w9z.js";
|
|
518
482
|
import"./chunk-v9smspw2.js";
|
|
519
483
|
import"./chunk-v1kzp02e.js";
|
|
520
|
-
import"./chunk-
|
|
484
|
+
import"./chunk-axenqvc8.js";
|
|
521
485
|
import"./chunk-crmjpsqe.js";
|
|
522
|
-
import
|
|
523
|
-
|
|
524
|
-
stripAnsi
|
|
525
|
-
} from "./chunk-e4jqbn4d.js";
|
|
526
|
-
import"./chunk-vxnvzfnv.js";
|
|
527
|
-
import"./chunk-ns3babbs.js";
|
|
486
|
+
import"./chunk-m9w972ny.js";
|
|
487
|
+
import"./chunk-b5wxetbv.js";
|
|
528
488
|
import {
|
|
529
489
|
init_analytics,
|
|
530
490
|
logEvent
|
|
531
491
|
} from "./chunk-h0rbjg6x.js";
|
|
532
492
|
import"./chunk-0vkfrmqm.js";
|
|
533
493
|
import"./chunk-0xjaqda8.js";
|
|
534
|
-
import"./chunk-
|
|
494
|
+
import"./chunk-78009jh9.js";
|
|
535
495
|
import {
|
|
536
496
|
init_diagLogs,
|
|
537
497
|
logForDiagnosticsNoPII,
|
|
538
498
|
withDiagnosticsTiming
|
|
539
|
-
} from "./chunk-
|
|
540
|
-
import"./chunk-
|
|
499
|
+
} from "./chunk-9awawyvh.js";
|
|
500
|
+
import"./chunk-hqpzpr71.js";
|
|
541
501
|
import"./chunk-zs5b1dgr.js";
|
|
542
|
-
import"./chunk-
|
|
502
|
+
import"./chunk-hnxmafvc.js";
|
|
543
503
|
import {
|
|
544
504
|
getCwd,
|
|
545
505
|
init_cwd
|
|
546
506
|
} from "./chunk-tv74hgw9.js";
|
|
547
507
|
import {
|
|
548
|
-
LOCAL_COMMAND_STDERR_TAG,
|
|
549
508
|
LOCAL_COMMAND_STDOUT_TAG,
|
|
550
509
|
TEAMMATE_MESSAGE_TAG,
|
|
551
510
|
TICK_TAG,
|
|
@@ -554,29 +513,27 @@ import {
|
|
|
554
513
|
init_xml,
|
|
555
514
|
logError,
|
|
556
515
|
logMCPDebug
|
|
557
|
-
} from "./chunk-
|
|
516
|
+
} from "./chunk-wd8mqz95.js";
|
|
558
517
|
import"./chunk-8tnsngw2.js";
|
|
559
|
-
import"./chunk-
|
|
560
|
-
import"./chunk-
|
|
518
|
+
import"./chunk-vsbyhpfy.js";
|
|
519
|
+
import"./chunk-p7pj6wf8.js";
|
|
561
520
|
import"./chunk-5z28bqne.js";
|
|
562
521
|
import"./chunk-qajrkk97.js";
|
|
563
522
|
import {
|
|
523
|
+
errorMessage,
|
|
564
524
|
getFsImplementation,
|
|
565
525
|
init_cleanupRegistry,
|
|
566
526
|
init_debug,
|
|
527
|
+
init_errors,
|
|
567
528
|
init_fsOperations,
|
|
568
529
|
init_slowOperations,
|
|
569
530
|
isDebugMode,
|
|
570
531
|
jsonParse,
|
|
571
532
|
jsonStringify,
|
|
572
533
|
logForDebugging,
|
|
573
|
-
registerCleanup
|
|
574
|
-
} from "./chunk-kmgp6prw.js";
|
|
575
|
-
import {
|
|
576
|
-
errorMessage,
|
|
577
|
-
init_errors,
|
|
534
|
+
registerCleanup,
|
|
578
535
|
toError
|
|
579
|
-
} from "./chunk-
|
|
536
|
+
} from "./chunk-5khwvj1z.js";
|
|
580
537
|
import {
|
|
581
538
|
init_process,
|
|
582
539
|
registerProcessOutputErrorHandlers,
|
|
@@ -587,10 +544,7 @@ import {
|
|
|
587
544
|
getFlagSettingsInline,
|
|
588
545
|
getInitJsonSchema,
|
|
589
546
|
getMainThreadAgentType,
|
|
590
|
-
getModelUsage,
|
|
591
547
|
getSessionId,
|
|
592
|
-
getTotalAPIDuration,
|
|
593
|
-
getTotalCostUSD,
|
|
594
548
|
init_state,
|
|
595
549
|
isSessionPersistenceDisabled,
|
|
596
550
|
registerHookCallbacks,
|
|
@@ -909,893 +863,13 @@ init_messageQueueManager();
|
|
|
909
863
|
init_commandLifecycle();
|
|
910
864
|
init_log();
|
|
911
865
|
init_process();
|
|
912
|
-
|
|
866
|
+
init_src();
|
|
913
867
|
init_conversationRecovery();
|
|
914
868
|
init_channelNotification();
|
|
915
869
|
init_channelAllowlist();
|
|
916
870
|
init_pluginIdentifier();
|
|
917
871
|
init_uuid();
|
|
918
872
|
init_generators();
|
|
919
|
-
|
|
920
|
-
// src/QueryEngine.ts
|
|
921
|
-
init_last();
|
|
922
|
-
init_state();
|
|
923
|
-
init_claude();
|
|
924
|
-
init_logging();
|
|
925
|
-
init_strip_ansi();
|
|
926
|
-
init_commands();
|
|
927
|
-
init_xml();
|
|
928
|
-
init_cost_tracker();
|
|
929
|
-
init_memdir();
|
|
930
|
-
init_paths();
|
|
931
|
-
init_query();
|
|
932
|
-
init_errors2();
|
|
933
|
-
init_Tool();
|
|
934
|
-
init_SyntheticOutputTool();
|
|
935
|
-
init_abortController();
|
|
936
|
-
init_config();
|
|
937
|
-
init_cwd();
|
|
938
|
-
init_envUtils();
|
|
939
|
-
init_fastMode();
|
|
940
|
-
init_fileHistory();
|
|
941
|
-
init_fileStateCache();
|
|
942
|
-
init_headlessProfiler();
|
|
943
|
-
init_hookHelpers();
|
|
944
|
-
init_log();
|
|
945
|
-
init_messages();
|
|
946
|
-
init_model();
|
|
947
|
-
init_pluginLoader();
|
|
948
|
-
import { randomUUID } from "crypto";
|
|
949
|
-
|
|
950
|
-
// src/utils/queryContext.ts
|
|
951
|
-
init_prompts();
|
|
952
|
-
init_context();
|
|
953
|
-
init_abortController();
|
|
954
|
-
init_model();
|
|
955
|
-
init_systemPromptType();
|
|
956
|
-
init_thinking();
|
|
957
|
-
async function fetchSystemPromptParts({
|
|
958
|
-
tools,
|
|
959
|
-
mainLoopModel,
|
|
960
|
-
additionalWorkingDirectories,
|
|
961
|
-
mcpClients,
|
|
962
|
-
customSystemPrompt
|
|
963
|
-
}) {
|
|
964
|
-
const [defaultSystemPrompt, userContext, systemContext] = await Promise.all([
|
|
965
|
-
customSystemPrompt !== undefined ? Promise.resolve([]) : getSystemPrompt(tools, mainLoopModel, additionalWorkingDirectories, mcpClients),
|
|
966
|
-
getUserContext(),
|
|
967
|
-
customSystemPrompt !== undefined ? Promise.resolve({}) : getSystemContext()
|
|
968
|
-
]);
|
|
969
|
-
return { defaultSystemPrompt, userContext, systemContext };
|
|
970
|
-
}
|
|
971
|
-
async function buildSideQuestionFallbackParams({
|
|
972
|
-
tools,
|
|
973
|
-
commands,
|
|
974
|
-
mcpClients,
|
|
975
|
-
messages,
|
|
976
|
-
readFileState,
|
|
977
|
-
getAppState,
|
|
978
|
-
setAppState,
|
|
979
|
-
customSystemPrompt,
|
|
980
|
-
appendSystemPrompt,
|
|
981
|
-
thinkingConfig,
|
|
982
|
-
agents
|
|
983
|
-
}) {
|
|
984
|
-
const mainLoopModel = getMainLoopModel();
|
|
985
|
-
const appState = getAppState();
|
|
986
|
-
const { defaultSystemPrompt, userContext, systemContext } = await fetchSystemPromptParts({
|
|
987
|
-
tools,
|
|
988
|
-
mainLoopModel,
|
|
989
|
-
additionalWorkingDirectories: Array.from(appState.toolPermissionContext.additionalWorkingDirectories.keys()),
|
|
990
|
-
mcpClients,
|
|
991
|
-
customSystemPrompt
|
|
992
|
-
});
|
|
993
|
-
const systemPrompt = asSystemPrompt([
|
|
994
|
-
...customSystemPrompt !== undefined ? [customSystemPrompt] : defaultSystemPrompt,
|
|
995
|
-
...appendSystemPrompt ? [appendSystemPrompt] : []
|
|
996
|
-
]);
|
|
997
|
-
const last = messages.at(-1);
|
|
998
|
-
const forkContextMessages = last?.type === "assistant" && last.message.stop_reason === null ? messages.slice(0, -1) : messages;
|
|
999
|
-
const toolUseContext = {
|
|
1000
|
-
options: {
|
|
1001
|
-
commands,
|
|
1002
|
-
debug: false,
|
|
1003
|
-
mainLoopModel,
|
|
1004
|
-
tools,
|
|
1005
|
-
verbose: false,
|
|
1006
|
-
thinkingConfig: thinkingConfig ?? (shouldEnableThinkingByDefault() !== false ? { type: "adaptive" } : { type: "disabled" }),
|
|
1007
|
-
mcpClients,
|
|
1008
|
-
mcpResources: {},
|
|
1009
|
-
isNonInteractiveSession: true,
|
|
1010
|
-
agentDefinitions: { activeAgents: agents, allAgents: [] },
|
|
1011
|
-
customSystemPrompt,
|
|
1012
|
-
appendSystemPrompt
|
|
1013
|
-
},
|
|
1014
|
-
abortController: createAbortController(),
|
|
1015
|
-
readFileState,
|
|
1016
|
-
getAppState,
|
|
1017
|
-
setAppState,
|
|
1018
|
-
messages: forkContextMessages,
|
|
1019
|
-
setInProgressToolUseIDs: () => {},
|
|
1020
|
-
setResponseLength: () => {},
|
|
1021
|
-
updateFileHistoryState: () => {},
|
|
1022
|
-
updateAttributionState: () => {}
|
|
1023
|
-
};
|
|
1024
|
-
return {
|
|
1025
|
-
systemPrompt,
|
|
1026
|
-
userContext,
|
|
1027
|
-
systemContext,
|
|
1028
|
-
toolUseContext,
|
|
1029
|
-
forkContextMessages
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
// src/QueryEngine.ts
|
|
1034
|
-
init_Shell();
|
|
1035
|
-
init_sessionStorage();
|
|
1036
|
-
init_systemPromptType();
|
|
1037
|
-
init_systemTheme();
|
|
1038
|
-
init_thinking();
|
|
1039
|
-
init_mappers();
|
|
1040
|
-
init_filesystem();
|
|
1041
|
-
init_queryHelpers();
|
|
1042
|
-
var messageSelector = () => (init_MessageSelector(), __toCommonJS(exports_MessageSelector));
|
|
1043
|
-
var getCoordinatorUserContext = (init_coordinatorMode(), __toCommonJS(exports_coordinatorMode)).getCoordinatorUserContext;
|
|
1044
|
-
var snipModule = (init_snipCompact(), __toCommonJS(exports_snipCompact));
|
|
1045
|
-
var snipProjection = (init_snipProjection(), __toCommonJS(exports_snipProjection));
|
|
1046
|
-
|
|
1047
|
-
class QueryEngine {
|
|
1048
|
-
config;
|
|
1049
|
-
mutableMessages;
|
|
1050
|
-
abortController;
|
|
1051
|
-
permissionDenials;
|
|
1052
|
-
totalUsage;
|
|
1053
|
-
hasHandledOrphanedPermission = false;
|
|
1054
|
-
readFileState;
|
|
1055
|
-
discoveredSkillNames = new Set;
|
|
1056
|
-
loadedNestedMemoryPaths = new Set;
|
|
1057
|
-
constructor(config) {
|
|
1058
|
-
this.config = config;
|
|
1059
|
-
this.mutableMessages = config.initialMessages ?? [];
|
|
1060
|
-
this.abortController = config.abortController ?? createAbortController();
|
|
1061
|
-
this.permissionDenials = [];
|
|
1062
|
-
this.readFileState = config.readFileCache;
|
|
1063
|
-
this.totalUsage = EMPTY_USAGE;
|
|
1064
|
-
}
|
|
1065
|
-
async* submitMessage(prompt, options) {
|
|
1066
|
-
const {
|
|
1067
|
-
cwd,
|
|
1068
|
-
commands,
|
|
1069
|
-
tools,
|
|
1070
|
-
mcpClients,
|
|
1071
|
-
verbose = false,
|
|
1072
|
-
thinkingConfig,
|
|
1073
|
-
maxTurns,
|
|
1074
|
-
maxBudgetUsd,
|
|
1075
|
-
taskBudget,
|
|
1076
|
-
canUseTool,
|
|
1077
|
-
customSystemPrompt,
|
|
1078
|
-
appendSystemPrompt,
|
|
1079
|
-
userSpecifiedModel,
|
|
1080
|
-
fallbackModel,
|
|
1081
|
-
jsonSchema,
|
|
1082
|
-
getAppState,
|
|
1083
|
-
setAppState,
|
|
1084
|
-
replayUserMessages = false,
|
|
1085
|
-
includePartialMessages = false,
|
|
1086
|
-
agents = [],
|
|
1087
|
-
setSDKStatus,
|
|
1088
|
-
orphanedPermission
|
|
1089
|
-
} = this.config;
|
|
1090
|
-
this.discoveredSkillNames.clear();
|
|
1091
|
-
setCwd(cwd);
|
|
1092
|
-
const persistSession = !isSessionPersistenceDisabled();
|
|
1093
|
-
const startTime = Date.now();
|
|
1094
|
-
const wrappedCanUseTool = async (tool, input, toolUseContext, assistantMessage, toolUseID, forceDecision) => {
|
|
1095
|
-
const result2 = await canUseTool(tool, input, toolUseContext, assistantMessage, toolUseID, forceDecision);
|
|
1096
|
-
if (result2.behavior !== "allow") {
|
|
1097
|
-
this.permissionDenials.push({
|
|
1098
|
-
type: "permission_denial",
|
|
1099
|
-
tool_name: sdkCompatToolName(tool.name),
|
|
1100
|
-
tool_use_id: toolUseID,
|
|
1101
|
-
tool_input: input
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
return result2;
|
|
1105
|
-
};
|
|
1106
|
-
const initialAppState = getAppState();
|
|
1107
|
-
const initialMainLoopModel = userSpecifiedModel ? parseUserSpecifiedModel(userSpecifiedModel) : getMainLoopModel();
|
|
1108
|
-
const initialThinkingConfig = thinkingConfig ? thinkingConfig : shouldEnableThinkingByDefault() !== false ? { type: "adaptive" } : { type: "disabled" };
|
|
1109
|
-
headlessProfilerCheckpoint("before_getSystemPrompt");
|
|
1110
|
-
const customPrompt = typeof customSystemPrompt === "string" ? customSystemPrompt : undefined;
|
|
1111
|
-
const {
|
|
1112
|
-
defaultSystemPrompt,
|
|
1113
|
-
userContext: baseUserContext,
|
|
1114
|
-
systemContext
|
|
1115
|
-
} = await fetchSystemPromptParts({
|
|
1116
|
-
tools,
|
|
1117
|
-
mainLoopModel: initialMainLoopModel,
|
|
1118
|
-
additionalWorkingDirectories: Array.from(initialAppState.toolPermissionContext.additionalWorkingDirectories.keys()),
|
|
1119
|
-
mcpClients,
|
|
1120
|
-
customSystemPrompt: customPrompt
|
|
1121
|
-
});
|
|
1122
|
-
headlessProfilerCheckpoint("after_getSystemPrompt");
|
|
1123
|
-
const userContext = {
|
|
1124
|
-
...baseUserContext,
|
|
1125
|
-
...getCoordinatorUserContext(mcpClients, isScratchpadEnabled() ? getScratchpadDir() : undefined)
|
|
1126
|
-
};
|
|
1127
|
-
const memoryMechanicsPrompt = customPrompt !== undefined && hasAutoMemPathOverride() ? await loadMemoryPrompt() : null;
|
|
1128
|
-
const systemPrompt = asSystemPrompt([
|
|
1129
|
-
...customPrompt !== undefined ? [customPrompt] : defaultSystemPrompt,
|
|
1130
|
-
...memoryMechanicsPrompt ? [memoryMechanicsPrompt] : [],
|
|
1131
|
-
...appendSystemPrompt ? [appendSystemPrompt] : []
|
|
1132
|
-
]);
|
|
1133
|
-
const hasStructuredOutputTool = tools.some((t) => toolMatchesName(t, SYNTHETIC_OUTPUT_TOOL_NAME));
|
|
1134
|
-
if (jsonSchema && hasStructuredOutputTool) {
|
|
1135
|
-
registerStructuredOutputEnforcement(setAppState, getSessionId());
|
|
1136
|
-
}
|
|
1137
|
-
let processUserInputContext = {
|
|
1138
|
-
messages: this.mutableMessages,
|
|
1139
|
-
setMessages: (fn) => {
|
|
1140
|
-
this.mutableMessages = fn(this.mutableMessages);
|
|
1141
|
-
},
|
|
1142
|
-
onChangeAPIKey: () => {},
|
|
1143
|
-
handleElicitation: this.config.handleElicitation,
|
|
1144
|
-
options: {
|
|
1145
|
-
commands,
|
|
1146
|
-
debug: false,
|
|
1147
|
-
tools,
|
|
1148
|
-
verbose,
|
|
1149
|
-
mainLoopModel: initialMainLoopModel,
|
|
1150
|
-
thinkingConfig: initialThinkingConfig,
|
|
1151
|
-
mcpClients,
|
|
1152
|
-
mcpResources: {},
|
|
1153
|
-
ideInstallationStatus: null,
|
|
1154
|
-
isNonInteractiveSession: true,
|
|
1155
|
-
customSystemPrompt,
|
|
1156
|
-
appendSystemPrompt,
|
|
1157
|
-
agentDefinitions: { activeAgents: agents, allAgents: [] },
|
|
1158
|
-
theme: resolveThemeSetting(getGlobalConfig().theme),
|
|
1159
|
-
maxBudgetUsd
|
|
1160
|
-
},
|
|
1161
|
-
getAppState,
|
|
1162
|
-
setAppState,
|
|
1163
|
-
abortController: this.abortController,
|
|
1164
|
-
readFileState: this.readFileState,
|
|
1165
|
-
nestedMemoryAttachmentTriggers: new Set,
|
|
1166
|
-
loadedNestedMemoryPaths: this.loadedNestedMemoryPaths,
|
|
1167
|
-
dynamicSkillDirTriggers: new Set,
|
|
1168
|
-
discoveredSkillNames: this.discoveredSkillNames,
|
|
1169
|
-
setInProgressToolUseIDs: () => {},
|
|
1170
|
-
setResponseLength: () => {},
|
|
1171
|
-
updateFileHistoryState: (updater) => {
|
|
1172
|
-
setAppState((prev) => {
|
|
1173
|
-
const updated = updater(prev.fileHistory);
|
|
1174
|
-
if (updated === prev.fileHistory)
|
|
1175
|
-
return prev;
|
|
1176
|
-
return { ...prev, fileHistory: updated };
|
|
1177
|
-
});
|
|
1178
|
-
},
|
|
1179
|
-
updateAttributionState: (updater) => {
|
|
1180
|
-
setAppState((prev) => {
|
|
1181
|
-
const updated = updater(prev.attribution);
|
|
1182
|
-
if (updated === prev.attribution)
|
|
1183
|
-
return prev;
|
|
1184
|
-
return { ...prev, attribution: updated };
|
|
1185
|
-
});
|
|
1186
|
-
},
|
|
1187
|
-
setSDKStatus
|
|
1188
|
-
};
|
|
1189
|
-
if (orphanedPermission && !this.hasHandledOrphanedPermission) {
|
|
1190
|
-
this.hasHandledOrphanedPermission = true;
|
|
1191
|
-
for await (const message of handleOrphanedPermission(orphanedPermission, tools, this.mutableMessages, processUserInputContext)) {
|
|
1192
|
-
yield message;
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
const {
|
|
1196
|
-
messages: messagesFromUserInput,
|
|
1197
|
-
shouldQuery,
|
|
1198
|
-
allowedTools,
|
|
1199
|
-
model: modelFromUserInput,
|
|
1200
|
-
resultText
|
|
1201
|
-
} = await processUserInput({
|
|
1202
|
-
input: prompt,
|
|
1203
|
-
mode: "prompt",
|
|
1204
|
-
setToolJSX: () => {},
|
|
1205
|
-
context: {
|
|
1206
|
-
...processUserInputContext,
|
|
1207
|
-
messages: this.mutableMessages
|
|
1208
|
-
},
|
|
1209
|
-
messages: this.mutableMessages,
|
|
1210
|
-
uuid: options?.uuid,
|
|
1211
|
-
isMeta: options?.isMeta,
|
|
1212
|
-
querySource: "sdk"
|
|
1213
|
-
});
|
|
1214
|
-
this.mutableMessages.push(...messagesFromUserInput);
|
|
1215
|
-
const messages = [...this.mutableMessages];
|
|
1216
|
-
if (persistSession && messagesFromUserInput.length > 0) {
|
|
1217
|
-
const transcriptPromise = recordTranscript(messages);
|
|
1218
|
-
if (isBareMode()) {} else {
|
|
1219
|
-
await transcriptPromise;
|
|
1220
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1221
|
-
await flushSessionStorage();
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
const replayableMessages = messagesFromUserInput.filter((msg) => msg.type === "user" && !msg.isMeta && !msg.toolUseResult && messageSelector().selectableUserMessagesFilter(msg) || msg.type === "system" && msg.subtype === "compact_boundary");
|
|
1226
|
-
const messagesToAck = replayUserMessages ? replayableMessages : [];
|
|
1227
|
-
setAppState((prev) => ({
|
|
1228
|
-
...prev,
|
|
1229
|
-
toolPermissionContext: {
|
|
1230
|
-
...prev.toolPermissionContext,
|
|
1231
|
-
alwaysAllowRules: {
|
|
1232
|
-
...prev.toolPermissionContext.alwaysAllowRules,
|
|
1233
|
-
command: allowedTools
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
}));
|
|
1237
|
-
const mainLoopModel = modelFromUserInput ?? initialMainLoopModel;
|
|
1238
|
-
processUserInputContext = {
|
|
1239
|
-
messages,
|
|
1240
|
-
setMessages: () => {},
|
|
1241
|
-
onChangeAPIKey: () => {},
|
|
1242
|
-
handleElicitation: this.config.handleElicitation,
|
|
1243
|
-
options: {
|
|
1244
|
-
commands,
|
|
1245
|
-
debug: false,
|
|
1246
|
-
tools,
|
|
1247
|
-
verbose,
|
|
1248
|
-
mainLoopModel,
|
|
1249
|
-
thinkingConfig: initialThinkingConfig,
|
|
1250
|
-
mcpClients,
|
|
1251
|
-
mcpResources: {},
|
|
1252
|
-
ideInstallationStatus: null,
|
|
1253
|
-
isNonInteractiveSession: true,
|
|
1254
|
-
customSystemPrompt,
|
|
1255
|
-
appendSystemPrompt,
|
|
1256
|
-
theme: resolveThemeSetting(getGlobalConfig().theme),
|
|
1257
|
-
agentDefinitions: { activeAgents: agents, allAgents: [] },
|
|
1258
|
-
maxBudgetUsd
|
|
1259
|
-
},
|
|
1260
|
-
getAppState,
|
|
1261
|
-
setAppState,
|
|
1262
|
-
abortController: this.abortController,
|
|
1263
|
-
readFileState: this.readFileState,
|
|
1264
|
-
nestedMemoryAttachmentTriggers: new Set,
|
|
1265
|
-
loadedNestedMemoryPaths: this.loadedNestedMemoryPaths,
|
|
1266
|
-
dynamicSkillDirTriggers: new Set,
|
|
1267
|
-
discoveredSkillNames: this.discoveredSkillNames,
|
|
1268
|
-
setInProgressToolUseIDs: () => {},
|
|
1269
|
-
setResponseLength: () => {},
|
|
1270
|
-
updateFileHistoryState: processUserInputContext.updateFileHistoryState,
|
|
1271
|
-
updateAttributionState: processUserInputContext.updateAttributionState,
|
|
1272
|
-
setSDKStatus
|
|
1273
|
-
};
|
|
1274
|
-
headlessProfilerCheckpoint("before_skills_plugins");
|
|
1275
|
-
const [skills, { enabled: enabledPlugins }] = await Promise.all([
|
|
1276
|
-
getSlashCommandToolSkills(getCwd()),
|
|
1277
|
-
loadAllPluginsCacheOnly()
|
|
1278
|
-
]);
|
|
1279
|
-
headlessProfilerCheckpoint("after_skills_plugins");
|
|
1280
|
-
yield buildSystemInitMessage({
|
|
1281
|
-
tools,
|
|
1282
|
-
mcpClients,
|
|
1283
|
-
model: mainLoopModel,
|
|
1284
|
-
permissionMode: initialAppState.toolPermissionContext.mode,
|
|
1285
|
-
commands,
|
|
1286
|
-
agents,
|
|
1287
|
-
skills,
|
|
1288
|
-
plugins: enabledPlugins,
|
|
1289
|
-
fastMode: initialAppState.fastMode
|
|
1290
|
-
});
|
|
1291
|
-
headlessProfilerCheckpoint("system_message_yielded");
|
|
1292
|
-
if (!shouldQuery) {
|
|
1293
|
-
for (const msg of messagesFromUserInput) {
|
|
1294
|
-
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)) {
|
|
1295
|
-
yield {
|
|
1296
|
-
type: "user",
|
|
1297
|
-
message: {
|
|
1298
|
-
...msg.message,
|
|
1299
|
-
content: stripAnsi(msg.message.content)
|
|
1300
|
-
},
|
|
1301
|
-
session_id: getSessionId(),
|
|
1302
|
-
parent_tool_use_id: null,
|
|
1303
|
-
uuid: msg.uuid,
|
|
1304
|
-
timestamp: msg.timestamp,
|
|
1305
|
-
isReplay: !msg.isCompactSummary,
|
|
1306
|
-
isSynthetic: msg.isMeta || msg.isVisibleInTranscriptOnly
|
|
1307
|
-
};
|
|
1308
|
-
}
|
|
1309
|
-
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}>`))) {
|
|
1310
|
-
yield localCommandOutputToSDKAssistantMessage(msg.content, msg.uuid);
|
|
1311
|
-
}
|
|
1312
|
-
if (msg.type === "system" && msg.subtype === "compact_boundary") {
|
|
1313
|
-
const compactMsg = msg;
|
|
1314
|
-
yield {
|
|
1315
|
-
type: "system",
|
|
1316
|
-
subtype: "compact_boundary",
|
|
1317
|
-
session_id: getSessionId(),
|
|
1318
|
-
uuid: msg.uuid,
|
|
1319
|
-
compact_metadata: toSDKCompactMetadata(compactMsg.compactMetadata)
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
if (persistSession) {
|
|
1324
|
-
await recordTranscript(messages);
|
|
1325
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1326
|
-
await flushSessionStorage();
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
yield {
|
|
1330
|
-
type: "result",
|
|
1331
|
-
subtype: "success",
|
|
1332
|
-
is_error: false,
|
|
1333
|
-
duration_ms: Date.now() - startTime,
|
|
1334
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1335
|
-
num_turns: messages.length - 1,
|
|
1336
|
-
result: resultText ?? "",
|
|
1337
|
-
stop_reason: null,
|
|
1338
|
-
session_id: getSessionId(),
|
|
1339
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1340
|
-
usage: this.totalUsage,
|
|
1341
|
-
modelUsage: getModelUsage(),
|
|
1342
|
-
permission_denials: this.permissionDenials,
|
|
1343
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1344
|
-
uuid: randomUUID()
|
|
1345
|
-
};
|
|
1346
|
-
return;
|
|
1347
|
-
}
|
|
1348
|
-
if (fileHistoryEnabled() && persistSession) {
|
|
1349
|
-
messagesFromUserInput.filter(messageSelector().selectableUserMessagesFilter).forEach((message) => {
|
|
1350
|
-
fileHistoryMakeSnapshot((updater) => {
|
|
1351
|
-
setAppState((prev) => ({
|
|
1352
|
-
...prev,
|
|
1353
|
-
fileHistory: updater(prev.fileHistory)
|
|
1354
|
-
}));
|
|
1355
|
-
}, message.uuid);
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
let currentMessageUsage = EMPTY_USAGE;
|
|
1359
|
-
let turnCount = 1;
|
|
1360
|
-
let hasAcknowledgedInitialMessages = false;
|
|
1361
|
-
let structuredOutputFromTool;
|
|
1362
|
-
let lastStopReason = null;
|
|
1363
|
-
const errorLogWatermark = getInMemoryErrors().at(-1);
|
|
1364
|
-
const initialStructuredOutputCalls = jsonSchema ? countToolCalls(this.mutableMessages, SYNTHETIC_OUTPUT_TOOL_NAME) : 0;
|
|
1365
|
-
for await (const message of query({
|
|
1366
|
-
messages,
|
|
1367
|
-
systemPrompt,
|
|
1368
|
-
userContext,
|
|
1369
|
-
systemContext,
|
|
1370
|
-
canUseTool: wrappedCanUseTool,
|
|
1371
|
-
toolUseContext: processUserInputContext,
|
|
1372
|
-
fallbackModel,
|
|
1373
|
-
querySource: "sdk",
|
|
1374
|
-
maxTurns,
|
|
1375
|
-
taskBudget
|
|
1376
|
-
})) {
|
|
1377
|
-
if (message.type === "assistant" || message.type === "user" || message.type === "system" && message.subtype === "compact_boundary") {
|
|
1378
|
-
if (persistSession && message.type === "system" && message.subtype === "compact_boundary") {
|
|
1379
|
-
const compactMsg = message;
|
|
1380
|
-
const tailUuid = compactMsg.compactMetadata?.preservedSegment?.tailUuid;
|
|
1381
|
-
if (tailUuid) {
|
|
1382
|
-
const tailIdx = this.mutableMessages.findLastIndex((m) => m.uuid === tailUuid);
|
|
1383
|
-
if (tailIdx !== -1) {
|
|
1384
|
-
await recordTranscript(this.mutableMessages.slice(0, tailIdx + 1));
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
messages.push(message);
|
|
1389
|
-
if (persistSession) {
|
|
1390
|
-
if (message.type === "assistant") {
|
|
1391
|
-
recordTranscript(messages);
|
|
1392
|
-
} else {
|
|
1393
|
-
await recordTranscript(messages);
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
if (!hasAcknowledgedInitialMessages && messagesToAck.length > 0) {
|
|
1397
|
-
hasAcknowledgedInitialMessages = true;
|
|
1398
|
-
for (const msgToAck of messagesToAck) {
|
|
1399
|
-
if (msgToAck.type === "user") {
|
|
1400
|
-
yield {
|
|
1401
|
-
type: "user",
|
|
1402
|
-
message: msgToAck.message,
|
|
1403
|
-
session_id: getSessionId(),
|
|
1404
|
-
parent_tool_use_id: null,
|
|
1405
|
-
uuid: msgToAck.uuid,
|
|
1406
|
-
timestamp: msgToAck.timestamp,
|
|
1407
|
-
isReplay: true
|
|
1408
|
-
};
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
if (message.type === "user") {
|
|
1414
|
-
turnCount++;
|
|
1415
|
-
}
|
|
1416
|
-
switch (message.type) {
|
|
1417
|
-
case "tombstone":
|
|
1418
|
-
break;
|
|
1419
|
-
case "assistant": {
|
|
1420
|
-
const msg = message;
|
|
1421
|
-
const stopReason = msg.message?.stop_reason;
|
|
1422
|
-
if (stopReason != null) {
|
|
1423
|
-
lastStopReason = stopReason;
|
|
1424
|
-
}
|
|
1425
|
-
this.mutableMessages.push(msg);
|
|
1426
|
-
yield* normalizeMessage(msg);
|
|
1427
|
-
break;
|
|
1428
|
-
}
|
|
1429
|
-
case "progress": {
|
|
1430
|
-
const msg = message;
|
|
1431
|
-
this.mutableMessages.push(msg);
|
|
1432
|
-
if (persistSession) {
|
|
1433
|
-
messages.push(msg);
|
|
1434
|
-
recordTranscript(messages);
|
|
1435
|
-
}
|
|
1436
|
-
yield* normalizeMessage(msg);
|
|
1437
|
-
break;
|
|
1438
|
-
}
|
|
1439
|
-
case "user": {
|
|
1440
|
-
const msg = message;
|
|
1441
|
-
this.mutableMessages.push(msg);
|
|
1442
|
-
yield* normalizeMessage(msg);
|
|
1443
|
-
break;
|
|
1444
|
-
}
|
|
1445
|
-
case "stream_event": {
|
|
1446
|
-
const event = message.event;
|
|
1447
|
-
if (event.type === "message_start") {
|
|
1448
|
-
currentMessageUsage = EMPTY_USAGE;
|
|
1449
|
-
const eventMessage = event.message;
|
|
1450
|
-
currentMessageUsage = updateUsage(currentMessageUsage, eventMessage.usage);
|
|
1451
|
-
}
|
|
1452
|
-
if (event.type === "message_delta") {
|
|
1453
|
-
currentMessageUsage = updateUsage(currentMessageUsage, event.usage);
|
|
1454
|
-
const delta = event.delta;
|
|
1455
|
-
if (delta.stop_reason != null) {
|
|
1456
|
-
lastStopReason = delta.stop_reason;
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
if (event.type === "message_stop") {
|
|
1460
|
-
this.totalUsage = accumulateUsage(this.totalUsage, currentMessageUsage);
|
|
1461
|
-
}
|
|
1462
|
-
if (includePartialMessages) {
|
|
1463
|
-
yield {
|
|
1464
|
-
type: "stream_event",
|
|
1465
|
-
event,
|
|
1466
|
-
session_id: getSessionId(),
|
|
1467
|
-
parent_tool_use_id: null,
|
|
1468
|
-
uuid: randomUUID()
|
|
1469
|
-
};
|
|
1470
|
-
}
|
|
1471
|
-
break;
|
|
1472
|
-
}
|
|
1473
|
-
case "attachment": {
|
|
1474
|
-
const msg = message;
|
|
1475
|
-
this.mutableMessages.push(msg);
|
|
1476
|
-
if (persistSession) {
|
|
1477
|
-
messages.push(msg);
|
|
1478
|
-
recordTranscript(messages);
|
|
1479
|
-
}
|
|
1480
|
-
const attachment = msg.attachment;
|
|
1481
|
-
if (attachment.type === "structured_output") {
|
|
1482
|
-
structuredOutputFromTool = attachment.data;
|
|
1483
|
-
} else if (attachment.type === "max_turns_reached") {
|
|
1484
|
-
if (persistSession) {
|
|
1485
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1486
|
-
await flushSessionStorage();
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
yield {
|
|
1490
|
-
type: "result",
|
|
1491
|
-
subtype: "error_max_turns",
|
|
1492
|
-
duration_ms: Date.now() - startTime,
|
|
1493
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1494
|
-
is_error: true,
|
|
1495
|
-
num_turns: attachment.turnCount,
|
|
1496
|
-
stop_reason: lastStopReason,
|
|
1497
|
-
session_id: getSessionId(),
|
|
1498
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1499
|
-
usage: this.totalUsage,
|
|
1500
|
-
modelUsage: getModelUsage(),
|
|
1501
|
-
permission_denials: this.permissionDenials,
|
|
1502
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1503
|
-
uuid: randomUUID(),
|
|
1504
|
-
errors: [
|
|
1505
|
-
`Reached maximum number of turns (${attachment.maxTurns})`
|
|
1506
|
-
]
|
|
1507
|
-
};
|
|
1508
|
-
return;
|
|
1509
|
-
} else if (replayUserMessages && attachment.type === "queued_command") {
|
|
1510
|
-
yield {
|
|
1511
|
-
type: "user",
|
|
1512
|
-
message: {
|
|
1513
|
-
role: "user",
|
|
1514
|
-
content: attachment.prompt
|
|
1515
|
-
},
|
|
1516
|
-
session_id: getSessionId(),
|
|
1517
|
-
parent_tool_use_id: null,
|
|
1518
|
-
uuid: attachment.source_uuid || msg.uuid,
|
|
1519
|
-
timestamp: msg.timestamp,
|
|
1520
|
-
isReplay: true
|
|
1521
|
-
};
|
|
1522
|
-
}
|
|
1523
|
-
break;
|
|
1524
|
-
}
|
|
1525
|
-
case "stream_request_start":
|
|
1526
|
-
break;
|
|
1527
|
-
case "system": {
|
|
1528
|
-
const msg = message;
|
|
1529
|
-
const snipResult = this.config.snipReplay?.(msg, this.mutableMessages);
|
|
1530
|
-
if (snipResult !== undefined) {
|
|
1531
|
-
if (snipResult.executed) {
|
|
1532
|
-
this.mutableMessages.length = 0;
|
|
1533
|
-
this.mutableMessages.push(...snipResult.messages);
|
|
1534
|
-
}
|
|
1535
|
-
break;
|
|
1536
|
-
}
|
|
1537
|
-
this.mutableMessages.push(msg);
|
|
1538
|
-
if (msg.subtype === "compact_boundary" && msg.compactMetadata) {
|
|
1539
|
-
const compactMsg = msg;
|
|
1540
|
-
const mutableBoundaryIdx = this.mutableMessages.length - 1;
|
|
1541
|
-
if (mutableBoundaryIdx > 0) {
|
|
1542
|
-
this.mutableMessages.splice(0, mutableBoundaryIdx);
|
|
1543
|
-
}
|
|
1544
|
-
const localBoundaryIdx = messages.length - 1;
|
|
1545
|
-
if (localBoundaryIdx > 0) {
|
|
1546
|
-
messages.splice(0, localBoundaryIdx);
|
|
1547
|
-
}
|
|
1548
|
-
yield {
|
|
1549
|
-
type: "system",
|
|
1550
|
-
subtype: "compact_boundary",
|
|
1551
|
-
session_id: getSessionId(),
|
|
1552
|
-
uuid: msg.uuid,
|
|
1553
|
-
compact_metadata: toSDKCompactMetadata(compactMsg.compactMetadata)
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
if (msg.subtype === "api_error") {
|
|
1557
|
-
const apiErrorMsg = msg;
|
|
1558
|
-
yield {
|
|
1559
|
-
type: "system",
|
|
1560
|
-
subtype: "api_retry",
|
|
1561
|
-
attempt: apiErrorMsg.retryAttempt,
|
|
1562
|
-
max_retries: apiErrorMsg.maxRetries,
|
|
1563
|
-
retry_delay_ms: apiErrorMsg.retryInMs,
|
|
1564
|
-
error_status: apiErrorMsg.error.status ?? null,
|
|
1565
|
-
error: categorizeRetryableAPIError(apiErrorMsg.error),
|
|
1566
|
-
session_id: getSessionId(),
|
|
1567
|
-
uuid: msg.uuid
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
break;
|
|
1571
|
-
}
|
|
1572
|
-
case "tool_use_summary": {
|
|
1573
|
-
const msg = message;
|
|
1574
|
-
yield {
|
|
1575
|
-
type: "tool_use_summary",
|
|
1576
|
-
summary: msg.summary,
|
|
1577
|
-
preceding_tool_use_ids: msg.precedingToolUseIds,
|
|
1578
|
-
session_id: getSessionId(),
|
|
1579
|
-
uuid: msg.uuid
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
if (maxBudgetUsd !== undefined && getTotalCostUSD() >= maxBudgetUsd) {
|
|
1585
|
-
if (persistSession) {
|
|
1586
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1587
|
-
await flushSessionStorage();
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
yield {
|
|
1591
|
-
type: "result",
|
|
1592
|
-
subtype: "error_max_budget_usd",
|
|
1593
|
-
duration_ms: Date.now() - startTime,
|
|
1594
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1595
|
-
is_error: true,
|
|
1596
|
-
num_turns: turnCount,
|
|
1597
|
-
stop_reason: lastStopReason,
|
|
1598
|
-
session_id: getSessionId(),
|
|
1599
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1600
|
-
usage: this.totalUsage,
|
|
1601
|
-
modelUsage: getModelUsage(),
|
|
1602
|
-
permission_denials: this.permissionDenials,
|
|
1603
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1604
|
-
uuid: randomUUID(),
|
|
1605
|
-
errors: [`Reached maximum budget ($${maxBudgetUsd})`]
|
|
1606
|
-
};
|
|
1607
|
-
return;
|
|
1608
|
-
}
|
|
1609
|
-
if (message.type === "user" && jsonSchema) {
|
|
1610
|
-
const currentCalls = countToolCalls(this.mutableMessages, SYNTHETIC_OUTPUT_TOOL_NAME);
|
|
1611
|
-
const callsThisQuery = currentCalls - initialStructuredOutputCalls;
|
|
1612
|
-
const maxRetries = parseInt(process.env.MAX_STRUCTURED_OUTPUT_RETRIES || "5", 10);
|
|
1613
|
-
if (callsThisQuery >= maxRetries) {
|
|
1614
|
-
if (persistSession) {
|
|
1615
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1616
|
-
await flushSessionStorage();
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
yield {
|
|
1620
|
-
type: "result",
|
|
1621
|
-
subtype: "error_max_structured_output_retries",
|
|
1622
|
-
duration_ms: Date.now() - startTime,
|
|
1623
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1624
|
-
is_error: true,
|
|
1625
|
-
num_turns: turnCount,
|
|
1626
|
-
stop_reason: lastStopReason,
|
|
1627
|
-
session_id: getSessionId(),
|
|
1628
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1629
|
-
usage: this.totalUsage,
|
|
1630
|
-
modelUsage: getModelUsage(),
|
|
1631
|
-
permission_denials: this.permissionDenials,
|
|
1632
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1633
|
-
uuid: randomUUID(),
|
|
1634
|
-
errors: [
|
|
1635
|
-
`Failed to provide valid structured output after ${maxRetries} attempts`
|
|
1636
|
-
]
|
|
1637
|
-
};
|
|
1638
|
-
return;
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
const result = messages.findLast((m) => m.type === "assistant" || m.type === "user");
|
|
1643
|
-
const edeResultType = result?.type ?? "undefined";
|
|
1644
|
-
const edeLastContentType = result?.type === "assistant" ? last_default(result.message.content)?.type ?? "none" : "n/a";
|
|
1645
|
-
if (persistSession) {
|
|
1646
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_EAGER_FLUSH) || isEnvTruthy(process.env.CLAUDE_CODE_IS_COWORK)) {
|
|
1647
|
-
await flushSessionStorage();
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
if (!isResultSuccessful(result, lastStopReason)) {
|
|
1651
|
-
yield {
|
|
1652
|
-
type: "result",
|
|
1653
|
-
subtype: "error_during_execution",
|
|
1654
|
-
duration_ms: Date.now() - startTime,
|
|
1655
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1656
|
-
is_error: true,
|
|
1657
|
-
num_turns: turnCount,
|
|
1658
|
-
stop_reason: lastStopReason,
|
|
1659
|
-
session_id: getSessionId(),
|
|
1660
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1661
|
-
usage: this.totalUsage,
|
|
1662
|
-
modelUsage: getModelUsage(),
|
|
1663
|
-
permission_denials: this.permissionDenials,
|
|
1664
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1665
|
-
uuid: randomUUID(),
|
|
1666
|
-
errors: (() => {
|
|
1667
|
-
const all = getInMemoryErrors();
|
|
1668
|
-
const start = errorLogWatermark ? all.lastIndexOf(errorLogWatermark) + 1 : 0;
|
|
1669
|
-
return [
|
|
1670
|
-
`[ede_diagnostic] result_type=${edeResultType} last_content_type=${edeLastContentType} stop_reason=${lastStopReason}`,
|
|
1671
|
-
...all.slice(start).map((_) => _.error)
|
|
1672
|
-
];
|
|
1673
|
-
})()
|
|
1674
|
-
};
|
|
1675
|
-
return;
|
|
1676
|
-
}
|
|
1677
|
-
let textResult = "";
|
|
1678
|
-
let isApiError = false;
|
|
1679
|
-
if (result.type === "assistant") {
|
|
1680
|
-
const lastContent = last_default(result.message.content);
|
|
1681
|
-
if (lastContent?.type === "text" && !SYNTHETIC_MESSAGES.has(lastContent.text)) {
|
|
1682
|
-
textResult = lastContent.text;
|
|
1683
|
-
}
|
|
1684
|
-
isApiError = Boolean(result.isApiErrorMessage);
|
|
1685
|
-
}
|
|
1686
|
-
yield {
|
|
1687
|
-
type: "result",
|
|
1688
|
-
subtype: "success",
|
|
1689
|
-
is_error: isApiError,
|
|
1690
|
-
duration_ms: Date.now() - startTime,
|
|
1691
|
-
duration_api_ms: getTotalAPIDuration(),
|
|
1692
|
-
num_turns: turnCount,
|
|
1693
|
-
result: textResult,
|
|
1694
|
-
stop_reason: lastStopReason,
|
|
1695
|
-
session_id: getSessionId(),
|
|
1696
|
-
total_cost_usd: getTotalCostUSD(),
|
|
1697
|
-
usage: this.totalUsage,
|
|
1698
|
-
modelUsage: getModelUsage(),
|
|
1699
|
-
permission_denials: this.permissionDenials,
|
|
1700
|
-
structured_output: structuredOutputFromTool,
|
|
1701
|
-
fast_mode_state: getFastModeState(mainLoopModel, initialAppState.fastMode),
|
|
1702
|
-
uuid: randomUUID()
|
|
1703
|
-
};
|
|
1704
|
-
}
|
|
1705
|
-
interrupt() {
|
|
1706
|
-
this.abortController.abort();
|
|
1707
|
-
}
|
|
1708
|
-
getMessages() {
|
|
1709
|
-
return this.mutableMessages;
|
|
1710
|
-
}
|
|
1711
|
-
getReadFileState() {
|
|
1712
|
-
return this.readFileState;
|
|
1713
|
-
}
|
|
1714
|
-
getSessionId() {
|
|
1715
|
-
return getSessionId();
|
|
1716
|
-
}
|
|
1717
|
-
setModel(model) {
|
|
1718
|
-
this.config.userSpecifiedModel = model;
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
async function* ask({
|
|
1722
|
-
commands,
|
|
1723
|
-
prompt,
|
|
1724
|
-
promptUuid,
|
|
1725
|
-
isMeta,
|
|
1726
|
-
cwd,
|
|
1727
|
-
tools,
|
|
1728
|
-
mcpClients,
|
|
1729
|
-
verbose = false,
|
|
1730
|
-
thinkingConfig,
|
|
1731
|
-
maxTurns,
|
|
1732
|
-
maxBudgetUsd,
|
|
1733
|
-
taskBudget,
|
|
1734
|
-
canUseTool,
|
|
1735
|
-
mutableMessages = [],
|
|
1736
|
-
getReadFileCache,
|
|
1737
|
-
setReadFileCache,
|
|
1738
|
-
customSystemPrompt,
|
|
1739
|
-
appendSystemPrompt,
|
|
1740
|
-
userSpecifiedModel,
|
|
1741
|
-
fallbackModel,
|
|
1742
|
-
jsonSchema,
|
|
1743
|
-
getAppState,
|
|
1744
|
-
setAppState,
|
|
1745
|
-
abortController,
|
|
1746
|
-
replayUserMessages = false,
|
|
1747
|
-
includePartialMessages = false,
|
|
1748
|
-
handleElicitation,
|
|
1749
|
-
agents = [],
|
|
1750
|
-
setSDKStatus,
|
|
1751
|
-
orphanedPermission
|
|
1752
|
-
}) {
|
|
1753
|
-
const engine = new QueryEngine({
|
|
1754
|
-
cwd,
|
|
1755
|
-
tools,
|
|
1756
|
-
commands,
|
|
1757
|
-
mcpClients,
|
|
1758
|
-
agents: agents ?? [],
|
|
1759
|
-
canUseTool,
|
|
1760
|
-
getAppState,
|
|
1761
|
-
setAppState,
|
|
1762
|
-
initialMessages: mutableMessages,
|
|
1763
|
-
readFileCache: cloneFileStateCache(getReadFileCache()),
|
|
1764
|
-
customSystemPrompt,
|
|
1765
|
-
appendSystemPrompt,
|
|
1766
|
-
userSpecifiedModel,
|
|
1767
|
-
fallbackModel,
|
|
1768
|
-
thinkingConfig,
|
|
1769
|
-
maxTurns,
|
|
1770
|
-
maxBudgetUsd,
|
|
1771
|
-
taskBudget,
|
|
1772
|
-
jsonSchema,
|
|
1773
|
-
verbose,
|
|
1774
|
-
handleElicitation,
|
|
1775
|
-
replayUserMessages,
|
|
1776
|
-
includePartialMessages,
|
|
1777
|
-
setSDKStatus,
|
|
1778
|
-
abortController,
|
|
1779
|
-
orphanedPermission,
|
|
1780
|
-
...{
|
|
1781
|
-
snipReplay: (yielded, store) => {
|
|
1782
|
-
if (!snipProjection.isSnipBoundaryMessage(yielded))
|
|
1783
|
-
return;
|
|
1784
|
-
return snipModule.snipCompactIfNeeded(store, { force: true });
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
});
|
|
1788
|
-
try {
|
|
1789
|
-
yield* engine.submitMessage(prompt, {
|
|
1790
|
-
uuid: promptUuid,
|
|
1791
|
-
isMeta
|
|
1792
|
-
});
|
|
1793
|
-
} finally {
|
|
1794
|
-
setReadFileCache(engine.getReadFileState());
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
// src/cli/print.ts
|
|
1799
873
|
init_fileStateCache();
|
|
1800
874
|
init_path();
|
|
1801
875
|
init_queryHelpers();
|
|
@@ -1867,7 +941,7 @@ init_debug();
|
|
|
1867
941
|
init_envUtils();
|
|
1868
942
|
init_lazySchema();
|
|
1869
943
|
init_bridgeConfig();
|
|
1870
|
-
import { randomUUID
|
|
944
|
+
import { randomUUID } from "crypto";
|
|
1871
945
|
import { mkdir, writeFile } from "fs/promises";
|
|
1872
946
|
import { basename, join } from "path";
|
|
1873
947
|
var DOWNLOAD_TIMEOUT_MS = 30000;
|
|
@@ -1918,7 +992,7 @@ async function resolveOne(att) {
|
|
|
1918
992
|
return;
|
|
1919
993
|
}
|
|
1920
994
|
const safeName = sanitizeFileName(att.file_name);
|
|
1921
|
-
const prefix = (att.file_uuid.slice(0, 8) ||
|
|
995
|
+
const prefix = (att.file_uuid.slice(0, 8) || randomUUID().slice(0, 8)).replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
1922
996
|
const dir = uploadsDir();
|
|
1923
997
|
const outPath = join(dir, `${prefix}-${safeName}`);
|
|
1924
998
|
try {
|
|
@@ -1994,11 +1068,11 @@ init_SyntheticOutputTool();
|
|
|
1994
1068
|
|
|
1995
1069
|
// src/utils/sessionUrl.ts
|
|
1996
1070
|
init_uuid();
|
|
1997
|
-
import { randomUUID as
|
|
1071
|
+
import { randomUUID as randomUUID2 } from "crypto";
|
|
1998
1072
|
function parseSessionIdentifier(resumeIdentifier) {
|
|
1999
1073
|
if (resumeIdentifier.toLowerCase().endsWith(".jsonl")) {
|
|
2000
1074
|
return {
|
|
2001
|
-
sessionId:
|
|
1075
|
+
sessionId: randomUUID2(),
|
|
2002
1076
|
ingressUrl: null,
|
|
2003
1077
|
isUrl: false,
|
|
2004
1078
|
jsonlFile: resumeIdentifier,
|
|
@@ -2017,7 +1091,7 @@ function parseSessionIdentifier(resumeIdentifier) {
|
|
|
2017
1091
|
try {
|
|
2018
1092
|
const url = new URL(resumeIdentifier);
|
|
2019
1093
|
return {
|
|
2020
|
-
sessionId:
|
|
1094
|
+
sessionId: randomUUID2(),
|
|
2021
1095
|
ingressUrl: url.href,
|
|
2022
1096
|
isUrl: true,
|
|
2023
1097
|
jsonlFile: null,
|
|
@@ -2031,7 +1105,7 @@ function parseSessionIdentifier(resumeIdentifier) {
|
|
|
2031
1105
|
init_sessionStorage();
|
|
2032
1106
|
init_commitAttribution();
|
|
2033
1107
|
init_client();
|
|
2034
|
-
|
|
1108
|
+
init_config();
|
|
2035
1109
|
init_auth2();
|
|
2036
1110
|
init_elicitationHandler();
|
|
2037
1111
|
init_hooks();
|
|
@@ -2039,7 +1113,7 @@ init_types();
|
|
|
2039
1113
|
init_mcpStringUtils();
|
|
2040
1114
|
init_utils();
|
|
2041
1115
|
init_vscodeSdkMcp();
|
|
2042
|
-
|
|
1116
|
+
init_config();
|
|
2043
1117
|
init_grove();
|
|
2044
1118
|
init_mappers();
|
|
2045
1119
|
init_messages();
|
|
@@ -2055,11 +1129,13 @@ init_modelStrings();
|
|
|
2055
1129
|
init_state();
|
|
2056
1130
|
init_workloadContext();
|
|
2057
1131
|
init_fileHistory();
|
|
2058
|
-
import { randomUUID as
|
|
1132
|
+
import { randomUUID as randomUUID3 } from "crypto";
|
|
2059
1133
|
init_sandbox_adapter();
|
|
2060
1134
|
init_headlessProfiler();
|
|
2061
1135
|
init_queryProfiler();
|
|
2062
1136
|
init_ids();
|
|
1137
|
+
init_autonomyRuns();
|
|
1138
|
+
init_autonomyAuthority();
|
|
2063
1139
|
init_slowOperations();
|
|
2064
1140
|
init_commands();
|
|
2065
1141
|
init_envUtils();
|
|
@@ -2372,7 +1448,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2372
1448
|
hook_id: event.hookId,
|
|
2373
1449
|
hook_name: event.hookName,
|
|
2374
1450
|
hook_event: event.hookEvent,
|
|
2375
|
-
uuid:
|
|
1451
|
+
uuid: randomUUID3(),
|
|
2376
1452
|
session_id: getSessionId()
|
|
2377
1453
|
};
|
|
2378
1454
|
case "progress":
|
|
@@ -2385,7 +1461,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2385
1461
|
stdout: event.stdout,
|
|
2386
1462
|
stderr: event.stderr,
|
|
2387
1463
|
output: event.output,
|
|
2388
|
-
uuid:
|
|
1464
|
+
uuid: randomUUID3(),
|
|
2389
1465
|
session_id: getSessionId()
|
|
2390
1466
|
};
|
|
2391
1467
|
case "response":
|
|
@@ -2400,7 +1476,7 @@ Error: sandbox required but unavailable: ${sandboxUnavailableReason}
|
|
|
2400
1476
|
stderr: event.stderr,
|
|
2401
1477
|
exit_code: event.exitCode,
|
|
2402
1478
|
outcome: event.outcome,
|
|
2403
|
-
uuid:
|
|
1479
|
+
uuid: randomUUID3(),
|
|
2404
1480
|
session_id: getSessionId()
|
|
2405
1481
|
};
|
|
2406
1482
|
}
|
|
@@ -2599,7 +1675,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2599
1675
|
subtype: "status",
|
|
2600
1676
|
status: null,
|
|
2601
1677
|
permissionMode: newMode,
|
|
2602
|
-
uuid:
|
|
1678
|
+
uuid: randomUUID3(),
|
|
2603
1679
|
session_id: getSessionId()
|
|
2604
1680
|
});
|
|
2605
1681
|
}
|
|
@@ -2620,7 +1696,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2620
1696
|
isAuthenticating: status.isAuthenticating,
|
|
2621
1697
|
output: status.output,
|
|
2622
1698
|
error: status.error,
|
|
2623
|
-
uuid:
|
|
1699
|
+
uuid: randomUUID3(),
|
|
2624
1700
|
session_id: getSessionId()
|
|
2625
1701
|
});
|
|
2626
1702
|
});
|
|
@@ -2631,7 +1707,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2631
1707
|
output.enqueue({
|
|
2632
1708
|
type: "rate_limit_event",
|
|
2633
1709
|
rate_limit_info: rateLimitInfo,
|
|
2634
|
-
uuid:
|
|
1710
|
+
uuid: randomUUID3(),
|
|
2635
1711
|
session_id: getSessionId()
|
|
2636
1712
|
});
|
|
2637
1713
|
}
|
|
@@ -2647,7 +1723,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2647
1723
|
enqueue({
|
|
2648
1724
|
mode: "prompt",
|
|
2649
1725
|
value: turnInterruptionState.message.message.content,
|
|
2650
|
-
uuid:
|
|
1726
|
+
uuid: randomUUID3()
|
|
2651
1727
|
});
|
|
2652
1728
|
}
|
|
2653
1729
|
const modelOptions = getModelOptions();
|
|
@@ -2742,7 +1818,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2742
1818
|
subtype: "elicitation_complete",
|
|
2743
1819
|
mcp_server_name: serverName,
|
|
2744
1820
|
elicitation_id: elicitationId,
|
|
2745
|
-
uuid:
|
|
1821
|
+
uuid: randomUUID3(),
|
|
2746
1822
|
session_id: getSessionId()
|
|
2747
1823
|
});
|
|
2748
1824
|
});
|
|
@@ -2984,15 +2060,23 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
2984
2060
|
if (!proactiveModule?.isProactiveActive() || proactiveModule.isProactivePaused() || inputClosed) {
|
|
2985
2061
|
return;
|
|
2986
2062
|
}
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2063
|
+
(async () => {
|
|
2064
|
+
const commands2 = await createProactiveAutonomyCommands({
|
|
2065
|
+
basePrompt: `<${TICK_TAG}>${new Date().toLocaleTimeString()}</${TICK_TAG}>`,
|
|
2066
|
+
currentDir: cwd(),
|
|
2067
|
+
shouldCreate: () => !inputClosed
|
|
2068
|
+
});
|
|
2069
|
+
for (const command of commands2) {
|
|
2070
|
+
if (inputClosed) {
|
|
2071
|
+
return;
|
|
2072
|
+
}
|
|
2073
|
+
enqueue({
|
|
2074
|
+
...command,
|
|
2075
|
+
uuid: randomUUID3()
|
|
2076
|
+
});
|
|
2077
|
+
}
|
|
2078
|
+
run();
|
|
2079
|
+
})();
|
|
2996
2080
|
}, 0);
|
|
2997
2081
|
};
|
|
2998
2082
|
subscribeToCommandQueue(() => {
|
|
@@ -3027,7 +2111,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3027
2111
|
}
|
|
3028
2112
|
pluginInstallPromise = null;
|
|
3029
2113
|
await refreshPluginState();
|
|
3030
|
-
const { setupPluginHookHotReload } = await import("./chunk-
|
|
2114
|
+
const { setupPluginHookHotReload } = await import("./chunk-a85wqwq4.js");
|
|
3031
2115
|
setupPluginHookHotReload();
|
|
3032
2116
|
}
|
|
3033
2117
|
const isMainThread = (cmd) => cmd.agentId === undefined;
|
|
@@ -3112,11 +2196,12 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3112
2196
|
duration_ms: durationMsMatch ? parseInt(durationMsMatch[1], 10) : 0
|
|
3113
2197
|
} : undefined,
|
|
3114
2198
|
session_id: getSessionId(),
|
|
3115
|
-
uuid:
|
|
2199
|
+
uuid: randomUUID3()
|
|
3116
2200
|
});
|
|
3117
2201
|
}
|
|
3118
2202
|
}
|
|
3119
2203
|
const input = command.value;
|
|
2204
|
+
const autonomyRunIds = batch.map((item) => item.autonomy?.runId).filter((runId) => Boolean(runId));
|
|
3120
2205
|
if (structuredIO instanceof RemoteIO && command.mode === "prompt") {
|
|
3121
2206
|
logEvent("tengu_bridge_message_received", {
|
|
3122
2207
|
is_repl: false
|
|
@@ -3140,76 +2225,114 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3140
2225
|
headlessProfilerCheckpoint("before_ask");
|
|
3141
2226
|
startQueryProfile();
|
|
3142
2227
|
const cmd = command;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
2228
|
+
for (const runId of autonomyRunIds) {
|
|
2229
|
+
await markAutonomyRunRunning(runId);
|
|
2230
|
+
}
|
|
2231
|
+
let lastResultIsError = false;
|
|
2232
|
+
try {
|
|
2233
|
+
await runWithWorkload(cmd.workload ?? options.workload, async () => {
|
|
2234
|
+
for await (const message of ask({
|
|
2235
|
+
commands: uniqBy_default([...currentCommands, ...appState.mcp.commands], "name"),
|
|
2236
|
+
prompt: input,
|
|
2237
|
+
promptUuid: cmd.uuid,
|
|
2238
|
+
isMeta: cmd.isMeta,
|
|
2239
|
+
cwd: cwd(),
|
|
2240
|
+
tools: allTools,
|
|
2241
|
+
verbose: options.verbose,
|
|
2242
|
+
mcpClients: allMcpClients,
|
|
2243
|
+
thinkingConfig: options.thinkingConfig,
|
|
2244
|
+
maxTurns: options.maxTurns,
|
|
2245
|
+
maxBudgetUsd: options.maxBudgetUsd,
|
|
2246
|
+
taskBudget: options.taskBudget,
|
|
2247
|
+
canUseTool,
|
|
2248
|
+
userSpecifiedModel: activeUserSpecifiedModel,
|
|
2249
|
+
fallbackModel: options.fallbackModel,
|
|
2250
|
+
jsonSchema: getInitJsonSchema() ?? options.jsonSchema,
|
|
2251
|
+
mutableMessages,
|
|
2252
|
+
getReadFileCache: () => pendingSeeds.size === 0 ? readFileState : mergeFileStateCaches(readFileState, pendingSeeds),
|
|
2253
|
+
setReadFileCache: (cache) => {
|
|
2254
|
+
readFileState = cache;
|
|
2255
|
+
for (const [path, seed] of pendingSeeds.entries()) {
|
|
2256
|
+
const existing = readFileState.get(path);
|
|
2257
|
+
if (!existing || seed.timestamp > existing.timestamp) {
|
|
2258
|
+
readFileState.set(path, seed);
|
|
2259
|
+
}
|
|
3169
2260
|
}
|
|
2261
|
+
pendingSeeds.clear();
|
|
2262
|
+
},
|
|
2263
|
+
customSystemPrompt: options.systemPrompt,
|
|
2264
|
+
appendSystemPrompt: options.appendSystemPrompt,
|
|
2265
|
+
getAppState,
|
|
2266
|
+
setAppState,
|
|
2267
|
+
abortController,
|
|
2268
|
+
replayUserMessages: options.replayUserMessages,
|
|
2269
|
+
includePartialMessages: options.includePartialMessages,
|
|
2270
|
+
handleElicitation: (serverName, params, elicitSignal) => structuredIO.handleElicitation(serverName, params.message, undefined, elicitSignal, params.mode, params.url, "elicitationId" in params ? params.elicitationId : undefined),
|
|
2271
|
+
agents: currentAgents,
|
|
2272
|
+
orphanedPermission: cmd.orphanedPermission,
|
|
2273
|
+
setSDKStatus: (status) => {
|
|
2274
|
+
output.enqueue({
|
|
2275
|
+
type: "system",
|
|
2276
|
+
subtype: "status",
|
|
2277
|
+
status,
|
|
2278
|
+
session_id: getSessionId(),
|
|
2279
|
+
uuid: randomUUID3()
|
|
2280
|
+
});
|
|
3170
2281
|
}
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
type: "system",
|
|
3186
|
-
subtype: "status",
|
|
3187
|
-
status,
|
|
3188
|
-
session_id: getSessionId(),
|
|
3189
|
-
uuid: randomUUID4()
|
|
3190
|
-
});
|
|
3191
|
-
}
|
|
3192
|
-
})) {
|
|
3193
|
-
forwardMessagesToBridge();
|
|
3194
|
-
if (message.type === "result") {
|
|
3195
|
-
for (const event of drainSdkEvents()) {
|
|
3196
|
-
output.enqueue(event);
|
|
3197
|
-
}
|
|
3198
|
-
const currentState = getAppState();
|
|
3199
|
-
if (getRunningTasks(currentState).some((t) => (t.type === "local_agent" || t.type === "local_workflow") && isBackgroundTask(t))) {
|
|
3200
|
-
heldBackResult = message;
|
|
2282
|
+
})) {
|
|
2283
|
+
forwardMessagesToBridge();
|
|
2284
|
+
if (message.type === "result") {
|
|
2285
|
+
lastResultIsError = !!message.is_error;
|
|
2286
|
+
for (const event of drainSdkEvents()) {
|
|
2287
|
+
output.enqueue(event);
|
|
2288
|
+
}
|
|
2289
|
+
const currentState = getAppState();
|
|
2290
|
+
if (getRunningTasks(currentState).some((t) => (t.type === "local_agent" || t.type === "local_workflow") && isBackgroundTask(t))) {
|
|
2291
|
+
heldBackResult = message;
|
|
2292
|
+
} else {
|
|
2293
|
+
heldBackResult = null;
|
|
2294
|
+
output.enqueue(message);
|
|
2295
|
+
}
|
|
3201
2296
|
} else {
|
|
3202
|
-
|
|
2297
|
+
for (const event of drainSdkEvents()) {
|
|
2298
|
+
output.enqueue(event);
|
|
2299
|
+
}
|
|
3203
2300
|
output.enqueue(message);
|
|
3204
2301
|
}
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2304
|
+
if (lastResultIsError) {
|
|
2305
|
+
for (const runId of autonomyRunIds) {
|
|
2306
|
+
await finalizeAutonomyRunFailed({
|
|
2307
|
+
runId,
|
|
2308
|
+
error: "ask() returned an error result"
|
|
2309
|
+
});
|
|
2310
|
+
}
|
|
2311
|
+
} else {
|
|
2312
|
+
for (const runId of autonomyRunIds) {
|
|
2313
|
+
const nextCommands = await finalizeAutonomyRunCompleted({
|
|
2314
|
+
runId,
|
|
2315
|
+
currentDir: cwd(),
|
|
2316
|
+
priority: "later",
|
|
2317
|
+
workload: cmd.workload ?? options.workload
|
|
2318
|
+
});
|
|
2319
|
+
for (const nextCommand of nextCommands) {
|
|
2320
|
+
enqueue({
|
|
2321
|
+
...nextCommand,
|
|
2322
|
+
uuid: randomUUID3()
|
|
2323
|
+
});
|
|
3208
2324
|
}
|
|
3209
|
-
output.enqueue(message);
|
|
3210
2325
|
}
|
|
3211
2326
|
}
|
|
3212
|
-
})
|
|
2327
|
+
} catch (error) {
|
|
2328
|
+
for (const runId of autonomyRunIds) {
|
|
2329
|
+
await finalizeAutonomyRunFailed({
|
|
2330
|
+
runId,
|
|
2331
|
+
error: String(error)
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
throw error;
|
|
2335
|
+
}
|
|
3213
2336
|
for (const uuid of batchUuids) {
|
|
3214
2337
|
notifyCommandLifecycle(uuid, "completed");
|
|
3215
2338
|
}
|
|
@@ -3234,7 +2357,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3234
2357
|
const suggestionMsg = {
|
|
3235
2358
|
type: "prompt_suggestion",
|
|
3236
2359
|
suggestion: result.suggestion,
|
|
3237
|
-
uuid:
|
|
2360
|
+
uuid: randomUUID3(),
|
|
3238
2361
|
session_id: getSessionId()
|
|
3239
2362
|
};
|
|
3240
2363
|
const lastEmittedEntry = {
|
|
@@ -3324,7 +2447,7 @@ function runHeadlessStreaming(structuredIO, mcpClients, commands, tools, initial
|
|
|
3324
2447
|
usage: EMPTY_USAGE,
|
|
3325
2448
|
modelUsage: {},
|
|
3326
2449
|
permission_denials: [],
|
|
3327
|
-
uuid:
|
|
2450
|
+
uuid: randomUUID3(),
|
|
3328
2451
|
errors: [
|
|
3329
2452
|
errorMessage(error),
|
|
3330
2453
|
...getInMemoryErrors().map((_) => _.error)
|
|
@@ -3413,7 +2536,7 @@ ${m.text}
|
|
|
3413
2536
|
enqueue({
|
|
3414
2537
|
mode: "prompt",
|
|
3415
2538
|
value: formatted,
|
|
3416
|
-
uuid:
|
|
2539
|
+
uuid: randomUUID3()
|
|
3417
2540
|
});
|
|
3418
2541
|
run();
|
|
3419
2542
|
return;
|
|
@@ -3424,7 +2547,7 @@ ${m.text}
|
|
|
3424
2547
|
enqueue({
|
|
3425
2548
|
mode: "prompt",
|
|
3426
2549
|
value: SHUTDOWN_TEAM_PROMPT,
|
|
3427
|
-
uuid:
|
|
2550
|
+
uuid: randomUUID3()
|
|
3428
2551
|
});
|
|
3429
2552
|
run();
|
|
3430
2553
|
return;
|
|
@@ -3448,7 +2571,7 @@ ${m.text}
|
|
|
3448
2571
|
enqueue({
|
|
3449
2572
|
mode: "prompt",
|
|
3450
2573
|
value: SHUTDOWN_TEAM_PROMPT,
|
|
3451
|
-
uuid:
|
|
2574
|
+
uuid: randomUUID3()
|
|
3452
2575
|
});
|
|
3453
2576
|
run();
|
|
3454
2577
|
} else {
|
|
@@ -3472,15 +2595,72 @@ ${m.text}
|
|
|
3472
2595
|
onFire: (prompt) => {
|
|
3473
2596
|
if (inputClosed)
|
|
3474
2597
|
return;
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
2598
|
+
(async () => {
|
|
2599
|
+
const prepared = await prepareAutonomyTurnPrompt({
|
|
2600
|
+
basePrompt: prompt,
|
|
2601
|
+
trigger: "scheduled-task",
|
|
2602
|
+
currentDir: cwd()
|
|
2603
|
+
});
|
|
2604
|
+
if (inputClosed)
|
|
2605
|
+
return;
|
|
2606
|
+
const command = await commitAutonomyQueuedPrompt({
|
|
2607
|
+
prepared,
|
|
2608
|
+
currentDir: cwd(),
|
|
2609
|
+
workload: WORKLOAD_CRON
|
|
2610
|
+
});
|
|
2611
|
+
if (inputClosed)
|
|
2612
|
+
return;
|
|
2613
|
+
enqueue({
|
|
2614
|
+
...command,
|
|
2615
|
+
uuid: randomUUID3()
|
|
2616
|
+
});
|
|
2617
|
+
run();
|
|
2618
|
+
})();
|
|
2619
|
+
},
|
|
2620
|
+
onFireTask: (task) => {
|
|
2621
|
+
if (inputClosed)
|
|
2622
|
+
return;
|
|
2623
|
+
(async () => {
|
|
2624
|
+
if (task.agentId) {
|
|
2625
|
+
const prepared2 = await prepareAutonomyTurnPrompt({
|
|
2626
|
+
basePrompt: task.prompt,
|
|
2627
|
+
trigger: "scheduled-task",
|
|
2628
|
+
currentDir: cwd()
|
|
2629
|
+
});
|
|
2630
|
+
if (inputClosed)
|
|
2631
|
+
return;
|
|
2632
|
+
const command2 = await commitAutonomyQueuedPrompt({
|
|
2633
|
+
prepared: prepared2,
|
|
2634
|
+
currentDir: cwd(),
|
|
2635
|
+
sourceId: task.id,
|
|
2636
|
+
sourceLabel: task.prompt,
|
|
2637
|
+
workload: WORKLOAD_CRON
|
|
2638
|
+
});
|
|
2639
|
+
await markAutonomyRunFailed(command2.autonomy.runId, `No teammate runtime available for scheduled task owner ${task.agentId} in headless mode.`);
|
|
2640
|
+
return;
|
|
2641
|
+
}
|
|
2642
|
+
const prepared = await prepareAutonomyTurnPrompt({
|
|
2643
|
+
basePrompt: task.prompt,
|
|
2644
|
+
trigger: "scheduled-task",
|
|
2645
|
+
currentDir: cwd()
|
|
2646
|
+
});
|
|
2647
|
+
if (inputClosed)
|
|
2648
|
+
return;
|
|
2649
|
+
const command = await commitAutonomyQueuedPrompt({
|
|
2650
|
+
prepared,
|
|
2651
|
+
currentDir: cwd(),
|
|
2652
|
+
sourceId: task.id,
|
|
2653
|
+
sourceLabel: task.prompt,
|
|
2654
|
+
workload: WORKLOAD_CRON
|
|
2655
|
+
});
|
|
2656
|
+
if (inputClosed)
|
|
2657
|
+
return;
|
|
2658
|
+
enqueue({
|
|
2659
|
+
...command,
|
|
2660
|
+
uuid: randomUUID3()
|
|
2661
|
+
});
|
|
2662
|
+
run();
|
|
2663
|
+
})();
|
|
3484
2664
|
},
|
|
3485
2665
|
isLoading: () => running || inputClosed,
|
|
3486
2666
|
getJitterConfig: cronJitterConfigModule?.getCronJitterConfig,
|
|
@@ -4184,7 +3364,7 @@ ${m.text}
|
|
|
4184
3364
|
} else {
|
|
4185
3365
|
let bridgeFailureDetail;
|
|
4186
3366
|
try {
|
|
4187
|
-
const { initReplBridge } = await import("./chunk-
|
|
3367
|
+
const { initReplBridge } = await import("./chunk-bgf5zvvv.js");
|
|
4188
3368
|
const handle = await initReplBridge({
|
|
4189
3369
|
onInboundMessage(msg2) {
|
|
4190
3370
|
const fields = extractInboundMessageFields(msg2);
|
|
@@ -4232,7 +3412,7 @@ ${m.text}
|
|
|
4232
3412
|
subtype: "bridge_state",
|
|
4233
3413
|
state,
|
|
4234
3414
|
detail,
|
|
4235
|
-
uuid:
|
|
3415
|
+
uuid: randomUUID3(),
|
|
4236
3416
|
session_id: getSessionId()
|
|
4237
3417
|
});
|
|
4238
3418
|
},
|
|
@@ -4542,7 +3722,7 @@ async function handleInitializeRequest(request, requestId, initialized, output,
|
|
|
4542
3722
|
isAuthenticating: status.isAuthenticating,
|
|
4543
3723
|
output: status.output,
|
|
4544
3724
|
error: status.error,
|
|
4545
|
-
uuid:
|
|
3725
|
+
uuid: randomUUID3(),
|
|
4546
3726
|
session_id: getSessionId()
|
|
4547
3727
|
});
|
|
4548
3728
|
}
|
|
@@ -4550,7 +3730,11 @@ async function handleInitializeRequest(request, requestId, initialized, output,
|
|
|
4550
3730
|
}
|
|
4551
3731
|
async function handleRewindFiles(userMessageId, appState, setAppState, dryRun) {
|
|
4552
3732
|
if (!fileHistoryEnabled()) {
|
|
4553
|
-
return {
|
|
3733
|
+
return {
|
|
3734
|
+
canRewind: false,
|
|
3735
|
+
error: "File rewinding is not enabled.",
|
|
3736
|
+
filesChanged: []
|
|
3737
|
+
};
|
|
4554
3738
|
}
|
|
4555
3739
|
if (!fileHistoryCanRestore(appState.fileHistory, userMessageId)) {
|
|
4556
3740
|
return {
|
|
@@ -4710,7 +3894,10 @@ function reregisterChannelHandlerAfterReconnect(connection) {
|
|
|
4710
3894
|
value: wrapChannelMessage(connection.name, content, meta),
|
|
4711
3895
|
priority: "next",
|
|
4712
3896
|
isMeta: true,
|
|
4713
|
-
origin: {
|
|
3897
|
+
origin: {
|
|
3898
|
+
kind: "channel",
|
|
3899
|
+
server: connection.name
|
|
3900
|
+
},
|
|
4714
3901
|
skipSlashCommands: true
|
|
4715
3902
|
});
|
|
4716
3903
|
});
|
|
@@ -4730,7 +3917,7 @@ function emitLoadError(message, outputFormat) {
|
|
|
4730
3917
|
usage: EMPTY_USAGE,
|
|
4731
3918
|
modelUsage: {},
|
|
4732
3919
|
permission_denials: [],
|
|
4733
|
-
uuid:
|
|
3920
|
+
uuid: randomUUID3(),
|
|
4734
3921
|
errors: [message]
|
|
4735
3922
|
};
|
|
4736
3923
|
process.stdout.write(jsonStringify(errorResult) + `
|
|
@@ -4813,7 +4000,7 @@ async function loadInitialMessages(setAppState, options) {
|
|
|
4813
4000
|
processMessagesForTeleportResume,
|
|
4814
4001
|
teleportResumeCodeSession,
|
|
4815
4002
|
validateGitState
|
|
4816
|
-
} = await import("./chunk-
|
|
4003
|
+
} = await import("./chunk-kz3q1ce0.js");
|
|
4817
4004
|
await validateGitState();
|
|
4818
4005
|
const teleportResult = await teleportResumeCodeSession(options.teleport);
|
|
4819
4006
|
const { branchError } = await checkOutTeleportedSessionBranch(teleportResult.branch);
|