@opencode/core 0.0.0-dev-21100 → 0.0.0-dev-21102
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 +61 -61
- package/dist/aisdk-native.js +63 -63
- package/dist/aisdk.js +68 -68
- package/dist/app.js +9 -9
- package/dist/bus.js +53 -53
- package/dist/chunks/{file-mutation-ye87g1v7.js → file-mutation-0a45r66e.js} +7 -7
- package/dist/chunks/{file-mutation-e4cyj753.js → file-mutation-0bn0sq9n.js} +11 -11
- package/dist/chunks/{file-mutation-wpmyr8wn.js → file-mutation-0kqmzpgj.js} +1 -1
- package/dist/chunks/{file-mutation-20swtk33.js → file-mutation-0vhb79zx.js} +22 -22
- package/dist/chunks/{file-mutation-9mvbc2bx.js → file-mutation-10bapksq.js} +29 -29
- package/dist/chunks/file-mutation-1e0042jk.js +513 -0
- package/dist/chunks/{file-mutation-s2z0d44b.js → file-mutation-1j6m29mr.js} +8 -8
- package/dist/chunks/{file-mutation-ncf68bzz.js → file-mutation-1ja1wxmc.js} +7 -7
- package/dist/chunks/{file-mutation-8yvq4f24.js → file-mutation-1nbyw85c.js} +9 -9
- package/dist/chunks/{file-mutation-z9xvgkvp.js → file-mutation-1pw9daj1.js} +12 -12
- package/dist/chunks/{file-mutation-tce46y2m.js → file-mutation-1vq8waa3.js} +19 -19
- package/dist/chunks/{file-mutation-mdncxare.js → file-mutation-24ashckt.js} +26 -26
- package/dist/chunks/{file-mutation-a4yg1sdh.js → file-mutation-2ee1qjw3.js} +16 -16
- package/dist/chunks/{file-mutation-ft3hqk2c.js → file-mutation-2mq1h16s.js} +7 -7
- package/dist/chunks/{file-mutation-0w4jm1jx.js → file-mutation-2njd48f3.js} +3 -3
- package/dist/chunks/{file-mutation-2jktmf9n.js → file-mutation-31cd2ng7.js} +2 -2
- package/dist/chunks/{file-mutation-h7s7r6s9.js → file-mutation-31xfzrxg.js} +3 -3
- package/dist/chunks/{file-mutation-1vg5bab8.js → file-mutation-32qfxbms.js} +9 -9
- package/dist/chunks/{file-mutation-0kqd78f8.js → file-mutation-34pqwryj.js} +29 -29
- package/dist/chunks/{file-mutation-x28b6w11.js → file-mutation-34yg83yr.js} +12 -12
- package/dist/chunks/{file-mutation-m1bgbts7.js → file-mutation-395y8vmn.js} +31 -31
- package/dist/chunks/{file-mutation-92vehc1c.js → file-mutation-3h7vgc1c.js} +19 -19
- package/dist/chunks/{file-mutation-g797rwqt.js → file-mutation-3nn61x4m.js} +11 -11
- package/dist/chunks/{file-mutation-ytt5asfy.js → file-mutation-3xmz25ae.js} +3 -3
- package/dist/chunks/{file-mutation-15nepkqg.js → file-mutation-3zy697b6.js} +7 -7
- package/dist/chunks/{file-mutation-3773e6mf.js → file-mutation-3zzm0etj.js} +25 -25
- package/dist/chunks/{file-mutation-52ykxqh0.js → file-mutation-44gm7dpy.js} +12 -12
- package/dist/chunks/file-mutation-49n22trf.js +257 -0
- package/dist/chunks/{file-mutation-29s5x6b9.js → file-mutation-4byykzwt.js} +11 -11
- package/dist/chunks/{file-mutation-461nxmbv.js → file-mutation-4ekscj25.js} +3 -3
- package/dist/chunks/{file-mutation-7n5f7c7j.js → file-mutation-4p0ag926.js} +10 -10
- package/dist/chunks/{file-mutation-mzxszccs.js → file-mutation-4pxfaks0.js} +2 -2
- package/dist/chunks/{file-mutation-j8hamcts.js → file-mutation-4x8f5qrc.js} +70 -70
- package/dist/chunks/{file-mutation-tqvzg8wx.js → file-mutation-4y2jths2.js} +4 -4
- package/dist/chunks/{file-mutation-gg4q0cvg.js → file-mutation-523zf4ny.js} +8 -8
- package/dist/chunks/{file-mutation-cpqhy60c.js → file-mutation-53rh8r92.js} +13 -13
- package/dist/chunks/{file-mutation-jd1c0qnd.js → file-mutation-5pyjqqve.js} +1 -1
- package/dist/chunks/{file-mutation-1p5j3zb8.js → file-mutation-5vma4t00.js} +9 -9
- package/dist/chunks/{file-mutation-78qa9ztr.js → file-mutation-5xeyj92j.js} +1 -1
- package/dist/chunks/{file-mutation-k4jk0bz8.js → file-mutation-6axq4ad7.js} +9 -9
- package/dist/chunks/{file-mutation-kf9hmnhf.js → file-mutation-6b5qcyht.js} +8 -8
- package/dist/chunks/{file-mutation-33kwj4td.js → file-mutation-6et16byz.js} +4 -4
- package/dist/chunks/{file-mutation-b4qv2psp.js → file-mutation-6gke9jm0.js} +21 -21
- package/dist/chunks/{file-mutation-4hrfvj5w.js → file-mutation-6n4qjbg5.js} +25 -25
- package/dist/chunks/{file-mutation-bfjgvht7.js → file-mutation-6n6k1agq.js} +36 -36
- package/dist/chunks/{file-mutation-jws6fkes.js → file-mutation-6pc27hjz.js} +3 -3
- package/dist/chunks/{file-mutation-24960q6w.js → file-mutation-6qbfyeq4.js} +2 -2
- package/dist/chunks/{file-mutation-y184c51n.js → file-mutation-6qr2hpa3.js} +34 -34
- package/dist/chunks/{file-mutation-v7z2bvyd.js → file-mutation-6rm5yzkt.js} +3 -3
- package/dist/chunks/{file-mutation-xpv5mdgy.js → file-mutation-78mmz05e.js} +1 -1
- package/dist/chunks/{file-mutation-06y5bfez.js → file-mutation-7apm8bw6.js} +16 -16
- package/dist/chunks/{file-mutation-emandsac.js → file-mutation-7f067m2e.js} +1 -1
- package/dist/chunks/{file-mutation-pw2j4nb4.js → file-mutation-7gzvat6z.js} +16 -16
- package/dist/chunks/{file-mutation-4xe7a85s.js → file-mutation-7x9m82rv.js} +2 -2
- package/dist/chunks/{file-mutation-5rs9zx7t.js → file-mutation-82s76q1y.js} +2 -2
- package/dist/chunks/{file-mutation-f4z11j7w.js → file-mutation-831szrnr.js} +51 -51
- package/dist/chunks/{file-mutation-gte9q6nk.js → file-mutation-83nvk7gf.js} +7 -7
- package/dist/chunks/{file-mutation-1kz77zsy.js → file-mutation-86hr6tyx.js} +17 -17
- package/dist/chunks/{file-mutation-72rw85ce.js → file-mutation-86qjnnqk.js} +8 -8
- package/dist/chunks/{file-mutation-21ewksw3.js → file-mutation-8kpxa52r.js} +170 -169
- package/dist/chunks/{file-mutation-ab0bt018.js → file-mutation-8nhf552q.js} +13 -13
- package/dist/chunks/{file-mutation-r2ay4r5j.js → file-mutation-8xdknktr.js} +6 -6
- package/dist/chunks/{file-mutation-7125kzzv.js → file-mutation-928exejz.js} +9 -9
- package/dist/chunks/{file-mutation-f1xh4kee.js → file-mutation-9az4rgkb.js} +22 -22
- package/dist/chunks/{file-mutation-5wvd3wth.js → file-mutation-9cd83t7f.js} +15 -15
- package/dist/chunks/{file-mutation-tdntdvpg.js → file-mutation-9qtbwzwj.js} +1 -1
- package/dist/chunks/{file-mutation-330hs5ce.js → file-mutation-9tk0xbhp.js} +18 -18
- package/dist/chunks/{file-mutation-3wznbp76.js → file-mutation-a0ngmh7v.js} +48 -48
- package/dist/chunks/{file-mutation-t363e79v.js → file-mutation-a5cb3rxh.js} +13 -13
- package/dist/chunks/{file-mutation-mhkj1g5d.js → file-mutation-ab0v7xqg.js} +9 -9
- package/dist/chunks/{file-mutation-zfrh7ppm.js → file-mutation-ab17c7dx.js} +11 -11
- package/dist/chunks/{file-mutation-3y377wv9.js → file-mutation-addxnjmp.js} +3 -3
- package/dist/chunks/{file-mutation-rmr77w56.js → file-mutation-ag0c998m.js} +29 -29
- package/dist/chunks/{file-mutation-p0r8daxh.js → file-mutation-ahjtwsk1.js} +12 -12
- package/dist/chunks/{file-mutation-ac4jk4jf.js → file-mutation-atcakhwd.js} +12 -12
- package/dist/chunks/{file-mutation-56dyw8xh.js → file-mutation-atmskjxw.js} +25 -25
- package/dist/chunks/{file-mutation-y8y52ggh.js → file-mutation-atrg28jh.js} +32 -32
- package/dist/chunks/{file-mutation-n0z9xdv5.js → file-mutation-av34pvd4.js} +14 -14
- package/dist/chunks/{file-mutation-h71yhdd1.js → file-mutation-b81ahfje.js} +24 -24
- package/dist/chunks/{file-mutation-cjyxbekx.js → file-mutation-bbsgqxz3.js} +5 -5
- package/dist/chunks/{file-mutation-n4m8qww5.js → file-mutation-bbzjnv7y.js} +42 -42
- package/dist/chunks/{file-mutation-39z47dss.js → file-mutation-bddt2pqj.js} +16 -16
- package/dist/chunks/{file-mutation-z6cf9sp5.js → file-mutation-bdwftekd.js} +28 -28
- package/dist/chunks/{file-mutation-ywkanc3c.js → file-mutation-bh35h2a4.js} +30 -30
- package/dist/chunks/{file-mutation-qze0pbah.js → file-mutation-bhja2czc.js} +46 -46
- package/dist/chunks/{file-mutation-bvhmqw89.js → file-mutation-bjzecbrs.js} +4 -4
- package/dist/chunks/{file-mutation-cdkz0px7.js → file-mutation-bwtsbp89.js} +11 -11
- package/dist/chunks/{file-mutation-chatkvte.js → file-mutation-cba5y8md.js} +12 -12
- package/dist/chunks/{file-mutation-bb9cz41w.js → file-mutation-ckc5xesv.js} +51 -51
- package/dist/chunks/{file-mutation-y1qdxpe7.js → file-mutation-cng1644r.js} +12 -12
- package/dist/chunks/{file-mutation-heegtd1e.js → file-mutation-cqbnrm9h.js} +30 -30
- package/dist/chunks/{file-mutation-jy5yt5xq.js → file-mutation-cry3q34q.js} +21 -21
- package/dist/chunks/{file-mutation-c87fy7y4.js → file-mutation-crygnby0.js} +1 -1
- package/dist/chunks/{file-mutation-ydc3kk2p.js → file-mutation-cyz4rac1.js} +17 -17
- package/dist/chunks/{file-mutation-rj3feasb.js → file-mutation-cz1vwcws.js} +1 -1
- package/dist/chunks/{file-mutation-94f2xxp4.js → file-mutation-dhww0s6x.js} +1 -1
- package/dist/chunks/{file-mutation-s2ge5s40.js → file-mutation-dpdqynsp.js} +26 -26
- package/dist/chunks/{file-mutation-qqeeq2t9.js → file-mutation-drwq78ky.js} +6 -6
- package/dist/chunks/{file-mutation-zjeyh9a3.js → file-mutation-dt4y2tq7.js} +17 -17
- package/dist/chunks/{file-mutation-gqgb50qg.js → file-mutation-e236apxg.js} +5 -5
- package/dist/chunks/{file-mutation-5qd3pb7m.js → file-mutation-e3qxr5gk.js} +2 -2
- package/dist/chunks/{file-mutation-vqmj6h0p.js → file-mutation-e3xy4e71.js} +7 -7
- package/dist/chunks/{file-mutation-w66tjm9k.js → file-mutation-e7a0tnjd.js} +8 -8
- package/dist/chunks/{file-mutation-8zs8s6wb.js → file-mutation-eac7ec6d.js} +6 -6
- package/dist/chunks/{file-mutation-9638ddv9.js → file-mutation-ed01axam.js} +2 -2
- package/dist/chunks/{file-mutation-drj95rpb.js → file-mutation-egyn2h7c.js} +7 -7
- package/dist/chunks/{file-mutation-v1n33rkk.js → file-mutation-emew9pj0.js} +16 -16
- package/dist/chunks/{file-mutation-f0626khp.js → file-mutation-es633c8d.js} +24 -24
- package/dist/chunks/{file-mutation-qcq0ch7s.js → file-mutation-ettnqe8w.js} +6 -6
- package/dist/chunks/{file-mutation-ydh2fxne.js → file-mutation-f8g1y2jp.js} +16 -16
- package/dist/chunks/{file-mutation-t0naa760.js → file-mutation-f9twm2pk.js} +22 -22
- package/dist/chunks/{file-mutation-qgn6gcr1.js → file-mutation-fcrkznn8.js} +4 -4
- package/dist/chunks/{file-mutation-vj1wkjxk.js → file-mutation-fg22vpm1.js} +20 -20
- package/dist/chunks/{file-mutation-c27esgm9.js → file-mutation-fqtvmpfq.js} +7 -7
- package/dist/chunks/{file-mutation-x4z3fxw8.js → file-mutation-fssat8nd.js} +10 -10
- package/dist/chunks/{file-mutation-f29j4hv5.js → file-mutation-gjvt2sw1.js} +25 -25
- package/dist/chunks/{file-mutation-7nyrqda9.js → file-mutation-gv0fvrxd.js} +13 -13
- package/dist/chunks/{file-mutation-xf8bbrv6.js → file-mutation-h2m7wh0c.js} +9 -9
- package/dist/chunks/{file-mutation-1b4m0bzf.js → file-mutation-h9wp8z5w.js} +3 -3
- package/dist/chunks/{file-mutation-dz2gtyfc.js → file-mutation-hgpde3vb.js} +17 -17
- package/dist/chunks/{file-mutation-tz6djrkh.js → file-mutation-hvb11wac.js} +7 -7
- package/dist/chunks/{file-mutation-n37c4crj.js → file-mutation-j58c5xyq.js} +7 -7
- package/dist/chunks/{file-mutation-r1w3bzw9.js → file-mutation-jc9d9mw1.js} +16 -16
- package/dist/chunks/{file-mutation-xrz68rn9.js → file-mutation-jfnyz2cb.js} +26 -26
- package/dist/chunks/{file-mutation-4v7qdvcn.js → file-mutation-jqh9b0xq.js} +4 -4
- package/dist/chunks/{file-mutation-kne8f3cn.js → file-mutation-jvf3yq6v.js} +3 -3
- package/dist/chunks/{file-mutation-yjqzbtaj.js → file-mutation-jxwk72h5.js} +1 -1
- package/dist/chunks/{file-mutation-1k9ymn1d.js → file-mutation-k9rqwrkg.js} +9 -9
- package/dist/chunks/{file-mutation-dv0zfr7y.js → file-mutation-kecerxq6.js} +5 -5
- package/dist/chunks/{file-mutation-ny8edt06.js → file-mutation-khmqacep.js} +3 -3
- package/dist/chunks/{file-mutation-y7nndgyc.js → file-mutation-kjd40bgk.js} +7 -7
- package/dist/chunks/{file-mutation-2hh5ygwn.js → file-mutation-kna85462.js} +26 -26
- package/dist/chunks/{file-mutation-htzs53gz.js → file-mutation-kp1hjqcq.js} +10 -10
- package/dist/chunks/{file-mutation-0b5g1ynf.js → file-mutation-kqx1b4hy.js} +1 -1
- package/dist/chunks/{file-mutation-azs149d7.js → file-mutation-kvwqxrwb.js} +16 -16
- package/dist/chunks/{file-mutation-j7sz3dke.js → file-mutation-m6078mdh.js} +33 -33
- package/dist/chunks/{file-mutation-x6888ea0.js → file-mutation-mnv5anne.js} +16 -16
- package/dist/chunks/{file-mutation-a5hphphy.js → file-mutation-mq9ghvnj.js} +12 -12
- package/dist/chunks/{file-mutation-2vhp9s4n.js → file-mutation-mrp1vw8h.js} +16 -16
- package/dist/chunks/{file-mutation-c3g6e5j8.js → file-mutation-mw3zb6qd.js} +1 -1
- package/dist/chunks/{file-mutation-2rj6s964.js → file-mutation-nbe12rbe.js} +8 -8
- package/dist/chunks/{file-mutation-7rr4hg1t.js → file-mutation-np2zj9yp.js} +22 -22
- package/dist/chunks/{file-mutation-hdmfsn6c.js → file-mutation-nr90a0dt.js} +41 -41
- package/dist/chunks/{file-mutation-q9nte3tg.js → file-mutation-ns6qmrtd.js} +13 -13
- package/dist/chunks/{file-mutation-kwy2a26b.js → file-mutation-nteb4xfc.js} +4 -4
- package/dist/chunks/{file-mutation-5yzzbxa7.js → file-mutation-p42hj8p8.js} +7 -7
- package/dist/chunks/{file-mutation-57mp2y7f.js → file-mutation-paerxhb0.js} +12 -12
- package/dist/chunks/file-mutation-pgrantrc.js +26 -0
- package/dist/chunks/{file-mutation-2s0p8hxn.js → file-mutation-pgvws8e3.js} +81 -81
- package/dist/chunks/{file-mutation-zaz5cehh.js → file-mutation-py1s82by.js} +5 -5
- package/dist/chunks/{file-mutation-k0q3gph6.js → file-mutation-q19wpyyh.js} +24 -24
- package/dist/chunks/{file-mutation-pbfwh0cy.js → file-mutation-qa3qhgw8.js} +6 -6
- package/dist/chunks/{file-mutation-ezyhk4hd.js → file-mutation-qhj8gsw7.js} +21 -21
- package/dist/chunks/{file-mutation-8gek01c0.js → file-mutation-qqrcrv2d.js} +9 -9
- package/dist/chunks/{file-mutation-n2mczcjd.js → file-mutation-qskc9fng.js} +9 -9
- package/dist/chunks/{file-mutation-rdwqze1j.js → file-mutation-qze06xta.js} +29 -29
- package/dist/chunks/{file-mutation-jefgzady.js → file-mutation-r1rs5fcg.js} +8 -8
- package/dist/chunks/{file-mutation-zwph9whm.js → file-mutation-r6twsrbc.js} +15 -15
- package/dist/chunks/{file-mutation-gr0kfs40.js → file-mutation-rg5vjzce.js} +12 -12
- package/dist/chunks/{file-mutation-t550f9t1.js → file-mutation-rhjbct0v.js} +3 -3
- package/dist/chunks/{file-mutation-j3tce0kq.js → file-mutation-rp1sxpnt.js} +1 -1
- package/dist/chunks/{file-mutation-e0c8yhzv.js → file-mutation-rsk8b1r9.js} +12 -12
- package/dist/chunks/{file-mutation-hjkfxcec.js → file-mutation-s0xd9fk5.js} +10 -10
- package/dist/chunks/{file-mutation-67ck3t7e.js → file-mutation-s7p2cp87.js} +19 -19
- package/dist/chunks/{file-mutation-adgjx2yn.js → file-mutation-s9hmt3s5.js} +16 -16
- package/dist/chunks/{file-mutation-av2z4yzv.js → file-mutation-sjsq85cv.js} +14 -14
- package/dist/chunks/{file-mutation-5m76pzew.js → file-mutation-sqxd4b6a.js} +13 -13
- package/dist/chunks/{file-mutation-sa2fc5bp.js → file-mutation-stdh1w8b.js} +9 -9
- package/dist/chunks/{file-mutation-4j91vnan.js → file-mutation-svvw92nk.js} +22 -22
- package/dist/chunks/{file-mutation-bhkme6k3.js → file-mutation-t3zmyd3w.js} +33 -33
- package/dist/chunks/{file-mutation-25bzgp06.js → file-mutation-tjn2qjgm.js} +23 -23
- package/dist/chunks/{file-mutation-y0jhh126.js → file-mutation-tk14y25j.js} +3 -3
- package/dist/chunks/{file-mutation-1ph9pxrr.js → file-mutation-tms097mr.js} +21 -21
- package/dist/chunks/{file-mutation-d0wd20a3.js → file-mutation-tr1j93sp.js} +12 -12
- package/dist/chunks/{file-mutation-4434d9q2.js → file-mutation-v0es1rhs.js} +7 -7
- package/dist/chunks/{file-mutation-0r7tst47.js → file-mutation-v38qq1xq.js} +3 -3
- package/dist/chunks/{file-mutation-xfykgcca.js → file-mutation-v4r9rrgr.js} +14 -14
- package/dist/chunks/{file-mutation-g0kh84es.js → file-mutation-v9ym5vkf.js} +21 -21
- package/dist/chunks/{file-mutation-jwjc3wxe.js → file-mutation-vaer15sz.js} +12 -12
- package/dist/chunks/{file-mutation-3dgghfty.js → file-mutation-vhs7bsm8.js} +79 -79
- package/dist/chunks/{file-mutation-9tesz0cq.js → file-mutation-vnrbpqt1.js} +25 -25
- package/dist/chunks/{file-mutation-dn347z9t.js → file-mutation-vx06kqgv.js} +15 -15
- package/dist/chunks/{file-mutation-2rrj5gsc.js → file-mutation-vx3jgdek.js} +3 -3
- package/dist/chunks/{file-mutation-gwnd8qme.js → file-mutation-vx9tn3ww.js} +6 -6
- package/dist/chunks/{file-mutation-pfkmq5ga.js → file-mutation-w31qasc1.js} +7 -7
- package/dist/chunks/{file-mutation-ejj0jwrk.js → file-mutation-w80w7egq.js} +24 -24
- package/dist/chunks/{file-mutation-q3a6mqv4.js → file-mutation-wdbsdckj.js} +17 -17
- package/dist/chunks/{file-mutation-5x013d8j.js → file-mutation-whepmyc8.js} +1 -1
- package/dist/chunks/{file-mutation-7txsrhy6.js → file-mutation-whmxtv1k.js} +18 -18
- package/dist/chunks/{file-mutation-bjx1sjef.js → file-mutation-wjr9rjd7.js} +4 -4
- package/dist/chunks/{file-mutation-9j12b9vs.js → file-mutation-wq2exejj.js} +35 -35
- package/dist/chunks/{file-mutation-yv787zs0.js → file-mutation-wq5jrx1v.js} +49 -49
- package/dist/chunks/{file-mutation-rey3ye30.js → file-mutation-wrmx1wd8.js} +17 -17
- package/dist/chunks/{file-mutation-5feb8jak.js → file-mutation-wyfpybhz.js} +25 -25
- package/dist/chunks/{file-mutation-3cqwnyj9.js → file-mutation-x5wrmng7.js} +9 -9
- package/dist/chunks/{file-mutation-12fx52fx.js → file-mutation-xfh984c1.js} +16 -16
- package/dist/chunks/{file-mutation-b5qfcexj.js → file-mutation-xjpvrdvq.js} +12 -12
- package/dist/chunks/{file-mutation-hxqe5h20.js → file-mutation-xqevex3y.js} +31 -31
- package/dist/chunks/{file-mutation-6e7td314.js → file-mutation-xtxypabt.js} +7 -7
- package/dist/chunks/{file-mutation-m0jmdjc8.js → file-mutation-xvjf424w.js} +12 -12
- package/dist/chunks/{file-mutation-0ws562sj.js → file-mutation-y35511gd.js} +20 -20
- package/dist/chunks/{file-mutation-9vqmampf.js → file-mutation-y45dsw3d.js} +33 -33
- package/dist/chunks/{file-mutation-d858xzj7.js → file-mutation-y6mhz57t.js} +3 -3
- package/dist/chunks/{file-mutation-axp4ehpq.js → file-mutation-y8p3zjbc.js} +5 -5
- package/dist/chunks/{file-mutation-cg0j9q80.js → file-mutation-yewqjc3q.js} +45 -45
- package/dist/chunks/{file-mutation-z3nay82g.js → file-mutation-yh7kjdpc.js} +7 -7
- package/dist/chunks/{file-mutation-c4fag6w1.js → file-mutation-yk3k7trf.js} +1 -1
- package/dist/chunks/{file-mutation-tvjkad3e.js → file-mutation-ykbenvtt.js} +16 -16
- package/dist/chunks/{file-mutation-fgp2n23a.js → file-mutation-ym72szr7.js} +37 -37
- package/dist/chunks/{file-mutation-f2n192rq.js → file-mutation-yp2x3t23.js} +3 -3
- package/dist/chunks/{file-mutation-0fz4623t.js → file-mutation-yqc6bamn.js} +1 -1
- package/dist/chunks/{file-mutation-4dhekype.js → file-mutation-yv1g7dvw.js} +21 -21
- package/dist/chunks/{file-mutation-7mhsvps3.js → file-mutation-yzmsvx3n.js} +10 -10
- package/dist/chunks/{file-mutation-ygdna4kr.js → file-mutation-z6c3x22d.js} +3 -3
- package/dist/chunks/{file-mutation-xt8c43wt.js → file-mutation-z6szz84x.js} +18 -18
- package/dist/chunks/{file-mutation-1kkkfcmn.js → file-mutation-z8abfd22.js} +46 -46
- package/dist/chunks/{file-mutation-3xbrj0ew.js → file-mutation-ze4328nr.js} +21 -21
- package/dist/chunks/{file-mutation-3p0gnp52.js → file-mutation-zj0rakt4.js} +11 -11
- package/dist/chunks/{file-mutation-x3snk7zw.js → file-mutation-zj24t7xr.js} +4 -4
- package/dist/chunks/{file-mutation-kb8mmr2h.js → file-mutation-zm7ab947.js} +22 -22
- package/dist/chunks/{file-mutation-rfpqy3ha.js → file-mutation-zx5swzrd.js} +2 -2
- package/dist/chunks/{file-mutation-scgrse2b.js → file-mutation-zyk1yjk8.js} +3 -3
- package/dist/chunks/{file-mutation-sgxwq5t5.js → file-mutation-zz5c3g14.js} +5 -5
- package/dist/codemode/instructions.js +10 -10
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +65 -65
- package/dist/config/discovery.js +56 -56
- package/dist/config/normalize.js +72 -72
- package/dist/config/plugin/agent.js +85 -85
- package/dist/config/plugin/command.js +166 -166
- package/dist/config/plugin/compaction.js +115 -115
- package/dist/config/plugin/compatibility.js +100 -100
- package/dist/config/plugin/formatter.js +83 -83
- package/dist/config/plugin/image.js +83 -83
- package/dist/config/plugin/instruction.js +84 -84
- package/dist/config/plugin/location-watcher.js +85 -85
- package/dist/config/plugin/mcp.js +91 -91
- package/dist/config/plugin/policy.js +84 -84
- package/dist/config/plugin/provider.js +83 -83
- package/dist/config/plugin/reference.js +85 -85
- package/dist/config/plugin/shell.js +85 -85
- package/dist/config/plugin/skill-file.js +72 -72
- package/dist/config/plugin/skill.js +103 -103
- package/dist/config/plugin/snapshot.js +83 -83
- package/dist/config/plugin/source.js +86 -86
- package/dist/config/plugin/tool-output.js +84 -84
- package/dist/config/plugin/websearch.js +84 -84
- package/dist/config/plugin/worktree.js +85 -85
- package/dist/config.js +89 -89
- package/dist/credential.js +60 -60
- package/dist/database/database.js +54 -54
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +39 -39
- package/dist/database/v1-migration.bun.js +12 -12
- package/dist/effect/app-node-builder.js +229 -229
- package/dist/environment/environment.js +64 -64
- package/dist/environment/index.js +66 -66
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +75 -75
- package/dist/file-mutation.js +65 -65
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +180 -180
- package/dist/filesystem/search.js +62 -62
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +63 -63
- package/dist/form.js +62 -62
- package/dist/formatter.js +61 -61
- package/dist/generate.js +77 -77
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +65 -65
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- 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.js +305 -305
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +61 -61
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +66 -66
- package/dist/job.js +57 -57
- package/dist/kv.js +53 -53
- package/dist/location-activity.js +55 -55
- package/dist/location-lifecycle.js +78 -78
- package/dist/location-service-map.js +60 -60
- package/dist/location-services.js +308 -308
- package/dist/location.js +63 -63
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +78 -78
- package/dist/mcp/instructions.js +92 -92
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +61 -61
- package/dist/modal/models.js +65 -65
- package/dist/model-resolver.js +72 -72
- package/dist/model.js +68 -68
- package/dist/models-dev.js +74 -74
- package/dist/permission/saved.js +59 -59
- package/dist/permission.js +84 -84
- package/dist/persistent-pty/index.js +68 -68
- package/dist/persistent-pty.js +52 -52
- package/dist/plugin/agent.js +56 -56
- package/dist/plugin/command.js +73 -73
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +171 -171
- 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 +69 -69
- package/dist/plugin/module.js +84 -84
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +73 -73
- package/dist/plugin/provider/amazon-bedrock.js +64 -64
- package/dist/plugin/provider/azure.js +84 -84
- package/dist/plugin/provider/chatgpt.js +82 -82
- package/dist/plugin/provider/cloudflare-ai-gateway.js +81 -81
- package/dist/plugin/provider/cloudflare-workers-ai.js +81 -81
- package/dist/plugin/provider/configured.js +80 -80
- package/dist/plugin/provider/digitalocean.js +66 -66
- package/dist/plugin/provider/github-copilot.js +68 -68
- package/dist/plugin/provider/gitlab.js +66 -66
- package/dist/plugin/provider/google-vertex.js +81 -81
- package/dist/plugin/provider/llmgateway.js +55 -55
- package/dist/plugin/provider/lmstudio.js +91 -91
- package/dist/plugin/provider/local.js +88 -88
- package/dist/plugin/provider/modal.js +66 -66
- package/dist/plugin/provider/ollama.js +89 -89
- package/dist/plugin/provider/openai.js +82 -82
- package/dist/plugin/provider/opencode.js +71 -71
- package/dist/plugin/provider/openrouter.js +65 -65
- package/dist/plugin/provider/poe.js +55 -55
- package/dist/plugin/provider/sap-ai-core.js +64 -64
- package/dist/plugin/provider/snowflake-cortex.js +82 -82
- package/dist/plugin/provider/vercel.js +64 -64
- package/dist/plugin/provider/vllm.js +89 -89
- package/dist/plugin/provider/xai.js +65 -65
- package/dist/plugin/provider.js +127 -127
- package/dist/plugin/sdk.js +56 -56
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +101 -101
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +60 -60
- package/dist/plugin/vcs/hg.js +60 -60
- package/dist/plugin/verbosity.js +67 -67
- package/dist/plugin/warming.js +82 -82
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +183 -183
- package/dist/project/schema.js +7 -7
- package/dist/project.js +64 -64
- package/dist/provider.js +67 -67
- package/dist/pty.js +70 -70
- package/dist/reference/instructions.js +62 -62
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +57 -57
- package/dist/ripgrep.js +65 -65
- package/dist/rpc.js +60 -60
- package/dist/session/command.js +53 -53
- package/dist/session/compaction.js +101 -101
- package/dist/session/context.js +115 -115
- package/dist/session/diff.js +60 -60
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +2 -2
- package/dist/session/execution/restart.js +115 -115
- package/dist/session/execution.js +94 -94
- package/dist/session/generate.js +117 -117
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +61 -61
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +56 -56
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +68 -68
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +87 -87
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +98 -98
- package/dist/session/projector.js +59 -59
- package/dist/session/prompt.js +74 -74
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +60 -60
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +182 -182
- package/dist/session/runner/model.js +72 -72
- package/dist/session/runner/publish-llm-event.js +83 -83
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +94 -94
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +124 -124
- package/dist/session/shell.js +95 -95
- package/dist/session/skill.js +73 -73
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +62 -62
- package/dist/session/subagent-job.js +160 -160
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +120 -120
- package/dist/session/to-session-error.js +82 -82
- package/dist/session/transfer.js +115 -115
- package/dist/session.js +170 -170
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +98 -98
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +78 -78
- package/dist/skill.js +85 -85
- package/dist/snapshot.js +63 -63
- package/dist/tool/mcp.js +95 -95
- package/dist/tool/plugin/edit.js +87 -87
- package/dist/tool/plugin/glob.js +88 -88
- package/dist/tool/plugin/grep.js +90 -90
- package/dist/tool/plugin/mcp-resource.js +85 -85
- package/dist/tool/plugin/opencode.js +80 -80
- package/dist/tool/plugin/patch.js +89 -89
- package/dist/tool/plugin/question.js +76 -76
- package/dist/tool/plugin/read.js +88 -88
- package/dist/tool/plugin/shell.js +170 -170
- package/dist/tool/plugin/skill.js +80 -80
- package/dist/tool/plugin/subagent.js +167 -167
- package/dist/tool/plugin/webfetch.js +77 -77
- package/dist/tool/plugin/websearch.js +82 -82
- package/dist/tool/plugin/write.js +85 -85
- package/dist/tool/read-filesystem.js +68 -68
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +10 -10
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +65 -65
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +67 -67
- package/dist/vcs.js +63 -63
- package/dist/voice.js +61 -61
- package/dist/websearch.js +62 -62
- package/dist/wellknown/plugin.js +54 -54
- package/dist/wellknown.js +59 -59
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +59 -59
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +62 -62
- package/dist/worktree.js +68 -68
- package/package.json +8 -8
- package/dist/chunks/file-mutation-d3jzepm9.js +0 -513
- package/dist/chunks/file-mutation-nw7rspz8.js +0 -26
- package/dist/chunks/file-mutation-rfz8qemb.js +0 -257
- /package/dist/chunks/{file-mutation-j09zfasm.js → file-mutation-91qna3x0.js} +0 -0
- /package/dist/chunks/{file-mutation-f5m013by.js → file-mutation-jpqkz8s9.js} +0 -0
- /package/dist/chunks/{file-mutation-2xwkyk0m.js → file-mutation-mjagy123.js} +0 -0
- /package/dist/chunks/{file-mutation-z0bepcn1.js → file-mutation-qcf9sep0.js} +0 -0
- /package/dist/chunks/{file-mutation-het2jkzt.js → file-mutation-vgbe0hx2.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./file-mutation-
|
|
3
|
+
} from "./file-mutation-s0xd9fk5.js";
|
|
4
4
|
import {
|
|
5
5
|
collectBoundedResponseBody2
|
|
6
6
|
} from "./file-mutation-3v8g72cx.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_RESPONSE_BYTES2,
|
|
9
9
|
call2
|
|
10
|
-
} from "./file-mutation-
|
|
10
|
+
} from "./file-mutation-wjr9rjd7.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
// src/plugin/websearch/tinyfish.ts
|
|
16
16
|
var exports_tinyfish = {};
|
|
17
17
|
__export(exports_tinyfish, {
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin23,
|
|
19
19
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
20
|
-
endpoint: () =>
|
|
20
|
+
endpoint: () => endpoint5
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Duration, Effect, Option, Schema } from "effect";
|
|
24
24
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
25
|
-
var
|
|
25
|
+
var endpoint5 = "https://agent.tinyfish.ai/mcp";
|
|
26
26
|
var McpInput = Schema.Struct({
|
|
27
27
|
query: Schema.String
|
|
28
28
|
});
|
|
@@ -51,7 +51,7 @@ var InitializedNotification = Schema.Struct({
|
|
|
51
51
|
jsonrpc: Schema.Literal("2.0"),
|
|
52
52
|
method: Schema.Literal("notifications/initialized")
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var Plugin23 = define({
|
|
55
55
|
id: "opencode.websearch.tinyfish",
|
|
56
56
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
57
57
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -78,7 +78,7 @@ var Plugin5 = define({
|
|
|
78
78
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
79
79
|
};
|
|
80
80
|
const session = credential?.type === "key" ? yield* initialize(http, headers) : undefined;
|
|
81
|
-
const result = yield* call2(http,
|
|
81
|
+
const result = yield* call2(http, endpoint5, "search", { input: McpInput, output: McpOutput }, { query: input.query }, { ...headers, ...session === undefined ? {} : { "Mcp-Session-Id": session } });
|
|
82
82
|
const content = result?.content.find((item) => item.text);
|
|
83
83
|
const response = content ? Option.getOrUndefined(decodeSearchResponse(content.text)) : undefined;
|
|
84
84
|
return response?.results.map((item) => ({
|
|
@@ -94,7 +94,7 @@ var Plugin5 = define({
|
|
|
94
94
|
});
|
|
95
95
|
var initialize = (http, headers) => Effect.gen(function* () {
|
|
96
96
|
const client = HttpClient.withScope(HttpClient.filterStatusOk(http));
|
|
97
|
-
const request = yield* HttpClientRequest.post(
|
|
97
|
+
const request = yield* HttpClientRequest.post(endpoint5).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders(headers), HttpClientRequest.schemaBodyJson(InitializeRequest)({
|
|
98
98
|
jsonrpc: "2.0",
|
|
99
99
|
id: 1,
|
|
100
100
|
method: "initialize",
|
|
@@ -109,7 +109,7 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
109
109
|
const session = response.headers["mcp-session-id"];
|
|
110
110
|
if (session === undefined)
|
|
111
111
|
return yield* Effect.fail(new Error("TinyFish MCP initialize did not return an Mcp-Session-Id header"));
|
|
112
|
-
const notification = yield* HttpClientRequest.post(
|
|
112
|
+
const notification = yield* HttpClientRequest.post(endpoint5).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders({ ...headers, "Mcp-Session-Id": session }), HttpClientRequest.schemaBodyJson(InitializedNotification)({
|
|
113
113
|
jsonrpc: "2.0",
|
|
114
114
|
method: "notifications/initialized"
|
|
115
115
|
}));
|
|
@@ -120,4 +120,4 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
120
120
|
orElse: () => Effect.fail(new Error("TinyFish initialize request timed out"))
|
|
121
121
|
}));
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { endpoint5, Plugin23, exports_tinyfish };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-mutation-
|
|
2
|
+
Service71,
|
|
3
|
+
node74
|
|
4
|
+
} from "./file-mutation-9az4rgkb.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./file-mutation-
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./file-mutation-s9hmt3s5.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./file-mutation-
|
|
10
|
+
Service70,
|
|
11
|
+
node73
|
|
12
|
+
} from "./file-mutation-z8abfd22.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: () => Service4,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer5,
|
|
28
|
+
node: () => node6
|
|
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 Service4 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service70;
|
|
40
|
+
const watcher = yield* Service71;
|
|
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(Service9, 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 Service4.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(Service9, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node6 = makeLocationNode({
|
|
74
|
+
service: Service4,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node73, FSUtil.node, node74, node86]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service4,
|
|
80
|
+
layer: Layer.succeed(Service4, Service4.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 { Service4, layer5, node6, empty2, exports_source };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-mutation-
|
|
2
|
+
Service81
|
|
3
|
+
} from "./file-mutation-es633c8d.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-mutation-
|
|
5
|
+
Service62
|
|
6
|
+
} from "./file-mutation-831szrnr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input13,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin50,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
19
19
|
description: () => description6,
|
|
20
|
-
name: () =>
|
|
20
|
+
name: () => name13,
|
|
21
21
|
toModelContent: () => toModelContent7
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
25
|
import { Question } from "@opencode/schema/question";
|
|
26
|
-
var
|
|
26
|
+
var name13 = "question";
|
|
27
27
|
var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
28
28
|
1. Gather user preferences or requirements
|
|
29
29
|
2. Clarify ambiguous instructions
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input13 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin50 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service81;
|
|
57
|
+
const permission = yield* Service62;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
|
-
name:
|
|
59
|
+
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input13,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -117,4 +117,4 @@ function toField(question, index) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { name13, description6, Input13, Output9, CancelledError2, toModelContent7, Plugin50, exports_question };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./file-mutation-
|
|
3
|
+
Service70
|
|
4
|
+
} from "./file-mutation-z8abfd22.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./file-mutation-
|
|
6
|
+
Service50
|
|
7
|
+
} from "./file-mutation-6gke9jm0.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./file-mutation-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin7
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin7 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service70;
|
|
27
|
+
const snapshot = yield* Service50;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin34 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin7, exports_snapshot };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info12,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Predicate, Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info12 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -66,4 +66,4 @@ function upgradeLegacyMedia(input) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { Info12, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./file-mutation-
|
|
5
|
+
Service84,
|
|
6
|
+
node88
|
|
7
|
+
} from "./file-mutation-xtxypabt.js";
|
|
8
8
|
import {
|
|
9
9
|
parse4,
|
|
10
10
|
validateBranch3,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
same2
|
|
13
13
|
} from "./file-mutation-84txncab.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./file-mutation-
|
|
15
|
+
Service73,
|
|
16
|
+
node76
|
|
17
|
+
} from "./file-mutation-ab17c7dx.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service47,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node50,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service47 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,13 +101,13 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service84;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service73;
|
|
110
|
+
return Service47.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node50 = makeGlobalNode({
|
|
171
|
+
service: Service47,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node88, Global.node, node76]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service47, isError2, validateBranch2, node50, exports_repository_cache };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./file-mutation-
|
|
3
|
+
} from "./file-mutation-s0xd9fk5.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin22,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint4 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin22 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin3 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint4).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin3 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint4, Plugin22, exports_tavily };
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service10,
|
|
13
|
+
node: () => node12
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service10 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service10.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node12 = makeGlobalNode({ service: Service10, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service10, node12, exports_update };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make20,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./file-mutation-
|
|
6
|
+
} from "./file-mutation-rhjbct0v.js";
|
|
7
7
|
import {
|
|
8
8
|
evaluate2
|
|
9
|
-
} from "./file-mutation-
|
|
9
|
+
} from "./file-mutation-831szrnr.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./file-mutation-
|
|
11
|
+
Service38,
|
|
12
|
+
node41
|
|
13
|
+
} from "./file-mutation-a0ngmh7v.js";
|
|
14
14
|
import {
|
|
15
15
|
namespace2,
|
|
16
|
-
|
|
17
|
-
} from "./file-mutation-
|
|
16
|
+
name14
|
|
17
|
+
} from "./file-mutation-395y8vmn.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -24,8 +24,8 @@ var exports_instructions2 = {};
|
|
|
24
24
|
__export(exports_instructions2, {
|
|
25
25
|
McpInstructions: () => exports_instructions2,
|
|
26
26
|
Service: () => Service28,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer13,
|
|
28
|
+
node: () => node31
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -63,11 +63,11 @@ var update = (previous, current) => {
|
|
|
63
63
|
|
|
64
64
|
class Service28 extends Context.Service()("@opencode/McpInstructions") {
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
const mcp = yield*
|
|
66
|
+
var layer13 = Layer.effect(Service28, Effect.gen(function* () {
|
|
67
|
+
const mcp = yield* Service38;
|
|
68
68
|
return Service28.of({
|
|
69
69
|
load: Effect.fn("McpInstructions.load")(function* (permissions) {
|
|
70
|
-
const source = (value) =>
|
|
70
|
+
const source = (value) => make20({
|
|
71
71
|
key: Key3.make("core/mcp-guidance"),
|
|
72
72
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
73
73
|
read: Effect.succeed(value),
|
|
@@ -86,7 +86,7 @@ var layer14 = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
86
86
|
const codemode = owned[0]?.codemode !== false;
|
|
87
87
|
if (codemode && !canExecute)
|
|
88
88
|
return [];
|
|
89
|
-
if (!owned.some((tool) => evaluate2(
|
|
89
|
+
if (!owned.some((tool) => evaluate2(name14(tool.server, tool.name), "*", permissions).effect !== "deny"))
|
|
90
90
|
return [];
|
|
91
91
|
return [
|
|
92
92
|
codemode ? { server: item.server, instructions: item.instructions } : { server: item.server, instructions: item.instructions, codemode: false }
|
|
@@ -96,6 +96,6 @@ var layer14 = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var node31 = makeLocationNode({ service: Service28, layer: layer13, deps: [node41] });
|
|
100
100
|
|
|
101
|
-
export { Service28,
|
|
101
|
+
export { Service28, layer13, node31, exports_instructions2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-mutation-
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./file-mutation-a5cb3rxh.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./file-mutation-rdw6cm16.js";
|
|
@@ -10,24 +10,24 @@ import {
|
|
|
10
10
|
} from "./file-mutation-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/command.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Command: () =>
|
|
16
|
-
Event: () =>
|
|
13
|
+
var exports_command4 = {};
|
|
14
|
+
__export(exports_command4, {
|
|
15
|
+
Command: () => exports_command4,
|
|
16
|
+
Event: () => Event8,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info9,
|
|
19
|
+
NotFoundError: () => NotFoundError5,
|
|
20
|
+
Service: () => Service46,
|
|
21
|
+
layer: () => layer20,
|
|
22
|
+
node: () => node48
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event8 } from "@opencode/schema/command";
|
|
28
|
+
var Info9 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError5 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,10 +39,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service46 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const bus = yield*
|
|
44
|
+
var layer20 = Layer.effect(Service46, Effect.gen(function* () {
|
|
45
|
+
const bus = yield* Service85;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
48
48
|
initial: () => new Map,
|
|
@@ -51,11 +51,11 @@ var layer24 = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info9.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service46.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,15 +66,15 @@ var layer24 = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError5({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
77
|
-
deps: [
|
|
74
|
+
var node48 = makeLocationNode({
|
|
75
|
+
service: Service46,
|
|
76
|
+
layer: layer20,
|
|
77
|
+
deps: [node89]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
80
80
|
if (error instanceof Error)
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info9, NotFoundError5, ExecutionError2, Service46, layer20, node48, exports_command4, Event8 };
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
var exports_service = {};
|
|
7
7
|
__export(exports_service, {
|
|
8
8
|
Plugin: () => exports_service,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service36,
|
|
10
10
|
awaitActivation: () => awaitActivation2
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class Service36 extends Context.Service()("@opencode/Plugin") {
|
|
15
15
|
}
|
|
16
|
-
var awaitActivation2 =
|
|
16
|
+
var awaitActivation2 = Service36.use((plugins) => plugins.awaitActivation);
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { Service36, awaitActivation2, exports_service };
|