@opencode/core 2.1.3 → 2.2.0
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 +1 -1
- package/dist/agent.js +89 -85
- package/dist/aisdk-native.js +97 -91
- package/dist/aisdk.js +103 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -75
- package/dist/chunks/{instruction-discovery-9hbqwfdp.js → tool-012mq190.js} +39 -39
- package/dist/chunks/{instruction-discovery-jsbhksmn.js → tool-02nh8ewm.js} +18 -14
- package/dist/chunks/{instruction-discovery-034tev2y.js → tool-034tev2y.js} +2 -2
- package/dist/chunks/{instruction-discovery-1vdntpm3.js → tool-09bv4atg.js} +13 -7
- package/dist/chunks/{instruction-discovery-7w0k7xvm.js → tool-0a2sm9cp.js} +19 -19
- package/dist/chunks/{instruction-discovery-2azy8kv6.js → tool-0ahs07zn.js} +4 -4
- package/dist/chunks/{instruction-discovery-kbp23r6j.js → tool-0fhbvqtr.js} +9 -9
- package/dist/chunks/{instruction-discovery-1887s9ws.js → tool-0t332zg2.js} +6 -6
- package/dist/chunks/{instruction-discovery-8jztxfpf.js → tool-11hfp36g.js} +4 -4
- package/dist/chunks/tool-12cx84te.js +224 -0
- package/dist/chunks/{instruction-discovery-43jry69q.js → tool-14kcwm24.js} +11 -11
- package/dist/chunks/{instruction-discovery-sm5tp0dc.js → tool-18s0c7mk.js} +13 -13
- package/dist/chunks/{instruction-discovery-j4mjn1pq.js → tool-19y1mz66.js} +7 -7
- package/dist/chunks/{instruction-discovery-x2sbbjmw.js → tool-1b236rmr.js} +193 -143
- package/dist/chunks/{instruction-discovery-wkr28yqr.js → tool-1dvrssaw.js} +6 -4
- package/dist/chunks/{instruction-discovery-1ep2p91f.js → tool-1ep2p91f.js} +2 -2
- package/dist/chunks/{instruction-discovery-5fjb7ams.js → tool-1jakw16s.js} +2 -2
- package/dist/chunks/{instruction-discovery-znn5w31e.js → tool-1px95g66.js} +10 -10
- package/dist/chunks/{instruction-discovery-5yzc6bj8.js → tool-1qb2fn2e.js} +12 -12
- package/dist/chunks/{instruction-discovery-y9awcm76.js → tool-1vpe07px.js} +78 -23
- package/dist/chunks/{instruction-discovery-1x2knyw4.js → tool-1x2knyw4.js} +1 -1
- package/dist/chunks/{instruction-discovery-vd3b3yk9.js → tool-204s3925.js} +13 -2
- package/dist/chunks/{instruction-discovery-p4az2c5k.js → tool-27c23e33.js} +15 -15
- package/dist/chunks/{instruction-discovery-kr28pkn3.js → tool-28pnz6dy.js} +36 -32
- package/dist/chunks/tool-2esqe60t.js +252 -0
- package/dist/chunks/{instruction-discovery-956c56jz.js → tool-2jrrfqe1.js} +15 -5
- package/dist/chunks/{instruction-discovery-v1wb27er.js → tool-2nkqvy4a.js} +36 -36
- package/dist/chunks/{instruction-discovery-pthf9bv3.js → tool-2qgpse07.js} +10 -10
- package/dist/chunks/{instruction-discovery-x62216mf.js → tool-2xw2f3vf.js} +11 -11
- package/dist/chunks/{instruction-discovery-kj7e2tww.js → tool-30wtetgq.js} +129 -47
- package/dist/chunks/{instruction-discovery-x0kw00z1.js → tool-39j6yt37.js} +12 -14
- package/dist/chunks/{instruction-discovery-ymqv4qqa.js → tool-39tkfg3g.js} +9 -9
- package/dist/chunks/{instruction-discovery-b5j1fcax.js → tool-3ewwa9eq.js} +31 -31
- package/dist/chunks/{instruction-discovery-xg53n6nb.js → tool-3f13jy3s.js} +27 -27
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-4wn1snmt.js → tool-3jy1f5rc.js} +68 -51
- package/dist/chunks/{instruction-discovery-a12mwymm.js → tool-3k7t0q4z.js} +14 -14
- package/dist/chunks/{instruction-discovery-3nnrz6f6.js → tool-3nnrz6f6.js} +1 -1
- package/dist/chunks/{instruction-discovery-ffdw0et2.js → tool-3nr2yc9a.js} +5 -5
- package/dist/chunks/{instruction-discovery-a4b9rhwe.js → tool-3t4066nw.js} +21 -14
- package/dist/chunks/{instruction-discovery-pp5hwqdy.js → tool-41sh1bbt.js} +8 -6
- package/dist/chunks/{instruction-discovery-ewjr930z.js → tool-47cq5kqw.js} +4 -4
- package/dist/chunks/{instruction-discovery-ba1860as.js → tool-4czcg6bs.js} +16 -16
- package/dist/chunks/{instruction-discovery-5091jnev.js → tool-4jw80zew.js} +88 -88
- package/dist/chunks/{instruction-discovery-pkyv6v7h.js → tool-4m86bj6y.js} +24 -15
- package/dist/chunks/{instruction-discovery-nttn14j9.js → tool-4pw98qd4.js} +4 -4
- package/dist/chunks/{instruction-discovery-2z1j29yd.js → tool-4pyp9zr9.js} +19 -3
- package/dist/chunks/{instruction-discovery-c0emejqt.js → tool-4t7jqkaw.js} +13 -13
- package/dist/chunks/{instruction-discovery-4v008n1t.js → tool-4v008n1t.js} +1 -1
- package/dist/chunks/{instruction-discovery-wh2p867q.js → tool-4zsrmah6.js} +47 -47
- package/dist/chunks/{instruction-discovery-ztzjzgcq.js → tool-5858b97a.js} +13 -13
- package/dist/chunks/{instruction-discovery-8p073n4r.js → tool-5887ft1y.js} +4 -4
- package/dist/chunks/{instruction-discovery-nxsjqf5t.js → tool-5dme8x4x.js} +8 -8
- package/dist/chunks/{instruction-discovery-0txtbpzw.js → tool-5fgj30xe.js} +33 -33
- package/dist/chunks/{instruction-discovery-kkh84317.js → tool-5k0vn9gs.js} +2 -2
- package/dist/chunks/{instruction-discovery-5m9w47nd.js → tool-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-3ffdjm8e.js → tool-5n6snyjt.js} +52 -36
- package/dist/chunks/tool-5w3e23ze.js +16 -0
- package/dist/chunks/{instruction-discovery-rx7ecff6.js → tool-5wtqv2es.js} +5 -5
- package/dist/chunks/{instruction-discovery-zba5tm1j.js → tool-61ennm6n.js} +4 -4
- package/dist/chunks/{instruction-discovery-jme6sax1.js → tool-67cvb3ht.js} +9 -9
- package/dist/chunks/{instruction-discovery-20e5g7bx.js → tool-6adqbtbr.js} +39 -28
- package/dist/chunks/tool-6bshxcsx.js +18 -0
- package/dist/chunks/{instruction-discovery-6esdw8yj.js → tool-6esdw8yj.js} +1 -1
- package/dist/chunks/{instruction-discovery-4x6wmwcx.js → tool-6h9hqrxp.js} +26 -24
- package/dist/chunks/{instruction-discovery-qhhs3wjj.js → tool-6jehphsq.js} +36 -36
- package/dist/chunks/{instruction-discovery-6vnjn6e3.js → tool-6mmkz41v.js} +16 -16
- package/dist/chunks/{instruction-discovery-hyynj17b.js → tool-6qtsf31h.js} +3 -3
- package/dist/chunks/{instruction-discovery-010690t7.js → tool-6rfxa98r.js} +25 -25
- package/dist/chunks/{instruction-discovery-gcjdgkn2.js → tool-6twykydk.js} +9 -9
- package/dist/chunks/{instruction-discovery-pytpe3gf.js → tool-6wz31r82.js} +11 -11
- package/dist/chunks/{instruction-discovery-j035ke4x.js → tool-7467kx48.js} +61 -42
- package/dist/chunks/{instruction-discovery-v3tkh1aj.js → tool-752zwhsj.js} +20 -14
- package/dist/chunks/{instruction-discovery-76cb1hcw.js → tool-76cb1hcw.js} +1 -1
- package/dist/chunks/{instruction-discovery-770pw0s1.js → tool-770pw0s1.js} +1 -1
- package/dist/chunks/{instruction-discovery-y09thtp3.js → tool-780q7vq9.js} +9 -7
- package/dist/chunks/{instruction-discovery-6q77emv1.js → tool-78kz22ny.js} +19 -19
- package/dist/chunks/{instruction-discovery-v2dnm4n9.js → tool-798y36pp.js} +49 -29
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-qz04j05z.js → tool-7f02p6s5.js} +1 -1
- package/dist/chunks/{instruction-discovery-tmqhwsdc.js → tool-7gm95e0b.js} +6 -6
- package/dist/chunks/{instruction-discovery-w76j0mqj.js → tool-7harcha2.js} +2 -2
- package/dist/chunks/{instruction-discovery-scaas24c.js → tool-7hsh0za6.js} +46 -46
- package/dist/chunks/{instruction-discovery-hq055v4c.js → tool-7mwfr1ya.js} +10 -10
- package/dist/chunks/{instruction-discovery-zygdztbw.js → tool-7tjh76vn.js} +28 -9
- package/dist/chunks/{instruction-discovery-7w2ypzdf.js → tool-7w2ypzdf.js} +1 -1
- package/dist/chunks/{instruction-discovery-11xg13et.js → tool-88degkwg.js} +48 -23
- package/dist/chunks/{instruction-discovery-bcyzxrby.js → tool-8cvc109z.js} +23 -23
- package/dist/chunks/{instruction-discovery-vw33scy9.js → tool-8d9gtfa7.js} +27 -20
- package/dist/chunks/tool-8e0gbf5j.js +537 -0
- package/dist/chunks/{instruction-discovery-2vnhppnj.js → tool-8feq5yxx.js} +26 -20
- package/dist/chunks/tool-8jkecmvj.js +111 -0
- package/dist/chunks/{instruction-discovery-avzkbq4q.js → tool-8rk0v0nw.js} +44 -44
- package/dist/chunks/{instruction-discovery-c1tsfj35.js → tool-8t8mrqrh.js} +6 -6
- package/dist/chunks/{instruction-discovery-6y263vp8.js → tool-8wc2fpae.js} +5 -5
- package/dist/chunks/{instruction-discovery-8wtp7s3z.js → tool-8wtp7s3z.js} +1 -1
- package/dist/chunks/{instruction-discovery-m37sd98t.js → tool-8y4jps98.js} +4 -4
- package/dist/chunks/{instruction-discovery-maspj1v3.js → tool-90zstvax.js} +44 -8
- package/dist/chunks/{instruction-discovery-x2c3sws5.js → tool-94as0g8p.js} +60 -40
- package/dist/chunks/{instruction-discovery-0rmtycpk.js → tool-9e6q8a6s.js} +14 -14
- package/dist/chunks/{instruction-discovery-6c5cd6ez.js → tool-9f3sjfep.js} +9 -9
- package/dist/chunks/{instruction-discovery-tzjzgnfr.js → tool-9kqcsae8.js} +15 -9
- package/dist/chunks/{instruction-discovery-97cewran.js → tool-9nkjg9qd.js} +6 -6
- package/dist/chunks/{instruction-discovery-1y0wdj51.js → tool-9q8g9sv8.js} +9 -9
- package/dist/chunks/{instruction-discovery-0afbw91q.js → tool-9t5cp16p.js} +32 -22
- package/dist/chunks/{instruction-discovery-y8a8xdaa.js → tool-9taxa3wa.js} +15 -12
- package/dist/chunks/{instruction-discovery-76ncshtz.js → tool-a35byqw0.js} +29 -29
- package/dist/chunks/{instruction-discovery-y299mpjs.js → tool-agmw1zcy.js} +62 -62
- package/dist/chunks/tool-asd4mxps.js +26 -0
- package/dist/chunks/{instruction-discovery-ayjs7tqn.js → tool-ayjs7tqn.js} +2 -2
- package/dist/chunks/{instruction-discovery-4x3py1rw.js → tool-ayv543vf.js} +23 -23
- package/dist/chunks/{instruction-discovery-zspgb8vt.js → tool-b08y6na7.js} +2 -2
- package/dist/chunks/{instruction-discovery-b6vsg801.js → tool-b6vsg801.js} +2 -2
- package/dist/chunks/{instruction-discovery-6j214bp7.js → tool-b7286km2.js} +9 -9
- package/dist/chunks/{instruction-discovery-46r0wh18.js → tool-bavxd7np.js} +91 -67
- package/dist/chunks/{instruction-discovery-wjj7prxr.js → tool-beh6qq61.js} +11 -0
- package/dist/chunks/{instruction-discovery-1x75wf9g.js → tool-bgs9y14h.js} +5 -5
- package/dist/chunks/{instruction-discovery-nad4mkqt.js → tool-bk7xq8bh.js} +7 -7
- package/dist/chunks/{instruction-discovery-bstexjd6.js → tool-bstexjd6.js} +1 -1
- package/dist/chunks/{instruction-discovery-ffcwgx2p.js → tool-c065g2ca.js} +67 -51
- package/dist/chunks/{instruction-discovery-7nepz6ee.js → tool-c1y12bqd.js} +35 -37
- package/dist/chunks/{instruction-discovery-mpx851pd.js → tool-c347jtgq.js} +29 -29
- package/dist/chunks/{instruction-discovery-3wvbe35v.js → tool-cnga39w3.js} +17 -17
- package/dist/chunks/{instruction-discovery-p3ram5kx.js → tool-cnh9xgcw.js} +46 -44
- package/dist/chunks/tool-cqv5kn06.js +13 -0
- package/dist/chunks/{instruction-discovery-ryq7zjd3.js → tool-cwq9059v.js} +18 -16
- package/dist/chunks/{instruction-discovery-b0mv4wxm.js → tool-cwrgdav8.js} +2 -2
- package/dist/chunks/{instruction-discovery-y78a4wcp.js → tool-d3qmtx3n.js} +73 -41
- package/dist/chunks/{instruction-discovery-d4v9tmah.js → tool-d4v9tmah.js} +2 -2
- package/dist/chunks/{instruction-discovery-0dw5cvz7.js → tool-d893c1qn.js} +13 -13
- package/dist/chunks/{instruction-discovery-7fyd11se.js → tool-d9hg8633.js} +19 -19
- package/dist/chunks/{instruction-discovery-18b8n2mx.js → tool-ds82yrjj.js} +35 -22
- package/dist/chunks/{instruction-discovery-j113cymg.js → tool-dt77769w.js} +2 -2
- package/dist/chunks/{instruction-discovery-5hny5v5k.js → tool-dtfj6qhp.js} +126 -99
- package/dist/chunks/{instruction-discovery-gq24h8g9.js → tool-dvbyh3pq.js} +51 -48
- package/dist/chunks/{instruction-discovery-ma4p4v89.js → tool-dwxkhmt2.js} +21 -23
- package/dist/chunks/tool-e07q2w5p.js +83 -0
- package/dist/chunks/{instruction-discovery-bzfg3f7z.js → tool-e4vy1v26.js} +92 -40
- package/dist/chunks/{instruction-discovery-e834z07m.js → tool-e834z07m.js} +1 -1
- package/dist/chunks/{instruction-discovery-2ph54kq6.js → tool-edkh5za3.js} +3 -3
- package/dist/chunks/{instruction-discovery-cqxf2v2j.js → tool-ewr5k9wg.js} +8 -8
- package/dist/chunks/{instruction-discovery-xac4ky40.js → tool-f1kzydc9.js} +30 -29
- package/dist/chunks/{instruction-discovery-f0st8ac1.js → tool-f449218g.js} +3 -3
- package/dist/chunks/{instruction-discovery-5t4dhsbz.js → tool-f68rfrfr.js} +38 -41
- package/dist/chunks/{instruction-discovery-w194z9kg.js → tool-f8jj8vg7.js} +12 -12
- package/dist/chunks/{instruction-discovery-fffv3p7h.js → tool-fffv3p7h.js} +1 -1
- package/dist/chunks/tool-fkpq3x5p.js +36 -0
- package/dist/chunks/{instruction-discovery-7yv7aars.js → tool-g2pxrbdf.js} +105 -87
- package/dist/chunks/{instruction-discovery-2p8pcvpp.js → tool-g3b4788n.js} +33 -21
- package/dist/chunks/{instruction-discovery-mfa5g8gf.js → tool-ge4qdnbb.js} +28 -25
- package/dist/chunks/{instruction-discovery-998yhzzq.js → tool-gg8p9cgs.js} +24 -18
- package/dist/chunks/{instruction-discovery-jzrtge32.js → tool-gjasn01h.js} +4 -4
- package/dist/chunks/{instruction-discovery-62mdyzxb.js → tool-gn0hevf2.js} +13 -13
- package/dist/chunks/{instruction-discovery-kdmjmd4e.js → tool-gtqjgkpw.js} +1 -1
- package/dist/chunks/{instruction-discovery-mjatteds.js → tool-h0ya90rh.js} +19 -15
- package/dist/chunks/{instruction-discovery-d63q5jb9.js → tool-h8wtbm19.js} +44 -44
- package/dist/chunks/{instruction-discovery-c3cfh5w6.js → tool-hdfrs5mg.js} +5 -5
- package/dist/chunks/{instruction-discovery-6pjqjmy2.js → tool-hpg1pkwy.js} +2 -2
- package/dist/chunks/{instruction-discovery-d0bfceqm.js → tool-hs9cwcgs.js} +30 -30
- package/dist/chunks/{instruction-discovery-7ayzy530.js → tool-hy05jz59.js} +4 -4
- package/dist/chunks/{instruction-discovery-8a6bse1c.js → tool-j04c4e1z.js} +22 -22
- package/dist/chunks/{instruction-discovery-7m02jy4j.js → tool-j3xa31ke.js} +17 -17
- package/dist/chunks/tool-j56qcejd.js +517 -0
- package/dist/chunks/tool-j775gmwt.js +171 -0
- package/dist/chunks/{instruction-discovery-91rj84md.js → tool-jfaecv01.js} +2 -2
- package/dist/chunks/{instruction-discovery-043wk7y2.js → tool-jhz9911s.js} +46 -31
- package/dist/chunks/{instruction-discovery-pd3xbwyj.js → tool-jsqg4353.js} +15 -15
- package/dist/chunks/{instruction-discovery-rjw99gz0.js → tool-jszqqvxf.js} +9 -9
- package/dist/chunks/{instruction-discovery-g5h9c0rr.js → tool-jtnps1zs.js} +2 -2
- package/dist/chunks/tool-jwr30sdr.js +13 -0
- package/dist/chunks/{instruction-discovery-08c8nzsh.js → tool-jz5b6eqf.js} +32 -26
- package/dist/chunks/{instruction-discovery-fhjfpzy5.js → tool-k66e5v3s.js} +13 -13
- package/dist/chunks/{instruction-discovery-k814nvkf.js → tool-k814nvkf.js} +1 -1
- package/dist/chunks/{instruction-discovery-4shrmavh.js → tool-kcw9vyak.js} +11 -11
- package/dist/chunks/{instruction-discovery-k5dps1se.js → tool-kh9rt25c.js} +11 -11
- package/dist/chunks/{instruction-discovery-5fkm8khv.js → tool-ks0qaf84.js} +23 -21
- package/dist/chunks/{instruction-discovery-t31xmjpq.js → tool-ks473cwm.js} +22 -22
- package/dist/chunks/tool-kt3bjfbg.js +26 -0
- package/dist/chunks/{instruction-discovery-6pg400w5.js → tool-kzvqqj4g.js} +24 -24
- package/dist/chunks/{instruction-discovery-m1714858.js → tool-m1714858.js} +1 -1
- package/dist/chunks/{instruction-discovery-7d2ezwbt.js → tool-m89ew3ks.js} +33 -33
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-ad4wbrpy.js → tool-maq43m3m.js} +11 -11
- package/dist/chunks/{instruction-discovery-zhtsgqh5.js → tool-mpvgefqy.js} +4 -4
- package/dist/chunks/tool-mrzap57y.js +295 -0
- package/dist/chunks/{instruction-discovery-pk22050n.js → tool-mvzrjhep.js} +2 -2
- package/dist/chunks/{instruction-discovery-1dqke238.js → tool-n0w6tq5t.js} +8 -8
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → tool-ncqqe42p.js} +2 -2
- package/dist/chunks/{instruction-discovery-exc8xa65.js → tool-nfga29bv.js} +31 -30
- package/dist/chunks/{instruction-discovery-8k3r5dp0.js → tool-nfk1y8jw.js} +26 -26
- package/dist/chunks/{instruction-discovery-hxbv21kt.js → tool-nfq3amnp.js} +31 -30
- package/dist/chunks/{instruction-discovery-b8mk3enz.js → tool-nh9ma6fe.js} +11 -11
- package/dist/chunks/{instruction-discovery-f8fq6sgx.js → tool-nn3qjkhj.js} +24 -24
- package/dist/chunks/{instruction-discovery-w0ap69e3.js → tool-nq0efya9.js} +7 -7
- package/dist/chunks/{instruction-discovery-c2sed5cq.js → tool-nvxqht09.js} +3 -3
- package/dist/chunks/{instruction-discovery-jzmsqkqv.js → tool-nyw2x12k.js} +1 -1
- package/dist/chunks/{instruction-discovery-6z2tyrnm.js → tool-nz89qvcx.js} +32 -30
- package/dist/chunks/{instruction-discovery-p015t6z3.js → tool-p015t6z3.js} +2 -2
- package/dist/chunks/{instruction-discovery-p8t554mv.js → tool-p56gnsnx.js} +29 -29
- package/dist/chunks/tool-p71gwv9c.js +153 -0
- package/dist/chunks/{instruction-discovery-1yq9hg58.js → tool-p7vhpwh8.js} +5 -5
- package/dist/chunks/{instruction-discovery-0mhrw39n.js → tool-p84syj9g.js} +31 -29
- package/dist/chunks/{instruction-discovery-w7zjqt6n.js → tool-pbbktnbz.js} +6 -6
- package/dist/chunks/{instruction-discovery-m46e9dn8.js → tool-pbwrhxm9.js} +19 -19
- package/dist/chunks/{instruction-discovery-t633519e.js → tool-pckyv4f2.js} +36 -36
- package/dist/chunks/{instruction-discovery-b9p9sb5m.js → tool-pfnzsr07.js} +19 -19
- package/dist/chunks/{instruction-discovery-3z193f8y.js → tool-pfstxkm2.js} +1 -1
- package/dist/chunks/tool-pjtyf8t7.js +133 -0
- package/dist/chunks/{instruction-discovery-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-e65cdmhb.js → tool-pnwsrq7c.js} +11 -11
- package/dist/chunks/tool-prq7xxp2.js +37 -0
- package/dist/chunks/{instruction-discovery-jjbtbvzd.js → tool-pvzzwdfq.js} +18 -18
- package/dist/chunks/{instruction-discovery-1cx70z4q.js → tool-q2z4k2x9.js} +12 -12
- package/dist/chunks/{instruction-discovery-0kjn1fz0.js → tool-q63v4kjv.js} +19 -14
- package/dist/chunks/{instruction-discovery-ta8jwj2a.js → tool-qakjdagf.js} +42 -32
- package/dist/chunks/{instruction-discovery-v4gdxem8.js → tool-qcsk8x8g.js} +113 -63
- package/dist/chunks/{instruction-discovery-4n11yhw4.js → tool-qhfm6m5r.js} +27 -25
- package/dist/chunks/tool-qp7r0hxv.js +120 -0
- package/dist/chunks/{instruction-discovery-bwg9673r.js → tool-r023m38x.js} +16 -16
- package/dist/chunks/{instruction-discovery-r0yr0wbs.js → tool-r0yr0wbs.js} +1 -1
- package/dist/chunks/{instruction-discovery-mbvnayvm.js → tool-r0yvbzfa.js} +282 -128
- package/dist/chunks/{instruction-discovery-scfq87m9.js → tool-r2z94j39.js} +6 -6
- package/dist/chunks/{instruction-discovery-tw8zr1ps.js → tool-r542h3bh.js} +5 -2
- package/dist/chunks/{instruction-discovery-1acn2yrp.js → tool-r850md5t.js} +9 -9
- package/dist/chunks/{instruction-discovery-3p713cmj.js → tool-r8dwygj6.js} +54 -54
- package/dist/chunks/{instruction-discovery-9r0x1bva.js → tool-r9zrswe1.js} +9 -9
- package/dist/chunks/{instruction-discovery-kmzgegqq.js → tool-ra6js1h8.js} +8 -8
- package/dist/chunks/{instruction-discovery-rb9dy4dg.js → tool-rb9dy4dg.js} +1 -1
- package/dist/chunks/tool-rbhebfmq.js +58 -0
- package/dist/chunks/{instruction-discovery-pmz5xcbe.js → tool-rgmk1r1t.js} +62 -27
- package/dist/chunks/{instruction-discovery-wbmymcea.js → tool-rjf5h5f7.js} +8 -8
- package/dist/chunks/{instruction-discovery-8d991bzx.js → tool-rr19gkj4.js} +13 -13
- package/dist/chunks/{instruction-discovery-rt5dr6hb.js → tool-rt5dr6hb.js} +1 -1
- package/dist/chunks/{instruction-discovery-a9n89zg4.js → tool-rvy8xhsv.js} +33 -32
- package/dist/chunks/{instruction-discovery-b974jjnj.js → tool-rzh929cz.js} +13 -13
- package/dist/chunks/{instruction-discovery-1m4hc5mh.js → tool-s6jj6eh0.js} +13 -13
- package/dist/chunks/{instruction-discovery-rtqr9ste.js → tool-s9zns2yk.js} +23 -30
- package/dist/chunks/tool-sa3fpqfw.js +46 -0
- package/dist/chunks/{instruction-discovery-8mhma7yw.js → tool-sa46y2cf.js} +12 -9
- package/dist/chunks/{instruction-discovery-cgwzn4dm.js → tool-sbj9xhv5.js} +79 -53
- package/dist/chunks/{instruction-discovery-7d1g1zxa.js → tool-sc5azq8x.js} +81 -48
- package/dist/chunks/{instruction-discovery-gwkpgrwq.js → tool-spqj5yby.js} +26 -26
- package/dist/chunks/{instruction-discovery-sqjzf8x2.js → tool-sqjzf8x2.js} +1 -1
- package/dist/chunks/{instruction-discovery-ssfehs1z.js → tool-ssfehs1z.js} +1 -1
- package/dist/chunks/{instruction-discovery-mn6tycs6.js → tool-st7p3hwb.js} +2 -2
- package/dist/chunks/{instruction-discovery-zkg84ctx.js → tool-svcy3p9a.js} +4 -2
- package/dist/chunks/{instruction-discovery-etwrvj6f.js → tool-sw5vdw2h.js} +12 -12
- package/dist/chunks/{instruction-discovery-k61mxn43.js → tool-sws77t7f.js} +11 -11
- package/dist/chunks/{instruction-discovery-tczq8hjw.js → tool-tczq8hjw.js} +1 -1
- package/dist/chunks/{instruction-discovery-2dh20r6m.js → tool-tt79p4vp.js} +13 -13
- package/dist/chunks/tool-twcztz12.js +479 -0
- package/dist/chunks/{instruction-discovery-twv2r8f4.js → tool-twssxy5n.js} +2 -2
- package/dist/chunks/{instruction-discovery-me5bcav6.js → tool-v2r1d0zg.js} +2 -2
- package/dist/chunks/{instruction-discovery-2annm2pv.js → tool-v6njdshh.js} +30 -25
- package/dist/chunks/{instruction-discovery-2cjmrnhq.js → tool-v91xp2c8.js} +20 -20
- package/dist/chunks/{instruction-discovery-vfjveysg.js → tool-vacfhfey.js} +10 -10
- package/dist/chunks/{instruction-discovery-pc1v25hk.js → tool-vb80j1wh.js} +4 -4
- package/dist/chunks/{instruction-discovery-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-rh2kdvv3.js → tool-vmx0pqdh.js} +30 -31
- package/dist/chunks/{instruction-discovery-mt3ysty9.js → tool-vsqvcqta.js} +7 -7
- package/dist/chunks/{instruction-discovery-6zh9yw36.js → tool-vvj7j8xf.js} +3 -3
- package/dist/chunks/{instruction-discovery-cqmfkhmj.js → tool-vvqzd10p.js} +40 -40
- package/dist/chunks/{instruction-discovery-jc512s3p.js → tool-vycsk1c7.js} +8 -8
- package/dist/chunks/{instruction-discovery-kdbzq6ew.js → tool-w08h028t.js} +9 -9
- package/dist/chunks/{instruction-discovery-r41sfy63.js → tool-w2eysc6j.js} +6 -6
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-00vfyfmg.js → tool-w9z9y32t.js} +21 -21
- package/dist/chunks/{instruction-discovery-wakvkjy4.js → tool-wakvkjy4.js} +1 -1
- package/dist/chunks/{instruction-discovery-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-n0p0277s.js → tool-wnhgecwx.js} +35 -4
- package/dist/chunks/{instruction-discovery-fznmdakp.js → tool-wr3re1en.js} +4 -4
- package/dist/chunks/tool-wz464gjx.js +42 -0
- package/dist/chunks/{instruction-discovery-hdgh8tc2.js → tool-x75vegnr.js} +13 -11
- package/dist/chunks/{instruction-discovery-jf30r1rb.js → tool-xasx590j.js} +7 -7
- package/dist/chunks/{instruction-discovery-5v9evq2g.js → tool-xhrs65th.js} +7 -7
- package/dist/chunks/{instruction-discovery-ygtqa21c.js → tool-xpx0z35b.js} +11 -11
- package/dist/chunks/{instruction-discovery-v466f70q.js → tool-xqxzn5yn.js} +14 -14
- package/dist/chunks/{instruction-discovery-jneg3k74.js → tool-xt0z8zst.js} +6 -6
- package/dist/chunks/{instruction-discovery-55tcnysh.js → tool-xw4ev616.js} +12 -12
- package/dist/chunks/{instruction-discovery-ekeaw6g8.js → tool-y420wvgt.js} +30 -30
- package/dist/chunks/{instruction-discovery-a6r83rnm.js → tool-y5kjjy07.js} +24 -24
- package/dist/chunks/{instruction-discovery-kb0avjr6.js → tool-y7287ygs.js} +6 -6
- package/dist/chunks/tool-yara3q77.js +132 -0
- package/dist/chunks/{instruction-discovery-yb20nhc3.js → tool-yb20nhc3.js} +1 -1
- package/dist/chunks/{instruction-discovery-t8qa7zg5.js → tool-ycd18cxa.js} +7 -7
- package/dist/chunks/{instruction-discovery-wp4rg1a9.js → tool-ymky0t0b.js} +5 -5
- package/dist/chunks/{instruction-discovery-n5194rg1.js → tool-yqsmg75a.js} +64 -30
- package/dist/chunks/{instruction-discovery-2m2g9ynh.js → tool-yqveydy6.js} +4 -4
- package/dist/chunks/{instruction-discovery-vp60xasa.js → tool-yxjvbhxs.js} +4 -4
- package/dist/chunks/{instruction-discovery-ddbr5e5j.js → tool-yytcp89d.js} +25 -25
- package/dist/chunks/{instruction-discovery-z81weg6a.js → tool-yzaa036j.js} +32 -32
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-z38nccrw.js → tool-z38nccrw.js} +1 -1
- package/dist/chunks/{instruction-discovery-fnw4y167.js → tool-zdkwz0rs.js} +5 -8
- package/dist/chunks/tool-zfjx7vmh.js +257 -0
- package/dist/chunks/{instruction-discovery-4xvmh7wp.js → tool-zgkm4kzm.js} +3 -3
- package/dist/chunks/{instruction-discovery-psq905b5.js → tool-zw3yjf62.js} +13 -13
- package/dist/chunks/{instruction-discovery-r6ff3mpm.js → tool-zyqv3h6k.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -85
- package/dist/config/discovery.js +90 -84
- package/dist/config/integration.js +14 -0
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +109 -103
- package/dist/config/plugin/agent.js +123 -118
- package/dist/config/plugin/command.js +221 -214
- package/dist/config/plugin/compaction.js +162 -155
- package/dist/config/plugin/compatibility.js +142 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -117
- package/dist/config/plugin/image.js +121 -116
- package/dist/config/plugin/instruction.js +121 -116
- package/dist/config/plugin/location-watcher.js +121 -116
- package/dist/config/plugin/mcp.js +130 -125
- package/dist/config/plugin/policy.js +123 -117
- package/dist/config/plugin/provider.js +124 -116
- package/dist/config/plugin/reference.js +123 -118
- package/dist/config/plugin/shell.js +121 -116
- package/dist/config/plugin/skill-file.js +138 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -138
- package/dist/config/plugin/snapshot.js +121 -116
- package/dist/config/plugin/source.js +124 -119
- package/dist/config/plugin/tool-output.js +122 -117
- package/dist/config/plugin/websearch.js +120 -115
- package/dist/config/plugin/worktree.js +123 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -121
- package/dist/console-access.js +12 -0
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -79
- package/dist/database/database.js +78 -74
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +6 -0
- package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
- package/dist/database/migration/20261025123711_blob.js +6 -0
- package/dist/database/migration/20261025154125_drop_session_pending.js +6 -0
- package/dist/database/migration.gen.js +55 -51
- package/dist/database/migration.js +57 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +163 -89
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +386 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +3 -1
- package/dist/environment/index.js +104 -96
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -76
- package/dist/file-access.js +148 -106
- package/dist/file-mutation.js +102 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +221 -0
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +232 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +109 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +110 -104
- package/dist/form.js +80 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -89
- package/dist/generate.js +125 -111
- package/dist/git.js +13 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -95
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon-normalize.js +12 -0
- package/dist/image/photon-worker.js +19 -0
- package/dist/image/photon.js +125 -79
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -360
- package/dist/instruction-discovery.js +92 -88
- package/dist/instructions/builtins.js +91 -85
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -87
- package/dist/job.js +84 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -75
- package/dist/location-activity.js +168 -163
- package/dist/location-lifecycle.js +142 -109
- package/dist/location-service-map.js +94 -88
- package/dist/location-services.js +370 -357
- package/dist/location.js +97 -91
- package/dist/managed-policy.js +5 -4
- package/dist/mcp/client.js +146 -108
- package/dist/mcp/index.js +115 -109
- package/dist/mcp/instructions.js +166 -138
- package/dist/mcp/oauth.js +93 -83
- package/dist/mcp/socket-client.js +71 -0
- package/dist/mcp/stdio.js +98 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -95
- package/dist/model-resolver.js +109 -103
- package/dist/model-retry.js +4 -2
- package/dist/model.js +108 -100
- package/dist/models-dev/v1.js +8 -0
- package/dist/models-dev.js +120 -111
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +151 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -77
- package/dist/plugin/agent.js +82 -78
- package/dist/plugin/command.js +110 -104
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +227 -220
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -98
- package/dist/plugin/module.js +123 -117
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +138 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -92
- package/dist/plugin/provider/azure.js +121 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -97
- package/dist/plugin/provider/gitlab.js +101 -95
- package/dist/plugin/provider/google-vertex.js +118 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -80
- package/dist/plugin/provider/lmstudio.js +130 -125
- package/dist/plugin/provider/local.js +127 -122
- package/dist/plugin/provider/modal.js +100 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -125
- package/dist/plugin/provider/openai-context-caps.js +103 -0
- package/dist/plugin/provider/openai.js +121 -116
- package/dist/plugin/provider/opencode-legacy.js +119 -0
- package/dist/plugin/provider/opencode.js +127 -103
- package/dist/plugin/provider/openrouter.js +99 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -115
- package/dist/plugin/provider/vercel.js +98 -92
- package/dist/plugin/provider/vllm.js +130 -125
- package/dist/plugin/provider/xai.js +99 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -170
- package/dist/plugin/sdk.js +82 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +362 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -88
- package/dist/plugin/vcs/hg.js +94 -88
- package/dist/plugin/verbosity.js +101 -95
- package/dist/plugin/warming.js +119 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +236 -227
- package/dist/project/icon.js +14 -0
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -88
- package/dist/provider.js +105 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +11 -4
- package/dist/pty.js +98 -93
- package/dist/reference/instructions.js +96 -91
- package/dist/reference.js +98 -93
- package/dist/repository-cache.js +88 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -97
- package/dist/rpc.js +96 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +157 -0
- package/dist/session/command.js +80 -76
- package/dist/session/compaction.js +162 -136
- package/dist/session/context.js +188 -164
- package/dist/session/diff.js +96 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -224
- package/dist/session/execution.js +154 -130
- package/dist/session/generate.js +190 -166
- package/dist/session/history.js +134 -14
- package/dist/session/inbox.js +146 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -132
- package/dist/session/projector.js +134 -91
- package/dist/session/prompt.js +140 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -101
- package/dist/session/runner/publish-llm-event.js +141 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -128
- package/dist/session/runner/to-llm-message.js +128 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -165
- package/dist/session/shell.js +135 -130
- package/dist/session/skill.js +139 -105
- package/dist/session/sql.js +10 -8
- package/dist/session/stats.js +81 -77
- package/dist/session/store.js +133 -87
- package/dist/session/stored.js +23 -0
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +215 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +192 -168
- package/dist/session/to-session-error.js +140 -114
- package/dist/session/transfer.js +230 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +137 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +141 -107
- package/dist/skill.js +150 -116
- package/dist/snapshot.js +99 -93
- package/dist/state.js +3 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +167 -139
- package/dist/tool/plugin/edit.js +150 -116
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -126
- package/dist/tool/plugin/grep.js +160 -126
- package/dist/tool/plugin/mcp-resource.js +154 -126
- package/dist/tool/plugin/opencode.js +153 -111
- package/dist/tool/plugin/patch.js +156 -122
- package/dist/tool/plugin/question.js +138 -105
- package/dist/tool/plugin/read.js +161 -127
- package/dist/tool/plugin/shell.js +222 -215
- package/dist/tool/plugin/skill.js +147 -113
- package/dist/tool/plugin/subagent.js +226 -219
- package/dist/tool/plugin/todo.js +145 -138
- package/dist/tool/plugin/webfetch.js +147 -113
- package/dist/tool/plugin/websearch.js +145 -114
- package/dist/tool/plugin/write.js +158 -124
- package/dist/tool/read-filesystem.js +108 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/agent.d.ts +5 -0
- package/dist/types/aisdk.d.ts +1 -1
- package/dist/types/config/integration.d.ts +81 -0
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/config/plugin/provider.d.ts +8 -0
- package/dist/types/config.d.ts +8 -1
- package/dist/types/console-access.d.ts +7 -0
- package/dist/types/credential.d.ts +2 -0
- package/dist/types/database/migration/20261024002554_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
- package/dist/types/database/migration/20261025154125_drop_session_pending.d.ts +3 -0
- package/dist/types/database/v1-migration.bun.d.ts +4 -2
- package/dist/types/effect/app-node-platform.d.ts +3 -2
- package/dist/types/environment/files.d.ts +2 -0
- package/dist/types/environment/index.d.ts +1 -1
- package/dist/types/file-access.d.ts +3 -3
- package/dist/types/filesystem/fff.d.ts +1 -0
- package/dist/types/filesystem/file-watch.d.ts +33 -0
- package/dist/types/filesystem/search.d.ts +3 -0
- package/dist/types/generate.d.ts +39 -7
- package/dist/types/git.d.ts +17 -2
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +2 -2
- package/dist/types/image/photon-normalize.d.ts +28 -0
- package/dist/types/image/photon-wasm.bun.d.ts +1 -1
- package/dist/types/image/photon-worker.d.ts +12 -0
- package/dist/types/image/photon.d.ts +14 -4
- package/dist/types/instance/service.d.ts +2 -0
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/job.d.ts +1 -4
- package/dist/types/mcp/client.d.ts +10 -281
- package/dist/types/mcp/index.d.ts +9 -2
- package/dist/types/mcp/socket-client.d.ts +28 -0
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +8 -1
- package/dist/types/model-retry.d.ts +3 -1
- package/dist/types/model.d.ts +28 -1
- package/dist/types/models-dev/v1.d.ts +3 -0
- package/dist/types/models-dev.d.ts +3 -3
- package/dist/types/permission.d.ts +0 -1
- package/dist/types/persistent-pty/daemon.d.ts +0 -6
- package/dist/types/plugin/host.d.ts +3 -2
- package/dist/types/plugin/internal.d.ts +2 -3
- package/dist/types/plugin/module.d.ts +10 -0
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
- package/dist/types/plugin/provider/modal.d.ts +1 -1
- package/dist/types/plugin/provider/openai-context-caps.d.ts +2 -0
- package/dist/types/plugin/provider/openai.d.ts +1 -1
- package/dist/types/plugin/provider/opencode-legacy.d.ts +69 -0
- package/dist/types/plugin/provider/opencode.d.ts +2 -2
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/service.d.ts +12 -0
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/project/icon.d.ts +26 -0
- package/dist/types/project.d.ts +9 -4
- package/dist/types/provider.d.ts +33 -3
- package/dist/types/pty/ticket.d.ts +7 -1
- package/dist/types/ripgrep/binary.d.ts +1 -0
- package/dist/types/rpc.d.ts +2 -0
- package/dist/types/session/blob.d.ts +2687 -0
- package/dist/types/session/compaction.d.ts +18 -8
- package/dist/types/session/diff.d.ts +0 -1
- package/dist/types/session/error.d.ts +6 -16
- package/dist/types/session/generate.d.ts +2 -2
- package/dist/types/session/history.d.ts +2348 -293
- package/dist/types/session/inbox.d.ts +74 -115
- package/dist/types/session/instruction-entry.d.ts +1 -1
- package/dist/types/session/model-request.d.ts +2 -2
- package/dist/types/session/prompt.d.ts +6 -2
- package/dist/types/session/recent-text.d.ts +2 -1
- package/dist/types/session/runner/index.d.ts +1 -1
- package/dist/types/session/runner/model.d.ts +1 -2
- package/dist/types/session/runner/publish-llm-event.d.ts +4 -2
- package/dist/types/session/runner/retry.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +2 -2
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/schema.d.ts +10 -12
- package/dist/types/session/sql.d.ts +196 -122
- package/dist/types/session/stats.d.ts +12 -11
- package/dist/types/session/store.d.ts +7 -6
- package/dist/types/session/stored.d.ts +462 -0
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +23 -25
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/session.d.ts +9 -6
- package/dist/types/shell/parser-wasm.bun.d.ts +3 -3
- package/dist/types/state.d.ts +6 -0
- package/dist/types/tool/plugin/edit.d.ts +2 -1
- package/dist/types/tool/plugin/glob.d.ts +1 -1
- package/dist/types/tool/plugin/grep.d.ts +1 -1
- package/dist/types/tool/plugin/opencode.d.ts +0 -2
- package/dist/types/tool/plugin/patch.d.ts +2 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -3
- package/dist/types/tool/plugin/write.d.ts +1 -1
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/tool.d.ts +1 -1
- package/dist/types/usage-limits.d.ts +103 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/types/v1/config/mcp.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +3 -1
- package/dist/types/vcs.d.ts +3 -2
- package/dist/types/voice.d.ts +3 -31
- package/dist/types/wellknown/plugin.d.ts +1 -1
- package/dist/usage-limits.js +100 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +5 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +100 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +101 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +99 -91
- package/dist/voice.js +92 -88
- package/dist/websearch.js +88 -84
- package/dist/wellknown/plugin.js +82 -78
- package/dist/wellknown.js +87 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +93 -87
- package/dist/worktree.js +100 -94
- package/package.json +15 -13
- package/dist/chunks/instruction-discovery-8wc7jg0k.js +0 -26
- package/dist/chunks/instruction-discovery-98t435zw.js +0 -219
- package/dist/chunks/instruction-discovery-e2mf0cbs.js +0 -321
- package/dist/chunks/instruction-discovery-ef5x83kb.js +0 -15
- package/dist/chunks/instruction-discovery-grzehpz7.js +0 -18
- package/dist/chunks/instruction-discovery-h50tsds5.js +0 -257
- package/dist/chunks/instruction-discovery-k6hny6gd.js +0 -107
- package/dist/chunks/instruction-discovery-mg3zv8ep.js +0 -82
- package/dist/chunks/instruction-discovery-n4jvz8kw.js +0 -39
- package/dist/chunks/instruction-discovery-wcs0vwrk.js +0 -621
- package/dist/chunks/instruction-discovery-zyp4ce26.js +0 -523
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2bv980vf.js → tool-2bv980vf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → tool-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-84wd9syh.js → tool-84wd9syh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a058387c.js → tool-a058387c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hcxmzztb.js → tool-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jze0r7bz.js → tool-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-m18g726c.js → tool-m18g726c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ve7vex1e.js → tool-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * as Mcp from "./index.js";
|
|
2
2
|
import { Mcp } from "@opencode/schema/mcp";
|
|
3
3
|
import type { Session } from "@opencode/schema/session";
|
|
4
|
-
import {
|
|
4
|
+
import type { Transport } from "@modelcontextprotocol/client";
|
|
5
|
+
import { Cause, Context, Effect, Layer, Schema, Scope, Types } from "effect";
|
|
5
6
|
import { Credential } from "../credential.js";
|
|
6
7
|
import { Bus } from "../bus.js";
|
|
7
8
|
import { Environment } from "../environment/index.js";
|
|
@@ -160,6 +161,12 @@ export interface Interface extends State.Transformable<Editor> {
|
|
|
160
161
|
readonly connect: (server: ServerName | string) => Effect.Effect<void, NotFoundError>;
|
|
161
162
|
readonly disconnect: (server: ServerName | string) => Effect.Effect<void, NotFoundError>;
|
|
162
163
|
readonly remove: (server: ServerName | string) => Effect.Effect<void, NotFoundError>;
|
|
164
|
+
/**
|
|
165
|
+
* Attaches a client-hosted MCP server for the lifetime of the calling scope. Its tools are named after
|
|
166
|
+
* `name` like any server's. Attaching a name again stacks the new connection on top: it serves the
|
|
167
|
+
* name until it closes, then the most recent remaining connection takes over.
|
|
168
|
+
*/
|
|
169
|
+
readonly attach: (name: string, transport: Transport) => Effect.Effect<void, McpClient.ConnectError, Scope.Scope>;
|
|
163
170
|
readonly tools: () => Effect.Effect<Tool[]>;
|
|
164
171
|
readonly callTool: (input: {
|
|
165
172
|
readonly server: ServerName | string;
|
|
@@ -193,6 +200,6 @@ export declare const Options: Schema.Struct<{
|
|
|
193
200
|
}>>;
|
|
194
201
|
}>;
|
|
195
202
|
export type Options = typeof Options.Type;
|
|
196
|
-
export declare const layer: (options?: Options) => Layer.Layer<Service, never, Location.Service |
|
|
203
|
+
export declare const layer: (options?: Options) => Layer.Layer<Service, never, Location.Service | Credential.Service | Form.Service | Integration.Service | Bus.Service | Environment.Service>;
|
|
197
204
|
export declare function configured(options?: Options): import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"location">>;
|
|
198
205
|
export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"location">>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * as McpSocketClient from "./socket-client.js";
|
|
2
|
+
import { type Transport } from "@modelcontextprotocol/client";
|
|
3
|
+
/** The side of an incoming WebSocket the transport writes to. */
|
|
4
|
+
export interface Socket {
|
|
5
|
+
readonly send: (text: string) => void;
|
|
6
|
+
readonly close: (code?: number, reason?: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface SocketTransport extends Transport {
|
|
9
|
+
/** Feeds one inbound text frame. */
|
|
10
|
+
readonly deliver: (text: string) => void;
|
|
11
|
+
/** Reports that the socket closed; fires `onclose` once. */
|
|
12
|
+
readonly ended: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* MCP client transport over a WebSocket that a client app opened to the server. The app runs the
|
|
16
|
+
* MCP server and opencode runs the MCP client, so only the connection direction is inverted: the
|
|
17
|
+
* transport is only ever made for an incoming socket and never dials out.
|
|
18
|
+
*
|
|
19
|
+
* Framing: one JSON-RPC 2.0 message per text frame, JSON-encoded, without batching. A frame that is
|
|
20
|
+
* not valid JSON or not a JSON-RPC message is reported through `onerror` and the connection stays
|
|
21
|
+
* open. Frames that arrive before `start()` are buffered and delivered on start.
|
|
22
|
+
*
|
|
23
|
+
* Closing: `close()` closes the socket with 1000 (normal). The transport learns that the socket
|
|
24
|
+
* closed for any other reason through `ended()`; which close codes the endpoint uses is its own
|
|
25
|
+
* concern. Either way `onclose` fires exactly once, and nothing is replayed after a disconnect: a
|
|
26
|
+
* reconnecting client starts a fresh MCP session.
|
|
27
|
+
*/
|
|
28
|
+
export declare function make(socket: Socket): SocketTransport;
|
package/dist/types/mime.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * as Mime from "./mime.js";
|
|
2
|
-
export declare function detect(bytes: Uint8Array): "application/octet-stream" | "application/pdf" | "image/avif" | "image/bmp" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | "text/plain";
|
|
2
|
+
export declare function detect(bytes: Uint8Array): "application/octet-stream" | "application/pdf" | "audio/mp4" | "image/avif" | "image/bmp" | "image/gif" | "image/heic" | "image/jpeg" | "image/png" | "image/webp" | "text/plain" | "video/mp4" | "video/quicktime";
|
|
3
3
|
export declare const isTextual: (mime: string) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as ModelResolver from "./model-resolver.js";
|
|
2
|
-
import { LanguageModel } from "@opencode/ai";
|
|
2
|
+
import { DecisionModel, ImageModel, LanguageModel } from "@opencode/ai/effect";
|
|
3
3
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
4
4
|
import { AISDK } from "./aisdk.js";
|
|
5
5
|
import { Credential } from "./credential.js";
|
|
@@ -149,14 +149,21 @@ export interface Resolved {
|
|
|
149
149
|
readonly limit: Info["limit"];
|
|
150
150
|
/** Model policy overrides the provider policy; omitted means summary compaction. */
|
|
151
151
|
readonly compaction?: Provider.Compaction;
|
|
152
|
+
/** Prompt-cache settings from the provider, model and variant; omitted keeps the provider defaults. */
|
|
153
|
+
readonly cache?: Provider.Cache;
|
|
152
154
|
/** Provider transport policy; omitted means HTTP. */
|
|
153
155
|
readonly transport?: Provider.Transport;
|
|
154
156
|
/** Milliseconds without streamed data before a WebSocket exchange fails; `false` disables the limit. */
|
|
155
157
|
readonly chunkTimeout?: number | false;
|
|
156
158
|
}
|
|
159
|
+
export type MediaError = VariantUnavailableError | UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | Integration.AuthorizationError;
|
|
157
160
|
export interface Interface {
|
|
158
161
|
readonly resolve: (requested?: Ref) => Effect.Effect<Resolved | undefined, Error>;
|
|
159
162
|
readonly resolveModel: (model: Info, variant?: VariantID) => Effect.Effect<Resolved, Error>;
|
|
163
|
+
/** An enabled image model by ref, or undefined when no image model has that ref. */
|
|
164
|
+
readonly resolveImage: (ref: Ref) => Effect.Effect<ImageModel | undefined, MediaError>;
|
|
165
|
+
/** An enabled decision model by ref, or undefined when no decision model has that ref. */
|
|
166
|
+
readonly resolveDecision: (ref: Ref) => Effect.Effect<DecisionModel | undefined, MediaError>;
|
|
160
167
|
}
|
|
161
168
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/ModelResolver", Interface>;
|
|
162
169
|
export declare class Service extends Service_base {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as ModelRetry from "./model-retry.js";
|
|
2
|
-
import { AIError } from "@opencode/ai";
|
|
2
|
+
import { AIError } from "@opencode/ai/effect";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
interface Input {
|
|
5
5
|
readonly cause: AIError;
|
|
@@ -12,3 +12,5 @@ export declare const policy: Effect.Effect<(input: Input) => Effect.Effect<{
|
|
|
12
12
|
} | undefined, never, never>, never, never>;
|
|
13
13
|
/** Retry a buffered model call from scratch; failed attempts never contribute to its returned output. */
|
|
14
14
|
export declare const retry: <A, R>(effect: Effect.Effect<A, AIError, R>) => Effect.Effect<A, AIError, R>;
|
|
15
|
+
/** Retry a one-shot call only when the provider clearly didn't run it: rate limits, overload, unreachable hosts. */
|
|
16
|
+
export declare const retryOneShot: <A, R>(effect: Effect.Effect<A, AIError, R>) => Effect.Effect<A, AIError, R>;
|
package/dist/types/model.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare const Compatibility: import("effect/Schema").Struct<{
|
|
|
22
22
|
readonly cacheFormat: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["anthropic", "alibaba"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
23
23
|
readonly supportsThinkingBlockBinding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
24
24
|
readonly supportsEffortUpdates: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
25
|
+
readonly mediaInput: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["assets", "state", "root"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["assets", "state", "root"]>>, never, never>;
|
|
25
26
|
}>;
|
|
26
27
|
export type Compatibility = Model.Compatibility;
|
|
27
28
|
export declare const Capabilities: import("effect/Schema").Struct<{
|
|
@@ -67,6 +68,8 @@ export declare const Cost: import("effect/Schema").Struct<{
|
|
|
67
68
|
};
|
|
68
69
|
}>;
|
|
69
70
|
}>;
|
|
71
|
+
export declare const Type: import("effect/Schema").Codec<Model.Type, Model.Type, never, never>;
|
|
72
|
+
export type Type = Model.Type;
|
|
70
73
|
export declare const Ref: import("effect/Schema").Struct<{
|
|
71
74
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
|
|
72
75
|
readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
|
|
@@ -102,6 +105,11 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
102
105
|
}>, import("effect/Schema").Struct<{
|
|
103
106
|
readonly type: import("effect/Schema").Literal<"native">;
|
|
104
107
|
}>]>>, never, never>;
|
|
108
|
+
readonly cache: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
109
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
110
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
111
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
112
|
+
}>>, never, never>;
|
|
105
113
|
readonly encoding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
106
114
|
}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
|
|
107
115
|
readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
@@ -113,6 +121,11 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
113
121
|
}>, import("effect/Schema").Struct<{
|
|
114
122
|
readonly type: import("effect/Schema").Literal<"native">;
|
|
115
123
|
}>]>>, never, never>;
|
|
124
|
+
readonly cache: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
125
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
126
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
127
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
128
|
+
}>>, never, never>;
|
|
116
129
|
readonly encoding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
117
130
|
}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>, never, never>;
|
|
118
131
|
readonly headers: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>, never, never>;
|
|
@@ -157,6 +170,7 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
157
170
|
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
158
171
|
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
159
172
|
}>, never, never>;
|
|
173
|
+
readonly type: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<Model.Type, Model.Type, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<Model.Type, Model.Type, never, never>>, never, never>;
|
|
160
174
|
readonly family: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.Family">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.Family">>, never, never>;
|
|
161
175
|
readonly name: import("effect/Schema").String;
|
|
162
176
|
readonly compatibility: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
@@ -170,6 +184,7 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
170
184
|
readonly cacheFormat: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["anthropic", "alibaba"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
171
185
|
readonly supportsThinkingBlockBinding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
172
186
|
readonly supportsEffortUpdates: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
187
|
+
readonly mediaInput: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["assets", "state", "root"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["assets", "state", "root"]>>, never, never>;
|
|
173
188
|
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
174
189
|
readonly reasoningField: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Codec<Model.ReasoningField, Model.ReasoningField, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").Codec<Model.ReasoningField, Model.ReasoningField, never, never>>, never, never>;
|
|
175
190
|
readonly requireReasoning: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
@@ -181,6 +196,7 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
181
196
|
readonly cacheFormat: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["anthropic", "alibaba"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
182
197
|
readonly supportsThinkingBlockBinding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
183
198
|
readonly supportsEffortUpdates: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
|
|
199
|
+
readonly mediaInput: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["assets", "state", "root"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["assets", "state", "root"]>>, never, never>;
|
|
184
200
|
}>>, never, never>;
|
|
185
201
|
readonly package: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
186
202
|
readonly capabilities: import("effect/Schema").Struct<{
|
|
@@ -206,6 +222,11 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
206
222
|
}>, import("effect/Schema").Struct<{
|
|
207
223
|
readonly type: import("effect/Schema").Literal<"native">;
|
|
208
224
|
}>]>>, never, never>;
|
|
225
|
+
readonly cache: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
226
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
227
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
228
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
229
|
+
}>>, never, never>;
|
|
209
230
|
readonly encoding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
210
231
|
}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
|
|
211
232
|
readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
@@ -217,6 +238,11 @@ export declare const Info: import("effect/Schema").Struct<{
|
|
|
217
238
|
}>, import("effect/Schema").Struct<{
|
|
218
239
|
readonly type: import("effect/Schema").Literal<"native">;
|
|
219
240
|
}>]>>, never, never>;
|
|
241
|
+
readonly cache: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
242
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
243
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
244
|
+
readonly ttl: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").TemplateLiteral<readonly [import("effect/Schema").Number, import("effect/Schema").Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
245
|
+
}>>, never, never>;
|
|
220
246
|
readonly encoding: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
221
247
|
}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>, never, never>;
|
|
222
248
|
readonly headers: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>, never, never>;
|
|
@@ -309,7 +335,8 @@ export interface Editor {
|
|
|
309
335
|
export interface Interface extends State.Transformable<Editor> {
|
|
310
336
|
readonly get: (providerID: Provider.ID, modelID: ID) => Effect.Effect<Info | undefined>;
|
|
311
337
|
readonly all: () => Effect.Effect<readonly Info[]>;
|
|
312
|
-
|
|
338
|
+
/** Enabled models of the given types, chat when none are given. Only chat models are offered for sessions. */
|
|
339
|
+
readonly available: (types?: readonly Model.Type[]) => Effect.Effect<readonly Info[]>;
|
|
313
340
|
readonly default: () => Effect.Effect<Info | undefined>;
|
|
314
341
|
readonly small: (providerID: Provider.ID) => Effect.Effect<Info | undefined>;
|
|
315
342
|
}
|
|
@@ -5,8 +5,6 @@ import { Bus } from "./bus.js";
|
|
|
5
5
|
import { Model } from "./model.js";
|
|
6
6
|
import { Provider } from "./provider.js";
|
|
7
7
|
import { KV } from "./kv.js";
|
|
8
|
-
export declare const CatalogModelStatus: Schema.Literals<readonly ["alpha", "beta", "deprecated"]>;
|
|
9
|
-
export type CatalogModelStatus = typeof CatalogModelStatus.Type;
|
|
10
8
|
export type Snapshot = {
|
|
11
9
|
readonly info: Provider.Info;
|
|
12
10
|
readonly models: readonly Model.Info[];
|
|
@@ -27,8 +25,10 @@ export type Options = typeof Options.Type;
|
|
|
27
25
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/ModelsDev", Interface>;
|
|
28
26
|
export declare class Service extends Service_base {
|
|
29
27
|
}
|
|
28
|
+
export declare const catalogPath: string;
|
|
29
|
+
export declare const decodeSnapshot: (text: string) => Effect.Effect<readonly Snapshot[], Schema.SchemaError, never>;
|
|
30
30
|
export declare function bodyDigest(text: string): string;
|
|
31
|
-
export declare const layer: (options?: Options) => Layer.Layer<Service, never, HttpClient.HttpClient | FSUtil.Service |
|
|
31
|
+
export declare const layer: (options?: Options) => Layer.Layer<Service, never, HttpClient.HttpClient | FSUtil.Service | KV.Service | Bus.Service>;
|
|
32
32
|
export declare function configured(options?: Options): import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">>;
|
|
33
33
|
export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">>;
|
|
34
34
|
export * as ModelsDev from "./models-dev.js";
|
|
@@ -20,7 +20,6 @@ export type Source = typeof Source.Type;
|
|
|
20
20
|
export declare const Request: Schema.Struct<{
|
|
21
21
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
22
22
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
23
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
24
23
|
};
|
|
25
24
|
readonly action: Schema.String;
|
|
26
25
|
readonly resources: Schema.$Array<Schema.String>;
|
|
@@ -7,7 +7,6 @@ export declare const WireTerminal: Schema.Struct<{
|
|
|
7
7
|
readonly foreground_process: Schema.NullOr<Schema.String>;
|
|
8
8
|
readonly group_id: Schema.brand<Schema.String, "SessionID"> & {
|
|
9
9
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11
10
|
};
|
|
12
11
|
readonly command: Schema.$Array<Schema.String>;
|
|
13
12
|
readonly cwd: Schema.String;
|
|
@@ -40,7 +39,6 @@ export declare const WireResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
40
39
|
readonly foreground_process: Schema.NullOr<Schema.String>;
|
|
41
40
|
readonly group_id: Schema.brand<Schema.String, "SessionID"> & {
|
|
42
41
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
43
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
44
42
|
};
|
|
45
43
|
readonly command: Schema.$Array<Schema.String>;
|
|
46
44
|
readonly cwd: Schema.String;
|
|
@@ -67,7 +65,6 @@ export declare const WireResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
67
65
|
readonly foreground_process: Schema.NullOr<Schema.String>;
|
|
68
66
|
readonly group_id: Schema.brand<Schema.String, "SessionID"> & {
|
|
69
67
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
70
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
71
68
|
};
|
|
72
69
|
readonly command: Schema.$Array<Schema.String>;
|
|
73
70
|
readonly cwd: Schema.String;
|
|
@@ -102,7 +99,6 @@ export declare const WireResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
102
99
|
readonly foreground_process: Schema.NullOr<Schema.String>;
|
|
103
100
|
readonly group_id: Schema.brand<Schema.String, "SessionID"> & {
|
|
104
101
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
105
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
106
102
|
};
|
|
107
103
|
readonly command: Schema.$Array<Schema.String>;
|
|
108
104
|
readonly cwd: Schema.String;
|
|
@@ -133,7 +129,6 @@ export declare const WireResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
133
129
|
readonly foreground_process: Schema.NullOr<Schema.String>;
|
|
134
130
|
readonly group_id: Schema.brand<Schema.String, "SessionID"> & {
|
|
135
131
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
136
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
137
132
|
};
|
|
138
133
|
readonly command: Schema.$Array<Schema.String>;
|
|
139
134
|
readonly cwd: Schema.String;
|
|
@@ -163,7 +158,6 @@ export declare const WireResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
163
158
|
readonly foreground_process: Schema.NullOr<Schema.String>;
|
|
164
159
|
readonly group_id: Schema.brand<Schema.String, "SessionID"> & {
|
|
165
160
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
166
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
167
161
|
};
|
|
168
162
|
readonly command: Schema.$Array<Schema.String>;
|
|
169
163
|
readonly cwd: Schema.String;
|
|
@@ -12,6 +12,7 @@ import { LocationServiceMap } from "../location-service-map.js";
|
|
|
12
12
|
import { Model } from "../model.js";
|
|
13
13
|
import { Mcp } from "../mcp/index.js";
|
|
14
14
|
import { Session } from "../session.js";
|
|
15
|
+
import { InstructionEntry } from "../session/instruction-entry.js";
|
|
15
16
|
import { PersistentPty } from "../persistent-pty.js";
|
|
16
17
|
import { Provider } from "../provider.js";
|
|
17
18
|
import { Reference } from "../reference.js";
|
|
@@ -27,6 +28,6 @@ import { Permission } from "../permission.js";
|
|
|
27
28
|
import { PluginHooks } from "./hooks.js";
|
|
28
29
|
import type { Interface } from "../plugin.js";
|
|
29
30
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
30
|
-
export declare const make: (plugin: Pick<Interface, "list">, pluginID?: string | undefined) => Effect.Effect<Plugin.Context, never, Location.Service |
|
|
31
|
-
export declare const requirements: LayerNode.Graph<Location.Service |
|
|
31
|
+
export declare const make: (plugin: Pick<Interface, "list">, pluginID?: string | undefined) => Effect.Effect<Plugin.Context, never, Location.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | Bus.Service | Agent.Service | AISDK.Service | Command.Service | PluginHooks.Service | Permission.Service | Tool.Service | Generate.Service | PersistentPty.Service | LocationServiceMap.Service | Mcp.Service | InstructionEntry.Service | Reference.Service | Skill.Service | Session.Service | Rpc.Service | Vcs.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service>;
|
|
32
|
+
export declare const requirements: LayerNode.Graph<Location.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | Bus.Service | Agent.Service | AISDK.Service | Command.Service | PluginHooks.Service | Permission.Service | Tool.Service | Generate.Service | PersistentPty.Service | LocationServiceMap.Service | Mcp.Service | InstructionEntry.Service | Reference.Service | Skill.Service | Session.Service | Rpc.Service | Vcs.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service, PersistentPty.UnavailableError, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
|
|
32
33
|
export declare function storage(kv: KV.Interface, pluginID: string): Plugin.Context["storage"];
|
|
@@ -35,7 +35,6 @@ import { Npm } from "@opencode/util/npm";
|
|
|
35
35
|
import { Permission } from "../permission.js";
|
|
36
36
|
import { Reference } from "../reference.js";
|
|
37
37
|
import { WebSearch } from "../websearch.js";
|
|
38
|
-
import { Voice } from "../voice.js";
|
|
39
38
|
import { Ripgrep } from "../ripgrep.js";
|
|
40
39
|
import { Session } from "../session.js";
|
|
41
40
|
import { SessionCompaction } from "../session/compaction.js";
|
|
@@ -51,9 +50,9 @@ import { ReadToolFileSystem } from "../tool/read-filesystem.js";
|
|
|
51
50
|
import { Tool } from "../tool.js";
|
|
52
51
|
import { ToolOutput } from "../tool-output.js";
|
|
53
52
|
import { WellKnown } from "../wellknown.js";
|
|
54
|
-
declare const services: readonly [typeof Agent.Service, typeof AppProcess.Service, typeof Provider.Service, typeof Model.Service, typeof Command.Service, typeof Config.Service, typeof Credential.Service, typeof Bus.Service, typeof Environment.Service, typeof FileAccess.Service, typeof FileMutation.Service, typeof Formatter.Service, typeof LocationWatcherPolicy.Service, typeof FileSystem.Service, typeof FSUtil.Service, typeof Global.Service, Context.Service<HttpClient.HttpClient, HttpClient.HttpClient>, typeof Image.Service, typeof InstructionDiscovery.Service, typeof Integration.Service, typeof Job.Service, typeof KV.Service, typeof import("@opencode/ai").LLMClientService, typeof Location.Service, typeof ManagedPolicy.Service, typeof ModelsDev.Service, typeof Mcp.Service, typeof Npm.Service, typeof Permission.Service, typeof Form.Service, typeof ReadToolFileSystem.Service, typeof Reference.Service, typeof WebSearch.Service, typeof Ripgrep.Service, typeof Session.Service, typeof SessionCompaction.Service, typeof SessionInstructions.Service, typeof SubagentJob.Service, typeof Shell.Service, typeof ShellSelect.Service, typeof Snapshot.Service, typeof Skill.Service, typeof SkillDiscovery.Service, typeof Tool.Service, typeof ToolOutput.Service, typeof
|
|
53
|
+
declare const services: readonly [typeof Agent.Service, typeof AppProcess.Service, typeof Provider.Service, typeof Model.Service, typeof Command.Service, typeof Config.Service, typeof Credential.Service, typeof Bus.Service, typeof Environment.Service, typeof FileAccess.Service, typeof FileMutation.Service, typeof Formatter.Service, typeof LocationWatcherPolicy.Service, typeof FileSystem.Service, typeof FSUtil.Service, typeof Global.Service, Context.Service<HttpClient.HttpClient, HttpClient.HttpClient>, typeof Image.Service, typeof InstructionDiscovery.Service, typeof Integration.Service, typeof Job.Service, typeof KV.Service, typeof import("@opencode/ai/effect").LLMClientService, typeof Location.Service, typeof ManagedPolicy.Service, typeof ModelsDev.Service, typeof Mcp.Service, typeof Npm.Service, typeof Permission.Service, typeof Form.Service, typeof ReadToolFileSystem.Service, typeof Reference.Service, typeof WebSearch.Service, typeof Ripgrep.Service, typeof Session.Service, typeof SessionCompaction.Service, typeof SessionInstructions.Service, typeof SubagentJob.Service, typeof Shell.Service, typeof ShellSelect.Service, typeof Snapshot.Service, typeof Skill.Service, typeof SkillDiscovery.Service, typeof Tool.Service, typeof ToolOutput.Service, typeof Watcher.Service, typeof WellKnown.Service, typeof Worktree.Service, typeof WorktreeStrategies.Service];
|
|
55
54
|
export type Requirements = Context.Service.Identifier<(typeof services)[number]>;
|
|
56
|
-
export declare const requirements: LayerNode.Graph<HttpClient.HttpClient | import("@opencode/ai").LLMClientService | Global.Service | FSUtil.Service | AppProcess.Service | Location.Service |
|
|
55
|
+
export declare const requirements: LayerNode.Graph<HttpClient.HttpClient | import("@opencode/ai/effect").LLMClientService | Global.Service | FSUtil.Service | AppProcess.Service | Location.Service | Credential.Service | Watcher.Service | Npm.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | WellKnown.Service | Config.Service | Bus.Service | Agent.Service | Command.Service | Environment.Service | Permission.Service | Ripgrep.Service | FileSystem.Service | Image.Service | Tool.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | ShellSelect.Service | Mcp.Service | Job.Service | InstructionDiscovery.Service | ToolOutput.Service | ReadToolFileSystem.Service | Reference.Service | Skill.Service | Snapshot.Service | Shell.Service | Session.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service | LocationWatcherPolicy.Service | ManagedPolicy.Service | SessionInstructions.Service | SubagentJob.Service | SessionCompaction.Service | SkillDiscovery.Service | ModelsDev.Service, FileSystem.DirectoryAccessDeniedError | FileSystem.DirectoryNotFoundError, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
|
|
57
56
|
export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
|
|
58
57
|
export declare const guarded: ReadonlySet<string>;
|
|
59
58
|
export declare const list: () => Effect.Effect<{
|
|
@@ -16,6 +16,7 @@ export declare const make: () => Effect.Effect<{
|
|
|
16
16
|
pending: true;
|
|
17
17
|
id?: undefined;
|
|
18
18
|
features?: undefined;
|
|
19
|
+
gui?: undefined;
|
|
19
20
|
revision?: undefined;
|
|
20
21
|
source?: undefined;
|
|
21
22
|
effect?: undefined;
|
|
@@ -23,9 +24,18 @@ export declare const make: () => Effect.Effect<{
|
|
|
23
24
|
pending?: undefined;
|
|
24
25
|
id: string;
|
|
25
26
|
features: {
|
|
27
|
+
server?: true | undefined;
|
|
26
28
|
tui?: true | undefined;
|
|
27
29
|
rpc?: true | undefined;
|
|
30
|
+
gui?: true | undefined;
|
|
28
31
|
};
|
|
32
|
+
gui: {
|
|
33
|
+
file: string;
|
|
34
|
+
revision: string;
|
|
35
|
+
options: {
|
|
36
|
+
readonly [x: string]: Schema.Json;
|
|
37
|
+
};
|
|
38
|
+
} | undefined;
|
|
29
39
|
revision: string;
|
|
30
40
|
source: {
|
|
31
41
|
type: "local";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * as OptimizePlugin from "./optimize.js";
|
|
2
|
+
import { type Context } from "@opencode/plugin/effect/plugin";
|
|
3
|
+
import type { SessionHooks } from "@opencode/plugin/effect/session";
|
|
4
|
+
import { Model } from "@opencode/schema/model";
|
|
5
|
+
import { Effect } from "effect";
|
|
2
6
|
export declare const OpenAIPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
|
|
3
7
|
export declare const AnthropicPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
|
|
4
8
|
export declare const OpenAIToolsPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
|
|
@@ -7,3 +11,25 @@ export declare const KimiPlugin: import("@opencode/plugin/effect/plugin").Plugin
|
|
|
7
11
|
export declare const ArceePlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
|
|
8
12
|
export declare const MetaPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
|
|
9
13
|
export declare const Plugins: readonly [import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>];
|
|
14
|
+
export declare const resolveModel: (ctx: Context, event: SessionHooks["context"]) => Effect.Effect<Model.Info | {
|
|
15
|
+
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
16
|
+
modelID: string & import("effect/Brand").Brand<"Model.ID">;
|
|
17
|
+
providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
18
|
+
name: string & import("effect/Brand").Brand<"Model.ID">;
|
|
19
|
+
capabilities: {
|
|
20
|
+
tools: true;
|
|
21
|
+
input: string[];
|
|
22
|
+
output: string[];
|
|
23
|
+
};
|
|
24
|
+
variants: never[];
|
|
25
|
+
time: {
|
|
26
|
+
released: number;
|
|
27
|
+
};
|
|
28
|
+
cost: never[];
|
|
29
|
+
status: "active";
|
|
30
|
+
enabled: true;
|
|
31
|
+
limit: {
|
|
32
|
+
context: number;
|
|
33
|
+
output: number;
|
|
34
|
+
};
|
|
35
|
+
}, unknown, never>;
|
|
@@ -6,5 +6,5 @@ import { Provider } from "../../provider.js";
|
|
|
6
6
|
export declare function make(endpoints?: {
|
|
7
7
|
resource: (name: string) => string;
|
|
8
8
|
management: string;
|
|
9
|
-
}): import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope | AppProcess.Service |
|
|
10
|
-
export declare const AzurePlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope | AppProcess.Service |
|
|
9
|
+
}): import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope | AppProcess.Service | Credential.Service | Provider.Service | Bus.Service>;
|
|
10
|
+
export declare const AzurePlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope | AppProcess.Service | Credential.Service | Provider.Service | Bus.Service>;
|
|
@@ -17,7 +17,7 @@ declare const RemoteModel: Schema.Struct<{
|
|
|
17
17
|
}>>>;
|
|
18
18
|
}>;
|
|
19
19
|
type RemoteModel = typeof RemoteModel.Type;
|
|
20
|
-
export declare const ChatGPTPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope |
|
|
20
|
+
export declare const ChatGPTPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Credential.Service | Provider.Service | Bus.Service>;
|
|
21
21
|
export declare function fetchModels(token: string, app: App.Info, baseURL?: string): Effect.Effect<{
|
|
22
22
|
readonly slug: string;
|
|
23
23
|
readonly display_name: string;
|
|
@@ -3,7 +3,7 @@ import { Effect } from "effect";
|
|
|
3
3
|
import { Bus } from "../../bus.js";
|
|
4
4
|
import { App } from "../../app.js";
|
|
5
5
|
import { Provider } from "../../provider.js";
|
|
6
|
-
export declare const GithubCopilotPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope |
|
|
6
|
+
export declare const GithubCopilotPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Provider.Service | Bus.Service>;
|
|
7
7
|
export declare function copilotEntitlementError(user: {
|
|
8
8
|
chat_enabled?: boolean;
|
|
9
9
|
can_signup_for_limited?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HttpClient } from "effect/http";
|
|
2
2
|
import { Bus } from "../../bus.js";
|
|
3
3
|
import { Provider } from "../../provider.js";
|
|
4
|
-
export declare const GitLabPlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope |
|
|
4
|
+
export declare const GitLabPlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope | Provider.Service | Bus.Service>;
|
|
@@ -2,4 +2,4 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
2
2
|
import { Bus } from "../../bus.js";
|
|
3
3
|
import { Credential } from "../../credential.js";
|
|
4
4
|
import { Provider } from "../../provider.js";
|
|
5
|
-
export declare const GoogleVertexPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | FSUtil.Service |
|
|
5
|
+
export declare const GoogleVertexPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | FSUtil.Service | Credential.Service | Provider.Service | Bus.Service>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Bus } from "../../bus.js";
|
|
2
2
|
import { Provider } from "../../provider.js";
|
|
3
|
-
export declare const ModalPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope |
|
|
3
|
+
export declare const ModalPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Provider.Service | Bus.Service>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Bus } from "../../bus.js";
|
|
2
2
|
import { Provider } from "../../provider.js";
|
|
3
|
-
export declare const OpenAIPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope |
|
|
3
|
+
export declare const OpenAIPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Provider.Service | Bus.Service>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export * as OpencodeLegacy from "./opencode-legacy.js";
|
|
2
|
+
import { Effect, Schema } from "effect";
|
|
3
|
+
import type { Context } from "@opencode/plugin/effect/plugin";
|
|
4
|
+
import type { WebSearchDefinition } from "@opencode/plugin/effect/websearch";
|
|
5
|
+
import { ConfigProvider } from "@opencode/schema/config/provider";
|
|
6
|
+
import { Mcp } from "@opencode/schema/mcp";
|
|
7
|
+
import { WebSearch } from "../../websearch.js";
|
|
8
|
+
export declare const Response: Schema.Struct<{
|
|
9
|
+
readonly providers: Schema.$Record<Schema.String, typeof ConfigProvider.Info>;
|
|
10
|
+
readonly websearch: Schema.optional<Schema.Struct<{
|
|
11
|
+
readonly providerID: Schema.brand<Schema.String, "WebSearch.ID">;
|
|
12
|
+
}>>;
|
|
13
|
+
readonly mcp: Schema.optional<Schema.Struct<{
|
|
14
|
+
readonly servers: Schema.$Record<Schema.String, Schema.Struct<{
|
|
15
|
+
readonly type: Schema.Literal<"remote">;
|
|
16
|
+
readonly url: Schema.String;
|
|
17
|
+
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
18
|
+
readonly oauth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [typeof Mcp.OAuthConfig, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [typeof Mcp.OAuthConfig, Schema.Literal<false>]>>, never, never>;
|
|
19
|
+
readonly disabled: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
20
|
+
readonly codemode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
21
|
+
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<typeof Mcp.TimeoutConfig>>, Schema.optionalKey<typeof Mcp.TimeoutConfig>, never, never>;
|
|
22
|
+
readonly protocol: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["legacy", "auto", "2026-07-28"]>>>, Schema.optionalKey<Schema.Literals<readonly ["legacy", "auto", "2026-07-28"]>>, never, never>;
|
|
23
|
+
readonly auth: Schema.optional<Schema.Literal<"console">>;
|
|
24
|
+
}>>;
|
|
25
|
+
}>>;
|
|
26
|
+
readonly policies: Schema.optional<Schema.compose<Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.use"]>;
|
|
28
|
+
readonly resource: Schema.String;
|
|
29
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
30
|
+
}>>, Schema.decodeTo<Schema.Unknown, Schema.$Array<Schema.Unknown>, never, never>>>;
|
|
31
|
+
readonly experimental: Schema.optional<Schema.Struct<{
|
|
32
|
+
readonly policies: Schema.optional<Schema.compose<Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.use"]>;
|
|
34
|
+
readonly resource: Schema.String;
|
|
35
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
36
|
+
}>>, Schema.decodeTo<Schema.Unknown, Schema.$Array<Schema.Unknown>, never, never>>>;
|
|
37
|
+
}>>;
|
|
38
|
+
}>;
|
|
39
|
+
export type Response = typeof Response.Type;
|
|
40
|
+
export interface Snapshot {
|
|
41
|
+
readonly type: "legacy";
|
|
42
|
+
readonly response: Response;
|
|
43
|
+
readonly mcp: {
|
|
44
|
+
servers: NonNullable<Response["mcp"]>["servers"];
|
|
45
|
+
headers: Record<string, string>;
|
|
46
|
+
} | undefined;
|
|
47
|
+
}
|
|
48
|
+
/** The plugin's Console response in either format; this module only acts on the legacy one. */
|
|
49
|
+
type Remote = Snapshot | {
|
|
50
|
+
readonly type: "config";
|
|
51
|
+
} | undefined;
|
|
52
|
+
type Connection = NonNullable<Effect.Success<ReturnType<Context["integration"]["connection"]["active"]>>>;
|
|
53
|
+
export declare function make(response: Response, headers: Record<string, string>): Snapshot;
|
|
54
|
+
/** Organization policy statements, which the plugin hands to `ManagedPolicy` instead of config. */
|
|
55
|
+
export declare function statements(snapshot: Snapshot): {
|
|
56
|
+
readonly action: "integration.use" | "provider.use" | "tool.use";
|
|
57
|
+
readonly resource: string;
|
|
58
|
+
readonly effect: "allow" | "deny";
|
|
59
|
+
}[];
|
|
60
|
+
/** Providers the legacy response routes through the Console, so the plugin can explain their rejected inference. */
|
|
61
|
+
export declare function providerIDs(remote: Remote): string[];
|
|
62
|
+
/**
|
|
63
|
+
* Registers the transforms that apply a legacy snapshot: the Console's providers bound to its connection, its web
|
|
64
|
+
* search provider as the default, and its MCP servers with the Console credential where they ask for it.
|
|
65
|
+
*/
|
|
66
|
+
export declare const register: (ctx: Context, current: () => {
|
|
67
|
+
readonly remote: Remote;
|
|
68
|
+
readonly connection: Connection | undefined;
|
|
69
|
+
}, search: (providerID: WebSearch.ID, connection: Connection) => WebSearchDefinition) => Effect.Effect<void, never, import("effect/Scope").Scope>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Scope } from "effect";
|
|
2
2
|
import { HttpClient } from "effect/http";
|
|
3
3
|
import { Bus } from "../../bus.js";
|
|
4
|
+
import { Config } from "../../config.js";
|
|
4
5
|
import { ManagedPolicy } from "../../managed-policy.js";
|
|
5
|
-
import
|
|
6
|
-
export declare const OpencodePlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | Scope.Scope | Bus.Service | Voice.Service | ManagedPolicy.Service>;
|
|
6
|
+
export declare const OpencodePlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | Scope.Scope | Config.Service | Bus.Service | ManagedPolicy.Service>;
|
|
@@ -3,4 +3,4 @@ import { Bus } from "../../bus.js";
|
|
|
3
3
|
import { Credential } from "../../credential.js";
|
|
4
4
|
import { Integration } from "../../integration.js";
|
|
5
5
|
import { Provider } from "../../provider.js";
|
|
6
|
-
export declare const SnowflakeCortexPlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope |
|
|
6
|
+
export declare const SnowflakeCortexPlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | import("effect/Scope").Scope | Credential.Service | Integration.Service | Provider.Service | Bus.Service>;
|