@opencode-ai/core 0.0.0-beta-18414 → 0.0.0-beta-18600
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/{tool-d8s3r721.js → project-01z9805y.js} +6 -6
- package/dist/chunks/{tool-02dbfq60.js → project-02dbfq60.js} +1 -1
- package/dist/chunks/{tool-f11jbhcb.js → project-0687t5rp.js} +7 -7
- package/dist/chunks/{tool-7thnevmq.js → project-0gcqkg3x.js} +3 -4
- package/dist/chunks/{tool-0kvmztkf.js → project-0kvmztkf.js} +1 -1
- package/dist/chunks/{tool-157r81nd.js → project-0pepaw2y.js} +8 -8
- package/dist/chunks/{tool-rm0rdhcq.js → project-0r1p85sc.js} +7 -9
- package/dist/chunks/{tool-3jshngxf.js → project-0xzcm754.js} +9 -9
- package/dist/chunks/{tool-7gqqz1s8.js → project-10p29vm9.js} +2 -2
- package/dist/chunks/{tool-6f8j85qb.js → project-12r08axk.js} +10 -10
- package/dist/chunks/{tool-999qd968.js → project-15hpbjb6.js} +4 -4
- package/dist/chunks/{tool-18pv8fg3.js → project-18pv8fg3.js} +2 -2
- package/dist/chunks/{tool-s758z954.js → project-1cvksg4c.js} +2 -2
- package/dist/chunks/{tool-t4r89bwk.js → project-1mvr5yep.js} +3 -3
- package/dist/chunks/{tool-rp2ch0tc.js → project-1r30nvhb.js} +3 -3
- package/dist/chunks/{tool-5h6b115z.js → project-1v4q2qp6.js} +48 -8
- package/dist/chunks/{tool-t9sv4zem.js → project-1wpv42fk.js} +5 -5
- package/dist/chunks/{tool-cb5zxvq2.js → project-264e1nfp.js} +16 -27
- package/dist/chunks/{tool-88d62dqj.js → project-26cqkxws.js} +41 -43
- package/dist/chunks/{tool-ykb30cq4.js → project-27gfv7vw.js} +3 -3
- package/dist/chunks/{tool-bmknfyv0.js → project-2knkewgs.js} +5 -5
- package/dist/chunks/{tool-2m0hgr65.js → project-2m0hgr65.js} +1 -1
- package/dist/chunks/{tool-2nmyybe0.js → project-2nmyybe0.js} +1 -1
- package/dist/chunks/{tool-amkf47zv.js → project-2tnd1ag8.js} +6 -9
- package/dist/chunks/{tool-2wds5nk3.js → project-2wds5nk3.js} +1 -1
- package/dist/chunks/{tool-vycjsnjm.js → project-37ng30jt.js} +11 -6
- package/dist/chunks/{tool-393a352g.js → project-393a352g.js} +2 -2
- package/dist/chunks/{tool-3g8vftxb.js → project-3g8vftxb.js} +2 -2
- package/dist/chunks/{tool-d8ve01t0.js → project-3gybxysr.js} +39 -44
- package/dist/chunks/{tool-09s1bzmc.js → project-3ngtzkgg.js} +6 -9
- package/dist/chunks/{tool-3qv8nf0b.js → project-3qv8nf0b.js} +1 -1
- package/dist/chunks/{tool-3thh6229.js → project-3thh6229.js} +2 -2
- package/dist/chunks/{tool-na96fv1q.js → project-4f5az0e7.js} +3 -3
- package/dist/chunks/{tool-5t37zp3f.js → project-4rg3anhc.js} +17 -11
- package/dist/chunks/{tool-4s2xwh5d.js → project-4s2xwh5d.js} +3 -3
- package/dist/chunks/{tool-4zzdwbaz.js → project-4zzdwbaz.js} +2 -2
- package/dist/chunks/{tool-50jxp3hw.js → project-50jxp3hw.js} +1 -1
- package/dist/chunks/{tool-h01rtytj.js → project-52cmy8h2.js} +5 -5
- package/dist/chunks/{tool-5z4zwtb4.js → project-57ej80dx.js} +6 -5
- package/dist/chunks/{tool-57tzwnz4.js → project-57tzwnz4.js} +1 -1
- package/dist/chunks/{tool-58xdvehb.js → project-58xdvehb.js} +1 -1
- package/dist/chunks/{tool-5cdnkd94.js → project-5cdnkd94.js} +3 -3
- package/dist/chunks/{tool-5fe026tx.js → project-5fe026tx.js} +3 -3
- package/dist/chunks/{tool-0jn2bqed.js → project-5fkc1wrz.js} +3 -3
- package/dist/chunks/{tool-5rs65q6p.js → project-5rs65q6p.js} +1 -1
- package/dist/chunks/{tool-n93x7mqk.js → project-5sw6s279.js} +3 -3
- package/dist/chunks/{tool-cb19ghtj.js → project-5v57kk1r.js} +3 -3
- package/dist/chunks/{tool-5vcssjzn.js → project-5vcssjzn.js} +1 -1
- package/dist/chunks/{tool-ey81096p.js → project-60xr61qr.js} +7 -7
- package/dist/chunks/{tool-6272rtjg.js → project-6272rtjg.js} +1 -1
- package/dist/chunks/{tool-y0a17w9d.js → project-63n18kwk.js} +4 -4
- package/dist/chunks/{tool-m1wb9dgh.js → project-63s588jq.js} +31 -31
- package/dist/chunks/{tool-dcqm2659.js → project-6kmefejb.js} +31 -85
- package/dist/chunks/{tool-6ky7rqk7.js → project-6ky7rqk7.js} +1 -1
- package/dist/chunks/{tool-hjc64t6x.js → project-6tmgbn41.js} +51 -75
- package/dist/chunks/{tool-6wkzvma0.js → project-6wkzvma0.js} +2 -2
- package/dist/chunks/{tool-75h1hfe2.js → project-75h1hfe2.js} +2 -2
- package/dist/chunks/{tool-d6sk6h82.js → project-7d6d29dh.js} +59 -65
- package/dist/chunks/{tool-v72crqz7.js → project-7k160n64.js} +6 -6
- package/dist/chunks/{tool-7khw64yh.js → project-7khw64yh.js} +1 -1
- package/dist/chunks/{tool-7mrpdsq5.js → project-7mrpdsq5.js} +1 -1
- package/dist/chunks/{tool-7wcmqxrc.js → project-7wcmqxrc.js} +1 -1
- package/dist/chunks/{tool-q693p5za.js → project-7yga2xb3.js} +12 -12
- package/dist/chunks/{tool-rameyvmv.js → project-83ba1yz6.js} +5 -11
- package/dist/chunks/{tool-376q6v3y.js → project-86t2edmb.js} +10 -10
- package/dist/chunks/{tool-248dv4dv.js → project-88g69gay.js} +5 -5
- package/dist/chunks/{tool-8pngjawd.js → project-8pngjawd.js} +2 -2
- package/dist/chunks/{tool-75wg6agd.js → project-8ptyzv8c.js} +26 -24
- package/dist/chunks/{tool-axj9zjcw.js → project-8s775pjc.js} +6 -6
- package/dist/chunks/{tool-yaw62s0n.js → project-8t2ap2vm.js} +4 -4
- package/dist/chunks/{tool-wcb745wb.js → project-8xpa4rfs.js} +6 -6
- package/dist/chunks/{tool-ndg5dzdd.js → project-917g9tmj.js} +3 -3
- package/dist/chunks/{tool-9f0rnpkn.js → project-9f0rnpkn.js} +1 -1
- package/dist/chunks/{tool-3p1bsa7m.js → project-9maxscqf.js} +7 -0
- package/dist/chunks/{tool-x33kb18g.js → project-9nk9mkqn.js} +3 -3
- package/dist/chunks/{tool-3s135gjm.js → project-9twaxxs3.js} +5 -5
- package/dist/chunks/{tool-pcyacrd3.js → project-9wbq8qv2.js} +8 -8
- package/dist/chunks/{tool-emrme47h.js → project-a0s5dkct.js} +8 -8
- package/dist/chunks/{tool-4qk63h15.js → project-a7tr07hx.js} +3 -3
- package/dist/chunks/project-anez00x1.js +234 -0
- package/dist/chunks/{tool-83kkwqqt.js → project-apgan3pt.js} +5 -5
- package/dist/chunks/{tool-awg5d31a.js → project-awg5d31a.js} +1 -1
- package/dist/chunks/{tool-se8395as.js → project-ayrkq19e.js} +8 -8
- package/dist/chunks/{tool-bbhffenw.js → project-bbhffenw.js} +3 -3
- package/dist/chunks/{tool-bh1wr8rq.js → project-bh1wr8rq.js} +2 -2
- package/dist/chunks/{tool-7vqcvmjm.js → project-bq1qdn80.js} +8 -8
- package/dist/chunks/{tool-negttf37.js → project-bqjtetqx.js} +90 -90
- package/dist/chunks/project-brrb2k9c.js +126 -0
- package/dist/chunks/{tool-vvdjq78e.js → project-bwpyv797.js} +5 -6
- package/dist/chunks/{tool-byab506k.js → project-byab506k.js} +1 -1
- package/dist/chunks/{tool-s2dmwbat.js → project-c2dy8s0z.js} +9 -9
- package/dist/chunks/{tool-c4wcb9vc.js → project-c4wcb9vc.js} +2 -2
- package/dist/chunks/{tool-cp982web.js → project-c6yz00sq.js} +7 -7
- package/dist/chunks/{tool-88jbfw8z.js → project-c8ya26sa.js} +4 -4
- package/dist/chunks/{tool-g64wqzyd.js → project-cbdh5emr.js} +3 -3
- package/dist/chunks/{tool-gfdah46y.js → project-cg0y8hn9.js} +21 -22
- package/dist/chunks/{tool-ef9y63ry.js → project-ch59ehxr.js} +3 -3
- package/dist/chunks/{tool-9ksd5av3.js → project-cz0kv403.js} +6 -6
- package/dist/chunks/{tool-scfq11we.js → project-d0ahwm86.js} +24 -24
- package/dist/chunks/{tool-d2gk9vpf.js → project-d2gk9vpf.js} +2 -2
- package/dist/chunks/{tool-5aac0tby.js → project-d37zqxgn.js} +11 -11
- package/dist/chunks/{tool-nesb2rcz.js → project-d4h7vwhh.js} +2 -2
- package/dist/chunks/{tool-7bxmgbqt.js → project-d9wdmbm9.js} +10 -7
- package/dist/chunks/{tool-h4a7m801.js → project-dgmzb1tr.js} +21 -24
- package/dist/chunks/{tool-dhphtf1x.js → project-dhphtf1x.js} +1 -1
- package/dist/chunks/{tool-h5xzwr1g.js → project-djskppfh.js} +4 -4
- package/dist/chunks/{tool-76jwqfe9.js → project-dmd300cs.js} +6 -6
- package/dist/chunks/{tool-qfcm9j97.js → project-dsrkn9fq.js} +8 -12
- package/dist/chunks/{tool-e1z9a0ts.js → project-e1z9a0ts.js} +2 -2
- package/dist/chunks/{tool-ec8vrfw5.js → project-ec8vrfw5.js} +1 -1
- package/dist/chunks/{tool-eeta29b7.js → project-eeta29b7.js} +4 -4
- package/dist/chunks/{tool-t11m5yr4.js → project-eg3rv469.js} +4 -4
- package/dist/chunks/{tool-enpg66yn.js → project-enpg66yn.js} +1 -1
- package/dist/chunks/project-ep35cpen.js +32 -0
- package/dist/chunks/{tool-217z330v.js → project-ex7kk1kw.js} +2 -2
- package/dist/chunks/{tool-3bben81c.js → project-eygmcrvz.js} +12 -9
- package/dist/chunks/{tool-3331j5hn.js → project-eyszsgm3.js} +21 -25
- package/dist/chunks/{tool-drean1vx.js → project-f1jj19e8.js} +1 -1
- package/dist/chunks/{tool-8ebp560e.js → project-f1zz3pak.js} +4 -4
- package/dist/chunks/{tool-8qrvdwwg.js → project-f7q7a28y.js} +6 -6
- package/dist/chunks/{tool-f9wt0tjw.js → project-f9wt0tjw.js} +2 -2
- package/dist/chunks/{tool-fb7nfzf2.js → project-fb7nfzf2.js} +3 -3
- package/dist/chunks/{tool-fgyjabww.js → project-fgyjabww.js} +2 -2
- package/dist/chunks/{tool-k7pbmry0.js → project-fhg07p44.js} +13 -14
- package/dist/chunks/{tool-dp4z5d5v.js → project-fj3jkv63.js} +4 -4
- package/dist/chunks/{tool-ybhfpy64.js → project-fm3b2wbt.js} +4 -6
- package/dist/chunks/{tool-a66h3var.js → project-fw21zw5n.js} +9 -9
- package/dist/chunks/{tool-b273vq4v.js → project-fw3c683y.js} +3 -11
- package/dist/chunks/{tool-e7m167yz.js → project-g2nsgnf7.js} +17 -9
- package/dist/chunks/{tool-mh28new4.js → project-gb1z7yet.js} +2 -2
- package/dist/chunks/{tool-gcay93cp.js → project-gcay93cp.js} +1 -1
- package/dist/chunks/{tool-merfm3fd.js → project-gcc0jgqv.js} +5 -5
- package/dist/chunks/{tool-gd2xppx8.js → project-gd2xppx8.js} +1 -1
- package/dist/chunks/{tool-pts35d3y.js → project-gm95ds07.js} +11 -12
- package/dist/chunks/{tool-h2mftgr1.js → project-gtcq6en2.js} +16 -11
- package/dist/chunks/{tool-5drxeftm.js → project-gx0zmkq0.js} +149 -149
- package/dist/chunks/{tool-8dndtydw.js → project-gy9zm4ck.js} +4 -4
- package/dist/chunks/{tool-h12kt9pa.js → project-h12kt9pa.js} +2 -2
- package/dist/chunks/{tool-5y7h4bj8.js → project-h2h934sz.js} +6 -6
- package/dist/chunks/{tool-h94zdhz8.js → project-h94zdhz8.js} +2 -2
- package/dist/chunks/{tool-re1rhra9.js → project-hesdqwj7.js} +6 -6
- package/dist/chunks/{tool-hp6rpdnc.js → project-hp6rpdnc.js} +1 -1
- package/dist/chunks/{tool-njstbtdj.js → project-hs6h3an3.js} +61 -61
- package/dist/chunks/project-hxw68eqm.js +187 -0
- package/dist/chunks/{tool-gpybhmhb.js → project-j0sncrp4.js} +4 -4
- package/dist/chunks/project-j32vdj8r.js +16 -0
- package/dist/chunks/{tool-yncnzy6p.js → project-j5sjtdxs.js} +3 -3
- package/dist/chunks/{tool-pqe0bsb2.js → project-jcsmb80n.js} +3 -3
- package/dist/chunks/{tool-n0eq3s1b.js → project-jj3fzgje.js} +5 -5
- package/dist/chunks/project-k2bjf35z.js +304 -0
- package/dist/chunks/{tool-jy183kys.js → project-k3my2f3q.js} +5 -5
- package/dist/chunks/{tool-kg1345f7.js → project-kg1345f7.js} +1 -1
- package/dist/chunks/{tool-kp1t5rcy.js → project-kp1t5rcy.js} +1 -1
- package/dist/chunks/{tool-krsqcmnj.js → project-krsqcmnj.js} +1 -1
- package/dist/chunks/{tool-kt491qp2.js → project-kt491qp2.js} +3 -3
- package/dist/chunks/{tool-m55whf0h.js → project-m55whf0h.js} +2 -2
- package/dist/chunks/{tool-2zb0j1mr.js → project-ma4zf1fd.js} +1 -1
- package/dist/chunks/{tool-017jr2na.js → project-mankezgy.js} +55 -7
- package/dist/chunks/{tool-23mx900r.js → project-mcmqzvt7.js} +5 -5
- package/dist/chunks/{tool-pkezspgh.js → project-mczqbtr0.js} +9 -9
- package/dist/chunks/{tool-mf0hyk7z.js → project-mf0hyk7z.js} +1 -1
- package/dist/chunks/{tool-mnb85w6b.js → project-mnb85w6b.js} +2 -2
- package/dist/chunks/{tool-pqjwk9ze.js → project-mx048vt2.js} +3 -3
- package/dist/chunks/{tool-whk0g8cz.js → project-mxjff6xk.js} +10 -5
- package/dist/chunks/{tool-mxvw03gv.js → project-mxvw03gv.js} +1 -1
- package/dist/chunks/{tool-yde8fdw7.js → project-n08k8xnm.js} +11 -11
- package/dist/chunks/{tool-xt0068v8.js → project-n6ag8q95.js} +19 -23
- package/dist/chunks/{tool-ay9jepqf.js → project-n79xa5zf.js} +17 -17
- package/dist/chunks/{tool-p379w5v5.js → project-n80x9yrx.js} +10 -10
- package/dist/chunks/{tool-nr76rjj3.js → project-nr76rjj3.js} +2 -2
- package/dist/chunks/{tool-y980s7ka.js → project-ns0sdez7.js} +5 -5
- package/dist/chunks/{tool-2ppgn6ch.js → project-ntzp27rn.js} +4 -4
- package/dist/chunks/{tool-nzrjycs5.js → project-nzrjycs5.js} +1 -1
- package/dist/chunks/{tool-sxpjdhga.js → project-p2h03eta.js} +4 -4
- package/dist/chunks/{tool-bb6xq25h.js → project-p2k7bd69.js} +62 -65
- package/dist/chunks/project-pba5amb4.js +33 -0
- package/dist/chunks/{tool-2y40pff2.js → project-pm12wdxj.js} +6 -6
- package/dist/chunks/{tool-gf27j7mb.js → project-pm64n062.js} +6 -14
- package/dist/chunks/{tool-pq4b4pqk.js → project-pq4b4pqk.js} +2 -2
- package/dist/chunks/{tool-mtf7yncj.js → project-pxfsdh0y.js} +6 -6
- package/dist/chunks/{tool-02xgq42f.js → project-q52549y3.js} +2 -2
- package/dist/chunks/{tool-ygy0xbqa.js → project-q606pcse.js} +3 -3
- package/dist/chunks/{tool-qe0d689s.js → project-qe0d689s.js} +2 -2
- package/dist/chunks/{tool-nr9n2d4p.js → project-qfwv4tag.js} +11 -11
- package/dist/chunks/{tool-r958g7pm.js → project-qhe68xsc.js} +4 -4
- package/dist/chunks/{tool-e4n4v60w.js → project-qmbgqwhj.js} +3 -3
- package/dist/chunks/{tool-5cmc2wkg.js → project-qw097fy7.js} +11 -11
- package/dist/chunks/{tool-4ya343sq.js → project-qxpt6zan.js} +31 -35
- package/dist/chunks/{tool-1tbh5vd4.js → project-qxsjpy8c.js} +6 -6
- package/dist/chunks/{tool-cpbmr86j.js → project-qzrmckdd.js} +6 -6
- package/dist/chunks/{tool-c06ff3ts.js → project-r0z48jr6.js} +12 -13
- package/dist/chunks/{tool-r13w8t0w.js → project-r13w8t0w.js} +2 -2
- package/dist/chunks/{tool-r3k9abhd.js → project-r3k9abhd.js} +2 -2
- package/dist/chunks/{tool-d7kshenq.js → project-r5gg458q.js} +47 -42
- package/dist/chunks/{tool-eek2pnnt.js → project-r67bz3x8.js} +13 -13
- package/dist/chunks/{tool-rfbm65k8.js → project-r9d3d23r.js} +5 -33
- package/dist/chunks/{tool-6qnkp1xh.js → project-r9pv5d9a.js} +13 -13
- package/dist/chunks/{tool-rahat93a.js → project-rahat93a.js} +1 -1
- package/dist/chunks/{tool-rbnp2c85.js → project-rbnp2c85.js} +3 -3
- package/dist/chunks/{tool-c7b2cm7c.js → project-rgh2fcxw.js} +5 -5
- package/dist/chunks/{tool-6mybbghn.js → project-rjnxxp68.js} +11 -11
- package/dist/chunks/project-s2kjqxd3.js +21 -0
- package/dist/chunks/{tool-s33fw6zm.js → project-s33fw6zm.js} +1 -1
- package/dist/chunks/{tool-rmm5c85b.js → project-s9zs8v6y.js} +13 -14
- package/dist/chunks/{tool-e39r3b28.js → project-sag4arrb.js} +3 -3
- package/dist/chunks/{tool-hd8q5g8p.js → project-sdcydb11.js} +10 -7
- package/dist/chunks/{tool-7yfz5d5r.js → project-sg39537v.js} +17 -9
- package/dist/chunks/{tool-ffe33p6j.js → project-sgh68dve.js} +17 -19
- package/dist/chunks/{tool-c3ehh06a.js → project-sjgf8zbe.js} +5 -5
- package/dist/chunks/{tool-smpeg8c9.js → project-smpeg8c9.js} +2 -2
- package/dist/chunks/{tool-9cn9z662.js → project-sn6nad9v.js} +29 -29
- package/dist/chunks/{tool-b12y280m.js → project-ssk1zpcb.js} +8 -8
- package/dist/chunks/{tool-sw84ckhj.js → project-sw84ckhj.js} +1 -1
- package/dist/chunks/{tool-pr2pekfr.js → project-szqzwjp8.js} +13 -13
- package/dist/chunks/{tool-t0msbthe.js → project-t0msbthe.js} +3 -3
- package/dist/chunks/{tool-t14kykx1.js → project-t14kykx1.js} +1 -1
- package/dist/chunks/{tool-chc00mz7.js → project-t16napr0.js} +6 -6
- package/dist/chunks/{tool-tcptxgyq.js → project-tcptxgyq.js} +1 -1
- package/dist/chunks/{tool-tgbb2ckq.js → project-tgbb2ckq.js} +2 -2
- package/dist/chunks/{tool-thstd87d.js → project-thstd87d.js} +1 -1
- package/dist/chunks/{tool-kgkfyy1j.js → project-tjrfm0xh.js} +5 -8
- package/dist/chunks/{tool-ngpnqj2n.js → project-tjzkemh8.js} +6 -9
- package/dist/chunks/{tool-w52cyf08.js → project-tpx671s8.js} +2 -2
- package/dist/chunks/{tool-txw0c3p3.js → project-tqf07m3e.js} +6 -4
- package/dist/chunks/project-ttxf0gsy.js +0 -0
- package/dist/chunks/{tool-v2wshkax.js → project-v2wshkax.js} +1 -1
- package/dist/chunks/{tool-v80zsxnb.js → project-v80zsxnb.js} +1 -1
- package/dist/chunks/{tool-v972xay6.js → project-v972xay6.js} +1 -1
- package/dist/chunks/{tool-v9bfv94f.js → project-v9bfv94f.js} +1 -1
- package/dist/chunks/{tool-kcacmy5c.js → project-vac9eqd2.js} +1 -5
- package/dist/chunks/{tool-vcwr2vpf.js → project-vcwr2vpf.js} +1 -1
- package/dist/chunks/{tool-53vhya9m.js → project-vjmn5wwb.js} +5 -5
- package/dist/chunks/{tool-y4v09x0q.js → project-vphhr7s2.js} +4 -4
- package/dist/chunks/{tool-vqbmgfq1.js → project-vqbmgfq1.js} +3 -3
- package/dist/chunks/{tool-kprre75d.js → project-vqt151v9.js} +3 -3
- package/dist/chunks/{tool-25n2gasw.js → project-vxb9gyym.js} +12 -12
- package/dist/chunks/{tool-vz89hfgr.js → project-vz89hfgr.js} +1 -1
- package/dist/chunks/{tool-y109krwg.js → project-w14414t3.js} +8 -16
- package/dist/chunks/{tool-c03pdk3m.js → project-w7b874ta.js} +3 -3
- package/dist/chunks/{tool-wbkt8qpj.js → project-wbkt8qpj.js} +1 -1
- package/dist/chunks/{tool-wmxdh12w.js → project-wmxdh12w.js} +1 -1
- package/dist/chunks/{tool-wps8gh8n.js → project-wps8gh8n.js} +2 -2
- package/dist/chunks/{tool-x89rah0x.js → project-x89rah0x.js} +1 -1
- package/dist/chunks/{tool-xczfw7dq.js → project-xczfw7dq.js} +1 -1
- package/dist/chunks/{tool-dfjw0vq8.js → project-xdgykwbe.js} +12 -13
- package/dist/chunks/{tool-xgv25zxy.js → project-xgv25zxy.js} +1 -1
- package/dist/chunks/{tool-p8fr6x1v.js → project-xj0xhwdw.js} +2 -2
- package/dist/chunks/{tool-t66bwez3.js → project-xtjxhef7.js} +2 -2
- package/dist/chunks/{tool-xwftk1fd.js → project-xwftk1fd.js} +2 -2
- package/dist/chunks/{tool-xxpvz42q.js → project-xxpvz42q.js} +3 -3
- package/dist/chunks/{tool-y0x38cee.js → project-y0x38cee.js} +1 -1
- package/dist/chunks/{tool-y198y2ra.js → project-y198y2ra.js} +1 -1
- package/dist/chunks/{tool-271gqszs.js → project-y5attvn7.js} +9 -14
- package/dist/chunks/{tool-y67x6rf6.js → project-y67x6rf6.js} +1 -1
- package/dist/chunks/{tool-cstpqjcj.js → project-y68gmye4.js} +25 -26
- package/dist/chunks/{tool-q70gvhbx.js → project-y85nmh9b.js} +9 -9
- package/dist/chunks/{tool-yf0knd5z.js → project-yf0knd5z.js} +2 -2
- package/dist/chunks/{tool-z8gh2y42.js → project-yq1fxjb2.js} +4 -4
- package/dist/chunks/{tool-400rk52g.js → project-z1at3hn2.js} +5 -5
- package/dist/chunks/{tool-zbqqnp0n.js → project-zbqqnp0n.js} +1 -1
- package/dist/chunks/{tool-zdkg1k91.js → project-zdkg1k91.js} +1 -1
- package/dist/chunks/{tool-jcxfg7j9.js → project-zn8r3q6e.js} +10 -9
- package/dist/chunks/{tool-q9b4qnv8.js → project-zs1qer6v.js} +7 -11
- package/dist/chunks/{tool-zxcy6vhn.js → project-zxcy6vhn.js} +1 -1
- package/dist/chunks/{tool-zxe9jjhn.js → project-zxe9jjhn.js} +2 -2
- package/dist/chunks/{tool-5tp8bhe0.js → project-zy5j9fqq.js} +8 -6
- package/dist/chunks/{tool-hszm49c7.js → project-zy7gs9ta.js} +10 -10
- 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/file.js +128 -0
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +132 -136
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +146 -150
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +131 -130
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +128 -128
- 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 -109
- package/dist/config/plugin/skill.js +135 -139
- 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 -115
- 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 +2 -2
- package/dist/database/v1-migration.bun.js +75 -91
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +333 -328
- 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 +309 -304
- 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 +99 -98
- 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 +99 -98
- package/dist/image.js +99 -98
- package/dist/instance.js +341 -0
- 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 +72 -72
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +85 -85
- package/dist/location-mutation.js +87 -85
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +334 -331
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +96 -107
- package/dist/mcp/index.js +99 -99
- package/dist/mcp/instructions.js +127 -129
- package/dist/mcp/oauth.js +5 -13
- package/dist/mcp/stdio.js +93 -93
- 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 +100 -106
- package/dist/persistent-pty/binary.bun.js +6 -6
- 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 -73
- package/dist/plugin/agent.js +101 -107
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +174 -171
- package/dist/plugin/instance.js +13 -0
- package/dist/plugin/internal.js +302 -298
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +101 -107
- 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 -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 +122 -120
- package/dist/plugin/provider/dynamic.js +3 -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 +120 -114
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +120 -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 +4 -3
- package/dist/plugin/provider/sdk-factory.js +7 -0
- 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 -114
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +159 -157
- package/dist/plugin/runtime.js +162 -159
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +133 -137
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +308 -303
- 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 +175 -172
- 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 +3 -3
- 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 +118 -122
- package/dist/session/context.js +318 -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 +167 -166
- package/dist/session/execution.js +122 -126
- package/dist/session/generate-node.js +319 -314
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +77 -94
- package/dist/session/inbox.js +77 -91
- package/dist/session/info.js +4 -92
- package/dist/session/instruction-entry.js +73 -90
- package/dist/session/instruction-state.js +10 -91
- package/dist/session/instructions.js +94 -102
- 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 -101
- package/dist/session/revert.js +90 -94
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +324 -320
- 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 +72 -72
- package/dist/session/runner/step.js +151 -149
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +6 -87
- package/dist/session/stats.js +78 -94
- package/dist/session/store.js +79 -101
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +319 -314
- package/dist/session/to-session-error.js +113 -117
- package/dist/session/transfer.js +164 -162
- package/dist/session/usage.js +2 -2
- package/dist/session.js +157 -157
- package/dist/shell/parse.js +7 -6
- 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 +102 -108
- package/dist/skill.js +101 -107
- 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 -128
- package/dist/tool/plugin/edit.js +113 -116
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +116 -118
- package/dist/tool/plugin/grep.js +116 -118
- package/dist/tool/plugin/patch.js +113 -116
- package/dist/tool/plugin/question.js +102 -108
- package/dist/tool/plugin/read.js +119 -121
- package/dist/tool/plugin/shell.js +190 -187
- package/dist/tool/plugin/skill.js +102 -108
- package/dist/tool/plugin/subagent.js +187 -184
- package/dist/tool/plugin/webfetch.js +103 -109
- package/dist/tool/plugin/websearch.js +105 -111
- package/dist/tool/plugin/write.js +113 -116
- package/dist/tool/read-filesystem.js +101 -98
- package/dist/tool/runtime.js +7 -3
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +119 -121
- package/dist/types/config/file.d.ts +17 -0
- package/dist/types/config/plugin/mcp.d.ts +4 -4
- package/dist/types/config.d.ts +1 -9
- package/dist/types/filesystem/search.d.ts +1 -1
- package/dist/types/github-copilot/responses/openai-error.d.ts +1 -1
- package/dist/types/instance.d.ts +58 -0
- package/dist/types/instruction-discovery.d.ts +2 -0
- package/dist/types/location-mutation.d.ts +9 -5
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/location-services.d.ts +3 -48
- package/dist/types/location.d.ts +3 -1
- package/dist/types/mcp/client.d.ts +20 -20
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/mcp/instructions.d.ts +2 -2
- package/dist/types/mcp/oauth.d.ts +1 -1
- package/dist/types/mcp/stdio.d.ts +1 -1
- package/dist/types/model.d.ts +14 -2
- package/dist/types/persistent-pty/daemon.d.ts +108 -0
- package/dist/types/persistent-pty/index.d.ts +2 -1
- package/dist/types/plugin/command.d.ts +2 -2
- package/dist/types/plugin/host.d.ts +10 -6
- package/dist/types/plugin/instance.d.ts +27 -0
- package/dist/types/plugin/internal.d.ts +4 -4
- package/dist/types/plugin/mcp-codemode-exclusion.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +3 -1
- package/dist/types/plugin/provider/configured.d.ts +5 -0
- package/dist/types/plugin/provider/sdk-factory.d.ts +3 -0
- package/dist/types/plugin/runtime.d.ts +7 -5
- package/dist/types/plugin/supervisor.d.ts +2 -1
- package/dist/types/project/markers.d.ts +3 -1
- package/dist/types/project.d.ts +3 -1
- package/dist/types/pty/pty.node.d.ts +2 -1
- package/dist/types/schema.d.ts +1 -1
- package/dist/types/session/info.d.ts +1 -1
- package/dist/types/session/message-updater.d.ts +11 -11
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -183
- package/dist/types/session/runner/step.d.ts +124 -1
- package/dist/types/session/schema.d.ts +1 -0
- package/dist/types/session/sql.d.ts +3 -1
- package/dist/types/session/transfer.d.ts +1 -0
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/session.d.ts +3 -2
- package/dist/types/tool/mcp.d.ts +2 -2
- package/dist/types/tool/plugin/edit.d.ts +2 -2
- package/dist/types/tool/plugin/glob.d.ts +2 -2
- package/dist/types/tool/plugin/grep.d.ts +2 -2
- package/dist/types/tool/plugin/patch.d.ts +2 -2
- package/dist/types/tool/plugin/question.d.ts +2 -2
- package/dist/types/tool/plugin/read.d.ts +2 -2
- package/dist/types/tool/plugin/shell.d.ts +2 -2
- package/dist/types/tool/plugin/skill.d.ts +2 -2
- package/dist/types/tool/plugin/subagent.d.ts +2 -2
- package/dist/types/tool/plugin/webfetch.d.ts +2 -2
- package/dist/types/tool/plugin/websearch.d.ts +2 -2
- package/dist/types/tool/plugin/write.d.ts +2 -2
- package/dist/types/tool/read-filesystem.d.ts +1 -0
- package/dist/types/tool/runtime.d.ts +2 -0
- package/dist/types/v1/config/migrate.d.ts +2 -2
- package/dist/types/workspace/driver.d.ts +2 -2
- package/dist/types/workspace.d.ts +2 -2
- 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 +43 -7
- 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 +11 -11
- package/dist/chunks/tool-3q6gbwmd.js +0 -26
- package/dist/chunks/tool-8tv6syt7.js +0 -46
- package/dist/chunks/tool-c35fsjgg.js +0 -119
- package/dist/chunks/tool-nt13qee2.js +0 -231
- package/dist/chunks/tool-s8xxtbar.js +0 -300
- package/dist/chunks/tool-wd268jeg.js +0 -83
- package/dist/session/prompt-cache-diagnostics.js +0 -11
- package/dist/types/session/prompt-cache-diagnostics.d.ts +0 -29
- /package/dist/chunks/{tool-0cgt0xh2.js → project-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{tool-0f48qthw.js → project-0f48qthw.js} +0 -0
- /package/dist/chunks/{tool-0zz82cjq.js → project-0zz82cjq.js} +0 -0
- /package/dist/chunks/{tool-1fb7bmpf.js → project-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{tool-1wcz8fvj.js → project-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{tool-29n7vfk2.js → project-29n7vfk2.js} +0 -0
- /package/dist/chunks/{tool-2qdx6zz3.js → project-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{tool-2xb0r1c6.js → project-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{tool-39ktntah.js → project-39ktntah.js} +0 -0
- /package/dist/chunks/{tool-3g3rpp2x.js → project-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{tool-3w3ybtfd.js → project-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{tool-47ty4mvs.js → project-47ty4mvs.js} +0 -0
- /package/dist/chunks/{tool-4b2tz2m9.js → project-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{tool-5a5ch9ts.js → project-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{tool-5va1yh78.js → project-5va1yh78.js} +0 -0
- /package/dist/chunks/{tool-61ek4hj9.js → project-61ek4hj9.js} +0 -0
- /package/dist/chunks/{tool-69qrqpw0.js → project-69qrqpw0.js} +0 -0
- /package/dist/chunks/{tool-6zqxzw0a.js → project-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{tool-7n9qwqk4.js → project-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{tool-8nn8kqcn.js → project-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{tool-8rpfd2h6.js → project-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{tool-8sj3ajy5.js → project-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{tool-8w9tzfz1.js → project-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{tool-906y0b6d.js → project-906y0b6d.js} +0 -0
- /package/dist/chunks/{tool-9dct5xhx.js → project-9dct5xhx.js} +0 -0
- /package/dist/chunks/{tool-9sdtsapf.js → project-9sdtsapf.js} +0 -0
- /package/dist/chunks/{tool-a02svayp.js → project-a02svayp.js} +0 -0
- /package/dist/chunks/{tool-a83yvq99.js → project-a83yvq99.js} +0 -0
- /package/dist/chunks/{tool-a9vdgkgd.js → project-a9vdgkgd.js} +0 -0
- /package/dist/chunks/{tool-ayevdmef.js → project-ayevdmef.js} +0 -0
- /package/dist/chunks/{tool-b02txbh8.js → project-b02txbh8.js} +0 -0
- /package/dist/chunks/{tool-bbqs2y60.js → project-bbqs2y60.js} +0 -0
- /package/dist/chunks/{tool-bjwj8hwv.js → project-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{tool-brsh5f65.js → project-brsh5f65.js} +0 -0
- /package/dist/chunks/{tool-bxdhjb3y.js → project-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{tool-c77ad0vh.js → project-c77ad0vh.js} +0 -0
- /package/dist/chunks/{tool-cm67rqy2.js → project-cm67rqy2.js} +0 -0
- /package/dist/chunks/{tool-df3v2q6j.js → project-df3v2q6j.js} +0 -0
- /package/dist/chunks/{tool-dhcq6c44.js → project-dhcq6c44.js} +0 -0
- /package/dist/chunks/{tool-dht5baf0.js → project-dht5baf0.js} +0 -0
- /package/dist/chunks/{tool-dkmkay92.js → project-dkmkay92.js} +0 -0
- /package/dist/chunks/{tool-ehj9csmv.js → project-ehj9csmv.js} +0 -0
- /package/dist/chunks/{tool-em6xpscd.js → project-em6xpscd.js} +0 -0
- /package/dist/chunks/{tool-emmqknsm.js → project-emmqknsm.js} +0 -0
- /package/dist/chunks/{tool-ezs3tagn.js → project-ezs3tagn.js} +0 -0
- /package/dist/chunks/{tool-f14r7hfz.js → project-f14r7hfz.js} +0 -0
- /package/dist/chunks/{tool-f4cp4g4a.js → project-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{tool-faypg4r1.js → project-faypg4r1.js} +0 -0
- /package/dist/chunks/{tool-ttxf0gsy.js → project-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{tool-fgbfdq62.js → project-fgbfdq62.js} +0 -0
- /package/dist/chunks/{tool-gd5xeqc2.js → project-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{tool-ghm4673n.js → project-ghm4673n.js} +0 -0
- /package/dist/chunks/{tool-ghwjy7my.js → project-ghwjy7my.js} +0 -0
- /package/dist/chunks/{tool-gy500k2r.js → project-gy500k2r.js} +0 -0
- /package/dist/chunks/{tool-hzeg9cfr.js → project-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{tool-j07kk359.js → project-j07kk359.js} +0 -0
- /package/dist/chunks/{tool-jqms80b0.js → project-jqms80b0.js} +0 -0
- /package/dist/chunks/{tool-jve7t217.js → project-jve7t217.js} +0 -0
- /package/dist/chunks/{tool-k3e42drn.js → project-k3e42drn.js} +0 -0
- /package/dist/chunks/{tool-k8b45nas.js → project-k8b45nas.js} +0 -0
- /package/dist/chunks/{tool-kpdbz7gn.js → project-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{tool-kxy11nzk.js → project-kxy11nzk.js} +0 -0
- /package/dist/chunks/{tool-kyyqvx4s.js → project-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{tool-m8cbvarh.js → project-m8cbvarh.js} +0 -0
- /package/dist/chunks/{tool-ma60vzgv.js → project-ma60vzgv.js} +0 -0
- /package/dist/chunks/{tool-n3m50c2t.js → project-n3m50c2t.js} +0 -0
- /package/dist/chunks/{tool-nkm1m8dz.js → project-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{tool-nsc0c3zb.js → project-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{tool-qaarhjrp.js → project-qaarhjrp.js} +0 -0
- /package/dist/chunks/{tool-qc167nrn.js → project-qc167nrn.js} +0 -0
- /package/dist/chunks/{tool-qp95y4jb.js → project-qp95y4jb.js} +0 -0
- /package/dist/chunks/{tool-r8f4w671.js → project-r8f4w671.js} +0 -0
- /package/dist/chunks/{tool-rdfev9jy.js → project-rdfev9jy.js} +0 -0
- /package/dist/chunks/{tool-rvfvac9x.js → project-rvfvac9x.js} +0 -0
- /package/dist/chunks/{tool-s7whb9gt.js → project-s7whb9gt.js} +0 -0
- /package/dist/chunks/{tool-se76j685.js → project-se76j685.js} +0 -0
- /package/dist/chunks/{tool-sem2g21k.js → project-sem2g21k.js} +0 -0
- /package/dist/chunks/{tool-sp575ygv.js → project-sp575ygv.js} +0 -0
- /package/dist/chunks/{tool-tmb1f636.js → project-tmb1f636.js} +0 -0
- /package/dist/chunks/{tool-tvmhrvfj.js → project-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{tool-v2adqbbe.js → project-v2adqbbe.js} +0 -0
- /package/dist/chunks/{tool-wj4sxzqa.js → project-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{tool-wwntjmk1.js → project-wwntjmk1.js} +0 -0
- /package/dist/chunks/{tool-wyqjaaa5.js → project-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{tool-x4q807cx.js → project-x4q807cx.js} +0 -0
- /package/dist/chunks/{tool-yrqrg4vp.js → project-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{tool-z47nswr2.js → project-z47nswr2.js} +0 -0
- /package/dist/chunks/{tool-zsf8rs93.js → project-zsf8rs93.js} +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_integration
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-pm64n062.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_form
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_credential
|
|
9
|
-
} from "./tool-r958g7pm.js";
|
|
6
|
+
} from "./project-fw3c683y.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_environment1 as exports_environment
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./project-0xzcm754.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_credential
|
|
12
|
+
} from "./project-qhe68xsc.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_state
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./project-x89rah0x.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./project-pm12wdxj.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./project-gy9zm4ck.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_keyed_mutex
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./project-0kvmztkf.js";
|
|
25
25
|
import {
|
|
26
26
|
__export,
|
|
27
27
|
__require
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./project-rvfvac9x.js";
|
|
29
29
|
|
|
30
30
|
// src/mcp/index.ts
|
|
31
31
|
var exports_mcp = {};
|
|
@@ -54,7 +54,7 @@ __export(exports_mcp, {
|
|
|
54
54
|
Prompt: () => Prompt,
|
|
55
55
|
Options: () => Options,
|
|
56
56
|
NotFoundError: () => NotFoundError,
|
|
57
|
-
|
|
57
|
+
Mcp: () => exports_mcp
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode-ai/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode-ai/schema/mcp-event";
|
|
@@ -196,8 +196,8 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
196
196
|
integrationID,
|
|
197
197
|
method: { id: methodID, type: "oauth", label: name },
|
|
198
198
|
authorize: () => Effect.gen(function* () {
|
|
199
|
-
const {
|
|
200
|
-
return yield*
|
|
199
|
+
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
200
|
+
return yield* McpOAuth.authorize({ name, config: remote, methodID });
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
203
|
}).pipe(Scope.provide(scope));
|
|
@@ -212,7 +212,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
212
212
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
213
213
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
214
214
|
return;
|
|
215
|
-
const {
|
|
215
|
+
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
216
216
|
const remote = entry.config;
|
|
217
217
|
const oauth = remote.oauth || undefined;
|
|
218
218
|
const base = {
|
|
@@ -223,17 +223,15 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
223
223
|
};
|
|
224
224
|
const found = (yield* credentials.list(entry.integrationID)).at(-1);
|
|
225
225
|
if (!found || found.value.type !== "oauth")
|
|
226
|
-
return
|
|
226
|
+
return McpOAuth.provider({ ...base, store: McpOAuth.memoryStore() });
|
|
227
227
|
const credentialID = found.id;
|
|
228
228
|
const methodID = found.value.methodID;
|
|
229
|
-
const integrationID = entry.integrationID;
|
|
230
229
|
let presented = found.value.refresh;
|
|
231
230
|
const readOAuthCredential = async () => {
|
|
232
|
-
const stored = await Effect.runPromise(credentials.
|
|
233
|
-
|
|
234
|
-
return match && match.value.type === "oauth" ? match.value : undefined;
|
|
231
|
+
const stored = await Effect.runPromise(credentials.get(credentialID));
|
|
232
|
+
return stored?.value.type === "oauth" ? stored.value : undefined;
|
|
235
233
|
};
|
|
236
|
-
return
|
|
234
|
+
return McpOAuth.provider({
|
|
237
235
|
...base,
|
|
238
236
|
invalidate: async (scope) => {
|
|
239
237
|
if (scope === "verifier" || scope === "discovery")
|
|
@@ -249,22 +247,22 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
249
247
|
if (!oauth2)
|
|
250
248
|
return;
|
|
251
249
|
presented = oauth2.refresh;
|
|
252
|
-
return
|
|
250
|
+
return McpOAuth.toTokens(oauth2);
|
|
253
251
|
},
|
|
254
252
|
saveTokens: async (tokens) => {
|
|
255
253
|
const previous = await readOAuthCredential();
|
|
256
|
-
const value =
|
|
254
|
+
const value = McpOAuth.toCredential({
|
|
257
255
|
methodID,
|
|
258
256
|
serverUrl: remote.url,
|
|
259
257
|
tokens,
|
|
260
|
-
client: previous ?
|
|
258
|
+
client: previous ? McpOAuth.clientFromCredential(previous) : undefined
|
|
261
259
|
});
|
|
262
260
|
presented = value.refresh;
|
|
263
261
|
await Effect.runPromise(credentials.update(credentialID, { value }));
|
|
264
262
|
},
|
|
265
263
|
clientInformation: async () => {
|
|
266
264
|
const oauth2 = await readOAuthCredential();
|
|
267
|
-
return oauth2 ?
|
|
265
|
+
return oauth2 ? McpOAuth.clientFromCredential(oauth2) : undefined;
|
|
268
266
|
},
|
|
269
267
|
saveClientInformation: async () => {},
|
|
270
268
|
codeVerifier: async () => {
|
|
@@ -364,9 +362,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
364
362
|
connection.onClose(() => live(Effect.gen(function* () {
|
|
365
363
|
entry.status = { status: "failed", error: "Connection closed" };
|
|
366
364
|
yield* stopServer(name, entry);
|
|
367
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
365
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
368
366
|
})));
|
|
369
|
-
connection.onLog((message) => fork(serverLog(name, message)
|
|
367
|
+
connection.onLog((message) => fork(serverLog(name, message)));
|
|
370
368
|
connection.onToolsChanged(() => live(refreshTools(name, entry, connection).pipe(Effect.andThen(bus.publish(McpEvent.ToolsChanged, { server: name })))));
|
|
371
369
|
connection.onPromptsChanged(() => live(refreshPrompts(name, entry, connection)));
|
|
372
370
|
connection.onResourcesChanged(() => live(bus.publish(McpEvent.ResourcesChanged, { server: name })));
|
|
@@ -390,12 +388,12 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
390
388
|
};
|
|
391
389
|
const startServer = (name, entry) => Effect.gen(function* () {
|
|
392
390
|
entry.status = { status: "pending" };
|
|
393
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
391
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
394
392
|
const scope = yield* Scope.fork(root);
|
|
395
393
|
entry.scope = scope;
|
|
396
394
|
const authProvider = yield* connectProvider(entry);
|
|
397
|
-
const {
|
|
398
|
-
const result = yield*
|
|
395
|
+
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
396
|
+
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(exports_environment.Service, environment), Scope.provide(scope), Effect.exit);
|
|
399
397
|
if (Exit.isSuccess(result)) {
|
|
400
398
|
entry.client = result.value.connection;
|
|
401
399
|
entry.tools = result.value.tools.map((def) => toTool(name, entry, def));
|
|
@@ -403,18 +401,18 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
403
401
|
entry.status = { status: "connected" };
|
|
404
402
|
watch(name, entry, result.value.connection);
|
|
405
403
|
yield* Effect.logInfo("mcp connected", { server: name, tools: entry.tools.length });
|
|
406
|
-
yield* bus.publish(McpEvent.ToolsChanged, { server: name })
|
|
407
|
-
yield* bus.publish(McpEvent.ResourcesChanged, { server: name })
|
|
408
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
404
|
+
yield* bus.publish(McpEvent.ToolsChanged, { server: name });
|
|
405
|
+
yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
|
|
406
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
409
407
|
whenLive(name, entry, result.value.connection)(refreshPrompts(name, entry, result.value.connection));
|
|
410
408
|
return;
|
|
411
409
|
}
|
|
412
410
|
yield* Scope.close(scope, Exit.void);
|
|
413
411
|
entry.scope = undefined;
|
|
414
412
|
const error = Cause.squash(result.cause);
|
|
415
|
-
entry.status = error instanceof
|
|
413
|
+
entry.status = error instanceof McpClient.NeedsAuthError ? { status: "needs_auth" } : { status: "failed", error: error instanceof Error ? error.message : String(error) };
|
|
416
414
|
yield* Effect.logWarning("mcp connect failed", { server: name, status: entry.status });
|
|
417
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
415
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
418
416
|
}).pipe(Effect.ensuring(entry.startup.open));
|
|
419
417
|
const stopServer = Effect.fnUntraced(function* (name, entry) {
|
|
420
418
|
const scope = entry.scope;
|
|
@@ -425,9 +423,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
425
423
|
entry.tools = undefined;
|
|
426
424
|
entry.prompts = undefined;
|
|
427
425
|
yield* Scope.close(scope, Exit.void);
|
|
428
|
-
yield* bus.publish(McpEvent.ToolsChanged, { server: name })
|
|
429
|
-
yield* bus.publish(McpEvent.ResourcesChanged, { server: name })
|
|
430
|
-
yield* bus.publish(PromptsChanged, { server: name })
|
|
426
|
+
yield* bus.publish(McpEvent.ToolsChanged, { server: name });
|
|
427
|
+
yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
|
|
428
|
+
yield* bus.publish(PromptsChanged, { server: name });
|
|
431
429
|
});
|
|
432
430
|
const disposeServer = Effect.fnUntraced(function* (name, entry) {
|
|
433
431
|
yield* stopServer(name, entry);
|
|
@@ -450,7 +448,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
450
448
|
yield* register(name, entry);
|
|
451
449
|
if (serverConfig.disabled) {
|
|
452
450
|
entry.status = { status: "disabled" };
|
|
453
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
451
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
454
452
|
return;
|
|
455
453
|
}
|
|
456
454
|
yield* startServer(name, entry);
|
|
@@ -462,7 +460,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
462
460
|
return;
|
|
463
461
|
yield* disposeServer(name, entry);
|
|
464
462
|
entries.delete(name);
|
|
465
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
463
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
466
464
|
});
|
|
467
465
|
let applied;
|
|
468
466
|
const overrides = new Map;
|
|
@@ -482,7 +480,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
482
480
|
if (entry.config.disabled) {
|
|
483
481
|
entry.status = { status: "disabled" };
|
|
484
482
|
entry.startup.openUnsafe();
|
|
485
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
483
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
486
484
|
continue;
|
|
487
485
|
}
|
|
488
486
|
fork(startServer(name, entry).pipe(locks.withLock(name)));
|
|
@@ -518,7 +516,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
518
516
|
yield* startServer(name, entry);
|
|
519
517
|
}).pipe(locks.withLock(name));
|
|
520
518
|
});
|
|
521
|
-
fork(bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))
|
|
519
|
+
fork(bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
522
520
|
const state = exports_state.create({
|
|
523
521
|
name: "mcp",
|
|
524
522
|
initial: () => ({
|
|
@@ -573,7 +571,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
573
571
|
const target = yield* requireServer(name);
|
|
574
572
|
yield* stopServer(name, target.entry);
|
|
575
573
|
target.entry.status = { status: "disabled" };
|
|
576
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name })
|
|
574
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
577
575
|
}).pipe(locks.withLock(name));
|
|
578
576
|
}),
|
|
579
577
|
remove: Effect.fn("MCP.remove")(function* (server) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_state
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-x89rah0x.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_location
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-pm12wdxj.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./project-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/formatter.ts
|
|
12
12
|
var exports_formatter = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-8rpfd2h6.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
@@ -23,9 +23,9 @@ var projectTerminalSnapshot = (draft, event) => {
|
|
|
23
23
|
};
|
|
24
24
|
function update(adapter, event) {
|
|
25
25
|
const created = DateTime.makeUnsafe(event.created);
|
|
26
|
-
const latestTool = (assistant, id) => assistant
|
|
27
|
-
const latestText = (assistant) => assistant
|
|
28
|
-
const latestReasoning = (assistant) => assistant
|
|
26
|
+
const latestTool = (assistant, id) => assistant.content.findLast((item) => item.type === "tool" && item.id === id);
|
|
27
|
+
const latestText = (assistant) => assistant.content.findLast((item) => item.type === "text");
|
|
28
|
+
const latestReasoning = (assistant) => assistant.content.findLast((item) => item.type === "reasoning" && !item.time?.completed);
|
|
29
29
|
const updateOwnedAssistant = (messageID, recipe) => Effect.gen(function* () {
|
|
30
30
|
const assistant = yield* adapter.getAssistant(messageID);
|
|
31
31
|
if (!assistant)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
foldSettings
|
|
3
|
+
} from "./project-sdcydb11.js";
|
|
1
4
|
import {
|
|
2
5
|
exports_config
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./project-6kmefejb.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_model
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_provider
|
|
9
|
-
} from "./tool-krsqcmnj.js";
|
|
9
|
+
} from "./project-r13w8t0w.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/lmstudio.ts
|
|
12
12
|
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
@@ -126,10 +126,7 @@ function make(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
126
126
|
}
|
|
127
127
|
var LMStudioPlugin = make();
|
|
128
128
|
function configured(entries, origin) {
|
|
129
|
-
const settings = entries
|
|
130
|
-
const settings2 = entry.info.providers?.[providerID]?.settings;
|
|
131
|
-
return settings2 ? [settings2] : [];
|
|
132
|
-
}).reduce((result, item) => exports_provider.mergeOverlay(result, item), undefined);
|
|
129
|
+
const settings = foldSettings(entries, providerID, undefined);
|
|
133
130
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
134
131
|
const apiKey = typeof settings?.apiKey === "string" ? settings.apiKey : undefined;
|
|
135
132
|
if (!URL.canParse(baseURL))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_usage
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-sw84ckhj.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionEvent
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-a83yvq99.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/publish-llm-event.ts
|
|
9
9
|
import { Clock, Effect, Iterable } from "effect";
|
|
@@ -274,7 +274,7 @@ var createLLMEventPublisher = (bus, input) => {
|
|
|
274
274
|
});
|
|
275
275
|
});
|
|
276
276
|
const failUnsettledTools = Effect.fn("SessionRunner.failUnsettledTools")((error, scope = "all") => failTools(error, scope));
|
|
277
|
-
const publish = Effect.
|
|
277
|
+
const publish = Effect.fnUntraced(function* (event) {
|
|
278
278
|
switch (event.type) {
|
|
279
279
|
case "step-start":
|
|
280
280
|
yield* startAssistant();
|
|
@@ -292,7 +292,7 @@ var createLLMEventPublisher = (bus, input) => {
|
|
|
292
292
|
yield* text.append(event.id, event.text, providerState(event.providerMetadata));
|
|
293
293
|
return;
|
|
294
294
|
case "text-end":
|
|
295
|
-
yield* text.end(event.id, providerState(event.providerMetadata));
|
|
295
|
+
yield* text.end(event.id, providerState(event.providerMetadata), event.text);
|
|
296
296
|
return;
|
|
297
297
|
case "reasoning-start":
|
|
298
298
|
outputStarted = true;
|
|
@@ -308,7 +308,7 @@ var createLLMEventPublisher = (bus, input) => {
|
|
|
308
308
|
yield* reasoning.append(event.id, event.text, providerState(event.providerMetadata));
|
|
309
309
|
return;
|
|
310
310
|
case "reasoning-end":
|
|
311
|
-
yield* reasoning.end(event.id, providerState(event.providerMetadata));
|
|
311
|
+
yield* reasoning.end(event.id, providerState(event.providerMetadata), event.text);
|
|
312
312
|
return;
|
|
313
313
|
case "tool-input-start":
|
|
314
314
|
outputStarted = true;
|
|
@@ -433,6 +433,7 @@ var createLLMEventPublisher = (bus, input) => {
|
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
|
+
const publishTraced = Effect.fn("SessionRunner.publishLLMEvent")(publish);
|
|
436
437
|
const progress = Effect.fnUntraced(function* (id, update) {
|
|
437
438
|
const tool = tools.get(id);
|
|
438
439
|
if (!tool?.called || tool.settled)
|
|
@@ -467,7 +468,11 @@ var createLLMEventPublisher = (bus, input) => {
|
|
|
467
468
|
});
|
|
468
469
|
});
|
|
469
470
|
return {
|
|
470
|
-
publish
|
|
471
|
+
publish: (event) => {
|
|
472
|
+
if (event.type === "text-delta" || event.type === "reasoning-delta" || event.type === "tool-input-delta")
|
|
473
|
+
return publish(event);
|
|
474
|
+
return publishTraced(event);
|
|
475
|
+
},
|
|
471
476
|
progress,
|
|
472
477
|
toolExecution,
|
|
473
478
|
flush,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-jqms80b0.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
Failed,
|
|
3
3
|
NotFound,
|
|
4
4
|
WrongKind
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./project-xczfw7dq.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./project-rvfvac9x.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_host
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-r5gg458q.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_runtime
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-g2nsgnf7.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_mcp
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./project-26cqkxws.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
exports_command
|
|
12
|
+
} from "./project-sag4arrb.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
exports_reference
|
|
15
|
+
} from "./project-qxsjpy8c.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_skill
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./project-p2h03eta.js";
|
|
19
|
+
import {
|
|
20
|
+
exports_tool
|
|
21
|
+
} from "./project-fhg07p44.js";
|
|
22
|
+
import {
|
|
23
|
+
exports_vcs
|
|
24
|
+
} from "./project-rgh2fcxw.js";
|
|
25
|
+
import {
|
|
26
|
+
exports_permission
|
|
27
|
+
} from "./project-12r08axk.js";
|
|
19
28
|
import {
|
|
20
29
|
exports_generate
|
|
21
|
-
} from "./
|
|
30
|
+
} from "./project-d9wdmbm9.js";
|
|
22
31
|
import {
|
|
23
32
|
exports_catalog
|
|
24
|
-
} from "./
|
|
25
|
-
import {
|
|
26
|
-
exports_aisdk
|
|
27
|
-
} from "./tool-017jr2na.js";
|
|
33
|
+
} from "./project-bq1qdn80.js";
|
|
28
34
|
import {
|
|
29
35
|
exports_integration
|
|
30
|
-
} from "./
|
|
31
|
-
import {
|
|
32
|
-
exports_vcs
|
|
33
|
-
} from "./tool-c7b2cm7c.js";
|
|
36
|
+
} from "./project-pm64n062.js";
|
|
34
37
|
import {
|
|
35
38
|
exports_websearch
|
|
36
|
-
} from "./
|
|
37
|
-
import {
|
|
38
|
-
exports_tool
|
|
39
|
-
} from "./tool-k7pbmry0.js";
|
|
39
|
+
} from "./project-hesdqwj7.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
} from "./
|
|
41
|
+
exports_app
|
|
42
|
+
} from "./project-50jxp3hw.js";
|
|
43
43
|
import {
|
|
44
44
|
exports_agent
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./project-vqt151v9.js";
|
|
46
|
+
import {
|
|
47
|
+
exports_aisdk
|
|
48
|
+
} from "./project-mankezgy.js";
|
|
46
49
|
import {
|
|
47
50
|
exports_hooks
|
|
48
|
-
} from "./
|
|
51
|
+
} from "./project-v2wshkax.js";
|
|
49
52
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./
|
|
53
|
+
exports_kv
|
|
54
|
+
} from "./project-cbdh5emr.js";
|
|
52
55
|
import {
|
|
53
56
|
exports_state
|
|
54
|
-
} from "./
|
|
55
|
-
import {
|
|
56
|
-
exports_kv
|
|
57
|
-
} from "./tool-g64wqzyd.js";
|
|
57
|
+
} from "./project-x89rah0x.js";
|
|
58
58
|
import {
|
|
59
59
|
exports_location
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./project-pm12wdxj.js";
|
|
61
61
|
import {
|
|
62
62
|
exports_bus
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./project-gy9zm4ck.js";
|
|
64
64
|
import {
|
|
65
65
|
__export
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./project-rvfvac9x.js";
|
|
67
67
|
|
|
68
68
|
// src/plugin.ts
|
|
69
69
|
var exports_plugin = {};
|
|
@@ -111,14 +111,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
111
111
|
ids.add(definition.id);
|
|
112
112
|
}
|
|
113
113
|
yield* lock.withPermit(Effect.gen(function* () {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
id
|
|
117
|
-
version: entry.plugin.version
|
|
118
|
-
}));
|
|
119
|
-
if (current.length === next.length && current.every((definition, index) => {
|
|
120
|
-
const candidate = next[index];
|
|
121
|
-
return definition.id === candidate?.id && definition.version === candidate.version;
|
|
114
|
+
if (active.size === definitions.length && Array.from(active.values()).every((entry, index) => {
|
|
115
|
+
const definition = definitions[index];
|
|
116
|
+
return entry.plugin.id === definition?.id && entry.plugin.version === definition.version;
|
|
122
117
|
})) {
|
|
123
118
|
const nextInventory = [...Array.from(active.values(), (entry) => activeInfo(entry.plugin)), ...failures];
|
|
124
119
|
if (JSON.stringify(inventory) === JSON.stringify(nextInventory))
|
|
@@ -133,7 +128,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
133
128
|
const previous = active.get(definition.id);
|
|
134
129
|
active.delete(definition.id);
|
|
135
130
|
if (previous)
|
|
136
|
-
yield* Scope.close(previous.scope, Exit.void)
|
|
131
|
+
yield* Scope.close(previous.scope, Exit.void);
|
|
137
132
|
const loaded = yield* load(definition);
|
|
138
133
|
if (loaded.scope !== undefined) {
|
|
139
134
|
active.set(definition.id, { plugin: definition, scope: loaded.scope });
|
|
@@ -160,7 +155,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
160
155
|
}
|
|
161
156
|
const removed = Array.from(active.entries()).filter(([id]) => !ids.has(id)).toReversed();
|
|
162
157
|
removed.forEach(([id]) => active.delete(id));
|
|
163
|
-
yield* Effect.forEach(removed, ([, entry]) => Scope.close(entry.scope, Exit.void)
|
|
158
|
+
yield* Effect.forEach(removed, ([, entry]) => Scope.close(entry.scope, Exit.void), {
|
|
164
159
|
discard: true
|
|
165
160
|
});
|
|
166
161
|
inventory = [...nextInventory, ...failures];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
foldSettings
|
|
3
|
+
} from "./project-sdcydb11.js";
|
|
1
4
|
import {
|
|
2
5
|
exports_config
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./project-6kmefejb.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_model
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_provider
|
|
9
|
-
} from "./tool-krsqcmnj.js";
|
|
9
|
+
} from "./project-r13w8t0w.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/ollama.ts
|
|
12
12
|
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
@@ -152,10 +152,7 @@ function make(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
152
152
|
}
|
|
153
153
|
var OllamaPlugin = make();
|
|
154
154
|
function configured(entries, origin) {
|
|
155
|
-
const settings = entries
|
|
156
|
-
const settings2 = entry.info.providers?.[providerID]?.settings;
|
|
157
|
-
return settings2 ? [settings2] : [];
|
|
158
|
-
}).reduce((result, item) => exports_provider.mergeOverlay(result, item), undefined);
|
|
155
|
+
const settings = foldSettings(entries, providerID, undefined);
|
|
159
156
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
160
157
|
const apiKey = typeof settings?.apiKey === "string" ? settings.apiKey : undefined;
|
|
161
158
|
if (!URL.canParse(baseURL))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderPlugin
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-0zz82cjq.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/mistral.ts
|
|
9
9
|
var MistralPlugin = createProviderPlugin({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_skill
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./project-p2h03eta.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_permission
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./project-12r08axk.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./project-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/skill.ts
|
|
12
12
|
var exports_skill2 = {};
|