@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,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
Service34
|
|
3
|
+
} from "./location-eye44qas.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service42
|
|
6
|
+
} from "./location-sxzvkvgj.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./location-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./location-
|
|
12
|
+
} from "./location-1x11rq2a.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./location-
|
|
14
|
+
Service54
|
|
15
|
+
} from "./location-1g96y08y.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./location-
|
|
19
|
+
} from "./location-eaezvagx.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./location-
|
|
22
|
+
Service48
|
|
23
|
+
} from "./location-x1ayq2cp.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./location-9rqn6x4v.js";
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service42;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service54;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service48;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service34;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
Service78
|
|
3
|
+
} from "./location-brwsd5y5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service50
|
|
6
|
+
} from "./location-cy5473yv.js";
|
|
7
7
|
import {
|
|
8
8
|
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./location-
|
|
13
|
+
Service47
|
|
14
|
+
} from "./location-wgrzeraf.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./location-9rqn6x4v.js";
|
|
@@ -19,48 +19,48 @@ import {
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch = {};
|
|
21
21
|
__export(exports_websearch, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input8,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin11,
|
|
25
25
|
WebSearchTool: () => exports_websearch,
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
description: () => description3,
|
|
27
|
+
name: () => name8
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name8 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description3 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input8 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
46
|
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin11 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service50;
|
|
53
|
+
const forms = yield* Service78;
|
|
54
|
+
const websearch = yield* Service47;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name8,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description3,
|
|
59
|
+
input: Input8,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name8,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name8];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name8, NO_RESULTS2, description3, Input8, Plugin11, exports_websearch };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin28,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin28 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin13 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin28, exports_identity };
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
makeUnsafe2
|
|
3
3
|
} from "./location-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./location-
|
|
5
|
+
Service63,
|
|
6
|
+
node66
|
|
7
|
+
} from "./location-e66rkf12.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./location-9rqn6x4v.js";
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service14,
|
|
17
|
+
node: () => node16,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service14 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service63;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service14.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node16 = makeLocationNode({ service: Service14, layer, deps: [node66] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service14, readText2, syncTextBom2, node16, exports_file_mutation };
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service29
|
|
6
|
+
} from "./location-ted02x33.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./location-
|
|
8
|
+
Service50
|
|
9
|
+
} from "./location-cy5473yv.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./location-9rqn6x4v.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
var exports_mcp_resource = {};
|
|
16
16
|
__export(exports_mcp_resource, {
|
|
17
17
|
McpResourceTools: () => exports_mcp_resource,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin3
|
|
19
19
|
});
|
|
20
20
|
import { ToolFailure } from "@opencode/ai";
|
|
21
21
|
import { Effect, Schema } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin3 = {
|
|
23
23
|
id: "opencode.tools.mcp-resources",
|
|
24
24
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
25
|
-
const mcp = yield*
|
|
26
|
-
const permission = yield*
|
|
25
|
+
const mcp = yield* Service29;
|
|
26
|
+
const permission = yield* Service50;
|
|
27
27
|
yield* ctx.tool.transform((editor) => {
|
|
28
28
|
editor.add({
|
|
29
29
|
name: "list_mcp_resources",
|
|
@@ -93,4 +93,4 @@ var Plugin18 = {
|
|
|
93
93
|
})
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Plugin3, exports_mcp_resource };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./location-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./location-5tmy9zrn.js";
|
|
5
5
|
import {
|
|
6
6
|
parse4,
|
|
7
7
|
parseRemote2,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
AbsolutePath2
|
|
14
14
|
} from "./location-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./location-
|
|
16
|
+
Service46,
|
|
17
|
+
node48
|
|
18
|
+
} from "./location-rg98346q.js";
|
|
19
19
|
import {
|
|
20
20
|
create3
|
|
21
21
|
} from "./location-rdw6cm16.js";
|
|
@@ -26,31 +26,31 @@ import {
|
|
|
26
26
|
// src/reference.ts
|
|
27
27
|
var exports_reference2 = {};
|
|
28
28
|
__export(exports_reference2, {
|
|
29
|
-
Event: () =>
|
|
29
|
+
Event: () => Event4,
|
|
30
30
|
GitSource: () => GitSource2,
|
|
31
|
-
Info: () =>
|
|
31
|
+
Info: () => Info5,
|
|
32
32
|
LocalSource: () => LocalSource2,
|
|
33
33
|
Reference: () => exports_reference2,
|
|
34
|
-
Service: () =>
|
|
35
|
-
Source: () =>
|
|
36
|
-
node: () =>
|
|
34
|
+
Service: () => Service32,
|
|
35
|
+
Source: () => Source3,
|
|
36
|
+
node: () => node35
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
40
40
|
import { Reference } from "@opencode/schema/reference";
|
|
41
41
|
import { Global } from "@opencode/util/global";
|
|
42
|
-
import { Event as
|
|
42
|
+
import { Event as Event4 } from "@opencode/schema/reference";
|
|
43
43
|
var LocalSource2 = Reference.LocalSource;
|
|
44
44
|
var GitSource2 = Reference.GitSource;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var Source3 = Reference.Source;
|
|
46
|
+
var Info5 = Reference.Info;
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service32 extends Context.Service()("@opencode/Reference") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const bus = yield*
|
|
53
|
-
const cache = yield*
|
|
52
|
+
const bus = yield* Service83;
|
|
53
|
+
const cache = yield* Service46;
|
|
54
54
|
const scope = yield* Scope.Scope;
|
|
55
55
|
const list = () => Array.from(state.get().sources).flatMap(([name, source]) => {
|
|
56
56
|
const info = {
|
|
@@ -60,7 +60,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
60
60
|
...source.hidden === undefined ? {} : { hidden: source.hidden }
|
|
61
61
|
};
|
|
62
62
|
if (source.type === "local")
|
|
63
|
-
return [
|
|
63
|
+
return [Info5.make({ ...info, path: source.path })];
|
|
64
64
|
const repository = parse4(source.repository);
|
|
65
65
|
if (!repository || !isRemote2(repository))
|
|
66
66
|
return [];
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return [
|
|
75
|
-
|
|
75
|
+
Info5.make({
|
|
76
76
|
...info,
|
|
77
77
|
path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
|
|
78
78
|
})
|
|
@@ -104,7 +104,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
107
|
-
return
|
|
107
|
+
return Service32.of({
|
|
108
108
|
transform: state.transform,
|
|
109
109
|
reload: state.reload,
|
|
110
110
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -112,10 +112,10 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var
|
|
116
|
-
service:
|
|
115
|
+
var node35 = makeLocationNode({
|
|
116
|
+
service: Service32,
|
|
117
117
|
layer,
|
|
118
|
-
deps: [Global.node,
|
|
118
|
+
deps: [Global.node, node87, node48]
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
export { LocalSource2, GitSource2,
|
|
121
|
+
export { LocalSource2, GitSource2, Source3, Info5, Service32, node35, exports_reference2, Event4 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./location-
|
|
2
|
+
ID14,
|
|
3
|
+
Service76,
|
|
4
|
+
node80
|
|
5
|
+
} from "./location-2sdrxmhf.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID13,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
timeouts2,
|
|
15
15
|
mergeOverlay2,
|
|
16
16
|
mergeHeaders2,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./location-
|
|
17
|
+
Service75,
|
|
18
|
+
node79
|
|
19
|
+
} from "./location-6mkt9mm7.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./location-
|
|
21
|
+
Service58,
|
|
22
|
+
node61
|
|
23
|
+
} from "./location-sx4ak346.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID12,
|
|
26
26
|
VariantID2,
|
|
27
27
|
Ref2,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
Service73,
|
|
29
|
+
node77,
|
|
30
30
|
supportsText2
|
|
31
|
-
} from "./location-
|
|
31
|
+
} from "./location-hp2pwxv9.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./location-9rqn6x4v.js";
|
|
@@ -40,15 +40,15 @@ __export(exports_model_resolver, {
|
|
|
40
40
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
41
41
|
ModelInitializationError: () => ModelInitializationError2,
|
|
42
42
|
ModelResolver: () => exports_model_resolver,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service57,
|
|
44
44
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
45
45
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
46
46
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
47
47
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
48
48
|
fromCatalogModel: () => fromCatalogModel2,
|
|
49
49
|
hasPackage: () => hasPackage2,
|
|
50
|
-
layer: () =>
|
|
51
|
-
node: () =>
|
|
50
|
+
layer: () => layer21,
|
|
51
|
+
node: () => node60,
|
|
52
52
|
resolveModel: () => resolveModel2,
|
|
53
53
|
withVariant: () => withVariant2
|
|
54
54
|
});
|
|
@@ -58,8 +58,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
58
58
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
59
59
|
import { Npm } from "@opencode/util/npm";
|
|
60
60
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
61
|
-
providerID:
|
|
62
|
-
modelID:
|
|
61
|
+
providerID: ID13,
|
|
62
|
+
modelID: ID12,
|
|
63
63
|
variant: VariantID2
|
|
64
64
|
}) {
|
|
65
65
|
get message() {
|
|
@@ -68,8 +68,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
71
|
-
providerID:
|
|
72
|
-
modelID:
|
|
71
|
+
providerID: ID13,
|
|
72
|
+
modelID: ID12,
|
|
73
73
|
package: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
get message() {
|
|
@@ -79,8 +79,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
79
79
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
80
80
|
|
|
81
81
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
82
|
-
providerID:
|
|
83
|
-
modelID:
|
|
82
|
+
providerID: ID13,
|
|
83
|
+
modelID: ID12,
|
|
84
84
|
package: Schema.String,
|
|
85
85
|
detail: Schema.String
|
|
86
86
|
}) {
|
|
@@ -90,8 +90,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
93
|
-
providerID:
|
|
94
|
-
modelID:
|
|
93
|
+
providerID: ID13,
|
|
94
|
+
modelID: ID12,
|
|
95
95
|
package: Schema.String,
|
|
96
96
|
phase: InitializationPhase2,
|
|
97
97
|
detail: Schema.String
|
|
@@ -102,8 +102,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
105
|
-
providerID:
|
|
106
|
-
modelID:
|
|
105
|
+
providerID: ID13,
|
|
106
|
+
modelID: ID12,
|
|
107
107
|
variables: Schema.Array(Schema.String)
|
|
108
108
|
}) {
|
|
109
109
|
get message() {
|
|
@@ -112,8 +112,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
115
|
-
providerID:
|
|
116
|
-
modelID:
|
|
115
|
+
providerID: ID13,
|
|
116
|
+
modelID: ID12,
|
|
117
117
|
route: Schema.String
|
|
118
118
|
}) {
|
|
119
119
|
get message() {
|
|
@@ -121,7 +121,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class Service57 extends Context.Service()("@opencode/ModelResolver") {
|
|
125
125
|
}
|
|
126
126
|
var withVariant2 = (model, variantID) => {
|
|
127
127
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -235,7 +235,7 @@ var nativeCredentialSettings = (model, specifier, credential) => {
|
|
|
235
235
|
return tokenSettings(specifier, credential.access);
|
|
236
236
|
if (specifier.startsWith("@opencode/ai/providers/amazon-bedrock"))
|
|
237
237
|
return { auth: "sigv4" };
|
|
238
|
-
if (model.providerID ===
|
|
238
|
+
if (model.providerID === ID13.azure)
|
|
239
239
|
return tokenSettings(specifier, "azure-cli");
|
|
240
240
|
return {};
|
|
241
241
|
};
|
|
@@ -270,15 +270,15 @@ var causeMessage = (cause) => {
|
|
|
270
270
|
};
|
|
271
271
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
272
272
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
273
|
-
var
|
|
274
|
-
const providers = yield*
|
|
275
|
-
const models = yield*
|
|
276
|
-
const integrations = yield*
|
|
273
|
+
var layer21 = Layer.effect(Service57, Effect.gen(function* () {
|
|
274
|
+
const providers = yield* Service75;
|
|
275
|
+
const models = yield* Service73;
|
|
276
|
+
const integrations = yield* Service76;
|
|
277
277
|
const npm = yield* Npm.Service;
|
|
278
|
-
const aisdk = yield*
|
|
278
|
+
const aisdk = yield* Service58;
|
|
279
279
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
280
280
|
const provider = yield* providers.get(selected.providerID);
|
|
281
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
281
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
282
282
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
283
283
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
284
284
|
const runtimeInfo = {
|
|
@@ -305,7 +305,7 @@ var layer24 = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
305
305
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
306
306
|
};
|
|
307
307
|
});
|
|
308
|
-
return
|
|
308
|
+
return Service57.of({
|
|
309
309
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
310
310
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
311
311
|
if (!selected)
|
|
@@ -322,10 +322,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
322
322
|
const name = packageName2(packageName);
|
|
323
323
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
service:
|
|
327
|
-
layer:
|
|
328
|
-
deps: [
|
|
325
|
+
var node60 = makeLocationNode({
|
|
326
|
+
service: Service57,
|
|
327
|
+
layer: layer21,
|
|
328
|
+
deps: [node79, node77, node80, Npm.node, node61]
|
|
329
329
|
});
|
|
330
330
|
|
|
331
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
331
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service57, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer21, node60, exports_model_resolver };
|