@opencode/core 0.0.0-dev-21340 → 0.0.0-dev-21344
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 +68 -68
- package/dist/aisdk.js +71 -71
- package/dist/app.js +7 -7
- package/dist/bus.js +54 -54
- package/dist/chunks/{form-5wr9n5bc.js → form-03hw1891.js} +18 -18
- package/dist/chunks/{form-r2zk8jj2.js → form-05praa0f.js} +17 -17
- package/dist/chunks/{form-tpr2dqt6.js → form-06qmw05c.js} +19 -19
- package/dist/chunks/{form-4eh83hae.js → form-0nwnefwx.js} +21 -21
- package/dist/chunks/{form-rc9vttjd.js → form-12ceq3sd.js} +16 -16
- package/dist/chunks/{form-dtkj6t2x.js → form-16jfehqd.js} +30 -30
- package/dist/chunks/{form-svvda557.js → form-1851grx7.js} +9 -9
- package/dist/chunks/{form-jevsscxn.js → form-1a8kzx3z.js} +8 -8
- package/dist/chunks/{form-ym4b2kva.js → form-1f0rm155.js} +11 -11
- package/dist/chunks/{form-bjx1sjef.js → form-1ffvrpkg.js} +4 -4
- package/dist/chunks/{form-egwezsn2.js → form-1mn6fryd.js} +29 -29
- package/dist/chunks/{form-6yz0wx8n.js → form-1pxz8ven.js} +3 -3
- package/dist/chunks/{form-ngv1hrws.js → form-1rh4e964.js} +9 -9
- package/dist/chunks/{form-xx4eqekj.js → form-1v56txv5.js} +27 -27
- package/dist/chunks/{form-9sh4wc5j.js → form-1x11rq2a.js} +4 -4
- package/dist/chunks/{form-61s75xk5.js → form-1xag7s0d.js} +9 -9
- package/dist/chunks/{form-b0frvc6a.js → form-1zvfhj0e.js} +20 -20
- package/dist/chunks/{form-92swnv4m.js → form-22sd1qqc.js} +7 -7
- package/dist/chunks/{form-abnya1q3.js → form-24whbny8.js} +10 -10
- package/dist/chunks/{form-hhm4rk5s.js → form-251hxpd6.js} +1 -1
- package/dist/chunks/{form-ykbgc1mn.js → form-268xe8g9.js} +7 -7
- package/dist/chunks/{form-zcrspsvn.js → form-2vs2nh1n.js} +3 -3
- package/dist/chunks/{form-0jqywv5j.js → form-2z0hcvmw.js} +11 -11
- package/dist/chunks/{form-zqjsn67b.js → form-38cy47c3.js} +6 -6
- package/dist/chunks/{form-q0n5p59x.js → form-3gc7db2q.js} +8 -8
- package/dist/chunks/{form-7f8j414w.js → form-3jqnp5e1.js} +16 -16
- package/dist/chunks/{form-pww2q2ts.js → form-3kmbmqbb.js} +1 -1
- package/dist/chunks/{form-tprmfzaq.js → form-3mgq9tn8.js} +13 -13
- package/dist/chunks/{form-2tzz6wa4.js → form-3n01zwdf.js} +47 -47
- package/dist/chunks/{form-55xzanda.js → form-3snckwy5.js} +18 -18
- package/dist/chunks/{form-1n047p2a.js → form-3xh7hkzg.js} +16 -16
- package/dist/chunks/{form-7dx0mp5a.js → form-43pfpj47.js} +2 -2
- package/dist/chunks/{form-kgash78d.js → form-45ptwq2c.js} +4 -4
- package/dist/chunks/{form-n68wnkf7.js → form-46tcmqje.js} +19 -19
- package/dist/chunks/{form-kzbxs04q.js → form-48sw23k9.js} +16 -16
- package/dist/chunks/form-49xamyg9.js +257 -0
- package/dist/chunks/{form-tq73j5ey.js → form-4kpsjb1s.js} +5 -5
- package/dist/chunks/{form-zkdxs0f7.js → form-4r8b378w.js} +8 -8
- package/dist/chunks/{form-4fw7esra.js → form-4xf1jpfm.js} +3 -3
- package/dist/chunks/{form-qwert80r.js → form-517dcg1a.js} +4 -4
- package/dist/chunks/{form-nvbqagkz.js → form-5h12h0cy.js} +33 -33
- package/dist/chunks/{form-e3qxr5gk.js → form-5qd3pb7m.js} +2 -2
- package/dist/chunks/{form-mmjb59xw.js → form-5zh9a8yb.js} +22 -22
- package/dist/chunks/{form-4n9d0tgx.js → form-64vmcaw9.js} +41 -41
- package/dist/chunks/{form-jm9pv4jw.js → form-65mr19er.js} +10 -10
- package/dist/chunks/{form-91js1pam.js → form-6cw2sbjh.js} +16 -16
- package/dist/chunks/{form-jbr6yd38.js → form-7217af1g.js} +14 -14
- package/dist/chunks/{form-dbt3qtfn.js → form-7eh5v8ez.js} +22 -22
- package/dist/chunks/{form-0p4mvthy.js → form-7g9ka3b7.js} +13 -13
- package/dist/chunks/{form-4krksnp0.js → form-7je7e60q.js} +19 -19
- package/dist/chunks/{form-0bkg5nam.js → form-7n556vnp.js} +28 -28
- package/dist/chunks/{form-2nragry7.js → form-7xhhy66q.js} +12 -12
- package/dist/chunks/{form-a4f079eb.js → form-861n07f3.js} +16 -16
- package/dist/chunks/{form-n2fddagm.js → form-86d0rtkg.js} +8 -8
- package/dist/chunks/{form-tcezcvh9.js → form-89znhe33.js} +3 -3
- package/dist/chunks/form-8dempt9d.js +26 -0
- package/dist/chunks/{form-hxpm8s3f.js → form-8myr7ban.js} +3 -3
- package/dist/chunks/{form-rsrjg9aq.js → form-8pdcb37s.js} +180 -180
- package/dist/chunks/{form-ymx7xvyq.js → form-90gj6ab4.js} +20 -20
- package/dist/chunks/{form-r4gn9rws.js → form-9f3m9enf.js} +36 -36
- package/dist/chunks/{form-vawf6b6n.js → form-9hhx5af9.js} +2 -2
- package/dist/chunks/{form-6n9djq0h.js → form-9vkgtp31.js} +9 -9
- package/dist/chunks/{form-cf8mxv8s.js → form-9yd6k3gs.js} +27 -27
- package/dist/chunks/{form-fbvxegff.js → form-a5wmqwpc.js} +5 -5
- package/dist/chunks/{form-rp9znzbk.js → form-a9fy9mxz.js} +4 -4
- package/dist/chunks/{form-kbs0fn1w.js → form-awg6j8k5.js} +12 -12
- package/dist/chunks/{form-7zzdk6j1.js → form-bmkdxg01.js} +327 -327
- package/dist/chunks/{form-pbtbray8.js → form-brndm0ne.js} +18 -18
- package/dist/chunks/{form-bvse6ds2.js → form-c61xra83.js} +25 -25
- package/dist/chunks/{form-n8p3yyy1.js → form-c6jrq38e.js} +10 -10
- package/dist/chunks/{form-man6r55w.js → form-caz0srpv.js} +8 -8
- package/dist/chunks/{form-6xwkk55c.js → form-cdyfjk22.js} +7 -7
- package/dist/chunks/{form-b89refpb.js → form-cefkz2r6.js} +1 -1
- package/dist/chunks/{form-qc22nsxb.js → form-cjd6ew82.js} +16 -16
- package/dist/chunks/{form-px1ej7j2.js → form-ck9mnxsy.js} +19 -19
- package/dist/chunks/{form-8hpy5qx6.js → form-crj8jj8v.js} +24 -24
- package/dist/chunks/{form-am8khs7c.js → form-ct33827a.js} +24 -24
- package/dist/chunks/{form-g454qmhn.js → form-ctf2yk4c.js} +32 -32
- package/dist/chunks/{form-5g85rz3q.js → form-cyj5tmxp.js} +19 -19
- package/dist/chunks/{form-t0pyhqcw.js → form-d04ep358.js} +8 -8
- package/dist/chunks/{form-zerhytxa.js → form-d31hr9cr.js} +12 -12
- package/dist/chunks/{form-j9dnpnxm.js → form-d45h4px0.js} +55 -55
- package/dist/chunks/{form-kmgdj4b7.js → form-d7j2b6b5.js} +4 -4
- package/dist/chunks/{form-n9z01exy.js → form-dgp61zeh.js} +14 -14
- package/dist/chunks/{form-2sejkfem.js → form-djszqvmq.js} +7 -7
- package/dist/chunks/{form-y71avatq.js → form-dpkg50ah.js} +3 -3
- package/dist/chunks/{form-0s7awbhn.js → form-e03vnsya.js} +1 -1
- package/dist/chunks/{form-v70j0478.js → form-e0vw22bh.js} +9 -9
- package/dist/chunks/{form-j73xx5v2.js → form-e17kez53.js} +12 -12
- package/dist/chunks/{form-zpq5tdxv.js → form-e6b459zv.js} +24 -24
- package/dist/chunks/{form-vep9yay1.js → form-e7gxy7fd.js} +3 -3
- package/dist/chunks/{form-962zhnx1.js → form-eba4qtm8.js} +27 -27
- package/dist/chunks/{form-tvq4fmk2.js → form-ejrgmtaq.js} +7 -7
- package/dist/chunks/{form-ct5beqmq.js → form-eps22w94.js} +9 -9
- package/dist/chunks/{form-jqd7rvfh.js → form-es3vcbkv.js} +3 -3
- package/dist/chunks/{form-frnhj82z.js → form-exh5eq2b.js} +9 -9
- package/dist/chunks/{form-sagdypxn.js → form-f88m6yqb.js} +9 -9
- package/dist/chunks/{form-tekdv28b.js → form-fhvqd07r.js} +14 -14
- package/dist/chunks/{form-0qaxnjep.js → form-fj60yz2g.js} +21 -21
- package/dist/chunks/{form-wz9398tt.js → form-ft0vqakg.js} +40 -40
- package/dist/chunks/{form-e7a0tnjd.js → form-fww2ha2b.js} +8 -8
- package/dist/chunks/{form-nzndyyrp.js → form-fz4d0gag.js} +40 -40
- package/dist/chunks/{form-wdfe9bpp.js → form-g2t9s127.js} +4 -4
- package/dist/chunks/{form-aat25gmm.js → form-g4m4kdwx.js} +18 -18
- package/dist/chunks/{form-y7nndgyc.js → form-g686f6pq.js} +7 -7
- package/dist/chunks/{form-mc39ckc0.js → form-g6smwwgg.js} +10 -10
- package/dist/chunks/{form-ez4eysx7.js → form-g7cb5dsr.js} +27 -27
- package/dist/chunks/{form-tv2qmm1m.js → form-g97htqd3.js} +17 -17
- package/dist/chunks/{form-he8gezxy.js → form-ggd4e67m.js} +17 -17
- package/dist/chunks/{form-j2ahjm38.js → form-ggkcxy96.js} +8 -8
- package/dist/chunks/{form-b2zs7akg.js → form-ghxkdvab.js} +41 -41
- package/dist/chunks/{form-nb3eeafx.js → form-gnbbadj4.js} +45 -45
- package/dist/chunks/{form-adnpvf0n.js → form-gp275c3d.js} +78 -78
- package/dist/chunks/{form-h0et906m.js → form-gpmesn0v.js} +39 -39
- package/dist/chunks/{form-rpqs4zrr.js → form-gv897vmw.js} +13 -13
- package/dist/chunks/{form-eeeprd1m.js → form-gvj76kbm.js} +13 -13
- package/dist/chunks/{form-xed4prex.js → form-gwc3z95n.js} +20 -20
- package/dist/chunks/{form-g2brvksk.js → form-h1vf0xqq.js} +23 -23
- package/dist/chunks/{form-80zvrhj7.js → form-h2r6cra7.js} +24 -24
- package/dist/chunks/{form-67k81bmf.js → form-h3jggzk4.js} +1 -1
- package/dist/chunks/{form-w1xdw7re.js → form-hg8tkm75.js} +6 -6
- package/dist/chunks/{form-fxaymqdw.js → form-hq3c8me3.js} +3 -3
- package/dist/chunks/{form-wegah70x.js → form-hw9vqzfw.js} +40 -40
- package/dist/chunks/{form-2wzyh2nh.js → form-hzt320k7.js} +13 -13
- package/dist/chunks/{form-5e1pzs32.js → form-j1mj860n.js} +7 -7
- package/dist/chunks/{form-3xzhnrg0.js → form-j5897gd2.js} +21 -21
- package/dist/chunks/{form-h48rpa6y.js → form-jpatghfr.js} +7 -7
- package/dist/chunks/{form-1hqqab4s.js → form-jtf29y2t.js} +10 -10
- package/dist/chunks/{form-1tcnrg0s.js → form-k3qrda5j.js} +17 -17
- package/dist/chunks/{form-dk6zbvkj.js → form-k60xj1t7.js} +1 -1
- package/dist/chunks/{form-rvqf1hhw.js → form-kj0herga.js} +21 -21
- package/dist/chunks/{form-cqfbx4h9.js → form-km5g435h.js} +4 -4
- package/dist/chunks/{form-2jybnyep.js → form-kx5nz21w.js} +15 -15
- package/dist/chunks/{form-bvdpv0z0.js → form-m3s3xc92.js} +25 -25
- package/dist/chunks/{form-02sakfs1.js → form-mbtcjnsj.js} +7 -7
- package/dist/chunks/{form-aza9mb39.js → form-mjb8sty1.js} +12 -12
- package/dist/chunks/{form-xkhfjrgz.js → form-my4zabxr.js} +3 -3
- package/dist/chunks/{form-0r36wfjw.js → form-mze36jyg.js} +19 -19
- package/dist/chunks/{form-jhyjs82x.js → form-n3gv7a1h.js} +25 -25
- package/dist/chunks/{form-55m81wnp.js → form-nj7hqrdc.js} +8 -8
- package/dist/chunks/{form-kwqx9ezn.js → form-njd51qxm.js} +24 -24
- package/dist/chunks/{form-2aqgybcp.js → form-nkc1tx59.js} +21 -21
- package/dist/chunks/{form-rense280.js → form-nnatg56w.js} +22 -22
- package/dist/chunks/{form-pk9fe0rg.js → form-npw39rc8.js} +9 -9
- package/dist/chunks/{form-6yb97afg.js → form-ntwbnv8p.js} +7 -7
- package/dist/chunks/{form-g6f94y0n.js → form-nvb1bc80.js} +12 -12
- package/dist/chunks/{form-v13b12ef.js → form-nz56sr1f.js} +3 -3
- package/dist/chunks/{form-ckh33p24.js → form-p0ztmah6.js} +22 -22
- package/dist/chunks/{form-tp68cw24.js → form-p9z0zkdt.js} +19 -19
- package/dist/chunks/{form-50aa1a66.js → form-pgty7w5v.js} +33 -33
- package/dist/chunks/{form-54bvb9cj.js → form-pkywgpj6.js} +24 -24
- package/dist/chunks/{form-tg63fvkh.js → form-prv28kd3.js} +12 -12
- package/dist/chunks/{form-rt5r8wym.js → form-pxp0janp.js} +31 -31
- package/dist/chunks/{form-3n1993ym.js → form-pypvpsrm.js} +9 -9
- package/dist/chunks/{form-cd4peczh.js → form-q3nahge5.js} +29 -29
- package/dist/chunks/{form-vzs67vbf.js → form-q82c1dje.js} +77 -77
- package/dist/chunks/{form-2ypbq784.js → form-qfv36mrb.js} +4 -4
- package/dist/chunks/{form-fcrkznn8.js → form-qgn6gcr1.js} +4 -4
- package/dist/chunks/{form-zswrtyyf.js → form-qh43smsn.js} +16 -16
- package/dist/chunks/{form-je3wc35j.js → form-qm4y2xbd.js} +17 -17
- package/dist/chunks/{form-bbk4sw4d.js → form-qq5nsf62.js} +22 -22
- package/dist/chunks/{form-rq76fwbg.js → form-qy0p29jn.js} +16 -16
- package/dist/chunks/{form-5xhehs7n.js → form-ra3vfzv1.js} +7 -7
- package/dist/chunks/{form-16ptnzp4.js → form-rc6vcpxp.js} +24 -24
- package/dist/chunks/{form-cr0bat6b.js → form-rcmz3p1d.js} +14 -14
- package/dist/chunks/{form-6pc27hjz.js → form-rkprpv83.js} +4 -4
- package/dist/chunks/{form-jcj17ehp.js → form-rnwvn009.js} +11 -11
- package/dist/chunks/{form-t4t28t75.js → form-rsm4htgs.js} +16 -16
- package/dist/chunks/{form-jfqtm2ew.js → form-ryr25ayn.js} +3 -3
- package/dist/chunks/{form-99x6s37t.js → form-rzqnmzcf.js} +30 -30
- package/dist/chunks/{form-wgefzgwt.js → form-s031wkkr.js} +11 -11
- package/dist/chunks/{form-xxxym934.js → form-s26hbv8p.js} +3 -3
- package/dist/chunks/{form-7refdtwv.js → form-sacfpxxw.js} +1 -1
- package/dist/chunks/{form-ardm1wrc.js → form-sgphrwae.js} +45 -45
- package/dist/chunks/{form-y6qsrq0m.js → form-spvhq4rn.js} +5 -5
- package/dist/chunks/{form-ztter523.js → form-sqph2rem.js} +5 -5
- package/dist/chunks/{form-vjawge7b.js → form-svz1p6c6.js} +23 -23
- package/dist/chunks/{form-p4g7pjpc.js → form-sxcwrkvg.js} +4 -4
- package/dist/chunks/{form-4mwpykj0.js → form-sxzvkvgj.js} +5 -5
- package/dist/chunks/{form-pkj8hqbd.js → form-sz15zhhw.js} +8 -8
- package/dist/chunks/{form-1v8j23j1.js → form-t179r25m.js} +44 -44
- package/dist/chunks/{form-wkx7yw3s.js → form-t3afeeqz.js} +19 -19
- package/dist/chunks/{form-fh8k3p5m.js → form-t3dbhzng.js} +14 -14
- package/dist/chunks/{form-0gdmqesm.js → form-t550f9t1.js} +3 -3
- package/dist/chunks/{form-15nepkqg.js → form-t89fqycx.js} +7 -7
- package/dist/chunks/{form-s7vrpya1.js → form-tag4a24h.js} +4 -4
- package/dist/chunks/{form-dhb2hta4.js → form-tdqj5rj9.js} +3 -3
- package/dist/chunks/{form-hfnb13cj.js → form-tdvmxvqx.js} +1 -1
- package/dist/chunks/{form-cmwkp3r5.js → form-tpw6cwsb.js} +7 -7
- package/dist/chunks/{form-trya7axm.js → form-tre5yt63.js} +7 -7
- package/dist/chunks/{form-0javqkgf.js → form-v210v162.js} +7 -7
- package/dist/chunks/{form-bgg5jk8p.js → form-v4v0g7kw.js} +6 -6
- package/dist/chunks/{form-27jfxer4.js → form-vcxbe612.js} +2 -2
- package/dist/chunks/{form-g8j30dqw.js → form-vgcrqvce.js} +12 -12
- package/dist/chunks/{form-a8nkje97.js → form-w3qw7gwn.js} +9 -9
- package/dist/chunks/{form-482mympf.js → form-w4mkebwp.js} +30 -30
- package/dist/chunks/{form-mddns072.js → form-wa3r9qa9.js} +14 -14
- package/dist/chunks/{form-43833zpv.js → form-we3w1333.js} +1 -1
- package/dist/chunks/{form-361k30qc.js → form-whvnf6b4.js} +30 -30
- package/dist/chunks/{form-h9eccewq.js → form-wryv9aq9.js} +7 -7
- package/dist/chunks/{form-9sjyw1m6.js → form-wwvmde0v.js} +7 -7
- package/dist/chunks/{form-me4kkzkr.js → form-wz5ft07p.js} +1 -1
- package/dist/chunks/{form-54q14agg.js → form-x3fa5db0.js} +13 -13
- package/dist/chunks/{form-addxnjmp.js → form-x661k3y3.js} +3 -3
- package/dist/chunks/{form-qcws3hz9.js → form-x86nz4fc.js} +9 -9
- package/dist/chunks/{form-f3rpkqey.js → form-xc1f0rvb.js} +27 -27
- package/dist/chunks/{form-s90dqpw7.js → form-xvb5x7q0.js} +9 -9
- package/dist/chunks/{form-8xh436hj.js → form-xyxs5dm1.js} +4 -4
- package/dist/chunks/{form-kcvspnct.js → form-y0samtkt.js} +9 -9
- package/dist/chunks/{form-kbymfr7p.js → form-y3446w5g.js} +9 -9
- package/dist/chunks/{form-h71w788e.js → form-y56ehv6b.js} +8 -8
- package/dist/chunks/{form-bqsaj0qs.js → form-y5fzqhne.js} +15 -15
- package/dist/chunks/{form-whms72wd.js → form-yef9qky4.js} +39 -39
- package/dist/chunks/{form-qne3fa44.js → form-ygdna4kr.js} +3 -3
- package/dist/chunks/{form-4hfeq7yc.js → form-yj7k2rcj.js} +1 -1
- package/dist/chunks/{form-d2edjj1v.js → form-yvgq1qte.js} +12 -12
- package/dist/chunks/{form-6wg7wrda.js → form-yx0rmv9r.js} +5 -5
- package/dist/chunks/{form-78y8a3rg.js → form-z0p92055.js} +8 -8
- package/dist/chunks/{form-1krmxpby.js → form-zdha7q0e.js} +4 -4
- package/dist/chunks/{form-jdthh91w.js → form-zjndanvv.js} +19 -19
- package/dist/chunks/{form-yq6kw6eg.js → form-znjyvqyt.js} +27 -27
- package/dist/chunks/{form-ebkydghs.js → form-znm2wwgf.js} +5 -5
- package/dist/chunks/{form-yy1b5byj.js → form-zx383xpj.js} +6 -6
- package/dist/chunks/{form-a3c7ahw6.js → form-zy43x3f1.js} +3 -3
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +67 -67
- package/dist/config/discovery.js +64 -64
- package/dist/config/normalize.js +77 -77
- package/dist/config/plugin/agent.js +88 -88
- package/dist/config/plugin/command.js +165 -165
- package/dist/config/plugin/compaction.js +117 -117
- package/dist/config/plugin/compatibility.js +107 -107
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +88 -88
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +88 -88
- package/dist/config/plugin/mcp.js +96 -96
- package/dist/config/plugin/policy.js +89 -89
- package/dist/config/plugin/provider.js +88 -88
- package/dist/config/plugin/reference.js +89 -89
- package/dist/config/plugin/shell.js +88 -88
- package/dist/config/plugin/skill-file.js +76 -76
- package/dist/config/plugin/skill.js +106 -106
- package/dist/config/plugin/snapshot.js +88 -88
- package/dist/config/plugin/source.js +89 -89
- package/dist/config/plugin/tool-output.js +88 -88
- package/dist/config/plugin/websearch.js +87 -87
- package/dist/config/plugin/worktree.js +88 -88
- package/dist/config.js +94 -94
- package/dist/credential.js +67 -67
- package/dist/database/database.js +52 -52
- package/dist/database/drizzle/effect-sqlite/driver.js +11 -11
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +12 -12
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +12 -12
- 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/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +69 -69
- package/dist/environment/index.js +71 -71
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +79 -79
- package/dist/file-mutation.js +70 -70
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +179 -179
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +78 -78
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +77 -77
- package/dist/form.js +65 -65
- package/dist/formatter.js +66 -66
- package/dist/generate.js +81 -81
- package/dist/git.js +8 -8
- 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 +78 -78
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +309 -309
- package/dist/instruction-discovery.js +68 -68
- package/dist/instructions/builtins.js +67 -67
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +69 -69
- package/dist/job.js +62 -62
- package/dist/kv.js +57 -57
- package/dist/location-activity.js +56 -56
- package/dist/location-lifecycle.js +82 -82
- package/dist/location-service-map.js +66 -66
- package/dist/location-services.js +307 -307
- package/dist/location.js +67 -67
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +79 -79
- package/dist/mcp/instructions.js +98 -98
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +66 -66
- package/dist/modal/models.js +78 -78
- package/dist/model-resolver.js +75 -75
- package/dist/model.js +77 -77
- package/dist/models-dev.js +86 -86
- package/dist/permission/saved.js +59 -59
- package/dist/permission.js +86 -86
- package/dist/persistent-pty/index.js +72 -72
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +58 -58
- package/dist/plugin/command.js +76 -76
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +172 -172
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +281 -281
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +89 -89
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +77 -77
- package/dist/plugin/provider/amazon-bedrock.js +69 -69
- package/dist/plugin/provider/azure.js +89 -89
- package/dist/plugin/provider/chatgpt.js +87 -87
- package/dist/plugin/provider/cloudflare-ai-gateway.js +86 -86
- package/dist/plugin/provider/cloudflare-workers-ai.js +86 -86
- package/dist/plugin/provider/configured.js +85 -85
- package/dist/plugin/provider/digitalocean.js +71 -71
- package/dist/plugin/provider/github-copilot.js +73 -73
- package/dist/plugin/provider/gitlab.js +71 -71
- package/dist/plugin/provider/google-vertex.js +86 -86
- package/dist/plugin/provider/llmgateway.js +62 -62
- package/dist/plugin/provider/lmstudio.js +98 -98
- package/dist/plugin/provider/local.js +95 -95
- package/dist/plugin/provider/modal.js +71 -71
- package/dist/plugin/provider/ollama.js +98 -98
- package/dist/plugin/provider/openai.js +89 -89
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +70 -70
- package/dist/plugin/provider/poe.js +62 -62
- package/dist/plugin/provider/sap-ai-core.js +69 -69
- package/dist/plugin/provider/snowflake-cortex.js +87 -87
- package/dist/plugin/provider/vercel.js +69 -69
- package/dist/plugin/provider/vllm.js +98 -98
- package/dist/plugin/provider/xai.js +70 -70
- package/dist/plugin/provider.js +133 -133
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +107 -107
- package/dist/plugin/supervisor.js +297 -297
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +65 -65
- package/dist/plugin/vcs/hg.js +65 -65
- package/dist/plugin/verbosity.js +72 -72
- package/dist/plugin/warming.js +87 -87
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +183 -183
- package/dist/project/schema.js +7 -7
- package/dist/project.js +68 -68
- package/dist/provider.js +76 -76
- package/dist/pty.js +77 -77
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +72 -72
- package/dist/repository-cache.js +62 -62
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +66 -66
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +96 -96
- package/dist/session/context.js +118 -118
- package/dist/session/diff.js +65 -65
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +2 -2
- package/dist/session/execution/restart.js +111 -111
- package/dist/session/execution.js +100 -100
- package/dist/session/generate.js +120 -120
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +70 -70
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +60 -60
- package/dist/session/instruction-state.js +3 -3
- package/dist/session/instructions.js +74 -74
- 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 +103 -103
- package/dist/session/projector.js +67 -67
- package/dist/session/prompt.js +80 -80
- package/dist/session/revert.js +70 -70
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +181 -181
- package/dist/session/runner/model.js +77 -77
- package/dist/session/runner/publish-llm-event.js +87 -87
- package/dist/session/runner/step.js +93 -93
- package/dist/session/runner/to-llm-message.js +7 -7
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +130 -130
- package/dist/session/shell.js +101 -101
- package/dist/session/skill.js +78 -78
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +64 -64
- package/dist/session/subagent-job.js +166 -166
- package/dist/session/title.js +119 -119
- package/dist/session/to-session-error.js +86 -86
- package/dist/session/transfer.js +108 -108
- package/dist/session.js +171 -171
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +104 -104
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +82 -82
- package/dist/skill.js +89 -89
- package/dist/snapshot.js +72 -72
- package/dist/tool/mcp.js +95 -95
- package/dist/tool/plugin/edit.js +91 -91
- package/dist/tool/plugin/glob.js +87 -87
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/mcp-resource.js +89 -89
- package/dist/tool/plugin/opencode.js +82 -82
- package/dist/tool/plugin/patch.js +89 -89
- package/dist/tool/plugin/question.js +78 -78
- package/dist/tool/plugin/read.js +96 -96
- package/dist/tool/plugin/shell.js +170 -170
- package/dist/tool/plugin/skill.js +88 -88
- package/dist/tool/plugin/subagent.js +173 -173
- package/dist/tool/plugin/todo.js +110 -110
- package/dist/tool/plugin/webfetch.js +85 -85
- package/dist/tool/plugin/websearch.js +87 -87
- package/dist/tool/plugin/write.js +91 -91
- package/dist/tool/read-filesystem.js +74 -74
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +5 -5
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +70 -70
- 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 +72 -72
- package/dist/vcs.js +68 -68
- package/dist/voice.js +70 -70
- package/dist/websearch.js +68 -68
- package/dist/wellknown/plugin.js +60 -60
- package/dist/wellknown.js +65 -65
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +65 -65
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/strategies.js +67 -67
- package/dist/worktree.js +75 -75
- package/package.json +8 -8
- package/dist/chunks/form-360h9knm.js +0 -26
- package/dist/chunks/form-ymafgmrd.js +0 -257
- /package/dist/chunks/{form-wptgs5cr.js → form-4q08mgzs.js} +0 -0
- /package/dist/chunks/{form-65qcyyma.js → form-gkn1t7a9.js} +0 -0
- /package/dist/chunks/{form-pfq1ksym.js → form-mjagy123.js} +0 -0
- /package/dist/chunks/{form-0bmnjpfs.js → form-ve45bn9x.js} +0 -0
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-vcxbe612.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./form-
|
|
8
|
+
} from "./form-43pfpj47.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
10
|
+
Service42,
|
|
11
|
+
node44
|
|
12
|
+
} from "./form-sxzvkvgj.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2,
|
|
15
15
|
RelativePath2
|
|
16
16
|
} from "./form-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./form-
|
|
18
|
+
Service83,
|
|
19
|
+
node87
|
|
20
|
+
} from "./form-yef9qky4.js";
|
|
21
21
|
import {
|
|
22
22
|
Ref4
|
|
23
|
-
} from "./form-
|
|
23
|
+
} from "./form-kx5nz21w.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./form-
|
|
25
|
+
Service60,
|
|
26
|
+
node62
|
|
27
|
+
} from "./form-3gc7db2q.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionMessage2
|
|
30
30
|
} from "./form-gftt206x.js";
|
|
31
31
|
import {
|
|
32
32
|
NotFoundError9
|
|
33
|
-
} from "./form-
|
|
33
|
+
} from "./form-yj7k2rcj.js";
|
|
34
34
|
import {
|
|
35
35
|
SessionEvent2
|
|
36
36
|
} from "./form-ec1grn59.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./form-
|
|
38
|
+
Service40
|
|
39
|
+
} from "./form-2vs2nh1n.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "./form-
|
|
41
|
+
Service66,
|
|
42
|
+
node68
|
|
43
|
+
} from "./form-prv28kd3.js";
|
|
44
44
|
import {
|
|
45
45
|
Item2,
|
|
46
46
|
serialized2,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Service41,
|
|
48
|
+
node43,
|
|
49
49
|
moveIDs2
|
|
50
|
-
} from "./form-
|
|
50
|
+
} from "./form-3jqnp5e1.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./form-
|
|
52
|
+
Service39,
|
|
53
|
+
node42
|
|
54
|
+
} from "./form-pgty7w5v.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./form-
|
|
56
|
+
node24
|
|
57
|
+
} from "./form-vgcrqvce.js";
|
|
58
58
|
import {
|
|
59
59
|
__export
|
|
60
60
|
} from "./form-9rqn6x4v.js";
|
|
@@ -65,9 +65,9 @@ __export(exports_move, {
|
|
|
65
65
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
66
66
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
67
67
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
68
|
-
Service: () =>
|
|
68
|
+
Service: () => Service20,
|
|
69
69
|
SessionMove: () => exports_move,
|
|
70
|
-
node: () =>
|
|
70
|
+
node: () => node23
|
|
71
71
|
});
|
|
72
72
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
73
73
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -83,17 +83,17 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
|
|
|
83
83
|
class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class Service20 extends Context.Service()("@opencode/SessionMove") {
|
|
87
87
|
}
|
|
88
|
-
var layer = Layer.effect(
|
|
88
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
89
89
|
const fs = yield* FSUtil.Service;
|
|
90
90
|
const global = yield* Global.Service;
|
|
91
|
-
const projects = yield*
|
|
92
|
-
const locations = yield*
|
|
93
|
-
const store = yield*
|
|
94
|
-
const execution = yield*
|
|
95
|
-
const instances = yield*
|
|
96
|
-
const admission = yield*
|
|
91
|
+
const projects = yield* Service83;
|
|
92
|
+
const locations = yield* Service60;
|
|
93
|
+
const store = yield* Service66;
|
|
94
|
+
const execution = yield* Service39;
|
|
95
|
+
const instances = yield* Service42;
|
|
96
|
+
const admission = yield* Service41;
|
|
97
97
|
const database = yield* Service86;
|
|
98
98
|
const bus = yield* Service85;
|
|
99
99
|
const get = Effect.fn("SessionMove.get")(function* (sessionID) {
|
|
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
131
131
|
return false;
|
|
132
132
|
if (!(yield* fs.isDir(session.location.directory)))
|
|
133
133
|
return true;
|
|
134
|
-
return yield*
|
|
134
|
+
return yield* Service40.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.succeed(true)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service20.of({
|
|
137
137
|
move: Effect.fn("SessionMove.move")(function* (input) {
|
|
138
138
|
const session = yield* get(input.sessionID);
|
|
139
139
|
const destination = yield* resolveDestination(session, input);
|
|
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
|
-
var
|
|
167
|
-
service:
|
|
166
|
+
var node23 = makeGlobalNode({
|
|
167
|
+
service: Service20,
|
|
168
168
|
layer,
|
|
169
169
|
deps: [
|
|
170
170
|
FSUtil.node,
|
|
171
171
|
Global.node,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
node45,
|
|
172
|
+
node87,
|
|
173
|
+
node62,
|
|
174
|
+
node68,
|
|
175
|
+
node42,
|
|
177
176
|
node44,
|
|
177
|
+
node43,
|
|
178
178
|
node90,
|
|
179
179
|
node89,
|
|
180
|
-
|
|
180
|
+
node24
|
|
181
181
|
]
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2,
|
|
184
|
+
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service20, node23, exports_move };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-43pfpj47.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./form-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./form-
|
|
12
|
+
} from "./form-yef9qky4.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./form-
|
|
14
|
+
Service82,
|
|
15
|
+
node86
|
|
16
|
+
} from "./form-kx5nz21w.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info4,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service18,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node21
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info4, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,11 +54,11 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service18 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
61
|
+
const location = yield* Service82;
|
|
62
62
|
const bus = yield* Service85;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info4));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service18.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node21 = makeLocationNode({
|
|
191
|
+
service: Service18,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node86, node89]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info4, Mode2, DiffError2, InitializeError2, Service18, node21, exports_vcs };
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "./form-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-sz15zhhw.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
8
|
+
Info12
|
|
9
|
+
} from "./form-npw39rc8.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
11
|
+
Info11
|
|
12
|
+
} from "./form-ryr25ayn.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./form-
|
|
14
|
+
Info10
|
|
15
|
+
} from "./form-1pxz8ven.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./form-
|
|
18
|
+
} from "./form-qgn6gcr1.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./form-
|
|
20
|
+
Info9
|
|
21
|
+
} from "./form-ygdna4kr.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./form-
|
|
31
|
+
} from "./form-9hhx5af9.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./form-9rqn6x4v.js";
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info11, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info12, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info12, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info10, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -430,7 +430,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
430
430
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
431
431
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
432
432
|
return [];
|
|
433
|
-
const provider = decodeValue(
|
|
433
|
+
const provider = decodeValue(Info9, raw, path, diagnostics);
|
|
434
434
|
if (provider === undefined)
|
|
435
435
|
return [];
|
|
436
436
|
const destination = providerID2(name);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-vcxbe612.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
8
|
} from "./form-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./form-
|
|
11
|
+
} from "./form-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./form-9rqn6x4v.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-wa3r9qa9.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/vllm.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -11,7 +11,7 @@ var RemoteModel = Schema.Struct({
|
|
|
11
11
|
max_model_len: Schema.NullOr(Schema.Int)
|
|
12
12
|
});
|
|
13
13
|
var Response = Schema.Struct({ data: Schema.Array(RemoteModel) });
|
|
14
|
-
var
|
|
14
|
+
var make5 = createLocalProviderPlugin2({
|
|
15
15
|
id: "opencode.provider.vllm",
|
|
16
16
|
providerID,
|
|
17
17
|
name: "vLLM",
|
|
@@ -26,6 +26,6 @@ var make6 = createLocalProviderPlugin2({
|
|
|
26
26
|
context: item.max_model_len
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
|
-
var VLLMPlugin2 =
|
|
29
|
+
var VLLMPlugin2 = make5();
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { make5, VLLMPlugin2 };
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service85,
|
|
4
4
|
node89
|
|
5
|
-
} from "./form-
|
|
5
|
+
} from "./form-43pfpj47.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
7
|
+
Service56,
|
|
8
|
+
node58
|
|
9
|
+
} from "./form-86d0rtkg.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./form-9rqn6x4v.js";
|
|
@@ -16,14 +16,14 @@ var exports_wellknown = {};
|
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event8,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service54,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node56,
|
|
26
|
+
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service54 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event8 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
57
57
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
58
58
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var resolve2 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
61
61
|
const manifest = yield* inspect2(input.origin);
|
|
62
62
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
63
63
|
});
|
|
@@ -79,9 +79,9 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
84
|
+
const kv = yield* Service56;
|
|
85
85
|
const bus = yield* Service85;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service54.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node56 = makeGlobalNode({ service: Service54, layer, deps: [httpClient, node58, node89] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service54, Event8, inspect2, resolve2, node56, exports_wellknown };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-vcxbe612.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-43pfpj47.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
8
|
+
Service42
|
|
9
|
+
} from "./form-sxzvkvgj.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
12
|
} from "./form-z5v4ffb3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./form-
|
|
14
|
+
ID4,
|
|
15
|
+
Service33
|
|
16
|
+
} from "./form-rzqnmzcf.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./form-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
MessageNotFoundError2
|
|
22
|
-
} from "./form-
|
|
22
|
+
} from "./form-yj7k2rcj.js";
|
|
23
23
|
import {
|
|
24
24
|
SessionMessageTable2
|
|
25
25
|
} from "./form-c1fqxshp.js";
|
|
26
26
|
import {
|
|
27
27
|
decodeMessageRowSync2
|
|
28
|
-
} from "./form-
|
|
28
|
+
} from "./form-jpatghfr.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
31
|
} from "./form-9rqn6x4v.js";
|
|
@@ -41,12 +41,12 @@ __export(exports_revert, {
|
|
|
41
41
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
42
42
|
import { Effect } from "effect";
|
|
43
43
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
44
|
-
const instances = yield*
|
|
44
|
+
const instances = yield* Service42;
|
|
45
45
|
const database = yield* Service86;
|
|
46
46
|
const bus = yield* Service85;
|
|
47
47
|
return yield* Effect.gen(function* () {
|
|
48
|
-
const snapshot = yield*
|
|
49
|
-
const original = input.session.revert?.snapshot ?
|
|
48
|
+
const snapshot = yield* Service33;
|
|
49
|
+
const original = input.session.revert?.snapshot ? ID4.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
50
50
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
51
51
|
const restore = new Map;
|
|
52
52
|
if (original) {
|
|
@@ -73,13 +73,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
73
73
|
}).pipe(instances.provide(input.session));
|
|
74
74
|
});
|
|
75
75
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
76
|
-
const instances = yield*
|
|
76
|
+
const instances = yield* Service42;
|
|
77
77
|
const bus = yield* Service85;
|
|
78
78
|
yield* Effect.gen(function* () {
|
|
79
|
-
const snapshot = yield*
|
|
79
|
+
const snapshot = yield* Service33;
|
|
80
80
|
if (!session.revert)
|
|
81
81
|
return;
|
|
82
|
-
const original = session.revert.snapshot ?
|
|
82
|
+
const original = session.revert.snapshot ? ID4.make(session.revert.snapshot) : undefined;
|
|
83
83
|
if (original)
|
|
84
84
|
yield* snapshot.restore({
|
|
85
85
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -109,7 +109,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
109
109
|
continue;
|
|
110
110
|
for (const file of message.snapshot.files ?? [])
|
|
111
111
|
if (!files.has(file))
|
|
112
|
-
files.set(file,
|
|
112
|
+
files.set(file, ID4.make(message.snapshot.start));
|
|
113
113
|
}
|
|
114
114
|
return files;
|
|
115
115
|
});
|