@opencode/core 0.0.0-dev-20774 → 0.0.0-dev-20777
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 +59 -59
- package/dist/aisdk-native.js +59 -59
- package/dist/aisdk.js +64 -64
- package/dist/app.js +9 -9
- package/dist/bus.js +52 -52
- package/dist/chunks/{location-00q60weh.js → location-02609e96.js} +16 -16
- package/dist/chunks/{location-1krkd5b8.js → location-05p4mhbg.js} +11 -11
- package/dist/chunks/location-0gzjc7ft.js +253 -0
- package/dist/chunks/{location-nvq72y7j.js → location-15xcwm9t.js} +1 -1
- package/dist/chunks/{location-rhraev7y.js → location-1acjjqhc.js} +3 -3
- package/dist/chunks/location-1fq0wp1e.js +26 -0
- package/dist/chunks/{location-n0ntqt9g.js → location-1g5f91mn.js} +41 -41
- package/dist/chunks/{location-rsc8qfyv.js → location-1gmkcf0p.js} +7 -7
- package/dist/chunks/{location-bm46emxx.js → location-1h8se44f.js} +13 -13
- package/dist/chunks/{location-xm77r8mk.js → location-1ts7y3cx.js} +9 -9
- package/dist/chunks/{location-farvs0j6.js → location-1v74vwhm.js} +13 -13
- package/dist/chunks/{location-5v2fwzy1.js → location-1v9scpnw.js} +37 -37
- package/dist/chunks/{location-jnra9z53.js → location-1z20pv40.js} +15 -15
- package/dist/chunks/{location-msn8sz9h.js → location-22tdpft4.js} +14 -14
- package/dist/chunks/{location-mcrt8a46.js → location-24skg3e0.js} +22 -22
- package/dist/chunks/{location-s1337sdb.js → location-257vwa0c.js} +23 -23
- package/dist/chunks/{location-g1bc2t46.js → location-283v9wt3.js} +26 -26
- package/dist/chunks/{location-63krnhgr.js → location-2a084xpy.js} +1 -1
- package/dist/chunks/{location-savccbnq.js → location-2fpnaz5h.js} +31 -31
- package/dist/chunks/{location-32yxbfvn.js → location-2jy94dam.js} +17 -17
- package/dist/chunks/{location-avjs8rwt.js → location-2kw5qtk9.js} +43 -43
- package/dist/chunks/{location-ma4d79jn.js → location-3jpnnrb4.js} +15 -15
- package/dist/chunks/{location-pkm68pcq.js → location-3pxsat6s.js} +17 -17
- package/dist/chunks/{location-fcrnmcwp.js → location-3qb0mese.js} +1 -1
- package/dist/chunks/{location-fcryy9bm.js → location-42y5raaz.js} +12 -12
- package/dist/chunks/{location-4yxknn6d.js → location-44rac60e.js} +12 -12
- package/dist/chunks/{location-0r3c1bmw.js → location-47jkzegy.js} +3 -3
- package/dist/chunks/{location-0m0pvxq1.js → location-47r5a3mx.js} +10 -10
- package/dist/chunks/{location-ssesc4qa.js → location-4b5b0vhn.js} +6 -6
- package/dist/chunks/{location-94t80y57.js → location-4bar7sar.js} +25 -25
- package/dist/chunks/{location-frz66pft.js → location-4pedpz6c.js} +11 -11
- package/dist/chunks/{location-tghtnfzz.js → location-4vvqa2vj.js} +89 -89
- package/dist/chunks/{location-1pxz8ven.js → location-4xpgt2w9.js} +3 -3
- package/dist/chunks/{location-djqvkhft.js → location-4zxfccqq.js} +21 -21
- package/dist/chunks/{location-1z0fzhfg.js → location-50pnv838.js} +24 -24
- package/dist/chunks/{location-fpq9acqp.js → location-51f5btjf.js} +5 -5
- package/dist/chunks/{location-brggcc39.js → location-57ehm7c4.js} +30 -30
- package/dist/chunks/{location-q9fmzgve.js → location-5h0p9j5c.js} +4 -4
- package/dist/chunks/{location-5nesw8k5.js → location-5hps0jc8.js} +18 -18
- package/dist/chunks/{location-frypca04.js → location-6hcrkmvd.js} +9 -9
- package/dist/chunks/{location-2j4zxht4.js → location-6qv3krp1.js} +16 -16
- package/dist/chunks/{location-ccyehgd0.js → location-6t1m34v8.js} +2 -2
- package/dist/chunks/{location-p1cpmwyf.js → location-6tyzbyh4.js} +16 -16
- package/dist/chunks/{location-taakedrx.js → location-6whpyrs3.js} +43 -43
- package/dist/chunks/{location-bkp7wwcv.js → location-6zztp22y.js} +42 -42
- package/dist/chunks/{location-hyzby332.js → location-724avf7x.js} +15 -15
- package/dist/chunks/{location-9mm32rc6.js → location-73gdyt7p.js} +14 -14
- package/dist/chunks/{location-2wcpgrf5.js → location-77392vks.js} +7 -7
- package/dist/chunks/{location-eapgentd.js → location-7am7j62s.js} +17 -17
- package/dist/chunks/{location-qp5zfzrm.js → location-7fyyg3d8.js} +11 -11
- package/dist/chunks/{location-w9w8c5s2.js → location-7wpc5jwh.js} +13 -13
- package/dist/chunks/{location-mhkvc446.js → location-7yh4e7ss.js} +2 -2
- package/dist/chunks/{location-0z2z9ezx.js → location-7z0vcwsq.js} +7 -7
- package/dist/chunks/{location-mxyxeq91.js → location-7zz0tb2m.js} +328 -328
- package/dist/chunks/{location-fw4jt8zs.js → location-83vepgva.js} +32 -32
- package/dist/chunks/{location-fgj24z8y.js → location-8b345ry2.js} +12 -12
- package/dist/chunks/{location-gseqh7y5.js → location-8pfsh0gj.js} +19 -19
- package/dist/chunks/{location-nc482bkw.js → location-8snddydh.js} +8 -8
- package/dist/chunks/{location-hpbkp3jv.js → location-8y8dfhw6.js} +9 -9
- package/dist/chunks/{location-n456zfcg.js → location-922xc4bs.js} +30 -30
- package/dist/chunks/{location-jkr4b8s0.js → location-9cwykwg4.js} +30 -30
- package/dist/chunks/{location-wv396vej.js → location-9t7a50xb.js} +5 -5
- package/dist/chunks/{location-v099rn53.js → location-ac3dnfkw.js} +5 -5
- package/dist/chunks/{location-db2wf4at.js → location-addxnjmp.js} +3 -3
- package/dist/chunks/{location-af8mc2ra.js → location-agg46hj7.js} +4 -4
- package/dist/chunks/{location-ss358qx3.js → location-arz7hw7x.js} +3 -3
- package/dist/chunks/{location-w89t5azj.js → location-asvfb1gz.js} +22 -22
- package/dist/chunks/{location-2kxzs1z5.js → location-b3e58hyc.js} +23 -23
- package/dist/chunks/{location-pfvarswz.js → location-b4m962yk.js} +19 -19
- package/dist/chunks/{location-7vgmnxtx.js → location-b69x7x7h.js} +4 -4
- package/dist/chunks/{location-eqj35hys.js → location-b8d9rq7p.js} +31 -31
- package/dist/chunks/{location-k09pycdv.js → location-bem8en1s.js} +16 -16
- package/dist/chunks/{location-pcj0rjsp.js → location-bmq95mvw.js} +5 -5
- package/dist/chunks/{location-510enc9r.js → location-by659cs7.js} +9 -9
- package/dist/chunks/{location-rq5t05qg.js → location-c00fv4ar.js} +18 -18
- package/dist/chunks/{location-ckhb8p3a.js → location-c26ps2t9.js} +11 -11
- package/dist/chunks/{location-h5z75e8b.js → location-c5g770ce.js} +7 -7
- package/dist/chunks/{location-geg4sp68.js → location-ch3qpzfg.js} +8 -8
- package/dist/chunks/{location-7ekcnbwa.js → location-cnwjz3s5.js} +17 -17
- package/dist/chunks/{location-44ak30pa.js → location-cp937pt4.js} +3 -3
- package/dist/chunks/{location-4bfey5n7.js → location-crvcnxkj.js} +4 -4
- package/dist/chunks/{location-20ketkdt.js → location-cvmt8rk0.js} +20 -20
- package/dist/chunks/{location-k6367mvk.js → location-das60bkc.js} +25 -25
- package/dist/chunks/{location-5tpw5fwb.js → location-dc34mbvf.js} +4 -4
- package/dist/chunks/{location-r3s6mbe4.js → location-dhddhhrc.js} +9 -9
- package/dist/chunks/{location-fag3n04b.js → location-ds1wy84x.js} +24 -24
- package/dist/chunks/{location-7fj5dwt0.js → location-dxj72tfx.js} +4 -4
- package/dist/chunks/{location-s111bhqz.js → location-dzt4t18k.js} +7 -7
- package/dist/chunks/{location-c4apb3t6.js → location-eba7m2bv.js} +14 -14
- package/dist/chunks/{location-bb98p2sm.js → location-efgnm1d6.js} +7 -7
- package/dist/chunks/{location-tzph5200.js → location-ejfryj65.js} +4 -4
- package/dist/chunks/{location-77xysqe6.js → location-enppsyr8.js} +5 -5
- package/dist/chunks/{location-gen3kpyr.js → location-ep4m400e.js} +19 -19
- package/dist/chunks/{location-86qzxe6p.js → location-ermxvwhp.js} +3 -3
- package/dist/chunks/{location-6penkyg2.js → location-essarsw2.js} +32 -32
- package/dist/chunks/{location-y1vh2ynk.js → location-etvz4dq0.js} +14 -14
- package/dist/chunks/{location-pddm9hjh.js → location-ey3qhexw.js} +5 -5
- package/dist/chunks/{location-7qkbpcez.js → location-f2332hgj.js} +9 -9
- package/dist/chunks/{location-1y9xp183.js → location-f2mw6jyj.js} +8 -8
- package/dist/chunks/{location-7ke8vxpx.js → location-f4jsfm31.js} +37 -37
- package/dist/chunks/{location-7dqw4kz8.js → location-fcrkznn8.js} +4 -4
- package/dist/chunks/{location-1qrp5yz4.js → location-ffa51ey5.js} +9 -9
- package/dist/chunks/{location-r4czyjgq.js → location-fgkdc7jh.js} +22 -22
- package/dist/chunks/{location-y9jy459z.js → location-fsvxdad5.js} +2 -2
- package/dist/chunks/{location-4gpcyrrc.js → location-fyb3fekh.js} +11 -11
- package/dist/chunks/{location-2ha1v7qw.js → location-fzpqnkcj.js} +1 -1
- package/dist/chunks/{location-q4vqpvdd.js → location-g6z45s58.js} +13 -13
- package/dist/chunks/{location-4c4k5wey.js → location-ge2jb4mz.js} +12 -12
- package/dist/chunks/{location-pw5zjs1v.js → location-geyqfexr.js} +9 -9
- package/dist/chunks/{location-q753jdth.js → location-gy1mt2vm.js} +21 -21
- package/dist/chunks/{location-jwbqxjt0.js → location-h2xnf45v.js} +11 -11
- package/dist/chunks/{location-dy2ggsev.js → location-h72xck84.js} +22 -22
- package/dist/chunks/{location-rpep4epa.js → location-h788nv4n.js} +19 -19
- package/dist/chunks/{location-dmqcgk4z.js → location-h7s7r6s9.js} +6 -5
- package/dist/chunks/{location-8xcxajtx.js → location-hfpbvkxs.js} +14 -14
- package/dist/chunks/{location-yvvvp4gn.js → location-hpfvhvya.js} +7 -7
- package/dist/chunks/{location-p9w1c4fh.js → location-hzfdd747.js} +12 -12
- package/dist/chunks/{location-0901hh4n.js → location-j793y9ay.js} +46 -46
- package/dist/chunks/{location-e8vwfchq.js → location-j8s9ab9g.js} +4 -4
- package/dist/chunks/{location-wmwmmf9p.js → location-j97mndf0.js} +11 -11
- package/dist/chunks/{location-jv7qrkz2.js → location-jph2mfn8.js} +20 -20
- package/dist/chunks/{location-9qap1kz0.js → location-k2v3a0tj.js} +19 -19
- package/dist/chunks/{location-gjbyz4wh.js → location-k58rqv26.js} +16 -16
- package/dist/chunks/{location-srq8z0b0.js → location-k70p9jzb.js} +7 -7
- package/dist/chunks/{location-3ng9c4h1.js → location-kf8rbkby.js} +25 -25
- package/dist/chunks/{location-swtxrcf0.js → location-m46z4pcf.js} +317 -317
- package/dist/chunks/{location-5qjvepv9.js → location-m55qy151.js} +8 -8
- package/dist/chunks/{location-z2q0v0ax.js → location-m9an57nd.js} +8 -8
- package/dist/chunks/{location-bgqmeeks.js → location-mc5akg63.js} +38 -38
- package/dist/chunks/{location-1ygqh575.js → location-mfqp6xfm.js} +4 -4
- package/dist/chunks/{location-4vygzm8z.js → location-mn8ry2gg.js} +15 -15
- package/dist/chunks/{location-wssyxk27.js → location-mq882t6m.js} +18 -18
- package/dist/chunks/{location-9f668h4q.js → location-mt66mygc.js} +9 -9
- package/dist/chunks/{location-wcab5d7q.js → location-mt74ad40.js} +6 -6
- package/dist/chunks/{location-rnnnfbw7.js → location-mw9b1c9f.js} +13 -13
- package/dist/chunks/{location-5a6870bg.js → location-mye8z46x.js} +19 -19
- package/dist/chunks/{location-6d5my1ea.js → location-n0kpyt58.js} +9 -9
- package/dist/chunks/{location-4gvf9rzc.js → location-n7yx15r7.js} +2 -2
- package/dist/chunks/{location-n2gztfrf.js → location-na7ss97r.js} +18 -18
- package/dist/chunks/{location-f7a9ata7.js → location-np6bm2as.js} +3 -3
- package/dist/chunks/{location-63db42yp.js → location-nqxj0yn4.js} +1 -1
- package/dist/chunks/{location-twanzasj.js → location-nxpp2y2e.js} +12 -12
- package/dist/chunks/{location-4n607a2z.js → location-nyqx1cb3.js} +3 -3
- package/dist/chunks/{location-4w5gk0mh.js → location-p0cpcvwn.js} +13 -13
- package/dist/chunks/{location-ch1g95xj.js → location-p3pp3bgs.js} +12 -12
- package/dist/chunks/{location-9hn6k4tm.js → location-pa8pe2x7.js} +7 -7
- package/dist/chunks/{location-bhhh305g.js → location-pbavp9d4.js} +17 -17
- package/dist/chunks/{location-f0rkppvs.js → location-pjvjbv32.js} +10 -10
- package/dist/chunks/{location-pedttwxr.js → location-pnaxc6j9.js} +7 -7
- package/dist/chunks/{location-7zt5x37y.js → location-pnzf6mjf.js} +1 -1
- package/dist/chunks/{location-smnkpcw6.js → location-ppc2pnsb.js} +4 -4
- package/dist/chunks/{location-296sdbys.js → location-pqxmmrpw.js} +58 -58
- package/dist/chunks/{location-p67zypcs.js → location-py28mc1m.js} +10 -10
- package/dist/chunks/{location-cfsekr6v.js → location-py3kkmfq.js} +1 -1
- package/dist/chunks/{location-ezy2bptn.js → location-qa96c720.js} +7 -7
- package/dist/chunks/{location-f9ergr2z.js → location-qh3vb1tn.js} +8 -8
- package/dist/chunks/{location-edjm0cp8.js → location-qhqe7njz.js} +37 -37
- package/dist/chunks/{location-djszqvmq.js → location-qmqgtz8f.js} +7 -7
- package/dist/chunks/{location-bfexnhf9.js → location-qmxh83kc.js} +54 -54
- package/dist/chunks/{location-d0n0cznh.js → location-qr0pk10y.js} +21 -21
- package/dist/chunks/{location-fn64ej17.js → location-qww9nh48.js} +48 -48
- package/dist/chunks/{location-sacwgt96.js → location-qxp4d2xp.js} +46 -46
- package/dist/chunks/{location-0eednbcc.js → location-r58s4v78.js} +10 -10
- package/dist/chunks/{location-d8ck81wr.js → location-r5atvkz9.js} +5 -5
- package/dist/chunks/{location-rj1g0c9z.js → location-rb6kc9en.js} +4 -4
- package/dist/chunks/{location-v6vf82bk.js → location-rf5ebq4s.js} +30 -30
- package/dist/chunks/{location-288wtq47.js → location-rmg8r6ny.js} +8 -8
- package/dist/chunks/{location-d41hc979.js → location-rnffhph3.js} +3 -3
- package/dist/chunks/{location-czbv8z0y.js → location-s1rrpmaa.js} +32 -32
- package/dist/chunks/{location-8fefh7g5.js → location-sdq79vbt.js} +19 -19
- package/dist/chunks/{location-yrwx0ryy.js → location-sfe13qt9.js} +18 -18
- package/dist/chunks/{location-33gaavb8.js → location-smz349yv.js} +26 -26
- package/dist/chunks/{location-rj26dvxy.js → location-spvg49p3.js} +32 -32
- package/dist/chunks/{location-x7x00081.js → location-sws9dtgm.js} +3 -3
- package/dist/chunks/{location-fqb2p7cx.js → location-t2fc4mz5.js} +3 -3
- package/dist/chunks/{location-6hjayvw0.js → location-t5z5wvj2.js} +4 -4
- package/dist/chunks/{location-8mc742af.js → location-t6wbbrfa.js} +26 -26
- package/dist/chunks/{location-bvjs27d2.js → location-t7cpp3m0.js} +1 -1
- package/dist/chunks/{location-r7srsjaq.js → location-t9ew0xaf.js} +7 -7
- package/dist/chunks/{location-cyhwh2m5.js → location-t9xcwzrx.js} +18 -18
- package/dist/chunks/{location-kfw6wn9j.js → location-ta6y1msd.js} +65 -65
- package/dist/chunks/{location-1hd2en9h.js → location-thkbvcgx.js} +1 -1
- package/dist/chunks/{location-q5z81sq7.js → location-tnr8ce74.js} +44 -44
- package/dist/chunks/{location-9k8v6d5w.js → location-tz3m3brz.js} +6 -6
- package/dist/chunks/{location-x5zkgxzc.js → location-v7yprycd.js} +8 -8
- package/dist/chunks/{location-368k0mgv.js → location-v8jdkmfs.js} +19 -19
- package/dist/chunks/{location-5psc1bef.js → location-v9tbcfk2.js} +15 -15
- package/dist/chunks/{location-1wg0848n.js → location-vaskyz0h.js} +17 -17
- package/dist/chunks/{location-pkqb68ka.js → location-vn72gsba.js} +1 -1
- package/dist/chunks/{location-czy5pfnh.js → location-w0nqy3aq.js} +7 -7
- package/dist/chunks/{location-jb2r3891.js → location-wb7mg7fb.js} +20 -20
- package/dist/chunks/{location-38phfjcn.js → location-wbt9zsn3.js} +7 -7
- package/dist/chunks/{location-89bv08xb.js → location-wp8xfje7.js} +23 -23
- package/dist/chunks/{location-w81mkxs7.js → location-ws2bx7td.js} +3 -3
- package/dist/chunks/{location-twfjgwa6.js → location-wt19589t.js} +2 -2
- package/dist/chunks/{location-zwdpfek5.js → location-x2tcbxjk.js} +29 -29
- package/dist/chunks/{location-bf3zn255.js → location-xfgbrct6.js} +11 -11
- package/dist/chunks/{location-g5w8qwbj.js → location-xfkkasph.js} +3 -3
- package/dist/chunks/{location-15a8baq2.js → location-xn2v0njk.js} +9 -9
- package/dist/chunks/{location-qw00nmad.js → location-xpfnkknw.js} +30 -30
- package/dist/chunks/{location-zajgawmg.js → location-xpg5nf0s.js} +28 -28
- package/dist/chunks/{location-syqhgwq0.js → location-xpt096d7.js} +3 -3
- package/dist/chunks/{location-cyhsea0k.js → location-xs12am9p.js} +7 -7
- package/dist/chunks/{location-m7er9qjp.js → location-xvf4b5tc.js} +25 -25
- package/dist/chunks/{location-36v99zb6.js → location-y0hnatt9.js} +13 -13
- package/dist/chunks/{location-qbjx7vtc.js → location-y4eq9c7t.js} +9 -9
- package/dist/chunks/{location-11dqjexa.js → location-y56ehv6b.js} +7 -7
- package/dist/chunks/{location-22e0sng0.js → location-y7rk29wk.js} +12 -12
- package/dist/chunks/{location-3ftqq3j8.js → location-ya99b1bg.js} +178 -178
- package/dist/chunks/{location-eb1krxtt.js → location-yb1pbjke.js} +20 -20
- package/dist/chunks/{location-m3971pjk.js → location-yjzd8xzf.js} +16 -16
- package/dist/chunks/{location-gw7cjrad.js → location-yrcj3v3g.js} +3 -3
- package/dist/chunks/{location-jp0p4yja.js → location-ywcwnstf.js} +28 -28
- package/dist/chunks/{location-1kexfm1y.js → location-yx4j6h9t.js} +81 -81
- package/dist/chunks/{location-y2zmc9zv.js → location-z8nhrpf5.js} +25 -25
- package/dist/chunks/{location-f73rjn58.js → location-zcrspsvn.js} +3 -3
- package/dist/chunks/{location-a0tnr6vv.js → location-zdw14zwb.js} +8 -8
- package/dist/chunks/{location-w7r147nf.js → location-zg3gffzg.js} +1 -1
- package/dist/chunks/{location-qygbw77c.js → location-zyk1yjk8.js} +3 -3
- package/dist/chunks/{location-a9568cjm.js → location-zzz4tyg8.js} +31 -31
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +59 -59
- package/dist/config/discovery.js +55 -55
- package/dist/config/normalize.js +67 -67
- package/dist/config/plugin/agent.js +82 -82
- package/dist/config/plugin/command.js +163 -163
- package/dist/config/plugin/compaction.js +112 -112
- package/dist/config/plugin/compatibility.js +97 -97
- package/dist/config/plugin/formatter.js +81 -81
- package/dist/config/plugin/image.js +80 -80
- package/dist/config/plugin/instruction.js +60 -60
- package/dist/config/plugin/location-watcher.js +80 -80
- package/dist/config/plugin/mcp.js +90 -90
- package/dist/config/plugin/policy.js +81 -81
- package/dist/config/plugin/provider.js +80 -80
- package/dist/config/plugin/reference.js +81 -81
- package/dist/config/plugin/shell.js +82 -82
- package/dist/config/plugin/skill-file.js +70 -70
- package/dist/config/plugin/skill.js +100 -100
- package/dist/config/plugin/snapshot.js +80 -80
- package/dist/config/plugin/source.js +83 -83
- package/dist/config/plugin/tool-output.js +80 -80
- package/dist/config/plugin/websearch.js +81 -81
- package/dist/config/plugin/worktree.js +82 -82
- package/dist/config.js +86 -86
- package/dist/credential.js +62 -62
- package/dist/database/database.js +47 -47
- package/dist/database/drizzle/effect-sqlite/driver.js +6 -6
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +5 -5
- package/dist/database/drizzle/index.js +7 -7
- package/dist/database/drizzle/sqlite-core/effect/db.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +4 -4
- package/dist/database/drizzle.js +7 -7
- package/dist/database/migration.gen.js +37 -37
- package/dist/database/migration.js +39 -39
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +231 -231
- package/dist/environment/environment.js +62 -62
- package/dist/environment/index.js +64 -64
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +73 -73
- package/dist/file-mutation.js +63 -63
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +173 -173
- package/dist/filesystem/search.js +66 -66
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +65 -65
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +59 -59
- package/dist/generate.js +69 -69
- 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 +69 -69
- 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 +300 -300
- package/dist/instruction-discovery.js +56 -56
- package/dist/instructions/builtins.js +60 -60
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +63 -63
- package/dist/job.js +56 -56
- package/dist/kv.js +52 -52
- package/dist/location-activity.js +55 -55
- package/dist/location-lifecycle.js +72 -72
- package/dist/location-service-map.js +59 -59
- package/dist/location-services.js +297 -297
- package/dist/location.js +58 -58
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +16 -16
- package/dist/mcp/index.js +69 -69
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +59 -59
- package/dist/modal/models.js +69 -69
- package/dist/model-resolver.js +68 -68
- package/dist/model.js +70 -70
- package/dist/models-dev.js +73 -73
- package/dist/permission/saved.js +58 -58
- package/dist/permission.js +84 -84
- package/dist/persistent-pty/index.js +56 -56
- package/dist/persistent-pty.js +50 -50
- package/dist/plugin/agent.js +54 -54
- package/dist/plugin/command.js +68 -68
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +166 -166
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +274 -274
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +66 -66
- package/dist/plugin/module.js +81 -81
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +71 -71
- package/dist/plugin/provider/amazon-bedrock.js +60 -60
- package/dist/plugin/provider/azure.js +81 -81
- package/dist/plugin/provider/chatgpt.js +62 -62
- package/dist/plugin/provider/cloudflare-ai-gateway.js +78 -78
- package/dist/plugin/provider/cloudflare-workers-ai.js +78 -78
- package/dist/plugin/provider/configured.js +77 -77
- package/dist/plugin/provider/digitalocean.js +62 -62
- package/dist/plugin/provider/github-copilot.js +64 -64
- package/dist/plugin/provider/gitlab.js +62 -62
- package/dist/plugin/provider/google-vertex.js +78 -78
- package/dist/plugin/provider/llmgateway.js +54 -54
- package/dist/plugin/provider/lmstudio.js +81 -81
- package/dist/plugin/provider/local.js +78 -78
- package/dist/plugin/provider/modal.js +62 -62
- package/dist/plugin/provider/ollama.js +81 -81
- package/dist/plugin/provider/openai.js +61 -61
- package/dist/plugin/provider/opencode.js +67 -67
- package/dist/plugin/provider/openrouter.js +61 -61
- package/dist/plugin/provider/poe.js +54 -54
- package/dist/plugin/provider/prompt-cache-key.js +60 -60
- package/dist/plugin/provider/sap-ai-core.js +60 -60
- package/dist/plugin/provider/snowflake-cortex.js +79 -79
- package/dist/plugin/provider/vercel.js +60 -60
- package/dist/plugin/provider/vllm.js +81 -81
- package/dist/plugin/provider/xai.js +61 -61
- package/dist/plugin/provider.js +114 -114
- package/dist/plugin/sdk.js +55 -55
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +98 -98
- package/dist/plugin/supervisor.js +290 -290
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +58 -58
- package/dist/plugin/vcs/hg.js +58 -58
- package/dist/plugin/verbosity.js +63 -63
- package/dist/plugin/warming.js +79 -79
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +172 -172
- package/dist/project.js +57 -57
- package/dist/provider.js +71 -71
- package/dist/pty.js +62 -62
- package/dist/reference/instructions.js +64 -64
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +58 -58
- package/dist/ripgrep.js +63 -63
- package/dist/rpc.js +59 -59
- package/dist/session/command.js +52 -52
- package/dist/session/compaction.js +97 -97
- package/dist/session/context.js +114 -114
- package/dist/session/diff.js +58 -58
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +111 -111
- package/dist/session/execution.js +96 -96
- package/dist/session/generate.js +113 -113
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +61 -61
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +55 -55
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +67 -67
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +86 -86
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +97 -97
- package/dist/session/projector.js +58 -58
- package/dist/session/prompt.js +73 -73
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +59 -59
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +176 -176
- package/dist/session/runner/model.js +68 -68
- package/dist/session/runner/publish-llm-event.js +81 -81
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +92 -92
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +126 -126
- package/dist/session/shell.js +93 -93
- package/dist/session/skill.js +72 -72
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +61 -61
- package/dist/session/subagent-job.js +159 -159
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +117 -117
- package/dist/session/to-session-error.js +80 -80
- package/dist/session/transfer.js +108 -108
- package/dist/session.js +170 -170
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +96 -96
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +76 -76
- package/dist/skill.js +77 -77
- package/dist/snapshot.js +65 -65
- package/dist/tool/mcp.js +89 -89
- package/dist/tool/plugin/edit.js +84 -84
- package/dist/tool/plugin/glob.js +87 -87
- package/dist/tool/plugin/grep.js +87 -87
- package/dist/tool/plugin/mcp-resource.js +82 -82
- package/dist/tool/plugin/opencode.js +76 -76
- package/dist/tool/plugin/patch.js +84 -84
- package/dist/tool/plugin/question.js +74 -74
- package/dist/tool/plugin/read.js +87 -87
- package/dist/tool/plugin/shell.js +167 -167
- package/dist/tool/plugin/skill.js +80 -80
- package/dist/tool/plugin/subagent.js +168 -168
- package/dist/tool/plugin/webfetch.js +75 -75
- package/dist/tool/plugin/websearch.js +83 -83
- package/dist/tool/plugin/write.js +86 -86
- package/dist/tool/read-filesystem.js +66 -66
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/types/session/history.d.ts +32 -0
- package/dist/types/session/transfer.d.ts +19 -0
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +61 -61
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +63 -63
- package/dist/vcs.js +59 -59
- package/dist/websearch.js +62 -62
- package/dist/wellknown/plugin.js +55 -55
- package/dist/wellknown.js +58 -58
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +57 -57
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +60 -60
- package/dist/worktree.js +66 -66
- package/package.json +8 -8
- package/dist/chunks/location-350gfnr7.js +0 -26
- package/dist/chunks/location-xzkm26z5.js +0 -253
- /package/dist/chunks/{location-y8dg3yja.js → location-08mjp3pt.js} +0 -0
- /package/dist/chunks/{location-kerhshr9.js → location-0t098hqn.js} +0 -0
- /package/dist/chunks/{location-c0gy5km3.js → location-3xqh13de.js} +0 -0
- /package/dist/chunks/{location-5camtqdd.js → location-w0pdyb55.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./location-by659cs7.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-addxnjmp.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./location-
|
|
8
|
+
Event19
|
|
9
|
+
} from "./location-922xc4bs.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./location-
|
|
11
|
+
ID14
|
|
12
|
+
} from "./location-2fpnaz5h.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./location-
|
|
14
|
+
ID13,
|
|
15
|
+
Service76
|
|
16
|
+
} from "./location-m46z4pcf.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./location-
|
|
18
|
+
load3,
|
|
19
|
+
derive3
|
|
20
|
+
} from "./location-fgkdc7jh.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
30
|
-
const bus = yield*
|
|
29
|
+
const providers = yield* Service76;
|
|
30
|
+
const bus = yield* Service83;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
33
33
|
const load = Effect.fn("ModalPlugin.load")(function* () {
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load3(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive3(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./location-by659cs7.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service80
|
|
6
|
+
} from "./location-7wpc5jwh.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./location-
|
|
9
|
+
Service35
|
|
10
|
+
} from "./location-2kw5qtk9.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./location-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command2 = {};
|
|
17
|
+
__export(exports_command2, {
|
|
18
|
+
CommandPlugin: () => exports_command2,
|
|
19
|
+
Plugin: () => Plugin30
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,12 +193,12 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin30 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
201
|
-
const bus = yield*
|
|
199
|
+
const location = yield* Service80;
|
|
200
|
+
const mcp = yield* Service35;
|
|
201
|
+
const bus = yield* Service83;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
204
204
|
loaded.prompts = yield* mcp.prompts();
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin30, exports_command2 };
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./location-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./location-
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./location-7wpc5jwh.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./location-
|
|
11
|
+
Service18,
|
|
12
|
+
node20
|
|
13
|
+
} from "./location-wp8xfje7.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./location-9rqn6x4v.js";
|
|
@@ -33,11 +33,11 @@ __export(exports_filesystem, {
|
|
|
33
33
|
Match: () => Match2,
|
|
34
34
|
NotFoundError: () => NotFoundError3,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service17,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node19
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -107,12 +107,12 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
107
107
|
}
|
|
108
108
|
var Event4 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service17 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service17, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
|
-
const location = yield*
|
|
115
|
-
const search = yield*
|
|
114
|
+
const location = yield* Service80;
|
|
115
|
+
const search = yield* Service18;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -131,7 +131,7 @@ var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
131
131
|
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service17.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node19 = makeLocationNode({
|
|
175
|
+
service: Service17,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node,
|
|
177
|
+
deps: [FSUtil.node, node84, node20]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event4,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event4, Service17, node19, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
chunksByFile2
|
|
10
10
|
} from "./location-tazgh4e4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./location-
|
|
12
|
+
Service80
|
|
13
|
+
} from "./location-7wpc5jwh.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./location-
|
|
16
|
+
} from "./location-na7ss97r.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./location-9rqn6x4v.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin28,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,10 +30,10 @@ import { ChildProcess } from "effect/unstable/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin28 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
|
-
const location = yield*
|
|
36
|
+
const location = yield* Service80;
|
|
37
37
|
if (location.vcs && location.vcs.type !== "hg")
|
|
38
38
|
return;
|
|
39
39
|
const processes = yield* AppProcess.Service;
|
|
@@ -198,4 +198,4 @@ function makeHg(proc, worktree) {
|
|
|
198
198
|
return { status, diff, branch, ancestor, cat };
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export {
|
|
201
|
+
export { Plugin28, exports_hg };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./location-by659cs7.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./location-
|
|
5
|
+
ID15,
|
|
6
|
+
Event19,
|
|
7
|
+
Service78
|
|
8
|
+
} from "./location-922xc4bs.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./location-
|
|
10
|
+
ID13
|
|
11
|
+
} from "./location-m46z4pcf.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./location-
|
|
14
|
+
} from "./location-4b5b0vhn.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,8 +41,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
45
|
-
const bus = yield*
|
|
44
|
+
const credentials = yield* Service78;
|
|
45
|
+
const bus = yield* Service83;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
48
48
|
}));
|
|
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
51
51
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
52
52
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
53
53
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
54
|
-
const configured = (yield* configuredSettings2(
|
|
54
|
+
const configured = (yield* configuredSettings2(ID13.googleVertex)) ?? {};
|
|
55
55
|
const projects = Array.from(new Set([
|
|
56
56
|
resolveProject(configured),
|
|
57
57
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -65,8 +65,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
65
65
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
66
66
|
]));
|
|
67
67
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
68
|
-
const connection = yield* ctx.integration.connection.active(
|
|
69
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
68
|
+
const connection = yield* ctx.integration.connection.active(ID13.googleVertex);
|
|
69
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
70
70
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
71
71
|
return {};
|
|
72
72
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
74
74
|
const selected = { settings: yield* load() };
|
|
75
75
|
const settingsFor = (provider) => ({
|
|
76
76
|
...provider.settings,
|
|
77
|
-
...(provider.integrationID ?? provider.id) ===
|
|
77
|
+
...(provider.integrationID ?? provider.id) === ID13.googleVertex ? selected.settings : {}
|
|
78
78
|
});
|
|
79
79
|
yield* ctx.integration.transform((editor) => {
|
|
80
80
|
editor.method.update({
|
|
81
|
-
integrationID:
|
|
81
|
+
integrationID: ID13.googleVertex,
|
|
82
82
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
83
83
|
});
|
|
84
84
|
editor.method.update({
|
|
85
|
-
integrationID:
|
|
85
|
+
integrationID: ID13.googleVertex,
|
|
86
86
|
method: {
|
|
87
87
|
id: ADC_METHOD,
|
|
88
88
|
type: "external",
|
|
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
120
120
|
});
|
|
121
121
|
yield* ctx.provider.transform((evt) => {
|
|
122
122
|
for (const item of evt.list()) {
|
|
123
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
123
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
124
124
|
continue;
|
|
125
125
|
const settings = settingsFor(item.provider);
|
|
126
126
|
const project = resolveProject(settings);
|
|
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
139
139
|
});
|
|
140
140
|
yield* ctx.model.transform((models) => {
|
|
141
141
|
for (const item of models.provider.list()) {
|
|
142
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
142
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
143
143
|
continue;
|
|
144
144
|
const settings = settingsFor(item.provider);
|
|
145
145
|
const project = resolveProject(settings);
|
|
@@ -156,7 +156,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
yield* bus.subscribe([
|
|
159
|
+
yield* bus.subscribe([Event19.Updated, Event19.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
160
160
|
const next = yield* load();
|
|
161
161
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
162
162
|
return;
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service71,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node75
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service71 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service71.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node75 = makeLocationNode({ service: Service71, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service71, node75, exports_image2 };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./location-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./location-
|
|
5
|
+
Service80,
|
|
6
|
+
node84
|
|
7
|
+
} from "./location-7wpc5jwh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./location-
|
|
9
|
+
Service19,
|
|
10
|
+
node21
|
|
11
|
+
} from "./location-xfgbrct6.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -22,11 +22,11 @@ var exports_search = {};
|
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
24
|
Options: () => Options3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service18,
|
|
26
26
|
configured: () => configured3,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer10,
|
|
29
|
+
node: () => node20,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ var Options3 = Schema.Struct({
|
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service18 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service80;
|
|
63
|
+
const ripgrep = yield* Service19;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service18.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service80;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service18.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service18.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,8 +174,8 @@ var fffLayer2 = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer10 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service80;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
@@ -183,8 +183,8 @@ var layer9 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
185
|
function configured3(options) {
|
|
186
|
-
return makeLocationNode({ service:
|
|
186
|
+
return makeLocationNode({ service: Service18, layer: layer10(options), deps: [node84, node21] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node20 = configured3();
|
|
189
189
|
|
|
190
|
-
export { Options3,
|
|
190
|
+
export { Options3, Service18, ripgrepLayer2, fffLayer2, layer10, configured3, node20, exports_search };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
ID12
|
|
3
|
+
} from "./location-83vepgva.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/openrouter.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
for (const item of models.provider.list()) {
|
|
22
22
|
if (item.provider.package !== "@opencode/ai/providers/openrouter")
|
|
23
23
|
continue;
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID12.make("gpt-5-chat-latest"), ID12.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!models.get(item.provider.id, modelID))
|
|
26
26
|
continue;
|
|
27
27
|
models.update(item.provider.id, modelID, (model) => {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./location-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-w0pdyb55.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./location-
|
|
9
|
+
} from "./location-fzpqnkcj.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|