@opencode-ai/core 0.0.0-dev-17604 → 0.0.0-dev-17636
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 +72 -72
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +70 -70
- package/dist/catalog.js +80 -80
- package/dist/chunks/index-8jqmqb92.js +1 -1
- package/dist/chunks/{workspace-02dbfq60.js → mime-02dbfq60.js} +1 -1
- package/dist/chunks/{workspace-04kwjb53.js → mime-04kwjb53.js} +2 -2
- package/dist/chunks/{workspace-j2f50m4s.js → mime-0b6ye7sf.js} +3 -3
- package/dist/chunks/{workspace-0kvmztkf.js → mime-0kvmztkf.js} +1 -1
- package/dist/chunks/{workspace-0j3mmnd4.js → mime-13qhwf0e.js} +13 -13
- package/dist/chunks/{workspace-18pv8fg3.js → mime-18pv8fg3.js} +2 -2
- package/dist/chunks/{workspace-1c00jchy.js → mime-1c00jchy.js} +2 -2
- package/dist/chunks/{workspace-h57mfs79.js → mime-1gj47tzx.js} +5 -5
- package/dist/chunks/{workspace-p3zwavty.js → mime-1h0r72pv.js} +11 -3
- package/dist/chunks/{workspace-p1tt6svs.js → mime-1hhva3eh.js} +13 -13
- package/dist/chunks/{workspace-86xmg49z.js → mime-1mrs6vt8.js} +9 -9
- package/dist/chunks/{workspace-z8kd413e.js → mime-1tzj0dd9.js} +3 -3
- package/dist/chunks/{workspace-1xksxgzs.js → mime-1xksxgzs.js} +2 -2
- package/dist/chunks/{workspace-25pxtba7.js → mime-25pxtba7.js} +1 -1
- package/dist/chunks/{workspace-8dwkjrbx.js → mime-2akqrmqf.js} +1 -1
- package/dist/chunks/{workspace-2nmyybe0.js → mime-2nmyybe0.js} +1 -1
- package/dist/chunks/{workspace-v2a5b48p.js → mime-30900e5h.js} +3 -3
- package/dist/chunks/{workspace-kjkmrs65.js → mime-33bxv4t4.js} +2 -2
- package/dist/chunks/{workspace-m4vss1rh.js → mime-3f4g5nwg.js} +6 -6
- package/dist/chunks/{workspace-3g8vftxb.js → mime-3g8vftxb.js} +2 -2
- package/dist/chunks/{workspace-aazvngq2.js → mime-3gs06w7d.js} +3 -3
- package/dist/chunks/{workspace-cd0g8be5.js → mime-3kc1tq2m.js} +8 -8
- package/dist/chunks/{workspace-13cp7wv8.js → mime-3m2x7z28.js} +6 -6
- package/dist/chunks/{workspace-3thh6229.js → mime-3thh6229.js} +2 -2
- package/dist/chunks/{workspace-xjk9zvsp.js → mime-3ysxg2s0.js} +7 -7
- package/dist/chunks/{workspace-42q4drvy.js → mime-42q4drvy.js} +2 -2
- package/dist/chunks/{workspace-0dw1ep5w.js → mime-47p6zysw.js} +3 -3
- package/dist/chunks/{workspace-y5qj1vas.js → mime-4ezmpqhe.js} +4 -4
- package/dist/chunks/{workspace-0pbrr99p.js → mime-4j29e2x9.js} +22 -22
- package/dist/chunks/{workspace-frh43121.js → mime-4jr23pkv.js} +9 -9
- package/dist/chunks/{workspace-z8ys9q20.js → mime-4kedsmp8.js} +18 -20
- package/dist/chunks/{workspace-8yfk9xcy.js → mime-4p267gw4.js} +3 -3
- package/dist/chunks/{workspace-4s2xwh5d.js → mime-4s2xwh5d.js} +3 -3
- package/dist/chunks/{workspace-0wp54kpr.js → mime-4t6aa660.js} +5 -5
- package/dist/chunks/{workspace-4zzdwbaz.js → mime-4zzdwbaz.js} +2 -2
- package/dist/chunks/{workspace-50jxp3hw.js → mime-50jxp3hw.js} +1 -1
- package/dist/chunks/{workspace-5g7qz6sn.js → mime-50x5dgrv.js} +29 -16
- package/dist/chunks/{workspace-52jzav25.js → mime-52jzav25.js} +1 -1
- package/dist/chunks/{workspace-57tzwnz4.js → mime-57tzwnz4.js} +1 -1
- package/dist/chunks/{workspace-x67ax6v4.js → mime-592eewvg.js} +5 -5
- package/dist/chunks/{workspace-htg6mped.js → mime-5exb3yw5.js} +25 -25
- package/dist/chunks/{workspace-akcfhmw0.js → mime-5jbprqc1.js} +9 -9
- package/dist/chunks/{workspace-w6pc0164.js → mime-5mtcebgq.js} +7 -7
- package/dist/chunks/{workspace-rmtzwgp9.js → mime-5nxvq64r.js} +2 -2
- package/dist/chunks/{workspace-5pnhvvbf.js → mime-5pnhvvbf.js} +4 -4
- package/dist/chunks/{workspace-5rs65q6p.js → mime-5rs65q6p.js} +1 -1
- package/dist/chunks/{workspace-hptk2y1k.js → mime-5v9mn1f2.js} +5 -5
- package/dist/chunks/{workspace-5vcssjzn.js → mime-5vcssjzn.js} +1 -1
- package/dist/chunks/{workspace-cvh8045m.js → mime-5yea2tah.js} +2 -2
- package/dist/chunks/{workspace-rq782hrq.js → mime-5z002fgv.js} +6 -6
- package/dist/chunks/{workspace-zt45arcd.js → mime-60zr2e5a.js} +7 -7
- package/dist/chunks/{workspace-r8s6e2ts.js → mime-660dga2n.js} +10 -10
- package/dist/chunks/{workspace-6ky7rqk7.js → mime-6ky7rqk7.js} +1 -1
- package/dist/chunks/{workspace-vacr5vr5.js → mime-6q0m15b3.js} +2 -2
- package/dist/chunks/{workspace-706a4azd.js → mime-706a4azd.js} +1 -1
- package/dist/chunks/{workspace-0cqj8ep0.js → mime-77pp0h5x.js} +8 -8
- package/dist/chunks/{workspace-7mrpdsq5.js → mime-7mrpdsq5.js} +1 -1
- package/dist/chunks/{workspace-7wcmqxrc.js → mime-7wcmqxrc.js} +1 -1
- package/dist/chunks/{workspace-0ceadgj3.js → mime-7x2jjfgf.js} +2 -2
- package/dist/chunks/{workspace-qy071k7t.js → mime-7xm5mbbb.js} +3 -3
- package/dist/chunks/{workspace-vt8n9e5n.js → mime-7ykwj0ht.js} +5 -5
- package/dist/chunks/{workspace-g01nkvr1.js → mime-82akp21f.js} +3 -3
- package/dist/chunks/{workspace-sze2t8ey.js → mime-873415w0.js} +5 -5
- package/dist/chunks/{workspace-88jbfw8z.js → mime-88jbfw8z.js} +2 -2
- package/dist/chunks/{workspace-8bkmtpp6.js → mime-8bkmtpp6.js} +2 -2
- package/dist/chunks/{workspace-xjreyxj2.js → mime-8k08086v.js} +1 -1
- package/dist/chunks/{workspace-z0qwt69j.js → mime-8nmstyrn.js} +5 -5
- package/dist/chunks/{workspace-8v47shgf.js → mime-8v47shgf.js} +2 -2
- package/dist/chunks/{workspace-t3s7zfeg.js → mime-8v8q81cw.js} +3 -3
- package/dist/chunks/{workspace-tmhfnyfe.js → mime-8vmqyhwc.js} +7 -7
- package/dist/chunks/{workspace-93qdgxxd.js → mime-93qdgxxd.js} +1 -1
- package/dist/chunks/{workspace-999qd968.js → mime-999qd968.js} +1 -1
- package/dist/chunks/{workspace-9d2xhdr4.js → mime-9d2xhdr4.js} +3 -3
- package/dist/chunks/{workspace-9f0rnpkn.js → mime-9f0rnpkn.js} +1 -1
- package/dist/chunks/{workspace-a65h300v.js → mime-a65h300v.js} +2 -2
- package/dist/chunks/{workspace-t8mvkw3t.js → mime-an8x7w22.js} +23 -23
- package/dist/chunks/{workspace-jwcdbjdr.js → mime-atc09b0q.js} +2 -2
- package/dist/chunks/{workspace-ayfwnm78.js → mime-ayfwnm78.js} +2 -2
- package/dist/chunks/{workspace-6bp8pm4n.js → mime-b0wtjnmw.js} +3 -3
- package/dist/chunks/{workspace-px7n0cd3.js → mime-b25zdeh7.js} +1 -1
- package/dist/chunks/{workspace-97awvxh5.js → mime-b5skftse.js} +4 -4
- package/dist/chunks/{workspace-s9f13v9h.js → mime-b8rm84kg.js} +2 -2
- package/dist/chunks/{workspace-62dkeanc.js → mime-bhbhpzk5.js} +22 -18
- package/dist/chunks/{workspace-g9r2pwf1.js → mime-bmeefwwa.js} +6 -6
- package/dist/chunks/{workspace-xg3qgrrb.js → mime-bmweayxc.js} +3 -3
- package/dist/chunks/{workspace-w331pwpz.js → mime-bw52wkfv.js} +12 -12
- package/dist/chunks/{workspace-byab506k.js → mime-byab506k.js} +1 -1
- package/dist/chunks/{workspace-vwgdtsvm.js → mime-ck6rqj6g.js} +9 -9
- package/dist/chunks/{workspace-x3pae0r1.js → mime-cy70ntq3.js} +87 -87
- package/dist/chunks/{workspace-cz3dkvcz.js → mime-cz3dkvcz.js} +1 -1
- package/dist/chunks/{workspace-qaej4ejp.js → mime-d2zt7htj.js} +4 -4
- package/dist/chunks/{workspace-f7ckryzs.js → mime-d4rx38gf.js} +8 -8
- package/dist/chunks/{workspace-dhphtf1x.js → mime-dhphtf1x.js} +1 -1
- package/dist/chunks/{workspace-38crwsq8.js → mime-dman5pj0.js} +9 -3
- package/dist/chunks/mime-drf5k5p8.js +46 -0
- package/dist/chunks/{workspace-dyz5q1tb.js → mime-dyz5q1tb.js} +2 -2
- package/dist/chunks/{workspace-e1z9a0ts.js → mime-e1z9a0ts.js} +2 -2
- package/dist/chunks/{workspace-7d4r7gw1.js → mime-e7cjzqm2.js} +8 -8
- package/dist/chunks/{workspace-erd90vsr.js → mime-ea333rs5.js} +12 -12
- package/dist/chunks/{workspace-0jwwz8ac.js → mime-eb5hdjsy.js} +2 -2
- package/dist/chunks/{workspace-ec8vrfw5.js → mime-ec8vrfw5.js} +1 -1
- package/dist/chunks/{workspace-b1x1r3cq.js → mime-ek19204r.js} +3 -3
- package/dist/chunks/{workspace-erj4j75s.js → mime-erj4j75s.js} +1 -1
- package/dist/chunks/{workspace-d05673j9.js → mime-ewd83fnw.js} +5 -5
- package/dist/chunks/{workspace-jq8ftg1k.js → mime-exm5hbk3.js} +68 -61
- package/dist/chunks/{workspace-eyk9wdct.js → mime-eyk9wdct.js} +2 -2
- package/dist/chunks/{workspace-f05p34aa.js → mime-f05p34aa.js} +3 -3
- package/dist/chunks/{workspace-wt193r4g.js → mime-f2kz495y.js} +2 -2
- package/dist/chunks/{workspace-9xj4d4zf.js → mime-f2xgb1qf.js} +2 -2
- package/dist/chunks/{workspace-1twqj3ra.js → mime-f5s1jx1h.js} +3 -3
- package/dist/chunks/{workspace-yqrsnjrz.js → mime-fbf8ec7k.js} +43 -39
- package/dist/chunks/{workspace-0dwnnam7.js → mime-fk7yh104.js} +15 -15
- package/dist/chunks/{workspace-cd7fgqr9.js → mime-fn8d7ca3.js} +2 -2
- package/dist/chunks/{workspace-h1494ev1.js → mime-fngyfxbk.js} +3 -3
- package/dist/chunks/{workspace-z3nf8g8y.js → mime-fqxzsdmq.js} +2 -2
- package/dist/chunks/{workspace-fj0xpa8e.js → mime-fxt5cm25.js} +11 -11
- package/dist/chunks/{workspace-z1sczedd.js → mime-fy4jg8mq.js} +3 -3
- package/dist/chunks/{workspace-kk8xvmkm.js → mime-fzcmfdsy.js} +27 -24
- package/dist/chunks/{workspace-cnf786eg.js → mime-g3yw3bq3.js} +25 -9
- package/dist/chunks/{workspace-g9yygpzr.js → mime-g9yygpzr.js} +1 -1
- package/dist/chunks/{workspace-gcay93cp.js → mime-gcay93cp.js} +1 -1
- package/dist/chunks/{workspace-gd2xppx8.js → mime-gd2xppx8.js} +1 -1
- package/dist/chunks/{workspace-424xx0pc.js → mime-gh0z3156.js} +3 -3
- package/dist/chunks/{workspace-1547xcx7.js → mime-gt0h2tm1.js} +3 -3
- package/dist/chunks/{workspace-8q30s3gq.js → mime-gv2r1sx2.js} +3 -3
- package/dist/chunks/{workspace-6kqkk0yq.js → mime-gwmtznzh.js} +4 -4
- package/dist/chunks/{workspace-c53n3hjv.js → mime-gz765asg.js} +2 -2
- package/dist/chunks/{workspace-h8ecejt5.js → mime-h8ecejt5.js} +1 -1
- package/dist/chunks/{workspace-jqkpryhn.js → mime-he8fqmta.js} +6 -6
- package/dist/chunks/{workspace-c1e66xy5.js → mime-hg3q9ea5.js} +11 -11
- package/dist/chunks/{workspace-4kc3g434.js → mime-hs71xwrp.js} +4 -4
- package/dist/chunks/{workspace-w3xnje51.js → mime-hs9j5s4f.js} +7 -7
- package/dist/chunks/{workspace-j1a5h53y.js → mime-j1a5h53y.js} +1 -1
- package/dist/chunks/{workspace-xjyhkpqm.js → mime-j87m98ha.js} +68 -42
- package/dist/chunks/{workspace-6amnnsb0.js → mime-ja1ea1t0.js} +1 -1
- package/dist/chunks/{workspace-97gm4kfc.js → mime-jj06mada.js} +5 -5
- package/dist/chunks/{workspace-jsz1hqpz.js → mime-jkdgsmn6.js} +2 -2
- package/dist/chunks/{workspace-jssy2dr3.js → mime-jssy2dr3.js} +2 -2
- package/dist/chunks/{workspace-s4dec4vj.js → mime-k9gszdx0.js} +2 -2
- package/dist/chunks/{workspace-kg1345f7.js → mime-kg1345f7.js} +1 -1
- package/dist/chunks/{workspace-mwfx0e3w.js → mime-kk63st9b.js} +3 -3
- package/dist/chunks/{workspace-n5dzh244.js → mime-kncv2mch.js} +5 -5
- package/dist/chunks/{workspace-2a1v03ec.js → mime-ktq95tb3.js} +8 -8
- package/dist/chunks/{workspace-f570zt0q.js → mime-m1mw9tfv.js} +27 -13
- package/dist/chunks/{workspace-bm9rgg2t.js → mime-medfj1t3.js} +13 -13
- package/dist/chunks/{workspace-mf0hyk7z.js → mime-mf0hyk7z.js} +1 -1
- package/dist/chunks/{workspace-mh28new4.js → mime-mh28new4.js} +2 -2
- package/dist/chunks/{workspace-mnb85w6b.js → mime-mnb85w6b.js} +2 -2
- package/dist/chunks/{workspace-f31cjnwb.js → mime-msqxbfjn.js} +2 -2
- package/dist/chunks/{workspace-exydaw9x.js → mime-msrhanm0.js} +5 -5
- package/dist/chunks/{workspace-060vgtbp.js → mime-mtbmqawz.js} +11 -9
- package/dist/chunks/{workspace-mwceq5am.js → mime-mwceq5am.js} +1 -1
- package/dist/chunks/{workspace-1s6npj13.js → mime-mx09vdxm.js} +136 -125
- package/dist/chunks/{workspace-fmyre8m1.js → mime-mxvw03gv.js} +2 -2
- package/dist/chunks/{workspace-g205qrh4.js → mime-mzt2x3rk.js} +5 -5
- package/dist/chunks/{workspace-jc2fk5ef.js → mime-n0tk5m03.js} +6 -6
- package/dist/chunks/{workspace-vv288965.js → mime-n2w8fz38.js} +5 -3
- package/dist/chunks/{workspace-tx7ek6hz.js → mime-nbpq4jyx.js} +3 -3
- package/dist/chunks/{workspace-nesb2rcz.js → mime-nesb2rcz.js} +2 -2
- package/dist/chunks/{workspace-nj1s64cz.js → mime-nj1s64cz.js} +1 -1
- package/dist/chunks/{workspace-2vxr0v86.js → mime-nk6yb8jk.js} +2 -2
- package/dist/chunks/{workspace-nr76rjj3.js → mime-nr76rjj3.js} +2 -2
- package/dist/chunks/{workspace-kcdjbxyn.js → mime-nrqwyjqz.js} +4 -4
- package/dist/chunks/{workspace-nzrjycs5.js → mime-nzrjycs5.js} +1 -1
- package/dist/chunks/{workspace-1sx0aa4f.js → mime-p0zqjz05.js} +3 -3
- package/dist/chunks/{workspace-p27xxkqg.js → mime-p27xxkqg.js} +3 -3
- package/dist/chunks/{workspace-9cj0sjcj.js → mime-p3ejg59h.js} +14 -14
- package/dist/chunks/{workspace-cbzmcdw1.js → mime-p3mc079v.js} +12 -12
- package/dist/chunks/{workspace-pfqehjmy.js → mime-pfqehjmy.js} +2 -2
- package/dist/chunks/{workspace-ph1me6ah.js → mime-ph1me6ah.js} +2 -2
- package/dist/chunks/{workspace-pq4b4pqk.js → mime-pq4b4pqk.js} +2 -2
- package/dist/chunks/{workspace-prf9bavk.js → mime-prf9bavk.js} +3 -3
- package/dist/chunks/{workspace-748jvh42.js → mime-q0kvmnet.js} +9 -9
- package/dist/chunks/{workspace-6kxebpr5.js → mime-q13jnydh.js} +88 -88
- package/dist/chunks/{workspace-qe0d689s.js → mime-qe0d689s.js} +2 -2
- package/dist/chunks/{workspace-qgt32wwf.js → mime-qgt32wwf.js} +3 -3
- package/dist/chunks/{workspace-qsgvz7g8.js → mime-qsgvz7g8.js} +2 -2
- package/dist/chunks/{workspace-ems30fn4.js → mime-qxn37x8q.js} +16 -16
- package/dist/chunks/{workspace-r3k9abhd.js → mime-r3k9abhd.js} +2 -2
- package/dist/chunks/{workspace-65acjq5k.js → mime-rgaafrmh.js} +8 -8
- package/dist/chunks/{workspace-0hmh8nk8.js → mime-rmb41pet.js} +8 -8
- package/dist/chunks/{workspace-k37cp5ym.js → mime-rph4ya7a.js} +3 -3
- package/dist/chunks/{workspace-rt6yg6j2.js → mime-rt6yg6j2.js} +2 -2
- package/dist/chunks/{workspace-ryap75b3.js → mime-ryap75b3.js} +1 -1
- package/dist/chunks/mime-s33fw6zm.js +16 -0
- package/dist/chunks/{workspace-nyb99dry.js → mime-s3n0j4hm.js} +7 -7
- package/dist/chunks/{workspace-6cg91jev.js → mime-s50jkj6y.js} +25 -21
- package/dist/chunks/{workspace-8twz6z1z.js → mime-sfbv6a2b.js} +12 -1
- package/dist/chunks/{workspace-e6xnpqq3.js → mime-skdyn78x.js} +11 -11
- package/dist/chunks/{workspace-smpeg8c9.js → mime-smpeg8c9.js} +2 -2
- package/dist/chunks/{workspace-0zs4qnv1.js → mime-smq36hye.js} +4 -4
- package/dist/chunks/{workspace-8ywqk2j9.js → mime-sw84ckhj.js} +4 -3
- package/dist/chunks/{workspace-gpee7ppy.js → mime-t066q9hw.js} +7 -7
- package/dist/chunks/{workspace-t14kykx1.js → mime-t14kykx1.js} +1 -1
- package/dist/chunks/{workspace-dekpq9bn.js → mime-t25342ez.js} +5 -5
- package/dist/chunks/{workspace-tcn24h1d.js → mime-tcn24h1d.js} +1 -1
- package/dist/chunks/{workspace-tenv3kfs.js → mime-tenv3kfs.js} +2 -2
- package/dist/chunks/mime-tfgm610x.js +94 -0
- package/dist/chunks/{workspace-hf4x0bzw.js → mime-tft198ww.js} +5 -5
- package/dist/chunks/{workspace-thstd87d.js → mime-thstd87d.js} +1 -1
- package/dist/chunks/{workspace-bk5ybag3.js → mime-trm83waa.js} +13 -13
- package/dist/chunks/{workspace-bxgbyjmb.js → mime-tx01qvkp.js} +6 -6
- package/dist/chunks/{workspace-y5rrps3c.js → mime-v04zrpeb.js} +4 -4
- package/dist/chunks/{workspace-6t84bth1.js → mime-v2bfppbw.js} +2 -2
- package/dist/chunks/{workspace-0dwyqmzq.js → mime-v2wshkax.js} +19 -10
- package/dist/chunks/{workspace-94df93db.js → mime-v4qjzx19.js} +58 -28
- package/dist/chunks/{workspace-v80zsxnb.js → mime-v80zsxnb.js} +1 -1
- package/dist/chunks/{workspace-v972xay6.js → mime-v972xay6.js} +1 -1
- package/dist/chunks/{workspace-v9bfv94f.js → mime-v9bfv94f.js} +1 -1
- package/dist/chunks/{workspace-trh4af1g.js → mime-va126bgs.js} +6 -6
- package/dist/chunks/{workspace-g9sbk5sr.js → mime-vreytd5w.js} +10 -10
- package/dist/chunks/mime-vxz5qdmp.js +31 -0
- package/dist/chunks/{workspace-vz89hfgr.js → mime-vz89hfgr.js} +1 -1
- package/dist/chunks/{workspace-7f3hcp4q.js → mime-w1vqnn94.js} +12 -12
- package/dist/chunks/{workspace-q1egzm63.js → mime-w97d3p5m.js} +6 -6
- package/dist/chunks/{workspace-wd268jeg.js → mime-wd268jeg.js} +1 -1
- package/dist/chunks/{workspace-1px4xhxb.js → mime-wh0zhxcg.js} +2 -2
- package/dist/chunks/{workspace-wmxdh12w.js → mime-wmxdh12w.js} +1 -1
- package/dist/chunks/{workspace-hgcjk4m1.js → mime-wnt3wg0b.js} +8 -8
- package/dist/chunks/{workspace-hacwgxye.js → mime-wnycy0wc.js} +5 -5
- package/dist/chunks/{workspace-wps8gh8n.js → mime-wps8gh8n.js} +2 -2
- package/dist/chunks/{workspace-5x2z5904.js → mime-wyfynpb1.js} +4 -4
- package/dist/chunks/{workspace-7bhay03v.js → mime-wzyh8wxy.js} +8 -18
- package/dist/chunks/{workspace-jyzrt7jj.js → mime-x2pb8n50.js} +9 -9
- package/dist/chunks/{workspace-xczfw7dq.js → mime-xczfw7dq.js} +1 -1
- package/dist/chunks/{workspace-k7p73xps.js → mime-xebdgvay.js} +14 -14
- package/dist/chunks/{workspace-fm3af6k1.js → mime-xg71ddn7.js} +27 -23
- package/dist/chunks/{workspace-mh4a3n12.js → mime-xgkvpv3d.js} +65 -65
- package/dist/chunks/{workspace-xgv25zxy.js → mime-xgv25zxy.js} +1 -1
- package/dist/chunks/{workspace-gdqd7h91.js → mime-xj7nh5vj.js} +6 -6
- package/dist/chunks/{workspace-33tq8pvg.js → mime-xqnx36jp.js} +8 -8
- package/dist/chunks/{workspace-b2tg51g3.js → mime-xv6th324.js} +4 -4
- package/dist/chunks/{workspace-xwftk1fd.js → mime-xwftk1fd.js} +2 -2
- package/dist/chunks/{workspace-xxpvz42q.js → mime-xxpvz42q.js} +3 -3
- package/dist/chunks/{workspace-hhm1hmp4.js → mime-y0e60er7.js} +8 -8
- package/dist/chunks/{workspace-y0x38cee.js → mime-y0x38cee.js} +1 -1
- package/dist/chunks/{workspace-y198y2ra.js → mime-y198y2ra.js} +1 -1
- package/dist/chunks/{workspace-y67x6rf6.js → mime-y67x6rf6.js} +1 -1
- package/dist/chunks/{workspace-y8rs54ne.js → mime-y8rs54ne.js} +1 -1
- package/dist/chunks/{workspace-k6vwd7kr.js → mime-y980s7ka.js} +5 -5
- package/dist/chunks/{workspace-yf0knd5z.js → mime-yf0knd5z.js} +2 -2
- package/dist/chunks/{workspace-z02q31x5.js → mime-yp4mz5sn.js} +11 -11
- package/dist/chunks/{workspace-yz0wm9s3.js → mime-yz0wm9s3.js} +2 -2
- package/dist/chunks/{workspace-psmjgqwp.js → mime-yz5f8a3j.js} +15 -15
- package/dist/chunks/{workspace-p06mj1ec.js → mime-z0rhy30k.js} +3 -3
- package/dist/chunks/{workspace-ejhy4008.js → mime-z4c043ys.js} +9 -9
- package/dist/chunks/mime-z55hj407.js +76 -0
- package/dist/chunks/{workspace-zbqqnp0n.js → mime-zbqqnp0n.js} +1 -1
- package/dist/chunks/{workspace-zdkg1k91.js → mime-zdkg1k91.js} +1 -1
- package/dist/chunks/{workspace-zfxc0ze5.js → mime-zfxc0ze5.js} +1 -1
- package/dist/chunks/{workspace-zjvgdt9p.js → mime-zjvgdt9p.js} +3 -3
- package/dist/chunks/{workspace-hgn8axp1.js → mime-zkkkcc8p.js} +4 -4
- package/dist/chunks/{workspace-hypq5myq.js → mime-znpe0pmp.js} +3 -3
- package/dist/chunks/{workspace-qtzxh67p.js → mime-zqc7hcjz.js} +36 -34
- package/dist/chunks/{workspace-cdrqa8qb.js → mime-zqh29h4g.js} +3 -3
- package/dist/chunks/{workspace-x3vv8s8k.js → mime-zqj53njk.js} +18 -18
- package/dist/chunks/{workspace-zxe9jjhn.js → mime-zxe9jjhn.js} +2 -2
- 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 +126 -126
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +131 -131
- package/dist/config/plugin/command.js +128 -128
- package/dist/config/plugin/formatter.js +122 -0
- package/dist/config/plugin/image.js +133 -0
- package/dist/config/plugin/instruction.js +87 -87
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +112 -112
- package/dist/config/plugin/provider.js +111 -111
- package/dist/config/plugin/reference.js +115 -115
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +134 -134
- package/dist/config/plugin/source.js +111 -111
- package/dist/config/plugin/websearch.js +111 -111
- package/dist/config/variable.js +4 -4
- package/dist/config.js +110 -110
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +70 -70
- package/dist/database/database.js +67 -67
- package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
- package/dist/database/drizzle/effect-sqlite/index.js +16 -16
- package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
- package/dist/database/drizzle/effect-sqlite/session.js +15 -15
- package/dist/database/drizzle/index.js +20 -20
- 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 +24 -24
- 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 +14 -14
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
- package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
- package/dist/database/drizzle/up-migrations/utils.js +2 -2
- package/dist/database/drizzle.js +21 -21
- 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.gen.js +46 -46
- package/dist/database/migration.js +48 -48
- 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 +79 -79
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +323 -319
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +90 -90
- 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 +70 -70
- package/dist/file-mutation.js +89 -89
- 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.js +111 -111
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +93 -93
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +93 -93
- package/dist/form.js +71 -71
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +82 -113
- package/dist/generate.js +85 -85
- 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 +21 -21
- 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 +3 -3
- 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 +12 -12
- 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/local-shell.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 +95 -124
- package/dist/image.js +95 -124
- package/dist/instruction-discovery.js +74 -74
- package/dist/instructions/builtins.js +83 -83
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +77 -77
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +70 -70
- package/dist/location-mutation.js +81 -81
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +323 -319
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +89 -89
- package/dist/mcp/index.js +95 -95
- package/dist/mcp/instructions.js +125 -151
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +83 -83
- package/dist/model.js +3 -3
- package/dist/models-dev.js +77 -77
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +101 -101
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +81 -81
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +185 -184
- package/dist/plugin/internal.js +281 -278
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +78 -78
- package/dist/plugin/plan.js +74 -74
- 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 +118 -118
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +116 -116
- package/dist/plugin/provider/deepinfra.js +3 -3
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +84 -84
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/groq.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +111 -111
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +111 -111
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +81 -81
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/togetherai.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 +111 -111
- package/dist/plugin/provider/xai.js +79 -79
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/runtime.js +176 -175
- package/dist/plugin/sdk.js +71 -71
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/supervisor-service.js +9 -0
- package/dist/plugin/supervisor.js +288 -284
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/warming.js +112 -112
- 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 +188 -185
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +79 -79
- 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 +72 -72
- package/dist/pty.js +114 -114
- package/dist/reference/instructions.js +79 -79
- package/dist/reference.js +77 -77
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +91 -91
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +148 -147
- package/dist/session/context.js +294 -291
- 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 +117 -117
- package/dist/session/execution.js +117 -117
- package/dist/session/generate-node.js +301 -297
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +79 -79
- package/dist/session/inbox.js +79 -79
- package/dist/session/info.js +89 -89
- package/dist/session/instruction-entry.js +75 -75
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-headers.js +4 -4
- package/dist/session/model-hook.js +11 -0
- package/dist/session/model-http.js +4 -4
- package/dist/session/model-request.js +303 -299
- package/dist/session/model-transport.js +4 -4
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/prompt-cache-key.js +3 -3
- package/dist/session/revert.js +116 -116
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +86 -86
- package/dist/session/runner/llm.js +310 -306
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +85 -85
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +74 -74
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +6 -6
- package/dist/session/store.js +97 -97
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +115 -114
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +182 -181
- package/dist/session/usage.js +2 -2
- package/dist/session.js +175 -174
- package/dist/shell/parse.js +4 -4
- 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/select.js +3 -3
- package/dist/shell.js +125 -125
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +103 -103
- package/dist/skill.js +102 -102
- package/dist/snapshot.js +111 -111
- 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 +124 -150
- package/dist/tool/plugin/edit.js +111 -141
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +113 -113
- package/dist/tool/plugin/grep.js +113 -113
- package/dist/tool/plugin/patch.js +111 -141
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +116 -116
- package/dist/tool/plugin/shell.js +180 -179
- package/dist/tool/plugin/skill.js +103 -103
- package/dist/tool/plugin/subagent.js +177 -176
- package/dist/tool/plugin/webfetch.js +104 -104
- package/dist/tool/plugin/websearch.js +106 -132
- package/dist/tool/plugin/write.js +111 -141
- package/dist/tool/read-filesystem.js +95 -95
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +112 -112
- package/dist/tool.js +117 -145
- package/dist/types/config/plugin/formatter.d.ts +9 -0
- package/dist/types/config/plugin/image.d.ts +4 -0
- package/dist/types/formatter.d.ts +7 -1
- package/dist/types/image.d.ts +11 -1
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/plugin/hooks.d.ts +3 -2
- package/dist/types/plugin/host.d.ts +34 -3
- package/dist/types/plugin/internal.d.ts +4 -3
- package/dist/types/plugin/supervisor-service.d.ts +13 -0
- package/dist/types/plugin/supervisor.d.ts +4 -9
- package/dist/types/plugin.d.ts +5 -2
- package/dist/types/session/history.d.ts +12 -0
- package/dist/types/session/model-hook.d.ts +12 -0
- package/dist/types/session/runner/publish-llm-event.d.ts +2 -0
- package/dist/types/session/transfer.d.ts +2 -0
- package/dist/types/tool/plugin/websearch.d.ts +1 -2
- package/dist/types/websearch.d.ts +6 -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 +1 -1
- package/dist/vcs/git.js +3 -3
- package/dist/vcs/hg.js +3 -3
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +84 -84
- package/dist/websearch.js +79 -72
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +74 -74
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +71 -71
- 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 +84 -84
- package/package.json +8 -8
- package/dist/chunks/workspace-30m8w5rb.js +0 -127
- /package/dist/chunks/{workspace-0cgt0xh2.js → mime-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{workspace-0f48qthw.js → mime-0f48qthw.js} +0 -0
- /package/dist/chunks/{workspace-0zz82cjq.js → mime-0zz82cjq.js} +0 -0
- /package/dist/chunks/{workspace-1fb7bmpf.js → mime-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{workspace-1wcz8fvj.js → mime-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{workspace-2qdx6zz3.js → mime-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{workspace-3c4nztf9.js → mime-3c4nztf9.js} +0 -0
- /package/dist/chunks/{workspace-3g3rpp2x.js → mime-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{workspace-3q6gbwmd.js → mime-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{workspace-3w3ybtfd.js → mime-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{workspace-47ty4mvs.js → mime-47ty4mvs.js} +0 -0
- /package/dist/chunks/{workspace-4b2tz2m9.js → mime-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{workspace-4zg0gww9.js → mime-4zg0gww9.js} +0 -0
- /package/dist/chunks/{workspace-5a5ch9ts.js → mime-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{workspace-5va1yh78.js → mime-5va1yh78.js} +0 -0
- /package/dist/chunks/{workspace-69qrqpw0.js → mime-69qrqpw0.js} +0 -0
- /package/dist/chunks/{workspace-6yt963b8.js → mime-6yt963b8.js} +0 -0
- /package/dist/chunks/{workspace-7n9qwqk4.js → mime-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{workspace-8nn8kqcn.js → mime-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{workspace-8sj3ajy5.js → mime-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{workspace-8w9tzfz1.js → mime-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{workspace-906y0b6d.js → mime-906y0b6d.js} +0 -0
- /package/dist/chunks/{workspace-9dct5xhx.js → mime-9dct5xhx.js} +0 -0
- /package/dist/chunks/{workspace-9sdtsapf.js → mime-9sdtsapf.js} +0 -0
- /package/dist/chunks/{workspace-a02svayp.js → mime-a02svayp.js} +0 -0
- /package/dist/chunks/{workspace-a83yvq99.js → mime-a83yvq99.js} +0 -0
- /package/dist/chunks/{workspace-ayevdmef.js → mime-ayevdmef.js} +0 -0
- /package/dist/chunks/{workspace-b02txbh8.js → mime-b02txbh8.js} +0 -0
- /package/dist/chunks/{workspace-bbqs2y60.js → mime-bbqs2y60.js} +0 -0
- /package/dist/chunks/{workspace-brsh5f65.js → mime-brsh5f65.js} +0 -0
- /package/dist/chunks/{workspace-bxdhjb3y.js → mime-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{workspace-c77ad0vh.js → mime-c77ad0vh.js} +0 -0
- /package/dist/chunks/{workspace-cm67rqy2.js → mime-cm67rqy2.js} +0 -0
- /package/dist/chunks/{workspace-d6s8p2vk.js → mime-d6s8p2vk.js} +0 -0
- /package/dist/chunks/{workspace-dbah77c1.js → mime-dbah77c1.js} +0 -0
- /package/dist/chunks/{workspace-df3v2q6j.js → mime-df3v2q6j.js} +0 -0
- /package/dist/chunks/{workspace-dgjzraq6.js → mime-dgjzraq6.js} +0 -0
- /package/dist/chunks/{workspace-dhcq6c44.js → mime-dhcq6c44.js} +0 -0
- /package/dist/chunks/{workspace-dht5baf0.js → mime-dht5baf0.js} +0 -0
- /package/dist/chunks/{workspace-dkmkay92.js → mime-dkmkay92.js} +0 -0
- /package/dist/chunks/{workspace-ecxv0vtt.js → mime-ecxv0vtt.js} +0 -0
- /package/dist/chunks/{workspace-ehj9csmv.js → mime-ehj9csmv.js} +0 -0
- /package/dist/chunks/{workspace-em6xpscd.js → mime-em6xpscd.js} +0 -0
- /package/dist/chunks/{workspace-emmqknsm.js → mime-emmqknsm.js} +0 -0
- /package/dist/chunks/{workspace-ezs3tagn.js → mime-ezs3tagn.js} +0 -0
- /package/dist/chunks/{workspace-f14r7hfz.js → mime-f14r7hfz.js} +0 -0
- /package/dist/chunks/{workspace-f4cp4g4a.js → mime-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{workspace-f84sxdqn.js → mime-f84sxdqn.js} +0 -0
- /package/dist/chunks/{workspace-faypg4r1.js → mime-faypg4r1.js} +0 -0
- /package/dist/chunks/{workspace-g7k9te92.js → mime-g7k9te92.js} +0 -0
- /package/dist/chunks/{workspace-gd5xeqc2.js → mime-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{workspace-ghm4673n.js → mime-ghm4673n.js} +0 -0
- /package/dist/chunks/{workspace-ghwjy7my.js → mime-ghwjy7my.js} +0 -0
- /package/dist/chunks/{workspace-gy500k2r.js → mime-gy500k2r.js} +0 -0
- /package/dist/chunks/{workspace-hzeg9cfr.js → mime-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{workspace-j07kk359.js → mime-j07kk359.js} +0 -0
- /package/dist/chunks/{workspace-jve7t217.js → mime-jve7t217.js} +0 -0
- /package/dist/chunks/{workspace-kpdbz7gn.js → mime-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{workspace-kxy11nzk.js → mime-kxy11nzk.js} +0 -0
- /package/dist/chunks/{workspace-kyyqvx4s.js → mime-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{workspace-m8cbvarh.js → mime-m8cbvarh.js} +0 -0
- /package/dist/chunks/{workspace-ma07p6tt.js → mime-ma07p6tt.js} +0 -0
- /package/dist/chunks/{workspace-ma60vzgv.js → mime-ma60vzgv.js} +0 -0
- /package/dist/chunks/{workspace-n3m50c2t.js → mime-n3m50c2t.js} +0 -0
- /package/dist/chunks/{workspace-nkm1m8dz.js → mime-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{workspace-nsc0c3zb.js → mime-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{workspace-qaarhjrp.js → mime-qaarhjrp.js} +0 -0
- /package/dist/chunks/{workspace-qc167nrn.js → mime-qc167nrn.js} +0 -0
- /package/dist/chunks/{workspace-qp95y4jb.js → mime-qp95y4jb.js} +0 -0
- /package/dist/chunks/{workspace-r8f4w671.js → mime-r8f4w671.js} +0 -0
- /package/dist/chunks/{workspace-rdfev9jy.js → mime-rdfev9jy.js} +0 -0
- /package/dist/chunks/{workspace-rvfvac9x.js → mime-rvfvac9x.js} +0 -0
- /package/dist/chunks/{workspace-s7whb9gt.js → mime-s7whb9gt.js} +0 -0
- /package/dist/chunks/{workspace-se76j685.js → mime-se76j685.js} +0 -0
- /package/dist/chunks/{workspace-sem2g21k.js → mime-sem2g21k.js} +0 -0
- /package/dist/chunks/{workspace-tmb1f636.js → mime-tmb1f636.js} +0 -0
- /package/dist/chunks/{workspace-ttxf0gsy.js → mime-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{workspace-tvmhrvfj.js → mime-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{workspace-v2adqbbe.js → mime-v2adqbbe.js} +0 -0
- /package/dist/chunks/{workspace-vkvb1sb3.js → mime-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{workspace-wj4sxzqa.js → mime-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{workspace-wwntjmk1.js → mime-wwntjmk1.js} +0 -0
- /package/dist/chunks/{workspace-wyqjaaa5.js → mime-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{workspace-x4q807cx.js → mime-x4q807cx.js} +0 -0
- /package/dist/chunks/{workspace-xhz3jyrc.js → mime-xhz3jyrc.js} +0 -0
- /package/dist/chunks/{workspace-yrqrg4vp.js → mime-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{workspace-z47nswr2.js → mime-z47nswr2.js} +0 -0
- /package/dist/chunks/{workspace-zsf8rs93.js → mime-zsf8rs93.js} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_location
|
|
3
|
+
} from "./mime-eb5hdjsy.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_state
|
|
6
|
+
} from "./mime-f2kz495y.js";
|
|
7
|
+
import {
|
|
8
|
+
__export
|
|
9
|
+
} from "./mime-rvfvac9x.js";
|
|
10
|
+
|
|
11
|
+
// src/formatter.ts
|
|
12
|
+
var exports_formatter = {};
|
|
13
|
+
__export(exports_formatter, {
|
|
14
|
+
node: () => node,
|
|
15
|
+
Service: () => Service,
|
|
16
|
+
Formatter: () => exports_formatter
|
|
17
|
+
});
|
|
18
|
+
import { Context, Effect, Layer } from "effect";
|
|
19
|
+
import { ChildProcess } from "effect/unstable/process";
|
|
20
|
+
import path from "path";
|
|
21
|
+
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
22
|
+
import { AppProcess } from "@opencode-ai/util/process";
|
|
23
|
+
class Service extends Context.Service()("@opencode/v2/Formatter") {
|
|
24
|
+
}
|
|
25
|
+
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
26
|
+
const location = yield* exports_location.Service;
|
|
27
|
+
const processes = yield* AppProcess.Service;
|
|
28
|
+
const commands = new WeakMap;
|
|
29
|
+
const state = exports_state.create({
|
|
30
|
+
name: "formatter",
|
|
31
|
+
initial: () => ({ formatters: [] }),
|
|
32
|
+
draft: (draft) => ({
|
|
33
|
+
set: (formatter) => {
|
|
34
|
+
const index = draft.formatters.findIndex((item) => item.name === formatter.name);
|
|
35
|
+
if (index === -1)
|
|
36
|
+
draft.formatters.push(formatter);
|
|
37
|
+
else
|
|
38
|
+
draft.formatters[index] = formatter;
|
|
39
|
+
},
|
|
40
|
+
remove: (name) => {
|
|
41
|
+
draft.formatters = draft.formatters.filter((formatter) => formatter.name !== name);
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
const command = Effect.fnUntraced(function* (formatter) {
|
|
46
|
+
const cached = commands.get(formatter);
|
|
47
|
+
if (cached !== undefined)
|
|
48
|
+
return cached;
|
|
49
|
+
const result = yield* formatter.enabled;
|
|
50
|
+
if (result !== false)
|
|
51
|
+
commands.set(formatter, result);
|
|
52
|
+
return result;
|
|
53
|
+
});
|
|
54
|
+
const file = Effect.fn("Formatter.file")(function* (filepath) {
|
|
55
|
+
const matching = state.get().formatters.filter((formatter) => formatter.extensions.includes(path.extname(filepath)));
|
|
56
|
+
for (const formatter of matching) {
|
|
57
|
+
const enabled = yield* command(formatter);
|
|
58
|
+
if (enabled === false)
|
|
59
|
+
continue;
|
|
60
|
+
const cmd = enabled.map((argument) => argument.replace("$FILE", filepath));
|
|
61
|
+
yield* Effect.logInfo("formatting file", { file: filepath, command: cmd });
|
|
62
|
+
const result = yield* processes.run(ChildProcess.make(cmd[0], cmd.slice(1), {
|
|
63
|
+
cwd: location.directory,
|
|
64
|
+
env: formatter.environment,
|
|
65
|
+
extendEnv: true,
|
|
66
|
+
stdin: "ignore",
|
|
67
|
+
stdout: "ignore",
|
|
68
|
+
stderr: "ignore"
|
|
69
|
+
})).pipe(Effect.catch((error) => Effect.logError("failed to format file", {
|
|
70
|
+
file: filepath,
|
|
71
|
+
command: cmd,
|
|
72
|
+
error: error.message
|
|
73
|
+
}).pipe(Effect.as(undefined))));
|
|
74
|
+
if (!result)
|
|
75
|
+
continue;
|
|
76
|
+
if (result.exitCode === 0)
|
|
77
|
+
return true;
|
|
78
|
+
yield* Effect.logError("formatter exited unsuccessfully", {
|
|
79
|
+
file: filepath,
|
|
80
|
+
command: cmd,
|
|
81
|
+
exitCode: result.exitCode
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
});
|
|
86
|
+
return Service.of({ transform: state.transform, reload: state.reload, file });
|
|
87
|
+
}));
|
|
88
|
+
var node = makeLocationNode({
|
|
89
|
+
service: Service,
|
|
90
|
+
layer,
|
|
91
|
+
deps: [exports_location.node, AppProcess.node]
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export { Service, node, exports_formatter };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_form
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-f2xgb1qf.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_state
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-f2kz495y.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_credential
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-gh0z3156.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_bus
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-5z002fgv.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-rvfvac9x.js";
|
|
16
16
|
|
|
17
17
|
// src/integration.ts
|
|
18
18
|
var exports_integration = {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
SessionMessageTable
|
|
3
|
+
} from "./mime-9d2xhdr4.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_message
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
SessionMessageTable
|
|
9
|
-
} from "./workspace-9d2xhdr4.js";
|
|
6
|
+
} from "./mime-25pxtba7.js";
|
|
10
7
|
import {
|
|
11
8
|
SessionEvent
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./mime-a83yvq99.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_schema
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./mime-y8rs54ne.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
14
|
+
exports_snapshot
|
|
15
|
+
} from "./mime-kncv2mch.js";
|
|
19
16
|
import {
|
|
20
17
|
exports_bus
|
|
21
|
-
} from "./
|
|
18
|
+
} from "./mime-5z002fgv.js";
|
|
22
19
|
import {
|
|
23
20
|
exports_database
|
|
24
|
-
} from "./
|
|
21
|
+
} from "./mime-4t6aa660.js";
|
|
22
|
+
import {
|
|
23
|
+
RelativePath
|
|
24
|
+
} from "./mime-j07kk359.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./mime-rvfvac9x.js";
|
|
28
28
|
|
|
29
29
|
// src/session/revert.ts
|
|
30
30
|
var exports_revert = {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
collectBoundedResponseBody
|
|
3
|
+
} from "./mime-jve7t217.js";
|
|
1
4
|
import {
|
|
2
5
|
MAX_MARKDOWN_BYTES,
|
|
3
6
|
convertHTMLToMarkdown
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
collectBoundedResponseBody
|
|
7
|
-
} from "./workspace-jve7t217.js";
|
|
7
|
+
} from "./mime-xhz3jyrc.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_permission
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./mime-p3mc079v.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./mime-rvfvac9x.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
SQLiteEffectPreparedQuery,
|
|
3
3
|
SQLiteEffectSession,
|
|
4
4
|
SQLiteEffectTransaction
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./mime-7ykwj0ht.js";
|
|
6
6
|
|
|
7
7
|
// src/database/drizzle/effect-sqlite/session.ts
|
|
8
8
|
import * as Context from "effect/Context";
|
|
@@ -34,10 +34,10 @@ class EffectSQLiteSession extends SQLiteEffectSession {
|
|
|
34
34
|
execute(query, params, method) {
|
|
35
35
|
const statement = this.client.unsafe(query.sql, params);
|
|
36
36
|
if (method === "values")
|
|
37
|
-
return statement.values;
|
|
37
|
+
return statement.values.pipe(Effect.withTracerEnabled(false));
|
|
38
38
|
if (method === "get")
|
|
39
|
-
return statement.withoutTransform.pipe(Effect.map((rows) => rows[0]));
|
|
40
|
-
return statement.withoutTransform;
|
|
39
|
+
return statement.withoutTransform.pipe(Effect.map((rows) => rows[0]), Effect.withTracerEnabled(false));
|
|
40
|
+
return statement.withoutTransform.pipe(Effect.withTracerEnabled(false));
|
|
41
41
|
}
|
|
42
42
|
isInTransaction() {
|
|
43
43
|
return Effect.serviceOption(this.client.transactionService).pipe(Effect.map((option) => option._tag === "Some"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-rvfvac9x.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/hooks.ts
|
|
6
6
|
var exports_hooks = {};
|
|
@@ -11,22 +11,31 @@ __export(exports_hooks, {
|
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
14
|
+
var eventProviderID = (event) => {
|
|
15
|
+
if (typeof event !== "object" || event === null || !("model" in event))
|
|
16
|
+
return;
|
|
17
|
+
const model = event.model;
|
|
18
|
+
if (typeof model !== "object" || model === null || !("providerID" in model))
|
|
19
|
+
return;
|
|
20
|
+
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
|
+
};
|
|
14
22
|
|
|
15
23
|
class Service extends Context.Service()("@opencode/PluginHooks") {
|
|
16
24
|
}
|
|
17
25
|
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
18
26
|
const callbacks = new Map;
|
|
19
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
20
|
-
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback) {
|
|
28
|
+
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
21
29
|
const scope = yield* Scope.Scope;
|
|
22
30
|
const id = key(domain, name);
|
|
23
31
|
let active = true;
|
|
24
|
-
|
|
32
|
+
const entry = { callback, options };
|
|
33
|
+
callbacks.set(id, [...callbacks.get(id) ?? [], entry]);
|
|
25
34
|
const dispose = Effect.sync(() => {
|
|
26
35
|
if (!active)
|
|
27
36
|
return;
|
|
28
37
|
active = false;
|
|
29
|
-
const next = (callbacks.get(id) ?? []).filter((item) => item !==
|
|
38
|
+
const next = (callbacks.get(id) ?? []).filter((item) => item !== entry);
|
|
30
39
|
if (next.length === 0)
|
|
31
40
|
callbacks.delete(id);
|
|
32
41
|
else
|
|
@@ -35,16 +44,16 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
35
44
|
yield* Scope.addFinalizer(scope, dispose);
|
|
36
45
|
return { dispose };
|
|
37
46
|
});
|
|
38
|
-
const trigger = Effect.
|
|
39
|
-
for (const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
]);
|
|
47
|
+
const trigger = Effect.fnUntraced(function* (domain, name, event) {
|
|
48
|
+
for (const entry of callbacks.get(key(domain, name)) ?? []) {
|
|
49
|
+
if (entry.options?.providerID !== undefined && entry.options.providerID !== eventProviderID(event))
|
|
50
|
+
continue;
|
|
51
|
+
const result = Reflect.apply(entry.callback, undefined, [event]);
|
|
43
52
|
yield* result;
|
|
44
53
|
}
|
|
45
54
|
return event;
|
|
46
55
|
});
|
|
47
|
-
const has = (domain, name) => Effect.sync(() => callbacks.
|
|
56
|
+
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
48
57
|
return Service.of({ has, register, trigger });
|
|
49
58
|
}));
|
|
50
59
|
var node = makeLocationNode({ service: Service, layer, deps: [] });
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_sdk
|
|
3
|
-
} from "./workspace-1twqj3ra.js";
|
|
4
|
-
import {
|
|
5
|
-
exports_promise
|
|
6
|
-
} from "./workspace-5vcssjzn.js";
|
|
7
1
|
import {
|
|
8
2
|
exports_internal
|
|
9
|
-
} from "./
|
|
3
|
+
} from "./mime-mx09vdxm.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_sdk
|
|
6
|
+
} from "./mime-f5s1jx1h.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_source
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./mime-nrqwyjqz.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_promise
|
|
12
|
+
} from "./mime-5vcssjzn.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_plugin
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-j87m98ha.js";
|
|
16
|
+
import {
|
|
17
|
+
Service
|
|
18
|
+
} from "./mime-s33fw6zm.js";
|
|
16
19
|
import {
|
|
17
20
|
exports_bus
|
|
18
|
-
} from "./
|
|
21
|
+
} from "./mime-5z002fgv.js";
|
|
19
22
|
import {
|
|
20
23
|
__export
|
|
21
|
-
} from "./
|
|
24
|
+
} from "./mime-rvfvac9x.js";
|
|
22
25
|
|
|
23
26
|
// src/plugin/supervisor.ts
|
|
24
27
|
var exports_supervisor = {};
|
|
@@ -29,7 +32,7 @@ __export(exports_supervisor, {
|
|
|
29
32
|
PluginSupervisor: () => exports_supervisor
|
|
30
33
|
});
|
|
31
34
|
import { Event } from "@opencode-ai/schema/config";
|
|
32
|
-
import {
|
|
35
|
+
import { Cause, Deferred, Effect, Layer, Schema, Stream } from "effect";
|
|
33
36
|
import path from "path";
|
|
34
37
|
import { pathToFileURL } from "url";
|
|
35
38
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -39,10 +42,12 @@ var PluginModule = Schema.Struct({
|
|
|
39
42
|
default: Schema.Union([
|
|
40
43
|
Schema.Struct({
|
|
41
44
|
id: Schema.String,
|
|
45
|
+
tui: Schema.optional(Schema.Boolean),
|
|
42
46
|
effect: Schema.declare((input) => typeof input === "function")
|
|
43
47
|
}),
|
|
44
48
|
Schema.Struct({
|
|
45
49
|
id: Schema.String,
|
|
50
|
+
tui: Schema.optional(Schema.Boolean),
|
|
46
51
|
setup: Schema.declare((input) => typeof input === "function")
|
|
47
52
|
})
|
|
48
53
|
])
|
|
@@ -52,9 +57,12 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (pre, post, operat
|
|
|
52
57
|
const definitions = [...pre, ...post];
|
|
53
58
|
const enabled = new Set(definitions.map((plugin) => plugin.id));
|
|
54
59
|
const packages = new Map;
|
|
60
|
+
const failures = new Map;
|
|
55
61
|
const plugins = () => [...definitions, ...packages.values()];
|
|
56
62
|
for (const operation of operations) {
|
|
57
63
|
if (operation.type === "remove") {
|
|
64
|
+
if (operation.target === "*")
|
|
65
|
+
failures.clear();
|
|
58
66
|
plugins().filter((plugin2) => matches(operation.target, plugin2.id)).forEach((plugin2) => enabled.delete(plugin2.id));
|
|
59
67
|
continue;
|
|
60
68
|
}
|
|
@@ -64,26 +72,37 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (pre, post, operat
|
|
|
64
72
|
matched.forEach((plugin2) => enabled.add(plugin2.id));
|
|
65
73
|
continue;
|
|
66
74
|
}
|
|
67
|
-
const plugin = yield* load(operation).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to load plugin", { target: operation.target, cause }).pipe(Effect.as(
|
|
68
|
-
if (
|
|
75
|
+
const plugin = yield* load(operation).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to load plugin", { target: operation.target, cause }).pipe(Effect.as({ error: Cause.pretty(cause) }))));
|
|
76
|
+
if ("error" in plugin) {
|
|
77
|
+
failures.set(operation.target, {
|
|
78
|
+
source: pluginSource(operation.target),
|
|
79
|
+
status: "failed",
|
|
80
|
+
error: plugin.error,
|
|
81
|
+
tui: false
|
|
82
|
+
});
|
|
69
83
|
continue;
|
|
84
|
+
}
|
|
85
|
+
failures.delete(operation.target);
|
|
70
86
|
const previous = packages.get(operation.target);
|
|
71
87
|
if (previous)
|
|
72
88
|
enabled.delete(previous.id);
|
|
73
89
|
packages.set(operation.target, plugin);
|
|
74
90
|
enabled.add(plugin.id);
|
|
75
91
|
}
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
92
|
+
return {
|
|
93
|
+
plugins: [
|
|
94
|
+
...pre.filter((plugin) => enabled.has(plugin.id)),
|
|
95
|
+
...Array.from(packages.values()).filter((plugin) => enabled.has(plugin.id)),
|
|
96
|
+
...post.filter((plugin) => enabled.has(plugin.id))
|
|
97
|
+
],
|
|
98
|
+
failures: [...failures.values()]
|
|
99
|
+
};
|
|
81
100
|
});
|
|
82
101
|
var load = Effect.fn("PluginSupervisor.load")(function* (operation) {
|
|
83
102
|
const npm = yield* Npm.Service;
|
|
84
103
|
const entrypoint = path.isAbsolute(operation.target) ? pathToFileURL(operation.target).href : (yield* npm.add(operation.target, { subpaths: ["server", ""] })).entrypoint;
|
|
85
104
|
if (!entrypoint)
|
|
86
|
-
return;
|
|
105
|
+
return yield* Effect.fail(new Error(`Plugin entrypoint not found: ${operation.target}`));
|
|
87
106
|
const source = operation.mtime === undefined ? entrypoint : typeof Bun !== "undefined" ? `${operation.target.replaceAll("\\", "/")}?mtime=${operation.mtime}` : `${entrypoint}?mtime=${operation.mtime}`;
|
|
88
107
|
yield* Effect.log({ msg: "loading plugin", id: operation.target, entrypoint: source });
|
|
89
108
|
const mod = yield* Effect.promise(() => importModule(source));
|
|
@@ -91,13 +110,12 @@ var load = Effect.fn("PluginSupervisor.load")(function* (operation) {
|
|
|
91
110
|
const plugin = "effect" in value ? value : exports_promise.fromPromise(value);
|
|
92
111
|
return {
|
|
93
112
|
id: plugin.id,
|
|
113
|
+
tui: plugin.tui,
|
|
94
114
|
version: JSON.stringify(operation),
|
|
115
|
+
source: pluginSource(operation.target),
|
|
95
116
|
effect: (host) => plugin.effect({ ...host, options: operation.options })
|
|
96
117
|
};
|
|
97
118
|
});
|
|
98
|
-
|
|
99
|
-
class Service extends Context.Service()("@opencode/PluginSupervisor") {
|
|
100
|
-
}
|
|
101
119
|
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
102
120
|
const registry = yield* exports_plugin.Service;
|
|
103
121
|
const sdk = yield* exports_sdk.Service;
|
|
@@ -107,11 +125,18 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
107
125
|
let observed = 0;
|
|
108
126
|
const activate = Effect.fn("PluginSupervisor.activate")(function* () {
|
|
109
127
|
const internal = yield* exports_internal.list();
|
|
110
|
-
const pre = [
|
|
111
|
-
|
|
128
|
+
const pre = [
|
|
129
|
+
...internal.pre.map((plugin) => ({ ...plugin, version: "internal", source: { type: "builtin" } })),
|
|
130
|
+
...sdk.all()
|
|
131
|
+
];
|
|
132
|
+
const post = internal.post.map((plugin) => ({
|
|
133
|
+
...plugin,
|
|
134
|
+
version: "internal",
|
|
135
|
+
source: { type: "builtin" }
|
|
136
|
+
}));
|
|
112
137
|
const operations = yield* sources.operations();
|
|
113
|
-
const
|
|
114
|
-
yield* registry.activate(plugins);
|
|
138
|
+
const resolved = yield* resolve(pre, post, operations);
|
|
139
|
+
yield* registry.activate(resolved.plugins, resolved.failures);
|
|
115
140
|
});
|
|
116
141
|
const updates = Stream.merge(sources.changes(), bus.subscribe([Event.Updated, exports_sdk.Updated])).pipe(Stream.mapEffect(() => Effect.gen(function* () {
|
|
117
142
|
observed++;
|
|
@@ -134,6 +159,11 @@ var nodeDeps = [
|
|
|
134
159
|
Npm.node,
|
|
135
160
|
exports_internal.requirements
|
|
136
161
|
];
|
|
162
|
+
function pluginSource(target) {
|
|
163
|
+
if (path.isAbsolute(target))
|
|
164
|
+
return { type: "local", path: target };
|
|
165
|
+
return { type: "package", package: target };
|
|
166
|
+
}
|
|
137
167
|
var node = makeLocationNode({ service: Service, layer, deps: nodeDeps });
|
|
138
168
|
|
|
139
|
-
export {
|
|
169
|
+
export { layer, node, exports_supervisor };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_runtime
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-z4c043ys.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_permission
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-p3mc079v.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_agent
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-wyfynpb1.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_schema
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-y8rs54ne.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_config
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-medfj1t3.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./mime-rvfvac9x.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/plugin/subagent.ts
|
|
21
21
|
var exports_subagent = {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fileDiff
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_location_mutation
|
|
6
|
-
} from "./workspace-dekpq9bn.js";
|
|
3
|
+
} from "./mime-c77ad0vh.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_formatter
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./mime-tfgm610x.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_file_mutation
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./mime-znpe0pmp.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_location_mutation
|
|
12
|
+
} from "./mime-t25342ez.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_permission
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-p3mc079v.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_environment1 as exports_environment
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./mime-5jbprqc1.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_location
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./mime-eb5hdjsy.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./mime-rvfvac9x.js";
|
|
25
25
|
|
|
26
26
|
// src/tool/plugin/patch.ts
|
|
27
27
|
var exports_patch = {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./mime-rvfvac9x.js";
|
|
4
|
+
|
|
5
|
+
// src/session/model-hook.ts
|
|
6
|
+
var exports_model_hook = {};
|
|
7
|
+
__export(exports_model_hook, {
|
|
8
|
+
apply: () => apply,
|
|
9
|
+
SessionModelHook: () => exports_model_hook
|
|
10
|
+
});
|
|
11
|
+
import { HttpOptions, LanguageModel, LLMRequest } from "@opencode-ai/ai";
|
|
12
|
+
import { Effect } from "effect";
|
|
13
|
+
var apply = (hooks, input, request) => Effect.gen(function* () {
|
|
14
|
+
const currentBaseURL = request.model.route.endpoint.baseURL;
|
|
15
|
+
const event = yield* hooks.trigger("session", "model.request", {
|
|
16
|
+
...input,
|
|
17
|
+
baseURL: typeof currentBaseURL === "string" ? currentBaseURL : undefined,
|
|
18
|
+
headers: { ...request.http?.headers }
|
|
19
|
+
});
|
|
20
|
+
const route = event.baseURL !== undefined && event.baseURL !== currentBaseURL ? request.model.route.with({ endpoint: { baseURL: event.baseURL } }) : request.model.route;
|
|
21
|
+
return LLMRequest.update(request, {
|
|
22
|
+
model: route === request.model.route ? request.model : LanguageModel.update(request.model, { route }),
|
|
23
|
+
http: new HttpOptions({
|
|
24
|
+
body: request.http?.body,
|
|
25
|
+
headers: Object.keys(event.headers).length === 0 ? undefined : event.headers,
|
|
26
|
+
query: request.http?.query
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { apply, exports_model_hook };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_agent
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-wyfynpb1.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_schema
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_model
|
|
9
|
-
} from "./workspace-1px4xhxb.js";
|
|
10
|
-
import {
|
|
11
|
-
exports_provider
|
|
12
|
-
} from "./workspace-8twz6z1z.js";
|
|
6
|
+
} from "./mime-y8rs54ne.js";
|
|
13
7
|
import {
|
|
14
8
|
exports_workspace
|
|
15
|
-
} from "./
|
|
9
|
+
} from "./mime-hs9j5s4f.js";
|
|
16
10
|
import {
|
|
17
11
|
exports_location
|
|
18
|
-
} from "./
|
|
12
|
+
} from "./mime-eb5hdjsy.js";
|
|
19
13
|
import {
|
|
20
14
|
exports_project
|
|
21
|
-
} from "./
|
|
15
|
+
} from "./mime-bw52wkfv.js";
|
|
16
|
+
import {
|
|
17
|
+
exports_model
|
|
18
|
+
} from "./mime-wh0zhxcg.js";
|
|
22
19
|
import {
|
|
23
20
|
AbsolutePath,
|
|
24
21
|
RelativePath
|
|
25
|
-
} from "./
|
|
22
|
+
} from "./mime-j07kk359.js";
|
|
23
|
+
import {
|
|
24
|
+
exports_provider
|
|
25
|
+
} from "./mime-sfbv6a2b.js";
|
|
26
26
|
|
|
27
27
|
// src/session/info.ts
|
|
28
28
|
import { DateTime, Schema } from "effect";
|