@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,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service60,
|
|
3
|
+
node62,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./form-
|
|
5
|
+
} from "./form-3gc7db2q.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
7
|
+
Service42,
|
|
8
|
+
node44
|
|
9
|
+
} from "./form-sxzvkvgj.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
11
|
+
Service15
|
|
12
|
+
} from "./form-pxp0janp.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./form-
|
|
15
|
+
} from "./form-49xamyg9.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service60, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service15);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node44.replace(Layer.succeed(Service42, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node62.replace(Layer.succeed(Service60, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./form-
|
|
2
|
+
Service64
|
|
3
|
+
} from "./form-fz4d0gag.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
@@ -16,29 +16,29 @@ import {
|
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input9,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin10,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description5,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name9
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name9 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description5 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input9 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input8 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input9.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin10 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service64;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name9,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description5,
|
|
104
|
+
input: Input9,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin26 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name9,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name9, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input9, Plugin10, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./form-
|
|
2
|
+
Service53,
|
|
3
|
+
node55
|
|
4
|
+
} from "./form-7eh5v8ez.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./form-
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./form-kx5nz21w.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
10
|
+
Service52,
|
|
11
|
+
node54
|
|
12
|
+
} from "./form-gnbbadj4.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service11,
|
|
26
26
|
empty: () => empty2,
|
|
27
27
|
layer: () => layer8,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node13
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service11 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var layer8 = Layer.effect(
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer8 = Layer.effect(Service11, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service52;
|
|
40
|
+
const watcher = yield* Service53;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service82;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service11.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
73
|
+
var node13 = makeLocationNode({
|
|
74
|
+
service: Service11,
|
|
75
75
|
layer: layer8,
|
|
76
|
-
deps: [
|
|
76
|
+
deps: [node54, FSUtil.node, node55, node86]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service11,
|
|
80
|
+
layer: Layer.succeed(Service11, Service11.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service11, layer8, node13, empty2, exports_source };
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
Service86,
|
|
9
9
|
node90
|
|
10
|
-
} from "./form-
|
|
10
|
+
} from "./form-vcxbe612.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./form-
|
|
13
|
+
} from "./form-dpkg50ah.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./form-
|
|
17
|
+
node85
|
|
18
|
+
} from "./form-yx0rmv9r.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
21
|
} from "./form-faypxj3z.js";
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
var exports_workspace = {};
|
|
28
28
|
__export(exports_workspace, {
|
|
29
29
|
CreateConflict: () => CreateConflict2,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID16,
|
|
31
|
+
Info: () => Info26,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service81,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured11,
|
|
36
|
+
node: () => node84
|
|
37
37
|
});
|
|
38
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
|
|
|
41
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
42
42
|
import { systemError } from "effect/PlatformError";
|
|
43
43
|
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
-
var
|
|
44
|
+
var ID16 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info26 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID16,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,24 +52,24 @@ class Info14 extends Schema.Class("Workspace.Info")({
|
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID16 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID16,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service81 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured11 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service81,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [node90,
|
|
70
|
+
deps: [node90, node85]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
72
|
+
var layer = (options) => Layer.effect(Service81, Effect.gen(function* () {
|
|
73
73
|
const db = (yield* Service86).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
86
86
|
return row;
|
|
87
87
|
});
|
|
88
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
89
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info26({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
164
164
|
yield* Scope.close(connection.scope, Exit.void);
|
|
165
165
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
166
166
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
167
|
-
return
|
|
167
|
+
return Service81.of({
|
|
168
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
169
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID16.create();
|
|
170
170
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
171
171
|
if (existing) {
|
|
172
172
|
if (existing.provider === input.provider)
|
|
@@ -242,6 +242,6 @@ var layer = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
var
|
|
245
|
+
var node84 = configured11();
|
|
246
246
|
|
|
247
|
-
export {
|
|
247
|
+
export { ID16, Info26, NotFound2, CreateConflict2, Service81, configured11, node84, exports_workspace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./form-
|
|
2
|
+
Service84
|
|
3
|
+
} from "./form-nj7hqrdc.js";
|
|
4
4
|
import {
|
|
5
5
|
DirectoryUnavailableError2,
|
|
6
6
|
canonical2
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
var exports_git2 = {};
|
|
14
14
|
__export(exports_git2, {
|
|
15
15
|
WorktreeGit: () => exports_git2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make18
|
|
17
17
|
});
|
|
18
18
|
import { Effect } from "effect";
|
|
19
19
|
import { Worktree } from "@opencode/schema/worktree";
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
|
-
var
|
|
21
|
+
var make18 = Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FSUtil.Service;
|
|
23
|
-
const git = yield*
|
|
23
|
+
const git = yield* Service84;
|
|
24
24
|
return {
|
|
25
25
|
id: Worktree.StrategyID.make("git"),
|
|
26
26
|
create: Effect.fn("Worktree.Git.create")(function* (input) {
|
|
@@ -46,4 +46,4 @@ var make17 = Effect.gen(function* () {
|
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make18, exports_git2 };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_unavailable = {};
|
|
7
7
|
__export(exports_unavailable, {
|
|
8
8
|
EnvironmentUnavailable: () => exports_unavailable,
|
|
9
|
-
layer: () =>
|
|
9
|
+
layer: () => layer5,
|
|
10
10
|
spawner: () => spawner2
|
|
11
11
|
});
|
|
12
12
|
import { Effect, Layer, PlatformError } from "effect";
|
|
@@ -17,6 +17,6 @@ var spawner2 = make(() => Effect.fail(PlatformError.systemError({
|
|
|
17
17
|
method: "spawn",
|
|
18
18
|
description: "This location has no execution plane: no workspace is attached and the host cannot spawn processes"
|
|
19
19
|
})));
|
|
20
|
-
var
|
|
20
|
+
var layer5 = Layer.succeed(ChildProcessSpawner, spawner2);
|
|
21
21
|
|
|
22
|
-
export { spawner2,
|
|
22
|
+
export { spawner2, layer5, exports_unavailable };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-43pfpj47.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./form-
|
|
6
|
+
node55
|
|
7
|
+
} from "./form-7eh5v8ez.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./form-
|
|
9
|
+
Service11,
|
|
10
|
+
node13
|
|
11
|
+
} from "./form-h1vf0xqq.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./form-
|
|
13
|
+
Service14
|
|
14
|
+
} from "./form-fww2ha2b.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./form-
|
|
16
|
+
Service27
|
|
17
|
+
} from "./form-1x11rq2a.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./form-
|
|
19
|
+
node18,
|
|
20
|
+
ID2
|
|
21
|
+
} from "./form-brndm0ne.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./form-
|
|
23
|
+
Service7,
|
|
24
|
+
node9
|
|
25
|
+
} from "./form-tpw6cwsb.js";
|
|
26
26
|
import {
|
|
27
27
|
requirements2,
|
|
28
28
|
guarded2,
|
|
29
29
|
list2
|
|
30
|
-
} from "./form-
|
|
30
|
+
} from "./form-bmkdxg01.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
make8,
|
|
33
33
|
LoadError2
|
|
34
|
-
} from "./form-
|
|
34
|
+
} from "./form-mjb8sty1.js";
|
|
35
35
|
import {
|
|
36
36
|
Updated2,
|
|
37
|
-
Service4,
|
|
38
|
-
node6
|
|
39
|
-
} from "./form-ct5beqmq.js";
|
|
40
|
-
import {
|
|
41
37
|
Service6,
|
|
42
38
|
node8
|
|
43
|
-
} from "./form-
|
|
39
|
+
} from "./form-eps22w94.js";
|
|
40
|
+
import {
|
|
41
|
+
Service5,
|
|
42
|
+
node7
|
|
43
|
+
} from "./form-y56ehv6b.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
46
|
} from "./form-9rqn6x4v.js";
|
|
@@ -50,7 +50,7 @@ var exports_supervisor = {};
|
|
|
50
50
|
__export(exports_supervisor, {
|
|
51
51
|
PluginSupervisor: () => exports_supervisor,
|
|
52
52
|
layer: () => layer4,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node4
|
|
54
54
|
});
|
|
55
55
|
import { Event } from "@opencode/schema/config";
|
|
56
56
|
import { Cause, Effect, Layer, Queue, Stream } from "effect";
|
|
@@ -127,7 +127,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
127
127
|
failures: [
|
|
128
128
|
...failures.values(),
|
|
129
129
|
...ordered.filter(duplicate).map((plugin) => ({
|
|
130
|
-
id:
|
|
130
|
+
id: ID2.make(plugin.id),
|
|
131
131
|
source: plugin.source ?? { type: "builtin" },
|
|
132
132
|
state: { status: "failed", error: `Duplicate plugin ID: ${plugin.id}` },
|
|
133
133
|
features: { server: true, ...plugin.features }
|
|
@@ -137,14 +137,14 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
139
|
var layer4 = Layer.effectDiscard(Effect.gen(function* () {
|
|
140
|
-
const managed = yield*
|
|
141
|
-
const registry = yield*
|
|
142
|
-
const sdk = yield*
|
|
143
|
-
const instance = yield*
|
|
144
|
-
const sources = yield*
|
|
145
|
-
const modules = yield*
|
|
140
|
+
const managed = yield* Service14;
|
|
141
|
+
const registry = yield* Service27;
|
|
142
|
+
const sdk = yield* Service6;
|
|
143
|
+
const instance = yield* Service7;
|
|
144
|
+
const sources = yield* Service11;
|
|
145
|
+
const modules = yield* make8();
|
|
146
146
|
const bus = yield* Service85;
|
|
147
|
-
const updates = yield*
|
|
147
|
+
const updates = yield* Service5;
|
|
148
148
|
const internal = yield* list2();
|
|
149
149
|
let release = yield* registry.hold();
|
|
150
150
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -220,14 +220,14 @@ var layer4 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
220
220
|
})), Effect.forkScoped({ startImmediately: true }));
|
|
221
221
|
}));
|
|
222
222
|
var nodeDeps = [
|
|
223
|
-
|
|
224
|
-
node6,
|
|
225
|
-
node7,
|
|
226
|
-
node14,
|
|
223
|
+
node18,
|
|
227
224
|
node8,
|
|
225
|
+
node9,
|
|
226
|
+
node13,
|
|
227
|
+
node7,
|
|
228
228
|
node89,
|
|
229
229
|
Npm.node,
|
|
230
|
-
|
|
230
|
+
node55,
|
|
231
231
|
requirements2
|
|
232
232
|
];
|
|
233
233
|
function pluginSource(target) {
|
|
@@ -235,6 +235,6 @@ function pluginSource(target) {
|
|
|
235
235
|
return { type: "local", path: target };
|
|
236
236
|
return { type: "package", target };
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var node4 = makeLocationNode({ name: "plugin-supervisor", layer: layer4, deps: nodeDeps });
|
|
239
239
|
|
|
240
|
-
export { layer4,
|
|
240
|
+
export { layer4, node4, exports_supervisor };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-43pfpj47.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./form-
|
|
5
|
+
Service33
|
|
6
|
+
} from "./form-rzqnmzcf.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
8
|
+
Error3
|
|
9
|
+
} from "./form-awg6j8k5.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
11
|
+
Service51
|
|
12
|
+
} from "./form-d04ep358.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./form-
|
|
15
|
+
} from "./form-yj7k2rcj.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
18
|
} from "./form-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./form-
|
|
21
|
+
} from "./form-4kpsjb1s.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
24
|
} from "./form-tdstcens.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./form-
|
|
27
|
+
} from "./form-e03vnsya.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
30
|
} from "./form-fn9t717r.js";
|
|
@@ -54,8 +54,8 @@ var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not r
|
|
|
54
54
|
var make3 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service85;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service33;
|
|
58
|
+
const toolOutput = yield* Service51;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const pendingStartSnapshot = yield* snapshots.capture().pipe(Effect.forkScoped);
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -71,7 +71,7 @@ var make3 = Effect.gen(function* () {
|
|
|
71
71
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
72
72
|
const executeTool = (call) => {
|
|
73
73
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
74
|
-
return new
|
|
74
|
+
return new Error3({ message: "Tools are disabled after the maximum agent steps" });
|
|
75
75
|
return input.prepared.executeTool({
|
|
76
76
|
sessionID: input.sessionID,
|
|
77
77
|
agent: input.agent,
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service57,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node59
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service57 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service57.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node59 = makeLocationNode({ service: Service57, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service57, node59, exports_image2 };
|