@opencode-ai/core 0.0.0-beta-18600 → 0.0.0-beta-18707
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/{project-02dbfq60.js → model-02dbfq60.js} +1 -1
- package/dist/chunks/{project-tgbb2ckq.js → model-02f9w0t0.js} +2 -2
- package/dist/chunks/{project-4f5az0e7.js → model-06n7s6mj.js} +3 -3
- package/dist/chunks/{project-j0sncrp4.js → model-0d4mk87s.js} +3 -3
- package/dist/chunks/{project-mczqbtr0.js → model-0g9hdpj2.js} +11 -11
- package/dist/chunks/{project-0kvmztkf.js → model-0kvmztkf.js} +1 -1
- package/dist/chunks/model-0nep4fgd.js +34 -0
- package/dist/chunks/model-0r5t5x9k.js +120 -0
- package/dist/chunks/{project-10p29vm9.js → model-10p29vm9.js} +1 -1
- package/dist/chunks/{project-15hpbjb6.js → model-15hpbjb6.js} +1 -1
- package/dist/chunks/{project-18pv8fg3.js → model-18pv8fg3.js} +2 -2
- package/dist/chunks/{project-cbdh5emr.js → model-19q29b17.js} +3 -3
- package/dist/chunks/{project-pm64n062.js → model-19vx63bj.js} +79 -83
- package/dist/chunks/{project-n08k8xnm.js → model-1zqcfpgf.js} +9 -9
- package/dist/chunks/{project-264e1nfp.js → model-264e1nfp.js} +2 -2
- package/dist/chunks/{project-sn6nad9v.js → model-27xtpza2.js} +38 -40
- package/dist/chunks/{project-ch59ehxr.js → model-2aabkmaa.js} +3 -3
- package/dist/chunks/{project-1wpv42fk.js → model-2b06wqtd.js} +10 -8
- package/dist/chunks/{project-2m0hgr65.js → model-2m0hgr65.js} +1 -1
- package/dist/chunks/{project-2nmyybe0.js → model-2nmyybe0.js} +1 -1
- package/dist/chunks/model-2pd1mgzx.js +95 -0
- package/dist/chunks/{project-rjnxxp68.js → model-2vavmvj3.js} +15 -13
- package/dist/chunks/{project-w14414t3.js → model-387qgrr4.js} +12 -4
- package/dist/chunks/{project-393a352g.js → model-393a352g.js} +2 -2
- package/dist/chunks/{project-d37zqxgn.js → model-3afs328y.js} +11 -11
- package/dist/chunks/{project-mcmqzvt7.js → model-3ak51ht4.js} +3 -3
- package/dist/chunks/{project-3g8vftxb.js → model-3g8vftxb.js} +2 -2
- package/dist/chunks/{project-w7b874ta.js → model-3mrq8b6b.js} +3 -3
- package/dist/chunks/{project-y5attvn7.js → model-3r017xwm.js} +5 -5
- package/dist/chunks/{project-3thh6229.js → model-3thh6229.js} +2 -2
- package/dist/chunks/{project-c2dy8s0z.js → model-41hq17d7.js} +7 -7
- package/dist/chunks/{project-7khw64yh.js → model-41qzzbpz.js} +3 -2
- package/dist/chunks/{project-bqjtetqx.js → model-49h76k6f.js} +90 -90
- package/dist/chunks/{project-a7tr07hx.js → model-4fyj40dz.js} +3 -3
- package/dist/chunks/{project-8pngjawd.js → model-4h896fer.js} +2 -2
- package/dist/chunks/{project-d9wdmbm9.js → model-4j6msas4.js} +3 -3
- package/dist/chunks/{project-4zzdwbaz.js → model-4zzdwbaz.js} +2 -2
- package/dist/chunks/{project-50jxp3hw.js → model-50jxp3hw.js} +1 -1
- package/dist/chunks/{project-63s588jq.js → model-5122ztwm.js} +22 -21
- package/dist/chunks/{project-g2nsgnf7.js → model-51jc707v.js} +12 -12
- package/dist/chunks/{project-pxfsdh0y.js → model-567fcwrm.js} +6 -6
- package/dist/chunks/{project-57ej80dx.js → model-57ej80dx.js} +2 -2
- package/dist/chunks/{project-apgan3pt.js → model-57h761nw.js} +7 -6
- package/dist/chunks/{project-57tzwnz4.js → model-57tzwnz4.js} +1 -1
- package/dist/chunks/{project-58xdvehb.js → model-58xdvehb.js} +1 -1
- package/dist/chunks/{project-3gybxysr.js → model-5ese1gdm.js} +36 -36
- package/dist/chunks/{project-5fe026tx.js → model-5fe026tx.js} +3 -3
- package/dist/chunks/{project-5rs65q6p.js → model-5rs65q6p.js} +1 -1
- package/dist/chunks/{project-9wbq8qv2.js → model-5snqn3fs.js} +6 -6
- package/dist/chunks/{project-5vcssjzn.js → model-5vcssjzn.js} +1 -1
- package/dist/chunks/{project-j5sjtdxs.js → model-60e98a7s.js} +3 -3
- package/dist/chunks/{project-6272rtjg.js → model-6272rtjg.js} +1 -1
- package/dist/chunks/{project-r9pv5d9a.js → model-6cxkhhme.js} +96 -62
- package/dist/chunks/{project-6ky7rqk7.js → model-6ky7rqk7.js} +1 -1
- package/dist/chunks/model-6tpset1y.js +203 -0
- package/dist/chunks/{project-6wkzvma0.js → model-6wkzvma0.js} +2 -2
- package/dist/chunks/{project-a0s5dkct.js → model-7afh56wg.js} +7 -10
- package/dist/chunks/{project-f7q7a28y.js → model-7ccgh94t.js} +6 -6
- package/dist/chunks/{project-vqt151v9.js → model-7dhnf1ge.js} +5 -5
- package/dist/chunks/{project-t16napr0.js → model-7drm3h8s.js} +6 -6
- package/dist/chunks/{project-h2h934sz.js → model-7fr2g77j.js} +6 -6
- package/dist/chunks/{project-7mrpdsq5.js → model-7mrpdsq5.js} +1 -1
- package/dist/chunks/{project-7k160n64.js → model-7td3bv5p.js} +5 -5
- package/dist/chunks/{project-pba5amb4.js → model-7tstrtpa.js} +5 -4
- package/dist/chunks/{project-7wcmqxrc.js → model-7wcmqxrc.js} +1 -1
- package/dist/chunks/{project-anez00x1.js → model-7yjmz42c.js} +94 -86
- package/dist/chunks/{project-xtjxhef7.js → model-847cmpaw.js} +2 -2
- package/dist/chunks/{project-88g69gay.js → model-865rfa5x.js} +5 -5
- package/dist/chunks/{project-12r08axk.js → model-955f6cmy.js} +13 -19
- package/dist/chunks/{project-eygmcrvz.js → model-99cbrjnf.js} +5 -5
- package/dist/chunks/{project-r0z48jr6.js → model-9bwgbsjv.js} +11 -11
- package/dist/chunks/{project-ex7kk1kw.js → model-9emxzqg0.js} +3 -5
- package/dist/chunks/{project-9f0rnpkn.js → model-9f0rnpkn.js} +1 -1
- package/dist/chunks/{project-p2h03eta.js → model-9w1y4hdv.js} +6 -6
- package/dist/chunks/{project-8ptyzv8c.js → model-a2dvn4yw.js} +75 -122
- package/dist/chunks/{project-d0ahwm86.js → model-a3jfkbbw.js} +26 -26
- package/dist/chunks/model-a7zp47hx.js +31 -0
- package/dist/chunks/{project-1mvr5yep.js → model-aykc9wsc.js} +113 -25
- package/dist/chunks/{project-c6yz00sq.js → model-azpmwmnh.js} +7 -7
- package/dist/chunks/{project-szqzwjp8.js → model-b380beks.js} +14 -14
- package/dist/chunks/{project-cg0y8hn9.js → model-b7g40f0s.js} +11 -11
- package/dist/chunks/{project-sgh68dve.js → model-ba9h5n2z.js} +18 -18
- package/dist/chunks/{project-0xzcm754.js → model-bach7bae.js} +9 -9
- package/dist/chunks/{project-bbhffenw.js → model-bbhffenw.js} +3 -3
- package/dist/chunks/{project-5sw6s279.js → model-bf12q6k5.js} +3 -3
- package/dist/chunks/{project-s9zs8v6y.js → model-bfs3jmy8.js} +12 -12
- package/dist/chunks/{project-bh1wr8rq.js → model-bh1wr8rq.js} +2 -2
- package/dist/chunks/{project-r5gg458q.js → model-bkvz3zmp.js} +45 -44
- package/dist/chunks/{project-dsrkn9fq.js → model-bpwq3t4x.js} +46 -40
- package/dist/chunks/{project-byab506k.js → model-byab506k.js} +1 -1
- package/dist/chunks/model-bym1j60d.js +129 -0
- package/dist/chunks/{project-2tnd1ag8.js → model-c14t2hjy.js} +3 -3
- package/dist/chunks/{project-0r1p85sc.js → model-c48mcab4.js} +8 -5
- package/dist/chunks/{project-c4wcb9vc.js → model-c4wcb9vc.js} +2 -2
- package/dist/chunks/model-c8fhf3ac.js +353 -0
- package/dist/chunks/{project-c8ya26sa.js → model-c8ya26sa.js} +2 -2
- package/dist/chunks/model-cgqn2mrm.js +147 -0
- package/dist/chunks/{project-8s775pjc.js → model-cp386rrn.js} +4 -4
- package/dist/chunks/{project-37ng30jt.js → model-cpqd33tw.js} +8 -11
- package/dist/chunks/{project-fw21zw5n.js → model-cre7gbc6.js} +11 -11
- package/dist/chunks/{project-eyszsgm3.js → model-cswqnh77.js} +14 -14
- package/dist/chunks/{project-zy5j9fqq.js → model-cwna1env.js} +7 -7
- package/dist/chunks/{project-y85nmh9b.js → model-cz5tjv9w.js} +7 -7
- package/dist/chunks/{project-jj3fzgje.js → model-czavxh09.js} +7 -7
- package/dist/chunks/{project-d2gk9vpf.js → model-d2gk9vpf.js} +2 -2
- package/dist/chunks/{project-d4h7vwhh.js → model-d4h7vwhh.js} +2 -2
- package/dist/chunks/{project-dhphtf1x.js → model-dhphtf1x.js} +1 -1
- package/dist/chunks/{project-kt491qp2.js → model-dyj7wa6j.js} +14 -14
- package/dist/chunks/{project-52cmy8h2.js → model-dym2t83s.js} +3 -3
- package/dist/chunks/{project-e1z9a0ts.js → model-e1z9a0ts.js} +2 -2
- package/dist/chunks/{project-qhe68xsc.js → model-e6tx6p0e.js} +4 -4
- package/dist/chunks/{project-vxb9gyym.js → model-e8wc181f.js} +13 -25
- package/dist/chunks/{project-ec8vrfw5.js → model-ec8vrfw5.js} +1 -1
- package/dist/chunks/{project-63n18kwk.js → model-ejr52wwy.js} +4 -4
- package/dist/chunks/{project-ep35cpen.js → model-ep35cpen.js} +1 -1
- package/dist/chunks/{project-djskppfh.js → model-ep8np0m1.js} +4 -4
- package/dist/chunks/model-etvrgfqj.js +74 -0
- package/dist/chunks/{project-cz0kv403.js → model-evpv8s6p.js} +4 -4
- package/dist/chunks/{project-eg3rv469.js → model-f4m2ajrk.js} +4 -4
- package/dist/chunks/{project-f9wt0tjw.js → model-f9wt0tjw.js} +2 -2
- package/dist/chunks/{project-krsqcmnj.js → model-fex42j86.js} +2 -1
- package/dist/chunks/{project-n80x9yrx.js → model-fkf3c53e.js} +64 -15
- package/dist/chunks/{project-fm3b2wbt.js → model-fm3b2wbt.js} +2 -2
- package/dist/chunks/{project-mxjff6xk.js → model-fvzd795v.js} +4 -4
- package/dist/chunks/{project-q52549y3.js → model-fy6682x0.js} +2 -2
- package/dist/chunks/{project-a9vdgkgd.js → model-g23fad86.js} +2 -0
- package/dist/chunks/{project-fw3c683y.js → model-g3xa637g.js} +2 -2
- package/dist/chunks/{project-75h1hfe2.js → model-g5tvq2z7.js} +3 -3
- package/dist/chunks/{project-enpg66yn.js → model-g68hwncr.js} +1 -1
- package/dist/chunks/{project-ma4zf1fd.js → model-gac5srz8.js} +1 -1
- package/dist/chunks/{project-gb1z7yet.js → model-gb1z7yet.js} +2 -2
- package/dist/chunks/{project-gcay93cp.js → model-gcay93cp.js} +1 -1
- package/dist/chunks/{project-gd2xppx8.js → model-gd2xppx8.js} +1 -1
- package/dist/chunks/{project-fhg07p44.js → model-gpfae92y.js} +9 -9
- package/dist/chunks/{project-83ba1yz6.js → model-gz9s6gpj.js} +2 -2
- package/dist/chunks/{project-dgmzb1tr.js → model-h23qqzyp.js} +32 -34
- package/dist/chunks/{project-ntzp27rn.js → model-h2vbrcaa.js} +6 -8
- package/dist/chunks/{project-4s2xwh5d.js → model-h5wnyjzw.js} +4 -21
- package/dist/chunks/{project-fgyjabww.js → model-h6q26knr.js} +2 -2
- package/dist/chunks/{project-h94zdhz8.js → model-h94zdhz8.js} +2 -2
- package/dist/chunks/{project-yq1fxjb2.js → model-hd3n7xxs.js} +4 -4
- package/dist/chunks/{project-gm95ds07.js → model-hg3gvq1y.js} +15 -11
- package/dist/chunks/{project-tcptxgyq.js → model-hgr9y616.js} +1 -3
- package/dist/chunks/{project-5fkc1wrz.js → model-hjakqzgh.js} +3 -3
- package/dist/chunks/{project-k3my2f3q.js → model-hkp9zjzz.js} +10 -15
- package/dist/chunks/{project-hp6rpdnc.js → model-hp6rpdnc.js} +1 -1
- package/dist/chunks/{project-0687t5rp.js → model-hxcd35r2.js} +6 -6
- package/dist/chunks/{project-5v57kk1r.js → model-hztc25mx.js} +3 -3
- package/dist/chunks/{project-zxcy6vhn.js → model-j0feex7e.js} +2 -2
- package/dist/chunks/{project-01z9805y.js → model-j0h6vft7.js} +4 -4
- package/dist/chunks/{project-f1zz3pak.js → model-j10ydgy9.js} +4 -4
- package/dist/chunks/{project-t0msbthe.js → model-j281xcgt.js} +3 -3
- package/dist/chunks/{project-tjzkemh8.js → model-j760n82t.js} +3 -3
- package/dist/chunks/{project-8t2ap2vm.js → model-j8pa1s6t.js} +10 -10
- package/dist/chunks/{project-7d6d29dh.js → model-jzsvqgy6.js} +9 -9
- package/dist/chunks/{project-eeta29b7.js → model-k828h0dz.js} +4 -4
- package/dist/chunks/{project-hesdqwj7.js → model-keytgzng.js} +6 -6
- package/dist/chunks/{project-kg1345f7.js → model-kg1345f7.js} +1 -1
- package/dist/chunks/{project-kp1t5rcy.js → model-kp1t5rcy.js} +1 -1
- package/dist/chunks/{project-sjgf8zbe.js → model-kr5x83ag.js} +5 -5
- package/dist/chunks/{project-bwpyv797.js → model-ks8gtyd5.js} +7 -7
- package/dist/chunks/{project-ayrkq19e.js → model-kvhsphac.js} +104 -78
- package/dist/chunks/{project-3qv8nf0b.js → model-kww0mg52.js} +1 -1
- package/dist/chunks/{project-sag4arrb.js → model-mdperjk5.js} +5 -5
- package/dist/chunks/{project-mf0hyk7z.js → model-mf0hyk7z.js} +1 -1
- package/dist/chunks/{project-qfwv4tag.js → model-mfzf5b1q.js} +11 -11
- package/dist/chunks/{project-brrb2k9c.js → model-mn601gd8.js} +4 -4
- package/dist/chunks/{project-mnb85w6b.js → model-mnb85w6b.js} +2 -2
- package/dist/chunks/{project-mx048vt2.js → model-mvnt3mgd.js} +5 -7
- package/dist/chunks/{project-mxvw03gv.js → model-mxvw03gv.js} +1 -1
- package/dist/chunks/{project-vphhr7s2.js → model-mzdc39r5.js} +4 -4
- package/dist/chunks/{project-qmbgqwhj.js → model-n45137pn.js} +38 -44
- package/dist/chunks/{project-gx0zmkq0.js → model-n6t5c0k6.js} +140 -140
- package/dist/chunks/{project-xdgykwbe.js → model-nba1g5tj.js} +12 -12
- package/dist/chunks/{project-sdcydb11.js → model-nbw8awg7.js} +3 -3
- package/dist/chunks/{project-2knkewgs.js → model-ngz3v23c.js} +3 -3
- package/dist/chunks/{project-gtcq6en2.js → model-nh98sf0t.js} +18 -20
- package/dist/chunks/{project-awg5d31a.js → model-npwkm078.js} +1 -1
- package/dist/chunks/{project-nr76rjj3.js → model-nr76rjj3.js} +2 -2
- package/dist/chunks/{project-ns0sdez7.js → model-ns0sdez7.js} +3 -3
- package/dist/chunks/{project-nzrjycs5.js → model-nzrjycs5.js} +1 -1
- package/dist/chunks/{project-hxw68eqm.js → model-pdyjpm6a.js} +5 -5
- package/dist/chunks/{project-pq4b4pqk.js → model-pq4b4pqk.js} +2 -2
- package/dist/chunks/{project-917g9tmj.js → model-pr46h17c.js} +6 -8
- package/dist/chunks/{project-2wds5nk3.js → model-ps01fcq7.js} +1 -1
- package/dist/chunks/model-pwd75nyq.js +405 -0
- package/dist/chunks/{project-qxsjpy8c.js → model-pywyq33w.js} +8 -8
- package/dist/chunks/{project-jcsmb80n.js → model-pz1bk8bf.js} +2 -2
- package/dist/chunks/{project-n79xa5zf.js → model-pzatkvvd.js} +7 -7
- package/dist/chunks/{project-27gfv7vw.js → model-q2p1j5t8.js} +5 -5
- package/dist/chunks/{project-q606pcse.js → model-q606pcse.js} +3 -3
- package/dist/chunks/{project-m55whf0h.js → model-q66tjefk.js} +2 -2
- package/dist/chunks/model-q8ep280n.js +33 -0
- package/dist/chunks/{project-tpx671s8.js → model-q9vfn5x4.js} +2 -2
- package/dist/chunks/{project-qe0d689s.js → model-qe0d689s.js} +2 -2
- package/dist/chunks/{project-1cvksg4c.js → model-qert5162.js} +2 -2
- package/dist/chunks/{project-r67bz3x8.js → model-qgqfrqw3.js} +13 -13
- package/dist/chunks/{project-9nk9mkqn.js → model-qhdy39gn.js} +3 -3
- package/dist/chunks/{project-6kmefejb.js → model-qmpdqet2.js} +13 -13
- package/dist/chunks/{project-mankezgy.js → model-qwn30307.js} +16 -6
- package/dist/chunks/{project-r3k9abhd.js → model-r3k9abhd.js} +2 -2
- package/dist/chunks/{project-r9d3d23r.js → model-r9d3d23r.js} +1 -1
- package/dist/chunks/{project-rahat93a.js → model-rahat93a.js} +1 -1
- package/dist/chunks/{project-0gcqkg3x.js → model-rdqmt1vp.js} +2 -2
- package/dist/chunks/{project-qw097fy7.js → model-rgrf8c7p.js} +24 -26
- package/dist/chunks/{project-zs1qer6v.js → model-rmjj1pjh.js} +27 -2
- package/dist/chunks/{project-gcc0jgqv.js → model-rrbd0qbq.js} +5 -5
- package/dist/chunks/{project-s2kjqxd3.js → model-s2kjqxd3.js} +1 -1
- package/dist/chunks/{project-s33fw6zm.js → model-s33fw6zm.js} +1 -1
- package/dist/chunks/{project-9twaxxs3.js → model-sdcaysy0.js} +5 -5
- package/dist/chunks/{project-smpeg8c9.js → model-smpeg8c9.js} +2 -2
- package/dist/chunks/{project-sw84ckhj.js → model-sw84ckhj.js} +1 -1
- package/dist/chunks/{project-t14kykx1.js → model-t14kykx1.js} +1 -1
- package/dist/chunks/{project-qzrmckdd.js → model-t4hd6dfn.js} +4 -4
- package/dist/chunks/{project-r13w8t0w.js → model-t683wdge.js} +2 -2
- package/dist/chunks/{project-rbnp2c85.js → model-t6ma3p1k.js} +3 -3
- package/dist/chunks/{project-thstd87d.js → model-thstd87d.js} +1 -1
- package/dist/chunks/{project-tjrfm0xh.js → model-tjrfm0xh.js} +2 -2
- package/dist/chunks/{project-1v4q2qp6.js → model-tmq1h0yc.js} +4 -4
- package/dist/chunks/{project-v2wshkax.js → model-v2wshkax.js} +1 -1
- package/dist/chunks/{project-v80zsxnb.js → model-v80zsxnb.js} +1 -1
- package/dist/chunks/{project-v972xay6.js → model-v972xay6.js} +1 -1
- package/dist/chunks/{project-v9bfv94f.js → model-v9bfv94f.js} +1 -1
- package/dist/chunks/{project-26cqkxws.js → model-vcthhb3r.js} +15 -15
- package/dist/chunks/{project-vcwr2vpf.js → model-vcwr2vpf.js} +1 -1
- package/dist/chunks/{project-bq1qdn80.js → model-vhefbkee.js} +8 -8
- package/dist/chunks/{project-vqbmgfq1.js → model-vqbmgfq1.js} +3 -3
- package/dist/chunks/{project-gy9zm4ck.js → model-vwkfg4n5.js} +94 -96
- package/dist/chunks/{project-vz89hfgr.js → model-vz89hfgr.js} +1 -1
- package/dist/chunks/{project-h12kt9pa.js → model-w385wtt6.js} +2 -2
- package/dist/chunks/{project-wbkt8qpj.js → model-wbkt8qpj.js} +1 -1
- package/dist/chunks/{project-qxpt6zan.js → model-wf85cm54.js} +17 -17
- package/dist/chunks/{project-ssk1zpcb.js → model-wj5aszjk.js} +10 -10
- package/dist/chunks/{project-y68gmye4.js → model-wk5ccvwp.js} +19 -17
- package/dist/chunks/{project-wmxdh12w.js → model-wmxdh12w.js} +1 -1
- package/dist/chunks/{project-1r30nvhb.js → model-wngq0b9r.js} +3 -3
- package/dist/chunks/{project-wps8gh8n.js → model-wps8gh8n.js} +2 -2
- package/dist/chunks/{project-5cdnkd94.js → model-wq5r9j83.js} +4 -6
- package/dist/chunks/{project-hs6h3an3.js → model-x3gnmkmq.js} +58 -58
- package/dist/chunks/{project-rgh2fcxw.js → model-x4akg8r5.js} +35 -12
- package/dist/chunks/{project-6tmgbn41.js → model-x4s5zyap.js} +51 -35
- package/dist/chunks/{project-60xr61qr.js → model-x881kgek.js} +5 -5
- package/dist/chunks/{project-x89rah0x.js → model-x89rah0x.js} +1 -1
- package/dist/chunks/{project-zn8r3q6e.js → model-x8ejds6g.js} +6 -6
- package/dist/chunks/{project-3ngtzkgg.js → model-x8tgsatw.js} +3 -3
- package/dist/chunks/{project-xczfw7dq.js → model-xczfw7dq.js} +1 -1
- package/dist/chunks/{project-xgv25zxy.js → model-xgv25zxy.js} +1 -1
- package/dist/chunks/{project-xj0xhwdw.js → model-xj0xhwdw.js} +1 -1
- package/dist/chunks/{project-xwftk1fd.js → model-xwftk1fd.js} +2 -2
- package/dist/chunks/{project-xxpvz42q.js → model-xxpvz42q.js} +3 -3
- package/dist/chunks/{project-pm12wdxj.js → model-xy3y21dp.js} +2 -2
- package/dist/chunks/{project-z1at3hn2.js → model-y0e4v98w.js} +5 -5
- package/dist/chunks/{project-y0x38cee.js → model-y0x38cee.js} +1 -1
- package/dist/chunks/{project-y198y2ra.js → model-y198y2ra.js} +1 -1
- package/dist/chunks/{project-y67x6rf6.js → model-y67x6rf6.js} +1 -1
- package/dist/chunks/{project-k2bjf35z.js → model-y9415wjy.js} +14 -14
- package/dist/chunks/{project-zy7gs9ta.js → model-ya7dtkd6.js} +11 -11
- package/dist/chunks/{project-86t2edmb.js → model-ys131sm2.js} +7 -7
- package/dist/chunks/{project-yf0knd5z.js → model-yt02w91s.js} +20 -21
- package/dist/chunks/{project-fj3jkv63.js → model-z2m9tgnz.js} +4 -4
- package/dist/chunks/{project-4rg3anhc.js → model-z8cvg98n.js} +15 -10
- package/dist/chunks/{project-zbqqnp0n.js → model-zbqqnp0n.js} +1 -1
- package/dist/chunks/{project-zdkg1k91.js → model-zdkg1k91.js} +1 -1
- package/dist/chunks/{project-dmd300cs.js → model-zqfh5k26.js} +15 -14
- package/dist/chunks/{project-8xpa4rfs.js → model-zvgnemsv.js} +4 -4
- package/dist/chunks/{project-0pepaw2y.js → model-zvhztyp7.js} +26 -34
- package/dist/chunks/{project-zxe9jjhn.js → model-zxe9jjhn.js} +2 -2
- package/dist/chunks/{project-sg39537v.js → model-zyaamr6c.js} +5 -5
- 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 +132 -132
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +146 -146
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +131 -131
- 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 +103 -103
- package/dist/config/plugin/skill.js +135 -135
- 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 +20 -20
- 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 +3 -3
- package/dist/database/v1-migration.bun.js +171 -174
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +339 -333
- 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 +313 -309
- 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 +97 -97
- 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 +18 -18
- 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 +10 -8
- 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 +107 -102
- package/dist/image.js +99 -99
- package/dist/instance.js +338 -332
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +85 -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 +72 -72
- 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 +339 -333
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +97 -93
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +127 -127
- 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 +71 -84
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +100 -100
- 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 +73 -73
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +202 -174
- package/dist/plugin/instance.js +2 -2
- package/dist/plugin/internal.js +307 -302
- 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 +101 -101
- 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 +123 -123
- 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 +3 -3
- 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 +120 -120
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +120 -120
- 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 +4 -4
- package/dist/plugin/provider/sdk-factory.js +2 -2
- 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 +120 -120
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/runtime.js +190 -162
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +312 -308
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +3 -4
- package/dist/plugin/vcs/git.js +87 -85
- package/dist/plugin/vcs/hg.js +87 -85
- package/dist/plugin/warming.js +114 -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 +203 -175
- 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 +2 -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 +118 -118
- package/dist/session/context.js +322 -318
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +26 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +202 -184
- package/dist/session/execution.js +122 -122
- package/dist/session/generate-node.js +323 -319
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +86 -90
- package/dist/session/info.js +4 -4
- package/dist/session/instruction-entry.js +73 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +94 -94
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +139 -139
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +83 -83
- package/dist/session/prompt-node.js +320 -0
- package/dist/session/prompt.js +130 -0
- package/dist/session/revert-node.js +320 -0
- package/dist/session/revert.js +100 -95
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +328 -324
- 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 +74 -74
- package/dist/session/runner/step.js +148 -148
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/session.js +181 -0
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +82 -80
- package/dist/session/subagent-completion.js +9 -0
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +323 -319
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +191 -168
- package/dist/session/usage.js +2 -2
- package/dist/session.js +196 -168
- package/dist/shell/parse.js +7 -7
- 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/result.js +19 -0
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +132 -99
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +101 -101
- 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 +126 -126
- package/dist/tool/plugin/edit.js +113 -113
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +116 -116
- package/dist/tool/plugin/grep.js +116 -116
- package/dist/tool/plugin/patch.js +113 -113
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +119 -119
- package/dist/tool/plugin/shell.js +193 -190
- package/dist/tool/plugin/skill.js +102 -102
- package/dist/tool/plugin/subagent.js +192 -187
- package/dist/tool/plugin/webfetch.js +103 -103
- package/dist/tool/plugin/websearch.js +105 -105
- package/dist/tool/plugin/write.js +113 -113
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +119 -119
- package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +7 -7
- package/dist/types/database/drizzle/sqlite-core/effect/insert.d.ts +0 -1
- package/dist/types/github-copilot/responses/openai-responses-prepare-tools.d.ts +9 -1
- package/dist/types/image/photon.d.ts +2 -7
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/instructions/builtins.d.ts +2 -2
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/mcp/client.d.ts +3 -0
- package/dist/types/mcp/index.d.ts +2 -0
- package/dist/types/persistent-pty/index.d.ts +3 -22
- package/dist/types/plugin/host.d.ts +9 -19
- package/dist/types/plugin/runtime.d.ts +1 -1
- package/dist/types/plugin/variant.d.ts +1 -1
- package/dist/types/project.d.ts +1 -0
- package/dist/types/pty/ticket.d.ts +1 -1
- package/dist/types/session/error.d.ts +115 -0
- package/dist/types/session/execution.d.ts +2 -0
- package/dist/types/session/inbox.d.ts +557 -176
- package/dist/types/session/model-request.d.ts +3 -2
- package/dist/types/session/prompt-node.d.ts +3 -0
- package/dist/types/session/prompt.d.ts +126 -0
- package/dist/types/session/revert-node.d.ts +3 -0
- package/dist/types/session/revert.d.ts +24 -29
- package/dist/types/session/run-coordinator.d.ts +2 -0
- package/dist/types/session/runner/model.d.ts +6 -6
- package/dist/types/session/runner/publish-llm-event.d.ts +7 -5
- package/dist/types/session/runner/retry.d.ts +28 -4
- package/dist/types/session/runner/step.d.ts +21 -17
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/session.d.ts +238 -0
- package/dist/types/session/store.d.ts +79 -1
- package/dist/types/session/subagent-completion.d.ts +10 -0
- package/dist/types/session.d.ts +19 -157
- package/dist/types/shell/result.d.ts +54 -0
- package/dist/types/shell.d.ts +2 -0
- package/dist/types/skill.d.ts +1 -1
- package/dist/types/vcs.d.ts +12 -4
- 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 +91 -87
- 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 -7
- package/dist/chunks/project-7yga2xb3.js +0 -115
- package/dist/chunks/project-fb7nfzf2.js +0 -71
- package/dist/chunks/project-p2k7bd69.js +0 -924
- package/dist/chunks/project-tqf07m3e.js +0 -62
- package/dist/chunks/project-vjmn5wwb.js +0 -67
- package/dist/config/file.js +0 -128
- package/dist/types/config/file.d.ts +0 -17
- /package/dist/chunks/{project-0cgt0xh2.js → model-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{project-0f48qthw.js → model-0f48qthw.js} +0 -0
- /package/dist/chunks/{project-0zz82cjq.js → model-0zz82cjq.js} +0 -0
- /package/dist/chunks/{project-1fb7bmpf.js → model-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{project-1wcz8fvj.js → model-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{project-29n7vfk2.js → model-29n7vfk2.js} +0 -0
- /package/dist/chunks/{project-2qdx6zz3.js → model-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{project-2xb0r1c6.js → model-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{project-39ktntah.js → model-39ktntah.js} +0 -0
- /package/dist/chunks/{project-3g3rpp2x.js → model-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{project-3w3ybtfd.js → model-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{project-47ty4mvs.js → model-47ty4mvs.js} +0 -0
- /package/dist/chunks/{project-4b2tz2m9.js → model-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{project-5a5ch9ts.js → model-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{project-5va1yh78.js → model-5va1yh78.js} +0 -0
- /package/dist/chunks/{project-61ek4hj9.js → model-61ek4hj9.js} +0 -0
- /package/dist/chunks/{project-69qrqpw0.js → model-69qrqpw0.js} +0 -0
- /package/dist/chunks/{project-6zqxzw0a.js → model-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{project-7n9qwqk4.js → model-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{project-8nn8kqcn.js → model-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{project-8rpfd2h6.js → model-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{project-8sj3ajy5.js → model-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{project-8w9tzfz1.js → model-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{project-906y0b6d.js → model-906y0b6d.js} +0 -0
- /package/dist/chunks/{project-9dct5xhx.js → model-9dct5xhx.js} +0 -0
- /package/dist/chunks/{project-9maxscqf.js → model-9maxscqf.js} +0 -0
- /package/dist/chunks/{project-9sdtsapf.js → model-9sdtsapf.js} +0 -0
- /package/dist/chunks/{project-a02svayp.js → model-a02svayp.js} +0 -0
- /package/dist/chunks/{project-a83yvq99.js → model-a83yvq99.js} +0 -0
- /package/dist/chunks/{project-ayevdmef.js → model-ayevdmef.js} +0 -0
- /package/dist/chunks/{project-b02txbh8.js → model-b02txbh8.js} +0 -0
- /package/dist/chunks/{project-bbqs2y60.js → model-bbqs2y60.js} +0 -0
- /package/dist/chunks/{project-bjwj8hwv.js → model-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{project-brsh5f65.js → model-brsh5f65.js} +0 -0
- /package/dist/chunks/{project-bxdhjb3y.js → model-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{project-c77ad0vh.js → model-c77ad0vh.js} +0 -0
- /package/dist/chunks/{project-cm67rqy2.js → model-cm67rqy2.js} +0 -0
- /package/dist/chunks/{project-df3v2q6j.js → model-df3v2q6j.js} +0 -0
- /package/dist/chunks/{project-dhcq6c44.js → model-dhcq6c44.js} +0 -0
- /package/dist/chunks/{project-dht5baf0.js → model-dht5baf0.js} +0 -0
- /package/dist/chunks/{project-dkmkay92.js → model-dkmkay92.js} +0 -0
- /package/dist/chunks/{project-ehj9csmv.js → model-ehj9csmv.js} +0 -0
- /package/dist/chunks/{project-em6xpscd.js → model-em6xpscd.js} +0 -0
- /package/dist/chunks/{project-emmqknsm.js → model-emmqknsm.js} +0 -0
- /package/dist/chunks/{project-ezs3tagn.js → model-ezs3tagn.js} +0 -0
- /package/dist/chunks/{project-f14r7hfz.js → model-f14r7hfz.js} +0 -0
- /package/dist/chunks/{project-f1jj19e8.js → model-f1jj19e8.js} +0 -0
- /package/dist/chunks/{project-f4cp4g4a.js → model-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{project-faypg4r1.js → model-faypg4r1.js} +0 -0
- /package/dist/chunks/{project-fg7fz4q3.js → model-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{project-fgbfdq62.js → model-fgbfdq62.js} +0 -0
- /package/dist/chunks/{project-gd5xeqc2.js → model-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{project-ghm4673n.js → model-ghm4673n.js} +0 -0
- /package/dist/chunks/{project-ghwjy7my.js → model-ghwjy7my.js} +0 -0
- /package/dist/chunks/{project-gy500k2r.js → model-gy500k2r.js} +0 -0
- /package/dist/chunks/{project-hzeg9cfr.js → model-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{project-j07kk359.js → model-j07kk359.js} +0 -0
- /package/dist/chunks/{project-j32vdj8r.js → model-j32vdj8r.js} +0 -0
- /package/dist/chunks/{project-jqms80b0.js → model-jqms80b0.js} +0 -0
- /package/dist/chunks/{project-jve7t217.js → model-jve7t217.js} +0 -0
- /package/dist/chunks/{project-k3e42drn.js → model-k3e42drn.js} +0 -0
- /package/dist/chunks/{project-k8b45nas.js → model-k8b45nas.js} +0 -0
- /package/dist/chunks/{project-kpdbz7gn.js → model-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{project-kxy11nzk.js → model-kxy11nzk.js} +0 -0
- /package/dist/chunks/{project-kyyqvx4s.js → model-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{project-m8cbvarh.js → model-m8cbvarh.js} +0 -0
- /package/dist/chunks/{project-ma60vzgv.js → model-ma60vzgv.js} +0 -0
- /package/dist/chunks/{project-n3m50c2t.js → model-n3m50c2t.js} +0 -0
- /package/dist/chunks/{project-n6ag8q95.js → model-n6ag8q95.js} +0 -0
- /package/dist/chunks/{project-nkm1m8dz.js → model-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{project-nsc0c3zb.js → model-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{project-qaarhjrp.js → model-qaarhjrp.js} +0 -0
- /package/dist/chunks/{project-qc167nrn.js → model-qc167nrn.js} +0 -0
- /package/dist/chunks/{project-qp95y4jb.js → model-qp95y4jb.js} +0 -0
- /package/dist/chunks/{project-r8f4w671.js → model-r8f4w671.js} +0 -0
- /package/dist/chunks/{project-rdfev9jy.js → model-rdfev9jy.js} +0 -0
- /package/dist/chunks/{project-rvfvac9x.js → model-rvfvac9x.js} +0 -0
- /package/dist/chunks/{project-s7whb9gt.js → model-s7whb9gt.js} +0 -0
- /package/dist/chunks/{project-se76j685.js → model-se76j685.js} +0 -0
- /package/dist/chunks/{project-sem2g21k.js → model-sem2g21k.js} +0 -0
- /package/dist/chunks/{project-sp575ygv.js → model-sp575ygv.js} +0 -0
- /package/dist/chunks/{project-tmb1f636.js → model-tmb1f636.js} +0 -0
- /package/dist/chunks/{project-ttxf0gsy.js → model-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{project-tvmhrvfj.js → model-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{project-v2adqbbe.js → model-v2adqbbe.js} +0 -0
- /package/dist/chunks/{project-vac9eqd2.js → model-vac9eqd2.js} +0 -0
- /package/dist/chunks/{project-wj4sxzqa.js → model-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{project-wwntjmk1.js → model-wwntjmk1.js} +0 -0
- /package/dist/chunks/{project-wyqjaaa5.js → model-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{project-x4q807cx.js → model-x4q807cx.js} +0 -0
- /package/dist/chunks/{project-yrqrg4vp.js → model-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{project-z47nswr2.js → model-z47nswr2.js} +0 -0
- /package/dist/chunks/{project-zsf8rs93.js → model-zsf8rs93.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_parse
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-x8ejds6g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
exports_location_mutation
|
|
6
|
+
} from "./model-zyaamr6c.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_runtime
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
exports_permission
|
|
12
|
-
} from "./project-12r08axk.js";
|
|
9
|
+
} from "./model-51jc707v.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_shell
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./model-6cxkhhme.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_result
|
|
15
|
+
} from "./model-etvrgfqj.js";
|
|
16
|
+
import {
|
|
17
|
+
exports_permission
|
|
18
|
+
} from "./model-955f6cmy.js";
|
|
16
19
|
import {
|
|
17
20
|
exports_environment1 as exports_environment
|
|
18
|
-
} from "./
|
|
21
|
+
} from "./model-bach7bae.js";
|
|
19
22
|
import {
|
|
20
23
|
exports_config
|
|
21
|
-
} from "./
|
|
24
|
+
} from "./model-qmpdqet2.js";
|
|
22
25
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
26
|
+
NonNegativeInt
|
|
27
|
+
} from "./model-j07kk359.js";
|
|
25
28
|
import {
|
|
26
29
|
exports_select
|
|
27
|
-
} from "./
|
|
28
|
-
import {
|
|
29
|
-
NonNegativeInt
|
|
30
|
-
} from "./project-j07kk359.js";
|
|
30
|
+
} from "./model-bbhffenw.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./model-rvfvac9x.js";
|
|
34
34
|
|
|
35
35
|
// src/tool/plugin/shell.ts
|
|
36
36
|
var exports_shell2 = {};
|
|
@@ -81,14 +81,7 @@ var Output = Schema.Struct({
|
|
|
81
81
|
status: Schema.optionalKey(Schema.Literals(["completed", "running"]))
|
|
82
82
|
});
|
|
83
83
|
var resultMessages = (output) => {
|
|
84
|
-
const notice = (
|
|
85
|
-
if (output.status === "running")
|
|
86
|
-
return BACKGROUND_INSTRUCTION;
|
|
87
|
-
if (output.timeout)
|
|
88
|
-
return "Command timed out before completion.";
|
|
89
|
-
if (output.exit !== undefined)
|
|
90
|
-
return `Command exited with code ${output.exit}.`;
|
|
91
|
-
})();
|
|
84
|
+
const notice = output.status === "running" ? BACKGROUND_INSTRUCTION : exports_result.notice(output);
|
|
92
85
|
return [output.output, ...notice ? [notice] : []];
|
|
93
86
|
};
|
|
94
87
|
var toolResult = (output) => {
|
|
@@ -97,10 +90,8 @@ var toolResult = (output) => {
|
|
|
97
90
|
content: resultMessages(output).map((text) => ({ type: "text", text })),
|
|
98
91
|
metadata: {
|
|
99
92
|
status: output.status,
|
|
100
|
-
|
|
101
|
-
...output.
|
|
102
|
-
...output.shellID !== undefined ? { shellID: output.shellID } : {},
|
|
103
|
-
...output.timeout !== undefined ? { timeout: output.timeout } : {}
|
|
93
|
+
...exports_result.metadata(output),
|
|
94
|
+
...output.shellID !== undefined ? { shellID: output.shellID } : {}
|
|
104
95
|
}
|
|
105
96
|
};
|
|
106
97
|
};
|
|
@@ -123,6 +114,45 @@ var Plugin = {
|
|
|
123
114
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
124
115
|
const permission = yield* exports_permission.Service;
|
|
125
116
|
const config = yield* exports_config.Service;
|
|
117
|
+
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
118
|
+
const source = {
|
|
119
|
+
type: "tool",
|
|
120
|
+
messageID: context.messageID,
|
|
121
|
+
id: context.id
|
|
122
|
+
};
|
|
123
|
+
const target = yield* mutation.resolve({ path: invocation.cwd, kind: "directory" });
|
|
124
|
+
invocation.cwd = target.absolute;
|
|
125
|
+
const timeout = invocation.timeout;
|
|
126
|
+
const portable = exports_config.latest(yield* config.entries(), "experimental")?.portable_shell_scanner === true;
|
|
127
|
+
const parsed = yield* exports_parse.scan(invocation.command, invocation.shell, target.absolute, { portable });
|
|
128
|
+
const directories = yield* Effect.forEach(parsed.directories, (directory) => mutation.resolve({
|
|
129
|
+
path: exports_location_mutation.resolvePath(target.absolute, directory),
|
|
130
|
+
kind: "directory"
|
|
131
|
+
}));
|
|
132
|
+
const external = [target, ...directories].map((item) => item.externalDirectory).filter((item) => item !== undefined).filter((item, index, items) => items.findIndex((other) => other.resource === item.resource) === index);
|
|
133
|
+
if (external.length > 0)
|
|
134
|
+
yield* permission.assert({
|
|
135
|
+
action: "external_directory",
|
|
136
|
+
resources: external.map((item) => item.resource),
|
|
137
|
+
save: external.map((item) => item.save),
|
|
138
|
+
sessionID: context.sessionID,
|
|
139
|
+
agent: context.agent,
|
|
140
|
+
source
|
|
141
|
+
});
|
|
142
|
+
if (parsed.commands.length > 0)
|
|
143
|
+
yield* permission.assert({
|
|
144
|
+
action: name,
|
|
145
|
+
resources: parsed.commands.map((command) => command.resource),
|
|
146
|
+
save: parsed.commands.map((command) => command.save),
|
|
147
|
+
sessionID: context.sessionID,
|
|
148
|
+
agent: context.agent,
|
|
149
|
+
source
|
|
150
|
+
});
|
|
151
|
+
const workdir = yield* exports_environment.typeFollowing(environment.files, target.absolute).pipe(Effect.catchTag("Environment.NotFound", () => Effect.fail(new Error(`Working directory does not exist: ${target.absolute}`))));
|
|
152
|
+
if (workdir !== "directory")
|
|
153
|
+
return yield* Effect.fail(new Error(`Working directory is not a directory: ${target.absolute}`));
|
|
154
|
+
return timeout;
|
|
155
|
+
});
|
|
126
156
|
const notifyWhenDone = Effect.fn("ShellTool.notifyWhenDone")(function* (sessionID, id, shellID, command, settled) {
|
|
127
157
|
const info = (yield* runtime.job.wait({ id })).info;
|
|
128
158
|
if (!info || info.status === "running")
|
|
@@ -134,21 +164,15 @@ var Plugin = {
|
|
|
134
164
|
yield* runtime.session.synthetic({
|
|
135
165
|
...info.notificationID ? { id: info.notificationID } : {},
|
|
136
166
|
sessionID,
|
|
137
|
-
text: `<shell id="${id}" state="${info.status}" command="${command}">
|
|
138
|
-
${text}
|
|
139
|
-
</shell>`,
|
|
140
167
|
description: command,
|
|
141
|
-
|
|
142
|
-
source: "shell",
|
|
168
|
+
...exports_result.notification({
|
|
143
169
|
jobID: id,
|
|
144
170
|
shellID,
|
|
171
|
+
command,
|
|
145
172
|
state: info.status,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
...output.timeout !== undefined ? { timeout: output.timeout } : {}
|
|
150
|
-
} : {}
|
|
151
|
-
}
|
|
173
|
+
text,
|
|
174
|
+
output
|
|
175
|
+
})
|
|
152
176
|
});
|
|
153
177
|
if (info.notificationID)
|
|
154
178
|
yield* runtime.job.completeBackground(info.notificationID);
|
|
@@ -160,11 +184,6 @@ ${text}
|
|
|
160
184
|
input: Input,
|
|
161
185
|
output: Output,
|
|
162
186
|
execute: (input, context) => Effect.gen(function* () {
|
|
163
|
-
const source = {
|
|
164
|
-
type: "tool",
|
|
165
|
-
messageID: context.messageID,
|
|
166
|
-
id: context.id
|
|
167
|
-
};
|
|
168
187
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS;
|
|
169
188
|
let finalTimeout = timeout;
|
|
170
189
|
const info = yield* shell.create({
|
|
@@ -174,89 +193,23 @@ ${text}
|
|
|
174
193
|
shell: yield* compatibleShell,
|
|
175
194
|
metadata: { sessionID: context.sessionID }
|
|
176
195
|
}, (invocation) => Effect.gen(function* () {
|
|
177
|
-
|
|
178
|
-
invocation.cwd = target.absolute;
|
|
179
|
-
finalTimeout = invocation.timeout;
|
|
180
|
-
const portable = exports_config.latest(yield* config.entries(), "experimental")?.portable_shell_scanner === true;
|
|
181
|
-
const parsed = yield* exports_parse.scan(invocation.command, invocation.shell, target.absolute, {
|
|
182
|
-
portable
|
|
183
|
-
});
|
|
184
|
-
const directories = yield* Effect.forEach(parsed.directories, (directory) => mutation.resolve({
|
|
185
|
-
path: exports_location_mutation.resolvePath(target.absolute, directory),
|
|
186
|
-
kind: "directory"
|
|
187
|
-
}));
|
|
188
|
-
const external = [target, ...directories].map((item) => item.externalDirectory).filter((item) => item !== undefined).filter((item, index, items) => items.findIndex((other) => other.resource === item.resource) === index);
|
|
189
|
-
if (external.length > 0)
|
|
190
|
-
yield* permission.assert({
|
|
191
|
-
action: "external_directory",
|
|
192
|
-
resources: external.map((item) => item.resource),
|
|
193
|
-
save: external.map((item) => item.save),
|
|
194
|
-
sessionID: context.sessionID,
|
|
195
|
-
agent: context.agent,
|
|
196
|
-
source
|
|
197
|
-
});
|
|
198
|
-
if (parsed.commands.length > 0)
|
|
199
|
-
yield* permission.assert({
|
|
200
|
-
action: name,
|
|
201
|
-
resources: parsed.commands.map((command) => command.resource),
|
|
202
|
-
save: parsed.commands.map((command) => command.save),
|
|
203
|
-
sessionID: context.sessionID,
|
|
204
|
-
agent: context.agent,
|
|
205
|
-
source
|
|
206
|
-
});
|
|
207
|
-
const workdir = yield* exports_environment.typeFollowing(environment.files, target.absolute).pipe(Effect.catchTag("Environment.NotFound", () => Effect.fail(new Error(`Working directory does not exist: ${target.absolute}`))));
|
|
208
|
-
if (workdir !== "directory")
|
|
209
|
-
return yield* Effect.fail(new Error(`Working directory is not a directory: ${target.absolute}`));
|
|
196
|
+
finalTimeout = yield* prepare(invocation, context);
|
|
210
197
|
}));
|
|
211
198
|
yield* context.progress({ shellID: info.id });
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
cursor: Math.max(0, latest.size - maxBytes),
|
|
219
|
-
limit: maxBytes
|
|
220
|
-
});
|
|
221
|
-
const lines = page.output.split(`
|
|
222
|
-
`);
|
|
223
|
-
if (page.output.endsWith(`
|
|
224
|
-
`))
|
|
225
|
-
lines.pop();
|
|
226
|
-
const truncated = latest.size > maxBytes || lines.length > maxLines;
|
|
227
|
-
const output = lines.length > maxLines ? lines.slice(-maxLines).join(`
|
|
228
|
-
`) : page.output;
|
|
229
|
-
const notice = truncated ? `
|
|
230
|
-
|
|
231
|
-
[output truncated; full output saved to: ${info.file}]` : "";
|
|
199
|
+
const settled = yield* Deferred.make();
|
|
200
|
+
const run = Effect.gen(function* () {
|
|
201
|
+
const result2 = yield* shell.result(info);
|
|
202
|
+
if (!result2.capture)
|
|
203
|
+
return yield* new exports_shell.NotFoundError({ id: info.id });
|
|
204
|
+
const output = exports_result.output(result2);
|
|
232
205
|
return {
|
|
233
|
-
output
|
|
234
|
-
|
|
235
|
-
};
|
|
236
|
-
});
|
|
237
|
-
const settleShell = Effect.fnUntraced(function* () {
|
|
238
|
-
const final = yield* shell.wait(info.id);
|
|
239
|
-
const capture = yield* captureShell();
|
|
240
|
-
if (final.status === "timeout") {
|
|
241
|
-
return {
|
|
242
|
-
...final.exit !== undefined ? { exit: final.exit } : {},
|
|
243
|
-
output: `${capture.output}
|
|
206
|
+
...output,
|
|
207
|
+
output: output.timeout ? `${output.output}
|
|
244
208
|
|
|
245
|
-
Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if the command is expected to take longer
|
|
246
|
-
truncated: capture.truncated,
|
|
247
|
-
timeout: true,
|
|
248
|
-
status: "completed"
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
return {
|
|
252
|
-
...final.exit !== undefined ? { exit: final.exit } : {},
|
|
253
|
-
output: capture.output,
|
|
254
|
-
truncated: capture.truncated,
|
|
209
|
+
Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if the command is expected to take longer.` : output.output,
|
|
255
210
|
status: "completed"
|
|
256
211
|
};
|
|
257
|
-
})
|
|
258
|
-
const settled = yield* Deferred.make();
|
|
259
|
-
const run = settleShell().pipe(Effect.tap((output) => Deferred.succeed(settled, output)), Effect.map((output) => resultMessages(output).join(`
|
|
212
|
+
}).pipe(Effect.tap((output) => Deferred.succeed(settled, output)), Effect.map((output) => resultMessages(output).join(`
|
|
260
213
|
|
|
261
214
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
262
215
|
const job = yield* runtime.job.start({
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_formatter
|
|
3
|
-
} from "./project-2nmyybe0.js";
|
|
4
|
-
import {
|
|
5
|
-
exports_lsp
|
|
6
|
-
} from "./project-15hpbjb6.js";
|
|
7
|
-
import {
|
|
8
|
-
exports_command
|
|
9
|
-
} from "./project-thstd87d.js";
|
|
10
1
|
import {
|
|
11
2
|
exports_provider
|
|
12
|
-
} from "./
|
|
3
|
+
} from "./model-18pv8fg3.js";
|
|
13
4
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
5
|
+
exports_skills
|
|
6
|
+
} from "./model-nzrjycs5.js";
|
|
16
7
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
8
|
+
exports_server
|
|
9
|
+
} from "./model-pq4b4pqk.js";
|
|
19
10
|
import {
|
|
20
11
|
exports_agent
|
|
21
|
-
} from "./
|
|
12
|
+
} from "./model-h5wnyjzw.js";
|
|
22
13
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
14
|
+
exports_layout
|
|
15
|
+
} from "./model-gcay93cp.js";
|
|
25
16
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
17
|
+
exports_command
|
|
18
|
+
} from "./model-thstd87d.js";
|
|
28
19
|
import {
|
|
29
20
|
exports_mcp
|
|
30
|
-
} from "./
|
|
21
|
+
} from "./model-e1z9a0ts.js";
|
|
31
22
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
23
|
+
exports_formatter
|
|
24
|
+
} from "./model-2nmyybe0.js";
|
|
34
25
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
26
|
+
exports_permission
|
|
27
|
+
} from "./model-v9bfv94f.js";
|
|
28
|
+
import {
|
|
29
|
+
exports_lsp
|
|
30
|
+
} from "./model-15hpbjb6.js";
|
|
31
|
+
import {
|
|
32
|
+
exports_attachment
|
|
33
|
+
} from "./model-r3k9abhd.js";
|
|
34
|
+
import {
|
|
35
|
+
exports_plugin
|
|
36
|
+
} from "./model-9f0rnpkn.js";
|
|
37
37
|
import {
|
|
38
38
|
NonNegativeInt,
|
|
39
39
|
PositiveInt
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./model-j07kk359.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./model-rvfvac9x.js";
|
|
44
44
|
|
|
45
45
|
// src/v1/config/config.ts
|
|
46
46
|
var exports_config = {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./model-rvfvac9x.js";
|
|
4
|
+
|
|
5
|
+
// src/session/subagent-completion.ts
|
|
6
|
+
var exports_subagent_completion = {};
|
|
7
|
+
__export(exports_subagent_completion, {
|
|
8
|
+
deliver: () => deliver,
|
|
9
|
+
SubagentCompletion: () => exports_subagent_completion
|
|
10
|
+
});
|
|
11
|
+
import { Effect } from "effect";
|
|
12
|
+
var deliver = Effect.fnUntraced(function* (sessions, jobs, input) {
|
|
13
|
+
if (input.status === "running")
|
|
14
|
+
return;
|
|
15
|
+
const recovery = input.recovery;
|
|
16
|
+
const text = input.status === "completed" ? input.output ?? "Subagent completed without a text response." : input.status === "error" ? input.error ?? "Subagent failed" : "Subagent cancelled";
|
|
17
|
+
yield* sessions.synthetic({
|
|
18
|
+
...input.notificationID ? { id: input.notificationID } : {},
|
|
19
|
+
sessionID: recovery.parentSessionID,
|
|
20
|
+
...input.resume === false ? { resume: false } : {},
|
|
21
|
+
description: recovery.description,
|
|
22
|
+
text: `<subagent sessionID="${recovery.childSessionID}" state="${input.status}" description="${recovery.description}">
|
|
23
|
+
${text}
|
|
24
|
+
</subagent>`,
|
|
25
|
+
metadata: { source: "subagent", childID: recovery.childSessionID, agent: recovery.agent, state: input.status }
|
|
26
|
+
});
|
|
27
|
+
if (input.notificationID)
|
|
28
|
+
yield* jobs.completeBackground(input.notificationID);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { deliver, exports_subagent_completion };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DiffError
|
|
3
|
+
} from "./model-x4akg8r5.js";
|
|
1
4
|
import {
|
|
2
5
|
MAX_PATCH_BYTES,
|
|
3
6
|
MAX_TOTAL_PATCH_BYTES,
|
|
4
7
|
PATCH_CONTEXT_LINES,
|
|
5
8
|
chunksByFile,
|
|
6
9
|
emptyPatch
|
|
7
|
-
} from "./
|
|
10
|
+
} from "./model-vz89hfgr.js";
|
|
8
11
|
import {
|
|
9
12
|
exports_location
|
|
10
|
-
} from "./
|
|
13
|
+
} from "./model-xy3y21dp.js";
|
|
11
14
|
import {
|
|
12
15
|
__export
|
|
13
|
-
} from "./
|
|
16
|
+
} from "./model-rvfvac9x.js";
|
|
14
17
|
|
|
15
18
|
// src/plugin/vcs/git.ts
|
|
16
19
|
var exports_git = {};
|
|
@@ -39,9 +42,10 @@ var Plugin = define({
|
|
|
39
42
|
id: "git",
|
|
40
43
|
name: "Git",
|
|
41
44
|
info: () => adapter.info(),
|
|
45
|
+
base: () => adapter.base(),
|
|
42
46
|
branches: (input) => adapter.branches({ search: input.search, limit: input.limit }),
|
|
43
47
|
status: () => adapter.status(),
|
|
44
|
-
diff: (input) => adapter.diff(input.mode, { context: input.context })
|
|
48
|
+
diff: (input) => adapter.diff(input.mode, { context: input.context, base: input.base })
|
|
45
49
|
});
|
|
46
50
|
});
|
|
47
51
|
})
|
|
@@ -55,6 +59,7 @@ function make(proc, input) {
|
|
|
55
59
|
});
|
|
56
60
|
return { branch: { current, default: root?.name } };
|
|
57
61
|
}),
|
|
62
|
+
base: () => ctx.git.base(ctx.directory),
|
|
58
63
|
branches: Effect.fn("VcsGit.branches")(function* (options) {
|
|
59
64
|
return yield* ctx.git.branches(ctx.directory, options);
|
|
60
65
|
}),
|
|
@@ -78,17 +83,17 @@ function make(proc, input) {
|
|
|
78
83
|
if (mode === "working") {
|
|
79
84
|
return yield* track(ctx, (yield* git.hasHead(ctx.directory)) ? "HEAD" : undefined, options);
|
|
80
85
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return yield* diffAgainstRef(ctx, ref, options);
|
|
86
|
+
if (!(yield* git.hasHead(ctx.directory))) {
|
|
87
|
+
return mode === "committed" ? [] : yield* track(ctx, undefined, options);
|
|
88
|
+
}
|
|
89
|
+
const base = options?.base ?? (yield* git.defaultBranch(ctx.directory))?.ref;
|
|
90
|
+
const ref = base ? yield* git.mergeBase(ctx.directory, base) : undefined;
|
|
91
|
+
if (!ref) {
|
|
92
|
+
return yield* new DiffError({
|
|
93
|
+
message: base ? `No merge base available for ${base}` : "No review base available"
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return yield* diffAgainstRef(ctx, ref, { ...options, target: mode === "committed" ? "HEAD" : undefined });
|
|
92
97
|
})
|
|
93
98
|
};
|
|
94
99
|
}
|
|
@@ -191,12 +196,65 @@ function makeGit(proc) {
|
|
|
191
196
|
if (list.includes("master"))
|
|
192
197
|
return { name: "master", ref: "master" };
|
|
193
198
|
});
|
|
199
|
+
const resolve = Effect.fnUntraced(function* (cwd, ref) {
|
|
200
|
+
const result = yield* run(["rev-parse", "--verify", "--end-of-options", `${ref}^{commit}`], { cwd });
|
|
201
|
+
if (result.exitCode !== 0)
|
|
202
|
+
return;
|
|
203
|
+
return result.text().trim() || undefined;
|
|
204
|
+
});
|
|
205
|
+
const ancestor = Effect.fnUntraced(function* (cwd, commit, ref) {
|
|
206
|
+
if (!/^[a-f0-9]{40,64}$/.test(commit))
|
|
207
|
+
return false;
|
|
208
|
+
return (yield* run(["merge-base", "--is-ancestor", commit, ref], { cwd })).exitCode === 0;
|
|
209
|
+
});
|
|
210
|
+
const namedRef = Effect.fnUntraced(function* (cwd, input) {
|
|
211
|
+
if (input === "HEAD" || input.endsWith("/HEAD") || /[~^:@{}\s]/.test(input))
|
|
212
|
+
return;
|
|
213
|
+
const ref = (yield* text(["rev-parse", "--symbolic-full-name", "--verify", "--end-of-options", input], {
|
|
214
|
+
cwd
|
|
215
|
+
})).trim();
|
|
216
|
+
if (!/^refs\/(heads|remotes)\/.+/.test(ref) || ref.endsWith("/HEAD") || !(yield* resolve(cwd, ref)))
|
|
217
|
+
return;
|
|
218
|
+
return { name: ref.replace(/^refs\/heads\//, "").replace(/^refs\/remotes\/[^/]+\//, ""), ref };
|
|
219
|
+
});
|
|
220
|
+
const base = Effect.fn("VcsGit.base")(function* (cwd) {
|
|
221
|
+
if (!(yield* hasHead(cwd)))
|
|
222
|
+
return null;
|
|
223
|
+
const current = yield* branch(cwd);
|
|
224
|
+
if (!current)
|
|
225
|
+
return yield* new DiffError({ message: "Choose a review base" });
|
|
226
|
+
const history = (yield* lines(["reflog", "show", "--max-count=256", "--format=%H%x00%gs", `refs/heads/${current}`], {
|
|
227
|
+
cwd
|
|
228
|
+
})).flatMap((line) => {
|
|
229
|
+
const match = /^([a-f0-9]+)\0(.+)$/.exec(line);
|
|
230
|
+
return match ? [{ commit: match[1], message: match[2] }] : [];
|
|
231
|
+
});
|
|
232
|
+
const renamed = history.some((entry) => entry.message.startsWith("Branch: renamed "));
|
|
233
|
+
const creation = renamed ? undefined : history.find((entry) => entry.message.startsWith("branch: Created from "));
|
|
234
|
+
const origin = creation?.message.slice("branch: Created from ".length);
|
|
235
|
+
if (creation && origin) {
|
|
236
|
+
const candidate2 = yield* namedRef(cwd, origin);
|
|
237
|
+
if (candidate2 && candidate2.name !== current && (yield* ancestor(cwd, creation.commit, "HEAD")) && (yield* ancestor(cwd, creation.commit, candidate2.ref))) {
|
|
238
|
+
return { ...candidate2, source: "reflog" };
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
const root = yield* defaultBranch(cwd);
|
|
242
|
+
if (!root || current !== root.name)
|
|
243
|
+
return yield* new DiffError({ message: "Choose a review base" });
|
|
244
|
+
const candidate = yield* namedRef(cwd, root.ref);
|
|
245
|
+
if (!candidate)
|
|
246
|
+
return yield* new DiffError({ message: "The default review base is unavailable" });
|
|
247
|
+
return { name: root.name, ref: candidate.ref, source: "default" };
|
|
248
|
+
});
|
|
194
249
|
const hasHead = Effect.fn("VcsGit.hasHead")(function* (cwd) {
|
|
195
250
|
const result = yield* run(["rev-parse", "--verify", "HEAD"], { cwd });
|
|
196
251
|
return result.exitCode === 0;
|
|
197
252
|
});
|
|
198
|
-
const mergeBase = Effect.fn("VcsGit.mergeBase")(function* (cwd,
|
|
199
|
-
const
|
|
253
|
+
const mergeBase = Effect.fn("VcsGit.mergeBase")(function* (cwd, base2) {
|
|
254
|
+
const ref = yield* resolve(cwd, base2);
|
|
255
|
+
if (!ref)
|
|
256
|
+
return;
|
|
257
|
+
const result = yield* run(["merge-base", ref, "HEAD"], { cwd });
|
|
200
258
|
if (result.exitCode !== 0)
|
|
201
259
|
return;
|
|
202
260
|
return result.text().trim() || undefined;
|
|
@@ -210,8 +268,11 @@ function makeGit(proc) {
|
|
|
210
268
|
return [{ file, code, status: kind(code) }];
|
|
211
269
|
});
|
|
212
270
|
});
|
|
213
|
-
const diff = Effect.fn("VcsGit.diffNames")(function* (cwd, ref) {
|
|
214
|
-
const
|
|
271
|
+
const diff = Effect.fn("VcsGit.diffNames")(function* (cwd, ref, target) {
|
|
272
|
+
const result = yield* run(["diff", "--no-ext-diff", "--no-renames", "--name-status", "-z", ref, ...target ? [target] : [], "--", "."], { cwd });
|
|
273
|
+
if (result.exitCode !== 0)
|
|
274
|
+
return yield* new DiffError({ message: "Unable to list Git changes" });
|
|
275
|
+
const list = nuls(result.text());
|
|
215
276
|
return list.flatMap((code, idx) => {
|
|
216
277
|
if (idx % 2 !== 0)
|
|
217
278
|
return [];
|
|
@@ -221,8 +282,8 @@ function makeGit(proc) {
|
|
|
221
282
|
return [{ file, code, status: kind(code) }];
|
|
222
283
|
});
|
|
223
284
|
});
|
|
224
|
-
const stats = Effect.fn("VcsGit.stats")(function* (cwd, ref) {
|
|
225
|
-
return nuls(yield* text(["diff", "--no-ext-diff", "--no-renames", "--numstat", "-z", ref, "--", "."], { cwd })).flatMap((item) => {
|
|
285
|
+
const stats = Effect.fn("VcsGit.stats")(function* (cwd, ref, target) {
|
|
286
|
+
return nuls(yield* text(["diff", "--no-ext-diff", "--no-renames", "--numstat", "-z", ref, ...target ? [target] : [], "--", "."], { cwd })).flatMap((item) => {
|
|
226
287
|
const a = item.indexOf("\t");
|
|
227
288
|
const b = item.indexOf("\t", a + 1);
|
|
228
289
|
if (a === -1 || b === -1)
|
|
@@ -244,11 +305,31 @@ function makeGit(proc) {
|
|
|
244
305
|
});
|
|
245
306
|
});
|
|
246
307
|
const patch = Effect.fn("VcsGit.patch")(function* (cwd, ref, file, options) {
|
|
247
|
-
const result = yield* run([
|
|
308
|
+
const result = yield* run([
|
|
309
|
+
"diff",
|
|
310
|
+
"--patch",
|
|
311
|
+
"--no-ext-diff",
|
|
312
|
+
"--no-renames",
|
|
313
|
+
`--unified=${options?.context ?? 3}`,
|
|
314
|
+
ref,
|
|
315
|
+
...options?.target ? [options.target] : [],
|
|
316
|
+
"--",
|
|
317
|
+
file
|
|
318
|
+
], { cwd, maxOutputBytes: options?.maxOutputBytes });
|
|
248
319
|
return { text: result.truncated ? "" : result.text(), truncated: result.truncated };
|
|
249
320
|
});
|
|
250
321
|
const patchAll = Effect.fn("VcsGit.patchAll")(function* (cwd, ref, options) {
|
|
251
|
-
const result = yield* run([
|
|
322
|
+
const result = yield* run([
|
|
323
|
+
"diff",
|
|
324
|
+
"--patch",
|
|
325
|
+
"--no-ext-diff",
|
|
326
|
+
"--no-renames",
|
|
327
|
+
`--unified=${options?.context ?? 3}`,
|
|
328
|
+
ref,
|
|
329
|
+
...options?.target ? [options.target] : [],
|
|
330
|
+
"--",
|
|
331
|
+
"."
|
|
332
|
+
], { cwd, maxOutputBytes: options?.maxOutputBytes });
|
|
252
333
|
return { text: result.text(), truncated: result.truncated };
|
|
253
334
|
});
|
|
254
335
|
const patchUntracked = Effect.fn("VcsGit.patchUntracked")(function* (cwd, file, options) {
|
|
@@ -286,6 +367,7 @@ function makeGit(proc) {
|
|
|
286
367
|
return {
|
|
287
368
|
branch,
|
|
288
369
|
branches,
|
|
370
|
+
base,
|
|
289
371
|
defaultBranch,
|
|
290
372
|
hasHead,
|
|
291
373
|
mergeBase,
|
|
@@ -312,6 +394,7 @@ var batchPatches = Effect.fnUntraced(function* (ctx, ref, list, options) {
|
|
|
312
394
|
if (list.length === 0)
|
|
313
395
|
return emptyBatch();
|
|
314
396
|
const result = yield* ctx.git.patchAll(ctx.directory, ref, {
|
|
397
|
+
target: options?.target,
|
|
315
398
|
context: options?.context ?? PATCH_CONTEXT_LINES,
|
|
316
399
|
maxOutputBytes: MAX_TOTAL_PATCH_BYTES
|
|
317
400
|
});
|
|
@@ -325,6 +408,7 @@ var nativePatch = Effect.fnUntraced(function* (ctx, ref, item, options) {
|
|
|
325
408
|
context: options?.context ?? PATCH_CONTEXT_LINES,
|
|
326
409
|
maxOutputBytes: MAX_PATCH_BYTES
|
|
327
410
|
}) : yield* ctx.git.patch(ctx.worktree, ref, item.file, {
|
|
411
|
+
target: options?.target,
|
|
328
412
|
context: options?.context ?? PATCH_CONTEXT_LINES,
|
|
329
413
|
maxOutputBytes: MAX_PATCH_BYTES
|
|
330
414
|
});
|
|
@@ -352,7 +436,7 @@ var files = Effect.fnUntraced(function* (ctx, ref, list, map, batch, options) {
|
|
|
352
436
|
let total = 0;
|
|
353
437
|
let capped = false;
|
|
354
438
|
for (const item of list.toSorted((a, b) => a.file.localeCompare(b.file))) {
|
|
355
|
-
const stat = map.get(item.file) ?? (item.status === "added" ? yield* ctx.git.statUntracked(ctx.worktree, item.file) : undefined);
|
|
439
|
+
const stat = map.get(item.file) ?? (!options?.target && item.status === "added" ? yield* ctx.git.statUntracked(ctx.worktree, item.file) : undefined);
|
|
356
440
|
const patch = yield* patchForItem(ctx, ref, item, batch, capped, options);
|
|
357
441
|
const result = capped ? { patch, capped: true } : totalPatch(item.file, patch, total);
|
|
358
442
|
capped = capped || result.capped;
|
|
@@ -371,7 +455,11 @@ var files = Effect.fnUntraced(function* (ctx, ref, list, map, batch, options) {
|
|
|
371
455
|
return next;
|
|
372
456
|
});
|
|
373
457
|
var diffAgainstRef = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
374
|
-
const [list, stats, extra] = yield* Effect.all([
|
|
458
|
+
const [list, stats, extra] = yield* Effect.all([
|
|
459
|
+
ctx.git.diff(ctx.directory, ref, options?.target),
|
|
460
|
+
ctx.git.stats(ctx.directory, ref, options?.target),
|
|
461
|
+
options?.target ? Effect.succeed([]) : ctx.git.status(ctx.directory)
|
|
462
|
+
], { concurrency: 3 });
|
|
375
463
|
return yield* files(ctx, ref, merge(list, extra.filter((item) => item.code === "??")), nums(stats), yield* batchPatches(ctx, ref, list, options), options);
|
|
376
464
|
});
|
|
377
465
|
var track = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_supervisor
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-z8cvg98n.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_location_watcher_policy
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-6wkzvma0.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_watcher
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-ns0sdez7.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-xy3y21dp.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_git
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-dyj7wa6j.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_bus
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-vwkfg4n5.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./model-rvfvac9x.js";
|
|
22
22
|
|
|
23
23
|
// src/filesystem/location-watcher.ts
|
|
24
24
|
var exports_location_watcher = {};
|