@opencode/core 0.0.0-dev-19659 → 0.0.0-dev-19661
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 +68 -68
- package/dist/aisdk-native.js +70 -70
- package/dist/aisdk.js +75 -75
- package/dist/app.js +7 -7
- package/dist/bus.js +57 -57
- package/dist/chunks/{aisdk-native-k51e4aw5.js → aisdk-native-023zadcs.js} +26 -26
- package/dist/chunks/{aisdk-native-g2wezmb8.js → aisdk-native-05r0pd4k.js} +22 -22
- package/dist/chunks/{aisdk-native-808kc461.js → aisdk-native-0cmdsdny.js} +4 -4
- package/dist/chunks/{aisdk-native-t550f9t1.js → aisdk-native-0gdmqesm.js} +3 -3
- package/dist/chunks/{aisdk-native-wje5afyb.js → aisdk-native-0n0zwxbt.js} +13 -13
- package/dist/chunks/{aisdk-native-m9rcy9e9.js → aisdk-native-0yxn2y41.js} +22 -22
- package/dist/chunks/{aisdk-native-fgxf6epx.js → aisdk-native-17ev268x.js} +4 -4
- package/dist/chunks/{aisdk-native-af9v6wdb.js → aisdk-native-182gb95e.js} +21 -21
- package/dist/chunks/{aisdk-native-73tb2d7t.js → aisdk-native-1bbkgx8g.js} +2 -2
- package/dist/chunks/{aisdk-native-yy5xejng.js → aisdk-native-1n2wahs4.js} +34 -34
- package/dist/chunks/{aisdk-native-451pjvrk.js → aisdk-native-1sfz7hzv.js} +10 -10
- package/dist/chunks/{aisdk-native-56gdpj1q.js → aisdk-native-1ygqh575.js} +7 -7
- package/dist/chunks/{aisdk-native-0hxaqekr.js → aisdk-native-2379zrkh.js} +16 -16
- package/dist/chunks/{aisdk-native-nfgpg7sz.js → aisdk-native-238t0ktd.js} +7 -7
- package/dist/chunks/{aisdk-native-6h73sxmp.js → aisdk-native-2402vzrj.js} +4 -4
- package/dist/chunks/{aisdk-native-xk747vep.js → aisdk-native-24dd53tp.js} +7 -7
- package/dist/chunks/{aisdk-native-qyknhhpm.js → aisdk-native-254jv3j6.js} +30 -30
- package/dist/chunks/{aisdk-native-nt0hfq1t.js → aisdk-native-297pfj8a.js} +19 -19
- package/dist/chunks/{aisdk-native-erpj0ymn.js → aisdk-native-2nsfm9h9.js} +12 -12
- package/dist/chunks/{aisdk-native-ejzsabnb.js → aisdk-native-2nzzx6r4.js} +22 -22
- package/dist/chunks/{aisdk-native-hd29hty9.js → aisdk-native-2qbt9ft8.js} +7 -7
- package/dist/chunks/{aisdk-native-hyv2nsj8.js → aisdk-native-2rnv70v8.js} +47 -47
- package/dist/chunks/{aisdk-native-kx9pe8v3.js → aisdk-native-344v8r7k.js} +22 -22
- package/dist/chunks/{aisdk-native-yv8wa7ky.js → aisdk-native-347x7wat.js} +36 -36
- package/dist/chunks/{aisdk-native-2f0bjgcj.js → aisdk-native-37s12vcn.js} +3 -3
- package/dist/chunks/{aisdk-native-2x2s87dx.js → aisdk-native-3ge5fqnw.js} +8 -8
- package/dist/chunks/{aisdk-native-wa0ja8bs.js → aisdk-native-3jbc3g36.js} +9 -9
- package/dist/chunks/{aisdk-native-1m0ke9tc.js → aisdk-native-3s810fg1.js} +7 -7
- package/dist/chunks/{aisdk-native-4w5f3qm5.js → aisdk-native-428ep8fh.js} +7 -7
- package/dist/chunks/{aisdk-native-67cjjfz3.js → aisdk-native-434kh90e.js} +20 -20
- package/dist/chunks/{aisdk-native-h6r3nrb9.js → aisdk-native-4dgbcxzg.js} +3 -3
- package/dist/chunks/{aisdk-native-y9ag30cx.js → aisdk-native-4f5m37fg.js} +7 -7
- package/dist/chunks/{aisdk-native-p0dy5qgw.js → aisdk-native-4kqw78yy.js} +177 -175
- package/dist/chunks/{aisdk-native-abbd0srp.js → aisdk-native-4rega36x.js} +30 -30
- package/dist/chunks/{aisdk-native-3kbz71ch.js → aisdk-native-556432ga.js} +3 -3
- package/dist/chunks/{aisdk-native-6x0h2hvg.js → aisdk-native-57ez7d0k.js} +7 -7
- package/dist/chunks/{aisdk-native-ycwrzegc.js → aisdk-native-5c90fea2.js} +3 -3
- package/dist/chunks/{aisdk-native-j4dhk6n6.js → aisdk-native-5cytww3c.js} +16 -16
- package/dist/chunks/{aisdk-native-wbt9zsn3.js → aisdk-native-5e1pzs32.js} +7 -7
- package/dist/chunks/{aisdk-native-3jsa4rg6.js → aisdk-native-5fq5rnmr.js} +16 -16
- package/dist/chunks/{aisdk-native-9kmbd9mt.js → aisdk-native-5frpvc34.js} +1 -1
- package/dist/chunks/{aisdk-native-7jt1dbyr.js → aisdk-native-5g2yzyfh.js} +14 -14
- package/dist/chunks/{aisdk-native-e3qxr5gk.js → aisdk-native-5qd3pb7m.js} +2 -2
- package/dist/chunks/{aisdk-native-ehb2gjf8.js → aisdk-native-5smky6em.js} +11 -11
- package/dist/chunks/{aisdk-native-rgax8w17.js → aisdk-native-5tvsfswc.js} +45 -45
- package/dist/chunks/{aisdk-native-3cx7b8c9.js → aisdk-native-69f01smw.js} +25 -25
- package/dist/chunks/{aisdk-native-s7z13rzp.js → aisdk-native-6k39b1y0.js} +17 -17
- package/dist/chunks/{aisdk-native-wse8x4gb.js → aisdk-native-6mbb5s1t.js} +13 -13
- package/dist/chunks/{aisdk-native-nr3rnpny.js → aisdk-native-6nnym848.js} +10 -10
- package/dist/chunks/{aisdk-native-qdsfqex4.js → aisdk-native-6wqj81eb.js} +15 -15
- package/dist/chunks/{aisdk-native-c0ff335f.js → aisdk-native-6yyyp1at.js} +17 -17
- package/dist/chunks/{aisdk-native-60m4dpxp.js → aisdk-native-706cadxd.js} +14 -14
- package/dist/chunks/{aisdk-native-24xf3npk.js → aisdk-native-70yndaw4.js} +6 -6
- package/dist/chunks/{aisdk-native-8f6haeyf.js → aisdk-native-71anqpyy.js} +26 -26
- package/dist/chunks/{aisdk-native-rdbxvgxv.js → aisdk-native-73wr5j5n.js} +9 -9
- package/dist/chunks/{aisdk-native-7nv2t5e7.js → aisdk-native-74v01gcw.js} +22 -22
- package/dist/chunks/{aisdk-native-wpfw97x8.js → aisdk-native-77gdyk7k.js} +12 -12
- package/dist/chunks/{aisdk-native-nshkq49p.js → aisdk-native-7d579zsz.js} +48 -48
- package/dist/chunks/{aisdk-native-96waysmg.js → aisdk-native-82wqn8fy.js} +11 -11
- package/dist/chunks/{aisdk-native-70kjzvqh.js → aisdk-native-864rq62z.js} +13 -13
- package/dist/chunks/{aisdk-native-baxt3tw0.js → aisdk-native-86tgy61v.js} +26 -26
- package/dist/chunks/{aisdk-native-7bq24f4k.js → aisdk-native-86wxc0s5.js} +13 -13
- package/dist/chunks/{aisdk-native-8v8qk05p.js → aisdk-native-89f3rvt3.js} +1 -1
- package/dist/chunks/{aisdk-native-kmb9ebe8.js → aisdk-native-8b9a1vnb.js} +30 -30
- package/dist/chunks/aisdk-native-8mc8rrk5.js +478 -0
- package/dist/chunks/{aisdk-native-ctzssw83.js → aisdk-native-8mfdap3f.js} +4 -4
- package/dist/chunks/{aisdk-native-0dsywrch.js → aisdk-native-8n473qvc.js} +19 -19
- package/dist/chunks/{aisdk-native-mf9m2v67.js → aisdk-native-8q7cq0y1.js} +2 -2
- package/dist/chunks/{aisdk-native-aydjvc15.js → aisdk-native-9a44ktbt.js} +17 -17
- package/dist/chunks/{aisdk-native-v2cfd9mg.js → aisdk-native-9cn34y8n.js} +16 -16
- package/dist/chunks/{aisdk-native-p37cw4rj.js → aisdk-native-9hn6k4tm.js} +7 -7
- package/dist/chunks/aisdk-native-9tp0xrnc.js +247 -0
- package/dist/chunks/{aisdk-native-kq0bb674.js → aisdk-native-9v9a7nyh.js} +18 -18
- package/dist/chunks/{aisdk-native-thz469sg.js → aisdk-native-9wkb9m04.js} +8 -8
- package/dist/chunks/{aisdk-native-6t298p2h.js → aisdk-native-ab8cnxkj.js} +8 -8
- package/dist/chunks/{aisdk-native-9efavmn1.js → aisdk-native-ahkm7jtq.js} +9 -9
- package/dist/chunks/{aisdk-native-888n06p8.js → aisdk-native-avcdwqa3.js} +7 -7
- package/dist/chunks/{aisdk-native-2gns7qzp.js → aisdk-native-b3fjr4a5.js} +9 -9
- package/dist/chunks/{aisdk-native-wna5sgbh.js → aisdk-native-bghmh87t.js} +19 -19
- package/dist/chunks/{aisdk-native-2cdbads6.js → aisdk-native-bje848qr.js} +6 -6
- package/dist/chunks/{aisdk-native-v30t9zn6.js → aisdk-native-bn6tr5ps.js} +6 -6
- package/dist/chunks/{aisdk-native-gp08z3nw.js → aisdk-native-bn7wsp1y.js} +4 -4
- package/dist/chunks/{aisdk-native-tddjggae.js → aisdk-native-bn8xvxc9.js} +15 -15
- package/dist/chunks/{aisdk-native-bpvf94qg.js → aisdk-native-bqcmh1d5.js} +25 -25
- package/dist/chunks/{aisdk-native-r3jjmetn.js → aisdk-native-bwq9mt9g.js} +6 -6
- package/dist/chunks/{aisdk-native-gwasxxyt.js → aisdk-native-c1a6g7fn.js} +26 -26
- package/dist/chunks/{aisdk-native-ae7djn2q.js → aisdk-native-c24azjc2.js} +12 -12
- package/dist/chunks/{aisdk-native-6jjmcewh.js → aisdk-native-c3g32xz6.js} +22 -22
- package/dist/chunks/{aisdk-native-jz717kwe.js → aisdk-native-c3tze8y7.js} +21 -21
- package/dist/chunks/{aisdk-native-hn0kr74v.js → aisdk-native-ccq8grnq.js} +25 -25
- package/dist/chunks/{aisdk-native-7y4g93zh.js → aisdk-native-cft9s2sz.js} +10 -10
- package/dist/chunks/{aisdk-native-gwqc9hw0.js → aisdk-native-crgeygmk.js} +19 -19
- package/dist/chunks/{aisdk-native-16zmxd5d.js → aisdk-native-czwyyt0b.js} +7 -7
- package/dist/chunks/{aisdk-native-4c2trx4e.js → aisdk-native-d0szqk1h.js} +3 -3
- package/dist/chunks/{aisdk-native-v23ngtav.js → aisdk-native-d295vwqg.js} +81 -81
- package/dist/chunks/{aisdk-native-7m61546t.js → aisdk-native-d70tcw3y.js} +8 -8
- package/dist/chunks/{aisdk-native-5nygbceh.js → aisdk-native-dbgsewpx.js} +7 -7
- package/dist/chunks/{aisdk-native-4fnbdv1x.js → aisdk-native-dfyaxeae.js} +1 -1
- package/dist/chunks/{aisdk-native-k074j3w6.js → aisdk-native-dm4njmma.js} +39 -39
- package/dist/chunks/{aisdk-native-359m9qke.js → aisdk-native-dn2z7ew9.js} +21 -21
- package/dist/chunks/{aisdk-native-y71avatq.js → aisdk-native-dpkg50ah.js} +3 -3
- package/dist/chunks/{aisdk-native-hx2g52bz.js → aisdk-native-dskzymh2.js} +4 -4
- package/dist/chunks/{aisdk-native-hcz3zddy.js → aisdk-native-e6hmchc5.js} +3 -3
- package/dist/chunks/{aisdk-native-byvpkk98.js → aisdk-native-edevpfks.js} +9 -9
- package/dist/chunks/{aisdk-native-9m87xy8c.js → aisdk-native-et90nqeb.js} +6 -6
- package/dist/chunks/{aisdk-native-0hna0z05.js → aisdk-native-evavga5b.js} +83 -83
- package/dist/chunks/{aisdk-native-m3sg1ew5.js → aisdk-native-ewc7fmt2.js} +6 -6
- package/dist/chunks/{aisdk-native-vfmr2m2j.js → aisdk-native-eyy1x1gz.js} +15 -15
- package/dist/chunks/{aisdk-native-4hv83k1t.js → aisdk-native-eztanwtt.js} +22 -22
- package/dist/chunks/{aisdk-native-yp2x3t23.js → aisdk-native-f2n192rq.js} +3 -3
- package/dist/chunks/{aisdk-native-pkkve4e3.js → aisdk-native-f31jkx3n.js} +5 -5
- package/dist/chunks/{aisdk-native-q13p9eja.js → aisdk-native-fakqx81w.js} +7 -7
- package/dist/chunks/{aisdk-native-b27vhd2z.js → aisdk-native-fdv30zvt.js} +6 -6
- package/dist/chunks/{aisdk-native-eswk50af.js → aisdk-native-fp088skr.js} +7 -7
- package/dist/chunks/{aisdk-native-zvfby6ng.js → aisdk-native-fveggg5b.js} +8 -8
- package/dist/chunks/{aisdk-native-nf5c5hdx.js → aisdk-native-g03q4hs5.js} +21 -21
- package/dist/chunks/{aisdk-native-axmvebxj.js → aisdk-native-g190xswt.js} +20 -20
- package/dist/chunks/{aisdk-native-agas1js3.js → aisdk-native-g29ecd2d.js} +5 -5
- package/dist/chunks/{aisdk-native-fc8gtdz2.js → aisdk-native-g6r9s5ra.js} +1 -1
- package/dist/chunks/{aisdk-native-r330a857.js → aisdk-native-ghb1r91n.js} +18 -15
- package/dist/chunks/{aisdk-native-79qaa2kf.js → aisdk-native-gjwgx2c5.js} +7 -7
- package/dist/chunks/aisdk-native-grr7jzxk.js +26 -0
- package/dist/chunks/{aisdk-native-xj33pkwb.js → aisdk-native-gx4b9ghh.js} +24 -24
- package/dist/chunks/{aisdk-native-v4wfwvtq.js → aisdk-native-gxr1dr9e.js} +6 -6
- package/dist/chunks/{aisdk-native-hy20qw0x.js → aisdk-native-gxv64e4w.js} +12 -12
- package/dist/chunks/{aisdk-native-xrjwjpzr.js → aisdk-native-gxv7kf4z.js} +1 -1
- package/dist/chunks/{aisdk-native-ydyy4a51.js → aisdk-native-gym91fzb.js} +7 -7
- package/dist/chunks/{aisdk-native-jp1wq4j5.js → aisdk-native-h6304w3t.js} +4 -4
- package/dist/chunks/{aisdk-native-qskfz9c0.js → aisdk-native-hcveegta.js} +32 -32
- package/dist/chunks/{aisdk-native-f96rndfk.js → aisdk-native-he5mgen4.js} +8 -8
- package/dist/chunks/{aisdk-native-m2e5j58z.js → aisdk-native-hffbynf2.js} +14 -14
- package/dist/chunks/{aisdk-native-e2hdwa5k.js → aisdk-native-hgsgykfd.js} +13 -13
- package/dist/chunks/{aisdk-native-dh7xq6zm.js → aisdk-native-hryj0jt1.js} +3 -3
- package/dist/chunks/{aisdk-native-ahvgrgdh.js → aisdk-native-j161s2v3.js} +17 -17
- package/dist/chunks/{aisdk-native-an7cqtb7.js → aisdk-native-j83byb14.js} +3 -3
- package/dist/chunks/{aisdk-native-23sxaqwc.js → aisdk-native-j8zzr2am.js} +3 -3
- package/dist/chunks/{aisdk-native-9yccxaet.js → aisdk-native-jmyhth9t.js} +50 -50
- package/dist/chunks/{aisdk-native-z45k2q9b.js → aisdk-native-jx560d4n.js} +12 -12
- package/dist/chunks/{aisdk-native-x01x7vs9.js → aisdk-native-k05gtj6k.js} +2 -2
- package/dist/chunks/{aisdk-native-b2da4m4w.js → aisdk-native-k5721584.js} +3 -3
- package/dist/chunks/{aisdk-native-748zbz0t.js → aisdk-native-kaqsmsnp.js} +40 -40
- package/dist/chunks/{aisdk-native-wasmnp9g.js → aisdk-native-kb2qx9e9.js} +2 -2
- package/dist/chunks/{aisdk-native-ywhsgpfh.js → aisdk-native-kbpq3c4q.js} +22 -22
- package/dist/chunks/{aisdk-native-e2335xen.js → aisdk-native-kdjz9kg3.js} +8 -8
- package/dist/chunks/{aisdk-native-6rtfy69a.js → aisdk-native-kg4jxx0b.js} +7 -7
- package/dist/chunks/{aisdk-native-0dxrdgf8.js → aisdk-native-kwhemyxj.js} +6 -6
- package/dist/chunks/{aisdk-native-n11baakf.js → aisdk-native-kz12zc3c.js} +10 -10
- package/dist/chunks/{aisdk-native-n0kdxk8f.js → aisdk-native-kz3knr4j.js} +10 -10
- package/dist/chunks/{aisdk-native-qe4vt3fh.js → aisdk-native-m09t7skk.js} +4 -4
- package/dist/chunks/{aisdk-native-ak2as40b.js → aisdk-native-m2m0mav4.js} +12 -12
- package/dist/chunks/{aisdk-native-rjt1w22v.js → aisdk-native-m3ta9d82.js} +4 -4
- package/dist/chunks/{aisdk-native-hh9m7f5s.js → aisdk-native-m7g9ty3v.js} +31 -31
- package/dist/chunks/{aisdk-native-331hptqa.js → aisdk-native-m7w5bw68.js} +1 -1
- package/dist/chunks/{aisdk-native-pqkjy9pg.js → aisdk-native-m83dfgrj.js} +25 -25
- package/dist/chunks/{aisdk-native-zgfg11tk.js → aisdk-native-m9h2htwt.js} +43 -43
- package/dist/chunks/{aisdk-native-qbxewh6p.js → aisdk-native-md88ay8y.js} +39 -39
- package/dist/chunks/{aisdk-native-t63nzm9r.js → aisdk-native-mq22jzzd.js} +29 -29
- package/dist/chunks/{aisdk-native-88sz8qcd.js → aisdk-native-msq0jde0.js} +3 -3
- package/dist/chunks/{aisdk-native-pbqf8yzy.js → aisdk-native-mzjqrkme.js} +4 -4
- package/dist/chunks/{aisdk-native-f6n9ymec.js → aisdk-native-n6fvx0v7.js} +23 -23
- package/dist/chunks/{aisdk-native-rn5qsgpz.js → aisdk-native-nf10vtm1.js} +1 -1
- package/dist/chunks/{aisdk-native-xf3xt1ha.js → aisdk-native-nntat7jz.js} +2 -2
- package/dist/chunks/{aisdk-native-geznyajv.js → aisdk-native-pb76g505.js} +23 -23
- package/dist/chunks/{aisdk-native-1wabnfeb.js → aisdk-native-pbbas732.js} +3 -3
- package/dist/chunks/{aisdk-native-7bc5tj51.js → aisdk-native-pf5z211q.js} +14 -14
- package/dist/chunks/{aisdk-native-7eexgf6y.js → aisdk-native-pfm0mfps.js} +11 -11
- package/dist/chunks/{aisdk-native-5vzxx5bm.js → aisdk-native-pp8ahakx.js} +16 -16
- package/dist/chunks/{aisdk-native-scq4khx8.js → aisdk-native-pstg3rfm.js} +1 -1
- package/dist/chunks/{aisdk-native-0wafeyhj.js → aisdk-native-q12gc53x.js} +4 -4
- package/dist/chunks/{aisdk-native-ht9hrq0m.js → aisdk-native-q8cmhkcw.js} +21 -21
- package/dist/chunks/{aisdk-native-msfpjnen.js → aisdk-native-qaz9f4ck.js} +21 -21
- package/dist/chunks/{aisdk-native-jcefac6b.js → aisdk-native-qbfny5ar.js} +44 -44
- package/dist/chunks/{aisdk-native-2k8khapm.js → aisdk-native-qgn6gcr1.js} +4 -4
- package/dist/chunks/{aisdk-native-86nf6q4d.js → aisdk-native-qhm3qz41.js} +16 -16
- package/dist/chunks/{aisdk-native-jnzjsk2z.js → aisdk-native-qnqvzbpj.js} +33 -33
- package/dist/chunks/{aisdk-native-9fz2jzqv.js → aisdk-native-r04jyq6d.js} +16 -16
- package/dist/chunks/{aisdk-native-kp8q1t60.js → aisdk-native-r9w3djhf.js} +8 -8
- package/dist/chunks/{aisdk-native-0gj0evhw.js → aisdk-native-rpg6kbz8.js} +9 -9
- package/dist/chunks/{aisdk-native-x16ewxve.js → aisdk-native-rqq8xd54.js} +15 -15
- package/dist/chunks/{aisdk-native-j5x2gm5w.js → aisdk-native-rsjan7rq.js} +3 -3
- package/dist/chunks/{aisdk-native-e248x3jn.js → aisdk-native-rtd6da40.js} +8 -8
- package/dist/chunks/{aisdk-native-mp6d0dty.js → aisdk-native-rzs3gq0x.js} +7 -7
- package/dist/chunks/{aisdk-native-nxhqveyz.js → aisdk-native-s8zy8myc.js} +3 -3
- package/dist/chunks/{aisdk-native-ppegfhjd.js → aisdk-native-sqr3fkms.js} +7 -7
- package/dist/chunks/{aisdk-native-scavptnn.js → aisdk-native-szxaz7kb.js} +19 -19
- package/dist/chunks/{aisdk-native-sxzvkvgj.js → aisdk-native-tcay1cqt.js} +5 -5
- package/dist/chunks/{aisdk-native-jjke4x7z.js → aisdk-native-tm9sbs98.js} +12 -12
- package/dist/chunks/{aisdk-native-nhhcxfy5.js → aisdk-native-tnmp8ffe.js} +23 -23
- package/dist/chunks/{aisdk-native-v7zr17ek.js → aisdk-native-tz3y59f8.js} +3 -3
- package/dist/chunks/{aisdk-native-1x11rq2a.js → aisdk-native-v1faaxn9.js} +4 -4
- package/dist/chunks/{aisdk-native-b1r5pdk4.js → aisdk-native-v1kmkjnd.js} +17 -17
- package/dist/chunks/{aisdk-native-wfszgscg.js → aisdk-native-vfn2zzmw.js} +26 -26
- package/dist/chunks/{aisdk-native-bajakh74.js → aisdk-native-vkxpz7g2.js} +1 -1
- package/dist/chunks/{aisdk-native-50p7p4wm.js → aisdk-native-vnbtwqd9.js} +5 -5
- package/dist/chunks/{aisdk-native-jkv0zw5y.js → aisdk-native-w3sncgk8.js} +24 -24
- package/dist/chunks/{aisdk-native-23pqda6t.js → aisdk-native-w4arg62q.js} +3 -3
- package/dist/chunks/{aisdk-native-e3ayzqwh.js → aisdk-native-w4axh9wz.js} +5 -5
- package/dist/chunks/{aisdk-native-wbghmt8t.js → aisdk-native-we30fdbd.js} +19 -19
- package/dist/chunks/{aisdk-native-xdce8axh.js → aisdk-native-wktpt5qp.js} +5 -5
- package/dist/chunks/{aisdk-native-bjn91642.js → aisdk-native-x0511brf.js} +3 -3
- package/dist/chunks/{aisdk-native-vdd4sn1x.js → aisdk-native-x90pca9b.js} +6 -6
- package/dist/chunks/{aisdk-native-9q3gb9j3.js → aisdk-native-xa98q82c.js} +12 -12
- package/dist/chunks/{aisdk-native-3mhvwx4s.js → aisdk-native-xak7szdq.js} +9 -9
- package/dist/chunks/{aisdk-native-hrywwc1n.js → aisdk-native-xk8kmkj3.js} +12 -12
- package/dist/chunks/{aisdk-native-n4xd5mbw.js → aisdk-native-xs2jpm2x.js} +7 -7
- package/dist/chunks/{aisdk-native-z84mk0fk.js → aisdk-native-yafv6bxz.js} +13 -13
- package/dist/chunks/{aisdk-native-f8pwhm1g.js → aisdk-native-ym5ee435.js} +25 -25
- package/dist/chunks/{aisdk-native-zctbk1s6.js → aisdk-native-ynk1nd5w.js} +36 -36
- package/dist/chunks/{aisdk-native-s4enseaf.js → aisdk-native-yrznvahk.js} +1 -1
- package/dist/chunks/{aisdk-native-4xr2831z.js → aisdk-native-z2x1npkm.js} +8 -8
- package/dist/chunks/{aisdk-native-hh7agjhc.js → aisdk-native-z4305a57.js} +34 -34
- package/dist/chunks/{aisdk-native-6z9sgxqn.js → aisdk-native-z4zm4h76.js} +39 -39
- package/dist/chunks/{aisdk-native-e1pmx1t0.js → aisdk-native-z63k4sg0.js} +13 -13
- package/dist/chunks/{aisdk-native-29x78va6.js → aisdk-native-z63w68vq.js} +4 -4
- package/dist/chunks/{aisdk-native-h0h5wsmg.js → aisdk-native-zdhkzmh8.js} +15 -15
- package/dist/chunks/{aisdk-native-tdbz4xj3.js → aisdk-native-zf7xdvsm.js} +4 -4
- package/dist/chunks/{aisdk-native-h610k8s8.js → aisdk-native-zjcf0rqn.js} +14 -14
- package/dist/chunks/{aisdk-native-28e4y2hv.js → aisdk-native-zjym0m08.js} +10 -10
- package/dist/chunks/{aisdk-native-pfzt5ex6.js → aisdk-native-zrt42jaw.js} +5 -5
- package/dist/chunks/{aisdk-native-34q1q4g3.js → aisdk-native-ztctrtvz.js} +1 -1
- package/dist/chunks/{aisdk-native-0f0361zd.js → aisdk-native-ztm0qtrx.js} +37 -37
- package/dist/chunks/{aisdk-native-2vs2nh1n.js → aisdk-native-zvt5dnpc.js} +3 -3
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +72 -72
- package/dist/config/discovery.js +63 -63
- package/dist/config/normalize.js +85 -85
- package/dist/config/plugin/agent.js +100 -100
- package/dist/config/plugin/command.js +181 -181
- package/dist/config/plugin/compaction.js +127 -127
- package/dist/config/plugin/compatibility.js +116 -116
- package/dist/config/plugin/formatter.js +99 -99
- package/dist/config/plugin/image.js +98 -98
- package/dist/config/plugin/instruction.js +70 -70
- package/dist/config/plugin/location-watcher.js +100 -100
- package/dist/config/plugin/mcp.js +106 -106
- package/dist/config/plugin/policy.js +98 -98
- package/dist/config/plugin/provider.js +98 -98
- package/dist/config/plugin/reference.js +100 -100
- package/dist/config/plugin/shell.js +98 -98
- package/dist/config/plugin/skill-file.js +78 -78
- package/dist/config/plugin/skill.js +119 -119
- package/dist/config/plugin/snapshot.js +98 -98
- package/dist/config/plugin/source.js +101 -101
- package/dist/config/plugin/tool-output.js +100 -100
- package/dist/config/plugin/websearch.js +97 -97
- package/dist/config/plugin/worktree.js +100 -100
- package/dist/config/variable.js +2 -2
- package/dist/config.js +104 -104
- package/dist/credential.js +69 -69
- package/dist/database/database.js +55 -55
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- 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 +11 -11
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +233 -233
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +71 -71
- package/dist/environment/index.js +73 -73
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +81 -81
- package/dist/file-mutation.js +72 -72
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +194 -194
- package/dist/filesystem/search.js +73 -73
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +78 -78
- package/dist/form.js +70 -70
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +68 -68
- package/dist/generate.js +84 -84
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +80 -80
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +311 -311
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +68 -68
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +70 -70
- package/dist/job.js +63 -63
- package/dist/kv.js +60 -60
- package/dist/location-activity.js +54 -54
- package/dist/location-mutation.js +31 -31
- package/dist/location-service-map.js +67 -67
- package/dist/location-services.js +309 -309
- package/dist/location.js +68 -68
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +82 -82
- package/dist/mcp/instructions.js +100 -100
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +68 -68
- package/dist/modal/models.js +80 -80
- package/dist/model-resolver.js +79 -79
- package/dist/model.js +81 -81
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +64 -64
- package/dist/permission.js +90 -90
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +60 -60
- package/dist/plugin/agent.js +81 -81
- package/dist/plugin/command.js +79 -79
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +185 -185
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +288 -288
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +79 -79
- package/dist/plugin/provider/amazon-bedrock.js +71 -71
- package/dist/plugin/provider/azure.js +97 -97
- package/dist/plugin/provider/cloudflare-ai-gateway.js +96 -96
- package/dist/plugin/provider/cloudflare-workers-ai.js +96 -96
- package/dist/plugin/provider/configured.js +95 -95
- package/dist/plugin/provider/digitalocean.js +73 -73
- package/dist/plugin/provider/github-copilot.js +74 -74
- package/dist/plugin/provider/gitlab.js +72 -72
- package/dist/plugin/provider/google-vertex.js +71 -71
- package/dist/plugin/provider/llmgateway.js +63 -63
- package/dist/plugin/provider/lmstudio.js +96 -96
- package/dist/plugin/provider/modal.js +73 -73
- package/dist/plugin/provider/ollama.js +96 -96
- package/dist/plugin/provider/openai.js +72 -72
- package/dist/plugin/provider/opencode.js +73 -73
- package/dist/plugin/provider/openrouter.js +72 -72
- package/dist/plugin/provider/poe.js +63 -63
- package/dist/plugin/provider/prompt-cache-key.js +71 -71
- package/dist/plugin/provider/sap-ai-core.js +71 -71
- package/dist/plugin/provider/snowflake-cortex.js +97 -97
- package/dist/plugin/provider/vercel.js +71 -71
- package/dist/plugin/provider/vllm.js +96 -96
- package/dist/plugin/provider/xai.js +72 -72
- package/dist/plugin/provider.js +129 -129
- package/dist/plugin/sdk.js +64 -64
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +117 -117
- package/dist/plugin/supervisor.js +302 -302
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +67 -67
- package/dist/plugin/vcs/hg.js +67 -67
- package/dist/plugin/warming.js +97 -97
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- 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 +192 -192
- package/dist/project/schema.js +7 -7
- package/dist/project.js +71 -71
- package/dist/provider.js +78 -78
- package/dist/pty.js +73 -73
- package/dist/reference/instructions.js +72 -72
- package/dist/reference.js +74 -74
- package/dist/repository-cache.js +65 -65
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +74 -74
- package/dist/rpc.js +67 -67
- package/dist/session/command.js +61 -61
- package/dist/session/compaction.js +100 -100
- package/dist/session/context.js +124 -124
- package/dist/session/diff.js +67 -67
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +119 -119
- package/dist/session/execution.js +105 -105
- package/dist/session/generate.js +125 -125
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +69 -69
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +61 -61
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +106 -106
- package/dist/session/projector.js +66 -66
- package/dist/session/prompt.js +81 -81
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +69 -69
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +79 -79
- package/dist/session/runner/retry.js +91 -91
- package/dist/session/runner/step.js +99 -99
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +143 -143
- package/dist/session/shell.js +111 -111
- package/dist/session/skill.js +80 -80
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +69 -69
- package/dist/session/subagent-job.js +178 -178
- package/dist/session/title.js +121 -121
- package/dist/session/to-session-error.js +88 -88
- package/dist/session/transfer.js +114 -114
- package/dist/session.js +185 -185
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +10 -10
- package/dist/shell.js +114 -114
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +84 -84
- package/dist/skill.js +87 -87
- package/dist/snapshot.js +72 -72
- package/dist/tool/mcp.js +97 -97
- package/dist/tool/plugin/edit.js +94 -94
- package/dist/tool/plugin/glob.js +98 -98
- package/dist/tool/plugin/grep.js +96 -96
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +96 -96
- package/dist/tool/plugin/question.js +78 -78
- package/dist/tool/plugin/read.js +98 -98
- package/dist/tool/plugin/shell.js +184 -184
- package/dist/tool/plugin/skill.js +90 -90
- package/dist/tool/plugin/subagent.js +187 -187
- package/dist/tool/plugin/webfetch.js +85 -85
- package/dist/tool/plugin/websearch.js +89 -89
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +72 -72
- package/dist/v1/config/permission.js +7 -7
- 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 +74 -74
- package/dist/vcs.js +68 -68
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +62 -62
- package/dist/wellknown.js +67 -67
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +69 -69
- package/dist/worktree.js +75 -75
- package/package.json +8 -8
- package/dist/chunks/aisdk-native-4144tsc8.js +0 -26
- package/dist/chunks/aisdk-native-esph3pet.js +0 -478
- package/dist/chunks/aisdk-native-vy5gba4s.js +0 -247
- /package/dist/chunks/{aisdk-native-gx8hye9g.js → aisdk-native-4vp46et4.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cfb3ja4.js → aisdk-native-94s48bjb.js} +0 -0
- /package/dist/chunks/{aisdk-native-nyvrwfsp.js → aisdk-native-98c88b32.js} +0 -0
- /package/dist/chunks/{aisdk-native-79k2e49w.js → aisdk-native-e6tgtk7f.js} +0 -0
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./aisdk-native-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./aisdk-native-
|
|
6
|
+
Service40
|
|
7
|
+
} from "./aisdk-native-kaqsmsnp.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
10
|
} from "./aisdk-native-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./aisdk-native-
|
|
12
|
+
Service76
|
|
13
|
+
} from "./aisdk-native-bghmh87t.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./aisdk-native-
|
|
15
|
+
Service47
|
|
16
|
+
} from "./aisdk-native-77gdyk7k.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./aisdk-native-
|
|
18
|
+
Service58
|
|
19
|
+
} from "./aisdk-native-2rnv70v8.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service57,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./aisdk-native-
|
|
23
|
+
} from "./aisdk-native-2379zrkh.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
notification2
|
|
29
29
|
} from "./aisdk-native-fxbjtjnd.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service50,
|
|
32
32
|
name15
|
|
33
|
-
} from "./aisdk-native-
|
|
33
|
+
} from "./aisdk-native-gxv64e4w.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./aisdk-native-
|
|
35
|
+
NotFoundError6,
|
|
36
|
+
Service36
|
|
37
|
+
} from "./aisdk-native-5tvsfswc.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./aisdk-native-
|
|
39
|
+
Service22
|
|
40
|
+
} from "./aisdk-native-d295vwqg.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./aisdk-native-
|
|
43
|
+
} from "./aisdk-native-ztctrtvz.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
46
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -49,14 +49,14 @@ import {
|
|
|
49
49
|
var exports_shell = {};
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input4,
|
|
53
|
+
Plugin: () => Plugin18,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name4
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name4 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input4 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -115,19 +115,19 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin18 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service22;
|
|
122
|
+
const jobs = yield* Service47;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
125
|
-
const access = yield*
|
|
126
|
-
const shell = yield*
|
|
127
|
-
const shellSelect = yield*
|
|
124
|
+
const environment = yield* Service76;
|
|
125
|
+
const access = yield* Service57;
|
|
126
|
+
const shell = yield* Service36;
|
|
127
|
+
const shellSelect = yield* Service50;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
130
|
-
const config = yield*
|
|
129
|
+
const permission = yield* Service58;
|
|
130
|
+
const config = yield* Service40;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
133
133
|
type: "tool",
|
|
@@ -146,7 +146,7 @@ var Plugin7 = {
|
|
|
146
146
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
147
147
|
if (parsed.commands.length > 0)
|
|
148
148
|
yield* permission.assert({
|
|
149
|
-
action:
|
|
149
|
+
action: name4,
|
|
150
150
|
resources: parsed.commands.map((command) => command.resource),
|
|
151
151
|
save: parsed.commands.map((command) => command.save),
|
|
152
152
|
sessionID: context.sessionID,
|
|
@@ -183,10 +183,10 @@ var Plugin7 = {
|
|
|
183
183
|
yield* jobs.completeBackground(info.notificationID);
|
|
184
184
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
185
185
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
186
|
-
name:
|
|
186
|
+
name: name4,
|
|
187
187
|
options: { codemode: false },
|
|
188
188
|
description: description(),
|
|
189
|
-
input:
|
|
189
|
+
input: Input4,
|
|
190
190
|
output: Output,
|
|
191
191
|
execute: (input, context) => Effect.gen(function* () {
|
|
192
192
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -205,7 +205,7 @@ var Plugin7 = {
|
|
|
205
205
|
const run = Effect.gen(function* () {
|
|
206
206
|
const result = yield* shell.result(info);
|
|
207
207
|
if (!result.capture)
|
|
208
|
-
return yield* new
|
|
208
|
+
return yield* new NotFoundError6({ id: info.id });
|
|
209
209
|
const output = output2(result);
|
|
210
210
|
return {
|
|
211
211
|
...output,
|
|
@@ -219,7 +219,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
219
219
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
220
220
|
const job = yield* jobs.start({
|
|
221
221
|
id: info.id,
|
|
222
|
-
type:
|
|
222
|
+
type: name4,
|
|
223
223
|
title: info.command,
|
|
224
224
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
225
225
|
recovery: {
|
|
@@ -249,7 +249,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
249
249
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
250
250
|
})).pipe(Effect.orDie);
|
|
251
251
|
const hook = (event) => Effect.gen(function* () {
|
|
252
|
-
const tool = event.tools[
|
|
252
|
+
const tool = event.tools[name4];
|
|
253
253
|
if (!tool)
|
|
254
254
|
return;
|
|
255
255
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -260,4 +260,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
260
260
|
})
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
export {
|
|
263
|
+
export { name4, DEFAULT_TIMEOUT_MS2, Input4, Plugin18, exports_shell };
|
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./aisdk-native-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./aisdk-native-
|
|
8
|
+
Service78
|
|
9
|
+
} from "./aisdk-native-bn8xvxc9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./aisdk-native-
|
|
11
|
+
Service76
|
|
12
|
+
} from "./aisdk-native-bghmh87t.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./aisdk-native-
|
|
15
|
+
Service74
|
|
16
|
+
} from "./aisdk-native-eyy1x1gz.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./aisdk-native-
|
|
23
|
+
} from "./aisdk-native-w3sncgk8.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./aisdk-native-
|
|
25
|
+
Service58
|
|
26
|
+
} from "./aisdk-native-2rnv70v8.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./aisdk-native-
|
|
28
|
+
Service57
|
|
29
|
+
} from "./aisdk-native-2379zrkh.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
32
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
38
|
+
Input: () => Input7,
|
|
39
|
+
Output: () => Output3,
|
|
40
|
+
Plugin: () => Plugin22,
|
|
41
|
+
name: () => name7,
|
|
42
42
|
toModelContent: () => toModelContent3
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name7 = "grep";
|
|
48
|
+
var Input7 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,7 +65,7 @@ var Input6 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
68
|
+
var Output3 = Schema.Array(Match2);
|
|
69
69
|
var toModelContent3 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
@@ -83,26 +83,26 @@ var toModelContent3 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin22 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service76;
|
|
90
|
+
const ripgrep = yield* Service74;
|
|
91
|
+
const location = yield* Service78;
|
|
92
|
+
const access = yield* Service57;
|
|
93
|
+
const permission = yield* Service58;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name7,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input7,
|
|
99
|
+
output: Output3,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name7,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -154,4 +154,4 @@ var Plugin6 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name7, Input7, Output3, toModelContent3, Plugin22, exports_grep };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info21,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info21 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -52,4 +52,4 @@ var encode2 = (provenance, replacement) => ({
|
|
|
52
52
|
var decode2 = (context) => Schema.decodeUnknownSync(messages)(context.messages);
|
|
53
53
|
var validate2 = (context) => Schema.decodeUnknownEffect(messages)(context.messages);
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { Info21, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./aisdk-native-
|
|
2
|
+
ID12
|
|
3
|
+
} from "./aisdk-native-gx4b9ghh.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
6
|
} from "./aisdk-native-hjbc5kem.js";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID12.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID12.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./aisdk-native-
|
|
4
|
+
} from "./aisdk-native-kb2qx9e9.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./aisdk-native-
|
|
6
|
+
Service78,
|
|
7
|
+
node82
|
|
8
|
+
} from "./aisdk-native-bn8xvxc9.js";
|
|
9
9
|
import {
|
|
10
10
|
ID2
|
|
11
11
|
} from "./aisdk-native-0mesazry.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service50,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./aisdk-native-
|
|
15
|
+
node52
|
|
16
|
+
} from "./aisdk-native-gxv64e4w.js";
|
|
17
17
|
import {
|
|
18
18
|
lazy2
|
|
19
19
|
} from "./aisdk-native-88xbtdfr.js";
|
|
@@ -25,19 +25,19 @@ import {
|
|
|
25
25
|
var exports_pty = {};
|
|
26
26
|
__export(exports_pty, {
|
|
27
27
|
CreateInput: () => CreateInput2,
|
|
28
|
-
Event: () =>
|
|
28
|
+
Event: () => Event2,
|
|
29
29
|
ExitedError: () => ExitedError2,
|
|
30
30
|
Info: () => Info2,
|
|
31
|
-
NotFoundError: () =>
|
|
31
|
+
NotFoundError: () => NotFoundError2,
|
|
32
32
|
Pty: () => exports_pty,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service13,
|
|
34
34
|
UpdateInput: () => UpdateInput2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node15
|
|
36
36
|
});
|
|
37
37
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
38
38
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
39
39
|
import { Pty } from "@opencode/schema/pty";
|
|
40
|
-
import { Event as
|
|
40
|
+
import { Event as Event2 } from "@opencode/schema/pty";
|
|
41
41
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
42
42
|
var EXITED_LIMIT = 25;
|
|
43
43
|
var pty = lazy2(() => import("#pty"));
|
|
@@ -45,7 +45,7 @@ var Info2 = Pty.Info;
|
|
|
45
45
|
var CreateInput2 = Pty.CreateInput;
|
|
46
46
|
var UpdateInput2 = Pty.UpdateInput;
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
49
49
|
ptyID: ID2
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
@@ -55,12 +55,12 @@ class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class Service13 extends Context.Service()("@opencode/Pty") {
|
|
59
59
|
}
|
|
60
|
-
var layer = Layer.effect(
|
|
60
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
61
61
|
const bus = yield* Service81;
|
|
62
|
-
const location = yield*
|
|
63
|
-
const shell = yield*
|
|
62
|
+
const location = yield* Service78;
|
|
63
|
+
const shell = yield* Service50;
|
|
64
64
|
const context = yield* Effect.context();
|
|
65
65
|
const runFork = Effect.runForkWith(context);
|
|
66
66
|
const sessions = new Map;
|
|
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
97
97
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
98
98
|
const session = sessions.get(id);
|
|
99
99
|
if (!session)
|
|
100
|
-
return yield* new
|
|
100
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
101
101
|
return session;
|
|
102
102
|
});
|
|
103
103
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -268,12 +268,12 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
});
|
|
271
|
-
return
|
|
271
|
+
return Service13.of({ list, get, create, update, remove, write, attach });
|
|
272
272
|
}));
|
|
273
|
-
var
|
|
274
|
-
service:
|
|
273
|
+
var node15 = makeLocationNode({
|
|
274
|
+
service: Service13,
|
|
275
275
|
layer,
|
|
276
|
-
deps: [node85,
|
|
276
|
+
deps: [node85, node82, node52]
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
export { Info2, CreateInput2, UpdateInput2,
|
|
279
|
+
export { Info2, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service13, node15, exports_pty, Event2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./aisdk-native-
|
|
3
|
+
} from "./aisdk-native-zrt42jaw.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./aisdk-native-
|
|
6
|
+
} from "./aisdk-native-m7w5bw68.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./aisdk-native-
|
|
2
|
+
Service73
|
|
3
|
+
} from "./aisdk-native-eztanwtt.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./aisdk-native-
|
|
5
|
+
Service58
|
|
6
|
+
} from "./aisdk-native-2rnv70v8.js";
|
|
7
7
|
import {
|
|
8
8
|
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./aisdk-native-
|
|
13
|
+
Service21
|
|
14
|
+
} from "./aisdk-native-5fq5rnmr.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -19,48 +19,48 @@ import {
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch = {};
|
|
21
21
|
__export(exports_websearch, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input6,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin21,
|
|
25
25
|
WebSearchTool: () => exports_websearch,
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
description: () => description4,
|
|
27
|
+
name: () => name6
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name6 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description4 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input6 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
46
|
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin21 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service58;
|
|
53
|
+
const forms = yield* Service73;
|
|
54
|
+
const websearch = yield* Service21;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name6,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description4,
|
|
59
|
+
input: Input6,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name6,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name6];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name6, NO_RESULTS2, description4, Input6, Plugin21, exports_websearch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./aisdk-native-
|
|
2
|
+
ID12
|
|
3
|
+
} from "./aisdk-native-gx4b9ghh.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 = ID12.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,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID10,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./aisdk-native-
|
|
5
|
+
} from "./aisdk-native-8n473qvc.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./aisdk-native-
|
|
8
|
+
} from "./aisdk-native-2rnv70v8.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
11
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/agent.ts
|
|
14
|
-
var
|
|
15
|
-
__export(
|
|
16
|
-
AgentPlugin: () =>
|
|
17
|
-
Plugin: () =>
|
|
14
|
+
var exports_agent = {};
|
|
15
|
+
__export(exports_agent, {
|
|
16
|
+
AgentPlugin: () => exports_agent,
|
|
17
|
+
Plugin: () => Plugin13
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin13 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin45 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID10.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID10.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin45 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID10.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID10.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID10.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin45 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin13, exports_agent };
|