@opencode/core 0.0.0-dev-19637 → 0.0.0-dev-19638
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/agent.js +60 -60
- package/dist/aisdk-native.js +58 -58
- package/dist/aisdk.js +63 -63
- package/dist/app.js +9 -9
- package/dist/bus.js +49 -49
- package/dist/chunks/{file-access-6n9rjysc.js → file-access-01bhhyb7.js} +2 -2
- package/dist/chunks/{file-access-s8d7rejh.js → file-access-02nrjc1r.js} +7 -7
- package/dist/chunks/{file-access-2jywpyj8.js → file-access-0hnxfn8s.js} +22 -22
- package/dist/chunks/{file-access-kmkxeyh5.js → file-access-0j8y3tn5.js} +21 -21
- package/dist/chunks/file-access-0mesazry.js +4 -0
- package/dist/chunks/{file-access-8v7kkkbw.js → file-access-0tg58rzn.js} +10 -10
- package/dist/chunks/{file-access-5dyw5czf.js → file-access-1bz55dqa.js} +79 -79
- package/dist/chunks/{file-access-pf4e8y03.js → file-access-1h5aw7tx.js} +14 -14
- package/dist/chunks/{file-access-bycqfhhp.js → file-access-1r6cykv1.js} +4 -4
- package/dist/chunks/{file-access-cjwxcw7h.js → file-access-22xdy94t.js} +9 -9
- package/dist/chunks/{file-access-gy9mz9hm.js → file-access-25fjjxm2.js} +28 -28
- package/dist/chunks/{file-access-www2df0c.js → file-access-2j0dgarf.js} +13 -13
- package/dist/chunks/{file-access-da5p2m5f.js → file-access-2js99wz0.js} +17 -17
- package/dist/chunks/{file-access-56m60q16.js → file-access-2wts5qzq.js} +7 -7
- package/dist/chunks/{file-access-vbmj93bj.js → file-access-32x43b5h.js} +1 -1
- package/dist/chunks/{file-access-xh45r5pf.js → file-access-33c2t3mm.js} +16 -16
- package/dist/chunks/{file-access-rytnjs8b.js → file-access-3knnkrdf.js} +17 -17
- package/dist/chunks/{file-access-ybhbtxjg.js → file-access-3ktbe3hf.js} +4 -4
- package/dist/chunks/{file-access-ycjb11n5.js → file-access-3ppptnan.js} +5 -5
- package/dist/chunks/{file-access-m7qxvmyy.js → file-access-3stbjpb0.js} +19 -19
- package/dist/chunks/{file-access-dffmtpj7.js → file-access-3zdwcfwy.js} +7 -7
- package/dist/chunks/{file-access-s5trtwgj.js → file-access-3zrjs6f3.js} +8 -8
- package/dist/chunks/{file-access-paghhsgz.js → file-access-46hd3f0f.js} +4 -4
- package/dist/chunks/{file-access-hjt4xg1x.js → file-access-47gsdddb.js} +6 -6
- package/dist/chunks/{file-access-ssdhg7mn.js → file-access-4cmr76fd.js} +3 -3
- package/dist/chunks/{file-access-0r581tt5.js → file-access-4hxfx086.js} +8 -8
- package/dist/chunks/{file-access-zhq6vg7a.js → file-access-4jc5c4h4.js} +1 -1
- package/dist/chunks/{file-access-a8092cx4.js → file-access-4nfbas15.js} +10 -10
- package/dist/chunks/{file-access-v2rf49aq.js → file-access-4vb1y0qz.js} +5 -5
- package/dist/chunks/{file-access-hpv156nq.js → file-access-4wrt768g.js} +1 -1
- package/dist/chunks/{file-access-8nsc8gnz.js → file-access-50hk1gym.js} +13 -13
- package/dist/chunks/{file-access-szrf2gp8.js → file-access-56rycjvn.js} +22 -22
- package/dist/chunks/{file-access-4e8qeqw2.js → file-access-5n7sh86d.js} +6 -6
- package/dist/chunks/{file-access-ks3vd1j0.js → file-access-5srkf7nd.js} +9 -9
- package/dist/chunks/{file-access-11ayc5k1.js → file-access-62agcz7g.js} +18 -18
- package/dist/chunks/{file-access-rw2xgg53.js → file-access-6jft8mvs.js} +17 -17
- package/dist/chunks/{file-access-v6ede5y2.js → file-access-6m499kzd.js} +22 -22
- package/dist/chunks/{file-access-mrhssej4.js → file-access-6snq9ewv.js} +49 -49
- package/dist/chunks/{file-access-hv8qssb6.js → file-access-6ycvbcht.js} +15 -15
- package/dist/chunks/{file-access-t192nm8m.js → file-access-6ykthspn.js} +4 -4
- package/dist/chunks/{file-access-zd6ydzqz.js → file-access-6ywjc070.js} +19 -19
- package/dist/chunks/{file-access-zqfhgf5b.js → file-access-76jmq1mn.js} +167 -167
- package/dist/chunks/{file-access-j933w6sb.js → file-access-76xmbs1m.js} +13 -13
- package/dist/chunks/{file-access-76rf663v.js → file-access-7dcaf0ce.js} +19 -19
- package/dist/chunks/{file-access-k701emjf.js → file-access-7h1ryc6p.js} +15 -12
- package/dist/chunks/{file-access-5jhep4w0.js → file-access-7heb594d.js} +24 -24
- package/dist/chunks/{file-access-kq1t1162.js → file-access-7n0p62ew.js} +10 -10
- package/dist/chunks/{file-access-17m608xa.js → file-access-7tcrqq4t.js} +6 -6
- package/dist/chunks/{file-access-zs4gxp06.js → file-access-7tdtfp7b.js} +21 -21
- package/dist/chunks/{file-access-73tb2d7t.js → file-access-7yh4e7ss.js} +2 -2
- package/dist/chunks/{file-access-x182m7xa.js → file-access-812zr1rk.js} +9 -9
- package/dist/chunks/{file-access-p459fsr1.js → file-access-8526r7vx.js} +23 -23
- package/dist/chunks/{file-access-890y149a.js → file-access-8602h8p3.js} +7 -7
- package/dist/chunks/{file-access-30ntgpz7.js → file-access-86jfkp86.js} +24 -24
- package/dist/chunks/{file-access-0xezjjjn.js → file-access-8ank75fn.js} +7 -7
- package/dist/chunks/{file-access-s0bax34n.js → file-access-8b68vhre.js} +14 -14
- package/dist/chunks/{file-access-9t16ekdb.js → file-access-8kckztxt.js} +23 -23
- package/dist/chunks/{file-access-2775jj4e.js → file-access-8r5sxhkv.js} +3 -3
- package/dist/chunks/{file-access-x0wxay44.js → file-access-8snetkfr.js} +4 -4
- package/dist/chunks/{file-access-7zm7jxc7.js → file-access-8yph952s.js} +3 -3
- package/dist/chunks/{file-access-ygk8sne3.js → file-access-8yppv9j5.js} +22 -22
- package/dist/chunks/{file-access-jcas26n6.js → file-access-917gka4z.js} +12 -12
- package/dist/chunks/{file-access-gg8wv5as.js → file-access-92f8rgp2.js} +22 -22
- package/dist/chunks/{file-access-sm965ndy.js → file-access-99xay3p1.js} +7 -7
- package/dist/chunks/{file-access-1z24zf3x.js → file-access-9ancjmj9.js} +34 -30
- package/dist/chunks/{file-access-89smrnyf.js → file-access-9b36z5yg.js} +1 -1
- package/dist/chunks/{file-access-92xny6nd.js → file-access-9bkgmrac.js} +3 -3
- package/dist/chunks/{file-access-7gahrvww.js → file-access-9ev53f4q.js} +15 -15
- package/dist/chunks/{file-access-aj5f68bw.js → file-access-9rrc34ns.js} +22 -22
- package/dist/chunks/{file-access-hfx69nqz.js → file-access-9s92gzw6.js} +20 -20
- package/dist/chunks/{file-access-btrn8rgp.js → file-access-a3dkvnxb.js} +41 -41
- package/dist/chunks/{file-access-fdms3n6w.js → file-access-a3ftg8j6.js} +7 -7
- package/dist/chunks/{file-access-etbqe1sp.js → file-access-a46e93d3.js} +3 -3
- package/dist/chunks/{file-access-dxzm7sqd.js → file-access-a6kbnp9r.js} +5 -5
- package/dist/chunks/{file-access-h8ptc2jy.js → file-access-a97f1kxr.js} +22 -22
- package/dist/chunks/{file-access-jkpvc1gj.js → file-access-ajk9kppy.js} +15 -15
- package/dist/chunks/{file-access-vbctgszn.js → file-access-andt55zn.js} +42 -42
- package/dist/chunks/{file-access-490pvwh4.js → file-access-ashkezcm.js} +30 -30
- package/dist/chunks/{file-access-e2609ak5.js → file-access-avs77xrm.js} +4 -4
- package/dist/chunks/{file-access-xf0yen68.js → file-access-azvx9vjt.js} +14 -14
- package/dist/chunks/{file-access-v5dkyp31.js → file-access-b27vhd2z.js} +3 -3
- package/dist/chunks/{file-access-204v3eqv.js → file-access-b2gch9fn.js} +22 -22
- package/dist/chunks/{file-access-h7923tt2.js → file-access-b2jj88ef.js} +13 -13
- package/dist/chunks/{file-access-1ktgcqzb.js → file-access-b5j16w9d.js} +8 -8
- package/dist/chunks/{file-access-ss56yrvr.js → file-access-b5jkzqy2.js} +36 -36
- package/dist/chunks/{file-access-196s2236.js → file-access-bbfsgge0.js} +19 -19
- package/dist/chunks/{file-access-s52y66be.js → file-access-be47w3k3.js} +9 -9
- package/dist/chunks/{file-access-hg3nex49.js → file-access-bhqn7aj9.js} +9 -9
- package/dist/chunks/{file-access-f55hhvzh.js → file-access-bj5hbc59.js} +4 -4
- package/dist/chunks/{file-access-4v7qdvcn.js → file-access-by5v678g.js} +4 -4
- package/dist/chunks/{file-access-efzqyggw.js → file-access-by9rpdtw.js} +10 -10
- package/dist/chunks/{file-access-vh7dp00t.js → file-access-c1661jpf.js} +1 -1
- package/dist/chunks/{file-access-p37cw4rj.js → file-access-cmwkp3r5.js} +7 -7
- package/dist/chunks/{file-access-h6r3nrb9.js → file-access-cpj0znwe.js} +3 -3
- package/dist/chunks/{file-access-rzbfacg9.js → file-access-cy2r3qg1.js} +31 -31
- package/dist/chunks/{file-access-npmmx7a7.js → file-access-dbtyj0an.js} +6 -6
- package/dist/chunks/{file-access-j4gdw6gw.js → file-access-dpcqhtkn.js} +12 -12
- package/dist/chunks/{file-access-r8t2xrpw.js → file-access-dsyvch4e.js} +19 -19
- package/dist/chunks/{file-access-apqkkg64.js → file-access-dthhqzns.js} +10 -10
- package/dist/chunks/{file-access-q2cy2y1a.js → file-access-dy562txv.js} +17 -17
- package/dist/chunks/{file-access-grw98w6v.js → file-access-e2e34s5q.js} +21 -21
- package/dist/chunks/{file-access-ck2q371s.js → file-access-e2qab2dq.js} +4 -4
- package/dist/chunks/{file-access-nbygjmnq.js → file-access-e3adyxrg.js} +28 -28
- package/dist/chunks/{file-access-sn3rxfgj.js → file-access-e64xqjet.js} +6 -6
- package/dist/chunks/{file-access-waqrje5a.js → file-access-ea3fxjgj.js} +25 -25
- package/dist/chunks/{file-access-qf53spd6.js → file-access-eahf1j6r.js} +16 -16
- package/dist/chunks/{file-access-q0r2d8rn.js → file-access-enbnvbva.js} +30 -30
- package/dist/chunks/{file-access-rhr5fvwd.js → file-access-et8mzwyf.js} +9 -9
- package/dist/chunks/{file-access-yd4pvbh8.js → file-access-ewwzb6sv.js} +5 -5
- package/dist/chunks/{file-access-qrkqsxkr.js → file-access-f3k401ar.js} +18 -18
- package/dist/chunks/{file-access-50mzsvk4.js → file-access-f3ngv102.js} +3 -3
- package/dist/chunks/{file-access-5d6nmhah.js → file-access-f6fgfmmn.js} +26 -26
- package/dist/chunks/{file-access-qehrwxjr.js → file-access-fak7xqqt.js} +27 -27
- package/dist/chunks/{file-access-m8y6a9gt.js → file-access-fc4nsy51.js} +36 -36
- package/dist/chunks/{file-access-jsbpgh5s.js → file-access-g00jty2v.js} +8 -8
- package/dist/chunks/{file-access-e5vq6wef.js → file-access-g0r62mbx.js} +3 -3
- package/dist/chunks/{file-access-q54epvg6.js → file-access-gsj5sv52.js} +8 -8
- package/dist/chunks/file-access-h2q74avv.js +26 -0
- package/dist/chunks/{file-access-wa065q7p.js → file-access-he2x7e7z.js} +2 -2
- package/dist/chunks/{file-access-m6ay5emd.js → file-access-hftty0sn.js} +41 -24
- package/dist/chunks/{file-access-0addxkp5.js → file-access-hg4hxzv1.js} +24 -24
- package/dist/chunks/{file-access-3h8hw3gv.js → file-access-hm7xtcxq.js} +12 -12
- package/dist/chunks/{file-access-n4r3xatb.js → file-access-hn57h045.js} +3 -3
- package/dist/chunks/{file-access-r88mwysp.js → file-access-hpe0ccrg.js} +42 -42
- package/dist/chunks/{file-access-c9ecbdb0.js → file-access-hwr433ds.js} +10 -10
- package/dist/chunks/{file-access-4tafv0me.js → file-access-j03d6hs6.js} +17 -17
- package/dist/chunks/{file-access-9k7ekhq9.js → file-access-j0vfj7ky.js} +8 -8
- package/dist/chunks/{file-access-0ft9cg2j.js → file-access-j15mfg1p.js} +5 -5
- package/dist/chunks/{file-access-a3r4dcrj.js → file-access-jca4demv.js} +1 -1
- package/dist/chunks/{file-access-q5rhn9x0.js → file-access-jgv4nkbw.js} +15 -15
- package/dist/chunks/{file-access-ffzfw6dq.js → file-access-jjefk1kz.js} +41 -41
- package/dist/chunks/{file-access-xc8sh4yv.js → file-access-js4k7t4e.js} +14 -14
- package/dist/chunks/{file-access-xahw4cd4.js → file-access-k31cg7qp.js} +19 -19
- package/dist/chunks/{file-access-fstwsg2e.js → file-access-k33y0e94.js} +39 -39
- package/dist/chunks/{file-access-nmn5p8yd.js → file-access-ke9sk9ax.js} +14 -14
- package/dist/chunks/{file-access-x2nqcre9.js → file-access-km5njsm9.js} +9 -9
- package/dist/chunks/{file-access-xg631j7a.js → file-access-kr9cqyf0.js} +6 -6
- package/dist/chunks/{file-access-xdrba4jw.js → file-access-kw9xdzv2.js} +7 -7
- package/dist/chunks/{file-access-sfe15w4t.js → file-access-m6gy85y0.js} +13 -13
- package/dist/chunks/{file-access-vgxg80g2.js → file-access-mby8mxat.js} +5 -5
- package/dist/chunks/{file-access-1ygqh575.js → file-access-mfqp6xfm.js} +4 -4
- package/dist/chunks/{file-access-z4zzqkyn.js → file-access-mmy2zf88.js} +27 -27
- package/dist/chunks/{file-access-ewvjyc2d.js → file-access-mrxfpjcs.js} +7 -7
- package/dist/chunks/{file-access-p630c9xd.js → file-access-mvn2r3z4.js} +7 -7
- package/dist/chunks/{file-access-hmfh1rh8.js → file-access-mxyhxd0t.js} +9 -9
- package/dist/chunks/{file-access-7374nn42.js → file-access-mzrp1fyr.js} +16 -16
- package/dist/chunks/{file-access-zc4efzed.js → file-access-n9y08rq6.js} +10 -10
- package/dist/chunks/{file-access-xe94yqgp.js → file-access-ngdt5g2x.js} +3 -3
- package/dist/chunks/{file-access-cz6y612w.js → file-access-njqgj7qg.js} +9 -9
- package/dist/chunks/{file-access-ah3b0qta.js → file-access-nzha355v.js} +14 -14
- package/dist/chunks/{file-access-rvh2fpxc.js → file-access-p2f255ct.js} +2 -2
- package/dist/chunks/{file-access-9ppknq4r.js → file-access-p5599t8k.js} +5 -5
- package/dist/chunks/{file-access-64stfe7m.js → file-access-pdd0bbjk.js} +15 -15
- package/dist/chunks/{file-access-bh51kybc.js → file-access-pfz3dw98.js} +22 -22
- package/dist/chunks/{file-access-c07j17hk.js → file-access-phnkt68t.js} +307 -307
- package/dist/chunks/{file-access-wjcn38ba.js → file-access-pj43p8qp.js} +1 -1
- package/dist/chunks/{file-access-55zx3jwd.js → file-access-pr444p5c.js} +16 -16
- package/dist/chunks/{file-access-b2rkp7aa.js → file-access-q12jtckr.js} +8 -8
- package/dist/chunks/{file-access-jexxy024.js → file-access-q3t37ft6.js} +3 -3
- package/dist/chunks/{file-access-eezbyd6d.js → file-access-qfjwnv02.js} +1 -1
- package/dist/chunks/{file-access-fcrkznn8.js → file-access-qgn6gcr1.js} +4 -4
- package/dist/chunks/{file-access-cwa6csj7.js → file-access-qmqgtz8f.js} +7 -7
- package/dist/chunks/{file-access-ch5zdy2s.js → file-access-qv9gx9bg.js} +2 -2
- package/dist/chunks/{file-access-352n4qm2.js → file-access-qx87dfmj.js} +14 -14
- package/dist/chunks/{file-access-1szx0rct.js → file-access-r4ck6ye8.js} +13 -13
- package/dist/chunks/{file-access-ebw7vtp3.js → file-access-rds37zvx.js} +27 -27
- package/dist/chunks/{file-access-afes4715.js → file-access-rgp511zr.js} +1 -1
- package/dist/chunks/{file-access-t5dv71qx.js → file-access-rj5xkaak.js} +11 -11
- package/dist/chunks/{file-access-0x7mekqw.js → file-access-rsk3jvy7.js} +9 -9
- package/dist/chunks/{file-access-ccz297mt.js → file-access-rtxak1ft.js} +11 -11
- package/dist/chunks/{file-access-det33w69.js → file-access-rw8kjknk.js} +4 -4
- package/dist/chunks/{file-access-hfvc964k.js → file-access-s587y4ee.js} +3 -3
- package/dist/chunks/{file-access-c8vbwmvy.js → file-access-s6jatava.js} +19 -19
- package/dist/chunks/{file-access-pcd7pbnd.js → file-access-s7769g1c.js} +23 -23
- package/dist/chunks/{file-access-6d6cd74m.js → file-access-s8j3dq9b.js} +2 -2
- package/dist/chunks/{file-access-w1wd9tp2.js → file-access-snmjhvm7.js} +12 -12
- package/dist/chunks/{file-access-v812h1xz.js → file-access-spqgdpza.js} +22 -22
- package/dist/chunks/{file-access-468d37b3.js → file-access-sstmea9h.js} +21 -21
- package/dist/chunks/{file-access-dhxdeg25.js → file-access-sve5t580.js} +46 -46
- package/dist/chunks/{file-access-e7vjkpcb.js → file-access-sxd752g3.js} +7 -7
- package/dist/chunks/{file-access-9zzv5pgc.js → file-access-t3swkhbg.js} +3 -3
- package/dist/chunks/{file-access-912kkt9t.js → file-access-t7e0y256.js} +6 -6
- package/dist/chunks/{file-access-ytgdyx08.js → file-access-t9kha2ca.js} +1 -1
- package/dist/chunks/{file-access-tcrhe9m8.js → file-access-tdbakys2.js} +18 -18
- package/dist/chunks/{file-access-m17nagwc.js → file-access-v65pmyz7.js} +1 -1
- package/dist/chunks/{file-access-t271ntmg.js → file-access-vbmkf8sa.js} +56 -56
- package/dist/chunks/{file-access-8yk8gp0p.js → file-access-vfp4enkz.js} +9 -9
- package/dist/chunks/{file-access-ky68ekyp.js → file-access-vhfq0sg5.js} +8 -8
- package/dist/chunks/{file-access-jy3pp1pb.js → file-access-vmgcxazz.js} +5 -5
- package/dist/chunks/{file-access-0v53mg2y.js → file-access-vncycja5.js} +3 -3
- package/dist/chunks/{file-access-xmvk7qad.js → file-access-vpgyrhve.js} +36 -36
- package/dist/chunks/{file-access-4jv7e9dq.js → file-access-vyqn3nqs.js} +8 -8
- package/dist/chunks/{file-access-5c0f1prt.js → file-access-w1k39n5e.js} +3 -3
- package/dist/chunks/{file-access-sf0yp864.js → file-access-w4axh9wz.js} +5 -5
- package/dist/chunks/{file-access-tkfbqfej.js → file-access-wc8ptzv7.js} +24 -24
- package/dist/chunks/{file-access-s3ze4hah.js → file-access-wvxf6pmh.js} +10 -10
- package/dist/chunks/{file-access-fhj2ec39.js → file-access-xsyev9bv.js} +13 -13
- package/dist/chunks/file-access-xv4gw76e.js +247 -0
- package/dist/chunks/{file-access-7qz0vyfs.js → file-access-y3d0z3tn.js} +20 -20
- package/dist/chunks/{file-access-dr6h9h98.js → file-access-y3ye89br.js} +40 -40
- package/dist/chunks/{file-access-1gfa7nhd.js → file-access-yb8fj77w.js} +30 -30
- package/dist/chunks/{file-access-amtb1fgb.js → file-access-ycrw32xq.js} +11 -11
- package/dist/chunks/{file-access-r8xr0va3.js → file-access-yp2x3t23.js} +3 -3
- package/dist/chunks/{file-access-jdfjhp2e.js → file-access-ypyq2zsn.js} +10 -10
- package/dist/chunks/{file-access-wajqf0bb.js → file-access-ys2m57fz.js} +30 -30
- package/dist/chunks/{file-access-y2m441pc.js → file-access-z12cg9p1.js} +8 -8
- package/dist/chunks/{file-access-yzcxy4rp.js → file-access-z25b1m8j.js} +36 -36
- package/dist/chunks/{file-access-a5mt2rtc.js → file-access-z6q28316.js} +27 -27
- package/dist/chunks/{file-access-8dpx7m7d.js → file-access-z6t9vx1b.js} +10 -10
- package/dist/chunks/{file-access-sa8j3x6g.js → file-access-zetsppkw.js} +17 -17
- package/dist/chunks/{file-access-kd6d57r1.js → file-access-zf9pbwsw.js} +74 -74
- package/dist/chunks/{file-access-x0511brf.js → file-access-zj09a0ew.js} +3 -3
- package/dist/chunks/{file-access-3dz5wwbt.js → file-access-zmk6j7b1.js} +12 -12
- package/dist/chunks/{file-access-2d8e38yw.js → file-access-zsn07k7j.js} +11 -11
- package/dist/chunks/{file-access-9gfvx8yt.js → file-access-zw6dtez5.js} +1 -1
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +60 -60
- package/dist/config/discovery.js +53 -53
- package/dist/config/normalize.js +72 -72
- package/dist/config/plugin/agent.js +88 -88
- package/dist/config/plugin/command.js +161 -161
- package/dist/config/plugin/compaction.js +112 -112
- package/dist/config/plugin/compatibility.js +99 -99
- package/dist/config/plugin/formatter.js +87 -87
- package/dist/config/plugin/image.js +86 -86
- package/dist/config/plugin/instruction.js +58 -58
- package/dist/config/plugin/location-watcher.js +86 -86
- package/dist/config/plugin/mcp.js +94 -94
- package/dist/config/plugin/policy.js +85 -85
- package/dist/config/plugin/provider.js +86 -86
- package/dist/config/plugin/reference.js +87 -87
- package/dist/config/plugin/shell.js +88 -88
- package/dist/config/plugin/skill-file.js +66 -66
- package/dist/config/plugin/skill.js +102 -102
- package/dist/config/plugin/snapshot.js +86 -86
- package/dist/config/plugin/source.js +89 -89
- package/dist/config/plugin/tool-output.js +86 -86
- package/dist/config/plugin/websearch.js +87 -87
- package/dist/config/plugin/worktree.js +86 -86
- package/dist/config.js +92 -92
- package/dist/credential.js +64 -64
- package/dist/database/database.js +48 -48
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +36 -36
- package/dist/database/migration.js +37 -37
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +226 -226
- package/dist/environment/environment.js +60 -60
- package/dist/environment/index.js +62 -62
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +69 -69
- package/dist/file-mutation.js +61 -61
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +171 -171
- package/dist/filesystem/search.js +68 -68
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +63 -63
- package/dist/form.js +64 -64
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +59 -59
- package/dist/generate.js +70 -70
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +68 -68
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +293 -293
- package/dist/instruction-discovery.js +61 -61
- package/dist/instructions/builtins.js +58 -58
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +64 -64
- package/dist/job.js +57 -57
- package/dist/kv.js +53 -53
- package/dist/location-activity.js +51 -51
- package/dist/location-mutation.js +28 -28
- package/dist/location-service-map.js +57 -57
- package/dist/location-services.js +291 -291
- package/dist/location.js +52 -52
- package/dist/mcp/client.js +15 -15
- package/dist/mcp/index.js +73 -73
- package/dist/mcp/instructions.js +88 -88
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +57 -57
- package/dist/modal/models.js +68 -68
- package/dist/model-resolver.js +65 -65
- package/dist/model.js +69 -69
- package/dist/models-dev.js +76 -76
- package/dist/permission/saved.js +57 -57
- package/dist/permission.js +78 -78
- package/dist/persistent-pty/index.js +63 -63
- package/dist/persistent-pty.js +51 -51
- package/dist/plugin/agent.js +69 -69
- package/dist/plugin/command.js +68 -68
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +164 -164
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +265 -265
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +65 -65
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +67 -67
- package/dist/plugin/provider/amazon-bedrock.js +59 -59
- package/dist/plugin/provider/azure.js +85 -85
- package/dist/plugin/provider/cloudflare-ai-gateway.js +84 -84
- package/dist/plugin/provider/cloudflare-workers-ai.js +84 -84
- package/dist/plugin/provider/configured.js +83 -83
- package/dist/plugin/provider/digitalocean.js +61 -61
- package/dist/plugin/provider/github-copilot.js +62 -62
- package/dist/plugin/provider/gitlab.js +60 -60
- package/dist/plugin/provider/google-vertex.js +59 -59
- package/dist/plugin/provider/llmgateway.js +55 -55
- package/dist/plugin/provider/lmstudio.js +86 -86
- package/dist/plugin/provider/modal.js +61 -61
- package/dist/plugin/provider/ollama.js +86 -86
- package/dist/plugin/provider/openai.js +60 -60
- package/dist/plugin/provider/opencode.js +62 -62
- package/dist/plugin/provider/openrouter.js +60 -60
- package/dist/plugin/provider/poe.js +55 -55
- package/dist/plugin/provider/prompt-cache-key.js +59 -59
- package/dist/plugin/provider/sap-ai-core.js +59 -59
- package/dist/plugin/provider/snowflake-cortex.js +85 -85
- package/dist/plugin/provider/vercel.js +59 -59
- package/dist/plugin/provider/vllm.js +86 -86
- package/dist/plugin/provider/xai.js +60 -60
- package/dist/plugin/provider.js +117 -117
- package/dist/plugin/sdk.js +56 -56
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +100 -100
- package/dist/plugin/supervisor.js +283 -283
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +56 -56
- package/dist/plugin/vcs/hg.js +56 -56
- package/dist/plugin/warming.js +85 -85
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +176 -176
- package/dist/project.js +51 -51
- package/dist/provider.js +70 -70
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +65 -65
- package/dist/reference/instructions.js +61 -61
- package/dist/reference.js +63 -63
- package/dist/repository-cache.js +55 -55
- package/dist/ripgrep.js +63 -63
- package/dist/rpc.js +57 -57
- package/dist/session/command.js +53 -53
- package/dist/session/compaction.js +93 -93
- package/dist/session/context.js +109 -109
- package/dist/session/diff.js +56 -56
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +112 -112
- package/dist/session/execution.js +91 -91
- package/dist/session/generate.js +110 -110
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +54 -54
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +65 -65
- package/dist/session/model-request.js +77 -77
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +91 -91
- package/dist/session/projector.js +58 -58
- package/dist/session/prompt.js +69 -69
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +57 -57
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +174 -174
- package/dist/session/runner/model.js +67 -67
- package/dist/session/runner/retry.js +79 -79
- package/dist/session/runner/step.js +84 -84
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +125 -125
- package/dist/session/shell.js +98 -98
- package/dist/session/skill.js +68 -68
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +60 -60
- package/dist/session/subagent-job.js +157 -157
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +112 -112
- package/dist/session/to-session-error.js +76 -76
- package/dist/session/transfer.js +106 -106
- package/dist/session.js +164 -164
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +101 -101
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +72 -72
- package/dist/skill.js +77 -77
- package/dist/snapshot.js +63 -63
- package/dist/tool/mcp.js +87 -87
- package/dist/tool/plugin/edit.js +84 -84
- package/dist/tool/plugin/glob.js +88 -88
- package/dist/tool/plugin/grep.js +88 -88
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +86 -86
- package/dist/tool/plugin/question.js +68 -68
- package/dist/tool/plugin/read.js +88 -88
- package/dist/tool/plugin/shell.js +165 -165
- package/dist/tool/plugin/skill.js +76 -76
- package/dist/tool/plugin/subagent.js +166 -166
- package/dist/tool/plugin/webfetch.js +73 -73
- package/dist/tool/plugin/websearch.js +78 -78
- package/dist/tool/plugin/write.js +86 -86
- package/dist/tool/read-filesystem.js +65 -65
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/types/session/model-transport.d.ts +6 -1
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +60 -60
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +62 -62
- package/dist/vcs.js +59 -59
- package/dist/websearch.js +62 -62
- package/dist/wellknown/plugin.js +55 -55
- package/dist/wellknown.js +58 -58
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +58 -58
- package/dist/worktree/strategies.js +57 -57
- package/dist/worktree.js +61 -61
- package/package.json +8 -8
- package/dist/chunks/file-access-24q6q5zm.js +0 -247
- package/dist/chunks/file-access-mqjrdake.js +0 -26
- package/dist/chunks/file-access-qapv375x.js +0 -4
- /package/dist/chunks/{file-access-7mqb335e.js → file-access-8y62cfgq.js} +0 -0
- /package/dist/chunks/{file-access-s8cf5yxm.js → file-access-f60890a8.js} +0 -0
- /package/dist/chunks/{file-access-zk8c4w5t.js → file-access-fyjp43ss.js} +0 -0
- /package/dist/chunks/{file-access-2mzw0ev8.js → file-access-m3kws1jr.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./file-access-
|
|
3
|
+
} from "./file-access-6snq9ewv.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./file-access-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin27
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin27 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin27, exports_plan };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_mcp5 = {};
|
|
10
10
|
__export(exports_mcp5, {
|
|
11
11
|
ConfigMCPV1: () => exports_mcp5,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info19,
|
|
13
13
|
Local: () => Local2,
|
|
14
14
|
OAuth: () => OAuth2,
|
|
15
15
|
Remote: () => Remote2
|
|
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
|
|
|
64
64
|
description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
|
|
65
65
|
})
|
|
66
66
|
}).annotate({ identifier: "McpRemoteConfig" });
|
|
67
|
-
var
|
|
67
|
+
var Info19 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info19, exports_mcp5 };
|
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options9,
|
|
15
|
+
Service: () => Service53,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured9,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
|
-
list: () =>
|
|
21
|
+
list: () => list4,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name15,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node56,
|
|
25
25
|
ps: () => ps2,
|
|
26
|
-
resolve: () =>
|
|
26
|
+
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { readFile } from "fs/promises";
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options9 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service53 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
|
|
|
164
164
|
}
|
|
165
165
|
var defaultConfigured;
|
|
166
166
|
var defaultCompatible;
|
|
167
|
-
function
|
|
167
|
+
function resolve3(input, configShell, options, bin) {
|
|
168
168
|
const filter = input.priority === "compat" ? { compatible: true } : undefined;
|
|
169
169
|
if (configShell)
|
|
170
170
|
return select(configShell, options, filter, bin);
|
|
@@ -180,15 +180,15 @@ function resolve2(input, configShell, options, bin) {
|
|
|
180
180
|
defaultConfigured = { bin, value };
|
|
181
181
|
return value;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
resolve3.reset = () => {
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
187
|
-
async function
|
|
187
|
+
async function list4(options, bin) {
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service53, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service41, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service53.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
|
-
resolve: (input) => Effect.sync(() =>
|
|
206
|
-
list: () => Effect.promise(() =>
|
|
205
|
+
resolve: (input) => Effect.sync(() => resolve3(input, state.get().shell, options, global.bin)),
|
|
206
|
+
list: () => Effect.promise(() => list4(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured9(options) {
|
|
210
|
+
return makeLocationNode({ service: Service53, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node56 = configured9();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options9, Service53, gitbash2, name15, login2, ps2, args2, environment2, resolve3, list4, configured9, node56, exports_select };
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-access-
|
|
2
|
+
Service52
|
|
3
|
+
} from "./file-access-3stbjpb0.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./file-access-922hggd3.js";
|
|
7
7
|
import {
|
|
8
8
|
Service78
|
|
9
|
-
} from "./file-access-
|
|
9
|
+
} from "./file-access-t9kha2ca.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./file-access-
|
|
11
|
+
Service51
|
|
12
|
+
} from "./file-access-vpgyrhve.js";
|
|
13
13
|
import {
|
|
14
14
|
DirectorySource2,
|
|
15
15
|
UrlSource2,
|
|
16
|
-
|
|
17
|
-
} from "./file-access-
|
|
16
|
+
Source4
|
|
17
|
+
} from "./file-access-8yppv9j5.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./file-access-
|
|
19
|
+
Service8
|
|
20
|
+
} from "./file-access-mvn2r3z4.js";
|
|
21
21
|
import {
|
|
22
22
|
parse2
|
|
23
|
-
} from "./file-access-
|
|
23
|
+
} from "./file-access-a46e93d3.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./file-access-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/config/plugin/skill.ts
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
ConfigSkillPlugin: () =>
|
|
32
|
-
Plugin: () =>
|
|
29
|
+
var exports_skill = {};
|
|
30
|
+
__export(exports_skill, {
|
|
31
|
+
ConfigSkillPlugin: () => exports_skill,
|
|
32
|
+
Plugin: () => Plugin16
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import path from "path";
|
|
38
38
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
39
|
-
var
|
|
39
|
+
var Plugin16 = define({
|
|
40
40
|
id: "opencode.config.skill",
|
|
41
41
|
effect: Effect.fn(function* (ctx) {
|
|
42
|
-
const config = yield*
|
|
43
|
-
const discovery = yield*
|
|
42
|
+
const config = yield* Service51;
|
|
43
|
+
const discovery = yield* Service8;
|
|
44
44
|
const fs = yield* FSUtil.Service;
|
|
45
45
|
const global = yield* Global.Service;
|
|
46
46
|
const location = yield* Service78;
|
|
47
|
-
const watcher = yield*
|
|
47
|
+
const watcher = yield* Service52;
|
|
48
48
|
const loaded = {
|
|
49
49
|
entries: yield* config.entries(),
|
|
50
50
|
skills: []
|
|
@@ -87,7 +87,7 @@ var Plugin40 = define({
|
|
|
87
87
|
const sources = () => {
|
|
88
88
|
const result = [];
|
|
89
89
|
const add = (source) => {
|
|
90
|
-
if (result.some((item) =>
|
|
90
|
+
if (result.some((item) => Source4.equals(item, source)))
|
|
91
91
|
return;
|
|
92
92
|
result.push(source);
|
|
93
93
|
};
|
|
@@ -112,7 +112,7 @@ var Plugin40 = define({
|
|
|
112
112
|
};
|
|
113
113
|
const load = Effect.fn("ConfigSkillPlugin.load")(function* (source) {
|
|
114
114
|
const directories = source.type === "directory" ? [source.path] : yield* discovery.pull(source.url).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to load skill source", {
|
|
115
|
-
source:
|
|
115
|
+
source: Source4.key(source),
|
|
116
116
|
cause
|
|
117
117
|
}).pipe(Effect.as([]))));
|
|
118
118
|
const roots = (yield* Effect.forEach(directories, watchDirectory)).flat();
|
|
@@ -141,7 +141,7 @@ var Plugin40 = define({
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
yield* Effect.logDebug("skill source loaded", {
|
|
144
|
-
source:
|
|
144
|
+
source: Source4.key(source),
|
|
145
145
|
type: source.type,
|
|
146
146
|
directories,
|
|
147
147
|
skills: skills.map((skill) => skill.id)
|
|
@@ -160,7 +160,7 @@ var Plugin40 = define({
|
|
|
160
160
|
if (file) {
|
|
161
161
|
yield* Effect.logInfo("skills rescanned", {
|
|
162
162
|
file,
|
|
163
|
-
sources: current.map(
|
|
163
|
+
sources: current.map(Source4.key),
|
|
164
164
|
skills: loaded.skills.map((skill) => skill.id)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -176,4 +176,4 @@ var Plugin40 = define({
|
|
|
176
176
|
})
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
export {
|
|
179
|
+
export { Plugin16, exports_skill };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./file-access-
|
|
3
|
+
} from "./file-access-he2x7e7z.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./file-access-
|
|
6
|
+
} from "./file-access-v65pmyz7.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./file-access-9rqn6x4v.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service78,
|
|
3
3
|
node82
|
|
4
|
-
} from "./file-access-
|
|
4
|
+
} from "./file-access-t9kha2ca.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./file-access-rdw6cm16.js";
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
} from "./file-access-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/formatter.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Formatter: () =>
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
13
|
+
var exports_formatter2 = {};
|
|
14
|
+
__export(exports_formatter2, {
|
|
15
|
+
Formatter: () => exports_formatter2,
|
|
16
|
+
Service: () => Service15,
|
|
17
|
+
node: () => node17
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { ChildProcess } from "effect/unstable/process";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { AppProcess } from "@opencode/util/process";
|
|
24
|
-
class
|
|
24
|
+
class Service15 extends Context.Service()("@opencode/v2/Formatter") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service15, Effect.gen(function* () {
|
|
27
27
|
const location = yield* Service78;
|
|
28
28
|
const processes = yield* AppProcess.Service;
|
|
29
29
|
const commands = new WeakMap;
|
|
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
85
85
|
}
|
|
86
86
|
return false;
|
|
87
87
|
});
|
|
88
|
-
return
|
|
88
|
+
return Service15.of({ transform: state.transform, reload: state.reload, file });
|
|
89
89
|
}));
|
|
90
|
-
var
|
|
91
|
-
service:
|
|
90
|
+
var node17 = makeLocationNode({
|
|
91
|
+
service: Service15,
|
|
92
92
|
layer,
|
|
93
93
|
deps: [node82, AppProcess.node]
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Service15, node17, exports_formatter2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID6,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./file-access-
|
|
4
|
+
} from "./file-access-rds37zvx.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID5,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info20,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./file-access-
|
|
10
|
+
} from "./file-access-ea3fxjgj.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./file-access-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ModalModels: () =>
|
|
19
|
-
derive: () =>
|
|
20
|
-
get: () =>
|
|
21
|
-
load: () =>
|
|
16
|
+
var exports_models2 = {};
|
|
17
|
+
__export(exports_models2, {
|
|
18
|
+
ModalModels: () => exports_models2,
|
|
19
|
+
derive: () => derive3,
|
|
20
|
+
get: () => get3,
|
|
21
|
+
load: () => load3
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID6.make("modal");
|
|
26
26
|
var ReasoningOption = Schema.Struct({
|
|
27
27
|
type: Schema.Literal("effort"),
|
|
28
28
|
values: Schema.Array(Schema.NullOr(Schema.String))
|
|
@@ -54,10 +54,10 @@ var RemoteModel = Schema.Struct({
|
|
|
54
54
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
55
55
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
56
56
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
57
|
-
async function
|
|
58
|
-
return
|
|
57
|
+
async function get3(baseURL, apiKey, existing) {
|
|
58
|
+
return derive3(baseURL, await load3(baseURL, apiKey), existing);
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function load3(baseURL, apiKey) {
|
|
61
61
|
const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`
|
|
@@ -71,12 +71,12 @@ async function load2(baseURL, apiKey) {
|
|
|
71
71
|
return model ? [model] : [];
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function derive3(baseURL, remote, existing) {
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID5.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID5.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -94,10 +94,10 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info20.make({
|
|
98
|
+
...Info20.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID5.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|
|
@@ -144,4 +144,4 @@ function variants(remote) {
|
|
|
144
144
|
return [...seen.values()];
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export {
|
|
147
|
+
export { get3, load3, derive3, exports_models2 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID6,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./file-access-
|
|
5
|
+
} from "./file-access-rds37zvx.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID5,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
|
-
|
|
11
|
-
} from "./file-access-
|
|
10
|
+
Info20
|
|
11
|
+
} from "./file-access-ea3fxjgj.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./file-access-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CopilotModels: () =>
|
|
20
|
-
derive: () =>
|
|
21
|
-
get: () =>
|
|
22
|
-
load: () =>
|
|
17
|
+
var exports_models = {};
|
|
18
|
+
__export(exports_models, {
|
|
19
|
+
CopilotModels: () => exports_models,
|
|
20
|
+
derive: () => derive2,
|
|
21
|
+
get: () => get2,
|
|
22
|
+
load: () => load2
|
|
23
23
|
});
|
|
24
24
|
import { Money } from "@opencode/schema/money";
|
|
25
25
|
import { Option, Schema } from "effect";
|
|
@@ -68,10 +68,10 @@ var RemoteModel = Schema.Struct({
|
|
|
68
68
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
69
69
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
70
70
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
71
|
-
async function
|
|
72
|
-
return
|
|
71
|
+
async function get2(baseURL, headers, existing) {
|
|
72
|
+
return derive2(baseURL, await load2(baseURL, headers), existing);
|
|
73
73
|
}
|
|
74
|
-
async function
|
|
74
|
+
async function load2(baseURL, headers) {
|
|
75
75
|
const response = await fetch(`${baseURL}/models`, {
|
|
76
76
|
headers,
|
|
77
77
|
signal: AbortSignal.timeout(5000)
|
|
@@ -83,7 +83,7 @@ async function load3(baseURL, headers) {
|
|
|
83
83
|
return model && usable(model) ? [[model.id, model]] : [];
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function derive2(baseURL, remote, existing) {
|
|
87
87
|
const result = new Map(existing.map((model) => [model.id, model]));
|
|
88
88
|
for (const [id, model] of result) {
|
|
89
89
|
const current = remote.get(model.modelID);
|
|
@@ -94,7 +94,7 @@ function derive3(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID5.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -118,11 +118,11 @@ function build(id, remote, baseURL, previous) {
|
|
|
118
118
|
const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
|
|
119
119
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
120
120
|
const released = previous?.time.released || Date.parse(version);
|
|
121
|
-
return
|
|
122
|
-
...
|
|
121
|
+
return Info20.make({
|
|
122
|
+
...Info20.default(ID6.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
125
|
-
providerID:
|
|
124
|
+
modelID: ID5.make(remote.id),
|
|
125
|
+
providerID: ID6.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
128
128
|
package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
|
|
@@ -197,4 +197,4 @@ function variants(remote, messages) {
|
|
|
197
197
|
];
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export {
|
|
200
|
+
export { get2, load2, derive2, exports_models };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
3
|
node86
|
|
4
|
-
} from "./file-access-
|
|
4
|
+
} from "./file-access-s8j3dq9b.js";
|
|
5
5
|
import {
|
|
6
6
|
Service81,
|
|
7
7
|
node85
|
|
8
|
-
} from "./file-access-
|
|
8
|
+
} from "./file-access-zw6dtez5.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./file-access-
|
|
10
|
+
Service40,
|
|
11
|
+
node42
|
|
12
|
+
} from "./file-access-3ppptnan.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2,
|
|
15
15
|
RelativePath2
|
|
@@ -17,44 +17,44 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
Service79,
|
|
19
19
|
node83
|
|
20
|
-
} from "./file-access-
|
|
20
|
+
} from "./file-access-qv9gx9bg.js";
|
|
21
21
|
import {
|
|
22
22
|
Ref4
|
|
23
|
-
} from "./file-access-
|
|
23
|
+
} from "./file-access-t9kha2ca.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./file-access-
|
|
25
|
+
Service54,
|
|
26
|
+
node57
|
|
27
|
+
} from "./file-access-sxd752g3.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionMessage2
|
|
30
30
|
} from "./file-access-gftt206x.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./file-access-
|
|
32
|
+
NotFoundError10
|
|
33
|
+
} from "./file-access-3ktbe3hf.js";
|
|
34
34
|
import {
|
|
35
35
|
SessionEvent2
|
|
36
36
|
} from "./file-access-ec1grn59.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./file-access-
|
|
38
|
+
Service38
|
|
39
|
+
} from "./file-access-hn57h045.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "./file-access-
|
|
41
|
+
Service72,
|
|
42
|
+
node75
|
|
43
|
+
} from "./file-access-by9rpdtw.js";
|
|
44
44
|
import {
|
|
45
45
|
Item2,
|
|
46
46
|
serialized2,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Service39,
|
|
48
|
+
node41,
|
|
49
49
|
moveIDs2
|
|
50
|
-
} from "./file-access-
|
|
50
|
+
} from "./file-access-k31cg7qp.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./file-access-
|
|
52
|
+
Service37,
|
|
53
|
+
node40
|
|
54
|
+
} from "./file-access-z25b1m8j.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./file-access-
|
|
56
|
+
node29
|
|
57
|
+
} from "./file-access-g00jty2v.js";
|
|
58
58
|
import {
|
|
59
59
|
__export
|
|
60
60
|
} from "./file-access-9rqn6x4v.js";
|
|
@@ -65,9 +65,9 @@ __export(exports_move, {
|
|
|
65
65
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
66
66
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
67
67
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
68
|
-
Service: () =>
|
|
68
|
+
Service: () => Service25,
|
|
69
69
|
SessionMove: () => exports_move,
|
|
70
|
-
node: () =>
|
|
70
|
+
node: () => node28
|
|
71
71
|
});
|
|
72
72
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
73
73
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -83,23 +83,23 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
|
|
|
83
83
|
class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class Service25 extends Context.Service()("@opencode/SessionMove") {
|
|
87
87
|
}
|
|
88
|
-
var layer = Layer.effect(
|
|
88
|
+
var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
89
89
|
const fs = yield* FSUtil.Service;
|
|
90
90
|
const global = yield* Global.Service;
|
|
91
91
|
const projects = yield* Service79;
|
|
92
|
-
const locations = yield*
|
|
93
|
-
const store = yield*
|
|
94
|
-
const execution = yield*
|
|
95
|
-
const instances = yield*
|
|
96
|
-
const admission = yield*
|
|
92
|
+
const locations = yield* Service54;
|
|
93
|
+
const store = yield* Service72;
|
|
94
|
+
const execution = yield* Service37;
|
|
95
|
+
const instances = yield* Service40;
|
|
96
|
+
const admission = yield* Service39;
|
|
97
97
|
const database = yield* Service82;
|
|
98
98
|
const bus = yield* Service81;
|
|
99
99
|
const get = Effect.fn("SessionMove.get")(function* (sessionID) {
|
|
100
100
|
const session = yield* store.get(sessionID);
|
|
101
101
|
if (!session)
|
|
102
|
-
return yield* new
|
|
102
|
+
return yield* new NotFoundError10({ sessionID });
|
|
103
103
|
return session;
|
|
104
104
|
});
|
|
105
105
|
const resolveDestination = Effect.fn("SessionMove.resolveDestination")(function* (session, input) {
|
|
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
131
131
|
return false;
|
|
132
132
|
if (!(yield* fs.isDir(session.location.directory)))
|
|
133
133
|
return true;
|
|
134
|
-
return yield*
|
|
134
|
+
return yield* Service38.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(cause) : Effect.succeed(true)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service25.of({
|
|
137
137
|
move: Effect.fn("SessionMove.move")(function* (input) {
|
|
138
138
|
const session = yield* get(input.sessionID);
|
|
139
139
|
const destination = yield* resolveDestination(session, input);
|
|
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
|
-
var
|
|
167
|
-
service:
|
|
166
|
+
var node28 = makeGlobalNode({
|
|
167
|
+
service: Service25,
|
|
168
168
|
layer,
|
|
169
169
|
deps: [
|
|
170
170
|
FSUtil.node,
|
|
171
171
|
Global.node,
|
|
172
172
|
node83,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
node57,
|
|
174
|
+
node75,
|
|
175
|
+
node40,
|
|
176
|
+
node42,
|
|
177
|
+
node41,
|
|
178
178
|
node86,
|
|
179
179
|
node85,
|
|
180
|
-
|
|
180
|
+
node29
|
|
181
181
|
]
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2,
|
|
184
|
+
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service25, node28, exports_move };
|