@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
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service85,
|
|
4
4
|
node89
|
|
5
|
-
} from "./form-
|
|
5
|
+
} from "./form-43pfpj47.js";
|
|
6
6
|
import {
|
|
7
7
|
Key3,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make19,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./form-
|
|
12
|
+
} from "./form-t550f9t1.js";
|
|
13
13
|
import {
|
|
14
14
|
create3
|
|
15
15
|
} from "./form-rdw6cm16.js";
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
// src/instruction-discovery.ts
|
|
21
21
|
var exports_instruction_discovery = {};
|
|
22
22
|
__export(exports_instruction_discovery, {
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event4,
|
|
24
24
|
File: () => File2,
|
|
25
25
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
26
|
-
Options: () =>
|
|
27
|
-
Service: () =>
|
|
28
|
-
configured: () =>
|
|
29
|
-
layer: () =>
|
|
30
|
-
node: () =>
|
|
26
|
+
Options: () => Options4,
|
|
27
|
+
Service: () => Service32,
|
|
28
|
+
configured: () => configured4,
|
|
29
|
+
layer: () => layer16,
|
|
30
|
+
node: () => node35
|
|
31
31
|
});
|
|
32
32
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
33
33
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,17 +39,17 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
39
39
|
}
|
|
40
40
|
var Files = Schema.Array(File2);
|
|
41
41
|
var key = Key3.make("core/instructions");
|
|
42
|
-
var
|
|
42
|
+
var Event4 = {
|
|
43
43
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var Options4 = Schema.Struct({
|
|
46
46
|
project: Schema.optional(Schema.Boolean),
|
|
47
47
|
global: Schema.optional(Schema.Boolean)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service32 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var layer16 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
53
53
|
const bus = yield* Service85;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "instruction-discovery",
|
|
@@ -69,9 +69,9 @@ var layer22 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
|
69
69
|
editor.available = false;
|
|
70
70
|
}
|
|
71
71
|
}),
|
|
72
|
-
notify: () => bus.publish(
|
|
72
|
+
notify: () => bus.publish(Event4.Updated, {}).pipe(Effect.asVoid)
|
|
73
73
|
});
|
|
74
|
-
const source = (value) =>
|
|
74
|
+
const source = (value) => make19({
|
|
75
75
|
key,
|
|
76
76
|
codec: Schema.toCodecJson(Files),
|
|
77
77
|
read: Effect.succeed(value),
|
|
@@ -87,7 +87,7 @@ var layer22 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
|
87
87
|
return unavailable3;
|
|
88
88
|
return Array.from(current.files.values());
|
|
89
89
|
});
|
|
90
|
-
return
|
|
90
|
+
return Service32.of({
|
|
91
91
|
project: options?.project !== false,
|
|
92
92
|
global: options?.global !== false,
|
|
93
93
|
transform: state.transform,
|
|
@@ -101,14 +101,14 @@ var layer22 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
|
101
101
|
})
|
|
102
102
|
});
|
|
103
103
|
}));
|
|
104
|
-
function
|
|
104
|
+
function configured4(options) {
|
|
105
105
|
return makeLocationNode({
|
|
106
|
-
service:
|
|
107
|
-
layer:
|
|
106
|
+
service: Service32,
|
|
107
|
+
layer: layer16(options),
|
|
108
108
|
deps: [node89]
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var node35 = configured4();
|
|
112
112
|
function render(files) {
|
|
113
113
|
return files.map((file) => `Instructions from: ${file.path}
|
|
114
114
|
${file.content}`).join(`
|
|
@@ -139,4 +139,4 @@ ${render([after])}`;
|
|
|
139
139
|
`);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
export { File2,
|
|
142
|
+
export { File2, Event4, Options4, Service32, layer16, configured4, node35, exports_instruction_discovery };
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./form-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-my4zabxr.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./form-
|
|
9
|
+
} from "./form-yj7k2rcj.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./form-
|
|
13
|
+
} from "./form-t550f9t1.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./form-c1fqxshp.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./form-
|
|
20
|
+
} from "./form-cefkz2r6.js";
|
|
21
21
|
import {
|
|
22
22
|
messageToText2
|
|
23
23
|
} from "./form-8mywswrd.js";
|
|
@@ -36,7 +36,7 @@ __export(exports_history, {
|
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
isNativeCompaction: () => isNativeCompaction2,
|
|
38
38
|
latestCompaction: () => latestCompaction2,
|
|
39
|
-
load: () =>
|
|
39
|
+
load: () => load5,
|
|
40
40
|
preview: () => preview2
|
|
41
41
|
});
|
|
42
42
|
import { and, asc, desc, eq, gte, lt, or, sql } from "drizzle-orm";
|
|
@@ -91,7 +91,7 @@ var withRecentText = Effect.fnUntraced(function* (db, sessionID, entries) {
|
|
|
91
91
|
`);
|
|
92
92
|
return [{ ...first, message: { ...compaction, metadata: { ...compaction.metadata, recent } } }, ...entries.slice(1)];
|
|
93
93
|
});
|
|
94
|
-
var
|
|
94
|
+
var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
95
95
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
96
96
|
});
|
|
97
97
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -127,4 +127,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
127
127
|
return message?.type === "user" ? message : undefined;
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
export { isNativeCompaction2, NativeWindow2, latestCompaction2, decodeMessageRowSync2, decodeMessageRow2,
|
|
130
|
+
export { isNativeCompaction2, NativeWindow2, latestCompaction2, decodeMessageRowSync2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-43pfpj47.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./form-
|
|
5
|
+
Service82
|
|
6
|
+
} from "./form-kx5nz21w.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./form-
|
|
9
|
+
Service30
|
|
10
|
+
} from "./form-ft0vqakg.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./form-9rqn6x4v.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
var exports_command = {};
|
|
17
17
|
__export(exports_command, {
|
|
18
18
|
CommandPlugin: () => exports_command,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin30
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin30 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
199
|
+
const location = yield* Service82;
|
|
200
|
+
const mcp = yield* Service30;
|
|
201
201
|
const bus = yield* Service85;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin30, exports_command };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-43pfpj47.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./form-
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./form-kx5nz21w.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
11
|
} from "./form-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./form-
|
|
13
|
+
Service66,
|
|
14
|
+
node68
|
|
15
|
+
} from "./form-prv28kd3.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./form-9rqn6x4v.js";
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
// src/session/instructions.ts
|
|
21
21
|
var exports_instructions = {};
|
|
22
22
|
__export(exports_instructions, {
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service3,
|
|
24
24
|
SessionInstructions: () => exports_instructions,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node5
|
|
26
26
|
});
|
|
27
27
|
import { relative } from "path";
|
|
28
28
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -32,13 +32,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
32
32
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service3 extends Context.Service()("@opencode/SessionInstructions") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
37
|
+
var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
38
38
|
const bus = yield* Service85;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
|
-
const store = yield*
|
|
41
|
-
const location = yield*
|
|
40
|
+
const store = yield* Service66;
|
|
41
|
+
const location = yield* Service82;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
44
44
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -84,7 +84,7 @@ ${file.content}`).join(`
|
|
|
84
84
|
return next;
|
|
85
85
|
})));
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return Service3.of({ load });
|
|
88
88
|
}));
|
|
89
89
|
function previouslyInjected(store, sessionID) {
|
|
90
90
|
return Effect.gen(function* () {
|
|
@@ -95,10 +95,10 @@ function previouslyInjected(store, sessionID) {
|
|
|
95
95
|
function describePath(root, path) {
|
|
96
96
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var node5 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [node89, FSUtil.node,
|
|
101
|
+
deps: [node89, FSUtil.node, node86, node68]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
export {
|
|
104
|
+
export { Service3, node5, exports_instructions };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make19,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-t550f9t1.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID6,
|
|
9
9
|
Name2,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./form-
|
|
10
|
+
available3,
|
|
11
|
+
Service63,
|
|
12
|
+
node65
|
|
13
|
+
} from "./form-e6b459zv.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./form-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/skill/instructions.ts
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
Service: () =>
|
|
22
|
-
SkillInstructions: () =>
|
|
23
|
-
node: () =>
|
|
19
|
+
var exports_instructions5 = {};
|
|
20
|
+
__export(exports_instructions5, {
|
|
21
|
+
Service: () => Service31,
|
|
22
|
+
SkillInstructions: () => exports_instructions5,
|
|
23
|
+
node: () => node34
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
27
|
var Summary = Schema.Struct({
|
|
28
|
-
id:
|
|
28
|
+
id: ID6,
|
|
29
29
|
name: Name2,
|
|
30
30
|
description: Schema.String
|
|
31
31
|
});
|
|
@@ -60,14 +60,14 @@ var update = (previous, current) => {
|
|
|
60
60
|
`);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
class
|
|
63
|
+
class Service31 extends Context.Service()("@opencode/SkillInstructions") {
|
|
64
64
|
}
|
|
65
|
-
var layer = Layer.effect(
|
|
66
|
-
const skills = yield*
|
|
67
|
-
return
|
|
65
|
+
var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
66
|
+
const skills = yield* Service63;
|
|
67
|
+
return Service31.of({
|
|
68
68
|
load: Effect.fn("SkillInstructions.load")(function* (permissions) {
|
|
69
|
-
const available =
|
|
70
|
-
return
|
|
69
|
+
const available = available3(yield* skills.list(), permissions).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
70
|
+
return make19({
|
|
71
71
|
key: Key3.make("core/skill-guidance"),
|
|
72
72
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
73
73
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
@@ -80,6 +80,6 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
82
|
}));
|
|
83
|
-
var
|
|
83
|
+
var node34 = makeLocationNode({ service: Service31, layer, deps: [node65] });
|
|
84
84
|
|
|
85
|
-
export {
|
|
85
|
+
export { Service31, node34, exports_instructions5 };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./form-
|
|
5
|
+
} from "./form-tdvmxvqx.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
|
-
|
|
9
|
+
make22,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./form-
|
|
11
|
+
} from "./form-sqph2rem.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./form-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ __export(exports_drizzle, {
|
|
|
22
22
|
EffectSQLiteDatabase: () => EffectSQLiteDatabase2,
|
|
23
23
|
EffectSQLiteSession: () => EffectSQLiteSession2,
|
|
24
24
|
EffectSQLiteTransaction: () => EffectSQLiteTransaction2,
|
|
25
|
-
make: () =>
|
|
25
|
+
make: () => make22,
|
|
26
26
|
makeWithDefaults: () => makeWithDefaults2,
|
|
27
27
|
managesTransactionsNatively: () => managesTransactionsNatively2
|
|
28
28
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./form-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./form-yef9qky4.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./form-9rqn6x4v.js";
|
|
@@ -9,25 +9,25 @@ import {
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
11
11
|
__export(exports_location, {
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info27,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref4,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service82,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node86,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
|
-
import { Info as
|
|
21
|
+
import { Info as Info27, Ref as Ref4, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service82 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node86 = LayerNode.unbound(Service82, tags.values.location);
|
|
27
|
+
var layer = (ref) => Layer.effect(Service82, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service83;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory);
|
|
30
|
-
return
|
|
30
|
+
return Service82.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref) => Layer.effect(Service81, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service82,
|
|
39
39
|
layer: layer(ref),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node87]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { Info27, Ref4, response2, Service82, node86, boundNode2, exports_location };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-vcxbe612.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./form-
|
|
8
|
+
} from "./form-43pfpj47.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./form-pknna89w.js";
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event18,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID14,
|
|
26
|
+
Info: () => Info24,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service75,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node77
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
@@ -36,31 +36,31 @@ import { Credential } from "@opencode/schema/credential";
|
|
|
36
36
|
import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
37
37
|
import { Integration } from "@opencode/schema/integration";
|
|
38
38
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
39
|
-
var
|
|
39
|
+
var ID14 = Credential.ID;
|
|
40
40
|
var OAuth3 = Credential.OAuth;
|
|
41
41
|
var Key4 = Credential.Key;
|
|
42
42
|
var External2 = Credential.External;
|
|
43
43
|
var Value2 = Credential.Value;
|
|
44
|
-
var
|
|
44
|
+
var Event18 = Credential.Event;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info24 extends Schema.Class("Credential.Info")({
|
|
47
|
+
id: ID14,
|
|
48
48
|
integrationID: Integration.ID,
|
|
49
49
|
label: Schema.String,
|
|
50
50
|
value: Value2
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service75 extends Context.Service()("@opencode/Credential") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
56
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
57
57
|
const db = (yield* Service86).db;
|
|
58
58
|
const bus = yield* Service85;
|
|
59
59
|
const decode = Schema.decodeUnknownSync(CredentialLegacy.Value);
|
|
60
60
|
const stored = (row) => {
|
|
61
61
|
if (!row.integration_id)
|
|
62
62
|
return;
|
|
63
|
-
return new
|
|
63
|
+
return new Info24({
|
|
64
64
|
id: row.id,
|
|
65
65
|
integrationID: row.integration_id,
|
|
66
66
|
label: row.label,
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
71
71
|
const credential = stored(row);
|
|
72
72
|
return credential ? [credential] : [];
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return Service75.of({
|
|
75
75
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
76
76
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
77
77
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -79,8 +79,8 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
79
79
|
return row ? stored(row) : undefined;
|
|
80
80
|
}),
|
|
81
81
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
82
|
-
const credential = new
|
|
83
|
-
id: input.id ??
|
|
82
|
+
const credential = new Info24({
|
|
83
|
+
id: input.id ?? ID14.create(),
|
|
84
84
|
integrationID: input.integrationID,
|
|
85
85
|
label: input.label ?? "default",
|
|
86
86
|
value: input.value
|
|
@@ -111,9 +111,9 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
111
111
|
type: credential.value.type,
|
|
112
112
|
active: activated
|
|
113
113
|
});
|
|
114
|
-
yield* bus.publish(
|
|
114
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
115
115
|
if (activated)
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
117
117
|
return credential;
|
|
118
118
|
}),
|
|
119
119
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -133,7 +133,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
133
133
|
})), Effect.orDie);
|
|
134
134
|
if (integrationID) {
|
|
135
135
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
136
|
-
yield* bus.publish(
|
|
136
|
+
yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
|
|
137
137
|
}
|
|
138
138
|
}),
|
|
139
139
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -165,7 +165,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
165
165
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
166
166
|
});
|
|
167
167
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
168
|
-
yield* bus.publish(
|
|
168
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
169
169
|
}),
|
|
170
170
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
171
171
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -198,12 +198,12 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
198
198
|
active: removed.switched,
|
|
199
199
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
200
200
|
});
|
|
201
|
-
yield* bus.publish(
|
|
201
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
202
202
|
if (removed.switched)
|
|
203
|
-
yield* bus.publish(
|
|
203
|
+
yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
}));
|
|
207
|
-
var
|
|
207
|
+
var node77 = makeGlobalNode({ service: Service75, layer, deps: [node90, node89] });
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { ID14, OAuth3, Key4, External2, Value2, Event18, Info24, Service75, node77, exports_credential };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./form-
|
|
2
|
+
Service42
|
|
3
|
+
} from "./form-sxzvkvgj.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-1x11rq2a.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
8
|
+
Service49
|
|
9
|
+
} from "./form-sgphrwae.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
12
|
} from "./form-vzs5sf6e.js";
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service42;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service49), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|