@opencode/core 0.0.0-dev-20774 → 0.0.0-dev-20775
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 +65 -65
- package/dist/aisdk-native.js +63 -63
- package/dist/aisdk.js +68 -68
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{location-36v99zb6.js → location-09asyzbj.js} +10 -10
- package/dist/chunks/{location-q0xm7vwc.js → location-0j77ygfz.js} +4 -4
- package/dist/chunks/{location-gseqh7y5.js → location-0p1raf8m.js} +21 -21
- package/dist/chunks/{location-wcab5d7q.js → location-0r16tc9t.js} +6 -6
- package/dist/chunks/{location-eapgentd.js → location-15z50455.js} +19 -19
- package/dist/chunks/{location-m3971pjk.js → location-19asy4jh.js} +16 -16
- package/dist/chunks/{location-rhraev7y.js → location-1acjjqhc.js} +3 -3
- package/dist/chunks/{location-6d5my1ea.js → location-1ffbm2jk.js} +9 -9
- package/dist/chunks/{location-pedttwxr.js → location-1g96y08y.js} +7 -7
- package/dist/chunks/{location-eqj35hys.js → location-1j6m9z8v.js} +31 -31
- package/dist/chunks/{location-7fj5dwt0.js → location-1x11rq2a.js} +4 -4
- package/dist/chunks/{location-p9w1c4fh.js → location-1yhdpabq.js} +12 -12
- package/dist/chunks/{location-77xysqe6.js → location-21zr8p49.js} +5 -5
- package/dist/chunks/{location-wssyxk27.js → location-2btnaz5j.js} +18 -18
- package/dist/chunks/{location-4ts7tf6z.js → location-2ccvkpx1.js} +1 -1
- package/dist/chunks/{location-3ftqq3j8.js → location-2d0zrvb9.js} +181 -181
- package/dist/chunks/{location-a8bn8zg0.js → location-2pnhn36q.js} +20 -20
- package/dist/chunks/{location-1y9xp183.js → location-2rehhz5t.js} +8 -8
- package/dist/chunks/{location-0z2z9ezx.js → location-2rzygbsc.js} +7 -7
- package/dist/chunks/{location-savccbnq.js → location-2sdrxmhf.js} +31 -31
- package/dist/chunks/{location-f73rjn58.js → location-2vs2nh1n.js} +3 -3
- package/dist/chunks/{location-4gvf9rzc.js → location-32vwv81y.js} +2 -2
- package/dist/chunks/{location-1ygqh575.js → location-33w4ejhs.js} +4 -4
- package/dist/chunks/{location-4n607a2z.js → location-3bc8czyk.js} +3 -3
- package/dist/chunks/{location-twanzasj.js → location-3bnybhwv.js} +5 -5
- package/dist/chunks/{location-farvs0j6.js → location-3bv3jwr8.js} +13 -13
- package/dist/chunks/{location-5tpw5fwb.js → location-3g10c0nv.js} +4 -4
- package/dist/chunks/{location-rj1g0c9z.js → location-3k3te7za.js} +4 -4
- package/dist/chunks/{location-czy5pfnh.js → location-3msgmyha.js} +7 -7
- package/dist/chunks/{location-288wtq47.js → location-3nchn6gg.js} +8 -8
- package/dist/chunks/{location-f9ergr2z.js → location-3ra60fwk.js} +8 -8
- package/dist/chunks/{location-rnnnfbw7.js → location-46f7t24m.js} +13 -13
- package/dist/chunks/{location-11dqjexa.js → location-4nj4bn9q.js} +7 -7
- package/dist/chunks/{location-g1bc2t46.js → location-4t6c5kv5.js} +24 -24
- package/dist/chunks/{location-brggcc39.js → location-4y5nd1mc.js} +30 -30
- package/dist/chunks/{location-gw7cjrad.js → location-5dkn69vz.js} +3 -3
- package/dist/chunks/{location-7ekcnbwa.js → location-5jjk48mt.js} +26 -26
- package/dist/chunks/{location-k6367mvk.js → location-5jx09pxm.js} +25 -25
- package/dist/chunks/location-5t9rrsta.js +26 -0
- package/dist/chunks/{location-510enc9r.js → location-5tmy9zrn.js} +9 -9
- package/dist/chunks/{location-1kexfm1y.js → location-69y7y1vt.js} +87 -87
- package/dist/chunks/{location-d41hc979.js → location-6eebjgwm.js} +3 -3
- package/dist/chunks/{location-33gaavb8.js → location-6jt2mj9c.js} +33 -33
- package/dist/chunks/{location-swtxrcf0.js → location-6mkt9mm7.js} +33 -33
- package/dist/chunks/{location-d8ck81wr.js → location-6sqw58ss.js} +8 -8
- package/dist/chunks/{location-mcrt8a46.js → location-6x4f2nxf.js} +19 -19
- package/dist/chunks/{location-1pxz8ven.js → location-6yz0wx8n.js} +3 -3
- package/dist/chunks/{location-368k0mgv.js → location-756q5zcd.js} +15 -15
- package/dist/chunks/{location-1qrp5yz4.js → location-75bh4ajr.js} +6 -6
- package/dist/chunks/{location-7ke8vxpx.js → location-7bq79643.js} +37 -37
- package/dist/chunks/{location-djqvkhft.js → location-7cxwgp8h.js} +10 -10
- package/dist/chunks/{location-af8mc2ra.js → location-7jhf9c6g.js} +7 -7
- package/dist/chunks/{location-pw5zjs1v.js → location-7p986w0g.js} +9 -9
- package/dist/chunks/{location-msn8sz9h.js → location-7r962cny.js} +20 -20
- package/dist/chunks/{location-fn64ej17.js → location-7s5y6dw1.js} +48 -48
- package/dist/chunks/{location-5v2fwzy1.js → location-7taj1gp1.js} +33 -33
- package/dist/chunks/{location-k09pycdv.js → location-82ztv55b.js} +18 -18
- package/dist/chunks/{location-2ha1v7qw.js → location-830hjgb9.js} +1 -1
- package/dist/chunks/{location-63db42yp.js → location-85xxa1xb.js} +1 -1
- package/dist/chunks/{location-srq8z0b0.js → location-8a6ws7jr.js} +7 -7
- package/dist/chunks/{location-63krnhgr.js → location-8e1vnns2.js} +1 -1
- package/dist/chunks/{location-6hjayvw0.js → location-8pxk0waf.js} +4 -4
- package/dist/chunks/{location-bkp7wwcv.js → location-8sb414s3.js} +39 -39
- package/dist/chunks/{location-rq5t05qg.js → location-8snsr8xz.js} +18 -18
- package/dist/chunks/{location-cfsekr6v.js → location-8sze2n9a.js} +5 -5
- package/dist/chunks/{location-9k8v6d5w.js → location-8tb93y3v.js} +6 -6
- package/dist/chunks/{location-cyhsea0k.js → location-8tt02aa5.js} +7 -7
- package/dist/chunks/{location-w9w8c5s2.js → location-8vd0j1f8.js} +13 -13
- package/dist/chunks/{location-fcrnmcwp.js → location-95ee23zy.js} +1 -1
- package/dist/chunks/{location-gjbyz4wh.js → location-966y4f2f.js} +16 -16
- package/dist/chunks/{location-pkm68pcq.js → location-98bzyxjk.js} +23 -23
- package/dist/chunks/{location-2wcpgrf5.js → location-9ay8cp4x.js} +7 -7
- package/dist/chunks/{location-jb2r3891.js → location-9de4qsp2.js} +20 -20
- package/dist/chunks/{location-5qjvepv9.js → location-9dpd9382.js} +8 -8
- package/dist/chunks/{location-tghtnfzz.js → location-9jvk4y4z.js} +89 -89
- package/dist/chunks/{location-mhkvc446.js → location-a1gpj94z.js} +2 -2
- package/dist/chunks/{location-8xcxajtx.js → location-a2eq7efn.js} +14 -14
- package/dist/chunks/{location-zajgawmg.js → location-a7jqre2k.js} +23 -23
- package/dist/chunks/{location-86qzxe6p.js → location-a89e0tac.js} +3 -3
- package/dist/chunks/{location-frz66pft.js → location-aeqpwm0h.js} +11 -11
- package/dist/chunks/{location-pkqb68ka.js → location-as7cf5zz.js} +1 -1
- package/dist/chunks/{location-qbjx7vtc.js → location-asbt5hc3.js} +9 -9
- package/dist/chunks/{location-3ng9c4h1.js → location-atrnmt3x.js} +25 -25
- package/dist/chunks/{location-q5z81sq7.js → location-ax1c0hpd.js} +44 -44
- package/dist/chunks/{location-eb1krxtt.js → location-ayf7de5y.js} +22 -22
- package/dist/chunks/{location-kfw6wn9j.js → location-ayk9da8a.js} +63 -63
- package/dist/chunks/{location-5nesw8k5.js → location-aymppdes.js} +18 -18
- package/dist/chunks/{location-f0rkppvs.js → location-b0cjfwep.js} +10 -10
- package/dist/chunks/{location-qygbw77c.js → location-b3f8fkhc.js} +3 -3
- package/dist/chunks/{location-ss358qx3.js → location-ba07h9gm.js} +3 -3
- package/dist/chunks/{location-s111bhqz.js → location-bah8gbxw.js} +7 -7
- package/dist/chunks/{location-r7srsjaq.js → location-bf4gbvg4.js} +12 -12
- package/dist/chunks/{location-v6vf82bk.js → location-bfdarn04.js} +30 -30
- package/dist/chunks/{location-h5z75e8b.js → location-bhjqanaq.js} +7 -7
- package/dist/chunks/{location-c4apb3t6.js → location-bprjyzj4.js} +14 -14
- package/dist/chunks/{location-frypca04.js → location-bqgthy8n.js} +9 -9
- package/dist/chunks/{location-jp0p4yja.js → location-brwsd5y5.js} +28 -28
- package/dist/chunks/{location-hpbkp3jv.js → location-c3k6pm0m.js} +9 -9
- package/dist/chunks/{location-4vygzm8z.js → location-c529yjm2.js} +15 -15
- package/dist/chunks/{location-mxyxeq91.js → location-c9jygpac.js} +326 -326
- package/dist/chunks/{location-9qap1kz0.js → location-cadbnk3n.js} +22 -22
- package/dist/chunks/{location-1z0fzhfg.js → location-cek985gc.js} +22 -22
- package/dist/chunks/{location-296sdbys.js → location-cy5473yv.js} +61 -61
- package/dist/chunks/{location-nvq72y7j.js → location-cycet1pr.js} +1 -1
- package/dist/chunks/{location-9hn6k4tm.js → location-czfptnv9.js} +7 -7
- package/dist/chunks/{location-n456zfcg.js → location-d1zydk9p.js} +30 -30
- package/dist/chunks/{location-bf3zn255.js → location-d8q1c04z.js} +15 -15
- package/dist/chunks/{location-2kxzs1z5.js → location-d9hw3rrm.js} +25 -25
- package/dist/chunks/{location-89bv08xb.js → location-da7cwfsq.js} +27 -27
- package/dist/chunks/{location-x5zkgxzc.js → location-dca2v3qb.js} +8 -8
- package/dist/chunks/{location-5a6870bg.js → location-dq9pghd8.js} +16 -16
- package/dist/chunks/{location-tzph5200.js → location-dv5jzpe1.js} +4 -4
- package/dist/chunks/{location-ssesc4qa.js → location-dxnfbexj.js} +6 -6
- package/dist/chunks/{location-94t80y57.js → location-dyjc66w4.js} +27 -27
- package/dist/chunks/{location-bfexnhf9.js → location-e3bfyvz4.js} +54 -54
- package/dist/chunks/{location-5qd3pb7m.js → location-e3qxr5gk.js} +2 -2
- package/dist/chunks/{location-4yxknn6d.js → location-e4w2kpmf.js} +9 -9
- package/dist/chunks/{location-gen3kpyr.js → location-e66rkf12.js} +19 -19
- package/dist/chunks/{location-0m0pvxq1.js → location-e6fsf12c.js} +10 -10
- package/dist/chunks/{location-jkr4b8s0.js → location-e9f9fkm3.js} +30 -30
- package/dist/chunks/{location-fag3n04b.js → location-ea95x05p.js} +24 -24
- package/dist/chunks/{location-e8vwfchq.js → location-eaezvagx.js} +7 -7
- package/dist/chunks/{location-a0tnr6vv.js → location-ek753qrj.js} +5 -5
- package/dist/chunks/{location-rpep4epa.js → location-exm7qxnh.js} +21 -21
- package/dist/chunks/{location-38phfjcn.js → location-eye44qas.js} +7 -7
- package/dist/chunks/{location-00q60weh.js → location-f0q4wdtr.js} +16 -16
- package/dist/chunks/{location-n2gztfrf.js → location-f3nmm34k.js} +21 -21
- package/dist/chunks/{location-7vgmnxtx.js → location-f5ca9dwf.js} +4 -4
- package/dist/chunks/{location-7dqw4kz8.js → location-fcrkznn8.js} +4 -4
- package/dist/chunks/{location-y9jy459z.js → location-fwbpahwh.js} +2 -2
- package/dist/chunks/{location-bm46emxx.js → location-fwh2zgtw.js} +10 -10
- package/dist/chunks/{location-xm77r8mk.js → location-g9ak4sjw.js} +9 -9
- package/dist/chunks/{location-bgqmeeks.js → location-g9fnv454.js} +38 -38
- package/dist/chunks/{location-4gpcyrrc.js → location-gb9b0k6n.js} +9 -9
- package/dist/chunks/{location-syqhgwq0.js → location-gknjsggn.js} +3 -3
- package/dist/chunks/{location-pddm9hjh.js → location-gspcenjq.js} +5 -5
- package/dist/chunks/{location-9mm32rc6.js → location-gwfc688y.js} +14 -14
- package/dist/chunks/{location-geg4sp68.js → location-gy93zegn.js} +8 -8
- package/dist/chunks/{location-5psc1bef.js → location-h12ndvyr.js} +12 -12
- package/dist/chunks/{location-dmqcgk4z.js → location-h7s7r6s9.js} +6 -5
- package/dist/chunks/location-hed9jrmp.js +253 -0
- package/dist/chunks/{location-bb98p2sm.js → location-hekf1c5w.js} +7 -7
- package/dist/chunks/{location-rsc8qfyv.js → location-hg7mrb4w.js} +7 -7
- package/dist/chunks/{location-r4czyjgq.js → location-hhd5kg11.js} +11 -11
- package/dist/chunks/{location-y1vh2ynk.js → location-hjkk9tvw.js} +14 -14
- package/dist/chunks/{location-fw4jt8zs.js → location-hp2pwxv9.js} +31 -31
- package/dist/chunks/{location-7qkbpcez.js → location-j1qv9ecs.js} +6 -6
- package/dist/chunks/{location-n0ntqt9g.js → location-jc2mtm7q.js} +43 -43
- package/dist/chunks/{location-fqb2p7cx.js → location-jfqtm2ew.js} +3 -3
- package/dist/chunks/{location-7zt5x37y.js → location-jhdf29st.js} +1 -1
- package/dist/chunks/{location-yrwx0ryy.js → location-js51bcx5.js} +18 -18
- package/dist/chunks/{location-taakedrx.js → location-k8p89crg.js} +43 -43
- package/dist/chunks/{location-15a8baq2.js → location-kjms2vrd.js} +9 -9
- package/dist/chunks/{location-1wg0848n.js → location-kpgz6ev9.js} +32 -32
- package/dist/chunks/{location-0901hh4n.js → location-kttg2wpw.js} +38 -38
- package/dist/chunks/{location-fcryy9bm.js → location-kvkh2tnc.js} +9 -9
- package/dist/chunks/{location-d0n0cznh.js → location-kxg060tx.js} +23 -23
- package/dist/chunks/{location-6penkyg2.js → location-mdp3e6p6.js} +32 -32
- package/dist/chunks/{location-22e0sng0.js → location-mjac82m3.js} +14 -14
- package/dist/chunks/{location-jv7qrkz2.js → location-mk1p5ebg.js} +20 -20
- package/dist/chunks/{location-1hd2en9h.js → location-n21dbq43.js} +1 -1
- package/dist/chunks/{location-twfjgwa6.js → location-nbrfrcy0.js} +2 -2
- package/dist/chunks/{location-4w5gk0mh.js → location-ngkn9htn.js} +13 -13
- package/dist/chunks/{location-rj26dvxy.js → location-ntemkh0x.js} +29 -29
- package/dist/chunks/{location-0eednbcc.js → location-nw13281a.js} +10 -10
- package/dist/chunks/{location-sacwgt96.js → location-p0aj1n0s.js} +46 -46
- package/dist/chunks/{location-ccyehgd0.js → location-pw009p93.js} +2 -2
- package/dist/chunks/{location-bvjs27d2.js → location-qam56xsc.js} +1 -1
- package/dist/chunks/{location-20ketkdt.js → location-qccn18aw.js} +20 -20
- package/dist/chunks/{location-pcj0rjsp.js → location-qer0ttcg.js} +5 -5
- package/dist/chunks/{location-smnkpcw6.js → location-qjskteme.js} +4 -4
- package/dist/chunks/{location-0r3c1bmw.js → location-qne3fa44.js} +3 -3
- package/dist/chunks/{location-czbv8z0y.js → location-qpg39g1v.js} +28 -28
- package/dist/chunks/{location-nc482bkw.js → location-qzrn5gaa.js} +8 -8
- package/dist/chunks/{location-w7r147nf.js → location-r23aaksv.js} +1 -1
- package/dist/chunks/{location-q753jdth.js → location-rdxaq8bh.js} +21 -21
- package/dist/chunks/{location-bhhh305g.js → location-rg98346q.js} +17 -17
- package/dist/chunks/{location-wv396vej.js → location-rhjbct0v.js} +7 -7
- package/dist/chunks/{location-32yxbfvn.js → location-rkxa6zgp.js} +16 -16
- package/dist/chunks/{location-ch1g95xj.js → location-rp0hxcbj.js} +9 -9
- package/dist/chunks/{location-r3s6mbe4.js → location-rsxcvxxn.js} +9 -9
- package/dist/chunks/{location-ckhb8p3a.js → location-rz5rekj6.js} +11 -11
- package/dist/chunks/{location-zwdpfek5.js → location-rza1ksjw.js} +29 -29
- package/dist/chunks/{location-yvvvp4gn.js → location-rzs3gq0x.js} +7 -7
- package/dist/chunks/{location-8fefh7g5.js → location-s0828w64.js} +27 -27
- package/dist/chunks/{location-8mc742af.js → location-s7ng95pt.js} +23 -23
- package/dist/chunks/{location-m7er9qjp.js → location-sejb9e2v.js} +15 -15
- package/dist/chunks/{location-p67zypcs.js → location-sx4ak346.js} +10 -10
- package/dist/chunks/{location-fpq9acqp.js → location-sxzvkvgj.js} +5 -5
- package/dist/chunks/{location-h4ckqw4f.js → location-tc14gx3q.js} +9 -9
- package/dist/chunks/{location-avjs8rwt.js → location-ted02x33.js} +51 -51
- package/dist/chunks/{location-f7a9ata7.js → location-tgzbhyj9.js} +3 -3
- package/dist/chunks/{location-w81mkxs7.js → location-tkj00vfs.js} +3 -3
- package/dist/chunks/{location-ezy2bptn.js → location-tprb9ykm.js} +5 -5
- package/dist/chunks/{location-wmwmmf9p.js → location-tsq3qyw6.js} +11 -11
- package/dist/chunks/{location-cyhwh2m5.js → location-v85wqnzs.js} +18 -18
- package/dist/chunks/{location-p1cpmwyf.js → location-vc4tj14c.js} +16 -16
- package/dist/chunks/{location-44ak30pa.js → location-vfjhn2wd.js} +3 -3
- package/dist/chunks/{location-s1337sdb.js → location-vgbc38w6.js} +21 -21
- package/dist/chunks/{location-pfvarswz.js → location-vkzh2jfz.js} +20 -20
- package/dist/chunks/{location-q4vqpvdd.js → location-w6nf2t4d.js} +15 -15
- package/dist/chunks/{location-edjm0cp8.js → location-w86wbf1j.js} +41 -41
- package/dist/chunks/{location-y2zmc9zv.js → location-wgrzeraf.js} +18 -18
- package/dist/chunks/{location-hyzby332.js → location-wmvjtpcg.js} +15 -15
- package/dist/chunks/{location-z2q0v0ax.js → location-wnbbbc1f.js} +8 -8
- package/dist/chunks/{location-2j4zxht4.js → location-wraxjda7.js} +13 -13
- package/dist/chunks/{location-w89t5azj.js → location-x1ayq2cp.js} +20 -20
- package/dist/chunks/{location-v099rn53.js → location-x375nta7.js} +2 -2
- package/dist/chunks/{location-dy2ggsev.js → location-x3g43msc.js} +25 -25
- package/dist/chunks/{location-a9568cjm.js → location-x45ymrje.js} +31 -31
- package/dist/chunks/{location-1krkd5b8.js → location-x46t862s.js} +11 -11
- package/dist/chunks/{location-9f668h4q.js → location-x4s254pk.js} +9 -9
- package/dist/chunks/{location-db2wf4at.js → location-x661k3y3.js} +3 -3
- package/dist/chunks/{location-jnra9z53.js → location-x9q78qat.js} +15 -15
- package/dist/chunks/{location-g5w8qwbj.js → location-xfkkasph.js} +3 -3
- package/dist/chunks/{location-4c4k5wey.js → location-xs9sm4qv.js} +14 -14
- package/dist/chunks/{location-qp5zfzrm.js → location-y2072sec.js} +13 -13
- package/dist/chunks/{location-4bfey5n7.js → location-y7h48m45.js} +4 -4
- package/dist/chunks/{location-q9fmzgve.js → location-ychzzj24.js} +4 -4
- package/dist/chunks/{location-jwbqxjt0.js → location-yda4wkbn.js} +16 -16
- package/dist/chunks/{location-ma4d79jn.js → location-yern2px4.js} +18 -18
- package/dist/chunks/{location-fgj24z8y.js → location-z5xex4x1.js} +12 -12
- package/dist/chunks/{location-qw00nmad.js → location-z86epv9q.js} +21 -21
- package/dist/chunks/{location-x7x00081.js → location-zc6x355b.js} +1 -1
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +65 -65
- package/dist/config/discovery.js +58 -58
- package/dist/config/normalize.js +72 -72
- package/dist/config/plugin/agent.js +85 -85
- package/dist/config/plugin/command.js +168 -168
- package/dist/config/plugin/compaction.js +119 -119
- package/dist/config/plugin/compatibility.js +103 -103
- package/dist/config/plugin/formatter.js +86 -86
- package/dist/config/plugin/image.js +85 -85
- package/dist/config/plugin/instruction.js +65 -65
- package/dist/config/plugin/location-watcher.js +84 -84
- package/dist/config/plugin/mcp.js +93 -93
- package/dist/config/plugin/policy.js +86 -86
- package/dist/config/plugin/provider.js +85 -85
- package/dist/config/plugin/reference.js +87 -87
- package/dist/config/plugin/shell.js +85 -85
- package/dist/config/plugin/skill-file.js +73 -73
- package/dist/config/plugin/skill.js +104 -104
- package/dist/config/plugin/snapshot.js +85 -85
- package/dist/config/plugin/source.js +88 -88
- package/dist/config/plugin/tool-output.js +86 -86
- package/dist/config/plugin/websearch.js +84 -84
- package/dist/config/plugin/worktree.js +86 -86
- package/dist/config/variable.js +2 -2
- package/dist/config.js +91 -91
- package/dist/credential.js +64 -64
- package/dist/database/database.js +50 -50
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +40 -40
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +235 -235
- package/dist/environment/environment.js +65 -65
- package/dist/environment/index.js +67 -67
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +76 -76
- package/dist/file-mutation.js +66 -66
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +73 -73
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +76 -76
- package/dist/form.js +68 -68
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +63 -63
- package/dist/generate.js +73 -73
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +65 -65
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +311 -311
- package/dist/instruction-discovery.js +66 -66
- package/dist/instructions/builtins.js +63 -63
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +66 -66
- package/dist/job.js +59 -59
- package/dist/kv.js +55 -55
- package/dist/location-activity.js +55 -55
- package/dist/location-lifecycle.js +79 -79
- package/dist/location-service-map.js +62 -62
- package/dist/location-services.js +307 -307
- package/dist/location.js +61 -61
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +16 -16
- package/dist/mcp/index.js +79 -79
- package/dist/mcp/instructions.js +97 -97
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +62 -62
- package/dist/modal/models.js +65 -65
- package/dist/model-resolver.js +72 -72
- package/dist/model.js +74 -74
- package/dist/models-dev.js +81 -81
- package/dist/permission/saved.js +61 -61
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +55 -55
- package/dist/plugin/agent.js +56 -56
- package/dist/plugin/command.js +70 -70
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +176 -176
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +284 -284
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +70 -70
- package/dist/plugin/module.js +84 -84
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +74 -74
- package/dist/plugin/provider/amazon-bedrock.js +64 -64
- package/dist/plugin/provider/azure.js +86 -86
- package/dist/plugin/provider/chatgpt.js +66 -66
- package/dist/plugin/provider/cloudflare-ai-gateway.js +83 -83
- package/dist/plugin/provider/cloudflare-workers-ai.js +83 -83
- package/dist/plugin/provider/configured.js +82 -82
- package/dist/plugin/provider/digitalocean.js +66 -66
- package/dist/plugin/provider/github-copilot.js +68 -68
- package/dist/plugin/provider/gitlab.js +66 -66
- package/dist/plugin/provider/google-vertex.js +83 -83
- package/dist/plugin/provider/llmgateway.js +57 -57
- package/dist/plugin/provider/lmstudio.js +86 -86
- package/dist/plugin/provider/local.js +83 -83
- package/dist/plugin/provider/modal.js +66 -66
- package/dist/plugin/provider/ollama.js +86 -86
- package/dist/plugin/provider/openai.js +67 -67
- package/dist/plugin/provider/opencode.js +71 -71
- package/dist/plugin/provider/openrouter.js +65 -65
- package/dist/plugin/provider/poe.js +57 -57
- package/dist/plugin/provider/prompt-cache-key.js +64 -64
- package/dist/plugin/provider/sap-ai-core.js +64 -64
- package/dist/plugin/provider/snowflake-cortex.js +84 -84
- package/dist/plugin/provider/vercel.js +64 -64
- package/dist/plugin/provider/vllm.js +86 -86
- package/dist/plugin/provider/xai.js +65 -65
- package/dist/plugin/provider.js +121 -121
- package/dist/plugin/sdk.js +52 -52
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +104 -104
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +62 -62
- package/dist/plugin/vcs/hg.js +62 -62
- package/dist/plugin/verbosity.js +67 -67
- package/dist/plugin/warming.js +84 -84
- 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 +5 -5
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +183 -183
- package/dist/project.js +60 -60
- package/dist/provider.js +75 -75
- package/dist/pty.js +64 -64
- package/dist/reference/instructions.js +65 -65
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +68 -68
- package/dist/rpc.js +62 -62
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +103 -103
- package/dist/session/context.js +119 -119
- package/dist/session/diff.js +62 -62
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +116 -116
- package/dist/session/execution.js +99 -99
- package/dist/session/generate.js +118 -118
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +63 -63
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +58 -58
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +70 -70
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +89 -89
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +101 -101
- package/dist/session/projector.js +61 -61
- package/dist/session/prompt.js +76 -76
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +63 -63
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +187 -187
- package/dist/session/runner/model.js +72 -72
- package/dist/session/runner/publish-llm-event.js +84 -84
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +93 -93
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +131 -131
- package/dist/session/shell.js +98 -98
- package/dist/session/skill.js +75 -75
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +64 -64
- package/dist/session/subagent-job.js +167 -167
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +116 -116
- package/dist/session/to-session-error.js +83 -83
- package/dist/session/transfer.js +113 -113
- package/dist/session.js +178 -178
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +101 -101
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +82 -82
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +96 -96
- package/dist/tool/plugin/edit.js +85 -85
- package/dist/tool/plugin/glob.js +92 -92
- package/dist/tool/plugin/grep.js +94 -94
- package/dist/tool/plugin/mcp-resource.js +87 -87
- package/dist/tool/plugin/opencode.js +81 -81
- package/dist/tool/plugin/patch.js +91 -91
- package/dist/tool/plugin/question.js +75 -75
- package/dist/tool/plugin/read.js +95 -95
- package/dist/tool/plugin/shell.js +173 -173
- package/dist/tool/plugin/skill.js +83 -83
- package/dist/tool/plugin/subagent.js +176 -176
- package/dist/tool/plugin/webfetch.js +83 -83
- package/dist/tool/plugin/websearch.js +84 -84
- package/dist/tool/plugin/write.js +93 -93
- package/dist/tool/read-filesystem.js +70 -70
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/session/history.d.ts +32 -0
- package/dist/types/session/transfer.d.ts +19 -0
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +65 -65
- 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/variant.js +65 -65
- package/dist/vcs.js +65 -65
- package/dist/websearch.js +61 -61
- package/dist/wellknown/plugin.js +57 -57
- package/dist/wellknown.js +62 -62
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +62 -62
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/strategies.js +64 -64
- package/dist/worktree.js +70 -70
- 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-b564mtnb.js} +0 -0
- /package/dist/chunks/{location-kerhshr9.js → location-fegk541e.js} +0 -0
- /package/dist/chunks/{location-5camtqdd.js → location-shfh3dfx.js} +0 -0
- /package/dist/chunks/{location-c0gy5km3.js → location-wfyw2gqh.js} +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-nw13281a.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./location-5tmy9zrn.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./location-
|
|
8
|
+
ID15,
|
|
9
|
+
Event19,
|
|
10
|
+
Service77
|
|
11
|
+
} from "./location-d1zydk9p.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./location-
|
|
14
|
+
} from "./location-x661k3y3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID14,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./location-
|
|
18
|
+
} from "./location-2sdrxmhf.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
21
|
} from "./location-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./location-
|
|
23
|
+
ID13,
|
|
24
|
+
Service75
|
|
25
|
+
} from "./location-6mkt9mm7.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./location-
|
|
27
|
+
ID12
|
|
28
|
+
} from "./location-hp2pwxv9.js";
|
|
29
29
|
import {
|
|
30
30
|
iife2
|
|
31
31
|
} from "./location-1kg9ymc8.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./location-
|
|
34
|
+
} from "./location-dxnfbexj.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/azure.ts
|
|
37
37
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -75,19 +75,19 @@ var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.No
|
|
|
75
75
|
var ResourceListing = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
76
76
|
var decodeProfile = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.NonEmptyArray(Schema.Unknown) })));
|
|
77
77
|
var decodeResourceListing = Schema.decodeUnknownOption(Schema.Struct({ resourceName: Schema.NonEmptyString, resourceGroup: Schema.String, location: Schema.String }));
|
|
78
|
-
function
|
|
78
|
+
function make5(endpoints = {
|
|
79
79
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
80
80
|
management: "https://management.azure.com"
|
|
81
81
|
}) {
|
|
82
82
|
return define({
|
|
83
83
|
id: "opencode.provider.azure",
|
|
84
84
|
effect: Effect.fn(function* (ctx) {
|
|
85
|
-
const configured = yield* configuredSettings2(
|
|
85
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
86
86
|
const processes = yield* AppProcess.Service;
|
|
87
87
|
const fs = yield* FSUtil.Service;
|
|
88
|
-
const bus = yield*
|
|
89
|
-
const credentials = yield*
|
|
90
|
-
const providers = yield*
|
|
88
|
+
const bus = yield* Service83;
|
|
89
|
+
const credentials = yield* Service77;
|
|
90
|
+
const providers = yield* Service75;
|
|
91
91
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
92
92
|
const tokens = new Map;
|
|
93
93
|
const resourceIDs = new Map;
|
|
@@ -114,11 +114,11 @@ function make7(endpoints = {
|
|
|
114
114
|
const listing = {};
|
|
115
115
|
yield* ctx.integration.transform((editor) => {
|
|
116
116
|
editor.method.update({
|
|
117
|
-
integrationID:
|
|
117
|
+
integrationID: ID13.azure,
|
|
118
118
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
119
119
|
});
|
|
120
120
|
editor.method.update({
|
|
121
|
-
integrationID:
|
|
121
|
+
integrationID: ID13.azure,
|
|
122
122
|
method: {
|
|
123
123
|
type: "key",
|
|
124
124
|
label: "API key",
|
|
@@ -136,7 +136,7 @@ function make7(endpoints = {
|
|
|
136
136
|
if (!available)
|
|
137
137
|
return;
|
|
138
138
|
editor.method.update({
|
|
139
|
-
integrationID:
|
|
139
|
+
integrationID: ID13.azure,
|
|
140
140
|
method: {
|
|
141
141
|
id: methodID,
|
|
142
142
|
type: "external",
|
|
@@ -164,8 +164,8 @@ function make7(endpoints = {
|
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
167
|
-
const connection = yield* ctx.integration.connection.active(
|
|
168
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
167
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
168
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
169
169
|
return { connection, resource: credentialResource(stored?.value) };
|
|
170
170
|
});
|
|
171
171
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -204,7 +204,7 @@ function make7(endpoints = {
|
|
|
204
204
|
}));
|
|
205
205
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
206
206
|
const connection = loaded.connection;
|
|
207
|
-
const settings = (yield* providers.get(
|
|
207
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
208
208
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
209
209
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
210
210
|
if (loaded.connection !== connection)
|
|
@@ -226,11 +226,11 @@ function make7(endpoints = {
|
|
|
226
226
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
227
227
|
if (!found)
|
|
228
228
|
return;
|
|
229
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
229
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
230
230
|
return;
|
|
231
231
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
232
232
|
return;
|
|
233
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
233
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
234
234
|
id.toLowerCase(),
|
|
235
235
|
id
|
|
236
236
|
]));
|
|
@@ -243,7 +243,7 @@ function make7(endpoints = {
|
|
|
243
243
|
yield* ctx.model.reload();
|
|
244
244
|
});
|
|
245
245
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
246
|
-
const resourceFor = (provider) => provider.id ===
|
|
246
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
247
247
|
Object.assign(loaded, yield* load());
|
|
248
248
|
const listResources = Effect.fn("AzurePlugin.listResources")(function* () {
|
|
249
249
|
const profile = yield* fs.readFileStringSafe(path.join(process.env.AZURE_CONFIG_DIR ?? path.join(Global.Path.home, ".azure"), "azureProfile.json"));
|
|
@@ -268,7 +268,7 @@ function make7(endpoints = {
|
|
|
268
268
|
yield* listResources().pipe(Effect.catch((cause) => Effect.logDebug("failed to list Azure resources", { cause })), Effect.forkScoped);
|
|
269
269
|
yield* ctx.provider.transform((evt) => {
|
|
270
270
|
for (const item of evt.list()) {
|
|
271
|
-
if (item.provider.id !==
|
|
271
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
272
272
|
continue;
|
|
273
273
|
const resourceName = resourceFor(item.provider);
|
|
274
274
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -283,7 +283,7 @@ function make7(endpoints = {
|
|
|
283
283
|
};
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
const item = evt.get(
|
|
286
|
+
const item = evt.get(ID13.azure);
|
|
287
287
|
if (!item)
|
|
288
288
|
return;
|
|
289
289
|
evt.add({
|
|
@@ -294,7 +294,7 @@ function make7(endpoints = {
|
|
|
294
294
|
});
|
|
295
295
|
yield* ctx.model.transform((models) => {
|
|
296
296
|
for (const item of models.provider.list()) {
|
|
297
|
-
if (item.provider.id !==
|
|
297
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
298
298
|
continue;
|
|
299
299
|
const resourceName = resourceFor(item.provider);
|
|
300
300
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -306,20 +306,20 @@ function make7(endpoints = {
|
|
|
306
306
|
}
|
|
307
307
|
if (!loaded.deployments)
|
|
308
308
|
return;
|
|
309
|
-
const catalog = models.list(
|
|
309
|
+
const catalog = models.list(ID13.azure);
|
|
310
310
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
311
311
|
for (const model of catalog) {
|
|
312
312
|
if (!deployed.has(model.id))
|
|
313
|
-
models.remove(
|
|
313
|
+
models.remove(ID13.azure, model.id);
|
|
314
314
|
}
|
|
315
315
|
for (const [id, model] of deployed) {
|
|
316
|
-
models.update(
|
|
316
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
yield* bus.subscribe(
|
|
319
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
320
320
|
yield* refresh().pipe(Effect.forkScoped);
|
|
321
321
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
322
|
-
const connection = yield* ctx.integration.connection.active(
|
|
322
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
323
323
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
324
324
|
return;
|
|
325
325
|
})) : undefined;
|
|
@@ -331,7 +331,7 @@ function make7(endpoints = {
|
|
|
331
331
|
return `Bearer ${current.access}`;
|
|
332
332
|
});
|
|
333
333
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
334
|
-
if (evt.model.providerID !==
|
|
334
|
+
if (evt.model.providerID !== ID13.azure)
|
|
335
335
|
return;
|
|
336
336
|
const authorization = yield* bearer(evt.request.url);
|
|
337
337
|
if (!authorization)
|
|
@@ -340,9 +340,9 @@ function make7(endpoints = {
|
|
|
340
340
|
evt.request.headers.delete("x-api-key");
|
|
341
341
|
evt.request.headers.set("authorization", authorization);
|
|
342
342
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
343
|
-
}), { providerID:
|
|
343
|
+
}), { providerID: ID13.azure });
|
|
344
344
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
345
|
-
if (evt.model.providerID !==
|
|
345
|
+
if (evt.model.providerID !== ID13.azure)
|
|
346
346
|
return;
|
|
347
347
|
const authorization = yield* bearer(evt.url);
|
|
348
348
|
if (!authorization)
|
|
@@ -351,11 +351,11 @@ function make7(endpoints = {
|
|
|
351
351
|
delete evt.headers["x-api-key"];
|
|
352
352
|
evt.headers.authorization = authorization;
|
|
353
353
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
354
|
-
}), { providerID:
|
|
354
|
+
}), { providerID: ID13.azure });
|
|
355
355
|
})
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
var AzurePlugin2 =
|
|
358
|
+
var AzurePlugin2 = make5();
|
|
359
359
|
function resolveResourceName(settings, fallback) {
|
|
360
360
|
const configured = settings?.resourceName;
|
|
361
361
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -393,11 +393,11 @@ function deployedModels(deployments, catalog) {
|
|
|
393
393
|
const model = catalogModel(models, deployment);
|
|
394
394
|
if (!model)
|
|
395
395
|
return [];
|
|
396
|
-
const id =
|
|
396
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
397
397
|
const info = {
|
|
398
398
|
...structuredClone(model),
|
|
399
399
|
id,
|
|
400
|
-
modelID:
|
|
400
|
+
modelID: ID12.make(deployment.name),
|
|
401
401
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
402
402
|
};
|
|
403
403
|
return [[id, info]];
|
|
@@ -419,4 +419,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
419
419
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
export {
|
|
422
|
+
export { make5, AzurePlugin2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./location-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./location-5tmy9zrn.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./location-
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./location-8vd0j1f8.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
11
|
} from "./location-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./location-
|
|
13
|
+
Service52,
|
|
14
|
+
node55
|
|
15
|
+
} from "./location-mjac82m3.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./location-9rqn6x4v.js";
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
// src/session/instructions.ts
|
|
21
21
|
var exports_instructions = {};
|
|
22
22
|
__export(exports_instructions, {
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service8,
|
|
24
24
|
SessionInstructions: () => exports_instructions,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node10
|
|
26
26
|
});
|
|
27
27
|
import { relative } from "path";
|
|
28
28
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -32,13 +32,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
32
32
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service8 extends Context.Service()("@opencode/SessionInstructions") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const bus = yield*
|
|
37
|
+
var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
38
|
+
const bus = yield* Service83;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
|
-
const store = yield*
|
|
41
|
-
const location = yield*
|
|
40
|
+
const store = yield* Service52;
|
|
41
|
+
const location = yield* Service80;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
44
44
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -84,7 +84,7 @@ ${file.content}`).join(`
|
|
|
84
84
|
return next;
|
|
85
85
|
})));
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return Service8.of({ load });
|
|
88
88
|
}));
|
|
89
89
|
function previouslyInjected(store, sessionID) {
|
|
90
90
|
return Effect.gen(function* () {
|
|
@@ -95,10 +95,10 @@ function previouslyInjected(store, sessionID) {
|
|
|
95
95
|
function describePath(root, path) {
|
|
96
96
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var node10 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [
|
|
101
|
+
deps: [node87, FSUtil.node, node84, node55]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
export {
|
|
104
|
+
export { Service8, node10, exports_instructions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./location-
|
|
2
|
+
ID14,
|
|
3
|
+
Service76
|
|
4
|
+
} from "./location-2sdrxmhf.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/llmgateway.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
9
9
|
var LLMGatewayPlugin2 = define({
|
|
10
10
|
id: "opencode.provider.llmgateway",
|
|
11
11
|
effect: Effect.fn(function* (ctx) {
|
|
12
|
-
const integrations = yield*
|
|
12
|
+
const integrations = yield* Service76;
|
|
13
13
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
14
14
|
yield* ctx.provider.transform((evt) => {
|
|
15
15
|
for (const item of evt.list()) {
|
|
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
19
19
|
continue;
|
|
20
20
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
21
21
|
continue;
|
|
22
|
-
if (!configured.has(
|
|
22
|
+
if (!configured.has(ID14.make(item.provider.id)))
|
|
23
23
|
continue;
|
|
24
24
|
evt.update(item.provider.id, (provider) => {
|
|
25
25
|
provider.headers = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-bah8gbxw.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make7 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make6 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make7();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make7, OllamaPlugin2 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info17,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info17 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info13 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info17, exports_provider2 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./location-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./location-5tmy9zrn.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./location-
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./location-hekf1c5w.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./location-
|
|
10
|
+
Service80,
|
|
11
|
+
node84
|
|
12
|
+
} from "./location-8vd0j1f8.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./location-
|
|
15
|
+
} from "./location-1x11rq2a.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./location-
|
|
17
|
+
Service71,
|
|
18
|
+
node75
|
|
19
|
+
} from "./location-cadbnk3n.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./location-
|
|
21
|
+
node20
|
|
22
|
+
} from "./location-82ztv55b.js";
|
|
23
23
|
import {
|
|
24
24
|
Service10,
|
|
25
25
|
node12
|
|
@@ -32,22 +32,22 @@ import {
|
|
|
32
32
|
var exports_location_watcher = {};
|
|
33
33
|
__export(exports_location_watcher, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service2,
|
|
36
|
+
node: () => node2
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
48
|
-
const bus = yield*
|
|
45
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service80;
|
|
47
|
+
const watcher = yield* Service71;
|
|
48
|
+
const bus = yield* Service83;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
51
|
const policy = yield* Service10;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service2.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node2 = makeLocationNode({
|
|
106
|
+
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node75, FSUtil.node, node84, node86, node87, node20, node12]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service2, node2, exports_location_watcher };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./location-
|
|
4
|
+
} from "./location-pw009p93.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
7
|
} from "./location-3hepkmqq.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service74,
|
|
17
|
+
node: () => node78
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service74 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service84).db;
|
|
26
|
-
return
|
|
26
|
+
return Service74.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node78 = makeGlobalNode({ service: Service74, layer, deps: [node88] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service74, node78, exports_kv };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-nw13281a.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./location-5tmy9zrn.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./location-
|
|
9
|
+
Event19
|
|
10
|
+
} from "./location-d1zydk9p.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./location-
|
|
13
|
+
} from "./location-x661k3y3.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./location-
|
|
17
|
+
} from "./location-2sdrxmhf.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID13,
|
|
20
20
|
aisdk2,
|
|
21
|
-
|
|
22
|
-
} from "./location-
|
|
21
|
+
Service75
|
|
22
|
+
} from "./location-6mkt9mm7.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./location-
|
|
24
|
+
ID12,
|
|
25
|
+
Info20
|
|
26
|
+
} from "./location-hp2pwxv9.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
@@ -35,8 +35,8 @@ import { Clock, Deferred, Effect, Exit, Option, Schema, Semaphore, Stream } from
|
|
|
35
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
36
36
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
37
37
|
import { Form } from "@opencode/schema/form";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID13.gitlab;
|
|
39
|
+
var integrationID = ID14.make("gitlab");
|
|
40
40
|
var methodID = MethodID2.make("pkce");
|
|
41
41
|
var bundledClientID = "fd180700a8f9c5d5557aca231632dd0611a1135a3bb510a741d5a988a3394fa7";
|
|
42
42
|
var legacyClientID = "1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e";
|
|
@@ -57,8 +57,8 @@ var refreshRetention = 60000;
|
|
|
57
57
|
var GitLabPlugin2 = define({
|
|
58
58
|
id: "opencode.provider.gitlab",
|
|
59
59
|
effect: Effect.fn(function* (ctx) {
|
|
60
|
-
const providers = yield*
|
|
61
|
-
const bus = yield*
|
|
60
|
+
const providers = yield* Service75;
|
|
61
|
+
const bus = yield* Service83;
|
|
62
62
|
const http = yield* HttpClient.HttpClient;
|
|
63
63
|
const loading = Semaphore.makeUnsafe(1);
|
|
64
64
|
const loaded = {};
|
|
@@ -185,7 +185,7 @@ var GitLabPlugin2 = define({
|
|
|
185
185
|
models: [
|
|
186
186
|
...item.models.values(),
|
|
187
187
|
...loaded.models.filter((model) => !item.models.has(model.id)).map((model) => ({
|
|
188
|
-
...
|
|
188
|
+
...Info20.default(providerID, ID12.make(model.id)),
|
|
189
189
|
name: `Agent Platform (${model.name})`,
|
|
190
190
|
package: aisdk2("gitlab-ai-provider"),
|
|
191
191
|
settings: { workflowRef: model.ref },
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -219,7 +219,7 @@ var GitLabPlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
222
|
-
if (evt.model.providerID !==
|
|
222
|
+
if (evt.model.providerID !== ID13.gitlab)
|
|
223
223
|
return;
|
|
224
224
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
225
225
|
const id = evt.model.modelID ?? evt.model.id;
|