@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,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-access-
|
|
2
|
+
ID14,
|
|
3
|
+
Service73
|
|
4
|
+
} from "./file-access-7dcaf0ce.js";
|
|
5
5
|
import {
|
|
6
6
|
Service78
|
|
7
|
-
} from "./file-access-
|
|
7
|
+
} from "./file-access-t9kha2ca.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./file-access-
|
|
9
|
+
Service51
|
|
10
|
+
} from "./file-access-vpgyrhve.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service53,
|
|
13
13
|
args2
|
|
14
|
-
} from "./file-access-
|
|
14
|
+
} from "./file-access-s6jatava.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./file-access-
|
|
16
|
+
Service24
|
|
17
|
+
} from "./file-access-zf9pbwsw.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./file-access-
|
|
19
|
+
make10
|
|
20
|
+
} from "./file-access-km5njsm9.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
23
|
} from "./file-access-5daktx2q.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
} from "./file-access-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/config/plugin/command.ts
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
ConfigCommandPlugin: () =>
|
|
32
|
-
Plugin: () =>
|
|
29
|
+
var exports_command = {};
|
|
30
|
+
__export(exports_command, {
|
|
31
|
+
ConfigCommandPlugin: () => exports_command,
|
|
32
|
+
Plugin: () => Plugin13
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { ConfigCommand } from "@opencode/schema/config/command";
|
|
@@ -41,10 +41,10 @@ import { Effect, Option, PubSub, Schema, Stream } from "effect";
|
|
|
41
41
|
import { ChildProcess } from "effect/unstable/process";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
43
|
var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
|
|
44
|
-
var
|
|
44
|
+
var Plugin13 = define({
|
|
45
45
|
id: "opencode.config.command",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service51;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
50
50
|
if (entry.type === "document")
|
|
@@ -56,10 +56,10 @@ var Plugin32 = define({
|
|
|
56
56
|
});
|
|
57
57
|
const location = yield* Service78;
|
|
58
58
|
const processes = yield* AppProcess.Service;
|
|
59
|
-
const shell = yield*
|
|
60
|
-
const sessions = yield*
|
|
61
|
-
const agents = yield*
|
|
62
|
-
const subagents = yield*
|
|
59
|
+
const shell = yield* Service53;
|
|
60
|
+
const sessions = yield* Service24;
|
|
61
|
+
const agents = yield* Service73;
|
|
62
|
+
const subagents = yield* make10;
|
|
63
63
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
64
64
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var Plugin32 = define({
|
|
|
80
80
|
name,
|
|
81
81
|
description: command.description,
|
|
82
82
|
execute: (input) => Effect.gen(function* () {
|
|
83
|
-
const agent = command.agent === undefined ? undefined :
|
|
83
|
+
const agent = command.agent === undefined ? undefined : ID14.make(command.agent);
|
|
84
84
|
const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
|
|
85
85
|
const model = command.model === undefined ? commandAgent?.model : {
|
|
86
86
|
id: Model.ID.make(command.model.model),
|
|
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
|
|
|
204
204
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
205
205
|
var shellRegex = /!`([^`]+)`/g;
|
|
206
206
|
|
|
207
|
-
export {
|
|
207
|
+
export { Plugin13, exports_command };
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service74,
|
|
10
|
+
node: () => node77
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service74 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service74.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node77 = makeLocationNode({ service: Service74, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service74, node77, exports_hooks };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
ascending2
|
|
3
3
|
} from "./file-access-tvtrv512.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./file-access-
|
|
5
|
+
Service67,
|
|
6
|
+
node70
|
|
7
|
+
} from "./file-access-q12jtckr.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionMessage2
|
|
10
10
|
} from "./file-access-gftt206x.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./file-access-
|
|
13
|
+
} from "./file-access-q3t37ft6.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./file-access-9rqn6x4v.js";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
var exports_job = {};
|
|
20
20
|
__export(exports_job, {
|
|
21
21
|
Job: () => exports_job,
|
|
22
|
-
Service: () =>
|
|
23
|
-
make: () =>
|
|
24
|
-
node: () =>
|
|
22
|
+
Service: () => Service47,
|
|
23
|
+
make: () => make18,
|
|
24
|
+
node: () => node49
|
|
25
25
|
});
|
|
26
26
|
import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
|
|
27
27
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -50,7 +50,7 @@ var Background = Schema.Struct({
|
|
|
50
50
|
var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
51
51
|
var backgroundPrefix = "job.background/";
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service47 extends Context.Service()("@opencode/Job") {
|
|
54
54
|
}
|
|
55
55
|
function snapshot(job) {
|
|
56
56
|
return {
|
|
@@ -77,8 +77,8 @@ function decrementSession(input, sessionID) {
|
|
|
77
77
|
next.set(sessionID, count - 1);
|
|
78
78
|
return next;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
const kv = yield*
|
|
80
|
+
var make18 = Effect.gen(function* () {
|
|
81
|
+
const kv = yield* Service67;
|
|
82
82
|
const state = {
|
|
83
83
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
84
84
|
scope: yield* Scope.Scope
|
|
@@ -307,7 +307,7 @@ var make20 = Effect.gen(function* () {
|
|
|
307
307
|
return recovered;
|
|
308
308
|
}).pipe(Effect.withSpan("Job.pendingBackground"));
|
|
309
309
|
const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => kv.remove(`${backgroundPrefix}${notificationID}`));
|
|
310
|
-
return
|
|
310
|
+
return Service47.of({
|
|
311
311
|
get,
|
|
312
312
|
start,
|
|
313
313
|
wait,
|
|
@@ -319,7 +319,7 @@ var make20 = Effect.gen(function* () {
|
|
|
319
319
|
completeBackground
|
|
320
320
|
});
|
|
321
321
|
});
|
|
322
|
-
var layer = Layer.effect(
|
|
323
|
-
var
|
|
322
|
+
var layer = Layer.effect(Service47, make18);
|
|
323
|
+
var node49 = makeGlobalNode({ service: Service47, layer, deps: [node70] });
|
|
324
324
|
|
|
325
|
-
export {
|
|
325
|
+
export { Service47, make18, node49, exports_job };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./file-access-
|
|
4
|
+
} from "./file-access-zw6dtez5.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./file-access-
|
|
6
|
+
Service67,
|
|
7
|
+
node70
|
|
8
|
+
} from "./file-access-q12jtckr.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
11
|
} from "./file-access-rdw6cm16.js";
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
var exports_websearch3 = {};
|
|
18
18
|
__export(exports_websearch3, {
|
|
19
19
|
DisabledError: () => DisabledError2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Input: () =>
|
|
20
|
+
Event: () => Event17,
|
|
21
|
+
ID: () => ID10,
|
|
22
|
+
Input: () => Input14,
|
|
23
23
|
Provider: () => Provider2,
|
|
24
24
|
ProviderKey: () => ProviderKey2,
|
|
25
25
|
ProviderNotFoundError: () => ProviderNotFoundError2,
|
|
@@ -28,29 +28,29 @@ __export(exports_websearch3, {
|
|
|
28
28
|
Response: () => Response2,
|
|
29
29
|
Result: () => Result2,
|
|
30
30
|
Selection: () => Selection2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service66,
|
|
32
32
|
WebSearch: () => exports_websearch3,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node69
|
|
34
34
|
});
|
|
35
35
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
36
36
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
37
37
|
import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
38
38
|
import { HttpClientError } from "effect/unstable/http";
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
|
-
import { Event as
|
|
41
|
-
var
|
|
40
|
+
import { Event as Event17 } from "@opencode/schema/websearch";
|
|
41
|
+
var ID10 = WebSearch.ID;
|
|
42
42
|
var Provider2 = WebSearch.Provider;
|
|
43
|
-
var
|
|
43
|
+
var Input14 = WebSearch.Input;
|
|
44
44
|
var Result2 = WebSearch.Result;
|
|
45
45
|
var Response2 = WebSearch.Response;
|
|
46
46
|
var ProviderKey2 = "websearch:provider";
|
|
47
|
-
var Selection2 = Schema.Union([
|
|
47
|
+
var Selection2 = Schema.Union([ID10, Schema.Literal("random"), Schema.Literal(false)]);
|
|
48
48
|
|
|
49
49
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
53
|
-
providerID:
|
|
53
|
+
providerID: ID10
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -58,16 +58,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
61
|
-
providerID:
|
|
61
|
+
providerID: ID10,
|
|
62
62
|
cause: Schema.Defect()
|
|
63
63
|
}) {
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
class
|
|
66
|
+
class Service66 extends Context.Service()("@opencode/WebSearch") {
|
|
67
67
|
}
|
|
68
|
-
var layer = Layer.effect(
|
|
68
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
69
69
|
const bus = yield* Service81;
|
|
70
|
-
const kv = yield*
|
|
70
|
+
const kv = yield* Service67;
|
|
71
71
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
72
72
|
const cooldowns = new Map;
|
|
73
73
|
const preferred = new Map;
|
|
@@ -124,7 +124,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
124
124
|
}
|
|
125
125
|
return choice ? state.get().providers.get(choice) : undefined;
|
|
126
126
|
});
|
|
127
|
-
return
|
|
127
|
+
return Service66.of({
|
|
128
128
|
transform: state.transform,
|
|
129
129
|
reload: state.reload,
|
|
130
130
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -184,10 +184,10 @@ function cooldownMillis(value, now) {
|
|
|
184
184
|
const date = Date.parse(value);
|
|
185
185
|
return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
service:
|
|
187
|
+
var node69 = makeLocationNode({
|
|
188
|
+
service: Service66,
|
|
189
189
|
layer,
|
|
190
|
-
deps: [node85,
|
|
190
|
+
deps: [node85, node70]
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
export {
|
|
193
|
+
export { ID10, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service66, node69, exports_websearch3, Event17 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-access-
|
|
2
|
+
ID6
|
|
3
|
+
} from "./file-access-rds37zvx.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID6.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuth3
|
|
3
|
-
} from "./file-access-
|
|
3
|
+
} from "./file-access-fak7xqqt.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID7,
|
|
6
6
|
MethodID2
|
|
7
|
-
} from "./file-access-
|
|
7
|
+
} from "./file-access-mmy2zf88.js";
|
|
8
8
|
import {
|
|
9
9
|
success2,
|
|
10
10
|
error2
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
16
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
17
|
-
var integrationID =
|
|
17
|
+
var integrationID = ID7.make("poe");
|
|
18
18
|
var methodID = MethodID2.make("browser");
|
|
19
19
|
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
20
|
var issuer = "https://poe.com";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-access-
|
|
2
|
+
Service76
|
|
3
|
+
} from "./file-access-eahf1j6r.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./file-access-9rqn6x4v.js";
|
|
@@ -19,7 +19,7 @@ var FORCE_KILL_AFTER = Duration.seconds(2);
|
|
|
19
19
|
var OUTGOING_CAPACITY = 64;
|
|
20
20
|
var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
21
21
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
22
|
-
const environment = yield*
|
|
22
|
+
const environment = yield* Service76;
|
|
23
23
|
const scope = yield* Effect.scope;
|
|
24
24
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
25
25
|
const buffer = new ReadBuffer;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./file-access-
|
|
4
|
+
} from "./file-access-zw6dtez5.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./file-access-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./file-access-
|
|
10
|
+
} from "./file-access-6snq9ewv.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./file-access-9rqn6x4v.js";
|
|
@@ -17,16 +17,16 @@ var exports_skill5 = {};
|
|
|
17
17
|
__export(exports_skill5, {
|
|
18
18
|
DirectorySource: () => DirectorySource2,
|
|
19
19
|
EmbeddedSource: () => EmbeddedSource2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Info: () =>
|
|
20
|
+
Event: () => Event18,
|
|
21
|
+
ID: () => ID11,
|
|
22
|
+
Info: () => Info26,
|
|
23
23
|
Name: () => Name2,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service69,
|
|
25
25
|
Skill: () => exports_skill5,
|
|
26
|
-
Source: () =>
|
|
26
|
+
Source: () => Source4,
|
|
27
27
|
UrlSource: () => UrlSource2,
|
|
28
28
|
available: () => available2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node72,
|
|
30
30
|
prepare: () => prepare3,
|
|
31
31
|
toModelOutput: () => toModelOutput3
|
|
32
32
|
});
|
|
@@ -34,13 +34,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { Context, Effect, Layer } from "effect";
|
|
36
36
|
import { Skill } from "@opencode/schema/skill";
|
|
37
|
-
import { Event as
|
|
37
|
+
import { Event as Event18 } from "@opencode/schema/skill";
|
|
38
38
|
var DirectorySource2 = Skill.DirectorySource;
|
|
39
39
|
var UrlSource2 = Skill.UrlSource;
|
|
40
40
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
41
|
+
var Source4 = Skill.Source;
|
|
42
|
+
var Info26 = Skill.Info;
|
|
43
|
+
var ID11 = Skill.ID;
|
|
44
44
|
var Name2 = Skill.Name;
|
|
45
45
|
var available2 = (skills, agent) => skills.filter((skill) => evaluate2("skill", skill.id, agent.permissions).effect !== "deny");
|
|
46
46
|
var toModelOutput3 = (skill, files) => {
|
|
@@ -71,33 +71,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service69 extends Context.Service()("@opencode/Skill") {
|
|
75
75
|
}
|
|
76
|
-
var layer = Layer.effect(
|
|
76
|
+
var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
77
77
|
const bus = yield* Service81;
|
|
78
78
|
const state = create3({
|
|
79
79
|
name: "skill",
|
|
80
80
|
initial: () => ({ skills: new Map }),
|
|
81
81
|
editor: (editor) => ({
|
|
82
82
|
list: () => Array.from(editor.skills.values()),
|
|
83
|
-
get: (id) => editor.skills.get(
|
|
83
|
+
get: (id) => editor.skills.get(ID11.make(id)),
|
|
84
84
|
add: (skill) => {
|
|
85
85
|
editor.skills.set(skill.id, { ...skill });
|
|
86
86
|
},
|
|
87
87
|
update: (id, update) => {
|
|
88
|
-
const current = editor.skills.get(
|
|
88
|
+
const current = editor.skills.get(ID11.make(id));
|
|
89
89
|
if (!current)
|
|
90
90
|
return;
|
|
91
91
|
update(current);
|
|
92
|
-
current.id =
|
|
92
|
+
current.id = ID11.make(id);
|
|
93
93
|
},
|
|
94
94
|
remove: (id) => {
|
|
95
|
-
editor.skills.delete(
|
|
95
|
+
editor.skills.delete(ID11.make(id));
|
|
96
96
|
}
|
|
97
97
|
}),
|
|
98
98
|
notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return Service69.of({
|
|
101
101
|
transform: state.transform,
|
|
102
102
|
reload: state.reload,
|
|
103
103
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -108,10 +108,10 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
110
|
}));
|
|
111
|
-
var
|
|
112
|
-
service:
|
|
111
|
+
var node72 = makeLocationNode({
|
|
112
|
+
service: Service69,
|
|
113
113
|
layer,
|
|
114
114
|
deps: [node85]
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
117
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info26, ID11, Name2, available2, toModelOutput3, prepare3, Service69, node72, exports_skill5, Event18 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./file-access-
|
|
3
|
+
Service51
|
|
4
|
+
} from "./file-access-vpgyrhve.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./file-access-
|
|
6
|
+
Service53
|
|
7
|
+
} from "./file-access-s6jatava.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./file-access-qsdy395h.js";
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
} from "./file-access-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ConfigShellPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_shell = {};
|
|
17
|
+
__export(exports_shell, {
|
|
18
|
+
ConfigShellPlugin: () => exports_shell,
|
|
19
|
+
Plugin: () => Plugin10
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin10 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service51;
|
|
27
|
+
const shell = yield* Service53;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin29 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin10, exports_shell };
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
Service78,
|
|
13
13
|
node82
|
|
14
|
-
} from "./file-access-
|
|
14
|
+
} from "./file-access-t9kha2ca.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
17
|
} from "./file-access-rdw6cm16.js";
|
|
@@ -22,30 +22,30 @@ import {
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
|
+
ID: () => ID4,
|
|
27
|
+
Service: () => Service48,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node51,
|
|
30
|
+
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID4 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service48 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
const git = yield* Service80;
|
|
51
51
|
const global = yield* Global.Service;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID4.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service48.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node51 = makeLocationNode({
|
|
144
|
+
service: Service48,
|
|
145
145
|
layer,
|
|
146
146
|
deps: [FSUtil.node, node84, Global.node, node82]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service48, Service48.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service44, Service44.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error3({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID4, Error3, Service48, node51, noopLayer3, exports_snapshot2 };
|