@opencode/core 0.0.0-dev-19683 → 0.0.0-dev-19685
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 +64 -64
- package/dist/aisdk-native.js +63 -63
- package/dist/aisdk.js +68 -68
- package/dist/app.js +7 -7
- package/dist/bus.js +57 -57
- package/dist/chunks/{aisdk-native-09956swx.js → aisdk-native-05kd0h8n.js} +9 -9
- package/dist/chunks/{aisdk-native-4a0nv7mx.js → aisdk-native-0jfkt8vv.js} +7 -7
- package/dist/chunks/{aisdk-native-az4g7yjb.js → aisdk-native-0kw4t2ss.js} +23 -23
- package/dist/chunks/aisdk-native-0mesazry.js +4 -0
- package/dist/chunks/{aisdk-native-g9kf27qg.js → aisdk-native-0pac4wxy.js} +8 -8
- package/dist/chunks/{aisdk-native-dn7561av.js → aisdk-native-0pffsxzd.js} +24 -24
- package/dist/chunks/{aisdk-native-jhpaar4x.js → aisdk-native-0t9wd588.js} +7 -7
- package/dist/chunks/{aisdk-native-qj07q2eg.js → aisdk-native-0wbaq0z2.js} +29 -29
- package/dist/chunks/{aisdk-native-vd6jm2yd.js → aisdk-native-0xzvcrha.js} +39 -39
- package/dist/chunks/{aisdk-native-pwwerkbj.js → aisdk-native-11na8g8b.js} +18 -18
- package/dist/chunks/{aisdk-native-mza6s6hg.js → aisdk-native-147w0500.js} +88 -88
- package/dist/chunks/{aisdk-native-ht0ph52s.js → aisdk-native-19s7dspw.js} +31 -31
- package/dist/chunks/{aisdk-native-b5j16w9d.js → aisdk-native-1ch5qaya.js} +8 -8
- package/dist/chunks/{aisdk-native-vpv3g2a7.js → aisdk-native-1hznkpae.js} +6 -6
- package/dist/chunks/{aisdk-native-gr1f03ws.js → aisdk-native-2003xh4j.js} +7 -7
- package/dist/chunks/{aisdk-native-nhww9bhn.js → aisdk-native-23vvk4nb.js} +28 -28
- package/dist/chunks/{aisdk-native-j15mfg1p.js → aisdk-native-2d57kztd.js} +5 -5
- package/dist/chunks/{aisdk-native-jc9s7gf6.js → aisdk-native-2gw4gc3t.js} +15 -15
- package/dist/chunks/{aisdk-native-7dqw4kz8.js → aisdk-native-2k8khapm.js} +4 -4
- package/dist/chunks/{aisdk-native-xxy1bhm1.js → aisdk-native-2qvr8c41.js} +17 -17
- package/dist/chunks/{aisdk-native-0a14krkj.js → aisdk-native-2t51sr74.js} +12 -12
- package/dist/chunks/{aisdk-native-yhsb8ghp.js → aisdk-native-2vatgfy6.js} +12 -12
- package/dist/chunks/{aisdk-native-d6h9vrqt.js → aisdk-native-38ky6pb7.js} +5 -5
- package/dist/chunks/{aisdk-native-3zgzsr0q.js → aisdk-native-3ktbe3hf.js} +4 -4
- package/dist/chunks/{aisdk-native-j47mgn54.js → aisdk-native-3n8ee3c4.js} +2 -2
- package/dist/chunks/{aisdk-native-68bdaj6y.js → aisdk-native-3npbngsp.js} +13 -13
- package/dist/chunks/{aisdk-native-qbgpcm8y.js → aisdk-native-3tamtphc.js} +9 -9
- package/dist/chunks/{aisdk-native-n8twdh81.js → aisdk-native-3ved0akr.js} +10 -10
- package/dist/chunks/{aisdk-native-wrabmwcn.js → aisdk-native-42jzvad5.js} +18 -18
- package/dist/chunks/{aisdk-native-h6r3nrb9.js → aisdk-native-44h5tttr.js} +3 -3
- package/dist/chunks/{aisdk-native-k9kj6xed.js → aisdk-native-44ke2mar.js} +4 -4
- package/dist/chunks/{aisdk-native-mnc31gpg.js → aisdk-native-46606ezs.js} +23 -23
- package/dist/chunks/{aisdk-native-pf2e8y0d.js → aisdk-native-48m15pyt.js} +4 -4
- package/dist/chunks/{aisdk-native-yfdx3v3q.js → aisdk-native-4g0ndws3.js} +42 -42
- package/dist/chunks/{aisdk-native-bz85s9hh.js → aisdk-native-4jc5c4h4.js} +1 -1
- package/dist/chunks/{aisdk-native-2gbh0fha.js → aisdk-native-4p35ch0z.js} +23 -23
- package/dist/chunks/{aisdk-native-9wh35tzk.js → aisdk-native-4tzv7a5d.js} +57 -57
- package/dist/chunks/{aisdk-native-rap9a73h.js → aisdk-native-4v7qdvcn.js} +4 -4
- package/dist/chunks/{aisdk-native-1ygqh575.js → aisdk-native-56gdpj1q.js} +7 -7
- package/dist/chunks/{aisdk-native-p8bevgsj.js → aisdk-native-5g290phr.js} +43 -43
- package/dist/chunks/{aisdk-native-6rf7f5jd.js → aisdk-native-5k1e66mg.js} +21 -21
- package/dist/chunks/{aisdk-native-gp1abar7.js → aisdk-native-5m43nnyh.js} +12 -12
- package/dist/chunks/{aisdk-native-j1r486kk.js → aisdk-native-5nfze5by.js} +13 -13
- package/dist/chunks/{aisdk-native-x4bjtptf.js → aisdk-native-5wkvqjct.js} +26 -26
- package/dist/chunks/{aisdk-native-kzc5k3kj.js → aisdk-native-60bxgsbk.js} +7 -7
- package/dist/chunks/aisdk-native-62nepcbt.js +26 -0
- package/dist/chunks/{aisdk-native-md454ze3.js → aisdk-native-6gtvg2dm.js} +28 -28
- package/dist/chunks/{aisdk-native-hw8p7939.js → aisdk-native-6kpcav3z.js} +42 -42
- package/dist/chunks/{aisdk-native-hdthj1pw.js → aisdk-native-6n88yxkj.js} +6 -6
- package/dist/chunks/{aisdk-native-0g09j3nb.js → aisdk-native-6qmp3fby.js} +31 -31
- package/dist/chunks/{aisdk-native-vjhr626e.js → aisdk-native-6sayq1ty.js} +7 -7
- package/dist/chunks/{aisdk-native-tba18gcj.js → aisdk-native-6xb3f695.js} +24 -24
- package/dist/chunks/{aisdk-native-1khh3dgh.js → aisdk-native-78ma53hf.js} +21 -21
- package/dist/chunks/{aisdk-native-88ykc3s8.js → aisdk-native-7q29nmvk.js} +16 -16
- package/dist/chunks/{aisdk-native-kgcyjstq.js → aisdk-native-7wxj7vfh.js} +1 -1
- package/dist/chunks/{aisdk-native-wbtqks6c.js → aisdk-native-80fkzc6b.js} +10 -10
- package/dist/chunks/{aisdk-native-rrgzyjaj.js → aisdk-native-80gct2kr.js} +3 -3
- package/dist/chunks/{aisdk-native-f1h6hjy5.js → aisdk-native-81zfvqqs.js} +27 -27
- package/dist/chunks/{aisdk-native-hqxaqnsz.js → aisdk-native-851r6173.js} +12 -12
- package/dist/chunks/{aisdk-native-2ybfqxjc.js → aisdk-native-88jassm4.js} +17 -17
- package/dist/chunks/{aisdk-native-9sjy1xft.js → aisdk-native-8hac7bq2.js} +17 -17
- package/dist/chunks/{aisdk-native-y6cd6ah2.js → aisdk-native-8jn8c15b.js} +10 -10
- package/dist/chunks/{aisdk-native-gd2xe63m.js → aisdk-native-8xw6hc60.js} +9 -9
- package/dist/chunks/{aisdk-native-00j0dh26.js → aisdk-native-8yvs2ce4.js} +3 -3
- package/dist/chunks/{aisdk-native-fxqcjp4y.js → aisdk-native-9awa2hmg.js} +20 -20
- package/dist/chunks/{aisdk-native-fkv0s007.js → aisdk-native-9d21cdfk.js} +36 -36
- package/dist/chunks/{aisdk-native-ymtrgr5e.js → aisdk-native-9tn75rdf.js} +20 -20
- package/dist/chunks/{aisdk-native-wb3p2xcb.js → aisdk-native-a06m10p5.js} +27 -27
- package/dist/chunks/{aisdk-native-atrw5sbr.js → aisdk-native-a0kfw7rx.js} +30 -30
- package/dist/chunks/{aisdk-native-y6kxd9cb.js → aisdk-native-a5ar9xjj.js} +19 -19
- package/dist/chunks/{aisdk-native-0f9afca0.js → aisdk-native-af04s6ss.js} +3 -3
- package/dist/chunks/{aisdk-native-bnzkcavh.js → aisdk-native-ahrt8s9h.js} +35 -35
- package/dist/chunks/{aisdk-native-qrdq1prv.js → aisdk-native-aqrrw3fx.js} +7 -7
- package/dist/chunks/{aisdk-native-ef88rrmz.js → aisdk-native-ayy16kn2.js} +11 -11
- package/dist/chunks/{aisdk-native-4c02e3a4.js → aisdk-native-ba0pmapb.js} +3 -3
- package/dist/chunks/{aisdk-native-fj40dq2k.js → aisdk-native-bacyadyn.js} +6 -7
- package/dist/chunks/{aisdk-native-cq37gk0t.js → aisdk-native-bha4atvq.js} +1 -1
- package/dist/chunks/{aisdk-native-s86dqrf8.js → aisdk-native-bj66tvz5.js} +7 -7
- package/dist/chunks/{aisdk-native-gfww71ry.js → aisdk-native-bv6943e1.js} +1 -1
- package/dist/chunks/{aisdk-native-a9jcekkd.js → aisdk-native-c2x19npp.js} +11 -11
- package/dist/chunks/{aisdk-native-3w2b2yj4.js → aisdk-native-c78bbtc9.js} +3 -3
- package/dist/chunks/{aisdk-native-wc0j5gyx.js → aisdk-native-cegyzb74.js} +6 -6
- package/dist/chunks/{aisdk-native-8awfgv52.js → aisdk-native-cjq1148t.js} +15 -15
- package/dist/chunks/{aisdk-native-7w3s9kd0.js → aisdk-native-cmbqfntm.js} +5 -5
- package/dist/chunks/{aisdk-native-9hn6k4tm.js → aisdk-native-cmwkp3r5.js} +7 -7
- package/dist/chunks/{aisdk-native-hd6qev3f.js → aisdk-native-ctm3y1hm.js} +16 -16
- package/dist/chunks/{aisdk-native-xbv6w661.js → aisdk-native-d721p5x2.js} +4 -4
- package/dist/chunks/{aisdk-native-68k76m1k.js → aisdk-native-d7ssab97.js} +7 -7
- package/dist/chunks/{aisdk-native-7krekesg.js → aisdk-native-df10g7zh.js} +25 -25
- package/dist/chunks/{aisdk-native-y7nsxf6r.js → aisdk-native-dnsrr8zs.js} +48 -48
- package/dist/chunks/{aisdk-native-y71avatq.js → aisdk-native-dpkg50ah.js} +3 -3
- package/dist/chunks/{aisdk-native-3a7ehprh.js → aisdk-native-dt5w6v9g.js} +3 -3
- package/dist/chunks/{aisdk-native-8hbfdwcy.js → aisdk-native-e0a154fg.js} +5 -5
- package/dist/chunks/{aisdk-native-bym8k2q4.js → aisdk-native-e65aczms.js} +16 -16
- package/dist/chunks/{aisdk-native-hnr5yq9h.js → aisdk-native-e6hmchc5.js} +3 -3
- package/dist/chunks/{aisdk-native-rhjbct0v.js → aisdk-native-eaj1djv9.js} +7 -7
- package/dist/chunks/{aisdk-native-sythwh0s.js → aisdk-native-eda3kmbe.js} +4 -4
- package/dist/chunks/{aisdk-native-k44b8f6f.js → aisdk-native-eegh8h7g.js} +5 -5
- package/dist/chunks/{aisdk-native-8m0chse6.js → aisdk-native-ep530p1t.js} +22 -22
- package/dist/chunks/{aisdk-native-yvgpa5e3.js → aisdk-native-eqjmr049.js} +74 -40
- package/dist/chunks/{aisdk-native-g17fnnhe.js → aisdk-native-erx5yvxc.js} +17 -17
- package/dist/chunks/{aisdk-native-96x7zdnn.js → aisdk-native-f7pkc454.js} +20 -20
- package/dist/chunks/{aisdk-native-zdr1f95n.js → aisdk-native-fakctfgg.js} +18 -18
- package/dist/chunks/{aisdk-native-tkjpgj67.js → aisdk-native-fd43cwvv.js} +8 -8
- package/dist/chunks/{aisdk-native-9gt9xvgh.js → aisdk-native-fgqcvsfv.js} +10 -10
- package/dist/chunks/{aisdk-native-ydehfash.js → aisdk-native-fj424p4s.js} +30 -30
- package/dist/chunks/{aisdk-native-115hbv0n.js → aisdk-native-fkd6bfp6.js} +12 -12
- package/dist/chunks/aisdk-native-fkft4cnq.js +478 -0
- package/dist/chunks/{aisdk-native-b6dhfaq6.js → aisdk-native-g2nffjee.js} +11 -11
- package/dist/chunks/{aisdk-native-16hwt5r8.js → aisdk-native-g4bm5adv.js} +55 -55
- package/dist/chunks/{aisdk-native-h16eh2cg.js → aisdk-native-g8bbjj5w.js} +14 -14
- package/dist/chunks/{aisdk-native-0yv7vnxb.js → aisdk-native-gkjg0s4y.js} +32 -32
- package/dist/chunks/{aisdk-native-cjks21kp.js → aisdk-native-gmnht6d3.js} +5 -5
- package/dist/chunks/{aisdk-native-swmbf78h.js → aisdk-native-h53656fs.js} +8 -8
- package/dist/chunks/{aisdk-native-x0511brf.js → aisdk-native-h6jr292a.js} +3 -3
- package/dist/chunks/{aisdk-native-b3w3f3fm.js → aisdk-native-h7c2rqcj.js} +19 -19
- package/dist/chunks/{aisdk-native-s4k2cmb5.js → aisdk-native-hcvc3emd.js} +19 -19
- package/dist/chunks/{aisdk-native-tcay1cqt.js → aisdk-native-hq8zt1th.js} +5 -5
- package/dist/chunks/{aisdk-native-tc6qcdy5.js → aisdk-native-hr5bc81f.js} +4 -4
- package/dist/chunks/{aisdk-native-r81gss8s.js → aisdk-native-j06qwx11.js} +6 -6
- package/dist/chunks/{aisdk-native-kwy4afdt.js → aisdk-native-j0j97596.js} +6 -6
- package/dist/chunks/{aisdk-native-esp4ax25.js → aisdk-native-j6gqw2pj.js} +4 -4
- package/dist/chunks/{aisdk-native-9jwxq161.js → aisdk-native-jca4demv.js} +1 -1
- package/dist/chunks/{aisdk-native-y3cfv4n4.js → aisdk-native-jwnrs5dp.js} +33 -33
- package/dist/chunks/{aisdk-native-f3ngv102.js → aisdk-native-k2h4r4s0.js} +3 -3
- package/dist/chunks/{aisdk-native-hejrs7ps.js → aisdk-native-k31mpn09.js} +1 -1
- package/dist/chunks/{aisdk-native-jppvw2tx.js → aisdk-native-k3gnzxs0.js} +3 -3
- package/dist/chunks/{aisdk-native-hw5w4egb.js → aisdk-native-knccs335.js} +24 -24
- package/dist/chunks/{aisdk-native-mtax4y4w.js → aisdk-native-kyngf2ah.js} +5 -5
- package/dist/chunks/{aisdk-native-pnv527nz.js → aisdk-native-m2d0j7c0.js} +7 -7
- package/dist/chunks/{aisdk-native-6n56vpse.js → aisdk-native-mr0hx204.js} +25 -25
- package/dist/chunks/{aisdk-native-d9cxwk5k.js → aisdk-native-mw4vczt2.js} +90 -90
- package/dist/chunks/{aisdk-native-8y1b1xx2.js → aisdk-native-n9v815xf.js} +10 -10
- package/dist/chunks/{aisdk-native-ba3991h0.js → aisdk-native-nb07dary.js} +30 -30
- package/dist/chunks/{aisdk-native-zgth59m1.js → aisdk-native-nc1k99g3.js} +5 -5
- package/dist/chunks/{aisdk-native-7e0n63vf.js → aisdk-native-ne1gzv55.js} +9 -9
- package/dist/chunks/{aisdk-native-em3f3zkt.js → aisdk-native-nm9w1vfn.js} +25 -25
- package/dist/chunks/{aisdk-native-d6er668x.js → aisdk-native-nz76xpbf.js} +14 -14
- package/dist/chunks/{aisdk-native-9abfm80s.js → aisdk-native-p1p0zqxa.js} +16 -16
- package/dist/chunks/aisdk-native-p26stxcb.js +164 -0
- package/dist/chunks/{aisdk-native-6z7z12yj.js → aisdk-native-p8hercg3.js} +27 -27
- package/dist/chunks/{aisdk-native-ttkvv5bq.js → aisdk-native-pakx3g0a.js} +9 -9
- package/dist/chunks/{aisdk-native-21fjxxq6.js → aisdk-native-pb231g4a.js} +9 -9
- package/dist/chunks/{aisdk-native-q65r789c.js → aisdk-native-pbcspj05.js} +13 -13
- package/dist/chunks/{aisdk-native-a7csp2mw.js → aisdk-native-pmsv8f6n.js} +1 -1
- package/dist/chunks/{aisdk-native-zeh8ztgw.js → aisdk-native-pts37tz4.js} +8 -8
- package/dist/chunks/{aisdk-native-ggxh3msc.js → aisdk-native-pwndzpcd.js} +20 -20
- package/dist/chunks/{aisdk-native-6480rn39.js → aisdk-native-pynn8zta.js} +9 -9
- package/dist/chunks/{aisdk-native-skyymkrr.js → aisdk-native-q3t37ft6.js} +3 -3
- package/dist/chunks/{aisdk-native-dj7e4mff.js → aisdk-native-q57j3r44.js} +4 -4
- package/dist/chunks/{aisdk-native-bab4jsc6.js → aisdk-native-q6z2rbf3.js} +19 -19
- package/dist/chunks/{aisdk-native-fs4x7456.js → aisdk-native-q8kwzsyt.js} +5 -5
- package/dist/chunks/{aisdk-native-atz937d5.js → aisdk-native-qj4qsxzt.js} +28 -28
- package/dist/chunks/{aisdk-native-cwa6csj7.js → aisdk-native-qmqgtz8f.js} +7 -7
- package/dist/chunks/aisdk-native-qp3ncj1z.js +247 -0
- package/dist/chunks/{aisdk-native-hgqdqc69.js → aisdk-native-qqdrqwz9.js} +4 -4
- package/dist/chunks/{aisdk-native-6w67has8.js → aisdk-native-qvqshg0f.js} +3 -3
- package/dist/chunks/{aisdk-native-cwq8nmtd.js → aisdk-native-qwf746a1.js} +19 -19
- package/dist/chunks/{aisdk-native-32nb2s9m.js → aisdk-native-qze9tj9p.js} +13 -13
- package/dist/chunks/{aisdk-native-2nkaynk5.js → aisdk-native-r391d9tr.js} +39 -39
- package/dist/chunks/{aisdk-native-yp2x3t23.js → aisdk-native-r8xr0va3.js} +3 -3
- package/dist/chunks/{aisdk-native-a46v4e4v.js → aisdk-native-ratrq7cm.js} +3 -3
- package/dist/chunks/{aisdk-native-64121yjq.js → aisdk-native-rehmvjq3.js} +22 -22
- package/dist/chunks/{aisdk-native-tf0wxgc3.js → aisdk-native-rhcmf0p0.js} +14 -14
- package/dist/chunks/{aisdk-native-mgz011jm.js → aisdk-native-rkwasy8q.js} +12 -12
- package/dist/chunks/{aisdk-native-kccbwwm6.js → aisdk-native-rs0s42cj.js} +29 -29
- package/dist/chunks/{aisdk-native-q2024qw3.js → aisdk-native-rvxj2sc4.js} +9 -9
- package/dist/chunks/{aisdk-native-1s1yk029.js → aisdk-native-ry6xxh2r.js} +40 -40
- package/dist/chunks/{aisdk-native-knr6p7a1.js → aisdk-native-rz1w6nds.js} +177 -177
- package/dist/chunks/{aisdk-native-n60s5vft.js → aisdk-native-rzj2cp84.js} +4 -4
- package/dist/chunks/{aisdk-native-wkag27sj.js → aisdk-native-rzmh5fa9.js} +43 -43
- package/dist/chunks/{aisdk-native-0qemd7z6.js → aisdk-native-s0ezpa0w.js} +52 -52
- package/dist/chunks/{aisdk-native-n082d93f.js → aisdk-native-sadjays5.js} +9 -9
- package/dist/chunks/{aisdk-native-yy7hzrx1.js → aisdk-native-sg67pcps.js} +16 -16
- package/dist/chunks/{aisdk-native-6hjx5zpb.js → aisdk-native-sk2hk6tq.js} +8 -8
- package/dist/chunks/{aisdk-native-npjtxnbs.js → aisdk-native-spnx07s7.js} +18 -18
- package/dist/chunks/{aisdk-native-nh7mhm8v.js → aisdk-native-stjqj5dk.js} +4 -4
- package/dist/chunks/{aisdk-native-wsck3bd6.js → aisdk-native-tdmtxyj7.js} +10 -10
- package/dist/chunks/{aisdk-native-fvghqctd.js → aisdk-native-tft2naev.js} +10 -10
- package/dist/chunks/{aisdk-native-c6phvjqp.js → aisdk-native-th2bmv3x.js} +1 -1
- package/dist/chunks/{aisdk-native-xnjb55qs.js → aisdk-native-tjtkz35m.js} +26 -26
- package/dist/chunks/{aisdk-native-m7nbb49h.js → aisdk-native-tmj2byc7.js} +22 -22
- package/dist/chunks/{aisdk-native-gj4qp5ev.js → aisdk-native-tq6snqtp.js} +11 -11
- package/dist/chunks/{aisdk-native-zetf5mxq.js → aisdk-native-var2fxzy.js} +12 -12
- package/dist/chunks/{aisdk-native-h94hje80.js → aisdk-native-vcmf8r39.js} +12 -12
- package/dist/chunks/{aisdk-native-dfe8djrf.js → aisdk-native-ve4pfa0n.js} +3 -3
- package/dist/chunks/{aisdk-native-50t98bj2.js → aisdk-native-vew351ra.js} +19 -19
- package/dist/chunks/{aisdk-native-q6q6aknj.js → aisdk-native-vpwnv2a1.js} +17 -17
- package/dist/chunks/{aisdk-native-eh5yz98j.js → aisdk-native-vqr31nzc.js} +26 -26
- package/dist/chunks/{aisdk-native-er424j15.js → aisdk-native-vv0td2jx.js} +3 -3
- package/dist/chunks/{aisdk-native-kfg3nz9r.js → aisdk-native-w16z4der.js} +21 -21
- package/dist/chunks/{aisdk-native-06dxphr1.js → aisdk-native-w1k39n5e.js} +3 -3
- package/dist/chunks/{aisdk-native-wr33kjtx.js → aisdk-native-wf4pm29n.js} +1 -1
- package/dist/chunks/{aisdk-native-7c30dffs.js → aisdk-native-wjk8h8nm.js} +20 -20
- package/dist/chunks/{aisdk-native-vep9a8b1.js → aisdk-native-wk08kt9e.js} +13 -13
- package/dist/chunks/{aisdk-native-skjgnpnj.js → aisdk-native-wk3ypdaq.js} +13 -13
- package/dist/chunks/{aisdk-native-3jphrg1a.js → aisdk-native-wn2s22d5.js} +30 -30
- package/dist/chunks/{aisdk-native-n08t6ze5.js → aisdk-native-wzys0hxm.js} +12 -12
- package/dist/chunks/{aisdk-native-b9g40zgd.js → aisdk-native-x4wxy4x8.js} +15 -15
- package/dist/chunks/{aisdk-native-e99pjtb3.js → aisdk-native-x8y1nay7.js} +28 -28
- package/dist/chunks/{aisdk-native-jf1jvezk.js → aisdk-native-xc19eb9a.js} +10 -10
- package/dist/chunks/{aisdk-native-dbnsaed8.js → aisdk-native-xe562d2c.js} +23 -23
- package/dist/chunks/{aisdk-native-pm220jya.js → aisdk-native-xfzxdcg1.js} +30 -30
- package/dist/chunks/{aisdk-native-hngy6k3e.js → aisdk-native-xm6fyv27.js} +7 -7
- package/dist/chunks/{aisdk-native-x3sqx4k7.js → aisdk-native-xn9n415p.js} +9 -9
- package/dist/chunks/{aisdk-native-88jxqscj.js → aisdk-native-xv4rd0sf.js} +10 -10
- package/dist/chunks/{aisdk-native-sk3v0q87.js → aisdk-native-y6pfs3xr.js} +13 -13
- package/dist/chunks/{aisdk-native-d101js13.js → aisdk-native-y9senqaw.js} +16 -16
- package/dist/chunks/{aisdk-native-h11rgf29.js → aisdk-native-yecrv0e3.js} +65 -65
- package/dist/chunks/{aisdk-native-t1cbfw6a.js → aisdk-native-yg973644.js} +8 -8
- package/dist/chunks/{aisdk-native-qghhqzkx.js → aisdk-native-ypvayta9.js} +4 -4
- package/dist/chunks/{aisdk-native-dhmh7aw6.js → aisdk-native-zav06jzw.js} +3 -3
- package/dist/chunks/{aisdk-native-1teps6y3.js → aisdk-native-zc1eb274.js} +1 -1
- package/dist/chunks/{aisdk-native-3vdfxtgs.js → aisdk-native-zh1mn9d7.js} +5 -5
- package/dist/chunks/{aisdk-native-76jm940e.js → aisdk-native-zh4wx33z.js} +20 -20
- package/dist/chunks/{aisdk-native-qgcr32z5.js → aisdk-native-zv29ggfk.js} +27 -27
- package/dist/chunks/{aisdk-native-h2f7hf79.js → aisdk-native-zx9dccf2.js} +18 -18
- package/dist/chunks/{aisdk-native-bpwm8rb1.js → aisdk-native-zxeqxg4j.js} +33 -33
- package/dist/chunks/{aisdk-native-87sjyc5f.js → aisdk-native-zy6kjvcy.js} +14 -14
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +66 -66
- package/dist/config/discovery.js +59 -59
- package/dist/config/normalize.js +78 -78
- package/dist/config/plugin/agent.js +93 -93
- package/dist/config/plugin/command.js +175 -175
- package/dist/config/plugin/compaction.js +123 -123
- package/dist/config/plugin/compatibility.js +106 -106
- package/dist/config/plugin/formatter.js +92 -92
- package/dist/config/plugin/image.js +91 -91
- package/dist/config/plugin/instruction.js +64 -64
- package/dist/config/plugin/location-watcher.js +91 -91
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +91 -91
- package/dist/config/plugin/provider.js +91 -91
- package/dist/config/plugin/reference.js +93 -93
- package/dist/config/plugin/shell.js +93 -93
- package/dist/config/plugin/skill-file.js +73 -73
- package/dist/config/plugin/skill.js +109 -109
- package/dist/config/plugin/snapshot.js +91 -91
- package/dist/config/plugin/source.js +94 -94
- package/dist/config/plugin/tool-output.js +91 -91
- package/dist/config/plugin/websearch.js +92 -92
- package/dist/config/plugin/worktree.js +92 -92
- package/dist/config.js +95 -95
- package/dist/credential.js +67 -67
- package/dist/database/database.js +55 -55
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +40 -40
- package/dist/database/migration.js +42 -42
- package/dist/database/v1-migration.bun.js +12 -12
- package/dist/effect/app-node-builder.js +230 -230
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +66 -66
- package/dist/environment/index.js +68 -68
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +76 -76
- package/dist/file-mutation.js +67 -67
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +186 -186
- package/dist/filesystem/search.js +74 -74
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +75 -75
- package/dist/form.js +68 -68
- package/dist/formatter.js +63 -63
- package/dist/generate.js +77 -77
- package/dist/git.js +6 -6
- 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 +65 -65
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- 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 +67 -67
- package/dist/instructions/builtins.js +64 -64
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +67 -67
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +56 -56
- package/dist/location-mutation.js +30 -30
- package/dist/location-service-map.js +63 -63
- package/dist/location-services.js +308 -308
- package/dist/location.js +62 -62
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +78 -78
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +63 -63
- package/dist/modal/models.js +65 -65
- package/dist/model-resolver.js +72 -72
- package/dist/model.js +74 -74
- package/dist/models-dev.js +81 -81
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +85 -85
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +55 -55
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +71 -71
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +179 -179
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +284 -284
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +70 -70
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +74 -74
- package/dist/plugin/provider/amazon-bedrock.js +64 -64
- package/dist/plugin/provider/azure.js +90 -90
- package/dist/plugin/provider/cloudflare-ai-gateway.js +89 -89
- package/dist/plugin/provider/cloudflare-workers-ai.js +89 -89
- package/dist/plugin/provider/configured.js +88 -88
- package/dist/plugin/provider/digitalocean.js +66 -66
- package/dist/plugin/provider/github-copilot.js +67 -67
- package/dist/plugin/provider/gitlab.js +65 -65
- package/dist/plugin/provider/google-vertex.js +64 -64
- package/dist/plugin/provider/llmgateway.js +58 -58
- package/dist/plugin/provider/lmstudio.js +91 -91
- package/dist/plugin/provider/modal.js +66 -66
- package/dist/plugin/provider/ollama.js +91 -91
- package/dist/plugin/provider/openai.js +67 -67
- package/dist/plugin/provider/opencode.js +67 -67
- package/dist/plugin/provider/openrouter.js +65 -65
- package/dist/plugin/provider/poe.js +58 -58
- package/dist/plugin/provider/prompt-cache-key.js +64 -64
- package/dist/plugin/provider/sap-ai-core.js +64 -64
- package/dist/plugin/provider/snowflake-cortex.js +90 -90
- package/dist/plugin/provider/vercel.js +64 -64
- package/dist/plugin/provider/vllm.js +91 -91
- package/dist/plugin/provider/xai.js +65 -65
- package/dist/plugin/provider.js +122 -122
- package/dist/plugin/sdk.js +60 -60
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +107 -107
- package/dist/plugin/supervisor.js +302 -302
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +62 -62
- package/dist/plugin/vcs/hg.js +62 -62
- package/dist/plugin/warming.js +90 -90
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +187 -187
- package/dist/project.js +61 -61
- package/dist/provider.js +75 -75
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +73 -73
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +69 -69
- package/dist/rpc.js +63 -63
- package/dist/session/command.js +57 -57
- package/dist/session/compaction.js +101 -101
- package/dist/session/context.js +117 -117
- package/dist/session/diff.js +62 -62
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +118 -118
- package/dist/session/execution.js +99 -99
- package/dist/session/generate.js +118 -118
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +66 -66
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +71 -71
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +88 -88
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +100 -100
- package/dist/session/projector.js +63 -63
- package/dist/session/prompt.js +76 -76
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +63 -63
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +188 -188
- package/dist/session/runner/model.js +72 -72
- package/dist/session/runner/retry.js +86 -86
- package/dist/session/runner/step.js +94 -94
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +134 -134
- package/dist/session/shell.js +104 -104
- package/dist/session/skill.js +75 -75
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +171 -171
- package/dist/session/title.js +120 -120
- package/dist/session/to-session-error.js +83 -83
- package/dist/session/transfer.js +118 -118
- package/dist/session.js +180 -180
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +107 -107
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +82 -82
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +95 -95
- package/dist/tool/plugin/edit.js +87 -87
- package/dist/tool/plugin/glob.js +84 -84
- package/dist/tool/plugin/grep.js +90 -90
- package/dist/tool/plugin/opencode.js +5 -3
- package/dist/tool/plugin/patch.js +85 -85
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +91 -91
- package/dist/tool/plugin/shell.js +179 -179
- package/dist/tool/plugin/skill.js +81 -81
- package/dist/tool/plugin/subagent.js +178 -178
- package/dist/tool/plugin/webfetch.js +77 -77
- package/dist/tool/plugin/websearch.js +85 -85
- package/dist/tool/plugin/write.js +89 -89
- package/dist/tool/read-filesystem.js +71 -71
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/types/plugin/identity.d.ts +0 -1
- package/dist/types/tool/plugin/opencode.d.ts +7 -0
- package/dist/types/tool/plugin/subagent.d.ts +3 -1
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +65 -65
- 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 +67 -67
- package/dist/vcs.js +65 -65
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +59 -59
- package/dist/wellknown.js +62 -62
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +62 -62
- package/dist/worktree/git.js +3 -3
- package/dist/worktree/strategies.js +64 -64
- package/dist/worktree.js +72 -72
- package/package.json +8 -8
- package/dist/chunks/aisdk-native-6kdq0pjd.js +0 -4
- package/dist/chunks/aisdk-native-e576cz19.js +0 -80
- package/dist/chunks/aisdk-native-hcp8xqw6.js +0 -247
- package/dist/chunks/aisdk-native-p0z2qksq.js +0 -478
- package/dist/chunks/aisdk-native-y817ngn0.js +0 -26
- /package/dist/chunks/{aisdk-native-92k45pvj.js → aisdk-native-9nepbqpa.js} +0 -0
- /package/dist/chunks/{aisdk-native-18xw5b3r.js → aisdk-native-fpgyj0nn.js} +0 -0
- /package/dist/chunks/{aisdk-native-2cmv458r.js → aisdk-native-q17z9dx8.js} +0 -0
- /package/dist/chunks/{aisdk-native-hev6f6cv.js → aisdk-native-ssh52gjb.js} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_keyed_mutex = {};
|
|
7
7
|
__export(exports_keyed_mutex, {
|
|
8
8
|
KeyedMutex: () => exports_keyed_mutex,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make23,
|
|
10
10
|
makeUnsafe: () => makeUnsafe2
|
|
11
11
|
});
|
|
12
12
|
import { Effect, Semaphore } from "effect";
|
|
@@ -26,6 +26,6 @@ var makeUnsafe2 = () => {
|
|
|
26
26
|
});
|
|
27
27
|
return { size: Effect.sync(() => locks.size), withLock };
|
|
28
28
|
};
|
|
29
|
-
var
|
|
29
|
+
var make23 = () => Effect.sync(makeUnsafe2);
|
|
30
30
|
|
|
31
|
-
export { makeUnsafe2,
|
|
31
|
+
export { makeUnsafe2, make23, exports_keyed_mutex };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./aisdk-native-
|
|
2
|
+
ID8
|
|
3
|
+
} from "./aisdk-native-zxeqxg4j.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 = ID8.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 };
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make16,
|
|
14
|
+
node: () => node50,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make16 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node50 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error4, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error4, ProviderNotFound2, make16, RegistryService2, registry2, registryNode2, node50, exports_driver };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./aisdk-native-
|
|
2
|
+
Service78,
|
|
3
|
+
node82
|
|
4
|
+
} from "./aisdk-native-rhcmf0p0.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
8
|
} from "./aisdk-native-922hggd3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./aisdk-native-
|
|
11
|
+
Service75,
|
|
12
|
+
node79
|
|
13
|
+
} from "./aisdk-native-wk3ypdaq.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service36,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node39
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service36 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const location = yield*
|
|
42
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
43
|
+
const bus = yield* Service78;
|
|
44
|
+
const location = yield* Service75;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service75, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service36.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node39 = makeLocationNode({ service: Service36, layer, deps: [node82, node79] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service36, node39, exports_rpc, define2 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info13,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info13 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info16 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info13, exports_provider2 };
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key4,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -18,7 +18,7 @@ __export(exports_instructions6, {
|
|
|
18
18
|
diffByKey: () => diffByKey2,
|
|
19
19
|
empty: () => empty3,
|
|
20
20
|
hash: () => hash2,
|
|
21
|
-
make: () =>
|
|
21
|
+
make: () => make21,
|
|
22
22
|
read: () => read3,
|
|
23
23
|
removed: () => removed2,
|
|
24
24
|
renderInitial: () => renderInitial2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key4 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,21 +36,21 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key4) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key4
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
var empty3 = [];
|
|
53
|
-
function
|
|
53
|
+
function make21(source) {
|
|
54
54
|
const decode = Schema.decodeUnknownOption(source.codec);
|
|
55
55
|
const encode = Schema.encodeSync(source.codec);
|
|
56
56
|
const initial = (value) => requireText(source.key, "initial", source.render.initial(value));
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key4, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make21, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./aisdk-native-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
toSessionError2
|
|
6
|
-
} from "./aisdk-native-
|
|
6
|
+
} from "./aisdk-native-j6gqw2pj.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -13,7 +13,7 @@ var exports_retry = {};
|
|
|
13
13
|
__export(exports_retry, {
|
|
14
14
|
SessionRunnerRetry: () => exports_retry,
|
|
15
15
|
isRetryable: () => isRetryable2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make5,
|
|
17
17
|
policy: () => policy2,
|
|
18
18
|
transient: () => transient2
|
|
19
19
|
});
|
|
@@ -96,7 +96,7 @@ var transient2 = (decide, input) => (effect) => Effect.retry(effect, {
|
|
|
96
96
|
return true;
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var make5 = (bus, sessionID) => Effect.gen(function* () {
|
|
100
100
|
const decide = yield* policy2(sessionID);
|
|
101
101
|
const wait = (input) => Effect.gen(function* () {
|
|
102
102
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -113,4 +113,4 @@ var make8 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
113
113
|
return { decide, wait };
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
export { isRetryable2, policy2, transient2,
|
|
116
|
+
export { isRetryable2, policy2, transient2, make5, exports_retry };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./aisdk-native-
|
|
3
|
+
} from "./aisdk-native-pb231g4a.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./aisdk-native-
|
|
6
|
+
} from "./aisdk-native-56gdpj1q.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/parallel.ts
|
|
12
12
|
var exports_parallel = {};
|
|
13
13
|
__export(exports_parallel, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin37,
|
|
15
15
|
WebSearchParallel: () => exports_parallel,
|
|
16
16
|
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
@@ -47,7 +47,7 @@ var McpOutput = Schema.Struct({
|
|
|
47
47
|
content: Schema.Array(Schema.Struct({ type: Schema.Literal("text"), text: Schema.String })),
|
|
48
48
|
structuredContent: SearchResponse
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Plugin37 = define({
|
|
51
51
|
id: "opencode.websearch.parallel",
|
|
52
52
|
effect: Effect.fn("WebSearchParallel.Plugin")(function* (ctx) {
|
|
53
53
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -93,4 +93,4 @@ var Plugin9 = define({
|
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export { endpoint5,
|
|
96
|
+
export { endpoint5, Plugin37, exports_parallel };
|
|
@@ -5,26 +5,26 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./aisdk-native-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./aisdk-native-
|
|
8
|
+
Service75
|
|
9
|
+
} from "./aisdk-native-wk3ypdaq.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./aisdk-native-
|
|
11
|
+
Service42
|
|
12
|
+
} from "./aisdk-native-h7c2rqcj.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./aisdk-native-
|
|
14
|
+
Service41
|
|
15
|
+
} from "./aisdk-native-cjq1148t.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./aisdk-native-
|
|
21
|
+
} from "./aisdk-native-vqr31nzc.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./aisdk-native-
|
|
23
|
+
Service71
|
|
24
|
+
} from "./aisdk-native-g4bm5adv.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./aisdk-native-
|
|
26
|
+
Service70
|
|
27
|
+
} from "./aisdk-native-p1p0zqxa.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -34,8 +34,8 @@ var exports_glob = {};
|
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
36
|
Input: () => Input5,
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
37
|
+
Output: () => Output3,
|
|
38
|
+
Plugin: () => Plugin23,
|
|
39
39
|
name: () => name5,
|
|
40
40
|
toModelContent: () => toModelContent3
|
|
41
41
|
});
|
|
@@ -55,7 +55,7 @@ var Input5 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
58
|
+
var Output3 = Schema.Array(Entry2);
|
|
59
59
|
var toModelContent3 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
@@ -63,20 +63,20 @@ var toModelContent3 = (entries, truncated = false) => {
|
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin23 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service42;
|
|
70
|
+
const ripgrep = yield* Service41;
|
|
71
|
+
const location = yield* Service75;
|
|
72
|
+
const access = yield* Service70;
|
|
73
|
+
const permission = yield* Service71;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
75
|
name: name5,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
78
|
input: Input5,
|
|
79
|
-
output:
|
|
79
|
+
output: Output3,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
@@ -125,4 +125,4 @@ var Plugin20 = {
|
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { name5, Input5,
|
|
128
|
+
export { name5, Input5, Output3, toModelContent3, Plugin23, exports_glob };
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./aisdk-native-
|
|
2
|
+
ID16,
|
|
3
|
+
Service74
|
|
4
|
+
} from "./aisdk-native-tmj2byc7.js";
|
|
5
|
+
import {
|
|
6
|
+
Ref2,
|
|
7
|
+
Service63
|
|
8
|
+
} from "./aisdk-native-6qmp3fby.js";
|
|
5
9
|
import {
|
|
6
10
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./aisdk-native-
|
|
11
|
+
Service54
|
|
12
|
+
} from "./aisdk-native-ry6xxh2r.js";
|
|
9
13
|
import {
|
|
10
14
|
SessionSchema2
|
|
11
|
-
} from "./aisdk-native-
|
|
15
|
+
} from "./aisdk-native-q3t37ft6.js";
|
|
12
16
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./aisdk-native-
|
|
17
|
+
Service53
|
|
18
|
+
} from "./aisdk-native-nz76xpbf.js";
|
|
15
19
|
import {
|
|
16
20
|
evaluate2,
|
|
17
|
-
|
|
18
|
-
} from "./aisdk-native-
|
|
21
|
+
Service71
|
|
22
|
+
} from "./aisdk-native-g4bm5adv.js";
|
|
19
23
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./aisdk-native-
|
|
24
|
+
Service18
|
|
25
|
+
} from "./aisdk-native-147w0500.js";
|
|
22
26
|
import {
|
|
23
27
|
NO_TEXT2
|
|
24
28
|
} from "./aisdk-native-x1ezjp6w.js";
|
|
25
29
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./aisdk-native-
|
|
30
|
+
make6
|
|
31
|
+
} from "./aisdk-native-xn9n415p.js";
|
|
28
32
|
import {
|
|
29
33
|
__export
|
|
30
34
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -32,16 +36,16 @@ import {
|
|
|
32
36
|
// src/tool/plugin/subagent.ts
|
|
33
37
|
var exports_subagent = {};
|
|
34
38
|
__export(exports_subagent, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Output: () =>
|
|
37
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input8,
|
|
40
|
+
Output: () => Output6,
|
|
41
|
+
Plugin: () => Plugin26,
|
|
38
42
|
SubagentTool: () => exports_subagent,
|
|
39
43
|
description: () => description3,
|
|
40
|
-
name: () =>
|
|
44
|
+
name: () => name8
|
|
41
45
|
});
|
|
42
46
|
import { ToolFailure } from "@opencode/ai";
|
|
43
47
|
import { Effect, Schema } from "effect";
|
|
44
|
-
var
|
|
48
|
+
var name8 = "subagent";
|
|
45
49
|
var backgroundResult = (sessionID) => ({
|
|
46
50
|
sessionID,
|
|
47
51
|
status: "running",
|
|
@@ -52,10 +56,15 @@ var backgroundResult = (sessionID) => ({
|
|
|
52
56
|
].join(`
|
|
53
57
|
`)
|
|
54
58
|
});
|
|
55
|
-
var
|
|
56
|
-
agent: Schema.String.annotate({
|
|
59
|
+
var Input8 = Schema.Struct({
|
|
60
|
+
agent: Schema.String.annotate({
|
|
61
|
+
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
|
+
}),
|
|
57
63
|
description: Schema.String.annotate({ description: "A short 3-5 word label for the task, displayed to the user" }),
|
|
58
64
|
prompt: Schema.String.annotate({ description: "The task for the subagent to perform" }),
|
|
65
|
+
model: Schema.optionalKey(Schema.String).annotate({
|
|
66
|
+
description: 'NEVER set this unless the user explicitly asks for a particular model or variant. The value is written as "providerID/modelID", or "providerID/modelID#variant" to include a variant. Do not guess the ID: look the model up with the models tool, filtering to your own provider first.'
|
|
67
|
+
}),
|
|
59
68
|
sessionID: Schema.optionalKey(SessionSchema2.ID).annotate({
|
|
60
69
|
description: "Continue a specific previous subagent conversation by passing its sessionID. Calls without a sessionID start a new conversation."
|
|
61
70
|
}),
|
|
@@ -63,7 +72,7 @@ var Input3 = Schema.Struct({
|
|
|
63
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
64
73
|
})
|
|
65
74
|
});
|
|
66
|
-
var
|
|
75
|
+
var Output6 = Schema.Struct({
|
|
67
76
|
sessionID: SessionSchema2.ID,
|
|
68
77
|
status: Schema.Literals(["completed", "running"]),
|
|
69
78
|
output: Schema.String
|
|
@@ -77,21 +86,40 @@ var description3 = [
|
|
|
77
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
78
87
|
].join(`
|
|
79
88
|
`);
|
|
80
|
-
var
|
|
89
|
+
var Plugin26 = {
|
|
81
90
|
id: "opencode.tool.subagent",
|
|
82
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
83
|
-
const sessions = yield*
|
|
84
|
-
const jobs = yield*
|
|
85
|
-
const agents = yield*
|
|
86
|
-
const config = yield*
|
|
87
|
-
const permission = yield*
|
|
88
|
-
const
|
|
92
|
+
const sessions = yield* Service18;
|
|
93
|
+
const jobs = yield* Service53;
|
|
94
|
+
const agents = yield* Service74;
|
|
95
|
+
const config = yield* Service54;
|
|
96
|
+
const permission = yield* Service71;
|
|
97
|
+
const models = yield* Service63;
|
|
98
|
+
const subagents = yield* make6;
|
|
99
|
+
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
|
+
const ref = yield* Effect.try({
|
|
101
|
+
try: () => Ref2.parse(input),
|
|
102
|
+
catch: () => new ToolFailure({
|
|
103
|
+
message: `Invalid model "${input}". Use "providerID/modelID" or "providerID/modelID#variant".`
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
const model = (yield* models.available()).find((model) => model.providerID === ref.providerID && model.id === ref.id);
|
|
107
|
+
if (model === undefined)
|
|
108
|
+
return yield* new ToolFailure({
|
|
109
|
+
message: `Model "${ref.providerID}/${ref.id}" is not available. Use the models tool to see what is available.`
|
|
110
|
+
});
|
|
111
|
+
if (ref.variant !== undefined && !model.variants.some((variant) => variant.id === ref.variant))
|
|
112
|
+
return yield* new ToolFailure({
|
|
113
|
+
message: model.variants.length === 0 ? `Model "${ref.providerID}/${ref.id}" has no variants. Omit the variant.` : `Variant "${ref.variant}" is not available for "${ref.providerID}/${ref.id}". Available: ${model.variants.map((variant) => variant.id).join(", ")}.`
|
|
114
|
+
});
|
|
115
|
+
return ref;
|
|
116
|
+
});
|
|
89
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
90
|
-
name:
|
|
118
|
+
name: name8,
|
|
91
119
|
options: { codemode: false },
|
|
92
120
|
description: description3,
|
|
93
|
-
input:
|
|
94
|
-
output:
|
|
121
|
+
input: Input8,
|
|
122
|
+
output: Output6,
|
|
95
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
96
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
97
125
|
let current = parent;
|
|
@@ -111,7 +139,7 @@ var Plugin18 = {
|
|
|
111
139
|
if (agent.mode === "primary")
|
|
112
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
113
141
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
142
|
+
action: name8,
|
|
115
143
|
resources: [agent.id],
|
|
116
144
|
save: [agent.id],
|
|
117
145
|
sessionID: context.sessionID,
|
|
@@ -127,14 +155,20 @@ var Plugin18 = {
|
|
|
127
155
|
return yield* new ToolFailure({
|
|
128
156
|
message: `Session ${existing.id} is not a child of the current session`
|
|
129
157
|
});
|
|
130
|
-
|
|
131
|
-
|
|
158
|
+
const override = input.model === undefined ? undefined : yield* resolveModel(input.model);
|
|
159
|
+
if (existing !== undefined) {
|
|
160
|
+
const switched = existing.agent !== agent.id;
|
|
161
|
+
const model = override ?? (switched ? agent.model : undefined);
|
|
162
|
+
yield* Effect.all([
|
|
163
|
+
switched ? sessions.switchAgent({ sessionID: existing.id, agent: agent.id }) : Effect.void,
|
|
164
|
+
model === undefined ? Effect.void : sessions.switchModel({ sessionID: existing.id, model })
|
|
165
|
+
]).pipe(Effect.mapError((error) => new ToolFailure({ message: `Failed to switch subagent session: ${existing.id}`, error })));
|
|
132
166
|
}
|
|
133
|
-
const model = agent.model ?? parent.model;
|
|
167
|
+
const model = override ?? agent.model ?? parent.model;
|
|
134
168
|
const child = existing ?? (yield* sessions.create({
|
|
135
169
|
parentID: context.sessionID,
|
|
136
170
|
title: input.description,
|
|
137
|
-
agent:
|
|
171
|
+
agent: ID16.make(input.agent),
|
|
138
172
|
model
|
|
139
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
140
174
|
const background = input.background === true;
|
|
@@ -184,13 +218,13 @@ ${output.output}
|
|
|
184
218
|
})))
|
|
185
219
|
})).pipe(Effect.orDie);
|
|
186
220
|
const hook = (event) => Effect.gen(function* () {
|
|
187
|
-
const tool = event.tools[
|
|
221
|
+
const tool = event.tools[name8];
|
|
188
222
|
if (!tool)
|
|
189
223
|
return;
|
|
190
224
|
const selected = yield* agents.resolve(event.agent);
|
|
191
225
|
if (!selected)
|
|
192
226
|
return;
|
|
193
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
227
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
194
228
|
if (available.length === 0)
|
|
195
229
|
return;
|
|
196
230
|
tool.description = [
|
|
@@ -207,4 +241,4 @@ ${output.output}
|
|
|
207
241
|
})
|
|
208
242
|
};
|
|
209
243
|
|
|
210
|
-
export {
|
|
244
|
+
export { name8, Input8, Output6, description3, Plugin26, exports_subagent };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./aisdk-native-
|
|
2
|
+
ID16
|
|
3
|
+
} from "./aisdk-native-tmj2byc7.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./aisdk-native-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./aisdk-native-
|
|
8
|
+
Info19
|
|
9
|
+
} from "./aisdk-native-6n88yxkj.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
|
-
} from "./aisdk-native-
|
|
12
|
+
} from "./aisdk-native-3n8ee3c4.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./aisdk-native-
|
|
15
|
+
Service54
|
|
16
|
+
} from "./aisdk-native-ry6xxh2r.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
19
|
} from "./aisdk-native-5daktx2q.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/config/plugin/agent.ts
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
27
|
-
ConfigAgentPlugin: () =>
|
|
28
|
-
Plugin: () =>
|
|
25
|
+
var exports_agent = {};
|
|
26
|
+
__export(exports_agent, {
|
|
27
|
+
ConfigAgentPlugin: () => exports_agent,
|
|
28
|
+
Plugin: () => Plugin17
|
|
29
29
|
});
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { Document, Info } from "@opencode/schema/config";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info19);
|
|
44
44
|
var decodeConfig = Schema.decodeUnknownOption(Info);
|
|
45
45
|
var pathActions = ["external_directory", "read", "edit"];
|
|
46
46
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
47
|
-
var
|
|
47
|
+
var Plugin17 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service54;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -76,13 +76,13 @@ var Plugin37 = define({
|
|
|
76
76
|
const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
|
|
77
77
|
const configuredDefault = latest2(loaded.documents, "default_agent");
|
|
78
78
|
if (configuredDefault !== undefined)
|
|
79
|
-
editor.default(
|
|
79
|
+
editor.default(ID16.make(configuredDefault));
|
|
80
80
|
for (const current of editor.list()) {
|
|
81
81
|
editor.update(current.id, (agent) => agent.permissions.push(...permissions));
|
|
82
82
|
}
|
|
83
83
|
for (const document of loaded.documents) {
|
|
84
84
|
for (const [id, item] of Object.entries(document.info.agents ?? {})) {
|
|
85
|
-
const agentID =
|
|
85
|
+
const agentID = ID16.make(id);
|
|
86
86
|
if (item.disabled) {
|
|
87
87
|
editor.remove(agentID);
|
|
88
88
|
continue;
|
|
@@ -161,4 +161,4 @@ function decode(file, content) {
|
|
|
161
161
|
return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { Plugin17, exports_agent };
|