@opencode-ai/core 0.0.0-beta-17595 → 0.0.0-beta-17727
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/{file-vks3mnpp.js → schema-00ryvvet.js} +11 -11
- package/dist/chunks/{file-02dbfq60.js → schema-02dbfq60.js} +1 -1
- package/dist/chunks/{file-gdndr5ds.js → schema-051fcmk5.js} +3 -3
- package/dist/chunks/{file-a4004nss.js → schema-060vc3kf.js} +88 -84
- package/dist/chunks/{file-j2f50m4s.js → schema-0b6ye7sf.js} +3 -3
- package/dist/chunks/{file-06h1zy40.js → schema-0cg1pw0s.js} +6 -6
- package/dist/chunks/{file-0kvmztkf.js → schema-0kvmztkf.js} +1 -1
- package/dist/chunks/{file-60c0k1qy.js → schema-0whbcza1.js} +5 -5
- package/dist/chunks/{file-xt2bapaq.js → schema-10gxy53r.js} +23 -17
- package/dist/chunks/{file-bn7p95jq.js → schema-10vxyagq.js} +10 -10
- package/dist/chunks/{file-027bgpms.js → schema-18kwzasz.js} +14 -14
- package/dist/chunks/{file-18pv8fg3.js → schema-18pv8fg3.js} +2 -2
- package/dist/chunks/{file-4223r8y8.js → schema-192rdx49.js} +3 -3
- package/dist/chunks/{file-04kwjb53.js → schema-19e1vard.js} +36 -4
- package/dist/chunks/{file-1c00jchy.js → schema-1c00jchy.js} +2 -2
- package/dist/chunks/{file-bbmh2dfw.js → schema-1g6t86sn.js} +2 -2
- package/dist/chunks/{file-p3zwavty.js → schema-1h0r72pv.js} +11 -3
- package/dist/chunks/{file-1xksxgzs.js → schema-1xksxgzs.js} +2 -2
- package/dist/chunks/{file-6t84bth1.js → schema-23pmvn2v.js} +31 -26
- package/dist/chunks/schema-250jcrxb.js +94 -0
- package/dist/chunks/{file-25pxtba7.js → schema-25pxtba7.js} +1 -1
- package/dist/chunks/{file-w5c5ggfg.js → schema-273j09zv.js} +10 -10
- package/dist/chunks/{file-8dwkjrbx.js → schema-2akqrmqf.js} +1 -1
- package/dist/chunks/{file-h7hxhz5s.js → schema-2mnqe42c.js} +6 -6
- package/dist/chunks/{file-2nmyybe0.js → schema-2nmyybe0.js} +1 -1
- package/dist/chunks/{file-szsnfq8s.js → schema-2p32b2ay.js} +106 -43
- package/dist/chunks/{file-8ss9enjp.js → schema-3567cphc.js} +3 -3
- package/dist/chunks/schema-35pj6hnw.js +40 -0
- package/dist/chunks/{file-trvnbm2r.js → schema-360p66gh.js} +4 -4
- package/dist/chunks/schema-395s1dxw.js +38 -0
- package/dist/chunks/schema-3at269ck.js +118 -0
- package/dist/chunks/{file-3g8vftxb.js → schema-3g8vftxb.js} +2 -2
- package/dist/chunks/{file-pxh2y4mp.js → schema-3nf0hvzp.js} +4 -4
- package/dist/chunks/{file-3thh6229.js → schema-3thh6229.js} +2 -2
- package/dist/chunks/{file-2wqqqft7.js → schema-41awt1t8.js} +2 -2
- package/dist/chunks/{file-42q4drvy.js → schema-42q4drvy.js} +2 -2
- package/dist/chunks/{file-4wnw1v48.js → schema-46yj76vd.js} +9 -9
- package/dist/chunks/{file-n32fctmg.js → schema-4ayp890x.js} +26 -10
- package/dist/chunks/{file-4s2xwh5d.js → schema-4s2xwh5d.js} +3 -3
- package/dist/chunks/{file-8b8db9dn.js → schema-4ye66y0n.js} +4 -4
- package/dist/chunks/{file-4zzdwbaz.js → schema-4zzdwbaz.js} +2 -2
- package/dist/chunks/{file-ttdn9mvh.js → schema-50epqr84.js} +9 -9
- package/dist/chunks/{file-50jxp3hw.js → schema-50jxp3hw.js} +1 -1
- package/dist/chunks/{file-52jzav25.js → schema-52jzav25.js} +1 -1
- package/dist/chunks/{file-57tzwnz4.js → schema-57tzwnz4.js} +1 -1
- package/dist/chunks/{file-5rs65q6p.js → schema-5rs65q6p.js} +1 -1
- package/dist/chunks/{file-5vcssjzn.js → schema-5vcssjzn.js} +1 -1
- package/dist/chunks/{file-cvh8045m.js → schema-5yea2tah.js} +2 -2
- package/dist/chunks/{file-9tgd1sa0.js → schema-62mb2nss.js} +66 -51
- package/dist/chunks/{file-6ky7rqk7.js → schema-6ky7rqk7.js} +1 -1
- package/dist/chunks/{file-xkapkgm1.js → schema-6pwv4qxp.js} +8 -8
- package/dist/chunks/{file-vacr5vr5.js → schema-6q0m15b3.js} +2 -2
- package/dist/chunks/{file-x143q1e8.js → schema-6qwdf3jx.js} +10 -10
- package/dist/chunks/{file-66ww2ke6.js → schema-6y9t5t54.js} +2 -2
- package/dist/chunks/{file-706a4azd.js → schema-706a4azd.js} +1 -1
- package/dist/chunks/{file-vhn5tvvs.js → schema-74q86k11.js} +7 -7
- package/dist/chunks/{file-zx1bs0qm.js → schema-7c1dg35e.js} +3 -3
- package/dist/chunks/{file-7mrpdsq5.js → schema-7mrpdsq5.js} +1 -1
- package/dist/chunks/{file-wamspyg8.js → schema-7q1h4qqg.js} +5 -5
- package/dist/chunks/{file-7wcmqxrc.js → schema-7wcmqxrc.js} +1 -1
- package/dist/chunks/{file-qy071k7t.js → schema-7xm5mbbb.js} +3 -3
- package/dist/chunks/{file-tfpq1akv.js → schema-7z0bpvtb.js} +10 -10
- package/dist/chunks/{file-hcypmxj6.js → schema-7z840kdh.js} +17 -17
- package/dist/chunks/{file-88jbfw8z.js → schema-88jbfw8z.js} +2 -2
- package/dist/chunks/{file-hsyk7kfz.js → schema-8bkmtpp6.js} +5 -5
- package/dist/chunks/{file-xjreyxj2.js → schema-8k08086v.js} +1 -1
- package/dist/chunks/{file-nthsreft.js → schema-8m21gddp.js} +12 -12
- package/dist/chunks/{file-b1jt21vx.js → schema-8meqn0qj.js} +7 -7
- package/dist/chunks/{file-zh6p9k71.js → schema-8nvwj8vn.js} +6 -6
- package/dist/chunks/{file-8v47shgf.js → schema-8v47shgf.js} +2 -2
- package/dist/chunks/{file-b4j6ey0s.js → schema-8zhast2r.js} +11 -11
- package/dist/chunks/{file-93qdgxxd.js → schema-93qdgxxd.js} +1 -1
- package/dist/chunks/{file-999qd968.js → schema-999qd968.js} +1 -1
- package/dist/chunks/{file-9d2xhdr4.js → schema-9d2xhdr4.js} +3 -3
- package/dist/chunks/{file-9f0rnpkn.js → schema-9f0rnpkn.js} +1 -1
- package/dist/chunks/{file-mzdzk01c.js → schema-9hpzhr6v.js} +9 -7
- package/dist/chunks/{file-f6a73nhd.js → schema-9qp6gb3m.js} +5 -4
- package/dist/chunks/{file-ngrtxfq1.js → schema-a231zq3c.js} +2 -2
- package/dist/chunks/{file-a65h300v.js → schema-a65h300v.js} +2 -2
- package/dist/chunks/{file-tr01v5pk.js → schema-a94tf2t8.js} +3 -3
- package/dist/chunks/{file-jwcdbjdr.js → schema-atc09b0q.js} +2 -2
- package/dist/chunks/{file-gxmfza0d.js → schema-atwe5a3v.js} +30 -30
- package/dist/chunks/{file-ayfwnm78.js → schema-ayfwnm78.js} +2 -2
- package/dist/chunks/{file-px7n0cd3.js → schema-b25zdeh7.js} +1 -1
- package/dist/chunks/schema-b3ds2mtq.js +36 -0
- package/dist/chunks/{file-s9f13v9h.js → schema-b8rm84kg.js} +2 -2
- package/dist/chunks/{file-aejdne0e.js → schema-bfjhgcka.js} +2 -2
- package/dist/chunks/{file-0x2z9q12.js → schema-bh0x2mrx.js} +8 -8
- package/dist/chunks/{file-18vh565s.js → schema-bhv5mzwt.js} +7 -7
- package/dist/chunks/{file-byab506k.js → schema-byab506k.js} +1 -1
- package/dist/chunks/{file-1w0svdh3.js → schema-bzbxgfwx.js} +2 -2
- package/dist/chunks/{file-f3rqrz1h.js → schema-c4pr1nyj.js} +3 -3
- package/dist/chunks/{file-20fnfdqj.js → schema-csp12q11.js} +10 -10
- package/dist/chunks/{file-en0j70s6.js → schema-cz2t2fc1.js} +3 -3
- package/dist/chunks/{file-cz3dkvcz.js → schema-cz3dkvcz.js} +1 -1
- package/dist/chunks/{file-ry4vhh7y.js → schema-d410ggef.js} +69 -38
- package/dist/chunks/{file-vwqhfv9a.js → schema-d8yk8dmg.js} +87 -75
- package/dist/chunks/{file-s6e3c6h1.js → schema-dex4g67x.js} +5 -5
- package/dist/chunks/{file-dhphtf1x.js → schema-dhphtf1x.js} +1 -1
- package/dist/chunks/{file-9jr1552g.js → schema-dk5s7bze.js} +5 -5
- package/dist/chunks/{file-38crwsq8.js → schema-dman5pj0.js} +9 -3
- package/dist/chunks/{file-70krbkh8.js → schema-dvtrg9yb.js} +4 -3
- package/dist/chunks/{file-ek4bes0b.js → schema-dyyjf1ar.js} +5 -5
- package/dist/chunks/{file-dyz5q1tb.js → schema-dyz5q1tb.js} +2 -2
- package/dist/chunks/{file-e1z9a0ts.js → schema-e1z9a0ts.js} +2 -2
- package/dist/chunks/schema-e24rm1tf.js +81 -0
- package/dist/chunks/{file-zxg28mmk.js → schema-e8vwgqms.js} +5 -5
- package/dist/chunks/{file-zj2qv98r.js → schema-e93xz9yp.js} +37 -41
- package/dist/chunks/{file-ec8vrfw5.js → schema-ec8vrfw5.js} +1 -1
- package/dist/chunks/{file-fvw35s1f.js → schema-eewexb7m.js} +6 -7
- package/dist/chunks/{file-erj4j75s.js → schema-erj4j75s.js} +1 -1
- package/dist/chunks/{file-eyk9wdct.js → schema-eyk9wdct.js} +2 -2
- package/dist/chunks/{file-y3ys4sce.js → schema-ezceyxgn.js} +3 -3
- package/dist/chunks/schema-ezr77j7d.js +76 -0
- package/dist/chunks/{file-f05p34aa.js → schema-f05p34aa.js} +3 -3
- package/dist/chunks/{file-gndxty6r.js → schema-f292tb9m.js} +16 -82
- package/dist/chunks/{file-wt193r4g.js → schema-f2kz495y.js} +2 -2
- package/dist/chunks/{file-64bdc2sf.js → schema-f86pb1d3.js} +3 -3
- package/dist/chunks/{file-fcefwnba.js → schema-fgvm1ve0.js} +10 -10
- package/dist/chunks/{file-0zs4qnv1.js → schema-fjtxtbhx.js} +4 -4
- package/dist/chunks/{file-z3nf8g8y.js → schema-fqxzsdmq.js} +2 -2
- package/dist/chunks/{file-vm3prpn4.js → schema-g790236b.js} +1 -1
- package/dist/chunks/{file-g9yygpzr.js → schema-g9yygpzr.js} +1 -1
- package/dist/chunks/{file-gcay93cp.js → schema-gcay93cp.js} +1 -1
- package/dist/chunks/{file-gd2xppx8.js → schema-gd2xppx8.js} +1 -1
- package/dist/chunks/schema-gp1p5nz4.js +55 -0
- package/dist/chunks/{file-c53n3hjv.js → schema-gz765asg.js} +2 -2
- package/dist/chunks/{file-4adhyg6m.js → schema-gzjf1jk5.js} +9 -9
- package/dist/chunks/{file-h8ecejt5.js → schema-h8ecejt5.js} +1 -1
- package/dist/chunks/{file-ywrrwgdd.js → schema-h8vsb53f.js} +6 -6
- package/dist/chunks/{file-7n13pnta.js → schema-hg5p6bzj.js} +6 -7
- package/dist/chunks/{file-va2xjmjn.js → schema-hwmywmxa.js} +14 -14
- package/dist/chunks/{file-f7evhwkg.js → schema-hxgabpg5.js} +10 -10
- package/dist/chunks/{file-j1a5h53y.js → schema-j1a5h53y.js} +1 -1
- package/dist/chunks/{file-9q7032rn.js → schema-j7gsmv3x.js} +10 -10
- package/dist/chunks/{file-v0ktexvy.js → schema-je6m2rhy.js} +2 -2
- package/dist/chunks/{file-3755670m.js → schema-jpbqgcgm.js} +24 -24
- package/dist/chunks/{file-jqkpryhn.js → schema-jqkpryhn.js} +4 -4
- package/dist/chunks/{file-jssy2dr3.js → schema-jssy2dr3.js} +2 -2
- package/dist/chunks/{file-kjkmrs65.js → schema-jt4wm1df.js} +65 -12
- package/dist/chunks/{file-cn5vww2k.js → schema-kbqjbq4z.js} +8 -8
- package/dist/chunks/{file-kzj2xtdg.js → schema-kctehe0f.js} +16 -16
- package/dist/chunks/{file-3s7e2f99.js → schema-kf410sde.js} +3 -3
- package/dist/chunks/{file-kg1345f7.js → schema-kg1345f7.js} +1 -1
- package/dist/chunks/{file-5mbfga6t.js → schema-kgd06n6f.js} +4 -4
- package/dist/chunks/{file-e62qqw9f.js → schema-khn0dsrz.js} +25 -18
- package/dist/chunks/{file-edvtf4tx.js → schema-kk4xakr8.js} +12 -12
- package/dist/chunks/{file-5rd2371y.js → schema-kke058j3.js} +7 -7
- package/dist/chunks/{file-4m2k2smt.js → schema-krpbg8xk.js} +4 -4
- package/dist/chunks/{file-658vcx0m.js → schema-ksvnrgsv.js} +5 -5
- package/dist/chunks/{file-k0630w4g.js → schema-m106neva.js} +10 -9
- package/dist/chunks/{file-9vc4jz8b.js → schema-mbn7wb87.js} +3 -3
- package/dist/chunks/{file-dgjzraq6.js → schema-md5jaask.js} +0 -1
- package/dist/chunks/{file-6f5gxeem.js → schema-mdj6kn7z.js} +25 -21
- package/dist/chunks/{file-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
- package/dist/chunks/{file-mh28new4.js → schema-mh28new4.js} +2 -2
- package/dist/chunks/{file-knd350r7.js → schema-mm0veptv.js} +8 -8
- package/dist/chunks/{file-mnb85w6b.js → schema-mnb85w6b.js} +2 -2
- package/dist/chunks/{file-1yz6p2jq.js → schema-mnfp87kp.js} +3 -3
- package/dist/chunks/{file-mwceq5am.js → schema-mwceq5am.js} +1 -1
- package/dist/chunks/{file-fmyre8m1.js → schema-mxvw03gv.js} +2 -2
- package/dist/chunks/{file-k7pgcjt6.js → schema-mznpnvbz.js} +74 -43
- package/dist/chunks/{file-vv288965.js → schema-n2w8fz38.js} +5 -3
- package/dist/chunks/{file-n744begs.js → schema-n744begs.js} +4 -4
- package/dist/chunks/{file-as1t9t7n.js → schema-n7rn0p8g.js} +4 -4
- package/dist/chunks/{file-nesb2rcz.js → schema-nesb2rcz.js} +2 -2
- package/dist/chunks/{file-ezegptdr.js → schema-ngb74rpy.js} +57 -27
- package/dist/chunks/{file-2vxr0v86.js → schema-nk6yb8jk.js} +2 -2
- package/dist/chunks/{file-75z23hs9.js → schema-nnxkn71f.js} +14 -14
- package/dist/chunks/{file-nr76rjj3.js → schema-nr76rjj3.js} +2 -2
- package/dist/chunks/{file-663be8qb.js → schema-ntgfaaqc.js} +7 -7
- package/dist/chunks/{file-pxc9mm6x.js → schema-nx5svmx1.js} +18 -30
- package/dist/chunks/{file-nzrjycs5.js → schema-nzrjycs5.js} +1 -1
- package/dist/chunks/{file-1sx0aa4f.js → schema-p0zqjz05.js} +3 -3
- package/dist/chunks/{file-8a9n1ecs.js → schema-p1camtmy.js} +3 -3
- package/dist/chunks/{file-zgkcypa3.js → schema-p1qqy672.js} +9 -9
- package/dist/chunks/{file-p27xxkqg.js → schema-p27xxkqg.js} +3 -3
- package/dist/chunks/{file-yb1hpdkr.js → schema-p5q5g0dh.js} +10 -10
- package/dist/chunks/{file-pfqehjmy.js → schema-pfqehjmy.js} +2 -2
- package/dist/chunks/{file-ph1me6ah.js → schema-ph1me6ah.js} +2 -2
- package/dist/chunks/{file-tns74tew.js → schema-pjg2dtwn.js} +5 -5
- package/dist/chunks/{file-qxs84648.js → schema-pp0w786w.js} +16 -27
- package/dist/chunks/{file-pq4b4pqk.js → schema-pq4b4pqk.js} +2 -2
- package/dist/chunks/{file-prf9bavk.js → schema-prf9bavk.js} +3 -3
- package/dist/chunks/{file-6nfxvtta.js → schema-prx5vj63.js} +5 -5
- package/dist/chunks/{file-fvjr77vx.js → schema-psja2ka8.js} +5 -5
- package/dist/chunks/{file-kptd0d9x.js → schema-pvpbd174.js} +3 -3
- package/dist/chunks/{file-rg5spvbf.js → schema-q8eje61e.js} +27 -13
- package/dist/chunks/{file-qe0d689s.js → schema-qe0d689s.js} +2 -2
- package/dist/chunks/{file-qgt32wwf.js → schema-qgt32wwf.js} +3 -3
- package/dist/chunks/{file-73brgvey.js → schema-qp4w20e0.js} +33 -24
- package/dist/chunks/{file-qsgvz7g8.js → schema-qsgvz7g8.js} +2 -2
- package/dist/chunks/{file-b1z4y0ay.js → schema-qz7fnwev.js} +85 -85
- package/dist/chunks/{file-s8dhdr1a.js → schema-r12ar42m.js} +11 -11
- package/dist/chunks/{file-9dbphfd4.js → schema-r27by9gw.js} +10 -10
- package/dist/chunks/{file-r3k9abhd.js → schema-r3k9abhd.js} +2 -2
- package/dist/chunks/schema-renxfktz.js +82 -0
- package/dist/chunks/{file-mhsxry0w.js → schema-rptxw5ca.js} +5 -5
- package/dist/chunks/{file-rt6yg6j2.js → schema-rt6yg6j2.js} +2 -2
- package/dist/chunks/{file-ryap75b3.js → schema-ryap75b3.js} +1 -1
- package/dist/chunks/schema-s33fw6zm.js +16 -0
- package/dist/chunks/{file-8twz6z1z.js → schema-sfbv6a2b.js} +12 -1
- package/dist/chunks/{file-vd76ghhe.js → schema-sjmge7vj.js} +67 -67
- package/dist/chunks/{file-smpeg8c9.js → schema-smpeg8c9.js} +2 -2
- package/dist/chunks/{file-ztp8pcjx.js → schema-st4afeqv.js} +8 -8
- package/dist/chunks/{file-8ywqk2j9.js → schema-sw84ckhj.js} +4 -3
- package/dist/chunks/{file-xg3qgrrb.js → schema-syd62q9r.js} +5 -5
- package/dist/chunks/{file-gpee7ppy.js → schema-t066q9hw.js} +7 -7
- package/dist/chunks/{file-t14kykx1.js → schema-t14kykx1.js} +1 -1
- package/dist/chunks/{file-j2nmssd3.js → schema-t48qx23x.js} +105 -19
- package/dist/chunks/{file-9nxkvjkr.js → schema-t7dc291t.js} +17 -17
- package/dist/chunks/{file-tcn24h1d.js → schema-tcn24h1d.js} +1 -1
- package/dist/chunks/{file-6y00qkx7.js → schema-tdr7a9mr.js} +4 -4
- package/dist/chunks/{file-tenv3kfs.js → schema-tenv3kfs.js} +2 -2
- package/dist/chunks/{file-thstd87d.js → schema-thstd87d.js} +1 -1
- package/dist/chunks/{file-nve52h2s.js → schema-ts2w2c9a.js} +6 -6
- package/dist/chunks/{file-tgkwq7ey.js → schema-v1h0eg4v.js} +12 -12
- package/dist/chunks/{file-0dwyqmzq.js → schema-v2wshkax.js} +19 -10
- package/dist/chunks/{file-pe29tp57.js → schema-v4dy03sz.js} +20 -4
- package/dist/chunks/{file-v80zsxnb.js → schema-v80zsxnb.js} +1 -1
- package/dist/chunks/{file-v972xay6.js → schema-v972xay6.js} +1 -1
- package/dist/chunks/{file-v9bfv94f.js → schema-v9bfv94f.js} +1 -1
- package/dist/chunks/{file-yy9aw35r.js → schema-vbfnvw5r.js} +9 -9
- package/dist/chunks/schema-vxz5qdmp.js +31 -0
- package/dist/chunks/{file-vz89hfgr.js → schema-vz89hfgr.js} +1 -1
- package/dist/chunks/{file-mqfhnxg0.js → schema-w5z9v813.js} +61 -56
- package/dist/chunks/{file-3bk6rmsw.js → schema-w7yxqywk.js} +175 -119
- package/dist/chunks/schema-wb4dbzpz.js +23 -0
- package/dist/chunks/{file-wd268jeg.js → schema-wd268jeg.js} +1 -1
- package/dist/chunks/{file-1px4xhxb.js → schema-wh0zhxcg.js} +2 -2
- package/dist/chunks/{file-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
- package/dist/chunks/{file-wps8gh8n.js → schema-wps8gh8n.js} +2 -2
- package/dist/chunks/{file-6tvgjq6v.js → schema-wxr0j9zg.js} +4 -4
- package/dist/chunks/{file-2krtwza0.js → schema-x817znxg.js} +7 -7
- package/dist/chunks/{file-xczfw7dq.js → schema-xczfw7dq.js} +1 -1
- package/dist/chunks/{file-3jfeqpzx.js → schema-xgm3katr.js} +49 -71
- package/dist/chunks/{file-xgv25zxy.js → schema-xgv25zxy.js} +1 -1
- package/dist/chunks/schema-xqrk9zsf.js +42 -0
- package/dist/chunks/{file-xwftk1fd.js → schema-xwftk1fd.js} +2 -2
- package/dist/chunks/{file-xxpvz42q.js → schema-xxpvz42q.js} +3 -3
- package/dist/chunks/{file-y0x38cee.js → schema-y0x38cee.js} +1 -1
- package/dist/chunks/{file-y198y2ra.js → schema-y198y2ra.js} +1 -1
- package/dist/chunks/{file-y67x6rf6.js → schema-y67x6rf6.js} +1 -1
- package/dist/chunks/{file-y8rs54ne.js → schema-y8rs54ne.js} +1 -1
- package/dist/chunks/{file-y980s7ka.js → schema-y980s7ka.js} +3 -3
- package/dist/chunks/{file-6q42t53d.js → schema-y98sxkck.js} +5 -5
- package/dist/chunks/{file-yf0knd5z.js → schema-yf0knd5z.js} +2 -2
- package/dist/chunks/{file-p3661pfb.js → schema-ypyb4rds.js} +9 -9
- package/dist/chunks/{file-yz0wm9s3.js → schema-yz0wm9s3.js} +2 -2
- package/dist/chunks/schema-z2mm0vp7.js +37 -0
- package/dist/chunks/{file-5qc7cxvj.js → schema-z2phqntd.js} +18 -18
- package/dist/chunks/{file-5aca3jzc.js → schema-z2zkanea.js} +8 -8
- package/dist/chunks/{file-tq2yp16c.js → schema-z3wzp1s4.js} +8 -18
- package/dist/chunks/{file-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
- package/dist/chunks/{file-zdkg1k91.js → schema-zdkg1k91.js} +1 -1
- package/dist/chunks/{file-zfxc0ze5.js → schema-zfxc0ze5.js} +1 -1
- package/dist/chunks/{file-2g41g83c.js → schema-zgdhqszm.js} +2 -2
- package/dist/chunks/{file-zjvgdt9p.js → schema-zjvgdt9p.js} +3 -3
- package/dist/chunks/{file-hgn8axp1.js → schema-zkkkcc8p.js} +4 -4
- package/dist/chunks/{file-0q14sxyz.js → schema-zp05jrm8.js} +17 -27
- package/dist/chunks/schema-zpc0w2f6.js +46 -0
- package/dist/chunks/{file-cdrqa8qb.js → schema-zqh29h4g.js} +3 -3
- package/dist/chunks/{file-27xnc6tv.js → schema-zx1pgzr8.js} +9 -9
- package/dist/chunks/{file-zxe9jjhn.js → schema-zxe9jjhn.js} +2 -2
- package/dist/chunks/{file-w0nvndn8.js → schema-zzekq2w4.js} +9 -9
- 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 +98 -130
- 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/compaction.js +156 -0
- 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/location-watcher.js +120 -0
- 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/shell.js +121 -0
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +134 -134
- package/dist/config/plugin/snapshot.js +120 -0
- package/dist/config/plugin/source.js +111 -111
- package/dist/config/plugin/tool-output.js +122 -0
- 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 +23 -23
- 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 +77 -77
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +330 -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-retention.js +9 -0
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +12 -0
- package/dist/filesystem/location-watcher.js +301 -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 +330 -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 +165 -185
- package/dist/plugin/internal.js +295 -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 +151 -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 +302 -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 +165 -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 +86 -118
- 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 +122 -147
- package/dist/session/context.js +308 -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 +312 -297
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +79 -79
- package/dist/session/inbox.js +79 -85
- 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 +140 -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 +87 -116
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +86 -86
- package/dist/session/runner/llm.js +317 -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 +154 -179
- package/dist/session/usage.js +2 -2
- package/dist/session.js +150 -174
- package/dist/shell/parse.js +5 -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 +10 -3
- package/dist/shell.js +103 -130
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +103 -103
- package/dist/skill.js +102 -102
- package/dist/snapshot.js +82 -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 +181 -179
- package/dist/tool/plugin/skill.js +103 -103
- package/dist/tool/plugin/subagent.js +178 -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 +5 -112
- package/dist/tool.js +117 -145
- package/dist/types/aisdk-native.d.ts +1 -0
- package/dist/types/command.d.ts +1 -10
- package/dist/types/config/plugin/compaction.d.ts +4 -0
- package/dist/types/config/plugin/formatter.d.ts +9 -0
- package/dist/types/config/plugin/image.d.ts +4 -0
- package/dist/types/config/plugin/location-watcher.d.ts +4 -0
- package/dist/types/config/plugin/shell.d.ts +4 -0
- package/dist/types/config/plugin/snapshot.d.ts +4 -0
- package/dist/types/config/plugin/tool-output.d.ts +4 -0
- package/dist/types/file-retention.d.ts +4 -0
- package/dist/types/filesystem/location-watcher-policy.d.ts +15 -0
- package/dist/types/formatter.d.ts +7 -1
- package/dist/types/image.d.ts +11 -1
- package/dist/types/kv.d.ts +14 -0
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/location-services.d.ts +2 -1
- package/dist/types/model-resolver.d.ts +3 -3
- package/dist/types/plugin/hooks.d.ts +3 -2
- package/dist/types/plugin/host.d.ts +40 -5
- package/dist/types/plugin/internal.d.ts +9 -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/provider.d.ts +1 -3
- package/dist/types/pty.d.ts +1 -8
- package/dist/types/session/compaction.d.ts +13 -9
- package/dist/types/session/execution.d.ts +6 -4
- package/dist/types/session/generate-node.d.ts +2 -2
- package/dist/types/session/history.d.ts +12 -4
- package/dist/types/session/inbox.d.ts +2 -182
- package/dist/types/session/model-hook.d.ts +12 -0
- package/dist/types/session/model-request.d.ts +38 -10
- package/dist/types/session/run-coordinator.d.ts +8 -12
- package/dist/types/session/runner/model.d.ts +1 -0
- package/dist/types/session/runner/publish-llm-event.d.ts +2 -0
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +2 -2
- package/dist/types/shell/select.d.ts +13 -1
- package/dist/types/shell.d.ts +5 -10
- package/dist/types/snapshot.d.ts +5 -1
- package/dist/types/tool/plugin/websearch.d.ts +1 -2
- package/dist/types/tool-output.d.ts +9 -1
- 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 +11 -11
- package/dist/chunks/file-665983a3.js +0 -122
- package/dist/chunks/file-grghsxkg.js +0 -72
- package/dist/chunks/file-nj1s64cz.js +0 -112
- package/dist/chunks/file-qbvbyx91.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/{file-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{file-0f48qthw.js → schema-0f48qthw.js} +0 -0
- /package/dist/chunks/{file-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
- /package/dist/chunks/{file-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{file-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{file-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{file-3c4nztf9.js → schema-3c4nztf9.js} +0 -0
- /package/dist/chunks/{file-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{file-3q6gbwmd.js → schema-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{file-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{file-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
- /package/dist/chunks/{file-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{file-4zg0gww9.js → schema-4zg0gww9.js} +0 -0
- /package/dist/chunks/{file-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{file-5va1yh78.js → schema-5va1yh78.js} +0 -0
- /package/dist/chunks/{file-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
- /package/dist/chunks/{file-6yt963b8.js → schema-6yt963b8.js} +0 -0
- /package/dist/chunks/{file-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{file-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{file-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{file-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{file-906y0b6d.js → schema-906y0b6d.js} +0 -0
- /package/dist/chunks/{file-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
- /package/dist/chunks/{file-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
- /package/dist/chunks/{file-a02svayp.js → schema-a02svayp.js} +0 -0
- /package/dist/chunks/{file-a83yvq99.js → schema-a83yvq99.js} +0 -0
- /package/dist/chunks/{file-ayevdmef.js → schema-ayevdmef.js} +0 -0
- /package/dist/chunks/{file-b02txbh8.js → schema-b02txbh8.js} +0 -0
- /package/dist/chunks/{file-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
- /package/dist/chunks/{file-brsh5f65.js → schema-brsh5f65.js} +0 -0
- /package/dist/chunks/{file-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{file-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
- /package/dist/chunks/{file-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
- /package/dist/chunks/{file-d6s8p2vk.js → schema-d6s8p2vk.js} +0 -0
- /package/dist/chunks/{file-dbah77c1.js → schema-dbah77c1.js} +0 -0
- /package/dist/chunks/{file-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
- /package/dist/chunks/{file-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
- /package/dist/chunks/{file-dht5baf0.js → schema-dht5baf0.js} +0 -0
- /package/dist/chunks/{file-dkmkay92.js → schema-dkmkay92.js} +0 -0
- /package/dist/chunks/{file-ecxv0vtt.js → schema-ecxv0vtt.js} +0 -0
- /package/dist/chunks/{file-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
- /package/dist/chunks/{file-em6xpscd.js → schema-em6xpscd.js} +0 -0
- /package/dist/chunks/{file-emmqknsm.js → schema-emmqknsm.js} +0 -0
- /package/dist/chunks/{file-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
- /package/dist/chunks/{file-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
- /package/dist/chunks/{file-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{file-f84sxdqn.js → schema-f84sxdqn.js} +0 -0
- /package/dist/chunks/{file-faypg4r1.js → schema-faypg4r1.js} +0 -0
- /package/dist/chunks/{file-g7k9te92.js → schema-g7k9te92.js} +0 -0
- /package/dist/chunks/{file-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{file-ghm4673n.js → schema-ghm4673n.js} +0 -0
- /package/dist/chunks/{file-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
- /package/dist/chunks/{file-gy500k2r.js → schema-gy500k2r.js} +0 -0
- /package/dist/chunks/{file-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{file-j07kk359.js → schema-j07kk359.js} +0 -0
- /package/dist/chunks/{file-jve7t217.js → schema-jve7t217.js} +0 -0
- /package/dist/chunks/{file-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{file-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
- /package/dist/chunks/{file-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{file-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
- /package/dist/chunks/{file-ma07p6tt.js → schema-ma07p6tt.js} +0 -0
- /package/dist/chunks/{file-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
- /package/dist/chunks/{file-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
- /package/dist/chunks/{file-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{file-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{file-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
- /package/dist/chunks/{file-qc167nrn.js → schema-qc167nrn.js} +0 -0
- /package/dist/chunks/{file-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
- /package/dist/chunks/{file-r8f4w671.js → schema-r8f4w671.js} +0 -0
- /package/dist/chunks/{file-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
- /package/dist/chunks/{file-rvfvac9x.js → schema-rvfvac9x.js} +0 -0
- /package/dist/chunks/{file-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
- /package/dist/chunks/{file-se76j685.js → schema-se76j685.js} +0 -0
- /package/dist/chunks/{file-sem2g21k.js → schema-sem2g21k.js} +0 -0
- /package/dist/chunks/{file-tmb1f636.js → schema-tmb1f636.js} +0 -0
- /package/dist/chunks/{file-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{file-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{file-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
- /package/dist/chunks/{file-vkvb1sb3.js → schema-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{file-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{file-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
- /package/dist/chunks/{file-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{file-x4q807cx.js → schema-x4q807cx.js} +0 -0
- /package/dist/chunks/{file-xhz3jyrc.js → schema-xhz3jyrc.js} +0 -0
- /package/dist/chunks/{file-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{file-z47nswr2.js → schema-z47nswr2.js} +0 -0
- /package/dist/chunks/{file-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
package/dist/types/command.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
export * as Command from "./command.js";
|
|
2
|
-
import { Context, Effect,
|
|
2
|
+
import { Context, Effect, Schema, Types } from "effect";
|
|
3
3
|
import { Command } from "@opencode-ai/schema/command";
|
|
4
4
|
import { State } from "./state.js";
|
|
5
|
-
import { MCP } from "./mcp/index.js";
|
|
6
|
-
import { Bus } from "./bus.js";
|
|
7
|
-
import { AppProcess } from "@opencode-ai/util/process";
|
|
8
|
-
import { Config } from "./config.js";
|
|
9
|
-
import { Location } from "./location.js";
|
|
10
|
-
import { ShellSelect } from "./shell/select.js";
|
|
11
|
-
import { Global } from "@opencode-ai/util/global";
|
|
12
5
|
export declare const Info: Schema.Struct<{
|
|
13
6
|
readonly name: Schema.String;
|
|
14
7
|
readonly template: Schema.String;
|
|
@@ -98,6 +91,4 @@ export interface Interface extends State.Transformable<Draft> {
|
|
|
98
91
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/Command", Interface>;
|
|
99
92
|
export declare class Service extends Service_base {
|
|
100
93
|
}
|
|
101
|
-
export declare const layer: (options?: ShellSelect.Options) => Layer.Layer<Service, never, Global.Service | AppProcess.Service | Bus.Service | Location.Service | MCP.Service | Config.Service>;
|
|
102
|
-
export declare function configured(options?: ShellSelect.Options): import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
103
94
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as ConfigCompactionPlugin from "./compaction.js";
|
|
2
|
+
import { Config } from "../../config.js";
|
|
3
|
+
import { SessionCompaction } from "../../session/compaction.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | SessionCompaction.Service>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * as ConfigFormatterPlugin from "./formatter.js";
|
|
2
|
+
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
3
|
+
import { Global } from "@opencode-ai/util/global";
|
|
4
|
+
import { Npm } from "@opencode-ai/util/npm";
|
|
5
|
+
import { AppProcess } from "@opencode-ai/util/process";
|
|
6
|
+
import { Config } from "../../config.js";
|
|
7
|
+
import { Formatter } from "../../formatter.js";
|
|
8
|
+
import { Location } from "../../location.js";
|
|
9
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Global.Service | FSUtil.Service | AppProcess.Service | Location.Service | Npm.Service | Config.Service | Formatter.Service>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as ConfigImagePlugin from "./image.js";
|
|
2
|
+
import { Config } from "../../config.js";
|
|
3
|
+
import { Image } from "../../image.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | Image.Service>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as ConfigLocationWatcherPlugin from "./location-watcher.js";
|
|
2
|
+
import { Config } from "../../config.js";
|
|
3
|
+
import { LocationWatcherPolicy } from "../../filesystem/location-watcher-policy.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | LocationWatcherPolicy.Service>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as ConfigShellPlugin from "./shell.js";
|
|
2
|
+
import { Config } from "../../config.js";
|
|
3
|
+
import { ShellSelect } from "../../shell/select.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | ShellSelect.Service | Config.Service>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as ConfigSnapshotPlugin from "./snapshot.js";
|
|
2
|
+
import { Config } from "../../config.js";
|
|
3
|
+
import { Snapshot } from "../../snapshot.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | Snapshot.Service>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as ConfigToolOutputPlugin from "./tool-output.js";
|
|
2
|
+
import { Config } from "../../config.js";
|
|
3
|
+
import { ToolOutput } from "../../tool-output.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | ToolOutput.Service>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as FileRetention from "./file-retention.js";
|
|
2
|
+
import { Duration, Effect } from "effect";
|
|
3
|
+
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
4
|
+
export declare const cleanup: (fs: FSUtil.Interface, files: readonly string[], retention: Duration.Input) => Effect.Effect<void, never, never>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * as LocationWatcherPolicy from "./location-watcher-policy.js";
|
|
2
|
+
import { Context, Effect, Scope } from "effect";
|
|
3
|
+
import { State } from "../state.js";
|
|
4
|
+
export type Draft = {
|
|
5
|
+
add: (ignore: readonly string[]) => void;
|
|
6
|
+
list: () => readonly string[];
|
|
7
|
+
};
|
|
8
|
+
export interface Interface extends State.Transformable<Draft> {
|
|
9
|
+
readonly current: () => readonly string[];
|
|
10
|
+
readonly observe: (listener: (ignore: readonly string[]) => Effect.Effect<void>) => Effect.Effect<State.Registration, never, Scope.Scope>;
|
|
11
|
+
}
|
|
12
|
+
declare const Service_base: Context.ServiceClass<Service, "@opencode/LocationWatcherPolicy", Interface>;
|
|
13
|
+
export declare class Service extends Service_base {
|
|
14
|
+
}
|
|
15
|
+
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export * as Formatter from "./formatter.js";
|
|
2
2
|
import { Context, Effect } from "effect";
|
|
3
|
-
|
|
3
|
+
import type { Info } from "./formatter/builtins.js";
|
|
4
|
+
import { State } from "./state.js";
|
|
5
|
+
export type Draft = {
|
|
6
|
+
set: (formatter: Info) => void;
|
|
7
|
+
remove: (name: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export interface Interface extends State.Transformable<Draft> {
|
|
4
10
|
readonly file: (filepath: string) => Effect.Effect<boolean>;
|
|
5
11
|
}
|
|
6
12
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/v2/Formatter", Interface>;
|
package/dist/types/image.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Image from "./image.js";
|
|
2
2
|
import { Context, Effect, Schema } from "effect";
|
|
3
3
|
import { FileSystem } from "./filesystem.js";
|
|
4
|
+
import { State } from "./state.js";
|
|
4
5
|
declare const ResizerUnavailableError_base: Schema.Class<ResizerUnavailableError, Schema.TaggedStruct<"Image.ResizerUnavailableError", {}>, import("effect/Cause").YieldableError>;
|
|
5
6
|
export declare class ResizerUnavailableError extends ResizerUnavailableError_base {
|
|
6
7
|
}
|
|
@@ -22,7 +23,16 @@ declare const SizeError_base: Schema.Class<SizeError, Schema.TaggedStruct<"Image
|
|
|
22
23
|
export declare class SizeError extends SizeError_base {
|
|
23
24
|
get message(): string;
|
|
24
25
|
}
|
|
25
|
-
export
|
|
26
|
+
export type Limits = {
|
|
27
|
+
autoResize: boolean;
|
|
28
|
+
maxWidth: number;
|
|
29
|
+
maxHeight: number;
|
|
30
|
+
maxBase64Bytes: number;
|
|
31
|
+
};
|
|
32
|
+
export type Draft = {
|
|
33
|
+
configure: (limits: Partial<Limits>) => void;
|
|
34
|
+
};
|
|
35
|
+
export interface Interface extends State.Transformable<Draft> {
|
|
26
36
|
readonly normalize: (resource: string, content: FileSystem.Content & {
|
|
27
37
|
readonly encoding: "base64";
|
|
28
38
|
}) => Effect.Effect<FileSystem.Content & {
|
package/dist/types/kv.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
export * as KV from "./kv.js";
|
|
2
2
|
import { Context, Effect, Schema } from "effect";
|
|
3
3
|
export type Value = Schema.Json;
|
|
4
|
+
export interface Entry {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly value: Value;
|
|
7
|
+
}
|
|
8
|
+
export interface ScanOptions {
|
|
9
|
+
readonly prefix: string;
|
|
10
|
+
readonly after?: string;
|
|
11
|
+
readonly limit?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ScanResult {
|
|
14
|
+
readonly entries: readonly Entry[];
|
|
15
|
+
readonly next?: string;
|
|
16
|
+
}
|
|
4
17
|
export interface Interface {
|
|
5
18
|
readonly get: (key: string) => Effect.Effect<Value | undefined>;
|
|
6
19
|
readonly set: (key: string, value: Value) => Effect.Effect<void>;
|
|
7
20
|
readonly remove: (key: string) => Effect.Effect<void>;
|
|
21
|
+
readonly scan: (options: ScanOptions) => Effect.Effect<ScanResult>;
|
|
8
22
|
}
|
|
9
23
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/KV", Interface>;
|
|
10
24
|
export declare class Service extends Service_base {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Context, Layer, LayerMap } from "effect";
|
|
2
2
|
import { LayerNode } from "@opencode-ai/util/effect/layer-node";
|
|
3
3
|
import { Location } from "./location.js";
|
|
4
|
-
declare const Service_base: Context.ServiceClass<Service, "@opencode/example/LocationServiceMap", LayerMap.LayerMap<Location.Ref, Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./
|
|
4
|
+
declare const Service_base: Context.ServiceClass<Service, "@opencode/example/LocationServiceMap", LayerMap.LayerMap<Location.Ref, Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./shell/select.js").Service | import("./command.js").Service | import("./config.js").Service | import("./file-mutation.js").Service | import("./filesystem/search.js").Service | import("./filesystem.js").Service | import("./formatter.js").Service | import("./model-resolver.js").Service | import("./generate.js").Service | import("./image.js").Service | import("./instruction-discovery.js").Service | import("./location-mutation.js").Service | import("./plugin/supervisor-service.js").Service | import("./session/runner/model.js").Service | import("./session/runner/index.js").Service | import("./permission.js").Service | import("./reference.js").Service | import("./websearch.js").Service | import("./plugin.js").Service | import("./skill.js").Service | import("./tool.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./session/compaction.js").Service | import("./snapshot.js").Service | import("./tool-output.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/instruction-entry.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/model-transport.js").Service | import("./session/title.js").Service | import("./vcs.js").Service | import("./filesystem/location-watcher.js").Service, never>>;
|
|
5
5
|
export declare class Service extends Service_base {
|
|
6
|
-
static get(ref: Location.Ref): Layer.Layer<Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./
|
|
6
|
+
static get(ref: Location.Ref): Layer.Layer<Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./shell/select.js").Service | import("./command.js").Service | import("./config.js").Service | import("./file-mutation.js").Service | import("./filesystem/search.js").Service | import("./filesystem.js").Service | import("./formatter.js").Service | import("./model-resolver.js").Service | import("./generate.js").Service | import("./image.js").Service | import("./instruction-discovery.js").Service | import("./location-mutation.js").Service | import("./plugin/supervisor-service.js").Service | import("./session/runner/model.js").Service | import("./session/runner/index.js").Service | import("./permission.js").Service | import("./reference.js").Service | import("./websearch.js").Service | import("./plugin.js").Service | import("./skill.js").Service | import("./tool.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./session/compaction.js").Service | import("./snapshot.js").Service | import("./tool-output.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/instruction-entry.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/model-transport.js").Service | import("./session/title.js").Service | import("./vcs.js").Service | import("./filesystem/location-watcher.js").Service, never, Service>;
|
|
7
7
|
}
|
|
8
8
|
export declare const node: LayerNode.Node<Service, never, LayerNode.Tag<"global">>;
|
|
9
9
|
export * as LocationServiceMap from "./location-service-map.js";
|
|
@@ -25,6 +25,7 @@ import { Plugin } from "./plugin.js";
|
|
|
25
25
|
import { PluginSupervisor } from "./plugin/supervisor.js";
|
|
26
26
|
import { Pty } from "./pty.js";
|
|
27
27
|
import { Shell } from "./shell.js";
|
|
28
|
+
import { ShellSelect } from "./shell/select.js";
|
|
28
29
|
import { Reference } from "./reference.js";
|
|
29
30
|
import { WebSearch } from "./websearch.js";
|
|
30
31
|
import { ReferenceInstructions } from "./reference/instructions.js";
|
|
@@ -45,7 +46,7 @@ import { Tool } from "./tool.js";
|
|
|
45
46
|
import { ToolOutput } from "./tool-output.js";
|
|
46
47
|
import { Vcs } from "./vcs.js";
|
|
47
48
|
export { LocationServiceMap } from "./location-service-map.js";
|
|
48
|
-
export declare const locationServices: LayerNode.Node<Location.Service | Agent.Service | AISDK.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service |
|
|
49
|
+
export declare const locationServices: LayerNode.Node<Location.Service | Agent.Service | AISDK.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Config.Service | FileMutation.Service | FileSystemSearch.Service | FileSystem.Service | Formatter.Service | ModelResolver.Service | Generate.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | PluginSupervisor.Service | SessionRunnerModel.Service | import("./session/runner/index.js").Service | Permission.Service | Reference.Service | WebSearch.Service | Plugin.Service | Skill.Service | Tool.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SessionCompaction.Service | Snapshot.Service | ToolOutput.Service | Pty.Service | InstructionBuiltIns.Service | SkillInstructions.Service | ReferenceInstructions.Service | InstructionEntry.Service | import("./session/generate.js").Service | McpTool.Service | SessionModelTransport.Service | SessionTitle.Service | Vcs.Service | LocationWatcher.Service, never, LayerNode.Tag<"location">>;
|
|
49
50
|
export type LocationServices = LayerNode.Output<typeof locationServices>;
|
|
50
51
|
export type LocationError = LayerNode.Error<typeof locationServices>;
|
|
51
52
|
export declare function buildLocationServiceMap(replacements?: LayerNode.Replacements): Layer.Layer<LocationServiceMap.Service>;
|
|
@@ -78,6 +78,8 @@ export interface Resolved {
|
|
|
78
78
|
readonly capabilities: Capabilities;
|
|
79
79
|
/** Catalog pricing in dollars per million tokens. */
|
|
80
80
|
readonly cost: Info["cost"];
|
|
81
|
+
/** Catalog token limits used by Core for context management. */
|
|
82
|
+
readonly limit: Info["limit"];
|
|
81
83
|
}
|
|
82
84
|
export interface Interface {
|
|
83
85
|
readonly resolve: (requested?: Ref) => Effect.Effect<Resolved | undefined, Error>;
|
|
@@ -93,9 +95,7 @@ export interface Dependencies {
|
|
|
93
95
|
}
|
|
94
96
|
export declare const fromCatalogModel: (model: Info, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel, UnsupportedPackageError | UnresolvedProviderVariablesError>;
|
|
95
97
|
export declare const resolveModel: (model: Info, variant: VariantID | undefined, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel<{
|
|
96
|
-
readonly [x: string]:
|
|
97
|
-
readonly [x: string]: unknown;
|
|
98
|
-
};
|
|
98
|
+
readonly [x: string]: unknown;
|
|
99
99
|
}>, VariantUnavailableError | UnsupportedPackageError | UnresolvedProviderVariablesError, never>;
|
|
100
100
|
export declare const supported: (model: Info) => boolean;
|
|
101
101
|
/** Resolves catalog selections into runtime models for the current Location. */
|
|
@@ -3,6 +3,7 @@ import type { AISDKHooks } from "@opencode-ai/plugin/effect/aisdk";
|
|
|
3
3
|
import type { SessionHooks } from "@opencode-ai/plugin/effect/session";
|
|
4
4
|
import type { ShellHooks } from "@opencode-ai/plugin/effect/shell";
|
|
5
5
|
import type { ToolFailures, ToolHooks } from "@opencode-ai/plugin/effect/tool";
|
|
6
|
+
import type { ModelHookOptions } from "@opencode-ai/plugin/effect/registration";
|
|
6
7
|
import { Context, Effect, Scope } from "effect";
|
|
7
8
|
import { State } from "../state.js";
|
|
8
9
|
export interface Domains {
|
|
@@ -22,8 +23,8 @@ interface Failures extends Record<keyof Domains, unknown> {
|
|
|
22
23
|
}
|
|
23
24
|
type Callback<Event, Error> = (event: Event) => Effect.Effect<void, Error>;
|
|
24
25
|
export interface Interface {
|
|
25
|
-
readonly has: <Domain extends keyof Domains>(domain: Domain, name: keyof Domains[Domain] & keyof Failures[Domain]) => Effect.Effect<boolean>;
|
|
26
|
-
readonly register: <Domain extends keyof Domains, Name extends keyof Domains[Domain] & keyof Failures[Domain]>(domain: Domain, name: Name, callback: Callback<Domains[Domain][Name], Failures[Domain][Name]
|
|
26
|
+
readonly has: <Domain extends keyof Domains>(domain: Domain, name: keyof Domains[Domain] & keyof Failures[Domain], providerID?: string) => Effect.Effect<boolean>;
|
|
27
|
+
readonly register: <Domain extends keyof Domains, Name extends keyof Domains[Domain] & keyof Failures[Domain]>(domain: Domain, name: Name, callback: Callback<Domains[Domain][Name], Failures[Domain][Name]>, options?: ModelHookOptions) => Effect.Effect<State.Registration, never, Scope.Scope>;
|
|
27
28
|
readonly trigger: <Domain extends keyof Domains, Name extends keyof Domains[Domain] & keyof Failures[Domain]>(domain: Domain, name: Name, event: Domains[Domain][Name]) => Effect.Effect<Domains[Domain][Name], Failures[Domain][Name]>;
|
|
28
29
|
}
|
|
29
30
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/PluginHooks", Interface>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as PluginHost from "./host.js";
|
|
2
|
+
import { Plugin } from "@opencode-ai/plugin/effect";
|
|
2
3
|
import { EventManifest } from "@opencode-ai/schema/event-manifest";
|
|
3
4
|
import { App } from "../app.js";
|
|
4
5
|
import { Effect, Stream } from "effect";
|
|
@@ -8,6 +9,7 @@ import { Catalog } from "../catalog.js";
|
|
|
8
9
|
import { Command } from "../command.js";
|
|
9
10
|
import { Bus } from "../bus.js";
|
|
10
11
|
import { Integration } from "../integration.js";
|
|
12
|
+
import { KV } from "../kv.js";
|
|
11
13
|
import { Location } from "../location.js";
|
|
12
14
|
import { Model } from "../model.js";
|
|
13
15
|
import { MCP } from "../mcp/index.js";
|
|
@@ -17,7 +19,7 @@ import { Skill } from "../skill.js";
|
|
|
17
19
|
import { Tool } from "../tool.js";
|
|
18
20
|
import { WebSearch } from "../websearch.js";
|
|
19
21
|
import { PluginHooks } from "./hooks.js";
|
|
20
|
-
export declare const make: (plugin: import("../plugin.js").Interface) => Effect.Effect<{
|
|
22
|
+
export declare const make: (plugin: import("../plugin.js").Interface, pluginID?: string | undefined) => Effect.Effect<{
|
|
21
23
|
app: App.Info;
|
|
22
24
|
options: {};
|
|
23
25
|
agent: {
|
|
@@ -33,7 +35,7 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
|
|
|
33
35
|
transform: (callback: (input: import("@opencode-ai/plugin/effect/agent").AgentDraft) => void) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
34
36
|
};
|
|
35
37
|
aisdk: {
|
|
36
|
-
hook: <Name extends keyof import("@opencode-ai/plugin/effect/aisdk").AISDKHooks>(name: Name, callback: (input: import("@opencode-ai/plugin/effect/aisdk").AISDKHooks[Name]) => Effect.Effect<void, Record<keyof import("@opencode-ai/plugin/effect/aisdk").AISDKHooks, never>[Name], never
|
|
38
|
+
hook: <Name extends keyof import("@opencode-ai/plugin/effect/aisdk").AISDKHooks>(name: Name, callback: (input: import("@opencode-ai/plugin/effect/aisdk").AISDKHooks[Name]) => Effect.Effect<void, Record<keyof import("@opencode-ai/plugin/effect/aisdk").AISDKHooks, never>[Name], never>, options: import("@opencode-ai/plugin/effect/registration").ModelHookOptions | undefined) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
37
39
|
};
|
|
38
40
|
catalog: {
|
|
39
41
|
provider: {
|
|
@@ -203,7 +205,38 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
|
|
|
203
205
|
plugin: {
|
|
204
206
|
list: () => Effect.Effect<{
|
|
205
207
|
location: Location.Info;
|
|
206
|
-
data:
|
|
208
|
+
data: ({
|
|
209
|
+
readonly id: string & import("effect/Brand").Brand<"Plugin.ID">;
|
|
210
|
+
readonly source: {
|
|
211
|
+
readonly type: "builtin";
|
|
212
|
+
} | {
|
|
213
|
+
readonly type: "package";
|
|
214
|
+
readonly package: string;
|
|
215
|
+
} | {
|
|
216
|
+
readonly type: "local";
|
|
217
|
+
readonly path: string;
|
|
218
|
+
} | {
|
|
219
|
+
readonly type: "sdk";
|
|
220
|
+
};
|
|
221
|
+
readonly status: "active";
|
|
222
|
+
readonly tui: boolean;
|
|
223
|
+
} | {
|
|
224
|
+
readonly source: {
|
|
225
|
+
readonly type: "builtin";
|
|
226
|
+
} | {
|
|
227
|
+
readonly type: "package";
|
|
228
|
+
readonly package: string;
|
|
229
|
+
} | {
|
|
230
|
+
readonly type: "local";
|
|
231
|
+
readonly path: string;
|
|
232
|
+
} | {
|
|
233
|
+
readonly type: "sdk";
|
|
234
|
+
};
|
|
235
|
+
readonly status: "failed";
|
|
236
|
+
readonly error: string;
|
|
237
|
+
readonly tui: boolean;
|
|
238
|
+
readonly id?: (string & import("effect/Brand").Brand<"Plugin.ID">) | undefined;
|
|
239
|
+
})[];
|
|
207
240
|
}, never, never>;
|
|
208
241
|
};
|
|
209
242
|
reference: {
|
|
@@ -222,6 +255,7 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
|
|
|
222
255
|
reload: import("../state.js").Reload;
|
|
223
256
|
transform: (callback: (input: import("@opencode-ai/plugin/effect/skill").SkillDraft) => void) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
224
257
|
};
|
|
258
|
+
storage: import("@opencode-ai/plugin/effect/storage").StorageDomain;
|
|
225
259
|
shell: {
|
|
226
260
|
hook: <Name extends "create.before">(name: Name, callback: (input: import("@opencode-ai/plugin/effect/shell").ShellHooks[Name]) => Effect.Effect<void, Record<"create.before", never>[Name], never>) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
227
261
|
};
|
|
@@ -244,7 +278,7 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
|
|
|
244
278
|
transform: (callback: (input: import("@opencode-ai/plugin/effect/websearch").WebSearchDraft) => void) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
245
279
|
};
|
|
246
280
|
session: {
|
|
247
|
-
hook: <Name extends keyof import("@opencode-ai/plugin/effect/session").SessionHooks>(name: Name, callback: (input: import("@opencode-ai/plugin/effect/session").SessionHooks[Name]) => Effect.Effect<void, Record<keyof import("@opencode-ai/plugin/effect/session").SessionHooks, never>[Name], never
|
|
281
|
+
hook: <Name extends keyof import("@opencode-ai/plugin/effect/session").SessionHooks>(name: Name, callback: (input: import("@opencode-ai/plugin/effect/session").SessionHooks[Name]) => Effect.Effect<void, Record<keyof import("@opencode-ai/plugin/effect/session").SessionHooks, never>[Name], never>, options: import("@opencode-ai/plugin/effect/registration").ModelHookOptions | undefined) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
248
282
|
create: (input: import("@opencode-ai/client/effect/api").Endpoint5_1Input | undefined) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("../session.js").NotFoundError, never>;
|
|
249
283
|
get: (input: import("@opencode-ai/client/effect/api").Endpoint5_5Input) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("../session.js").NotFoundError, never>;
|
|
250
284
|
prompt: (input: {
|
|
@@ -290,4 +324,5 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
|
|
|
290
324
|
interrupt: (input: import("@opencode-ai/client/effect/api").Endpoint5_32Input) => Effect.Effect<void, never, never>;
|
|
291
325
|
wait: (input: import("@opencode-ai/client/effect/api").Endpoint5_18Input) => Effect.Effect<void, import("../session.js").NotFoundError, never>;
|
|
292
326
|
};
|
|
293
|
-
}, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | MCP.Service | Command.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | PluginHooks.Service | Tool.Service>;
|
|
327
|
+
}, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | MCP.Service | Command.Service | KV.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | PluginHooks.Service | Tool.Service>;
|
|
328
|
+
export declare function storage(kv: KV.Interface, pluginID: string): Plugin.Context["storage"];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as PluginInternal from "./internal.js";
|
|
2
2
|
import type { Plugin } from "@opencode-ai/plugin/effect/plugin";
|
|
3
3
|
import { LayerNode } from "@opencode-ai/util/effect/layer-node";
|
|
4
|
+
import { AppProcess } from "@opencode-ai/util/process";
|
|
4
5
|
import { Context, Effect, Scope } from "effect";
|
|
5
6
|
import { HttpClient } from "effect/unstable/http";
|
|
6
7
|
import { Agent } from "../agent.js";
|
|
@@ -15,6 +16,7 @@ import { FileMutation } from "../file-mutation.js";
|
|
|
15
16
|
import { Formatter } from "../formatter.js";
|
|
16
17
|
import { Form } from "../form.js";
|
|
17
18
|
import { FileSystem } from "../filesystem.js";
|
|
19
|
+
import { LocationWatcherPolicy } from "../filesystem/location-watcher-policy.js";
|
|
18
20
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
19
21
|
import { Global } from "@opencode-ai/util/global";
|
|
20
22
|
import { Image } from "../image.js";
|
|
@@ -30,21 +32,25 @@ import { Permission } from "../permission.js";
|
|
|
30
32
|
import { Reference } from "../reference.js";
|
|
31
33
|
import { WebSearch } from "../websearch.js";
|
|
32
34
|
import { Ripgrep } from "../ripgrep.js";
|
|
35
|
+
import { SessionCompaction } from "../session/compaction.js";
|
|
33
36
|
import { SessionInstructions } from "../session/instructions.js";
|
|
34
37
|
import { Shell } from "../shell.js";
|
|
38
|
+
import { ShellSelect } from "../shell/select.js";
|
|
39
|
+
import { Snapshot } from "../snapshot.js";
|
|
35
40
|
import { Skill } from "../skill.js";
|
|
36
41
|
import { SkillDiscovery } from "../skill/discovery.js";
|
|
37
42
|
import { Watcher } from "../filesystem/watcher.js";
|
|
38
43
|
import { ReadToolFileSystem } from "../tool/read-filesystem.js";
|
|
39
44
|
import { Tool } from "../tool.js";
|
|
45
|
+
import { ToolOutput } from "../tool-output.js";
|
|
40
46
|
import { WellKnown } from "../wellknown.js";
|
|
41
47
|
import { PluginRuntime } from "./runtime.js";
|
|
42
|
-
declare const services: () => Effect.Effect<Context.Context<Global.Service | HttpClient.HttpClient | FSUtil.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service |
|
|
48
|
+
declare const services: () => Effect.Effect<Context.Context<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
|
|
43
49
|
type ContextServices<A> = A extends Context.Context<infer R> ? R : never;
|
|
44
50
|
export type Requirements = ContextServices<Effect.Success<ReturnType<typeof services>>>;
|
|
45
|
-
export declare const requirements: LayerNode.Node<Global.Service | HttpClient.HttpClient | FSUtil.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service |
|
|
51
|
+
export declare const requirements: LayerNode.Node<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
|
|
46
52
|
export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
|
|
47
53
|
export declare const list: () => Effect.Effect<{
|
|
48
54
|
pre: Plugin<Scope.Scope>[];
|
|
49
55
|
post: Plugin<Scope.Scope>[];
|
|
50
|
-
}, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service |
|
|
56
|
+
}, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * as PluginSupervisor from "./supervisor-service.js";
|
|
2
|
+
import { Context, Effect } from "effect";
|
|
3
|
+
/**
|
|
4
|
+
* Dependency-only supervisor seam. Keep this module free of implementation
|
|
5
|
+
* imports: the supervisor reaches PluginRuntime, which depends on Session.
|
|
6
|
+
*/
|
|
7
|
+
export interface Interface {
|
|
8
|
+
/** Wait for the initial plugin generation and startup updates to settle. */
|
|
9
|
+
readonly flush: Effect.Effect<void>;
|
|
10
|
+
}
|
|
11
|
+
declare const Service_base: Context.ServiceClass<Service, "@opencode/PluginSupervisor", Interface>;
|
|
12
|
+
export declare class Service extends Service_base {
|
|
13
|
+
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
export * as PluginSupervisor from "./supervisor.js";
|
|
2
|
-
|
|
2
|
+
export { Service, type Interface } from "./supervisor-service.js";
|
|
3
|
+
import { Layer } from "effect";
|
|
3
4
|
import { ConfigPluginSource } from "../config/plugin/source.js";
|
|
4
5
|
import { Bus } from "../bus.js";
|
|
5
6
|
import { Npm } from "@opencode-ai/util/npm";
|
|
6
7
|
import { Plugin } from "../plugin.js";
|
|
7
8
|
import { SdkPlugins } from "./sdk.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly flush: Effect.Effect<void>;
|
|
11
|
-
}
|
|
12
|
-
declare const Service_base: Context.ServiceClass<Service, "@opencode/PluginSupervisor", Interface>;
|
|
13
|
-
export declare class Service extends Service_base {
|
|
14
|
-
}
|
|
15
|
-
export declare const layer: Layer.Layer<Service, never, import("@opencode-ai/util/global").Service | import("effect/unstable/http/HttpClient").HttpClient | import("@opencode-ai/util/fs-util").FSUtil.Service | Bus.Service | import("../location.js").Service | import("../agent.js").Service | Npm.Service | import("../credential.js").Service | import("../form.js").Service | import("../integration.js").Service | import("../catalog.js").Service | import("../environment/environment.js").Service | import("../mcp/index.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../command.js").Service | import("../file-mutation.js").Service | import("../ripgrep.js").Service | import("../filesystem.js").Service | import("../formatter.js").Service | import("../image.js").Service | import("../instruction-discovery.js").Service | import("../location-mutation.js").Service | import("../permission.js").Service | import("../reference.js").Service | import("../websearch.js").Service | Plugin.Service | import("./runtime.js").Service | import("../skill.js").Service | import("../tool.js").Service | SdkPlugins.Service | ConfigPluginSource.Service | import("../models-dev.js").Service | import("../tool/read-filesystem.js").Service | import("../session/instructions.js").Service | import("../shell.js").Service | import("../skill/discovery.js").Service>;
|
|
9
|
+
import { Service } from "./supervisor-service.js";
|
|
10
|
+
export declare const layer: Layer.Layer<Service, never, import("@opencode-ai/util/global").Service | import("effect/unstable/http/HttpClient").HttpClient | import("@opencode-ai/util/fs-util").FSUtil.Service | import("@opencode-ai/util/process").Service | Bus.Service | import("../location.js").Service | import("../agent.js").Service | Npm.Service | import("../credential.js").Service | import("../form.js").Service | import("../integration.js").Service | import("../catalog.js").Service | import("../environment/environment.js").Service | import("../mcp/index.js").Service | import("../shell/select.js").Service | import("../command.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../file-mutation.js").Service | import("../ripgrep.js").Service | import("../filesystem.js").Service | import("../formatter.js").Service | import("../image.js").Service | import("../instruction-discovery.js").Service | import("../location-mutation.js").Service | ConfigPluginSource.Service | import("../permission.js").Service | import("../reference.js").Service | import("../websearch.js").Service | Plugin.Service | import("./runtime.js").Service | import("../skill.js").Service | import("../tool.js").Service | SdkPlugins.Service | import("../models-dev.js").Service | import("../tool/read-filesystem.js").Service | import("../session/instructions.js").Service | import("../shell.js").Service | import("../filesystem/location-watcher-policy.js").Service | import("../session/compaction.js").Service | import("../snapshot.js").Service | import("../skill/discovery.js").Service | import("../tool-output.js").Service>;
|
|
16
11
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export * as Plugin from "./plugin.js";
|
|
2
|
-
export { Event, ID, Info } from "@opencode-ai/schema/plugin";
|
|
2
|
+
export { Event, ID, Info, Source } from "@opencode-ai/schema/plugin";
|
|
3
3
|
import { Plugin } from "@opencode-ai/schema/plugin";
|
|
4
4
|
import { Context, Effect } from "effect";
|
|
5
5
|
export interface Interface {
|
|
6
|
-
readonly activate: (plugins: readonly Versioned[]
|
|
6
|
+
readonly activate: (plugins: readonly Versioned[], failures?: readonly Extract<Plugin.Info, {
|
|
7
|
+
readonly status: "failed";
|
|
8
|
+
}>[]) => Effect.Effect<void>;
|
|
7
9
|
readonly list: () => Effect.Effect<Plugin.Info[]>;
|
|
8
10
|
}
|
|
9
11
|
export type Versioned = import("@opencode-ai/plugin/effect/plugin").Plugin & {
|
|
10
12
|
readonly version: string;
|
|
13
|
+
readonly source?: Plugin.Source;
|
|
11
14
|
};
|
|
12
15
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/Plugin", Interface>;
|
|
13
16
|
export declare class Service extends Service_base {
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -33,9 +33,7 @@ export declare class LoadError extends LoadError_base {
|
|
|
33
33
|
}
|
|
34
34
|
export type ProviderPackage = ProviderPackageDefinition;
|
|
35
35
|
export declare const loadPackage: (specifier: string, npm?: Npm.Interface | undefined) => Effect.Effect<ProviderPackageDefinition<import("@opencode-ai/ai").ProviderPackageSettings, {
|
|
36
|
-
readonly [x: string]:
|
|
37
|
-
readonly [x: string]: unknown;
|
|
38
|
-
};
|
|
36
|
+
readonly [x: string]: unknown;
|
|
39
37
|
}>, LoadError, never>;
|
|
40
38
|
export declare function mergeOverlay(base: Readonly<Record<string, unknown>> | undefined, overlay: Readonly<Record<string, unknown>> | undefined): Record<string, Json> | undefined;
|
|
41
39
|
export declare function mergeHeaders(base: Readonly<Record<string, string>> | undefined, overlay: Readonly<Record<string, string>> | undefined): {
|
package/dist/types/pty.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export * as Pty from "./pty.js";
|
|
2
|
-
import { Context, Effect,
|
|
3
|
-
import { Config } from "./config.js";
|
|
4
|
-
import { Bus } from "./bus.js";
|
|
5
|
-
import { Location } from "./location.js";
|
|
2
|
+
import { Context, Effect, Schema, Types } from "effect";
|
|
6
3
|
import { PtyID } from "./pty/schema.js";
|
|
7
|
-
import { ShellSelect } from "./shell/select.js";
|
|
8
|
-
import { Global } from "@opencode-ai/util/global";
|
|
9
4
|
export declare const Info: Schema.Struct<{
|
|
10
5
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
11
6
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -82,6 +77,4 @@ export interface Interface {
|
|
|
82
77
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/Pty", Interface>;
|
|
83
78
|
export declare class Service extends Service_base {
|
|
84
79
|
}
|
|
85
|
-
export declare const layer: (options?: ShellSelect.Options) => Layer.Layer<Service, never, Global.Service | Bus.Service | Location.Service | Config.Service>;
|
|
86
|
-
export declare function configured(options?: ShellSelect.Options): import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
87
80
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
export * as SessionCompaction from "./compaction.js";
|
|
2
|
-
import { type LanguageModel } from "@opencode-ai/ai";
|
|
3
2
|
import { Context, Effect, Layer } from "effect";
|
|
4
|
-
import { Config } from "../config.js";
|
|
5
3
|
import { Bus } from "../bus.js";
|
|
6
4
|
import type { SessionMessage } from "./message.js";
|
|
7
5
|
import { SessionRunnerModel } from "./runner/model.js";
|
|
8
6
|
import { SessionSchema } from "./schema.js";
|
|
9
|
-
import type { Info, Ref } from "../model.js";
|
|
10
7
|
import { PluginHooks } from "../plugin/hooks.js";
|
|
8
|
+
import { State } from "../state.js";
|
|
9
|
+
export type Settings = {
|
|
10
|
+
auto: boolean;
|
|
11
|
+
buffer: number;
|
|
12
|
+
tokens: number;
|
|
13
|
+
};
|
|
14
|
+
export type Draft = {
|
|
15
|
+
configure: (settings: Partial<Settings>) => void;
|
|
16
|
+
};
|
|
11
17
|
export type AutoInput = {
|
|
12
18
|
readonly session: SessionSchema.Info;
|
|
13
19
|
readonly messages: readonly SessionMessage.Info[];
|
|
14
|
-
readonly
|
|
15
|
-
readonly ref: Ref;
|
|
16
|
-
readonly cost: Info["cost"];
|
|
20
|
+
readonly resolved: SessionRunnerModel.Resolved;
|
|
17
21
|
};
|
|
18
22
|
export type ManualInput = {
|
|
19
23
|
readonly session: SessionSchema.Info;
|
|
@@ -21,9 +25,9 @@ export type ManualInput = {
|
|
|
21
25
|
readonly inputID: SessionMessage.ID;
|
|
22
26
|
readonly started?: boolean;
|
|
23
27
|
};
|
|
24
|
-
type RequiredInput =
|
|
28
|
+
type RequiredInput = Pick<AutoInput, "messages" | "resolved">;
|
|
25
29
|
export type Outcome = Pick<SessionMessage.CompactionCompleted, "status"> | Pick<SessionMessage.CompactionFailed, "status" | "error">;
|
|
26
|
-
export interface Interface {
|
|
30
|
+
export interface Interface extends State.Transformable<Draft> {
|
|
27
31
|
readonly required: (input: RequiredInput) => boolean;
|
|
28
32
|
readonly compact: (input: AutoInput) => Effect.Effect<Outcome>;
|
|
29
33
|
readonly compactManual: (input: ManualInput) => Effect.Effect<Outcome>;
|
|
@@ -36,5 +40,5 @@ export declare const buildPrompt: (input: {
|
|
|
36
40
|
readonly previousSummary?: string;
|
|
37
41
|
readonly context: readonly string[];
|
|
38
42
|
}) => string;
|
|
39
|
-
export declare const layer: Layer.Layer<Service, never, Bus.Service | import("@opencode-ai/ai").LLMClientService |
|
|
43
|
+
export declare const layer: Layer.Layer<Service, never, Bus.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service | PluginHooks.Service>;
|
|
40
44
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -13,9 +13,11 @@ export interface Interface {
|
|
|
13
13
|
readonly resume: (sessionID: SessionSchema.ID) => Effect.Effect<void, SessionRunner.RunError>;
|
|
14
14
|
/** Registers newly recorded work. Repeated wakeups may coalesce. */
|
|
15
15
|
readonly wake: (sessionID: SessionSchema.ID) => Effect.Effect<void>;
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Interrupt active work owned by this process. Idle interruption is a no-op. Resolves once
|
|
18
|
+
* the interruption is accepted; cleanup settles asynchronously in the execution fiber.
|
|
19
|
+
* Compose with `awaitIdle` when settlement matters.
|
|
20
|
+
*/
|
|
19
21
|
readonly interrupt: (sessionID: SessionSchema.ID, options?: {
|
|
20
22
|
readonly continue?: boolean;
|
|
21
23
|
}) => Effect.Effect<void>;
|
|
@@ -26,7 +28,7 @@ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionExec
|
|
|
26
28
|
/** Routes execution from a Session ID to the runner owned by that Session's Location. */
|
|
27
29
|
export declare class Service extends Service_base {
|
|
28
30
|
}
|
|
29
|
-
type InterruptReason = "user" | "shutdown"
|
|
31
|
+
type InterruptReason = "user" | "shutdown";
|
|
30
32
|
export declare function terminal(exit: Exit.Exit<void, SessionRunner.RunError>, reason?: InterruptReason): {
|
|
31
33
|
type: "succeeded";
|
|
32
34
|
reason?: undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as SessionGenerateNode from "./generate-node.js";
|
|
2
2
|
import { Layer } from "effect";
|
|
3
3
|
import { Database } from "../database/database.js";
|
|
4
|
-
import { PluginHooks } from "../plugin/hooks.js";
|
|
5
4
|
import { SessionContext } from "./context.js";
|
|
6
5
|
import { SessionGenerate } from "./generate.js";
|
|
6
|
+
import { SessionModelRequest } from "./model-request.js";
|
|
7
7
|
import { SessionRunnerModel } from "./runner/model.js";
|
|
8
|
-
export declare const layer: Layer.Layer<SessionGenerate.Service, never, Database.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service |
|
|
8
|
+
export declare const layer: Layer.Layer<SessionGenerate.Service, never, Database.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service | SessionModelRequest.Service | SessionContext.Service>;
|
|
9
9
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<SessionGenerate.Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|