@opencode-ai/core 0.0.0-dev-17582 → 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/{websearch-02dbfq60.js → mime-02dbfq60.js} +1 -1
- package/dist/chunks/{websearch-04kwjb53.js → mime-04kwjb53.js} +2 -2
- package/dist/chunks/{websearch-j2f50m4s.js → mime-0b6ye7sf.js} +3 -3
- package/dist/chunks/{websearch-0kvmztkf.js → mime-0kvmztkf.js} +1 -1
- package/dist/chunks/{websearch-8wkhz4wr.js → mime-13qhwf0e.js} +14 -14
- package/dist/chunks/{websearch-18pv8fg3.js → mime-18pv8fg3.js} +2 -2
- package/dist/chunks/{websearch-1c00jchy.js → mime-1c00jchy.js} +2 -2
- package/dist/chunks/{websearch-sd01nz5y.js → mime-1gj47tzx.js} +5 -5
- package/dist/chunks/{websearch-p3zwavty.js → mime-1h0r72pv.js} +11 -3
- package/dist/chunks/{websearch-56jrf0jv.js → mime-1hhva3eh.js} +14 -14
- package/dist/chunks/{websearch-m32yazy2.js → mime-1mrs6vt8.js} +9 -9
- package/dist/chunks/{websearch-s5zqn0xe.js → mime-1tzj0dd9.js} +3 -3
- package/dist/chunks/{websearch-1xksxgzs.js → mime-1xksxgzs.js} +2 -2
- package/dist/chunks/{websearch-25pxtba7.js → mime-25pxtba7.js} +1 -1
- package/dist/chunks/{websearch-8dwkjrbx.js → mime-2akqrmqf.js} +1 -1
- package/dist/chunks/{websearch-2nmyybe0.js → mime-2nmyybe0.js} +1 -1
- package/dist/chunks/{websearch-ca8f1wt4.js → mime-30900e5h.js} +3 -3
- package/dist/chunks/{websearch-kjkmrs65.js → mime-33bxv4t4.js} +2 -2
- package/dist/chunks/{websearch-afqwkys2.js → mime-3f4g5nwg.js} +6 -6
- package/dist/chunks/{websearch-3g8vftxb.js → mime-3g8vftxb.js} +2 -2
- package/dist/chunks/{websearch-88qb0tmf.js → mime-3gs06w7d.js} +3 -3
- package/dist/chunks/{websearch-zha9e5h1.js → mime-3kc1tq2m.js} +8 -8
- package/dist/chunks/{websearch-3s0v3w6x.js → mime-3m2x7z28.js} +7 -7
- package/dist/chunks/{websearch-3thh6229.js → mime-3thh6229.js} +2 -2
- package/dist/chunks/{websearch-nn74kgn6.js → mime-3ysxg2s0.js} +107 -21
- package/dist/chunks/{websearch-42q4drvy.js → mime-42q4drvy.js} +2 -2
- package/dist/chunks/{websearch-24yfd663.js → mime-47p6zysw.js} +3 -3
- package/dist/chunks/{websearch-wc673qb1.js → mime-4ezmpqhe.js} +4 -4
- package/dist/chunks/{websearch-j2s807q1.js → mime-4j29e2x9.js} +21 -21
- package/dist/chunks/{websearch-hvqcyvjd.js → mime-4jr23pkv.js} +7 -7
- package/dist/chunks/{websearch-bkewyb6a.js → mime-4kedsmp8.js} +14 -16
- package/dist/chunks/{websearch-gphf739a.js → mime-4p267gw4.js} +3 -3
- package/dist/chunks/{websearch-4s2xwh5d.js → mime-4s2xwh5d.js} +3 -3
- package/dist/chunks/{websearch-w0yv1t8e.js → mime-4t6aa660.js} +5 -5
- package/dist/chunks/{websearch-4zzdwbaz.js → mime-4zzdwbaz.js} +2 -2
- package/dist/chunks/{websearch-50jxp3hw.js → mime-50jxp3hw.js} +1 -1
- package/dist/chunks/{websearch-5g7qz6sn.js → mime-50x5dgrv.js} +29 -16
- package/dist/chunks/{websearch-52jzav25.js → mime-52jzav25.js} +1 -1
- package/dist/chunks/{websearch-57tzwnz4.js → mime-57tzwnz4.js} +1 -1
- package/dist/chunks/{websearch-gncb93e3.js → mime-592eewvg.js} +5 -5
- package/dist/chunks/{websearch-m7bz89nk.js → mime-5exb3yw5.js} +27 -27
- package/dist/chunks/{websearch-7mfhcadw.js → mime-5jbprqc1.js} +9 -9
- package/dist/chunks/{websearch-8xyvdy78.js → mime-5mtcebgq.js} +7 -7
- package/dist/chunks/{websearch-r2hr2rpb.js → mime-5nxvq64r.js} +2 -2
- package/dist/chunks/{websearch-5pnhvvbf.js → mime-5pnhvvbf.js} +4 -4
- package/dist/chunks/{websearch-5rs65q6p.js → mime-5rs65q6p.js} +1 -1
- package/dist/chunks/{websearch-n9pgr18k.js → mime-5v9mn1f2.js} +5 -5
- package/dist/chunks/{websearch-5vcssjzn.js → mime-5vcssjzn.js} +1 -1
- package/dist/chunks/{websearch-cvh8045m.js → mime-5yea2tah.js} +2 -2
- package/dist/chunks/{websearch-ckqcetpa.js → mime-5z002fgv.js} +4 -4
- package/dist/chunks/{websearch-qc95qme2.js → mime-60zr2e5a.js} +7 -7
- package/dist/chunks/{websearch-zfkp1a3r.js → mime-660dga2n.js} +8 -8
- package/dist/chunks/{websearch-6ky7rqk7.js → mime-6ky7rqk7.js} +1 -1
- package/dist/chunks/{websearch-vacr5vr5.js → mime-6q0m15b3.js} +2 -2
- package/dist/chunks/{websearch-706a4azd.js → mime-706a4azd.js} +1 -1
- package/dist/chunks/{websearch-dj960hbq.js → mime-77pp0h5x.js} +8 -8
- package/dist/chunks/{websearch-7mrpdsq5.js → mime-7mrpdsq5.js} +1 -1
- package/dist/chunks/{websearch-7wcmqxrc.js → mime-7wcmqxrc.js} +1 -1
- package/dist/chunks/{websearch-2jz5pz9j.js → mime-7x2jjfgf.js} +2 -2
- package/dist/chunks/{websearch-qy071k7t.js → mime-7xm5mbbb.js} +3 -3
- package/dist/chunks/{websearch-acwmv3j7.js → mime-7ykwj0ht.js} +3 -3
- package/dist/chunks/{websearch-6csevxcp.js → mime-82akp21f.js} +3 -3
- package/dist/chunks/{websearch-6fsc65vm.js → mime-873415w0.js} +5 -5
- package/dist/chunks/{websearch-88jbfw8z.js → mime-88jbfw8z.js} +2 -2
- package/dist/chunks/{websearch-8bkmtpp6.js → mime-8bkmtpp6.js} +2 -2
- package/dist/chunks/{websearch-xjreyxj2.js → mime-8k08086v.js} +1 -1
- package/dist/chunks/{websearch-sfg3m1gf.js → mime-8nmstyrn.js} +3 -3
- package/dist/chunks/{websearch-8v47shgf.js → mime-8v47shgf.js} +2 -2
- package/dist/chunks/{websearch-3gz7ezq3.js → mime-8v8q81cw.js} +3 -3
- package/dist/chunks/{websearch-ty32qpp2.js → mime-8vmqyhwc.js} +7 -7
- package/dist/chunks/{websearch-93qdgxxd.js → mime-93qdgxxd.js} +1 -1
- package/dist/chunks/{websearch-999qd968.js → mime-999qd968.js} +1 -1
- package/dist/chunks/{websearch-9d2xhdr4.js → mime-9d2xhdr4.js} +3 -3
- package/dist/chunks/{websearch-9f0rnpkn.js → mime-9f0rnpkn.js} +1 -1
- package/dist/chunks/{websearch-a65h300v.js → mime-a65h300v.js} +2 -2
- package/dist/chunks/{websearch-nahbad6n.js → mime-an8x7w22.js} +24 -24
- package/dist/chunks/{websearch-jwcdbjdr.js → mime-atc09b0q.js} +2 -2
- package/dist/chunks/{websearch-ayfwnm78.js → mime-ayfwnm78.js} +2 -2
- package/dist/chunks/{websearch-1w37fbzd.js → mime-b0wtjnmw.js} +5 -5
- package/dist/chunks/{websearch-px7n0cd3.js → mime-b25zdeh7.js} +1 -1
- package/dist/chunks/{websearch-yd27s2y4.js → mime-b5skftse.js} +4 -4
- package/dist/chunks/{websearch-s9f13v9h.js → mime-b8rm84kg.js} +2 -2
- package/dist/chunks/{websearch-3tyyvymr.js → mime-bhbhpzk5.js} +23 -19
- package/dist/chunks/{websearch-nqyb7pg5.js → mime-bmeefwwa.js} +6 -6
- package/dist/chunks/{websearch-xg3qgrrb.js → mime-bmweayxc.js} +3 -3
- package/dist/chunks/{websearch-0vcctnjy.js → mime-bw52wkfv.js} +14 -14
- package/dist/chunks/{websearch-byab506k.js → mime-byab506k.js} +1 -1
- package/dist/chunks/{websearch-r7eqrdms.js → mime-ck6rqj6g.js} +9 -9
- package/dist/chunks/{websearch-gxf6nabf.js → mime-cy70ntq3.js} +80 -80
- package/dist/chunks/{websearch-cz3dkvcz.js → mime-cz3dkvcz.js} +1 -1
- package/dist/chunks/{websearch-6sywm38z.js → mime-d2zt7htj.js} +4 -4
- package/dist/chunks/{websearch-qrjdcxzp.js → mime-d4rx38gf.js} +10 -10
- package/dist/chunks/{websearch-dhphtf1x.js → mime-dhphtf1x.js} +1 -1
- package/dist/chunks/{websearch-38crwsq8.js → mime-dman5pj0.js} +9 -3
- package/dist/chunks/mime-drf5k5p8.js +46 -0
- package/dist/chunks/{websearch-dyz5q1tb.js → mime-dyz5q1tb.js} +2 -2
- package/dist/chunks/{websearch-e1z9a0ts.js → mime-e1z9a0ts.js} +2 -2
- package/dist/chunks/{websearch-ah6m5ygb.js → mime-e7cjzqm2.js} +8 -8
- package/dist/chunks/{websearch-eztrm62x.js → mime-ea333rs5.js} +9 -9
- package/dist/chunks/{websearch-jjq7wvgp.js → mime-eb5hdjsy.js} +2 -2
- package/dist/chunks/{websearch-ec8vrfw5.js → mime-ec8vrfw5.js} +1 -1
- package/dist/chunks/{websearch-sxwhj9mz.js → mime-ek19204r.js} +3 -3
- package/dist/chunks/{websearch-erj4j75s.js → mime-erj4j75s.js} +1 -1
- package/dist/chunks/{websearch-w30vppx2.js → mime-ewd83fnw.js} +5 -5
- package/dist/chunks/{websearch-4nec8eyz.js → mime-exm5hbk3.js} +65 -58
- package/dist/chunks/{websearch-eyk9wdct.js → mime-eyk9wdct.js} +2 -2
- package/dist/chunks/{websearch-f05p34aa.js → mime-f05p34aa.js} +3 -3
- package/dist/chunks/{websearch-wt193r4g.js → mime-f2kz495y.js} +2 -2
- package/dist/chunks/{websearch-pw7tkxp2.js → mime-f2xgb1qf.js} +2 -2
- package/dist/chunks/{websearch-gamfbts3.js → mime-f5s1jx1h.js} +3 -3
- package/dist/chunks/{websearch-hc40tjd3.js → mime-fbf8ec7k.js} +41 -37
- package/dist/chunks/{websearch-7drfgzqd.js → mime-fk7yh104.js} +15 -15
- package/dist/chunks/{websearch-8b9q7n04.js → mime-fn8d7ca3.js} +2 -2
- package/dist/chunks/{websearch-qw46agz5.js → mime-fngyfxbk.js} +3 -3
- package/dist/chunks/{websearch-z3nf8g8y.js → mime-fqxzsdmq.js} +2 -2
- package/dist/chunks/{websearch-7dfdh8h3.js → mime-fxt5cm25.js} +9 -9
- package/dist/chunks/{websearch-xkqxd66x.js → mime-fy4jg8mq.js} +3 -3
- package/dist/chunks/{websearch-a16fka1m.js → mime-fzcmfdsy.js} +27 -24
- package/dist/chunks/{websearch-txsjtzzj.js → mime-g3yw3bq3.js} +25 -9
- package/dist/chunks/{websearch-g9yygpzr.js → mime-g9yygpzr.js} +1 -1
- package/dist/chunks/{websearch-gcay93cp.js → mime-gcay93cp.js} +1 -1
- package/dist/chunks/{websearch-gd2xppx8.js → mime-gd2xppx8.js} +1 -1
- package/dist/chunks/{websearch-ma1d0wnv.js → mime-gh0z3156.js} +3 -3
- package/dist/chunks/{websearch-6674113h.js → mime-gt0h2tm1.js} +3 -3
- package/dist/chunks/{websearch-xm2e45em.js → mime-gv2r1sx2.js} +3 -3
- package/dist/chunks/{websearch-b1qy4sha.js → mime-gwmtznzh.js} +4 -4
- package/dist/chunks/{websearch-c53n3hjv.js → mime-gz765asg.js} +2 -2
- package/dist/chunks/{websearch-h8ecejt5.js → mime-h8ecejt5.js} +1 -1
- package/dist/chunks/{websearch-he8fqmta.js → mime-he8fqmta.js} +4 -4
- package/dist/chunks/{websearch-f6mttzdn.js → mime-hg3q9ea5.js} +11 -11
- package/dist/chunks/{websearch-pgf5qdh8.js → mime-hs71xwrp.js} +4 -4
- package/dist/chunks/{websearch-v2y4nm8b.js → mime-hs9j5s4f.js} +7 -7
- package/dist/chunks/{websearch-j1a5h53y.js → mime-j1a5h53y.js} +1 -1
- package/dist/chunks/{websearch-q1xqkz6w.js → mime-j87m98ha.js} +67 -41
- package/dist/chunks/{websearch-npznd56g.js → mime-ja1ea1t0.js} +1 -1
- package/dist/chunks/{websearch-vyeprebe.js → mime-jj06mada.js} +3 -3
- package/dist/chunks/{websearch-rthkg510.js → mime-jkdgsmn6.js} +2 -2
- package/dist/chunks/{websearch-jssy2dr3.js → mime-jssy2dr3.js} +2 -2
- package/dist/chunks/{websearch-tsmm9t7e.js → mime-k9gszdx0.js} +2 -2
- package/dist/chunks/{websearch-kg1345f7.js → mime-kg1345f7.js} +1 -1
- package/dist/chunks/{websearch-4ag1d7wn.js → mime-kk63st9b.js} +3 -3
- package/dist/chunks/{websearch-rmejc8na.js → mime-kncv2mch.js} +5 -5
- package/dist/chunks/{websearch-xt8v7g3e.js → mime-ktq95tb3.js} +8 -8
- package/dist/chunks/{websearch-pbebj8jk.js → mime-m1mw9tfv.js} +27 -13
- package/dist/chunks/{websearch-4h5ccvmb.js → mime-medfj1t3.js} +15 -15
- package/dist/chunks/{websearch-mf0hyk7z.js → mime-mf0hyk7z.js} +1 -1
- package/dist/chunks/{websearch-mh28new4.js → mime-mh28new4.js} +2 -2
- package/dist/chunks/{websearch-mnb85w6b.js → mime-mnb85w6b.js} +2 -2
- package/dist/chunks/{websearch-14h06yse.js → mime-msqxbfjn.js} +2 -2
- package/dist/chunks/{websearch-pfeb3ch5.js → mime-msrhanm0.js} +3 -3
- package/dist/chunks/{websearch-6x501mtp.js → mime-mtbmqawz.js} +9 -7
- package/dist/chunks/{websearch-mwceq5am.js → mime-mwceq5am.js} +1 -1
- package/dist/chunks/{websearch-66458243.js → mime-mx09vdxm.js} +137 -126
- package/dist/chunks/{websearch-fmyre8m1.js → mime-mxvw03gv.js} +2 -2
- package/dist/chunks/{websearch-ph3gk70g.js → mime-mzt2x3rk.js} +7 -7
- package/dist/chunks/{websearch-4yx9qn5q.js → mime-n0tk5m03.js} +4 -4
- package/dist/chunks/{websearch-vv288965.js → mime-n2w8fz38.js} +5 -3
- package/dist/chunks/{websearch-zzdr7wyf.js → mime-nbpq4jyx.js} +3 -3
- package/dist/chunks/{websearch-nesb2rcz.js → mime-nesb2rcz.js} +2 -2
- package/dist/chunks/{websearch-nj1s64cz.js → mime-nj1s64cz.js} +1 -1
- package/dist/chunks/{websearch-2vxr0v86.js → mime-nk6yb8jk.js} +2 -2
- package/dist/chunks/{websearch-nr76rjj3.js → mime-nr76rjj3.js} +2 -2
- package/dist/chunks/{websearch-p17p1gzq.js → mime-nrqwyjqz.js} +4 -4
- package/dist/chunks/{websearch-nzrjycs5.js → mime-nzrjycs5.js} +1 -1
- package/dist/chunks/{websearch-1sx0aa4f.js → mime-p0zqjz05.js} +3 -3
- package/dist/chunks/{websearch-p27xxkqg.js → mime-p27xxkqg.js} +3 -3
- package/dist/chunks/{websearch-wmswq2jh.js → mime-p3ejg59h.js} +16 -16
- package/dist/chunks/{websearch-2q9bjvm8.js → mime-p3mc079v.js} +12 -12
- package/dist/chunks/{websearch-pfqehjmy.js → mime-pfqehjmy.js} +2 -2
- package/dist/chunks/{websearch-ph1me6ah.js → mime-ph1me6ah.js} +2 -2
- package/dist/chunks/{websearch-pq4b4pqk.js → mime-pq4b4pqk.js} +2 -2
- package/dist/chunks/{websearch-prf9bavk.js → mime-prf9bavk.js} +3 -3
- package/dist/chunks/{websearch-7wpdvc3c.js → mime-q0kvmnet.js} +8 -8
- package/dist/chunks/{websearch-k967nj5k.js → mime-q13jnydh.js} +83 -83
- package/dist/chunks/{websearch-qe0d689s.js → mime-qe0d689s.js} +2 -2
- package/dist/chunks/{websearch-qgt32wwf.js → mime-qgt32wwf.js} +3 -3
- package/dist/chunks/{websearch-qsgvz7g8.js → mime-qsgvz7g8.js} +2 -2
- package/dist/chunks/{websearch-x98mfqbw.js → mime-qxn37x8q.js} +18 -18
- package/dist/chunks/{websearch-r3k9abhd.js → mime-r3k9abhd.js} +2 -2
- package/dist/chunks/{websearch-2ttxkpa3.js → mime-rgaafrmh.js} +8 -8
- package/dist/chunks/{websearch-98jrhaw3.js → mime-rmb41pet.js} +8 -8
- package/dist/chunks/{websearch-qewf9cam.js → mime-rph4ya7a.js} +3 -3
- package/dist/chunks/{websearch-rt6yg6j2.js → mime-rt6yg6j2.js} +2 -2
- package/dist/chunks/{websearch-ryap75b3.js → mime-ryap75b3.js} +1 -1
- package/dist/chunks/mime-s33fw6zm.js +16 -0
- package/dist/chunks/{websearch-nbd94q6t.js → mime-s3n0j4hm.js} +7 -7
- package/dist/chunks/{websearch-1wm75xf8.js → mime-s50jkj6y.js} +26 -22
- package/dist/chunks/{websearch-8twz6z1z.js → mime-sfbv6a2b.js} +12 -1
- package/dist/chunks/{websearch-c018twn7.js → mime-skdyn78x.js} +11 -11
- package/dist/chunks/{websearch-smpeg8c9.js → mime-smpeg8c9.js} +2 -2
- package/dist/chunks/{websearch-0zs4qnv1.js → mime-smq36hye.js} +4 -4
- package/dist/chunks/{websearch-8ywqk2j9.js → mime-sw84ckhj.js} +4 -3
- package/dist/chunks/{websearch-gpee7ppy.js → mime-t066q9hw.js} +7 -7
- package/dist/chunks/{websearch-t14kykx1.js → mime-t14kykx1.js} +1 -1
- package/dist/chunks/{websearch-nq5yc02p.js → mime-t25342ez.js} +5 -5
- package/dist/chunks/{websearch-tcn24h1d.js → mime-tcn24h1d.js} +1 -1
- package/dist/chunks/{websearch-tenv3kfs.js → mime-tenv3kfs.js} +2 -2
- package/dist/chunks/mime-tfgm610x.js +94 -0
- package/dist/chunks/{websearch-nkezjycm.js → mime-tft198ww.js} +7 -7
- package/dist/chunks/{websearch-thstd87d.js → mime-thstd87d.js} +1 -1
- package/dist/chunks/{websearch-nm4cb4h2.js → mime-trm83waa.js} +13 -13
- package/dist/chunks/{websearch-0cfkzp4y.js → mime-tx01qvkp.js} +6 -6
- package/dist/chunks/{websearch-zfr0px0z.js → mime-v04zrpeb.js} +4 -4
- package/dist/chunks/{websearch-6t84bth1.js → mime-v2bfppbw.js} +2 -2
- package/dist/chunks/{websearch-0dwyqmzq.js → mime-v2wshkax.js} +19 -10
- package/dist/chunks/{websearch-cvc20mvz.js → mime-v4qjzx19.js} +58 -28
- package/dist/chunks/{websearch-v80zsxnb.js → mime-v80zsxnb.js} +1 -1
- package/dist/chunks/{websearch-v972xay6.js → mime-v972xay6.js} +1 -1
- package/dist/chunks/{websearch-v9bfv94f.js → mime-v9bfv94f.js} +1 -1
- package/dist/chunks/{websearch-ytajcgd5.js → mime-va126bgs.js} +46 -26
- package/dist/chunks/{websearch-fbvhepz7.js → mime-vreytd5w.js} +8 -8
- package/dist/chunks/mime-vxz5qdmp.js +31 -0
- package/dist/chunks/{websearch-vz89hfgr.js → mime-vz89hfgr.js} +1 -1
- package/dist/chunks/{websearch-y4pa1h9m.js → mime-w1vqnn94.js} +10 -10
- package/dist/chunks/{websearch-1sz9h7sr.js → mime-w97d3p5m.js} +8 -8
- package/dist/chunks/{websearch-wd268jeg.js → mime-wd268jeg.js} +1 -1
- package/dist/chunks/{websearch-1px4xhxb.js → mime-wh0zhxcg.js} +2 -2
- package/dist/chunks/{websearch-wmxdh12w.js → mime-wmxdh12w.js} +1 -1
- package/dist/chunks/{websearch-1pyccf84.js → mime-wnt3wg0b.js} +10 -10
- package/dist/chunks/{websearch-4ax2r61g.js → mime-wnycy0wc.js} +5 -5
- package/dist/chunks/{websearch-wps8gh8n.js → mime-wps8gh8n.js} +2 -2
- package/dist/chunks/{websearch-bkm10e2q.js → mime-wyfynpb1.js} +4 -4
- package/dist/chunks/{websearch-5pv0dzzk.js → mime-wzyh8wxy.js} +7 -17
- package/dist/chunks/{websearch-hpb93frs.js → mime-x2pb8n50.js} +7 -7
- package/dist/chunks/{websearch-xczfw7dq.js → mime-xczfw7dq.js} +1 -1
- package/dist/chunks/{websearch-fh0tj73a.js → mime-xebdgvay.js} +11 -11
- package/dist/chunks/{websearch-vgs459k7.js → mime-xg71ddn7.js} +27 -23
- package/dist/chunks/{websearch-xjacw14b.js → mime-xgkvpv3d.js} +66 -66
- package/dist/chunks/{websearch-xgv25zxy.js → mime-xgv25zxy.js} +1 -1
- package/dist/chunks/{websearch-gdk97f0w.js → mime-xj7nh5vj.js} +4 -4
- package/dist/chunks/{websearch-gsmwjeh0.js → mime-xqnx36jp.js} +8 -8
- package/dist/chunks/{websearch-rcyr2v89.js → mime-xv6th324.js} +4 -4
- package/dist/chunks/{websearch-xwftk1fd.js → mime-xwftk1fd.js} +2 -2
- package/dist/chunks/{websearch-xxpvz42q.js → mime-xxpvz42q.js} +3 -3
- package/dist/chunks/{websearch-3bbr9hcf.js → mime-y0e60er7.js} +8 -8
- package/dist/chunks/{websearch-y0x38cee.js → mime-y0x38cee.js} +1 -1
- package/dist/chunks/{websearch-y198y2ra.js → mime-y198y2ra.js} +1 -1
- package/dist/chunks/{websearch-y67x6rf6.js → mime-y67x6rf6.js} +1 -1
- package/dist/chunks/{websearch-y8rs54ne.js → mime-y8rs54ne.js} +1 -1
- package/dist/chunks/{websearch-y980s7ka.js → mime-y980s7ka.js} +3 -3
- package/dist/chunks/{websearch-yf0knd5z.js → mime-yf0knd5z.js} +2 -2
- package/dist/chunks/{websearch-e21z5v21.js → mime-yp4mz5sn.js} +11 -11
- package/dist/chunks/{websearch-yz0wm9s3.js → mime-yz0wm9s3.js} +2 -2
- package/dist/chunks/{websearch-jw61kez2.js → mime-yz5f8a3j.js} +18 -18
- package/dist/chunks/{websearch-zptf8v5j.js → mime-z0rhy30k.js} +3 -3
- package/dist/chunks/{websearch-q3jf5kse.js → mime-z4c043ys.js} +13 -11
- package/dist/chunks/mime-z55hj407.js +76 -0
- package/dist/chunks/{websearch-zbqqnp0n.js → mime-zbqqnp0n.js} +1 -1
- package/dist/chunks/{websearch-zdkg1k91.js → mime-zdkg1k91.js} +1 -1
- package/dist/chunks/{websearch-zfxc0ze5.js → mime-zfxc0ze5.js} +1 -1
- package/dist/chunks/{websearch-zjvgdt9p.js → mime-zjvgdt9p.js} +3 -3
- package/dist/chunks/{websearch-hgn8axp1.js → mime-zkkkcc8p.js} +4 -4
- package/dist/chunks/{websearch-d0yg8shg.js → mime-znpe0pmp.js} +3 -3
- package/dist/chunks/{websearch-yehasq6p.js → mime-zqc7hcjz.js} +34 -32
- package/dist/chunks/{websearch-cdrqa8qb.js → mime-zqh29h4g.js} +3 -3
- package/dist/chunks/{websearch-enjr4zwn.js → mime-zqj53njk.js} +16 -16
- package/dist/chunks/{websearch-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 +18 -18
- 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 +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 +19 -19
- 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 +81 -81
- 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 +19 -19
- 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/runtime.d.ts +1 -1
- 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/subagent.d.ts +4 -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/websearch-qqh8wgb4.js +0 -127
- package/dist/types/util/binary.d.ts +0 -7
- package/dist/types/util/encode.d.ts +0 -4
- package/dist/types/util/path.d.ts +0 -4
- package/dist/types/util/retry.d.ts +0 -8
- package/dist/util/binary.js +0 -43
- package/dist/util/encode.js +0 -48
- package/dist/util/path.js +0 -42
- package/dist/util/retry.js +0 -38
- /package/dist/chunks/{websearch-0cgt0xh2.js → mime-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{websearch-0f48qthw.js → mime-0f48qthw.js} +0 -0
- /package/dist/chunks/{websearch-0zz82cjq.js → mime-0zz82cjq.js} +0 -0
- /package/dist/chunks/{websearch-1fb7bmpf.js → mime-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{websearch-1wcz8fvj.js → mime-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{websearch-2qdx6zz3.js → mime-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{websearch-3c4nztf9.js → mime-3c4nztf9.js} +0 -0
- /package/dist/chunks/{websearch-3g3rpp2x.js → mime-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{websearch-3q6gbwmd.js → mime-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{websearch-3w3ybtfd.js → mime-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{websearch-47ty4mvs.js → mime-47ty4mvs.js} +0 -0
- /package/dist/chunks/{websearch-4b2tz2m9.js → mime-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{websearch-4zg0gww9.js → mime-4zg0gww9.js} +0 -0
- /package/dist/chunks/{websearch-5a5ch9ts.js → mime-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{websearch-5va1yh78.js → mime-5va1yh78.js} +0 -0
- /package/dist/chunks/{websearch-69qrqpw0.js → mime-69qrqpw0.js} +0 -0
- /package/dist/chunks/{websearch-6yt963b8.js → mime-6yt963b8.js} +0 -0
- /package/dist/chunks/{websearch-7n9qwqk4.js → mime-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{websearch-8nn8kqcn.js → mime-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{websearch-8sj3ajy5.js → mime-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{websearch-8w9tzfz1.js → mime-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{websearch-906y0b6d.js → mime-906y0b6d.js} +0 -0
- /package/dist/chunks/{websearch-9dct5xhx.js → mime-9dct5xhx.js} +0 -0
- /package/dist/chunks/{websearch-9sdtsapf.js → mime-9sdtsapf.js} +0 -0
- /package/dist/chunks/{websearch-a02svayp.js → mime-a02svayp.js} +0 -0
- /package/dist/chunks/{websearch-a83yvq99.js → mime-a83yvq99.js} +0 -0
- /package/dist/chunks/{websearch-ayevdmef.js → mime-ayevdmef.js} +0 -0
- /package/dist/chunks/{websearch-b02txbh8.js → mime-b02txbh8.js} +0 -0
- /package/dist/chunks/{websearch-bbqs2y60.js → mime-bbqs2y60.js} +0 -0
- /package/dist/chunks/{websearch-brsh5f65.js → mime-brsh5f65.js} +0 -0
- /package/dist/chunks/{websearch-bxdhjb3y.js → mime-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{websearch-c77ad0vh.js → mime-c77ad0vh.js} +0 -0
- /package/dist/chunks/{websearch-cm67rqy2.js → mime-cm67rqy2.js} +0 -0
- /package/dist/chunks/{websearch-d6s8p2vk.js → mime-d6s8p2vk.js} +0 -0
- /package/dist/chunks/{websearch-dbah77c1.js → mime-dbah77c1.js} +0 -0
- /package/dist/chunks/{websearch-df3v2q6j.js → mime-df3v2q6j.js} +0 -0
- /package/dist/chunks/{websearch-dgjzraq6.js → mime-dgjzraq6.js} +0 -0
- /package/dist/chunks/{websearch-dhcq6c44.js → mime-dhcq6c44.js} +0 -0
- /package/dist/chunks/{websearch-dht5baf0.js → mime-dht5baf0.js} +0 -0
- /package/dist/chunks/{websearch-dkmkay92.js → mime-dkmkay92.js} +0 -0
- /package/dist/chunks/{websearch-ecxv0vtt.js → mime-ecxv0vtt.js} +0 -0
- /package/dist/chunks/{websearch-ehj9csmv.js → mime-ehj9csmv.js} +0 -0
- /package/dist/chunks/{websearch-em6xpscd.js → mime-em6xpscd.js} +0 -0
- /package/dist/chunks/{websearch-emmqknsm.js → mime-emmqknsm.js} +0 -0
- /package/dist/chunks/{websearch-ezs3tagn.js → mime-ezs3tagn.js} +0 -0
- /package/dist/chunks/{websearch-f14r7hfz.js → mime-f14r7hfz.js} +0 -0
- /package/dist/chunks/{websearch-f4cp4g4a.js → mime-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{websearch-f84sxdqn.js → mime-f84sxdqn.js} +0 -0
- /package/dist/chunks/{websearch-faypg4r1.js → mime-faypg4r1.js} +0 -0
- /package/dist/chunks/{websearch-g7k9te92.js → mime-g7k9te92.js} +0 -0
- /package/dist/chunks/{websearch-gd5xeqc2.js → mime-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{websearch-ghm4673n.js → mime-ghm4673n.js} +0 -0
- /package/dist/chunks/{websearch-ghwjy7my.js → mime-ghwjy7my.js} +0 -0
- /package/dist/chunks/{websearch-gy500k2r.js → mime-gy500k2r.js} +0 -0
- /package/dist/chunks/{websearch-hzeg9cfr.js → mime-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{websearch-j07kk359.js → mime-j07kk359.js} +0 -0
- /package/dist/chunks/{websearch-jve7t217.js → mime-jve7t217.js} +0 -0
- /package/dist/chunks/{websearch-kpdbz7gn.js → mime-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{websearch-kxy11nzk.js → mime-kxy11nzk.js} +0 -0
- /package/dist/chunks/{websearch-kyyqvx4s.js → mime-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{websearch-m8cbvarh.js → mime-m8cbvarh.js} +0 -0
- /package/dist/chunks/{websearch-ma07p6tt.js → mime-ma07p6tt.js} +0 -0
- /package/dist/chunks/{websearch-ma60vzgv.js → mime-ma60vzgv.js} +0 -0
- /package/dist/chunks/{websearch-n3m50c2t.js → mime-n3m50c2t.js} +0 -0
- /package/dist/chunks/{websearch-nkm1m8dz.js → mime-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{websearch-nsc0c3zb.js → mime-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{websearch-qaarhjrp.js → mime-qaarhjrp.js} +0 -0
- /package/dist/chunks/{websearch-qc167nrn.js → mime-qc167nrn.js} +0 -0
- /package/dist/chunks/{websearch-qp95y4jb.js → mime-qp95y4jb.js} +0 -0
- /package/dist/chunks/{websearch-r8f4w671.js → mime-r8f4w671.js} +0 -0
- /package/dist/chunks/{websearch-rdfev9jy.js → mime-rdfev9jy.js} +0 -0
- /package/dist/chunks/{websearch-rvfvac9x.js → mime-rvfvac9x.js} +0 -0
- /package/dist/chunks/{websearch-s7whb9gt.js → mime-s7whb9gt.js} +0 -0
- /package/dist/chunks/{websearch-se76j685.js → mime-se76j685.js} +0 -0
- /package/dist/chunks/{websearch-sem2g21k.js → mime-sem2g21k.js} +0 -0
- /package/dist/chunks/{websearch-tmb1f636.js → mime-tmb1f636.js} +0 -0
- /package/dist/chunks/{websearch-ttxf0gsy.js → mime-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{websearch-tvmhrvfj.js → mime-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{websearch-v2adqbbe.js → mime-v2adqbbe.js} +0 -0
- /package/dist/chunks/{websearch-vkvb1sb3.js → mime-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{websearch-wj4sxzqa.js → mime-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{websearch-wwntjmk1.js → mime-wwntjmk1.js} +0 -0
- /package/dist/chunks/{websearch-wyqjaaa5.js → mime-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{websearch-x4q807cx.js → mime-x4q807cx.js} +0 -0
- /package/dist/chunks/{websearch-xhz3jyrc.js → mime-xhz3jyrc.js} +0 -0
- /package/dist/chunks/{websearch-yrqrg4vp.js → mime-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{websearch-z47nswr2.js → mime-z47nswr2.js} +0 -0
- /package/dist/chunks/{websearch-zsf8rs93.js → mime-zsf8rs93.js} +0 -0
|
@@ -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 "./websearch-gamfbts3.js";
|
|
4
|
-
import {
|
|
5
|
-
exports_promise
|
|
6
|
-
} from "./websearch-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 "./
|
|
4
|
-
import {
|
|
5
|
-
exports_config
|
|
6
|
-
} from "./websearch-4h5ccvmb.js";
|
|
3
|
+
} from "./mime-z4c043ys.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_permission
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./mime-p3mc079v.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_agent
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./mime-wyfynpb1.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_schema
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./mime-y8rs54ne.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_config
|
|
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 = {};
|
|
@@ -32,7 +32,7 @@ import { Effect, Schema, Scope } from "effect";
|
|
|
32
32
|
var name = "subagent";
|
|
33
33
|
var NO_TEXT = "Subagent completed without a text response.";
|
|
34
34
|
var backgroundStarted = (sessionID) => [
|
|
35
|
-
`The subagent is working in the background (
|
|
35
|
+
`The subagent is working in the background (sessionID: ${sessionID}). You will be notified automatically when it finishes.`,
|
|
36
36
|
"DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
|
|
37
37
|
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response."
|
|
38
38
|
].join(`
|
|
@@ -41,6 +41,9 @@ var Input = Schema.Struct({
|
|
|
41
41
|
agent: Schema.String.annotate({ description: "The type of specialized agent to use for this task" }),
|
|
42
42
|
description: Schema.String.annotate({ description: "A short 3-5 word label for the task, displayed to the user" }),
|
|
43
43
|
prompt: Schema.String.annotate({ description: "The task for the subagent to perform" }),
|
|
44
|
+
sessionID: Schema.optionalKey(exports_schema.ID).annotate({
|
|
45
|
+
description: "Continue a specific previous subagent conversation by passing its sessionID. Calls without a sessionID start a new conversation."
|
|
46
|
+
}),
|
|
44
47
|
background: Schema.optionalKey(Schema.Boolean).annotate({
|
|
45
48
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
46
49
|
})
|
|
@@ -52,7 +55,8 @@ var Output = Schema.Struct({
|
|
|
52
55
|
});
|
|
53
56
|
var description = [
|
|
54
57
|
"Spawns an agent in a child session to work on the specified task.",
|
|
55
|
-
"
|
|
58
|
+
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
59
|
+
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
56
60
|
"Foreground (default) runs the subagent to completion and returns its final response.",
|
|
57
61
|
"Background mode (background=true) launches it asynchronously and returns immediately; you are notified when it finishes.",
|
|
58
62
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
@@ -66,6 +70,7 @@ var Plugin = {
|
|
|
66
70
|
const config = yield* exports_config.Service;
|
|
67
71
|
const permission = yield* exports_permission.Service;
|
|
68
72
|
const scope = yield* Scope.Scope;
|
|
73
|
+
const notifications = new Set;
|
|
69
74
|
const latestAssistantText = Effect.fn("SubagentTool.latestAssistantText")(function* (sessionID) {
|
|
70
75
|
const messages = yield* runtime.session.messages({ sessionID, order: "desc", limit: 20 });
|
|
71
76
|
const assistant = messages.find((message) => message.type === "assistant" && message.time.completed !== undefined && message.error === undefined);
|
|
@@ -77,14 +82,18 @@ var Plugin = {
|
|
|
77
82
|
const injectCompletion = Effect.fn("SubagentTool.injectCompletion")(function* (parentID, childID, agent, description2, state, text) {
|
|
78
83
|
yield* runtime.session.synthetic({
|
|
79
84
|
sessionID: parentID,
|
|
80
|
-
text: `<subagent
|
|
85
|
+
text: `<subagent sessionID="${childID}" state="${state}" description="${description2}">
|
|
81
86
|
${text}
|
|
82
87
|
</subagent>`,
|
|
83
88
|
description: description2,
|
|
84
89
|
metadata: { source: "subagent", childID, agent, state }
|
|
85
90
|
});
|
|
86
91
|
});
|
|
87
|
-
const notifyWhenDone = Effect.fn("SubagentTool.notifyWhenDone")(function* (parentID, childID, agent, description2) {
|
|
92
|
+
const notifyWhenDone = Effect.fn("SubagentTool.notifyWhenDone")(function* (parentID, childID, agent, description2, startedAt) {
|
|
93
|
+
const key = `${childID}:${startedAt}`;
|
|
94
|
+
if (notifications.has(key))
|
|
95
|
+
return;
|
|
96
|
+
notifications.add(key);
|
|
88
97
|
yield* runtime.job.wait({ id: childID }).pipe(Effect.flatMap((result) => {
|
|
89
98
|
if (result.info?.status === "completed")
|
|
90
99
|
return injectCompletion(parentID, childID, agent, description2, "completed", result.info.output ?? NO_TEXT);
|
|
@@ -93,7 +102,7 @@ ${text}
|
|
|
93
102
|
if (result.info?.status === "cancelled")
|
|
94
103
|
return injectCompletion(parentID, childID, agent, description2, "cancelled", "Subagent cancelled");
|
|
95
104
|
return Effect.void;
|
|
96
|
-
}), Effect.forkIn(scope, { startImmediately: true }));
|
|
105
|
+
}), Effect.ensuring(Effect.sync(() => notifications.delete(key))), Effect.forkIn(scope, { startImmediately: true }));
|
|
97
106
|
});
|
|
98
107
|
yield* ctx.tool.transform((draft) => draft.add({
|
|
99
108
|
name,
|
|
@@ -131,22 +140,29 @@ ${text}
|
|
|
131
140
|
id: context.id
|
|
132
141
|
}
|
|
133
142
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Subagent denied: ${agent.id}`, error })));
|
|
143
|
+
const existing = input.sessionID === undefined ? undefined : yield* runtime.session.get(input.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Subagent session not found: ${input.sessionID}`, error })));
|
|
144
|
+
if (existing !== undefined && existing.parentID !== context.sessionID)
|
|
145
|
+
return yield* new ToolFailure({
|
|
146
|
+
message: `Session ${existing.id} is not a child of the current session`
|
|
147
|
+
});
|
|
148
|
+
if (existing !== undefined && existing.agent !== agent.id) {
|
|
149
|
+
yield* runtime.session.switchAgent({ sessionID: existing.id, agent: agent.id }).pipe(Effect.andThen(agent.model === undefined ? Effect.void : runtime.session.switchModel({ sessionID: existing.id, model: agent.model })), Effect.mapError((error) => new ToolFailure({ message: `Failed to switch subagent session agent: ${existing.id}`, error })));
|
|
150
|
+
}
|
|
134
151
|
const model = agent.model ?? parent.model;
|
|
135
|
-
const child = yield* runtime.session.create({
|
|
152
|
+
const child = existing ?? (yield* runtime.session.create({
|
|
136
153
|
parentID: context.sessionID,
|
|
137
154
|
title: input.description,
|
|
138
155
|
agent: exports_agent.ID.make(input.agent),
|
|
139
156
|
model
|
|
140
|
-
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
157
|
+
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
141
158
|
const background = input.background === true;
|
|
142
159
|
yield* context.progress({ sessionID: child.id, status: "running" });
|
|
160
|
+
yield* runtime.session.prompt({
|
|
161
|
+
sessionID: child.id,
|
|
162
|
+
text: existing === undefined ? ["You are a subagent spawned by another session.", input.prompt].join(`
|
|
163
|
+
`) : input.prompt
|
|
164
|
+
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Failed to prompt subagent: ${child.id}`, error })));
|
|
143
165
|
const run = Effect.gen(function* () {
|
|
144
|
-
yield* runtime.session.prompt({
|
|
145
|
-
sessionID: child.id,
|
|
146
|
-
text: ["You are a subagent spawned by another session.", input.prompt].join(`
|
|
147
|
-
`),
|
|
148
|
-
resume: false
|
|
149
|
-
});
|
|
150
166
|
yield* runtime.session.resume(child.id);
|
|
151
167
|
return yield* latestAssistantText(child.id);
|
|
152
168
|
}).pipe(Effect.onInterrupt(() => runtime.session.interrupt(child.id)));
|
|
@@ -159,7 +175,7 @@ ${text}
|
|
|
159
175
|
});
|
|
160
176
|
if (background) {
|
|
161
177
|
yield* runtime.job.background(info.id);
|
|
162
|
-
yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description);
|
|
178
|
+
yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description, info.started_at);
|
|
163
179
|
return {
|
|
164
180
|
sessionID: child.id,
|
|
165
181
|
status: "running",
|
|
@@ -170,7 +186,7 @@ ${text}
|
|
|
170
186
|
discard: true
|
|
171
187
|
})));
|
|
172
188
|
if (result?.type === "backgrounded") {
|
|
173
|
-
yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description);
|
|
189
|
+
yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description, result.info.started_at);
|
|
174
190
|
return {
|
|
175
191
|
sessionID: child.id,
|
|
176
192
|
status: "running",
|
|
@@ -178,13 +194,17 @@ ${text}
|
|
|
178
194
|
};
|
|
179
195
|
}
|
|
180
196
|
if (result?.info.status === "error")
|
|
181
|
-
return yield* new ToolFailure({
|
|
197
|
+
return yield* new ToolFailure({
|
|
198
|
+
message: `Subagent failed (sessionID: ${child.id}): ${result.info.error ?? "unknown error"}`
|
|
199
|
+
});
|
|
182
200
|
if (result?.info.status === "cancelled")
|
|
183
|
-
return yield* new ToolFailure({ message:
|
|
201
|
+
return yield* new ToolFailure({ message: `Subagent cancelled (sessionID: ${child.id})` });
|
|
184
202
|
return { sessionID: child.id, status: "completed", output: result?.info.output ?? NO_TEXT };
|
|
185
203
|
}).pipe(Effect.map((output) => ({
|
|
186
204
|
output,
|
|
187
|
-
content: output.output
|
|
205
|
+
content: output.status === "completed" ? `<subagent sessionID="${output.sessionID}" state="completed">
|
|
206
|
+
${output.output}
|
|
207
|
+
</subagent>` : output.output,
|
|
188
208
|
metadata: { sessionID: output.sessionID, status: output.status }
|
|
189
209
|
})))
|
|
190
210
|
})).pipe(Effect.orDie);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fileDiff
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-c77ad0vh.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_formatter
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-tfgm610x.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_file_mutation
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-znpe0pmp.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location_mutation
|
|
12
|
-
} from "./
|
|
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 "./
|
|
6
|
+
} from "./mime-y8rs54ne.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_workspace
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-hs9j5s4f.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-eb5hdjsy.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_project
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-bw52wkfv.js";
|
|
16
|
+
import {
|
|
17
|
+
exports_model
|
|
18
|
+
} from "./mime-wh0zhxcg.js";
|
|
16
19
|
import {
|
|
17
20
|
AbsolutePath,
|
|
18
21
|
RelativePath
|
|
19
|
-
} from "./
|
|
20
|
-
import {
|
|
21
|
-
exports_model
|
|
22
|
-
} from "./websearch-1px4xhxb.js";
|
|
22
|
+
} from "./mime-j07kk359.js";
|
|
23
23
|
import {
|
|
24
24
|
exports_provider
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./mime-sfbv6a2b.js";
|
|
26
26
|
|
|
27
27
|
// src/session/info.ts
|
|
28
28
|
import { DateTime, Schema } from "effect";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_instruction_discovery
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_watcher
|
|
6
|
-
} from "./websearch-y980s7ka.js";
|
|
3
|
+
} from "./mime-s3n0j4hm.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_instructions
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./mime-ec8vrfw5.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_watcher
|
|
9
|
+
} from "./mime-y980s7ka.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-eb5hdjsy.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-j07kk359.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./mime-rvfvac9x.js";
|
|
19
19
|
|
|
20
20
|
// src/config/plugin/instruction.ts
|
|
21
21
|
var exports_instruction = {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_read_filesystem
|
|
3
|
-
} from "./websearch-nn74kgn6.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_instructions
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./mime-873415w0.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_read_filesystem
|
|
6
|
+
} from "./mime-3ysxg2s0.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_location_mutation
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-t25342ez.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_permission
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-p3mc079v.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_environment1 as exports_environment
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-5jbprqc1.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./mime-eb5hdjsy.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./mime-j07kk359.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./mime-rvfvac9x.js";
|
|
25
25
|
|
|
26
26
|
// src/tool/plugin/read.ts
|
|
27
27
|
var exports_read = {};
|