@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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-43pfpj47.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./form-
|
|
5
|
+
Service54,
|
|
6
|
+
Event8
|
|
7
|
+
} from "./form-46tcmqje.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./form-9rqn6x4v.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin32,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin32 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
const bus = yield* Service85;
|
|
24
|
-
const wellknown = yield*
|
|
24
|
+
const wellknown = yield* Service54;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin2 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event8.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin32, exports_plugin };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-43pfpj47.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./form-
|
|
7
|
+
} from "./form-qy0p29jn.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
10
|
} from "./form-3t0ybcrp.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError2,
|
|
20
|
+
Options: () => Options2,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
22
|
+
Service: () => Service16,
|
|
23
|
+
UnavailableError: () => UnavailableError2,
|
|
24
|
+
available: () => available2,
|
|
25
|
+
configured: () => configured2,
|
|
26
|
+
layer: () => layer10,
|
|
27
|
+
node: () => node19
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -35,25 +35,25 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
import { available as
|
|
39
|
-
var
|
|
38
|
+
import { available as available2 } from "#persistent-pty-binary";
|
|
39
|
+
var Options2 = Schema.Struct({
|
|
40
40
|
handoff: Schema.optional(Handoff),
|
|
41
41
|
root: Schema.optional(Schema.String)
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
45
45
|
message: Schema.String
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class NotFoundError2 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
50
50
|
ptyID: Pty.ID
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service16 extends Context.Service()("@opencode/PersistentPty") {
|
|
55
55
|
}
|
|
56
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
56
|
+
var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* () {
|
|
57
57
|
const bus = yield* Service85;
|
|
58
58
|
const global = yield* Global.Service;
|
|
59
59
|
const context = yield* Effect.context();
|
|
@@ -76,7 +76,7 @@ var makeLayer = (options = {}) => Layer.effect(Service53, Effect.gen(function* (
|
|
|
76
76
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
77
77
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
78
78
|
if (!found)
|
|
79
|
-
return yield* new
|
|
79
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
80
80
|
return found;
|
|
81
81
|
});
|
|
82
82
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -166,7 +166,7 @@ var makeLayer = (options = {}) => Layer.effect(Service53, Effect.gen(function* (
|
|
|
166
166
|
});
|
|
167
167
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
168
168
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
169
|
-
return yield* new
|
|
169
|
+
return yield* new UnavailableError2({ message: "lines must be an integer between 1 and 65535" });
|
|
170
170
|
const id = current.get(sessionID);
|
|
171
171
|
if (!id)
|
|
172
172
|
return null;
|
|
@@ -243,7 +243,7 @@ var makeLayer = (options = {}) => Layer.effect(Service53, Effect.gen(function* (
|
|
|
243
243
|
detach: attachment.detach
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
return
|
|
246
|
+
return Service16.of({
|
|
247
247
|
list,
|
|
248
248
|
get,
|
|
249
249
|
create,
|
|
@@ -259,17 +259,17 @@ var makeLayer = (options = {}) => Layer.effect(Service53, Effect.gen(function* (
|
|
|
259
259
|
attach
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
service:
|
|
265
|
-
layer: options === undefined ?
|
|
262
|
+
var layer10 = makeLayer();
|
|
263
|
+
var configured2 = (options) => makeGlobalNode({
|
|
264
|
+
service: Service16,
|
|
265
|
+
layer: options === undefined ? layer10 : makeLayer(options),
|
|
266
266
|
deps: [node89, Global.node]
|
|
267
267
|
});
|
|
268
|
-
var
|
|
268
|
+
var node19 = configured2();
|
|
269
269
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
270
270
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
271
|
-
var unexpected = (response) => Effect.fail(new
|
|
272
|
-
var unavailable = (error) => new
|
|
271
|
+
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
272
|
+
var unavailable = (error) => new UnavailableError2({ message: error instanceof Error ? error.message : String(error) });
|
|
273
273
|
function toInfo(value) {
|
|
274
274
|
const status = value.lifecycle.status;
|
|
275
275
|
return {
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options2, UnavailableError2, NotFoundError2, Service16, layer10, configured2, node19, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
batch2
|
|
3
3
|
} from "./form-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./form-
|
|
5
|
+
Service52
|
|
6
|
+
} from "./form-gnbbadj4.js";
|
|
7
7
|
import {
|
|
8
8
|
match2
|
|
9
9
|
} from "./form-y1fvbwt7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
Service14,
|
|
12
12
|
statements2,
|
|
13
13
|
decision2
|
|
14
|
-
} from "./form-
|
|
14
|
+
} from "./form-fww2ha2b.js";
|
|
15
15
|
import {
|
|
16
16
|
observe2
|
|
17
17
|
} from "./form-qsdy395h.js";
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
var exports_policy = {};
|
|
24
24
|
__export(exports_policy, {
|
|
25
25
|
ConfigPolicyPlugin: () => exports_policy,
|
|
26
|
-
Plugin: () =>
|
|
26
|
+
Plugin: () => Plugin45
|
|
27
27
|
});
|
|
28
28
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
29
29
|
import { Effect, Stream } from "effect";
|
|
30
|
-
var
|
|
30
|
+
var Plugin45 = define({
|
|
31
31
|
id: "opencode.config.policy",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const managed = yield*
|
|
33
|
+
const config = yield* Service52;
|
|
34
|
+
const managed = yield* Service14;
|
|
35
35
|
const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload()], { discard: true }));
|
|
36
36
|
const loaded = yield* observe2(config, ctx.event, reload);
|
|
37
37
|
yield* managed.changes().pipe(Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -76,4 +76,4 @@ var Plugin43 = define({
|
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
export {
|
|
79
|
+
export { Plugin45, exports_policy };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./form-
|
|
2
|
+
ID12
|
|
3
|
+
} from "./form-njd51qxm.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings2
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-v4v0g7kw.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cloudflare-ai-gateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
10
10
|
import { isArrayNonEmpty } from "effect/Array";
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Form } from "@opencode/schema/form";
|
|
13
|
-
var providerID =
|
|
13
|
+
var providerID = ID12.make("cloudflare-ai-gateway");
|
|
14
14
|
var accountIdField = Form.StringField.make({
|
|
15
15
|
type: "string",
|
|
16
16
|
key: "accountId",
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./form-
|
|
5
|
+
Service30
|
|
6
|
+
} from "./form-ft0vqakg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
8
|
+
Service64
|
|
9
|
+
} from "./form-fz4d0gag.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./form-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: () => Plugin15
|
|
19
19
|
});
|
|
20
20
|
import { ToolFailure } from "@opencode/ai";
|
|
21
21
|
import { Effect, Schema } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin15 = {
|
|
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* Service30;
|
|
26
|
+
const permission = yield* Service64;
|
|
27
27
|
yield* ctx.tool.transform((editor) => {
|
|
28
28
|
editor.add({
|
|
29
29
|
name: "list_mcp_resources",
|
|
@@ -93,4 +93,4 @@ var Plugin19 = {
|
|
|
93
93
|
})
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Plugin15, exports_mcp_resource };
|
|
@@ -8,17 +8,17 @@ __export(exports_app, {
|
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
10
|
configured: () => configured9,
|
|
11
|
-
layer: () =>
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
11
|
+
layer: () => layer27,
|
|
12
|
+
make: () => make20,
|
|
13
|
+
node: () => node79,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make20()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make20(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make21(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var configured9 = (input) => makeGlobalNode({ service: Metadata2, layer:
|
|
33
|
-
var
|
|
31
|
+
var layer27 = (input) => Layer.succeed(Metadata2, make20(input));
|
|
32
|
+
var configured9 = (input) => makeGlobalNode({ service: Metadata2, layer: layer27(input), deps: [] });
|
|
33
|
+
var node79 = configured9();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make20, useragent2, layer27, configured9, node79, exports_app };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./form-9rqn6x4v.js";
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service5,
|
|
13
|
+
node: () => node7
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service5 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service5.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node7 = makeGlobalNode({ service: Service5, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service5, node7, exports_update };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./form-
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./form-kx5nz21w.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
|
-
|
|
7
|
+
make19,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./form-
|
|
9
|
+
} from "./form-t550f9t1.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./form-9rqn6x4v.js";
|
|
@@ -15,20 +15,20 @@ import {
|
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service25,
|
|
19
|
+
node: () => node29
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service25 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service82;
|
|
29
|
+
return Service25.of({
|
|
30
30
|
load: () => Effect.succeed(combine2([
|
|
31
|
-
|
|
31
|
+
make19({
|
|
32
32
|
key: Key3.make("core/date"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
@@ -37,7 +37,7 @@ var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
37
37
|
changed: (_previous, date) => `Today's date is now: ${date}`
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
40
|
-
|
|
40
|
+
make19({
|
|
41
41
|
key: Key3.make("core/environment"),
|
|
42
42
|
codec: Schema.toCodecJson(Schema.String),
|
|
43
43
|
read: Effect.sync(() => [
|
|
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
60
60
|
]))
|
|
61
61
|
});
|
|
62
62
|
}));
|
|
63
|
-
var
|
|
63
|
+
var node29 = makeLocationNode({ service: Service25, layer, deps: [Global.node, node86] });
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { Service25, node29, exports_builtins };
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./form-
|
|
7
|
+
} from "./form-vcxbe612.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./form-
|
|
11
|
+
} from "./form-43pfpj47.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./form-
|
|
13
|
+
Service84,
|
|
14
|
+
node88
|
|
15
|
+
} from "./form-nj7hqrdc.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info29,
|
|
20
20
|
UpdateInput5,
|
|
21
|
-
|
|
21
|
+
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./form-
|
|
23
|
+
} from "./form-v210v162.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
39
|
+
ID: () => ID17,
|
|
40
|
+
Info: () => Info28,
|
|
41
41
|
NotFoundError: () => NotFoundError12,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service83,
|
|
44
44
|
UpdateInput: () => UpdateInput4,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node87,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID17 = ID18;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info28 = Info29;
|
|
63
63
|
var UpdateInput4 = UpdateInput5;
|
|
64
64
|
|
|
65
65
|
class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
-
projectID:
|
|
66
|
+
projectID: ID17
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service83 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,9 +98,9 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service84;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
105
|
const bus = yield* Service85;
|
|
106
106
|
const db = (yield* Service86).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event21.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID17.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -173,7 +173,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
173
173
|
if (!row)
|
|
174
174
|
return yield* new NotFoundError12({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event21.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID17.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID17.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID17.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -248,7 +248,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
248
248
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
249
249
|
return {
|
|
250
250
|
previous,
|
|
251
|
-
id: id ??
|
|
251
|
+
id: id ?? ID17.global,
|
|
252
252
|
directory: worktree,
|
|
253
253
|
vcs: { type: "hg", store }
|
|
254
254
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* persist({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID17.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* persist({
|
|
282
|
-
id:
|
|
282
|
+
id: ID17.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID17.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service83.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node87 = makeGlobalNode({
|
|
310
|
+
service: Service83,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [node89, node90, FSUtil.node,
|
|
312
|
+
deps: [node89, node90, FSUtil.node, node88, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service83;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node87]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID17, Vcs2, Current2, Info28, UpdateInput4, NotFoundError12, root2, Service83, node87, sweepNode2, exports_project };
|