@opencode/core 0.0.0-dev-20169 → 0.0.0-dev-20175
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 +62 -62
- package/dist/aisdk-native.js +61 -61
- package/dist/aisdk.js +66 -66
- package/dist/app.js +9 -9
- package/dist/bus.js +53 -53
- package/dist/chunks/{mime-6x3df6m5.js → mime-038cbjbn.js} +13 -13
- package/dist/chunks/{mime-4fewzrdd.js → mime-0anb59kh.js} +13 -13
- package/dist/chunks/{mime-fk8kps10.js → mime-0hn7mjnx.js} +9 -9
- package/dist/chunks/{mime-e6hmchc5.js → mime-0r7yqxbf.js} +3 -3
- package/dist/chunks/{mime-nsandnz2.js → mime-0sadyvpa.js} +4 -4
- package/dist/chunks/{mime-89bb6baa.js → mime-0tzy42a9.js} +7 -7
- package/dist/chunks/{mime-4mj1cvph.js → mime-153c4z9z.js} +21 -21
- package/dist/chunks/{mime-ykbetyw3.js → mime-170hdxs4.js} +3 -3
- package/dist/chunks/{mime-yp2x3t23.js → mime-1acjjqhc.js} +3 -3
- package/dist/chunks/{mime-cvh6twbq.js → mime-1bmj1kf2.js} +9 -9
- package/dist/chunks/{mime-8pkr1zz8.js → mime-1d35eqgr.js} +4 -4
- package/dist/chunks/{mime-r33ff4dw.js → mime-1nzs1dt7.js} +5 -5
- package/dist/chunks/{mime-6gb804jb.js → mime-1q1h4scy.js} +30 -30
- package/dist/chunks/{mime-jg3tkmqv.js → mime-1q9kvn7y.js} +17 -17
- package/dist/chunks/{mime-56gdpj1q.js → mime-1ygqh575.js} +7 -7
- package/dist/chunks/{mime-fya34y6j.js → mime-22s5ds6t.js} +14 -14
- package/dist/chunks/{mime-zy1hsbqs.js → mime-234qydz7.js} +3 -3
- package/dist/chunks/{mime-6h73sxmp.js → mime-2402vzrj.js} +4 -4
- package/dist/chunks/{mime-4v0ac6w2.js → mime-27em9pm7.js} +9 -9
- package/dist/chunks/{mime-z63w68vq.js → mime-29x78va6.js} +4 -4
- package/dist/chunks/{mime-bf4gbvg4.js → mime-2bekqz3a.js} +13 -13
- package/dist/chunks/{mime-qed5jbce.js → mime-2cfadnaz.js} +4 -4
- package/dist/chunks/{mime-dmy463da.js → mime-2dy1p8ya.js} +13 -13
- package/dist/chunks/{mime-07xxyaze.js → mime-2gw68b84.js} +21 -21
- package/dist/chunks/{mime-qgn6gcr1.js → mime-2k8khapm.js} +4 -4
- package/dist/chunks/{mime-246wn8dt.js → mime-2kdwgsh2.js} +13 -13
- package/dist/chunks/{mime-qmp029tv.js → mime-2nah3rm6.js} +10 -10
- package/dist/chunks/{mime-96172wp9.js → mime-2py3gdf7.js} +17 -17
- package/dist/chunks/{mime-d15a5crh.js → mime-2vm2mn6r.js} +33 -33
- package/dist/chunks/{mime-zvt5dnpc.js → mime-2vs2nh1n.js} +3 -3
- package/dist/chunks/{mime-fxfxepgh.js → mime-30vqxvem.js} +3 -3
- package/dist/chunks/{mime-r205r7v3.js → mime-3153j44s.js} +33 -33
- package/dist/chunks/{mime-fydjrjbk.js → mime-3559wj1e.js} +22 -22
- package/dist/chunks/{mime-rdhh766h.js → mime-35kmpahp.js} +1 -1
- package/dist/chunks/{mime-hvt58z0f.js → mime-3js9yjpf.js} +30 -30
- package/dist/chunks/{mime-dj9sq318.js → mime-3w0fmcng.js} +3 -3
- package/dist/chunks/{mime-2qtvb2sf.js → mime-41km3kz5.js} +13 -13
- package/dist/chunks/{mime-2735jr6x.js → mime-42wz0x18.js} +8 -8
- package/dist/chunks/{mime-r2de5yng.js → mime-44d35g97.js} +25 -25
- package/dist/chunks/{mime-qczqf1dc.js → mime-44vkmz6z.js} +26 -26
- package/dist/chunks/{mime-mb4xa1j6.js → mime-45v820cx.js} +33 -33
- package/dist/chunks/{mime-vs4a43ce.js → mime-49zwtcb8.js} +54 -54
- package/dist/chunks/{mime-0s890w15.js → mime-4crc4jdm.js} +5 -5
- package/dist/chunks/{mime-0e9d45z6.js → mime-4fvze959.js} +36 -36
- package/dist/chunks/{mime-vqm199mj.js → mime-4j2jd05g.js} +28 -28
- package/dist/chunks/{mime-ywg7ry4y.js → mime-508mdezp.js} +2 -2
- package/dist/chunks/{mime-vt049zkw.js → mime-54g84kz9.js} +15 -15
- package/dist/chunks/{mime-xfkkasph.js → mime-57b9ws8p.js} +6 -6
- package/dist/chunks/{mime-vps92m75.js → mime-5fb55ywp.js} +7 -7
- package/dist/chunks/{mime-txm26eb2.js → mime-5pyf4h0a.js} +19 -19
- package/dist/chunks/{mime-ck42neey.js → mime-5s4prcyn.js} +34 -34
- package/dist/chunks/{mime-p42hj8p8.js → mime-5yzzbxa7.js} +7 -7
- package/dist/chunks/{mime-nr80y6k7.js → mime-605gm5cj.js} +25 -25
- package/dist/chunks/{mime-70dy1mpp.js → mime-6aq6s8eb.js} +7 -7
- package/dist/chunks/mime-6cjeyrsw.js +26 -0
- package/dist/chunks/{mime-0996nyz8.js → mime-6hjx5zpb.js} +3 -3
- package/dist/chunks/{mime-xjzvydkr.js → mime-6r5c0w9g.js} +23 -23
- package/dist/chunks/{mime-mw0cehm6.js → mime-6rfetefd.js} +2 -2
- package/dist/chunks/{mime-2xqf92me.js → mime-743spchq.js} +1 -1
- package/dist/chunks/{mime-mzqhsy22.js → mime-75xs070m.js} +11 -11
- package/dist/chunks/{mime-bz63ghv0.js → mime-77a7k1x9.js} +30 -30
- package/dist/chunks/{mime-7e3zd5d4.js → mime-79bvek48.js} +16 -16
- package/dist/chunks/{mime-6260z82e.js → mime-7cgya2dp.js} +15 -15
- package/dist/chunks/{mime-denbd3k6.js → mime-7psk4stz.js} +22 -22
- package/dist/chunks/{mime-ww571ven.js → mime-7r6qf5r7.js} +20 -20
- package/dist/chunks/{mime-xbmsj09z.js → mime-7tbrah22.js} +7 -7
- package/dist/chunks/{mime-bdn7vv49.js → mime-7tycp833.js} +8 -8
- package/dist/chunks/{mime-ywvtc5g7.js → mime-7wny7pda.js} +24 -24
- package/dist/chunks/{mime-scnv85zn.js → mime-7xsf7rnq.js} +10 -10
- package/dist/chunks/{mime-0x4ra8ng.js → mime-82e83hjb.js} +13 -13
- package/dist/chunks/{mime-ae1n2vcd.js → mime-83m6sd17.js} +1 -1
- package/dist/chunks/{mime-b6fp2acj.js → mime-86aj54kq.js} +34 -34
- package/dist/chunks/{mime-axrwawvg.js → mime-87d9dw5n.js} +7 -7
- package/dist/chunks/{mime-tcezcvh9.js → mime-89znhe33.js} +3 -3
- package/dist/chunks/{mime-t5a2hf0x.js → mime-8fyve6nd.js} +10 -10
- package/dist/chunks/{mime-ennxz5nn.js → mime-97sgz6yw.js} +19 -19
- package/dist/chunks/{mime-5r6fx1qs.js → mime-9g6t6zrh.js} +16 -16
- package/dist/chunks/{mime-qrmaq0pw.js → mime-9hhm9pvq.js} +12 -12
- package/dist/chunks/{mime-d6h5jf52.js → mime-9k86q3aq.js} +6 -6
- package/dist/chunks/{mime-p0bpn1a8.js → mime-aamn49ap.js} +40 -40
- package/dist/chunks/{mime-m6nec9qq.js → mime-ae0nwvy8.js} +3 -3
- package/dist/chunks/{mime-bm3m92rh.js → mime-afed7ext.js} +7 -7
- package/dist/chunks/{mime-jwm73ahz.js → mime-ajt4fata.js} +6 -6
- package/dist/chunks/{mime-xjzb32y7.js → mime-amgtyp96.js} +13 -13
- package/dist/chunks/{mime-ghw31w7j.js → mime-anq3081s.js} +8 -8
- package/dist/chunks/{mime-j1nzbrzj.js → mime-aqd372pc.js} +20 -20
- package/dist/chunks/{mime-mbdf20a3.js → mime-b4yeq8gw.js} +15 -15
- package/dist/chunks/{mime-3sz51aqf.js → mime-b95dy7zp.js} +9 -9
- package/dist/chunks/{mime-mk2tfswv.js → mime-bb26mjzh.js} +11 -11
- package/dist/chunks/{mime-gk9fhfww.js → mime-bbjzvta2.js} +24 -24
- package/dist/chunks/{mime-xdfcdmq0.js → mime-bc3t5yes.js} +25 -25
- package/dist/chunks/{mime-vv7f1353.js → mime-beezqa8w.js} +16 -16
- package/dist/chunks/{mime-s3mp4eq0.js → mime-bg87x2pg.js} +11 -11
- package/dist/chunks/{mime-xdsb90ts.js → mime-bjzh7m45.js} +9 -9
- package/dist/chunks/{mime-ybhbtxjg.js → mime-bpcm8v83.js} +7 -7
- package/dist/chunks/{mime-py5b7878.js → mime-c1ckp43n.js} +8 -8
- package/dist/chunks/{mime-ghghsxj7.js → mime-c4bh15tq.js} +18 -18
- package/dist/chunks/{mime-neam7ak9.js → mime-c77x7g6d.js} +25 -25
- package/dist/chunks/{mime-ak9msbxp.js → mime-cjwramev.js} +3 -3
- package/dist/chunks/{mime-wbbqzpfk.js → mime-cz43zx57.js} +8 -8
- package/dist/chunks/{mime-8cmactcw.js → mime-cz6jyf1n.js} +1 -1
- package/dist/chunks/{mime-bemp11m2.js → mime-d7aqhzds.js} +88 -88
- package/dist/chunks/{mime-ybfnsx4m.js → mime-d858xzj7.js} +3 -3
- package/dist/chunks/{mime-jpva2q9q.js → mime-d866bxqg.js} +9 -9
- package/dist/chunks/{mime-ck4n2qmk.js → mime-de35ch4m.js} +10 -10
- package/dist/chunks/{mime-0v53mg2y.js → mime-dfe8djrf.js} +3 -3
- package/dist/chunks/{mime-amtxatrd.js → mime-dhc0xkxm.js} +38 -38
- package/dist/chunks/{mime-5cta56rp.js → mime-ds0wtj4e.js} +1 -1
- package/dist/chunks/{mime-gyn306pg.js → mime-dtt66365.js} +20 -20
- package/dist/chunks/{mime-6asax46e.js → mime-dy59ndr5.js} +59 -59
- package/dist/chunks/{mime-x0k0k3nk.js → mime-dzqga1rh.js} +24 -24
- package/dist/chunks/{mime-58m92xrk.js → mime-e0ps24dg.js} +15 -15
- package/dist/chunks/{mime-5qd3pb7m.js → mime-e3qxr5gk.js} +2 -2
- package/dist/chunks/{mime-2y6wvzw1.js → mime-ekv8efyj.js} +8 -8
- package/dist/chunks/{mime-qr124z36.js → mime-enh3xt40.js} +7 -7
- package/dist/chunks/{mime-8fvtg4q1.js → mime-enmnh83w.js} +21 -21
- package/dist/chunks/{mime-mvfsc1pv.js → mime-eq1pz5kg.js} +2 -2
- package/dist/chunks/{mime-1cn8p0vk.js → mime-et8918tz.js} +3 -3
- package/dist/chunks/{mime-n2we63qy.js → mime-ey8kmd5x.js} +15 -15
- package/dist/chunks/{mime-j9ty9cws.js → mime-ezyw3hyt.js} +1 -1
- package/dist/chunks/{mime-yd0n98jr.js → mime-f1yg1ebf.js} +34 -34
- package/dist/chunks/{mime-sdaymwv4.js → mime-f2dxdeh3.js} +17 -17
- package/dist/chunks/{mime-eq9tcww4.js → mime-fdjzn7y9.js} +22 -22
- package/dist/chunks/{mime-4xvevn0r.js → mime-fee1sgdn.js} +28 -28
- package/dist/chunks/{mime-zc2nbk21.js → mime-fp67s591.js} +20 -20
- package/dist/chunks/{mime-jexxy024.js → mime-fpnx24t4.js} +3 -3
- package/dist/chunks/{mime-ec7jv6ne.js → mime-gqy8xtzk.js} +49 -49
- package/dist/chunks/{mime-9nj21xqc.js → mime-gwydwvmj.js} +7 -7
- package/dist/chunks/{mime-xr349t4n.js → mime-gxvazm9p.js} +8 -8
- package/dist/chunks/{mime-fbfwk3fg.js → mime-h4dg678n.js} +4 -4
- package/dist/chunks/{mime-me0b0vjg.js → mime-h69067hd.js} +10 -10
- package/dist/chunks/{mime-r55vasa2.js → mime-h6r3nrb9.js} +3 -3
- package/dist/chunks/{mime-vyqn3nqs.js → mime-hdzt82x2.js} +3 -3
- package/dist/chunks/{mime-6ka24jaf.js → mime-hqrt1rb2.js} +16 -16
- package/dist/chunks/mime-hr9dp009.js +4 -0
- package/dist/chunks/{mime-z19932rd.js → mime-ht3seza6.js} +24 -24
- package/dist/chunks/{mime-j8m1p4p1.js → mime-j34bs4nz.js} +3 -3
- package/dist/chunks/{mime-1dybw484.js → mime-j5fqsg2e.js} +334 -334
- package/dist/chunks/{mime-8b6wz1s2.js → mime-j8afcsyc.js} +3 -3
- package/dist/chunks/{mime-nyrwqgn4.js → mime-ja923fd7.js} +7 -13
- package/dist/chunks/{mime-f5gy8qwh.js → mime-k1qrnqst.js} +7 -7
- package/dist/chunks/{mime-r6fqv44t.js → mime-k28tmd1k.js} +12 -12
- package/dist/chunks/{mime-rs4eeekc.js → mime-k7z0z15n.js} +11 -11
- package/dist/chunks/{mime-t2fc4mz5.js → mime-k8962brh.js} +6 -6
- package/dist/chunks/{mime-zmb1q919.js → mime-k8fbnnjg.js} +31 -31
- package/dist/chunks/{mime-ryps5y1f.js → mime-kea5jqe6.js} +32 -32
- package/dist/chunks/{mime-tw1e01ej.js → mime-ket7y27p.js} +65 -65
- package/dist/chunks/{mime-cs3vqxz8.js → mime-m7x0jkmn.js} +4 -4
- package/dist/chunks/{mime-jq7v6dgk.js → mime-m9rvph0x.js} +8 -8
- package/dist/chunks/{mime-xpxhmcar.js → mime-mbjbnbxx.js} +7 -7
- package/dist/chunks/{mime-mbh094q3.js → mime-mgmaefw5.js} +3 -3
- package/dist/chunks/{mime-547acfmc.js → mime-mh42mebz.js} +9 -9
- package/dist/chunks/{mime-ta6q38yf.js → mime-mhmbnrp5.js} +12 -12
- package/dist/chunks/{mime-h0jd11tf.js → mime-mpmqpgh5.js} +5 -5
- package/dist/chunks/{mime-mvksx64m.js → mime-n1ka8r9d.js} +1 -1
- package/dist/chunks/{mime-cmx4q0sw.js → mime-ndz9h71m.js} +2 -2
- package/dist/chunks/{mime-ew79ghek.js → mime-nes9re6y.js} +6 -6
- package/dist/chunks/{mime-fqvsmr7a.js → mime-ny1bawyf.js} +12 -12
- package/dist/chunks/{mime-empm8ahp.js → mime-p3vh2ta0.js} +26 -26
- package/dist/chunks/{mime-hp23trsw.js → mime-p42cb6gq.js} +39 -39
- package/dist/chunks/{mime-gs4bd3ck.js → mime-pebjh6nn.js} +12 -12
- package/dist/chunks/{mime-sc7svgdt.js → mime-ppv6hta6.js} +18 -18
- package/dist/chunks/{mime-vg1ctdtm.js → mime-ppvvtx0s.js} +18 -18
- package/dist/chunks/{mime-f9hgfqpn.js → mime-q2kneea3.js} +16 -16
- package/dist/chunks/{mime-a3r4dcrj.js → mime-q970vn6j.js} +1 -1
- package/dist/chunks/{mime-84zt2byv.js → mime-qg0jgkcp.js} +7 -7
- package/dist/chunks/{mime-djgw09t3.js → mime-qh8qw1yz.js} +12 -12
- package/dist/chunks/{mime-cwa6csj7.js → mime-qmqgtz8f.js} +7 -7
- package/dist/chunks/{mime-acp8wmh6.js → mime-qms6mpje.js} +18 -18
- package/dist/chunks/{mime-dyynjqpa.js → mime-qp9qrtp0.js} +43 -43
- package/dist/chunks/{mime-16cax9zb.js → mime-qs001aqx.js} +9 -9
- package/dist/chunks/{mime-ddzkc74p.js → mime-qs50n71f.js} +17 -17
- package/dist/chunks/{mime-0r9gc419.js → mime-r398a7yx.js} +6 -6
- package/dist/chunks/{mime-h99x4ah1.js → mime-r9302q9a.js} +28 -28
- package/dist/chunks/{mime-rpka6xkw.js → mime-rbe8s94e.js} +11 -11
- package/dist/chunks/{mime-t3wpcfc0.js → mime-re33y59c.js} +20 -20
- package/dist/chunks/{mime-phfznvh9.js → mime-rk5e9k3p.js} +88 -88
- package/dist/chunks/{mime-byjwxeqw.js → mime-rp5c3k0s.js} +42 -42
- package/dist/chunks/{mime-44ykbs4n.js → mime-s17k9x7e.js} +9 -9
- package/dist/chunks/{mime-dhcd5s6n.js → mime-s25qb6rd.js} +9 -9
- package/dist/chunks/{mime-yrznvahk.js → mime-s4enseaf.js} +1 -1
- package/dist/chunks/{mime-3h23es9p.js → mime-s8r0mwsn.js} +39 -39
- package/dist/chunks/{mime-ax1mpjb7.js → mime-sdg1gcr0.js} +25 -25
- package/dist/chunks/{mime-wwz2c70k.js → mime-sk4fpzkz.js} +14 -14
- package/dist/chunks/{mime-909p1r3q.js → mime-sxzvkvgj.js} +5 -5
- package/dist/chunks/{mime-t73dcxme.js → mime-t4ay05z1.js} +8 -8
- package/dist/chunks/{mime-rhjbct0v.js → mime-t550f9t1.js} +3 -3
- package/dist/chunks/{mime-1qspzcx3.js → mime-t550g8gs.js} +10 -10
- package/dist/chunks/{mime-q1tmktbx.js → mime-t5ra0cz4.js} +9 -9
- package/dist/chunks/{mime-pjwpcx5g.js → mime-t6f3wjjb.js} +31 -31
- package/dist/chunks/{mime-j26kfq5v.js → mime-tggd67fe.js} +15 -15
- package/dist/chunks/{mime-t0dhg9xm.js → mime-tgwh4g45.js} +1 -1
- package/dist/chunks/{mime-5796tcck.js → mime-tz679c1q.js} +3 -3
- package/dist/chunks/{mime-f81tjggh.js → mime-v1faaxn9.js} +4 -4
- package/dist/chunks/{mime-0gs1t9y7.js → mime-v6v677s0.js} +25 -25
- package/dist/chunks/{mime-4a39hndw.js → mime-vc794bvv.js} +181 -181
- package/dist/chunks/{mime-6qx8bc3d.js → mime-vfwfag5t.js} +24 -24
- package/dist/chunks/{mime-jqfs4f8t.js → mime-vj9r822s.js} +43 -43
- package/dist/chunks/{mime-n4djqr79.js → mime-vq9mnbss.js} +27 -27
- package/dist/chunks/{mime-prpf8ftn.js → mime-vw5a0rfv.js} +1 -1
- package/dist/chunks/{mime-ccksk4yj.js → mime-w41yqvvp.js} +14 -14
- package/dist/chunks/{mime-xf3wnvpw.js → mime-w5py834v.js} +31 -31
- package/dist/chunks/{mime-8sze2n9a.js → mime-w92k2e0p.js} +3 -3
- package/dist/chunks/{mime-1kppbkx0.js → mime-whvrryqk.js} +23 -23
- package/dist/chunks/{mime-1fw2a5v8.js → mime-ws8rf1n9.js} +14 -14
- package/dist/chunks/{mime-f4d0s1t2.js → mime-wskervgn.js} +14 -14
- package/dist/chunks/{mime-ce49hgg3.js → mime-wvjy0rkm.js} +2 -2
- package/dist/chunks/{mime-0ryd0fps.js → mime-x2rw7g36.js} +3 -3
- package/dist/chunks/{mime-xjyydmb8.js → mime-x9d81cjr.js} +8 -8
- package/dist/chunks/{mime-492avacy.js → mime-xaqyyngn.js} +7 -7
- package/dist/chunks/{mime-g190xswt.js → mime-xdk9p2qn.js} +20 -20
- package/dist/chunks/{mime-mv8r48y5.js → mime-xjtpc5ew.js} +19 -19
- package/dist/chunks/{mime-thpvyx44.js → mime-xmj1c5tj.js} +21 -21
- package/dist/chunks/{mime-dx066ber.js → mime-xsjv728j.js} +8 -8
- package/dist/chunks/{mime-tme7ypnb.js → mime-xxc26qrd.js} +16 -16
- package/dist/chunks/{mime-chwtr2e5.js → mime-y5xqhydv.js} +30 -30
- package/dist/chunks/{mime-aq494hqz.js → mime-y8yd5a40.js} +12 -12
- package/dist/chunks/{mime-x8wvmgka.js → mime-yew08yk0.js} +49 -49
- package/dist/chunks/{mime-4nxa3yrp.js → mime-yg64st6f.js} +13 -13
- package/dist/chunks/{mime-wmras1aj.js → mime-ysk4s0pp.js} +10 -10
- package/dist/chunks/mime-yvzdpfbp.js +252 -0
- package/dist/chunks/{mime-9g6mcpc9.js → mime-ywqv77jt.js} +30 -30
- package/dist/chunks/{mime-ebhn8wwf.js → mime-z5km0pse.js} +15 -15
- package/dist/chunks/{mime-x960xs2s.js → mime-z90jk03v.js} +28 -28
- package/dist/chunks/{mime-vzqv0rzd.js → mime-zdcc64ja.js} +4 -4
- package/dist/chunks/{mime-1a49mg8n.js → mime-zefpc43y.js} +16 -16
- package/dist/chunks/{mime-dtb55fr6.js → mime-zkkg3hmv.js} +10 -10
- package/dist/chunks/{mime-cmmdg65p.js → mime-zrq8kphx.js} +7 -7
- package/dist/chunks/{mime-t7vjw3g9.js → mime-zvj905se.js} +10 -10
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +64 -64
- package/dist/config/discovery.js +58 -58
- package/dist/config/normalize.js +76 -76
- package/dist/config/plugin/agent.js +92 -92
- package/dist/config/plugin/command.js +170 -170
- package/dist/config/plugin/compaction.js +123 -123
- package/dist/config/plugin/compatibility.js +108 -108
- package/dist/config/plugin/formatter.js +91 -91
- package/dist/config/plugin/image.js +90 -90
- package/dist/config/plugin/instruction.js +62 -62
- package/dist/config/plugin/location-watcher.js +92 -92
- package/dist/config/plugin/mcp.js +99 -99
- package/dist/config/plugin/policy.js +91 -91
- package/dist/config/plugin/provider.js +90 -90
- package/dist/config/plugin/reference.js +92 -92
- package/dist/config/plugin/shell.js +90 -90
- package/dist/config/plugin/skill-file.js +70 -70
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +90 -90
- package/dist/config/plugin/source.js +93 -93
- package/dist/config/plugin/tool-output.js +92 -92
- package/dist/config/plugin/websearch.js +89 -89
- package/dist/config/plugin/worktree.js +91 -91
- package/dist/config/variable.js +2 -2
- package/dist/config.js +92 -92
- package/dist/credential.js +62 -62
- package/dist/database/database.js +48 -48
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +36 -36
- package/dist/database/migration.js +37 -37
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +240 -240
- package/dist/environment/environment.js +63 -63
- package/dist/environment/index.js +65 -65
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +73 -73
- package/dist/file-mutation.js +64 -64
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +184 -184
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +72 -72
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +12 -12
- package/dist/filesystem.js +77 -77
- package/dist/form.js +56 -56
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +60 -60
- package/dist/generate.js +73 -73
- package/dist/git.js +7 -7
- 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 +63 -63
- 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 +312 -312
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +61 -61
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +62 -62
- package/dist/job.js +55 -55
- package/dist/kv.js +53 -53
- package/dist/location-activity.js +55 -55
- package/dist/location-lifecycle.js +76 -76
- package/dist/location-mutation.js +29 -29
- package/dist/location-service-map.js +60 -60
- package/dist/location-services.js +310 -310
- package/dist/location.js +59 -59
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +16 -16
- package/dist/mcp/index.js +78 -78
- package/dist/mcp/instructions.js +91 -91
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +60 -60
- package/dist/modal/models.js +63 -63
- package/dist/model-resolver.js +70 -70
- package/dist/model.js +74 -74
- package/dist/models-dev.js +79 -79
- package/dist/permission/saved.js +57 -57
- package/dist/permission.js +86 -86
- package/dist/persistent-pty/index.js +63 -63
- package/dist/persistent-pty.js +51 -51
- package/dist/plugin/agent.js +73 -73
- package/dist/plugin/command.js +71 -71
- package/dist/plugin/compaction.js +95 -95
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +175 -175
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +283 -283
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +68 -68
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +71 -71
- package/dist/plugin/provider/amazon-bedrock.js +62 -62
- package/dist/plugin/provider/azure.js +89 -89
- package/dist/plugin/provider/cloudflare-ai-gateway.js +88 -88
- package/dist/plugin/provider/cloudflare-workers-ai.js +88 -88
- package/dist/plugin/provider/configured.js +87 -87
- package/dist/plugin/provider/digitalocean.js +64 -64
- package/dist/plugin/provider/github-copilot.js +65 -65
- package/dist/plugin/provider/gitlab.js +64 -64
- package/dist/plugin/provider/google-vertex.js +62 -62
- package/dist/plugin/provider/llmgateway.js +55 -55
- package/dist/plugin/provider/lmstudio.js +90 -90
- package/dist/plugin/provider/modal.js +64 -64
- package/dist/plugin/provider/ollama.js +90 -90
- package/dist/plugin/provider/openai.js +63 -63
- package/dist/plugin/provider/opencode.js +67 -67
- package/dist/plugin/provider/openrouter.js +63 -63
- package/dist/plugin/provider/poe.js +55 -55
- package/dist/plugin/provider/prompt-cache-key.js +62 -62
- package/dist/plugin/provider/sap-ai-core.js +62 -62
- package/dist/plugin/provider/snowflake-cortex.js +89 -89
- package/dist/plugin/provider/vercel.js +62 -62
- package/dist/plugin/provider/vllm.js +90 -90
- package/dist/plugin/provider/xai.js +63 -63
- package/dist/plugin/provider.js +120 -120
- package/dist/plugin/sdk.js +56 -56
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +109 -109
- package/dist/plugin/supervisor.js +302 -302
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/vcs/git.js +59 -59
- package/dist/plugin/vcs/hg.js +59 -59
- package/dist/plugin/verbosity.js +65 -65
- package/dist/plugin/warming.js +89 -89
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +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 +181 -181
- package/dist/project.js +58 -58
- package/dist/provider.js +73 -73
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +68 -68
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +68 -68
- package/dist/repository-cache.js +60 -60
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +66 -66
- package/dist/rpc.js +60 -60
- package/dist/session/command.js +53 -53
- package/dist/session/compaction.js +94 -94
- package/dist/session/context.js +112 -112
- package/dist/session/diff.js +59 -59
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +93 -93
- package/dist/session/generate.js +113 -113
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +61 -61
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +56 -56
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +68 -68
- package/dist/session/model-request.js +83 -83
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +95 -95
- package/dist/session/projector.js +59 -59
- package/dist/session/prompt.js +73 -73
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +61 -61
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +186 -186
- package/dist/session/runner/model.js +70 -70
- package/dist/session/runner/retry.js +80 -80
- package/dist/session/runner/step.js +88 -88
- 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 +72 -72
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +62 -62
- package/dist/session/subagent-job.js +167 -167
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +115 -115
- package/dist/session/to-session-error.js +79 -79
- package/dist/session/transfer.js +117 -117
- package/dist/session.js +179 -179
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +107 -107
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +76 -76
- package/dist/skill.js +79 -79
- package/dist/snapshot.js +62 -62
- package/dist/tool/mcp.js +90 -90
- package/dist/tool/plugin/edit.js +85 -85
- package/dist/tool/plugin/glob.js +88 -88
- package/dist/tool/plugin/grep.js +90 -90
- package/dist/tool/plugin/mcp-resource.js +82 -82
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +87 -87
- package/dist/tool/plugin/question.js +74 -74
- package/dist/tool/plugin/read.js +91 -91
- package/dist/tool/plugin/shell.js +173 -173
- package/dist/tool/plugin/skill.js +82 -82
- package/dist/tool/plugin/subagent.js +176 -176
- package/dist/tool/plugin/webfetch.js +77 -77
- package/dist/tool/plugin/websearch.js +81 -81
- package/dist/tool/plugin/write.js +87 -87
- package/dist/tool/read-filesystem.js +69 -69
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +11 -11
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/migrate.js +63 -63
- 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 +65 -65
- package/dist/vcs.js +62 -62
- package/dist/websearch.js +63 -63
- package/dist/wellknown/plugin.js +56 -56
- package/dist/wellknown.js +61 -61
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace.js +60 -60
- package/dist/worktree/git.js +4 -4
- package/dist/worktree/strategies.js +61 -61
- package/dist/worktree.js +67 -67
- package/package.json +8 -8
- package/dist/chunks/mime-0rjbbhdn.js +0 -252
- package/dist/chunks/mime-6kdq0pjd.js +0 -4
- package/dist/chunks/mime-gv3av4nc.js +0 -26
- /package/dist/chunks/{mime-4pwxaf10.js → mime-3wrtxrr4.js} +0 -0
- /package/dist/chunks/{mime-f6rek99c.js → mime-6540dvt1.js} +0 -0
- /package/dist/chunks/{mime-rmk2c50f.js → mime-rf80fxgj.js} +0 -0
- /package/dist/chunks/{mime-d1ejf2a0.js → mime-v553wp33.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service46,
|
|
3
|
+
node48
|
|
4
|
+
} from "./mime-z90jk03v.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make19,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./mime-
|
|
10
|
+
} from "./mime-t550f9t1.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./mime-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ReferenceInstructions: () =>
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
16
|
+
var exports_instructions2 = {};
|
|
17
|
+
__export(exports_instructions2, {
|
|
18
|
+
ReferenceInstructions: () => exports_instructions2,
|
|
19
|
+
Service: () => Service21,
|
|
20
|
+
node: () => node25
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,18 +57,18 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service21 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service46;
|
|
64
|
+
return Service21.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
68
68
|
path: reference.path,
|
|
69
69
|
description: reference.description
|
|
70
70
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
71
|
-
return
|
|
71
|
+
return make19({
|
|
72
72
|
key: Key3.make("core/reference-guidance"),
|
|
73
73
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
74
74
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node25 = makeLocationNode({ service: Service21, layer, deps: [node48] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service21, node25, exports_instructions2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./mime-
|
|
4
|
+
} from "./mime-wvjy0rkm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./mime-
|
|
6
|
+
Service83,
|
|
7
|
+
node87
|
|
8
|
+
} from "./mime-b95dy7zp.js";
|
|
9
9
|
import {
|
|
10
10
|
llmClient2
|
|
11
11
|
} from "./mime-5t3nmthw.js";
|
|
@@ -17,28 +17,28 @@ import {
|
|
|
17
17
|
compatible2,
|
|
18
18
|
isCheckpoint2,
|
|
19
19
|
encode2
|
|
20
|
-
} from "./mime-
|
|
20
|
+
} from "./mime-ae0nwvy8.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./mime-
|
|
22
|
+
load4
|
|
23
|
+
} from "./mime-ekv8efyj.js";
|
|
24
24
|
import {
|
|
25
25
|
create3
|
|
26
26
|
} from "./mime-rdw6cm16.js";
|
|
27
27
|
import {
|
|
28
28
|
toLLMMessages2
|
|
29
|
-
} from "./mime-
|
|
29
|
+
} from "./mime-ezyw3hyt.js";
|
|
30
30
|
import {
|
|
31
31
|
baseTranscript2,
|
|
32
32
|
unsupportedParts2,
|
|
33
33
|
boundImages2
|
|
34
|
-
} from "./mime-
|
|
34
|
+
} from "./mime-k8fbnnjg.js";
|
|
35
35
|
import {
|
|
36
36
|
toSessionError2
|
|
37
|
-
} from "./mime-
|
|
37
|
+
} from "./mime-0sadyvpa.js";
|
|
38
38
|
import {
|
|
39
39
|
policy2,
|
|
40
40
|
transient2
|
|
41
|
-
} from "./mime-
|
|
41
|
+
} from "./mime-cz6jyf1n.js";
|
|
42
42
|
import {
|
|
43
43
|
estimate2
|
|
44
44
|
} from "./mime-h6vf3j39.js";
|
|
@@ -54,12 +54,12 @@ import {
|
|
|
54
54
|
// src/session/compaction.ts
|
|
55
55
|
var exports_compaction3 = {};
|
|
56
56
|
__export(exports_compaction3, {
|
|
57
|
-
Service: () =>
|
|
57
|
+
Service: () => Service7,
|
|
58
58
|
SessionCompaction: () => exports_compaction3,
|
|
59
59
|
buildPrompt: () => buildPrompt2,
|
|
60
60
|
estimateTokens: () => estimateTokens2,
|
|
61
61
|
layer: () => layer6,
|
|
62
|
-
node: () =>
|
|
62
|
+
node: () => node9,
|
|
63
63
|
retainUsers: () => retainUsers2,
|
|
64
64
|
serializeToolContent: () => serializeToolContent2,
|
|
65
65
|
truncateToolOutput: () => truncateToolOutput2
|
|
@@ -125,7 +125,7 @@ var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
|
|
|
125
125
|
`).filter((line) => line.startsWith("##"));
|
|
126
126
|
var LEGACY_HEADING = "## Additional Context";
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service7 extends Context.Service()("@opencode/SessionCompaction") {
|
|
129
129
|
}
|
|
130
130
|
var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
|
|
131
131
|
var estimateTokens2 = (input) => {
|
|
@@ -298,8 +298,8 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
298
298
|
};
|
|
299
299
|
var hasSummarySection = (summary) => summary.split(`
|
|
300
300
|
`).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
|
|
301
|
-
var layer6 = Layer.effect(
|
|
302
|
-
const bus = yield*
|
|
301
|
+
var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
302
|
+
const bus = yield* Service83;
|
|
303
303
|
const llm = yield* LLMClient.Service;
|
|
304
304
|
const db = (yield* Service84).db;
|
|
305
305
|
const state = create3({
|
|
@@ -377,7 +377,7 @@ var layer6 = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
377
377
|
webSocket
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
const original = (sessionID) =>
|
|
380
|
+
const original = (sessionID) => load4(db, sessionID, "local").pipe(Effect.orDie);
|
|
381
381
|
const recoverLocally = (input) => original(input.context.session.id).pipe(Effect.flatMap((messages) => execute({ ...input, context: { ...input.context, messages } })));
|
|
382
382
|
const executeProvider = Effect.fn("SessionCompaction.executeProvider")(function* (input) {
|
|
383
383
|
const context = input.context;
|
|
@@ -606,7 +606,7 @@ var layer6 = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
606
606
|
}
|
|
607
607
|
}));
|
|
608
608
|
});
|
|
609
|
-
return
|
|
609
|
+
return Service7.of({
|
|
610
610
|
transform: state.transform,
|
|
611
611
|
reload: state.reload,
|
|
612
612
|
enabled: () => state.get().auto,
|
|
@@ -615,10 +615,10 @@ var layer6 = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
615
615
|
compactManual
|
|
616
616
|
});
|
|
617
617
|
}));
|
|
618
|
-
var
|
|
619
|
-
service:
|
|
618
|
+
var node9 = makeLocationNode({
|
|
619
|
+
service: Service7,
|
|
620
620
|
layer: layer6,
|
|
621
|
-
deps: [
|
|
621
|
+
deps: [node87, node88, llmClient2]
|
|
622
622
|
});
|
|
623
623
|
|
|
624
|
-
export {
|
|
624
|
+
export { Service7, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer6, node9, exports_compaction3 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./mime-
|
|
4
|
+
} from "./mime-wvjy0rkm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./mime-
|
|
6
|
+
Service83,
|
|
7
|
+
node87
|
|
8
|
+
} from "./mime-b95dy7zp.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./mime-pknna89w.js";
|
|
@@ -20,44 +20,44 @@ import {
|
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
23
|
+
Event: () => Event20,
|
|
24
|
+
ID: () => ID16,
|
|
25
|
+
Info: () => Info31,
|
|
26
26
|
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service78,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node82
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID16 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
39
|
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event20 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info31 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID16,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service78 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service84).db;
|
|
55
|
-
const bus = yield*
|
|
55
|
+
const bus = yield* Service83;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info31({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service78.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info31({
|
|
80
|
+
id: ID16.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node82 = makeGlobalNode({ service: Service78, layer, deps: [node88, node87] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID16, OAuth3, Key4, Value2, Event20, Info31, Service78, node82, exports_credential };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./mime-b95dy7zp.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
9
|
} from "./mime-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./mime-
|
|
11
|
+
Service80,
|
|
12
|
+
node84
|
|
13
|
+
} from "./mime-2kdwgsh2.js";
|
|
14
14
|
import {
|
|
15
15
|
reconcile2,
|
|
16
16
|
create3
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info3,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service15,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node18
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info3, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,12 +45,12 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service15 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service15, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const bus = yield*
|
|
52
|
+
const location = yield* Service80;
|
|
53
|
+
const bus = yield* Service83;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
56
56
|
const vcs = location.vcs;
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info3));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -118,7 +118,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
118
118
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
119
119
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return Service15.of({
|
|
122
122
|
transform: state.transform,
|
|
123
123
|
reload: state.reload,
|
|
124
124
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -164,10 +164,10 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
164
164
|
})
|
|
165
165
|
});
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
168
|
-
service:
|
|
167
|
+
var node18 = makeLocationNode({
|
|
168
|
+
service: Service15,
|
|
169
169
|
layer,
|
|
170
|
-
deps: [FSUtil.node,
|
|
170
|
+
deps: [FSUtil.node, node84, node87]
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
export { Base2, BranchList2, FileStatus2,
|
|
173
|
+
export { Base2, BranchList2, FileStatus2, Info3, Mode2, DiffError2, Service15, node18, exports_vcs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ID6 = Session.ID;
|
|
5
|
+
var Info11 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID6, Info11, SessionSchema2 };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./mime-b95dy7zp.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./mime-
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./mime-2kdwgsh2.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./mime-
|
|
10
|
+
Service69,
|
|
11
|
+
node72
|
|
12
|
+
} from "./mime-xjtpc5ew.js";
|
|
13
13
|
import {
|
|
14
14
|
cleanup3
|
|
15
15
|
} from "./mime-gd4qta3r.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service73,
|
|
18
18
|
args2,
|
|
19
|
-
|
|
20
|
-
} from "./mime-
|
|
19
|
+
node77
|
|
20
|
+
} from "./mime-ws8rf1n9.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./mime-
|
|
22
|
+
Service64,
|
|
23
|
+
node67
|
|
24
|
+
} from "./mime-zrq8kphx.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./mime-
|
|
26
|
+
Service32,
|
|
27
|
+
node35
|
|
28
|
+
} from "./mime-0tzy42a9.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionSchema2
|
|
31
|
-
} from "./mime-
|
|
31
|
+
} from "./mime-fpnx24t4.js";
|
|
32
32
|
import {
|
|
33
33
|
latest2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./mime-
|
|
34
|
+
Service58,
|
|
35
|
+
node60
|
|
36
|
+
} from "./mime-rp5c3k0s.js";
|
|
37
37
|
import {
|
|
38
38
|
MAX_LINES2,
|
|
39
39
|
MAX_BYTES2
|
|
40
|
-
} from "./mime-
|
|
40
|
+
} from "./mime-42wz0x18.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./mime-9rqn6x4v.js";
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
46
|
var exports_shell4 = {};
|
|
47
47
|
__export(exports_shell4, {
|
|
48
48
|
DIRECTORY: () => DIRECTORY2,
|
|
49
|
-
NotFoundError: () =>
|
|
49
|
+
NotFoundError: () => NotFoundError3,
|
|
50
50
|
RETENTION: () => RETENTION2,
|
|
51
|
-
Service: () =>
|
|
51
|
+
Service: () => Service31,
|
|
52
52
|
Shell: () => exports_shell4,
|
|
53
53
|
cleanup: () => cleanup2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node34
|
|
55
55
|
});
|
|
56
56
|
import path from "path";
|
|
57
57
|
import { Context, Deferred, Duration, Effect, Fiber, Latch, Layer, Schema, Schedule, Stream } from "effect";
|
|
@@ -63,7 +63,7 @@ import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
|
63
63
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
65
|
import { Global } from "@opencode/util/global";
|
|
66
|
-
class
|
|
66
|
+
class NotFoundError3 extends Schema.TaggedError()("Shell.NotFoundError", {
|
|
67
67
|
id: Shell.ID
|
|
68
68
|
}) {
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ var EXITED_LIMIT = 25;
|
|
|
71
71
|
var RETENTION2 = Duration.days(7);
|
|
72
72
|
var DIRECTORY2 = "shell";
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service31 extends Context.Service()("@opencode/Shell") {
|
|
75
75
|
}
|
|
76
76
|
var cleanup2 = Effect.fn("Shell.cleanup")(function* () {
|
|
77
77
|
const fs = yield* FSUtil.Service;
|
|
@@ -87,15 +87,15 @@ var cleanupNode = makeGlobalNode({
|
|
|
87
87
|
layer: cleanupLayer,
|
|
88
88
|
deps: [FSUtil.node, Global.node]
|
|
89
89
|
});
|
|
90
|
-
var layer = () => Layer.effect(
|
|
91
|
-
const bus = yield*
|
|
92
|
-
const location = yield*
|
|
90
|
+
var layer = () => Layer.effect(Service31, Effect.gen(function* () {
|
|
91
|
+
const bus = yield* Service83;
|
|
92
|
+
const location = yield* Service80;
|
|
93
93
|
const global = yield* Global.Service;
|
|
94
|
-
const shell = yield*
|
|
95
|
-
const environment = yield*
|
|
96
|
-
const hooks = yield*
|
|
97
|
-
const environments = yield*
|
|
98
|
-
const config = yield*
|
|
94
|
+
const shell = yield* Service73;
|
|
95
|
+
const environment = yield* Service69;
|
|
96
|
+
const hooks = yield* Service64;
|
|
97
|
+
const environments = yield* Service32;
|
|
98
|
+
const config = yield* Service58;
|
|
99
99
|
const context = yield* Effect.context();
|
|
100
100
|
const runFork = Effect.runForkWith(context);
|
|
101
101
|
const commands = new Map;
|
|
@@ -116,7 +116,7 @@ var layer = () => Layer.effect(Service53, Effect.gen(function* () {
|
|
|
116
116
|
const require2 = Effect.fnUntraced(function* (id) {
|
|
117
117
|
const command = commands.get(id);
|
|
118
118
|
if (!command)
|
|
119
|
-
return yield* new
|
|
119
|
+
return yield* new NotFoundError3({ id });
|
|
120
120
|
return command;
|
|
121
121
|
});
|
|
122
122
|
const removeCommand = Effect.fnUntraced(function* (id) {
|
|
@@ -129,7 +129,7 @@ var layer = () => Layer.effect(Service53, Effect.gen(function* () {
|
|
|
129
129
|
commands.delete(id);
|
|
130
130
|
if (command.timeoutFiber)
|
|
131
131
|
yield* Fiber.interrupt(command.timeoutFiber);
|
|
132
|
-
yield* Deferred.fail(command.done, new
|
|
132
|
+
yield* Deferred.fail(command.done, new NotFoundError3({ id }));
|
|
133
133
|
yield* Effect.promise(() => unlink(command.file).catch(() => {}));
|
|
134
134
|
yield* bus.publish(Shell.Event.Deleted, { id });
|
|
135
135
|
});
|
|
@@ -323,22 +323,22 @@ var layer = () => Layer.effect(Service53, Effect.gen(function* () {
|
|
|
323
323
|
const command = yield* Deferred.await(ready);
|
|
324
324
|
return command.info;
|
|
325
325
|
});
|
|
326
|
-
return
|
|
326
|
+
return Service31.of({ create, list, get, wait, result, timeout, output, remove });
|
|
327
327
|
}));
|
|
328
|
-
var
|
|
329
|
-
service:
|
|
328
|
+
var node34 = makeLocationNode({
|
|
329
|
+
service: Service31,
|
|
330
330
|
layer: layer(),
|
|
331
331
|
deps: [
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
node87,
|
|
333
|
+
node84,
|
|
334
334
|
Global.node,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
335
|
+
node77,
|
|
336
|
+
node72,
|
|
337
|
+
node67,
|
|
338
|
+
node35,
|
|
339
|
+
node60,
|
|
340
340
|
cleanupNode
|
|
341
341
|
]
|
|
342
342
|
});
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { NotFoundError3, RETENTION2, DIRECTORY2, Service31, cleanup2, node34, exports_shell4 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./mime-
|
|
3
|
+
} from "./mime-1ygqh575.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./mime-9rqn6x4v.js";
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin4,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint4 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin4 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin42 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint4);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint4, Plugin4, exports_exa };
|