@opencode-ai/core 0.0.0-dev-18308 → 0.0.0-dev-18317
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +2 -2
- package/dist/agent.js +70 -70
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +68 -68
- package/dist/catalog.js +78 -78
- package/dist/chunks/{reference-02dbfq60.js → websearch-02dbfq60.js} +1 -1
- package/dist/chunks/{reference-s69qnyqr.js → websearch-0gt8y37a.js} +82 -82
- package/dist/chunks/{reference-0kvmztkf.js → websearch-0kvmztkf.js} +1 -1
- package/dist/chunks/{reference-y9cnd79h.js → websearch-0we2svby.js} +7 -7
- package/dist/chunks/{reference-mhthrr8t.js → websearch-10t4wvz4.js} +11 -11
- package/dist/chunks/{reference-5g1914dz.js → websearch-17cjhrvv.js} +4 -4
- package/dist/chunks/{reference-18pv8fg3.js → websearch-18pv8fg3.js} +2 -2
- package/dist/chunks/{reference-0czbxy3y.js → websearch-1cpekw4n.js} +11 -11
- package/dist/chunks/{reference-qprpv5f0.js → websearch-1nrz3m1g.js} +2 -2
- package/dist/chunks/{reference-ba6sbxs1.js → websearch-1xn0w7vp.js} +4 -4
- package/dist/chunks/{reference-5fsfp0h1.js → websearch-201xnfx8.js} +3 -3
- package/dist/chunks/{reference-a3qdn3d8.js → websearch-21kme4jy.js} +4 -4
- package/dist/chunks/{reference-ygvtm8mp.js → websearch-27010ps5.js} +4 -4
- package/dist/chunks/{reference-37pf2nh2.js → websearch-29ed1feb.js} +4 -4
- package/dist/chunks/{reference-7cem71ck.js → websearch-2c4e2ceh.js} +5 -5
- package/dist/chunks/{reference-ah8b0vtt.js → websearch-2k03bnw0.js} +3 -3
- package/dist/chunks/{reference-cz3dkvcz.js → websearch-2m0hgr65.js} +6 -4
- package/dist/chunks/{reference-2nmyybe0.js → websearch-2nmyybe0.js} +1 -1
- package/dist/chunks/{reference-9tbj2q0z.js → websearch-2wds5nk3.js} +1 -1
- package/dist/chunks/{reference-rmrf6ge4.js → websearch-2x5xcer4.js} +11 -11
- package/dist/chunks/{reference-1dtpyw9b.js → websearch-2xfjc6fg.js} +156 -156
- package/dist/chunks/{reference-hzzt45vx.js → websearch-3a8zfxj9.js} +12 -12
- package/dist/chunks/{reference-3g8vftxb.js → websearch-3g8vftxb.js} +2 -2
- package/dist/chunks/{reference-bmd659vv.js → websearch-3qv8nf0b.js} +1 -1
- package/dist/chunks/{reference-3thh6229.js → websearch-3thh6229.js} +2 -2
- package/dist/chunks/{reference-k2thag1n.js → websearch-3yzbbktj.js} +7 -7
- package/dist/chunks/{reference-b6e4b6bp.js → websearch-47cahk31.js} +3 -3
- package/dist/chunks/{reference-re7fg3x7.js → websearch-47qqxj9b.js} +9 -9
- package/dist/chunks/{reference-9jwpb1me.js → websearch-4g9ayprc.js} +11 -11
- package/dist/chunks/{reference-19rb4qj2.js → websearch-4pn640x6.js} +7 -7
- package/dist/chunks/{reference-wtpea7yv.js → websearch-4pyx3cx9.js} +3 -3
- package/dist/chunks/{reference-4s2xwh5d.js → websearch-4s2xwh5d.js} +3 -3
- package/dist/chunks/{reference-zprqy3cn.js → websearch-4wa59yxm.js} +6 -6
- package/dist/chunks/{reference-4zzdwbaz.js → websearch-4zzdwbaz.js} +2 -2
- package/dist/chunks/{reference-50jxp3hw.js → websearch-50jxp3hw.js} +1 -1
- package/dist/chunks/{reference-22ce1dwm.js → websearch-525f5d9w.js} +5 -5
- package/dist/chunks/{reference-79t1yzkm.js → websearch-52db898y.js} +5 -5
- package/dist/chunks/{reference-57tzwnz4.js → websearch-57tzwnz4.js} +1 -1
- package/dist/chunks/{reference-58xdvehb.js → websearch-58xdvehb.js} +1 -1
- package/dist/chunks/{reference-n1vp5hpn.js → websearch-590qze40.js} +6 -6
- package/dist/chunks/{reference-11jmdqxk.js → websearch-5cdnkd94.js} +3 -3
- package/dist/chunks/{reference-cd586yw6.js → websearch-5fbk5rn5.js} +9 -9
- package/dist/chunks/{reference-5fe026tx.js → websearch-5fe026tx.js} +3 -3
- package/dist/chunks/websearch-5j5drt6b.js +209 -0
- package/dist/chunks/{reference-d528t2rb.js → websearch-5nb3q8x1.js} +5 -5
- package/dist/chunks/{reference-5rs65q6p.js → websearch-5rs65q6p.js} +1 -1
- package/dist/chunks/{reference-5vcssjzn.js → websearch-5vcssjzn.js} +1 -1
- package/dist/chunks/{reference-5z4zwtb4.js → websearch-5z4zwtb4.js} +2 -2
- package/dist/chunks/{reference-6272rtjg.js → websearch-6272rtjg.js} +1 -1
- package/dist/chunks/{reference-9yzqqv23.js → websearch-6c7aem5s.js} +3 -3
- package/dist/chunks/{reference-091m19a6.js → websearch-6e5ezbs1.js} +14 -14
- package/dist/chunks/{reference-rhkw6z40.js → websearch-6kw3ybpt.js} +4 -4
- package/dist/chunks/{reference-6ky7rqk7.js → websearch-6ky7rqk7.js} +1 -1
- package/dist/chunks/{reference-6q0m15b3.js → websearch-6q0m15b3.js} +1 -1
- package/dist/chunks/{reference-nyccne89.js → websearch-6ss36v2y.js} +5 -5
- package/dist/chunks/{reference-6wkzvma0.js → websearch-6wkzvma0.js} +2 -2
- package/dist/chunks/{reference-gvenxef3.js → websearch-75fs7hn0.js} +6 -6
- package/dist/chunks/{reference-75h1hfe2.js → websearch-75h1hfe2.js} +2 -2
- package/dist/chunks/{reference-41fsw2sx.js → websearch-7ass7ys0.js} +9 -9
- package/dist/chunks/{reference-c0xjkn0k.js → websearch-7g48gsdp.js} +24 -24
- package/dist/chunks/{reference-7gqqz1s8.js → websearch-7gqqz1s8.js} +1 -1
- package/dist/chunks/{reference-7khw64yh.js → websearch-7khw64yh.js} +1 -1
- package/dist/chunks/{reference-7mrpdsq5.js → websearch-7mrpdsq5.js} +1 -1
- package/dist/chunks/{reference-z6xdhe6c.js → websearch-7thnevmq.js} +2 -2
- package/dist/chunks/{reference-7wcmqxrc.js → websearch-7wcmqxrc.js} +1 -1
- package/dist/chunks/{reference-zgr65xev.js → websearch-7xmy5ejk.js} +91 -91
- package/dist/chunks/{reference-s7tjqgve.js → websearch-7zzetfaf.js} +2 -2
- package/dist/chunks/{reference-1gd2dghy.js → websearch-81cy98rh.js} +26 -26
- package/dist/chunks/{reference-88jbfw8z.js → websearch-88jbfw8z.js} +2 -2
- package/dist/chunks/{reference-n1x4rjqh.js → websearch-8pngjawd.js} +2 -2
- package/dist/chunks/{reference-f7q7a28y.js → websearch-8qrvdwwg.js} +6 -6
- package/dist/chunks/{reference-mqpc4kbv.js → websearch-8t3awfzz.js} +8 -8
- package/dist/chunks/{reference-999qd968.js → websearch-999qd968.js} +1 -1
- package/dist/chunks/{reference-63wsmm7a.js → websearch-9anf35ab.js} +3 -3
- package/dist/chunks/{reference-h2h934sz.js → websearch-9b76fep3.js} +6 -6
- package/dist/chunks/{reference-j0svrcq4.js → websearch-9cd7x1k9.js} +3 -3
- package/dist/chunks/websearch-9cexex25.js +340 -0
- package/dist/chunks/{reference-9f0rnpkn.js → websearch-9f0rnpkn.js} +1 -1
- package/dist/chunks/{reference-4jw0pgyz.js → websearch-9fn8dqmk.js} +15 -15
- package/dist/chunks/{reference-0n5xbhfz.js → websearch-9jqrb2m1.js} +6 -6
- package/dist/chunks/{reference-p63vddbh.js → websearch-9kqmazdh.js} +2 -2
- package/dist/chunks/{reference-qs93qr9r.js → websearch-9vcvjv88.js} +10 -10
- package/dist/chunks/{reference-0b17sr9d.js → websearch-a09abg6q.js} +11 -14
- package/dist/chunks/{reference-fsqnkees.js → websearch-awg5d31a.js} +1 -1
- package/dist/chunks/{reference-55gb1ke3.js → websearch-awtrym76.js} +11 -11
- package/dist/chunks/{reference-ef258b02.js → websearch-az0m5yex.js} +3 -3
- package/dist/chunks/{reference-k54zehzc.js → websearch-b0txt7c1.js} +4 -4
- package/dist/chunks/{reference-q3wmgsnd.js → websearch-b1ggcg8s.js} +3 -3
- package/dist/chunks/{reference-4hw19zv3.js → websearch-b2sx08jb.js} +4 -4
- package/dist/chunks/{reference-y401mb5m.js → websearch-b36a6xra.js} +7 -7
- package/dist/chunks/{reference-rsxf1mq3.js → websearch-b5nq1gwq.js} +43 -43
- package/dist/chunks/{reference-ry8yw0cw.js → websearch-b6550nzh.js} +8 -8
- package/dist/chunks/{reference-kaq06tdb.js → websearch-b9qmyk1k.js} +3 -3
- package/dist/chunks/{reference-bh1wr8rq.js → websearch-bh1wr8rq.js} +2 -2
- package/dist/chunks/{reference-k8yr1g38.js → websearch-bhy5afcc.js} +8 -8
- package/dist/chunks/{reference-chh33txw.js → websearch-bm43bkwd.js} +3 -3
- package/dist/chunks/{reference-bmknfyv0.js → websearch-bmknfyv0.js} +2 -2
- package/dist/chunks/{reference-byab506k.js → websearch-byab506k.js} +1 -1
- package/dist/chunks/{reference-c4wcb9vc.js → websearch-c4wcb9vc.js} +2 -2
- package/dist/chunks/{reference-20pzcks3.js → websearch-chpcvbqt.js} +7 -7
- package/dist/chunks/{reference-gp065hq9.js → websearch-cmyda9zp.js} +7 -7
- package/dist/chunks/{reference-t1aphcpb.js → websearch-cpt8pycg.js} +7 -7
- package/dist/chunks/{reference-csrx180a.js → websearch-csrx180a.js} +3 -3
- package/dist/chunks/{reference-55b39xeh.js → websearch-ctb22g6v.js} +11 -11
- package/dist/chunks/{reference-d9gjxq8y.js → websearch-ctx25qkc.js} +17 -17
- package/dist/chunks/{reference-d2gk9vpf.js → websearch-d2gk9vpf.js} +2 -2
- package/dist/chunks/{reference-8dezwctw.js → websearch-d469a3hj.js} +7 -7
- package/dist/chunks/{reference-d4ax61k3.js → websearch-d4ax61k3.js} +2 -2
- package/dist/chunks/{reference-xsxc5zzg.js → websearch-dakzxh1t.js} +3 -3
- package/dist/chunks/{reference-dhphtf1x.js → websearch-dhphtf1x.js} +1 -1
- package/dist/chunks/{reference-kjhdxymv.js → websearch-dmjgkwwz.js} +10 -10
- package/dist/chunks/{reference-wqh6ncsy.js → websearch-dqnkgc5m.js} +58 -58
- package/dist/chunks/{reference-085me6pm.js → websearch-dwjtr548.js} +14 -14
- package/dist/chunks/{reference-e1z9a0ts.js → websearch-e1z9a0ts.js} +2 -2
- package/dist/chunks/{reference-gdtp3jrg.js → websearch-e9xk5tjd.js} +4 -4
- package/dist/chunks/{reference-ec8vrfw5.js → websearch-ec8vrfw5.js} +1 -1
- package/dist/chunks/{reference-k8wyjag4.js → websearch-emhz2f6m.js} +4 -4
- package/dist/chunks/{reference-aaxez5kq.js → websearch-enpg66yn.js} +1 -1
- package/dist/chunks/{reference-t0ys4t1y.js → websearch-eq0qrcav.js} +7 -7
- package/dist/chunks/{reference-0cd2f6dk.js → websearch-ess88ng1.js} +7 -7
- package/dist/chunks/{reference-n2eqf845.js → websearch-f0ccbwty.js} +8 -8
- package/dist/chunks/{reference-f9wt0tjw.js → websearch-f9wt0tjw.js} +2 -2
- package/dist/chunks/{reference-wstrpjpz.js → websearch-fa7vka6b.js} +6 -6
- package/dist/chunks/{reference-548frz2t.js → websearch-fab9zayx.js} +7 -7
- package/dist/chunks/{reference-fb7nfzf2.js → websearch-fb7nfzf2.js} +3 -3
- package/dist/chunks/{reference-5yqtgvpg.js → websearch-fbghtzen.js} +11 -11
- package/dist/chunks/{reference-xfry7hk8.js → websearch-fgyjabww.js} +2 -2
- package/dist/chunks/{reference-86yyw0dc.js → websearch-fqvsddet.js} +8 -8
- package/dist/chunks/{reference-tg8dpcsz.js → websearch-ft5c25vb.js} +11 -11
- package/dist/chunks/{reference-c0nday0s.js → websearch-fzfqaqfh.js} +61 -65
- package/dist/chunks/{reference-kh49hj9f.js → websearch-g3yfxhjy.js} +3 -3
- package/dist/chunks/{reference-gcay93cp.js → websearch-gcay93cp.js} +1 -1
- package/dist/chunks/{reference-gd2xppx8.js → websearch-gd2xppx8.js} +1 -1
- package/dist/chunks/{reference-e9yzz6kb.js → websearch-gpybhmhb.js} +3 -3
- package/dist/chunks/{reference-b2b9gamg.js → websearch-gr66h1z8.js} +2 -2
- package/dist/chunks/{reference-b5v0jbn3.js → websearch-gtz6pd4m.js} +3 -3
- package/dist/chunks/{reference-3pzphhbg.js → websearch-gxz0an04.js} +5 -5
- package/dist/chunks/{reference-k2sba6yj.js → websearch-h0pyd46r.js} +27 -27
- package/dist/chunks/{reference-q7kk6b5b.js → websearch-h12kt9pa.js} +2 -2
- package/dist/chunks/{reference-94cwv7zp.js → websearch-h2hc433s.js} +3 -3
- package/dist/chunks/{reference-5s25tnxc.js → websearch-h4ndfyb7.js} +10 -10
- package/dist/chunks/{reference-fpbvvhtr.js → websearch-h5s4pan6.js} +11 -11
- package/dist/chunks/{reference-h94zdhz8.js → websearch-h94zdhz8.js} +2 -2
- package/dist/chunks/{reference-4qd1q64p.js → websearch-h98y0mrp.js} +4 -4
- package/dist/chunks/{reference-e2ymnj1f.js → websearch-hj14fmnq.js} +16 -16
- package/dist/chunks/{reference-ya5ycvh2.js → websearch-hks04eny.js} +7 -7
- package/dist/chunks/{reference-hp6rpdnc.js → websearch-hp6rpdnc.js} +1 -1
- package/dist/chunks/{reference-hqh8yks9.js → websearch-hqh8yks9.js} +3 -3
- package/dist/chunks/{reference-dk85zq1v.js → websearch-hwjdan08.js} +4 -4
- package/dist/chunks/{reference-j2rwtkhe.js → websearch-j2rwtkhe.js} +4 -4
- package/dist/chunks/{reference-edb62hq5.js → websearch-jb8w2v2y.js} +2 -2
- package/dist/chunks/{reference-837074km.js → websearch-jpwacwg4.js} +3 -3
- package/dist/chunks/{reference-k42t1tha.js → websearch-k42t1tha.js} +2 -2
- package/dist/chunks/{reference-mds71t8k.js → websearch-k7yw3wsd.js} +8 -8
- package/dist/chunks/{reference-m4h8nqtm.js → websearch-kc4jyken.js} +12 -12
- package/dist/chunks/{reference-kg1345f7.js → websearch-kg1345f7.js} +1 -1
- package/dist/chunks/{reference-gc19wh2f.js → websearch-kh05cbag.js} +4 -4
- package/dist/chunks/{reference-kp1t5rcy.js → websearch-kp1t5rcy.js} +1 -1
- package/dist/chunks/{reference-hhajr42d.js → websearch-krsqcmnj.js} +2 -1
- package/dist/chunks/{reference-tpqxkpz5.js → websearch-kvx98f31.js} +10 -10
- package/dist/chunks/{reference-nnqvap5m.js → websearch-m29s5d2e.js} +11 -11
- package/dist/chunks/{reference-fyegnnfc.js → websearch-m55whf0h.js} +2 -2
- package/dist/chunks/{reference-9sd4ner2.js → websearch-magzrr56.js} +3 -3
- package/dist/chunks/{reference-ramtrbxa.js → websearch-mbdqnpvq.js} +4 -4
- package/dist/chunks/{reference-mf0hyk7z.js → websearch-mf0hyk7z.js} +1 -1
- package/dist/chunks/{reference-mh28new4.js → websearch-mh28new4.js} +2 -2
- package/dist/chunks/{reference-mnb85w6b.js → websearch-mnb85w6b.js} +2 -2
- package/dist/chunks/{reference-gmd7ft85.js → websearch-msj0jtt3.js} +5 -5
- package/dist/chunks/{reference-z869xcw4.js → websearch-mthve3rg.js} +7 -7
- package/dist/chunks/{reference-2fbr88mz.js → websearch-mtz62vw2.js} +12 -12
- package/dist/chunks/{reference-mxvw03gv.js → websearch-mxvw03gv.js} +1 -1
- package/dist/chunks/{reference-2t6s1357.js → websearch-n0m4cmgw.js} +4 -4
- package/dist/chunks/{reference-nesb2rcz.js → websearch-nesb2rcz.js} +2 -2
- package/dist/chunks/{reference-dpx12pzw.js → websearch-nmdycfg9.js} +6 -6
- package/dist/chunks/{reference-xtqgm50w.js → websearch-nr0tesn3.js} +38 -38
- package/dist/chunks/{reference-nr76rjj3.js → websearch-nr76rjj3.js} +2 -2
- package/dist/chunks/{reference-tdsrac0c.js → websearch-nr8j2j2m.js} +4 -4
- package/dist/chunks/{reference-fky9e2xj.js → websearch-nrbfn6ey.js} +6 -6
- package/dist/chunks/{reference-nv9gjhyw.js → websearch-nv9gjhyw.js} +2 -2
- package/dist/chunks/{reference-nzrjycs5.js → websearch-nzrjycs5.js} +1 -1
- package/dist/chunks/{reference-4pnpcf2z.js → websearch-pndzne00.js} +7 -7
- package/dist/chunks/{reference-pq4b4pqk.js → websearch-pq4b4pqk.js} +2 -2
- package/dist/chunks/{reference-0d26tnh3.js → websearch-pqh7q7n5.js} +5 -5
- package/dist/chunks/{reference-tc1fxf2f.js → websearch-q8bcfww5.js} +5 -5
- package/dist/chunks/{reference-x08h4q7z.js → websearch-q99mq4vg.js} +12 -12
- package/dist/chunks/{reference-5dwqq0br.js → websearch-q9b4qnv8.js} +3 -2
- package/dist/chunks/{reference-qe0d689s.js → websearch-qe0d689s.js} +2 -2
- package/dist/chunks/{reference-3zyjx98r.js → websearch-r13w8t0w.js} +2 -2
- package/dist/chunks/{reference-r3k9abhd.js → websearch-r3k9abhd.js} +2 -2
- package/dist/chunks/{reference-rahat93a.js → websearch-rahat93a.js} +1 -1
- package/dist/chunks/{reference-9p22jmaw.js → websearch-rameyvmv.js} +1 -1
- package/dist/chunks/{reference-dvt8wt6j.js → websearch-rbnp2c85.js} +3 -3
- package/dist/chunks/{reference-6at5w7vz.js → websearch-rebm9zm3.js} +10 -10
- package/dist/chunks/{reference-rfbm65k8.js → websearch-rfbm65k8.js} +1 -1
- package/dist/chunks/{reference-sfghfkqe.js → websearch-rs6zbhrz.js} +2 -2
- package/dist/chunks/{reference-s33fw6zm.js → websearch-s33fw6zm.js} +1 -1
- package/dist/chunks/{reference-d8kc1jg2.js → websearch-sdb4cksw.js} +4 -4
- package/dist/chunks/{reference-se1aqaya.js → websearch-se1aqaya.js} +3 -3
- package/dist/chunks/{reference-ype454eq.js → websearch-semvs8wj.js} +2 -2
- package/dist/chunks/{reference-qahw8hb2.js → websearch-sh7wnwdf.js} +3 -3
- package/dist/chunks/{reference-smpeg8c9.js → websearch-smpeg8c9.js} +2 -2
- package/dist/chunks/{reference-4p26cgfr.js → websearch-smy5b00x.js} +16 -16
- package/dist/chunks/{reference-sw84ckhj.js → websearch-sw84ckhj.js} +1 -1
- package/dist/chunks/{reference-kvsmjg40.js → websearch-sz2rc8zb.js} +11 -11
- package/dist/chunks/{reference-t14kykx1.js → websearch-t14kykx1.js} +1 -1
- package/dist/chunks/{reference-tb33ng7x.js → websearch-tb33ng7x.js} +2 -2
- package/dist/chunks/{reference-tcptxgyq.js → websearch-tcptxgyq.js} +1 -1
- package/dist/chunks/{reference-1k8hd2s1.js → websearch-tgbb2ckq.js} +2 -2
- package/dist/chunks/{reference-thstd87d.js → websearch-thstd87d.js} +1 -1
- package/dist/chunks/{reference-47vpxx8h.js → websearch-tvn0t2d0.js} +16 -16
- package/dist/chunks/{reference-v2wshkax.js → websearch-v2wshkax.js} +1 -1
- package/dist/chunks/{reference-d41s7sk1.js → websearch-v6ta748t.js} +3 -3
- package/dist/chunks/{reference-v80zsxnb.js → websearch-v80zsxnb.js} +1 -1
- package/dist/chunks/{reference-v972xay6.js → websearch-v972xay6.js} +1 -1
- package/dist/chunks/{reference-v9bfv94f.js → websearch-v9bfv94f.js} +1 -1
- package/dist/chunks/{reference-7g7jwx18.js → websearch-vc1s61sz.js} +3 -3
- package/dist/chunks/{reference-vcwr2vpf.js → websearch-vcwr2vpf.js} +1 -1
- package/dist/chunks/{reference-1hchby00.js → websearch-vmg4362p.js} +12 -12
- package/dist/chunks/{reference-vqbmgfq1.js → websearch-vqbmgfq1.js} +3 -3
- package/dist/chunks/{reference-vz89hfgr.js → websearch-vz89hfgr.js} +1 -1
- package/dist/chunks/{reference-wbkt8qpj.js → websearch-wbkt8qpj.js} +1 -1
- package/dist/chunks/{reference-9fxjt5sk.js → websearch-wc8th075.js} +16 -28
- package/dist/chunks/{reference-wd268jeg.js → websearch-wd268jeg.js} +1 -1
- package/dist/chunks/{reference-p7764ja1.js → websearch-whk0g8cz.js} +4 -4
- package/dist/chunks/{reference-wmxdh12w.js → websearch-wmxdh12w.js} +1 -1
- package/dist/chunks/{reference-wps8gh8n.js → websearch-wps8gh8n.js} +2 -2
- package/dist/chunks/{reference-4dn392x4.js → websearch-wq15kxcc.js} +10 -10
- package/dist/chunks/{reference-sa9nbf32.js → websearch-wwzp4snz.js} +5 -5
- package/dist/chunks/{reference-dm58c8rn.js → websearch-wxmr0q82.js} +5 -5
- package/dist/chunks/{reference-x89rah0x.js → websearch-x89rah0x.js} +1 -1
- package/dist/chunks/{reference-nwyfbhfm.js → websearch-x9gq4m51.js} +1 -1
- package/dist/chunks/{reference-xczfw7dq.js → websearch-xczfw7dq.js} +1 -1
- package/dist/chunks/{reference-xgv25zxy.js → websearch-xgv25zxy.js} +1 -1
- package/dist/chunks/{reference-xwftk1fd.js → websearch-xwftk1fd.js} +2 -2
- package/dist/chunks/{reference-xxpvz42q.js → websearch-xxpvz42q.js} +3 -3
- package/dist/chunks/{reference-y0x38cee.js → websearch-y0x38cee.js} +1 -1
- package/dist/chunks/{reference-y198y2ra.js → websearch-y198y2ra.js} +1 -1
- package/dist/chunks/{reference-y67x6rf6.js → websearch-y67x6rf6.js} +1 -1
- package/dist/chunks/{reference-y980s7ka.js → websearch-y980s7ka.js} +3 -3
- package/dist/chunks/{reference-ybhfpy64.js → websearch-ybhfpy64.js} +2 -2
- package/dist/chunks/{reference-m0ebj05k.js → websearch-yc2vxtaa.js} +2 -2
- package/dist/chunks/{reference-yf0knd5z.js → websearch-yf0knd5z.js} +2 -2
- package/dist/chunks/{reference-hfjh5ra5.js → websearch-yfvkq4d5.js} +8 -8
- package/dist/chunks/{reference-ygy0xbqa.js → websearch-ygy0xbqa.js} +3 -3
- package/dist/chunks/{reference-tpc6wn63.js → websearch-yj0ftrkd.js} +11 -11
- package/dist/chunks/{reference-wjh05zax.js → websearch-ykvb9tbh.js} +4 -4
- package/dist/chunks/{reference-2xssn9xp.js → websearch-z0xme7dp.js} +8 -8
- package/dist/chunks/{reference-rgx3sb1m.js → websearch-z5wjkpxc.js} +5 -5
- package/dist/chunks/{reference-kpazrb63.js → websearch-z9kpnbcv.js} +5 -5
- package/dist/chunks/{reference-142np943.js → websearch-z9sssqt9.js} +3 -3
- package/dist/chunks/{reference-e5vnjxtc.js → websearch-zbcezjsk.js} +4 -4
- package/dist/chunks/{reference-zbqqnp0n.js → websearch-zbqqnp0n.js} +1 -1
- package/dist/chunks/{reference-zdkg1k91.js → websearch-zdkg1k91.js} +1 -1
- package/dist/chunks/{reference-q343s89w.js → websearch-zpkxhxtc.js} +3 -3
- package/dist/chunks/{reference-f11jbhcb.js → websearch-ztjk4rav.js} +6 -6
- package/dist/chunks/{reference-zxcy6vhn.js → websearch-zxcy6vhn.js} +1 -1
- package/dist/chunks/{reference-zxe9jjhn.js → websearch-zxe9jjhn.js} +2 -2
- package/dist/chunks/{reference-084s09rb.js → websearch-zyv51q6q.js} +8 -8
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +3 -3
- package/dist/command.js +70 -70
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +135 -135
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +170 -170
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +108 -108
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/variable.js +4 -4
- package/dist/config.js +113 -113
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -71
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
- package/dist/database/drizzle/effect-sqlite/index.js +13 -13
- package/dist/database/drizzle/effect-sqlite/session.js +12 -12
- package/dist/database/drizzle/index.js +14 -14
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +18 -18
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle.js +15 -15
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +327 -327
- package/dist/effect/app-node-platform.js +3 -3
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +91 -91
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +93 -93
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +68 -68
- package/dist/file-mutation.js +92 -92
- package/dist/file-retention.js +2 -2
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +306 -307
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +96 -96
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +85 -85
- package/dist/generate.js +84 -84
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +20 -20
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +98 -98
- package/dist/image.js +98 -98
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +75 -75
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +87 -87
- package/dist/location-mutation.js +84 -84
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +327 -327
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +3 -3
- package/dist/models-dev.js +75 -75
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +105 -105
- package/dist/persistent-pty/binary.bun.js +2 -2
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/binary.workerd.js +1 -1
- package/dist/persistent-pty/daemon.js +2 -2
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +70 -70
- package/dist/plugin/agent.js +106 -106
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +170 -170
- package/dist/plugin/internal.js +300 -301
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +106 -106
- package/dist/plugin/promise.js +2 -2
- package/dist/plugin/provider/alibaba.js +3 -3
- package/dist/plugin/provider/amazon-bedrock.js +3 -3
- package/dist/plugin/provider/anthropic.js +3 -3
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +82 -82
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +114 -114
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +114 -114
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +93 -93
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +114 -114
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -158
- package/dist/plugin/runtime.js +156 -156
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +305 -306
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +115 -115
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +3 -3
- package/dist/plugin.js +171 -171
- package/dist/project/markers.js +74 -74
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +82 -82
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +1 -1
- package/dist/pty/pty.node.js +1 -1
- package/dist/pty/pty.workerd.js +1 -1
- package/dist/pty/schema.js +2 -2
- package/dist/pty/ticket.js +70 -70
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +77 -77
- package/dist/reference.js +75 -75
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +94 -94
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +142 -142
- package/dist/session/context.js +312 -313
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +121 -121
- package/dist/session/execution.js +121 -121
- package/dist/session/generate-node.js +313 -314
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +77 -77
- package/dist/session/info.js +92 -92
- package/dist/session/instruction-entry.js +73 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +101 -101
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +138 -138
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +90 -90
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +87 -85
- package/dist/session/runner/llm.js +319 -319
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +83 -83
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +73 -75
- package/dist/session/runner/step.js +154 -0
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +100 -100
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +140 -140
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +158 -158
- package/dist/session/usage.js +2 -2
- package/dist/session.js +154 -154
- package/dist/shell/parse.js +5 -5
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +106 -106
- package/dist/snapshot.js +85 -85
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +127 -127
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +117 -117
- package/dist/tool/plugin/grep.js +117 -117
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +120 -120
- package/dist/tool/plugin/shell.js +186 -186
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +183 -183
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +120 -120
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/runner/index.d.ts +55 -6
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -8
- package/dist/types/session/runner/retry.d.ts +3 -7
- package/dist/types/session/runner/step.d.ts +58 -0
- package/dist/util/array.js +1 -1
- package/dist/util/error.js +2 -2
- package/dist/util/identifier.js +1 -1
- package/dist/util/iife.js +2 -2
- package/dist/util/lazy.js +2 -2
- package/dist/util/process-lock-ffi.bun.js +1 -1
- package/dist/util/process-lock-ffi.node.js +1 -1
- package/dist/util/process-lock-ffi.workerd.js +1 -1
- package/dist/util/process-lock.js +1 -1
- package/dist/util/slug.js +2 -2
- package/dist/util/token.js +2 -2
- package/dist/util/which.js +2 -2
- package/dist/util/wildcard.js +2 -2
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +2 -2
- package/dist/v1/config/config.js +15 -15
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +2 -2
- package/dist/v1/config/layout.js +2 -2
- package/dist/v1/config/lsp.js +2 -2
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +19 -19
- package/dist/v1/config/permission.js +2 -2
- package/dist/v1/config/plugin.js +2 -2
- package/dist/v1/config/provider-options.js +2 -2
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +3 -3
- package/dist/v1/config/skills.js +2 -2
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +72 -72
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +69 -69
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +6 -6
- package/dist/worktree.js +87 -87
- package/package.json +7 -8
- package/dist/chunks/reference-ayfwnm78.js +0 -18
- package/dist/chunks/reference-nhcbdb9z.js +0 -539
- package/dist/plugin/provider/groq.js +0 -8
- package/dist/types/plugin/provider/groq.d.ts +0 -1
- /package/dist/chunks/{reference-0cgt0xh2.js → websearch-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{reference-0f48qthw.js → websearch-0f48qthw.js} +0 -0
- /package/dist/chunks/{reference-0zz82cjq.js → websearch-0zz82cjq.js} +0 -0
- /package/dist/chunks/{reference-1fb7bmpf.js → websearch-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{reference-1wcz8fvj.js → websearch-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{reference-2qdx6zz3.js → websearch-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{reference-2xb0r1c6.js → websearch-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{reference-39ktntah.js → websearch-39ktntah.js} +0 -0
- /package/dist/chunks/{reference-3g3rpp2x.js → websearch-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{reference-3q6gbwmd.js → websearch-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{reference-3w3ybtfd.js → websearch-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{reference-47ty4mvs.js → websearch-47ty4mvs.js} +0 -0
- /package/dist/chunks/{reference-4b2tz2m9.js → websearch-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{reference-5a5ch9ts.js → websearch-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{reference-5va1yh78.js → websearch-5va1yh78.js} +0 -0
- /package/dist/chunks/{reference-61ek4hj9.js → websearch-61ek4hj9.js} +0 -0
- /package/dist/chunks/{reference-69qrqpw0.js → websearch-69qrqpw0.js} +0 -0
- /package/dist/chunks/{reference-6zqxzw0a.js → websearch-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{reference-7n9qwqk4.js → websearch-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{reference-8nn8kqcn.js → websearch-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{reference-8rpfd2h6.js → websearch-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{reference-8sj3ajy5.js → websearch-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{reference-8w9tzfz1.js → websearch-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{reference-906y0b6d.js → websearch-906y0b6d.js} +0 -0
- /package/dist/chunks/{reference-9dct5xhx.js → websearch-9dct5xhx.js} +0 -0
- /package/dist/chunks/{reference-9sdtsapf.js → websearch-9sdtsapf.js} +0 -0
- /package/dist/chunks/{reference-a02svayp.js → websearch-a02svayp.js} +0 -0
- /package/dist/chunks/{reference-a83yvq99.js → websearch-a83yvq99.js} +0 -0
- /package/dist/chunks/{reference-ayevdmef.js → websearch-ayevdmef.js} +0 -0
- /package/dist/chunks/{reference-b02txbh8.js → websearch-b02txbh8.js} +0 -0
- /package/dist/chunks/{reference-bbqs2y60.js → websearch-bbqs2y60.js} +0 -0
- /package/dist/chunks/{reference-bjwj8hwv.js → websearch-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{reference-brsh5f65.js → websearch-brsh5f65.js} +0 -0
- /package/dist/chunks/{reference-bxdhjb3y.js → websearch-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{reference-c77ad0vh.js → websearch-c77ad0vh.js} +0 -0
- /package/dist/chunks/{reference-ck5pgha0.js → websearch-ck5pgha0.js} +0 -0
- /package/dist/chunks/{reference-cm67rqy2.js → websearch-cm67rqy2.js} +0 -0
- /package/dist/chunks/{reference-df3v2q6j.js → websearch-df3v2q6j.js} +0 -0
- /package/dist/chunks/{reference-dhcq6c44.js → websearch-dhcq6c44.js} +0 -0
- /package/dist/chunks/{reference-dht5baf0.js → websearch-dht5baf0.js} +0 -0
- /package/dist/chunks/{reference-dkmkay92.js → websearch-dkmkay92.js} +0 -0
- /package/dist/chunks/{reference-drean1vx.js → websearch-drean1vx.js} +0 -0
- /package/dist/chunks/{reference-ehj9csmv.js → websearch-ehj9csmv.js} +0 -0
- /package/dist/chunks/{reference-em6xpscd.js → websearch-em6xpscd.js} +0 -0
- /package/dist/chunks/{reference-emmqknsm.js → websearch-emmqknsm.js} +0 -0
- /package/dist/chunks/{reference-ezs3tagn.js → websearch-ezs3tagn.js} +0 -0
- /package/dist/chunks/{reference-f14r7hfz.js → websearch-f14r7hfz.js} +0 -0
- /package/dist/chunks/{reference-f4cp4g4a.js → websearch-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{reference-faypg4r1.js → websearch-faypg4r1.js} +0 -0
- /package/dist/chunks/{reference-fgbfdq62.js → websearch-fgbfdq62.js} +0 -0
- /package/dist/chunks/{reference-gd5xeqc2.js → websearch-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{reference-ghm4673n.js → websearch-ghm4673n.js} +0 -0
- /package/dist/chunks/{reference-ghwjy7my.js → websearch-ghwjy7my.js} +0 -0
- /package/dist/chunks/{reference-gqn2zsfg.js → websearch-gqn2zsfg.js} +0 -0
- /package/dist/chunks/{reference-gy500k2r.js → websearch-gy500k2r.js} +0 -0
- /package/dist/chunks/{reference-h846wrk2.js → websearch-h846wrk2.js} +0 -0
- /package/dist/chunks/{reference-hzeg9cfr.js → websearch-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{reference-j07kk359.js → websearch-j07kk359.js} +0 -0
- /package/dist/chunks/{reference-jve7t217.js → websearch-jve7t217.js} +0 -0
- /package/dist/chunks/{reference-k3e42drn.js → websearch-k3e42drn.js} +0 -0
- /package/dist/chunks/{reference-k8b45nas.js → websearch-k8b45nas.js} +0 -0
- /package/dist/chunks/{reference-kcacmy5c.js → websearch-kcacmy5c.js} +0 -0
- /package/dist/chunks/{reference-kpdbz7gn.js → websearch-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{reference-kxy11nzk.js → websearch-kxy11nzk.js} +0 -0
- /package/dist/chunks/{reference-kyyqvx4s.js → websearch-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{reference-m8cbvarh.js → websearch-m8cbvarh.js} +0 -0
- /package/dist/chunks/{reference-ma60vzgv.js → websearch-ma60vzgv.js} +0 -0
- /package/dist/chunks/{reference-n3m50c2t.js → websearch-n3m50c2t.js} +0 -0
- /package/dist/chunks/{reference-nkm1m8dz.js → websearch-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{reference-nsc0c3zb.js → websearch-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{reference-qaarhjrp.js → websearch-qaarhjrp.js} +0 -0
- /package/dist/chunks/{reference-qc167nrn.js → websearch-qc167nrn.js} +0 -0
- /package/dist/chunks/{reference-qp95y4jb.js → websearch-qp95y4jb.js} +0 -0
- /package/dist/chunks/{reference-r8f4w671.js → websearch-r8f4w671.js} +0 -0
- /package/dist/chunks/{reference-rdfev9jy.js → websearch-rdfev9jy.js} +0 -0
- /package/dist/chunks/{reference-rvfvac9x.js → websearch-rvfvac9x.js} +0 -0
- /package/dist/chunks/{reference-s7whb9gt.js → websearch-s7whb9gt.js} +0 -0
- /package/dist/chunks/{reference-se76j685.js → websearch-se76j685.js} +0 -0
- /package/dist/chunks/{reference-sem2g21k.js → websearch-sem2g21k.js} +0 -0
- /package/dist/chunks/{reference-sp575ygv.js → websearch-sp575ygv.js} +0 -0
- /package/dist/chunks/{reference-tmb1f636.js → websearch-tmb1f636.js} +0 -0
- /package/dist/chunks/{reference-ttxf0gsy.js → websearch-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{reference-tvmhrvfj.js → websearch-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{reference-v2adqbbe.js → websearch-v2adqbbe.js} +0 -0
- /package/dist/chunks/{reference-vkvb1sb3.js → websearch-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{reference-wj4sxzqa.js → websearch-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{reference-wwntjmk1.js → websearch-wwntjmk1.js} +0 -0
- /package/dist/chunks/{reference-wyqjaaa5.js → websearch-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{reference-x4q807cx.js → websearch-x4q807cx.js} +0 -0
- /package/dist/chunks/{reference-xt0068v8.js → websearch-xt0068v8.js} +0 -0
- /package/dist/chunks/{reference-yrqrg4vp.js → websearch-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{reference-z47nswr2.js → websearch-z47nswr2.js} +0 -0
- /package/dist/chunks/{reference-zsf8rs93.js → websearch-zsf8rs93.js} +0 -0
|
@@ -1,539 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MAX_STEPS_PROMPT
|
|
3
|
-
} from "./reference-qaarhjrp.js";
|
|
4
|
-
import {
|
|
5
|
-
createLLMEventPublisher
|
|
6
|
-
} from "./reference-9fxjt5sk.js";
|
|
7
|
-
import {
|
|
8
|
-
exports_retry
|
|
9
|
-
} from "./reference-0b17sr9d.js";
|
|
10
|
-
import {
|
|
11
|
-
exports_prompt_cache_diagnostics
|
|
12
|
-
} from "./reference-wd268jeg.js";
|
|
13
|
-
import {
|
|
14
|
-
exports_context
|
|
15
|
-
} from "./reference-k2sba6yj.js";
|
|
16
|
-
import {
|
|
17
|
-
exports_supervisor
|
|
18
|
-
} from "./reference-5s25tnxc.js";
|
|
19
|
-
import {
|
|
20
|
-
exports_compaction
|
|
21
|
-
} from "./reference-091m19a6.js";
|
|
22
|
-
import {
|
|
23
|
-
exports_title
|
|
24
|
-
} from "./reference-d9gjxq8y.js";
|
|
25
|
-
import {
|
|
26
|
-
exports_usage
|
|
27
|
-
} from "./reference-sw84ckhj.js";
|
|
28
|
-
import {
|
|
29
|
-
exports_model_request
|
|
30
|
-
} from "./reference-re7fg3x7.js";
|
|
31
|
-
import {
|
|
32
|
-
exports_model_transport
|
|
33
|
-
} from "./reference-d4ax61k3.js";
|
|
34
|
-
import {
|
|
35
|
-
Service
|
|
36
|
-
} from "./reference-cz3dkvcz.js";
|
|
37
|
-
import {
|
|
38
|
-
toSessionError
|
|
39
|
-
} from "./reference-gc19wh2f.js";
|
|
40
|
-
import {
|
|
41
|
-
exports_inbox
|
|
42
|
-
} from "./reference-084s09rb.js";
|
|
43
|
-
import {
|
|
44
|
-
exports_snapshot
|
|
45
|
-
} from "./reference-k2thag1n.js";
|
|
46
|
-
import {
|
|
47
|
-
llmClient
|
|
48
|
-
} from "./reference-k42t1tha.js";
|
|
49
|
-
import {
|
|
50
|
-
exports_tool
|
|
51
|
-
} from "./reference-kjhdxymv.js";
|
|
52
|
-
import {
|
|
53
|
-
exports_store
|
|
54
|
-
} from "./reference-y401mb5m.js";
|
|
55
|
-
import {
|
|
56
|
-
StepFailedError
|
|
57
|
-
} from "./reference-fb7nfzf2.js";
|
|
58
|
-
import {
|
|
59
|
-
exports_instruction_state
|
|
60
|
-
} from "./reference-f11jbhcb.js";
|
|
61
|
-
import {
|
|
62
|
-
SessionMessage
|
|
63
|
-
} from "./reference-8rpfd2h6.js";
|
|
64
|
-
import {
|
|
65
|
-
SessionEvent
|
|
66
|
-
} from "./reference-a83yvq99.js";
|
|
67
|
-
import {
|
|
68
|
-
exports_bus
|
|
69
|
-
} from "./reference-zprqy3cn.js";
|
|
70
|
-
import {
|
|
71
|
-
exports_tool_output
|
|
72
|
-
} from "./reference-f7q7a28y.js";
|
|
73
|
-
import {
|
|
74
|
-
exports_database
|
|
75
|
-
} from "./reference-chh33txw.js";
|
|
76
|
-
import {
|
|
77
|
-
__export
|
|
78
|
-
} from "./reference-rvfvac9x.js";
|
|
79
|
-
|
|
80
|
-
// src/session/runner/llm.ts
|
|
81
|
-
var exports_llm = {};
|
|
82
|
-
__export(exports_llm, {
|
|
83
|
-
node: () => node,
|
|
84
|
-
SessionRunnerLLM: () => exports_llm
|
|
85
|
-
});
|
|
86
|
-
import {
|
|
87
|
-
LLMClient,
|
|
88
|
-
AIError,
|
|
89
|
-
InvalidProviderOutputReason,
|
|
90
|
-
LLMEvent,
|
|
91
|
-
Message,
|
|
92
|
-
isContextOverflowFailure
|
|
93
|
-
} from "@opencode-ai/ai";
|
|
94
|
-
import { Cause, Config, Data, Effect, Exit, Fiber, FiberMap, Layer, Option, Pull, Schedule, Stream } from "effect";
|
|
95
|
-
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
96
|
-
var CallOutcome = Data.taggedEnum();
|
|
97
|
-
var isDecline = (error) => error._tag === "Permission.DeclinedError" || error._tag === "QuestionTool.CancelledError";
|
|
98
|
-
var isInterruptedStream = (failure) => {
|
|
99
|
-
if (failure.reason._tag === "InvalidProviderOutput")
|
|
100
|
-
return failure.reason.classification === "incomplete-stream";
|
|
101
|
-
if (failure.reason._tag === "Transport")
|
|
102
|
-
return failure.reason.operation === "read";
|
|
103
|
-
return false;
|
|
104
|
-
};
|
|
105
|
-
var classifyToolExits = (settled, calls) => {
|
|
106
|
-
const exits = settled._tag === "Success" ? settled.value : [];
|
|
107
|
-
const declines = exits.flatMap((exit, index) => exit._tag === "Failure" ? exit.cause.reasons.flatMap((reason) => Cause.isFailReason(reason) && isDecline(reason.error) ? [{ call: calls[index], reason: reason.error }] : []) : []);
|
|
108
|
-
const causes = settled._tag === "Failure" ? [settled.cause] : exits.flatMap((exit) => exit._tag === "Failure" ? [exit.cause] : []);
|
|
109
|
-
const failure = causes.flatMap((cause) => {
|
|
110
|
-
if (Cause.hasInterrupts(cause))
|
|
111
|
-
return [];
|
|
112
|
-
const reasons = cause.reasons.flatMap((reason) => Cause.isFailReason(reason) ? isDecline(reason.error) ? [] : [Cause.makeDieReason(reason.error)] : [reason]);
|
|
113
|
-
return reasons.length > 0 ? [Cause.fromReasons(reasons)] : [];
|
|
114
|
-
}).at(0);
|
|
115
|
-
return {
|
|
116
|
-
interrupted: causes.some(Cause.hasInterrupts),
|
|
117
|
-
declines,
|
|
118
|
-
failure
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
122
|
-
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
123
|
-
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
124
|
-
var CONTINUE_AFTER_INCOMPLETE_STREAM = "The previous response was interrupted. Continue from where you left off without repeating completed content.";
|
|
125
|
-
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
126
|
-
const bus = yield* exports_bus.Service;
|
|
127
|
-
const llm = yield* LLMClient.Service;
|
|
128
|
-
const store = yield* exports_store.Service;
|
|
129
|
-
const context = yield* exports_context.Service;
|
|
130
|
-
const modelRequests = yield* exports_model_request.Service;
|
|
131
|
-
const modelTransport = yield* exports_model_transport.Service;
|
|
132
|
-
const snapshots = yield* exports_snapshot.Service;
|
|
133
|
-
const db = (yield* exports_database.Service).db;
|
|
134
|
-
const compaction = yield* exports_compaction.Service;
|
|
135
|
-
const plugins = yield* exports_supervisor.Service;
|
|
136
|
-
const title = yield* exports_title.Service;
|
|
137
|
-
const toolOutput = yield* exports_tool_output.Service;
|
|
138
|
-
const diagnostics = yield* Config.boolean("OPENCODE_PROMPT_CACHE_DIAGNOSTICS").pipe(Config.withDefault(false), Effect.orDie);
|
|
139
|
-
const promptCacheSnapshots = diagnostics ? new Map : undefined;
|
|
140
|
-
const diagnosePromptCache = Effect.fn("SessionRunner.diagnosePromptCache")(function* (sessionID, request) {
|
|
141
|
-
if (!promptCacheSnapshots)
|
|
142
|
-
return;
|
|
143
|
-
const current = exports_prompt_cache_diagnostics.snapshot(request);
|
|
144
|
-
const comparison = exports_prompt_cache_diagnostics.compare(promptCacheSnapshots.get(sessionID), current);
|
|
145
|
-
promptCacheSnapshots.delete(sessionID);
|
|
146
|
-
promptCacheSnapshots.set(sessionID, current);
|
|
147
|
-
const oldest = promptCacheSnapshots.keys().next().value;
|
|
148
|
-
if (promptCacheSnapshots.size > 100 && oldest !== undefined)
|
|
149
|
-
promptCacheSnapshots.delete(oldest);
|
|
150
|
-
yield* Effect.logInfo("prompt cache prefix").pipe(Effect.annotateLogs({
|
|
151
|
-
sessionID,
|
|
152
|
-
toolCount: current.tools.length,
|
|
153
|
-
systemParts: current.system.length,
|
|
154
|
-
messageCount: current.messages.length,
|
|
155
|
-
...comparison
|
|
156
|
-
}));
|
|
157
|
-
});
|
|
158
|
-
const titles = yield* FiberMap.make();
|
|
159
|
-
const drain = Effect.fn("SessionRunner.drain")(function* (input) {
|
|
160
|
-
let force = input.force;
|
|
161
|
-
let continuation = input.continuation;
|
|
162
|
-
const promotable = input.promotable ?? "input";
|
|
163
|
-
if (!force && !continuation && !(yield* eligible(input.sessionID, promotable)))
|
|
164
|
-
return { type: "complete" };
|
|
165
|
-
yield* plugins.flush;
|
|
166
|
-
yield* settleStaleToolCalls(input.sessionID);
|
|
167
|
-
while (true) {
|
|
168
|
-
if (yield* runPendingCompaction(input.sessionID, "input")) {
|
|
169
|
-
force = false;
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
if (yield* runPendingMove(input.sessionID, "input"))
|
|
173
|
-
return { type: "moved" };
|
|
174
|
-
if (!force && !continuation && !(yield* exports_inbox.has(db, input.sessionID, promotable)))
|
|
175
|
-
return { type: "complete" };
|
|
176
|
-
const result = yield* runSteps(input.sessionID, continuation, promotable);
|
|
177
|
-
if (result.type === "moved")
|
|
178
|
-
return result;
|
|
179
|
-
force = false;
|
|
180
|
-
continuation = undefined;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
const eligible = Effect.fnUntraced(function* (sessionID, promotable) {
|
|
184
|
-
if (yield* exports_inbox.has(db, sessionID, promotable))
|
|
185
|
-
return true;
|
|
186
|
-
if (promotable === "input")
|
|
187
|
-
return false;
|
|
188
|
-
const next = yield* exports_inbox.nextPromotable(db, sessionID, "input");
|
|
189
|
-
return next?.type === "compaction" || next?.type === "move";
|
|
190
|
-
});
|
|
191
|
-
const runSteps = Effect.fn("SessionRunner.runSteps")(function* (sessionID, continuation, drainPromotable) {
|
|
192
|
-
let promotable = continuation ? "steer" : drainPromotable;
|
|
193
|
-
let step = continuation?.step ?? 1;
|
|
194
|
-
let next = continuation;
|
|
195
|
-
let first = true;
|
|
196
|
-
while (true) {
|
|
197
|
-
if (yield* runPendingCompaction(sessionID, "steer"))
|
|
198
|
-
continue;
|
|
199
|
-
if (yield* runPendingMove(sessionID, "steer"))
|
|
200
|
-
return { type: "moved", continuation: next };
|
|
201
|
-
if (!first && !next && !(yield* exports_inbox.has(db, sessionID, "steer")))
|
|
202
|
-
return { type: "complete" };
|
|
203
|
-
const result = yield* runStep(sessionID, promotable, step);
|
|
204
|
-
first = false;
|
|
205
|
-
promotable = "steer";
|
|
206
|
-
step = result.step + 1;
|
|
207
|
-
next = result.needsContinuation ? { step } : undefined;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
const runStep = Effect.fnUntraced(function* (sessionID, promotable, step) {
|
|
211
|
-
let assistantMessageID = SessionMessage.ID.create();
|
|
212
|
-
const retry = yield* Schedule.toStepWithSleep(exports_retry.schedule(bus, sessionID, () => assistantMessageID));
|
|
213
|
-
const waitForRetry = (failure) => retry(failure).pipe(Effect.as(CallOutcome.Retry({ step: failure.step })), Pull.catchDone(() => bus.publish(SessionEvent.Step.Failed, {
|
|
214
|
-
sessionID,
|
|
215
|
-
assistantMessageID,
|
|
216
|
-
error: failure.error
|
|
217
|
-
}).pipe(Effect.andThen(Effect.fail(failure.cause)))));
|
|
218
|
-
let currentPromotable = promotable;
|
|
219
|
-
let currentStep = step;
|
|
220
|
-
let recoverOverflow = true;
|
|
221
|
-
let recoverContinuation = true;
|
|
222
|
-
while (true) {
|
|
223
|
-
const outcome = yield* callModel(sessionID, currentPromotable, currentStep, recoverOverflow, recoverContinuation, assistantMessageID).pipe(Effect.catchTag("SessionRunner.RetryableFailure", waitForRetry));
|
|
224
|
-
if (outcome._tag === "Completed")
|
|
225
|
-
return { needsContinuation: outcome.needsContinuation, step: outcome.step };
|
|
226
|
-
if (outcome._tag === "Continue") {
|
|
227
|
-
yield* retry(new exports_retry.RetryableFailure({
|
|
228
|
-
cause: outcome.cause,
|
|
229
|
-
error: outcome.error,
|
|
230
|
-
step: outcome.step
|
|
231
|
-
})).pipe(Pull.catchDone(() => Effect.fail(outcome.cause)));
|
|
232
|
-
yield* bus.publish(SessionEvent.Synthetic, {
|
|
233
|
-
sessionID,
|
|
234
|
-
text: CONTINUE_AFTER_INCOMPLETE_STREAM
|
|
235
|
-
});
|
|
236
|
-
assistantMessageID = SessionMessage.ID.create();
|
|
237
|
-
}
|
|
238
|
-
if (outcome._tag === "Restart") {
|
|
239
|
-
if (outcome.recoveredOverflow)
|
|
240
|
-
recoverOverflow = false;
|
|
241
|
-
assistantMessageID = SessionMessage.ID.create();
|
|
242
|
-
}
|
|
243
|
-
if (outcome._tag === "RecoverFull")
|
|
244
|
-
recoverContinuation = false;
|
|
245
|
-
currentPromotable = undefined;
|
|
246
|
-
currentStep = outcome.step;
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
const callModel = Effect.fn("SessionRunner.callModel")(function* (sessionID, promotable, step, recoverOverflow, recoverContinuation, assistantMessageID) {
|
|
250
|
-
const selected = yield* context.select(sessionID);
|
|
251
|
-
yield* exports_instruction_state.prepare(db, bus, selected.instructions, selected.session.id);
|
|
252
|
-
const promoted = promotable ? yield* exports_inbox.promote(db, bus, selected.session.id, promotable) : 0;
|
|
253
|
-
if (promoted > 0 && !selected.session.parentID && exports_title.isUntitled(selected.session))
|
|
254
|
-
yield* FiberMap.run(titles, sessionID, title.generate(sessionID).pipe(Effect.ignore), {
|
|
255
|
-
onlyIfMissing: true
|
|
256
|
-
});
|
|
257
|
-
const currentStep = promoted > 0 ? 1 : step;
|
|
258
|
-
const loaded = yield* context.load(selected);
|
|
259
|
-
const { session, agent } = loaded;
|
|
260
|
-
const resolved = loaded.model;
|
|
261
|
-
const compactionInput = { session, messages: loaded.messages, resolved };
|
|
262
|
-
if (compaction.required(compactionInput)) {
|
|
263
|
-
const compacted = yield* compaction.compact(compactionInput);
|
|
264
|
-
if (compacted.status === "completed")
|
|
265
|
-
return CallOutcome.Restart({ step: currentStep, recoveredOverflow: false });
|
|
266
|
-
return yield* new StepFailedError({ error: compacted.error });
|
|
267
|
-
}
|
|
268
|
-
const stepLimitReached = agent.info.steps !== undefined && currentStep >= agent.info.steps;
|
|
269
|
-
const transcript = exports_model_request.baseTranscript({
|
|
270
|
-
agent: agent.info,
|
|
271
|
-
model: resolved,
|
|
272
|
-
tools: loaded.tools,
|
|
273
|
-
initial: loaded.initial,
|
|
274
|
-
messages: loaded.messages
|
|
275
|
-
});
|
|
276
|
-
const prepared = yield* modelRequests.prepare({
|
|
277
|
-
scope: { session, agentID: agent.id, model: resolved, tools: loaded.tools },
|
|
278
|
-
transcript: {
|
|
279
|
-
system: transcript.system,
|
|
280
|
-
messages: stepLimitReached ? [...transcript.messages, Message.assistant(MAX_STEPS_PROMPT)] : transcript.messages
|
|
281
|
-
},
|
|
282
|
-
toolChoice: stepLimitReached ? "none" : undefined,
|
|
283
|
-
webSocket: "session"
|
|
284
|
-
});
|
|
285
|
-
yield* diagnosePromptCache(session.id, prepared.request);
|
|
286
|
-
const executeTool = (input) => {
|
|
287
|
-
if (stepLimitReached)
|
|
288
|
-
return new exports_tool.Error({ message: "Tools are disabled after the maximum agent steps" });
|
|
289
|
-
return prepared.executeTool(input);
|
|
290
|
-
};
|
|
291
|
-
const toolRuns = [];
|
|
292
|
-
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
293
|
-
const startSnapshot = yield* snapshots.capture();
|
|
294
|
-
const publisher = createLLMEventPublisher(bus, {
|
|
295
|
-
sessionID: session.id,
|
|
296
|
-
agent: agent.id,
|
|
297
|
-
model: resolved.ref,
|
|
298
|
-
providerMetadataKey: transcript.providerMetadataKey,
|
|
299
|
-
snapshot: startSnapshot,
|
|
300
|
-
assistantMessageID
|
|
301
|
-
});
|
|
302
|
-
const stepUsage = (finish) => ({
|
|
303
|
-
cost: exports_usage.calculateCost(resolved.cost, finish.tokens),
|
|
304
|
-
tokens: finish.tokens
|
|
305
|
-
});
|
|
306
|
-
const captureStepEnd = Effect.fnUntraced(function* () {
|
|
307
|
-
const snapshot = yield* snapshots.capture();
|
|
308
|
-
const files = startSnapshot && snapshot ? startSnapshot === snapshot ? [] : yield* snapshots.files({ from: startSnapshot, to: snapshot }).pipe(Effect.orElseSucceed(() => {
|
|
309
|
-
return;
|
|
310
|
-
})) : undefined;
|
|
311
|
-
return { snapshot, files };
|
|
312
|
-
});
|
|
313
|
-
const publishStepEnd = (finish) => Effect.gen(function* () {
|
|
314
|
-
const end = yield* captureStepEnd();
|
|
315
|
-
yield* bus.publish(SessionEvent.Step.Ended, {
|
|
316
|
-
sessionID: session.id,
|
|
317
|
-
assistantMessageID: yield* publisher.startAssistant(),
|
|
318
|
-
finish: finish.finish,
|
|
319
|
-
rawFinish: finish.rawFinish,
|
|
320
|
-
providerState: finish.providerState,
|
|
321
|
-
...stepUsage(finish),
|
|
322
|
-
...end
|
|
323
|
-
});
|
|
324
|
-
});
|
|
325
|
-
let overflowFailure;
|
|
326
|
-
const providerStream = llm.stream(prepared.request, prepared.options).pipe(Stream.runForEach((event) => Effect.gen(function* () {
|
|
327
|
-
if (overflowFailure || publisher.hasProviderError())
|
|
328
|
-
return;
|
|
329
|
-
if (LLMEvent.is.providerError(event) && isContextOverflowFailure(event) && !publisher.record().outputStarted) {
|
|
330
|
-
overflowFailure = event;
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
yield* publisher.publish(event);
|
|
334
|
-
if (event.type !== "tool-call" || event.providerExecuted)
|
|
335
|
-
return;
|
|
336
|
-
const assistantMessageID2 = yield* publisher.assistantMessageID(event.id);
|
|
337
|
-
toolRuns.push({
|
|
338
|
-
call: event,
|
|
339
|
-
fiber: yield* Effect.uninterruptibleMask((restore) => restore(executeTool({
|
|
340
|
-
sessionID: session.id,
|
|
341
|
-
agent: agent.id,
|
|
342
|
-
messageID: assistantMessageID2,
|
|
343
|
-
call: event,
|
|
344
|
-
progress: (update) => publisher.progress(event.id, update)
|
|
345
|
-
})).pipe(Effect.flatMap(toolOutput.truncate), Effect.flatMap((outcome) => publisher.toolExecution(event.id, event.name, outcome)), Effect.catchTag("Tool.Error", (error) => publisher.failTool(event.id, toSessionError(error), error.metadata).pipe(Effect.asVoid)))).pipe(Effect.forkScoped)
|
|
346
|
-
});
|
|
347
|
-
})), Effect.ensuring(publisher.flush()));
|
|
348
|
-
return yield* Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
349
|
-
const stream = yield* restore(providerStream).pipe(Effect.exit);
|
|
350
|
-
const streamFailure = Option.getOrUndefined(Exit.findErrorOption(stream));
|
|
351
|
-
const streamInterrupted = stream._tag === "Failure" && Cause.hasInterrupts(stream.cause);
|
|
352
|
-
if (!overflowFailure && publisher.hasStarted())
|
|
353
|
-
yield* publisher.streamed();
|
|
354
|
-
if (streamInterrupted)
|
|
355
|
-
yield* interruptTools;
|
|
356
|
-
const joined = yield* restore(Effect.forEach(toolRuns, (run) => Fiber.await(run.fiber), { concurrency: "unbounded" })).pipe(Effect.exit);
|
|
357
|
-
if (joined._tag === "Failure")
|
|
358
|
-
yield* interruptTools;
|
|
359
|
-
const tools = classifyToolExits(joined, toolRuns.map((run) => run.call));
|
|
360
|
-
if (recoverOverflow && compaction.enabled() && !publisher.record().outputStarted && isContextOverflowFailure(overflowFailure ?? streamFailure) && (yield* restore(compaction.compact(compactionInput))).status === "completed")
|
|
361
|
-
return CallOutcome.Restart({ step: currentStep, recoveredOverflow: true });
|
|
362
|
-
if (overflowFailure)
|
|
363
|
-
yield* publisher.publish(overflowFailure);
|
|
364
|
-
const unknownFinish = stream._tag === "Success" && publisher.record().finish?.finish === "unknown" ? new AIError({
|
|
365
|
-
module: "session",
|
|
366
|
-
method: "stream",
|
|
367
|
-
reason: new InvalidProviderOutputReason({
|
|
368
|
-
classification: "incomplete-stream",
|
|
369
|
-
message: "The provider response ended with an unknown finish reason."
|
|
370
|
-
})
|
|
371
|
-
}) : undefined;
|
|
372
|
-
const llmFailure = streamFailure instanceof AIError ? streamFailure : unknownFinish;
|
|
373
|
-
const llmError = llmFailure && !publisher.record().providerFailed ? toSessionError(llmFailure) : undefined;
|
|
374
|
-
if (recoverContinuation && llmFailure?.reason._tag === "Transport" && (llmFailure.reason.recovery === "retry-full" || llmFailure.reason.recovery === "rotate-and-retry-full") && !publisher.record().outputStarted)
|
|
375
|
-
return CallOutcome.RecoverFull({ step: currentStep });
|
|
376
|
-
if (llmFailure && llmError && exports_retry.isRetryable(llmFailure) && !publisher.record().outputStarted) {
|
|
377
|
-
yield* publisher.startAssistant();
|
|
378
|
-
return yield* new exports_retry.RetryableFailure({
|
|
379
|
-
cause: llmFailure,
|
|
380
|
-
error: llmError,
|
|
381
|
-
step: currentStep
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
if (llmError)
|
|
385
|
-
yield* publisher.failAssistant(llmError);
|
|
386
|
-
for (const decline of tools.declines)
|
|
387
|
-
yield* publisher.failTool(decline.call.id, {
|
|
388
|
-
type: "aborted",
|
|
389
|
-
message: decline.reason._tag === "QuestionTool.CancelledError" ? decline.reason.message : "The user declined this tool call"
|
|
390
|
-
});
|
|
391
|
-
if (tools.declines.length > 0 || streamInterrupted || tools.interrupted) {
|
|
392
|
-
yield* publisher.failUnsettledTools(TOOLS_INTERRUPTED);
|
|
393
|
-
yield* publisher.failAssistant(STEP_INTERRUPTED);
|
|
394
|
-
}
|
|
395
|
-
if (tools.failure !== undefined) {
|
|
396
|
-
const error = toSessionError(Cause.squash(tools.failure));
|
|
397
|
-
yield* publisher.failUnsettledTools(error);
|
|
398
|
-
}
|
|
399
|
-
if (publisher.record().providerFailed)
|
|
400
|
-
yield* publisher.failUnsettledTools(TOOLS_INTERRUPTED);
|
|
401
|
-
if (llmError)
|
|
402
|
-
yield* publisher.failUnsettledTools(RESULT_MISSING, "hosted");
|
|
403
|
-
if (stream._tag === "Success" && !publisher.record().providerFailed) {
|
|
404
|
-
const hostedResultMissing = yield* publisher.failUnsettledTools(RESULT_MISSING, "hosted");
|
|
405
|
-
if (hostedResultMissing && !publisher.record().finish)
|
|
406
|
-
yield* publisher.failAssistant(RESULT_MISSING);
|
|
407
|
-
}
|
|
408
|
-
const record = publisher.record();
|
|
409
|
-
if (record.finish && !record.failure)
|
|
410
|
-
yield* publishStepEnd(record.finish);
|
|
411
|
-
if (record.failure) {
|
|
412
|
-
const end = yield* captureStepEnd();
|
|
413
|
-
yield* publisher.publishStepFailure({
|
|
414
|
-
...record.finish ? stepUsage(record.finish) : {},
|
|
415
|
-
...end
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
if (llmFailure && llmError && isInterruptedStream(llmFailure) && record.outputStarted && tools.declines.length === 0 && !tools.interrupted)
|
|
419
|
-
return CallOutcome.Continue({
|
|
420
|
-
cause: llmFailure,
|
|
421
|
-
error: llmError,
|
|
422
|
-
step: currentStep
|
|
423
|
-
});
|
|
424
|
-
if (stream._tag === "Failure")
|
|
425
|
-
return yield* Effect.failCause(stream.cause);
|
|
426
|
-
if (tools.declines.length > 0)
|
|
427
|
-
return yield* Effect.interrupt;
|
|
428
|
-
if (tools.interrupted && tools.failure)
|
|
429
|
-
return yield* Effect.failCause(tools.failure);
|
|
430
|
-
if (tools.interrupted && joined._tag === "Failure")
|
|
431
|
-
return yield* Effect.failCause(joined.cause);
|
|
432
|
-
if (record.failure)
|
|
433
|
-
return yield* new StepFailedError({ error: record.failure });
|
|
434
|
-
return CallOutcome.Completed({
|
|
435
|
-
needsContinuation: !stepLimitReached && record.calls.some((call) => !call.providerExecuted && (call.called || call.settled)),
|
|
436
|
-
step: currentStep
|
|
437
|
-
});
|
|
438
|
-
}));
|
|
439
|
-
}, Effect.scoped);
|
|
440
|
-
const runPendingCompaction = Effect.fn("SessionRunner.runPendingCompaction")(function* (sessionID, promotable) {
|
|
441
|
-
return yield* Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
442
|
-
const pending = yield* exports_inbox.serialized(sessionID, Effect.gen(function* () {
|
|
443
|
-
const selected = yield* exports_inbox.nextPromotable(db, sessionID, promotable);
|
|
444
|
-
if (selected?.type !== "compaction")
|
|
445
|
-
return;
|
|
446
|
-
yield* bus.publishAll([
|
|
447
|
-
[SessionEvent.InboxDelivered, { sessionID, inboxID: selected.id }],
|
|
448
|
-
[SessionEvent.Compaction.Started, { sessionID, reason: "manual", recent: "", inputID: selected.id }]
|
|
449
|
-
]);
|
|
450
|
-
return selected;
|
|
451
|
-
}));
|
|
452
|
-
if (pending?.type !== "compaction")
|
|
453
|
-
return false;
|
|
454
|
-
const session = yield* getSession(sessionID);
|
|
455
|
-
const compacted = yield* restore(Effect.gen(function* () {
|
|
456
|
-
return yield* compaction.compactManual({
|
|
457
|
-
session,
|
|
458
|
-
messages: yield* store.context(sessionID),
|
|
459
|
-
inputID: pending.id,
|
|
460
|
-
started: true
|
|
461
|
-
});
|
|
462
|
-
})).pipe(Effect.exit);
|
|
463
|
-
if (Exit.isSuccess(compacted))
|
|
464
|
-
return true;
|
|
465
|
-
yield* bus.publish(SessionEvent.Compaction.Failed, {
|
|
466
|
-
sessionID,
|
|
467
|
-
reason: "manual",
|
|
468
|
-
error: Cause.hasInterruptsOnly(compacted.cause) ? { type: "aborted", message: "Compaction cancelled" } : { type: "compaction.failed", message: Cause.pretty(compacted.cause) },
|
|
469
|
-
inputID: pending.id
|
|
470
|
-
});
|
|
471
|
-
return yield* Effect.failCause(compacted.cause);
|
|
472
|
-
}));
|
|
473
|
-
});
|
|
474
|
-
const runPendingMove = Effect.fn("SessionRunner.runPendingMove")(function* (sessionID, promotable) {
|
|
475
|
-
return yield* exports_inbox.serialized(sessionID, Effect.gen(function* () {
|
|
476
|
-
const pending = yield* exports_inbox.nextPromotable(db, sessionID, promotable);
|
|
477
|
-
if (pending?.type !== "move")
|
|
478
|
-
return false;
|
|
479
|
-
yield* modelTransport.close(sessionID);
|
|
480
|
-
yield* bus.publishAll([
|
|
481
|
-
[SessionEvent.InboxDelivered, { sessionID, inboxID: pending.id }],
|
|
482
|
-
[
|
|
483
|
-
SessionEvent.Moved,
|
|
484
|
-
{
|
|
485
|
-
sessionID,
|
|
486
|
-
location: pending.payload.location,
|
|
487
|
-
projectID: pending.payload.projectID,
|
|
488
|
-
subpath: pending.payload.subpath
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
|
-
]);
|
|
492
|
-
return true;
|
|
493
|
-
}));
|
|
494
|
-
});
|
|
495
|
-
const settleStaleToolCalls = Effect.fn("SessionRunner.settleStaleToolCalls")(function* (sessionID) {
|
|
496
|
-
for (const message of yield* store.context(sessionID)) {
|
|
497
|
-
if (message.type !== "assistant")
|
|
498
|
-
continue;
|
|
499
|
-
for (const tool of message.content) {
|
|
500
|
-
if (tool.type !== "tool" || tool.state.status !== "streaming" && tool.state.status !== "running")
|
|
501
|
-
continue;
|
|
502
|
-
yield* bus.publish(SessionEvent.Tool.Failed, {
|
|
503
|
-
sessionID,
|
|
504
|
-
assistantMessageID: message.id,
|
|
505
|
-
id: tool.id,
|
|
506
|
-
error: { type: "aborted", message: `Tool execution interrupted: ${tool.name}` },
|
|
507
|
-
executed: tool.executed === true
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
});
|
|
512
|
-
const getSession = Effect.fn("SessionRunner.getSession")(function* (sessionID) {
|
|
513
|
-
const session = yield* store.get(sessionID);
|
|
514
|
-
if (!session)
|
|
515
|
-
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
516
|
-
return session;
|
|
517
|
-
});
|
|
518
|
-
return Service.of({ drain });
|
|
519
|
-
}));
|
|
520
|
-
var node = makeLocationNode({
|
|
521
|
-
service: Service,
|
|
522
|
-
layer,
|
|
523
|
-
deps: [
|
|
524
|
-
exports_bus.node,
|
|
525
|
-
llmClient,
|
|
526
|
-
exports_context.node,
|
|
527
|
-
exports_model_request.node,
|
|
528
|
-
exports_model_transport.node,
|
|
529
|
-
exports_store.node,
|
|
530
|
-
exports_compaction.node,
|
|
531
|
-
exports_supervisor.node,
|
|
532
|
-
exports_title.node,
|
|
533
|
-
exports_snapshot.node,
|
|
534
|
-
exports_tool_output.node,
|
|
535
|
-
exports_database.node
|
|
536
|
-
]
|
|
537
|
-
});
|
|
538
|
-
|
|
539
|
-
export { node, exports_llm };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GroqPlugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|