@opencode/core 0.0.0-dev-533 → 0.0.0-dev-535
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 +67 -67
- package/dist/aisdk-native.js +74 -74
- package/dist/aisdk.js +79 -79
- package/dist/app.js +7 -7
- package/dist/artifact.js +205 -205
- package/dist/bus.js +60 -60
- package/dist/chunks/{app-xjbsd7zy.js → app-04whjz6n.js} +7 -7
- package/dist/chunks/{app-8skzerzh.js → app-0cm63a3m.js} +6 -6
- package/dist/chunks/{app-g2xv4c4k.js → app-0fvb9573.js} +18 -18
- package/dist/chunks/{app-gzvgqn5v.js → app-0g0m3z6r.js} +34 -34
- package/dist/chunks/{app-zcdgyvyy.js → app-0sxs0ahv.js} +20 -20
- package/dist/chunks/{app-4dkwhq0x.js → app-0sydnbwh.js} +10 -10
- package/dist/chunks/{app-48p0twde.js → app-0t903sfa.js} +19 -19
- package/dist/chunks/{app-8es3pha2.js → app-0y15sqga.js} +10 -10
- package/dist/chunks/{app-kqr2nxfm.js → app-0ykm6z6e.js} +7 -7
- package/dist/chunks/{app-0hm3620q.js → app-0ypwcab7.js} +20 -20
- package/dist/chunks/{app-yyn80yge.js → app-102hkecv.js} +18 -18
- package/dist/chunks/{app-vq7g5cgb.js → app-19by32j3.js} +32 -32
- package/dist/chunks/{app-8esgw3e4.js → app-1apm81n6.js} +17 -17
- package/dist/chunks/{app-gze38h3p.js → app-1ccdbfbm.js} +43 -43
- package/dist/chunks/{app-r96ere88.js → app-1e1dknnq.js} +3 -3
- package/dist/chunks/{app-becnq02w.js → app-1k4ep9vv.js} +65 -65
- package/dist/chunks/{app-6h8vcvjm.js → app-1z0pgt0q.js} +7 -7
- package/dist/chunks/{app-k46dd5bg.js → app-20pht57w.js} +3 -3
- package/dist/chunks/{app-adtfdgqn.js → app-2akjzwap.js} +172 -172
- package/dist/chunks/{app-gks4fcev.js → app-2ar23h6q.js} +21 -21
- package/dist/chunks/{app-rmeffpf9.js → app-2ejc4ws6.js} +9 -9
- package/dist/chunks/{app-jxaghtyn.js → app-2fphmk5s.js} +22 -22
- package/dist/chunks/{app-8tbv5t3x.js → app-2kcfn90y.js} +13 -13
- package/dist/chunks/{app-mf63ygpr.js → app-2kg89srt.js} +3 -3
- package/dist/chunks/{app-f568412b.js → app-2kv9862h.js} +6 -6
- package/dist/chunks/{app-b8yrdqmv.js → app-2z1fgw1a.js} +15 -15
- package/dist/chunks/{app-9kea9kdp.js → app-3ar77cfh.js} +8 -8
- package/dist/chunks/{app-pyc3gczw.js → app-3ay6yzp4.js} +3 -3
- package/dist/chunks/{app-7699c8n2.js → app-3k6qx9tw.js} +12 -12
- package/dist/chunks/{app-hp0r7qfy.js → app-3qf0ty7d.js} +32 -32
- package/dist/chunks/{app-06vty4ag.js → app-3rjt4x3n.js} +10 -10
- package/dist/chunks/{app-p5jqqejg.js → app-3vvvrw44.js} +7 -7
- package/dist/chunks/{app-tbp70m14.js → app-42nfgrgt.js} +28 -28
- package/dist/chunks/{app-beffzag1.js → app-49rfffkn.js} +3 -3
- package/dist/chunks/{app-169q198c.js → app-4brm2gf6.js} +10 -10
- package/dist/chunks/{app-8cg7mtm3.js → app-4d2dtj2f.js} +3 -3
- package/dist/chunks/{app-f152d69v.js → app-4hstt5c6.js} +7 -7
- package/dist/chunks/{app-2n0gzjy1.js → app-4pektwre.js} +5 -5
- package/dist/chunks/{app-9rma6r3d.js → app-4rarxpf7.js} +13 -13
- package/dist/chunks/{app-dfr4zkq4.js → app-4tkjgnd1.js} +18 -18
- package/dist/chunks/{app-x150ncgg.js → app-55g2q5p5.js} +1 -1
- package/dist/chunks/{app-qgnqczc7.js → app-5fts795d.js} +13 -13
- package/dist/chunks/{app-jrq59xfw.js → app-5fzqp67y.js} +6 -6
- package/dist/chunks/{app-2q7aaym5.js → app-5h1pqjv0.js} +10 -10
- package/dist/chunks/{app-wgepdrx8.js → app-5jhjzfke.js} +4 -4
- package/dist/chunks/{app-z8n5afnk.js → app-5w42mrth.js} +2 -2
- package/dist/chunks/{app-tb2mrvc9.js → app-62zd5tzk.js} +6 -6
- package/dist/chunks/{app-h13930ja.js → app-6qw7kx8x.js} +10 -10
- package/dist/chunks/{app-vva8v1sq.js → app-6xfwbecb.js} +5 -5
- package/dist/chunks/{app-czwy3yzx.js → app-6y2b864j.js} +6 -6
- package/dist/chunks/{app-e6n9ma6q.js → app-6y6y33bs.js} +1 -1
- package/dist/chunks/{app-0vmgx0b1.js → app-70230rnk.js} +15 -15
- package/dist/chunks/{app-mgtetj66.js → app-70mxs2ne.js} +22 -22
- package/dist/chunks/{app-1k8ay1ny.js → app-70pterc5.js} +4 -4
- package/dist/chunks/{app-dj4jbt3y.js → app-7283rze0.js} +10 -10
- package/dist/chunks/{app-8g6n6r2g.js → app-78ydxygr.js} +26 -26
- package/dist/chunks/{app-tep5r3z4.js → app-7ez97q7s.js} +16 -16
- package/dist/chunks/{app-cageb4n9.js → app-7ga3ckd2.js} +25 -25
- package/dist/chunks/{app-vn5z203d.js → app-7n24dshq.js} +4 -4
- package/dist/chunks/{app-zd97ezhm.js → app-7nhyzk3z.js} +31 -31
- package/dist/chunks/{app-weqgtcgy.js → app-7rkejn50.js} +25 -25
- package/dist/chunks/{app-q53z66dj.js → app-7vrybhtj.js} +15 -15
- package/dist/chunks/{app-v70a4ftn.js → app-7vvamr0d.js} +12 -12
- package/dist/chunks/{app-ae4ev18a.js → app-7ysxb1ac.js} +19 -19
- package/dist/chunks/{app-8g46d24t.js → app-81vmeerd.js} +28 -28
- package/dist/chunks/{app-5p9pzyf2.js → app-86p455we.js} +8 -8
- package/dist/chunks/{app-h9hc66h4.js → app-8bjrjs1n.js} +3 -3
- package/dist/chunks/{app-93xmyh8q.js → app-8hfctyyf.js} +6 -6
- package/dist/chunks/{app-qze16xt8.js → app-8hm264az.js} +27 -27
- package/dist/chunks/{app-c48qafqz.js → app-8jvwtavp.js} +10 -10
- package/dist/chunks/{app-d3gfwtm4.js → app-8msqj5xh.js} +25 -25
- package/dist/chunks/{app-yvynh0g6.js → app-8n0mnj53.js} +13 -13
- package/dist/chunks/{app-4redp3t7.js → app-8r437q1c.js} +10 -10
- package/dist/chunks/{app-pjms48w8.js → app-8vnnvrdh.js} +5 -5
- package/dist/chunks/{app-yd5ac8hs.js → app-8w877cjn.js} +15 -15
- package/dist/chunks/app-8xy5czmr.js +26 -0
- package/dist/chunks/{app-3xcdf921.js → app-8zkx8257.js} +1 -1
- package/dist/chunks/{app-yaq6emrw.js → app-9543gnfy.js} +36 -36
- package/dist/chunks/{app-jbwmawta.js → app-97rgft6n.js} +9 -9
- package/dist/chunks/{app-kdmzdg5q.js → app-98xdtdx3.js} +10 -10
- package/dist/chunks/{app-hwcc1nj5.js → app-9hwp9hha.js} +1 -1
- package/dist/chunks/{app-w0evfggq.js → app-9jcwpdmg.js} +19 -19
- package/dist/chunks/{app-jv5ccajn.js → app-9zwexsxs.js} +3 -3
- package/dist/chunks/{app-s0t3mqd4.js → app-a32c5rbn.js} +30 -30
- package/dist/chunks/{app-wx5p54wp.js → app-a75cs2bx.js} +17 -17
- package/dist/chunks/{app-mex5dxtg.js → app-adgt61e4.js} +1 -1
- package/dist/chunks/{app-071xepzr.js → app-aqh131q4.js} +5 -5
- package/dist/chunks/{app-rj7jtxy8.js → app-atz1w742.js} +1 -1
- package/dist/chunks/{app-wn0kmnbv.js → app-b3dj5ck4.js} +4 -4
- package/dist/chunks/{app-2hzhdr8n.js → app-b3mjnz5r.js} +52 -52
- package/dist/chunks/{app-3yaf1m62.js → app-b4k47k2s.js} +3 -3
- package/dist/chunks/{app-my8asq5t.js → app-b7r9xgaf.js} +13 -13
- package/dist/chunks/{app-4ebhcamw.js → app-be0z2gw1.js} +7 -7
- package/dist/chunks/{app-9tybept6.js → app-bf3sz844.js} +8 -8
- package/dist/chunks/{app-s8qtxmzm.js → app-bfmm6xpm.js} +3 -3
- package/dist/chunks/{app-0vhpcja6.js → app-bgbk73tx.js} +37 -37
- package/dist/chunks/{app-yrhp02xd.js → app-bn1k3pn9.js} +25 -25
- package/dist/chunks/{app-nsf78apk.js → app-brnz1phy.js} +7 -7
- package/dist/chunks/{app-xcxgyafb.js → app-bt05df1g.js} +24 -24
- package/dist/chunks/{app-rza8kqzc.js → app-bwqmm0q7.js} +3 -3
- package/dist/chunks/{app-b4bt5gam.js → app-c1vhr2fd.js} +20 -20
- package/dist/chunks/{app-tjxs9v8v.js → app-c4htd4p1.js} +16 -16
- package/dist/chunks/{app-xmx7xj34.js → app-c6x7d2ts.js} +3 -3
- package/dist/chunks/{app-w52z0eac.js → app-c7txahyk.js} +29 -29
- package/dist/chunks/{app-fwrnbwjt.js → app-ca3eqs78.js} +8 -8
- package/dist/chunks/{app-4bwthz3m.js → app-cg3fcpn4.js} +5 -5
- package/dist/chunks/{app-cfjcx576.js → app-ch4wgb30.js} +3 -3
- package/dist/chunks/{app-r6v5d5gw.js → app-cj1hhp9n.js} +15 -15
- package/dist/chunks/{app-77sxxbp4.js → app-cp56srzq.js} +84 -84
- package/dist/chunks/{app-73pbse2v.js → app-cr2aqxhy.js} +2 -2
- package/dist/chunks/{app-gj6dq5y6.js → app-cws484wx.js} +16 -16
- package/dist/chunks/{app-mkvd73jg.js → app-cyeeys1d.js} +19 -19
- package/dist/chunks/{app-0djtmv4b.js → app-d07xvmxs.js} +18 -18
- package/dist/chunks/{app-4ygb74tw.js → app-d390zwf3.js} +6 -6
- package/dist/chunks/{app-w2c7mkxr.js → app-d6qqy0kp.js} +19 -19
- package/dist/chunks/{app-rc4n4342.js → app-d7zscc40.js} +14 -14
- package/dist/chunks/{app-4kzsaxfv.js → app-d9jb52kh.js} +31 -31
- package/dist/chunks/{app-0whjz4pc.js → app-dby55q07.js} +31 -31
- package/dist/chunks/{app-7tpyp9vw.js → app-ddvn7d3w.js} +7 -7
- package/dist/chunks/{app-cjfw41j6.js → app-df9ht006.js} +3 -3
- package/dist/chunks/{app-xxqzzn4e.js → app-dnv2jr33.js} +11 -11
- package/dist/chunks/{app-qk716t33.js → app-drvw4phj.js} +43 -43
- package/dist/chunks/{app-gbpy8919.js → app-dsavrejy.js} +1 -1
- package/dist/chunks/{app-428pgh8a.js → app-dvgrwqdr.js} +29 -29
- package/dist/chunks/{app-ccna5efk.js → app-dvzb6bhz.js} +28 -28
- package/dist/chunks/{app-2ar9wm5b.js → app-e0g7avb1.js} +33 -33
- package/dist/chunks/{app-av3nfg5h.js → app-e3gda57p.js} +12 -12
- package/dist/chunks/{app-ahbhp2ec.js → app-e641zj5b.js} +10 -10
- package/dist/chunks/{app-99f43fvk.js → app-ea6g4p7p.js} +7 -7
- package/dist/chunks/{app-jmpm2y7z.js → app-ejjzey60.js} +14 -14
- package/dist/chunks/{app-hh9z9kk8.js → app-erdqt2z2.js} +6 -6
- package/dist/chunks/{app-vccbeb40.js → app-eyk0726g.js} +44 -44
- package/dist/chunks/{app-ya33m8dr.js → app-fe230j03.js} +11 -11
- package/dist/chunks/{app-6wz8nwr9.js → app-ff0db4kk.js} +10 -10
- package/dist/chunks/{app-5ty7kmb9.js → app-fpdrc9jq.js} +17 -17
- package/dist/chunks/{app-4fy04zw8.js → app-frgs4mm6.js} +10 -10
- package/dist/chunks/{app-8sj943nq.js → app-g2n20eww.js} +5 -5
- package/dist/chunks/{app-wnvqrhn4.js → app-g3p1t9vz.js} +79 -79
- package/dist/chunks/{app-p9x26950.js → app-g3wj12x4.js} +7 -7
- package/dist/chunks/{app-fs1yyne5.js → app-gbr34mwp.js} +41 -41
- package/dist/chunks/{app-yv4wm2m5.js → app-gm1mpjtv.js} +4 -4
- package/dist/chunks/{app-s2z7me2g.js → app-grv4183s.js} +8 -8
- package/dist/chunks/{app-ca0nsfrc.js → app-gykqfep1.js} +38 -38
- package/dist/chunks/{app-ygeqj5xt.js → app-gzvybjsy.js} +9 -9
- package/dist/chunks/{app-cxn1zqes.js → app-h1phpm51.js} +13 -13
- package/dist/chunks/{app-3hxn8zvt.js → app-h230aekk.js} +17 -17
- package/dist/chunks/{app-ry4q0rgv.js → app-h2kz1wwy.js} +29 -29
- package/dist/chunks/{app-8v5mxf6a.js → app-h5exk3wg.js} +30 -30
- package/dist/chunks/{app-w0wjeem8.js → app-h8q1g1me.js} +2 -2
- package/dist/chunks/{app-3qgwywyc.js → app-hkf8spj2.js} +6 -6
- package/dist/chunks/{app-qwqahdfg.js → app-hm91xa0c.js} +18 -18
- package/dist/chunks/{app-mean7acv.js → app-hsx2h283.js} +11 -11
- package/dist/chunks/{app-exwhc5hz.js → app-hxen89em.js} +7 -7
- package/dist/chunks/{app-knx8k99d.js → app-j2zb0azv.js} +13 -13
- package/dist/chunks/{app-5zpqhmp2.js → app-ja2hdmbx.js} +4 -4
- package/dist/chunks/{app-7zfjnsm1.js → app-jcnvmaww.js} +1 -1
- package/dist/chunks/{app-f698gxgx.js → app-jrjjzcah.js} +4 -4
- package/dist/chunks/{app-r0k8y559.js → app-k353tb7m.js} +35 -35
- package/dist/chunks/{app-2dh93vah.js → app-k5jykw5m.js} +8 -8
- package/dist/chunks/{app-k4vdf3hn.js → app-k64p22ea.js} +1 -1
- package/dist/chunks/{app-415jqnng.js → app-k6d3thxk.js} +17 -17
- package/dist/chunks/{app-dcsm6amq.js → app-k85f4n8y.js} +4 -4
- package/dist/chunks/{app-v39rthcz.js → app-kb2zgvc1.js} +8 -8
- package/dist/chunks/{app-f36f6awb.js → app-kd6k99f7.js} +13 -13
- package/dist/chunks/{app-ap6cz3e4.js → app-kn9zvzdd.js} +25 -25
- package/dist/chunks/{app-9ydsfh5k.js → app-kpn50t51.js} +13 -13
- package/dist/chunks/{app-5v3drhbv.js → app-mg0rtydx.js} +5 -5
- package/dist/chunks/{app-krarb4xw.js → app-mgz81j2y.js} +22 -22
- package/dist/chunks/{app-j89azhq6.js → app-mqje0md7.js} +5 -5
- package/dist/chunks/{app-1v2g13eq.js → app-msd2a3qm.js} +1 -1
- package/dist/chunks/{app-s320htan.js → app-mtf4xfdw.js} +7 -7
- package/dist/chunks/{app-mm9ydekk.js → app-mvj007a9.js} +52 -52
- package/dist/chunks/{app-xezxa014.js → app-mx98cjbb.js} +10 -10
- package/dist/chunks/{app-f2nzj6et.js → app-mz3s4az1.js} +7 -7
- package/dist/chunks/{app-8cgan64h.js → app-n38yxt4x.js} +11 -11
- package/dist/chunks/{app-4v29yf8j.js → app-n40kd4sr.js} +13 -13
- package/dist/chunks/{app-h9j1355w.js → app-n8wacb9q.js} +18 -18
- package/dist/chunks/{app-pvb0wt0x.js → app-ne20cfjw.js} +5 -5
- package/dist/chunks/{app-94kcbdre.js → app-nhxmfrj0.js} +3 -3
- package/dist/chunks/{app-peqnwnqb.js → app-nkry3zgq.js} +30 -30
- package/dist/chunks/{app-d7zr3k29.js → app-nrjeyzms.js} +159 -159
- package/dist/chunks/{app-15gyfapn.js → app-nrsk0200.js} +1 -1
- package/dist/chunks/{app-0wxqvfmz.js → app-nx7twb95.js} +13 -13
- package/dist/chunks/{app-2dkjcnxp.js → app-p5vbbmsv.js} +4 -4
- package/dist/chunks/{app-nsp0vp68.js → app-pap1h8b3.js} +9 -9
- package/dist/chunks/{app-6wqybc29.js → app-pasr5s42.js} +30 -30
- package/dist/chunks/{app-023tr5s6.js → app-prf7c0f4.js} +6 -6
- package/dist/chunks/{app-m5a0fc4t.js → app-q4tbkvb5.js} +9 -9
- package/dist/chunks/{app-jhwp234h.js → app-q65mdntm.js} +3 -3
- package/dist/chunks/{app-dfwwgke2.js → app-q6ctshyr.js} +12 -12
- package/dist/chunks/{app-zpqsxwba.js → app-q6rv9k60.js} +6 -6
- package/dist/chunks/{app-8jzdtxe1.js → app-q74804nd.js} +7 -7
- package/dist/chunks/{app-zq563afj.js → app-qb9atvh8.js} +13 -13
- package/dist/chunks/{app-f8s27sep.js → app-qesfpy69.js} +5 -5
- package/dist/chunks/{app-e8yqp6nf.js → app-qhwjmhww.js} +15 -15
- package/dist/chunks/{app-g6c5vbsh.js → app-qjhe7n4a.js} +1 -1
- package/dist/chunks/{app-rmv7fhs4.js → app-qnqasnye.js} +3 -3
- package/dist/chunks/{app-77apcsw3.js → app-qv932755.js} +7 -7
- package/dist/chunks/{app-z88rdk3t.js → app-qvtnw8rj.js} +8 -8
- package/dist/chunks/{app-bapm1zye.js → app-qzp3tz88.js} +1 -1
- package/dist/chunks/{app-xzjvh1r0.js → app-r0j4kmq9.js} +2 -2
- package/dist/chunks/{app-pnak1v5v.js → app-r0ndwm6n.js} +8 -8
- package/dist/chunks/{app-4f25tdd0.js → app-r542h3bh.js} +4 -4
- package/dist/chunks/{app-41kfwpax.js → app-r77927cf.js} +15 -15
- package/dist/chunks/{app-axbznw5v.js → app-rh664r3j.js} +20 -20
- package/dist/chunks/{app-93jzr7p3.js → app-rkspr0fm.js} +21 -21
- package/dist/chunks/{app-hwjex0zk.js → app-rwcc01tt.js} +3 -3
- package/dist/chunks/{app-ks3bka04.js → app-rx1196nr.js} +6 -6
- package/dist/chunks/{app-4cnwvq4h.js → app-rxxbhnha.js} +5 -5
- package/dist/chunks/{app-6861a8w4.js → app-seb996h4.js} +4 -4
- package/dist/chunks/{app-z080rjh6.js → app-sf9y72b7.js} +3 -3
- package/dist/chunks/{app-933ag3kz.js → app-spsnvrer.js} +340 -340
- package/dist/chunks/{app-ht03y230.js → app-sq9brptb.js} +20 -20
- package/dist/chunks/{app-4j2st2tz.js → app-t52wqe1d.js} +21 -21
- package/dist/chunks/{app-zbtxqjkv.js → app-ta4cyzw3.js} +1 -1
- package/dist/chunks/{app-gxs71cxp.js → app-tg7s7b5t.js} +3 -3
- package/dist/chunks/{app-n84nsxw0.js → app-thje1pb5.js} +14 -14
- package/dist/chunks/{app-e555njzm.js → app-tjrdxz06.js} +14 -14
- package/dist/chunks/{app-sepvwm40.js → app-tzz6b5w9.js} +24 -24
- package/dist/chunks/{app-krsy2pbe.js → app-v0qy9jrx.js} +21 -21
- package/dist/chunks/{app-zty0rhxm.js → app-v5qjwjn4.js} +4 -4
- package/dist/chunks/{app-3q0n77m9.js → app-vep1cp0k.js} +7 -7
- package/dist/chunks/{app-sbz71ybr.js → app-vg0erq9k.js} +2 -2
- package/dist/chunks/{app-ck49668h.js → app-vhd00v78.js} +10 -10
- package/dist/chunks/{app-3ze6avpc.js → app-vqqg7mky.js} +16 -16
- package/dist/chunks/{app-px7qpgcn.js → app-vt2d6wap.js} +3 -3
- package/dist/chunks/{app-9jnmndgv.js → app-vzyjc182.js} +4 -4
- package/dist/chunks/{app-40za9wsf.js → app-w2eysc6j.js} +7 -7
- package/dist/chunks/{app-dj2p6exq.js → app-w335jgkb.js} +3 -3
- package/dist/chunks/{app-h0rg6s60.js → app-w76xjer3.js} +3 -3
- package/dist/chunks/{app-jzkzesp4.js → app-w7bpp972.js} +12 -12
- package/dist/chunks/{app-rpz083xr.js → app-w9cgn27r.js} +2 -2
- package/dist/chunks/{app-e9x9f5s4.js → app-wb0nc97n.js} +9 -9
- package/dist/chunks/{app-qtf35215.js → app-weqc7sb9.js} +3 -3
- package/dist/chunks/{app-qsdghx1p.js → app-wfdx5ztx.js} +3 -3
- package/dist/chunks/{app-dqee6hk6.js → app-wkw2nc14.js} +10 -10
- package/dist/chunks/{app-w687dnns.js → app-wr3re1en.js} +3 -3
- package/dist/chunks/{app-f081805b.js → app-wvdda5g9.js} +33 -33
- package/dist/chunks/{app-dgn0z867.js → app-x3sre7d0.js} +12 -12
- package/dist/chunks/{app-scgrs5gk.js → app-x6nf6007.js} +5 -5
- package/dist/chunks/{app-9a1bg1e0.js → app-xawr44ws.js} +6 -6
- package/dist/chunks/{app-738setp6.js → app-xb3aa8vx.js} +8 -8
- package/dist/chunks/{app-rs0w3rej.js → app-xdhra0hk.js} +1 -1
- package/dist/chunks/{app-gvjnjcdg.js → app-xf5gr4wh.js} +28 -28
- package/dist/chunks/{app-dhs6ajsf.js → app-xhtt5hdf.js} +31 -31
- package/dist/chunks/{app-2v28484r.js → app-xsyz7z5y.js} +7 -7
- package/dist/chunks/{app-68yk0sbf.js → app-xvf68myt.js} +12 -12
- package/dist/chunks/{app-xjr6c8m4.js → app-xxschbft.js} +3 -3
- package/dist/chunks/{app-znjfpv5m.js → app-xz07m27x.js} +7 -7
- package/dist/chunks/{app-3sgnb8ye.js → app-y64vbv9r.js} +10 -10
- package/dist/chunks/{app-9rgr5dz2.js → app-yfmbdz01.js} +1 -1
- package/dist/chunks/{app-8xz27cp9.js → app-yts2a8qm.js} +3 -3
- package/dist/chunks/{app-351b30z6.js → app-yx186a0m.js} +8 -8
- package/dist/chunks/{app-h763rggj.js → app-yyggqxat.js} +4 -4
- package/dist/chunks/{app-w5qm3j8h.js → app-z2g7e1my.js} +5 -5
- package/dist/chunks/{app-5waxe0zg.js → app-z3xf6ba0.js} +6 -6
- package/dist/chunks/{app-pkqtsexv.js → app-z7ffkdqt.js} +17 -17
- package/dist/chunks/{app-s7d9mxy2.js → app-zrt85y3r.js} +8 -8
- package/dist/chunks/{app-57pzxzjx.js → app-zs8j2h5y.js} +7 -7
- package/dist/chunks/{app-29hw4ss4.js → app-zsgmj270.js} +5 -5
- package/dist/chunks/{app-yc9fq4e8.js → app-zw6d6ftc.js} +3 -3
- package/dist/chunks/{app-87mgrrkc.js → app-zy5pfpj2.js} +19 -19
- package/dist/chunks/{app-963hk181.js → app-zyfhsknv.js} +7 -7
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +110 -110
- package/dist/codemode/instructions.js +6 -6
- package/dist/codemode/tool.js +115 -115
- package/dist/command.js +73 -73
- package/dist/config/discovery.js +68 -68
- package/dist/config/integration.js +5 -5
- package/dist/config/normalize.js +83 -83
- package/dist/config/plugin/agent.js +101 -101
- package/dist/config/plugin/command.js +189 -189
- package/dist/config/plugin/compaction.js +130 -130
- package/dist/config/plugin/compatibility.js +113 -113
- package/dist/config/plugin/formatter.js +100 -100
- package/dist/config/plugin/image.js +97 -97
- package/dist/config/plugin/instruction.js +100 -100
- package/dist/config/plugin/location-watcher.js +101 -101
- package/dist/config/plugin/mcp.js +110 -110
- package/dist/config/plugin/policy.js +99 -99
- package/dist/config/plugin/provider.js +99 -99
- package/dist/config/plugin/reference.js +100 -100
- package/dist/config/plugin/shell.js +101 -101
- package/dist/config/plugin/skill-file.js +110 -110
- package/dist/config/plugin/skill.js +112 -112
- package/dist/config/plugin/snapshot.js +99 -99
- package/dist/config/plugin/source.js +102 -102
- package/dist/config/plugin/tool-output.js +100 -100
- package/dist/config/plugin/websearch.js +100 -100
- package/dist/config/plugin/worktree.js +100 -100
- package/dist/config.js +95 -95
- package/dist/credential.js +72 -72
- package/dist/database/database.js +58 -58
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- 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 +10 -10
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +49 -49
- package/dist/database/v1-migration.bun.js +21 -21
- package/dist/effect/app-node-builder.js +274 -274
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +75 -75
- package/dist/environment/index.js +79 -79
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +122 -122
- package/dist/file-mutation.js +78 -78
- package/dist/file-write.js +125 -125
- package/dist/filesystem/file-watch.js +10 -10
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +202 -202
- package/dist/filesystem/search.js +81 -81
- package/dist/filesystem.js +86 -86
- package/dist/form.js +71 -71
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +68 -68
- package/dist/generate.js +82 -82
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +84 -84
- package/dist/github-copilot/responses/openai-responses-language-model.js +8 -8
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +363 -363
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +73 -73
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +79 -79
- package/dist/job.js +66 -66
- package/dist/kv.js +63 -63
- package/dist/location-activity.js +73 -73
- package/dist/location-lifecycle.js +115 -115
- package/dist/location-service-map.js +72 -72
- package/dist/location-services.js +362 -362
- package/dist/location.js +75 -75
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/connection.js +74 -74
- package/dist/mcp/index.js +87 -87
- package/dist/mcp/instructions.js +147 -147
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +74 -74
- package/dist/modal/models.js +84 -84
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +75 -75
- package/dist/models-dev.js +86 -86
- package/dist/permission/saved.js +69 -69
- package/dist/permission.js +118 -118
- package/dist/persistent-pty/index.js +68 -68
- package/dist/persistent-pty.js +62 -62
- package/dist/plugin/agent.js +66 -66
- package/dist/plugin/command.js +86 -86
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +193 -193
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +341 -341
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +81 -81
- package/dist/plugin/module.js +98 -98
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +111 -111
- package/dist/plugin/provider/amazon-bedrock.js +78 -78
- package/dist/plugin/provider/azure.js +103 -103
- package/dist/plugin/provider/chatgpt.js +101 -101
- package/dist/plugin/provider/claude-agent/aisdk.js +87 -87
- package/dist/plugin/provider/claude-agent/claude/query-options.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/session.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/sessions.js +9 -9
- package/dist/plugin/provider/claude-agent/claude/status.js +6 -6
- package/dist/plugin/provider/claude-agent/index.js +109 -109
- package/dist/plugin/provider/claude-agent/instructions.js +85 -85
- package/dist/plugin/provider/claude-agent/integration.js +84 -84
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +5 -5
- package/dist/plugin/provider/claude-agent/provider.js +81 -81
- package/dist/plugin/provider/claude-agent/session.js +82 -82
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +100 -100
- package/dist/plugin/provider/cloudflare-workers-ai.js +100 -100
- package/dist/plugin/provider/configured.js +96 -96
- package/dist/plugin/provider/credential-settings.js +66 -66
- package/dist/plugin/provider/digitalocean.js +80 -80
- package/dist/plugin/provider/github-copilot.js +82 -82
- package/dist/plugin/provider/gitlab.js +80 -80
- package/dist/plugin/provider/google-vertex.js +97 -97
- package/dist/plugin/provider/llmgateway.js +66 -66
- package/dist/plugin/provider/lmstudio.js +107 -107
- package/dist/plugin/provider/local.js +104 -104
- package/dist/plugin/provider/modal.js +80 -80
- package/dist/plugin/provider/ollama.js +107 -107
- package/dist/plugin/provider/openai-context-caps.js +78 -78
- package/dist/plugin/provider/openai.js +103 -103
- package/dist/plugin/provider/opencode.js +119 -119
- package/dist/plugin/provider/openrouter.js +76 -76
- package/dist/plugin/provider/poe.js +66 -66
- package/dist/plugin/provider/refresh.js +65 -65
- package/dist/plugin/provider/sap-ai-core.js +75 -75
- package/dist/plugin/provider/snowflake-cortex.js +100 -100
- package/dist/plugin/provider/vllm.js +105 -105
- package/dist/plugin/provider/xai.js +76 -76
- package/dist/plugin/provider.js +185 -185
- package/dist/plugin/sdk.js +67 -67
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +114 -114
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +71 -71
- package/dist/plugin/vcs/hg.js +71 -71
- package/dist/plugin/verbosity.js +78 -78
- package/dist/plugin/warming.js +100 -100
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/provider.js +3 -3
- package/dist/plugin/websearch/tavily.js +7 -7
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +206 -206
- package/dist/project/schema.js +7 -7
- package/dist/project.js +76 -76
- package/dist/provider.js +78 -78
- package/dist/pty.js +85 -85
- package/dist/reference/instructions.js +75 -75
- package/dist/reference.js +73 -73
- package/dist/repository-cache.js +68 -68
- package/dist/ripgrep.js +80 -80
- package/dist/rpc.js +72 -72
- package/dist/schedule/check.js +197 -197
- package/dist/schedule.js +204 -204
- package/dist/session/blob.js +96 -96
- package/dist/session/command.js +64 -64
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +160 -160
- package/dist/session/diff.js +71 -71
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +159 -159
- package/dist/session/history.js +102 -102
- package/dist/session/inbox.js +111 -111
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +66 -66
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +109 -109
- package/dist/session/model-request.js +129 -129
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +128 -128
- package/dist/session/projector.js +107 -107
- package/dist/session/prompt.js +113 -113
- package/dist/session/revert.js +105 -105
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +202 -202
- package/dist/session/runner/model.js +84 -84
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +103 -103
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +145 -145
- package/dist/session/shell.js +111 -111
- package/dist/session/skill.js +112 -112
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +108 -108
- package/dist/session/subagent-job.js +187 -187
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +158 -158
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +120 -120
- package/dist/session/usage.js +3 -3
- package/dist/session.js +193 -193
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +114 -114
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +116 -116
- package/dist/skill.js +119 -119
- package/dist/snapshot.js +76 -76
- package/dist/tool/mcp.js +144 -144
- package/dist/tool/plugin/artifact.js +186 -186
- package/dist/tool/plugin/edit.js +130 -130
- package/dist/tool/plugin/glob.js +135 -135
- package/dist/tool/plugin/grep.js +133 -133
- package/dist/tool/plugin/image-generate.js +196 -196
- package/dist/tool/plugin/mcp-resource.js +129 -129
- package/dist/tool/plugin/opencode.js +126 -126
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +111 -111
- package/dist/tool/plugin/read.js +133 -133
- package/dist/tool/plugin/schedule.js +201 -201
- package/dist/tool/plugin/shell.js +189 -189
- package/dist/tool/plugin/skill.js +118 -118
- package/dist/tool/plugin/subagent.js +194 -194
- package/dist/tool/plugin/todo.js +117 -117
- package/dist/tool/plugin/webfetch.js +116 -116
- package/dist/tool/plugin/websearch.js +120 -120
- package/dist/tool/plugin/write.js +132 -132
- package/dist/tool/read-filesystem.js +82 -82
- package/dist/tool/search.js +77 -77
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +125 -125
- package/dist/usage-limits.js +76 -76
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +76 -76
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +76 -76
- package/dist/vcs.js +74 -74
- package/dist/voice.js +72 -72
- package/dist/websearch.js +79 -79
- package/dist/wellknown/plugin.js +66 -66
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +72 -72
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +73 -73
- package/dist/worktree.js +83 -83
- package/package.json +8 -8
- package/dist/chunks/app-2e4hd1ta.js +0 -26
- /package/dist/chunks/{app-j9ntjbjw.js → app-308km6gf.js} +0 -0
- /package/dist/chunks/{app-xkm85qpg.js → app-mqhk7c7q.js} +0 -0
- /package/dist/chunks/{app-jb6bh10s.js → app-w1x0pj73.js} +0 -0
- /package/dist/chunks/{app-pqh38k57.js → app-yhekzpvh.js} +0 -0
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./app-4pyp9zr9.js";
|
|
4
4
|
import {
|
|
5
5
|
invocation2,
|
|
6
|
-
|
|
7
|
-
} from "./app-
|
|
6
|
+
Service68
|
|
7
|
+
} from "./app-1ccdbfbm.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_MARKDOWN_BYTES2,
|
|
10
10
|
convertHTMLToMarkdown2
|
|
@@ -22,12 +22,12 @@ __export(exports_webfetch, {
|
|
|
22
22
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
23
23
|
Input: () => Input4,
|
|
24
24
|
MAX_REDIRECTS: () => MAX_REDIRECTS2,
|
|
25
|
-
MAX_RESPONSE_BYTES: () =>
|
|
25
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
26
26
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
27
|
-
Plugin: () =>
|
|
27
|
+
Plugin: () => Plugin6,
|
|
28
28
|
WebFetchTool: () => exports_webfetch,
|
|
29
29
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
30
|
-
description: () =>
|
|
30
|
+
description: () => description2,
|
|
31
31
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
32
32
|
name: () => name4
|
|
33
33
|
});
|
|
@@ -36,10 +36,10 @@ import { Duration, Effect, Schema } from "effect";
|
|
|
36
36
|
import { FetchHttpClient, HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
37
37
|
import { Parser } from "htmlparser2";
|
|
38
38
|
var name4 = "webfetch";
|
|
39
|
-
var
|
|
39
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
40
40
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
41
41
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
42
|
-
var
|
|
42
|
+
var description2 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
43
43
|
|
|
44
44
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
45
45
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
@@ -104,7 +104,7 @@ var execute = (http, check, url, format, userAgent = openCodeUserAgent, redirect
|
|
|
104
104
|
return yield* execute(http, check, next, format, userAgent, redirects + 1);
|
|
105
105
|
});
|
|
106
106
|
}));
|
|
107
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
107
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
108
108
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
109
109
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
110
110
|
var convert = (content, contentType, format) => {
|
|
@@ -116,15 +116,15 @@ var convert = (content, contentType, format) => {
|
|
|
116
116
|
return extractTextFromHTML2(content);
|
|
117
117
|
return content;
|
|
118
118
|
};
|
|
119
|
-
var
|
|
119
|
+
var Plugin6 = {
|
|
120
120
|
id: "opencode.tool.webfetch",
|
|
121
121
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
122
122
|
const http = yield* HttpClient.HttpClient;
|
|
123
|
-
const permission = yield*
|
|
123
|
+
const permission = yield* Service68;
|
|
124
124
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
125
125
|
name: name4,
|
|
126
126
|
options: { codemode: false },
|
|
127
|
-
description:
|
|
127
|
+
description: description2,
|
|
128
128
|
input: Input4,
|
|
129
129
|
output: Output,
|
|
130
130
|
execute: (input, context) => Effect.gen(function* () {
|
|
@@ -199,4 +199,4 @@ function extractTextFromHTML2(html) {
|
|
|
199
199
|
parser.end();
|
|
200
200
|
return text.trim();
|
|
201
201
|
}
|
|
202
|
-
export { name4,
|
|
202
|
+
export { name4, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description2, Input4, MAX_REDIRECTS2, Plugin6, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service91,
|
|
3
3
|
node94
|
|
4
|
-
} from "./app-
|
|
4
|
+
} from "./app-w9cgn27r.js";
|
|
5
5
|
import {
|
|
6
6
|
reserveSequence2,
|
|
7
7
|
Service90,
|
|
8
8
|
node93
|
|
9
|
-
} from "./app-
|
|
9
|
+
} from "./app-5w42mrth.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionEvent2
|
|
12
12
|
} from "./app-ec1grn59.js";
|
|
@@ -40,26 +40,26 @@ import {
|
|
|
40
40
|
syncRefs2,
|
|
41
41
|
releaseFrom2,
|
|
42
42
|
releaseSession2
|
|
43
|
-
} from "./app-
|
|
43
|
+
} from "./app-k64p22ea.js";
|
|
44
44
|
import {
|
|
45
45
|
apply2,
|
|
46
46
|
initialize3,
|
|
47
47
|
advanceEpoch2,
|
|
48
48
|
rewind2
|
|
49
|
-
} from "./app-
|
|
49
|
+
} from "./app-yfmbdz01.js";
|
|
50
50
|
import {
|
|
51
51
|
withParts2,
|
|
52
52
|
decodeMessageRowSync2
|
|
53
|
-
} from "./app-
|
|
53
|
+
} from "./app-v5qjwjn4.js";
|
|
54
54
|
import {
|
|
55
55
|
projectAdmitted2,
|
|
56
56
|
projectDelivered2,
|
|
57
57
|
projectCancelled2,
|
|
58
58
|
projectDeliveryChanged2
|
|
59
|
-
} from "./app-
|
|
59
|
+
} from "./app-vqqg7mky.js";
|
|
60
60
|
import {
|
|
61
61
|
initialize2
|
|
62
|
-
} from "./app-
|
|
62
|
+
} from "./app-kd6k99f7.js";
|
|
63
63
|
import {
|
|
64
64
|
Slug2
|
|
65
65
|
} from "./app-gebd4c9n.js";
|
|
@@ -72,7 +72,7 @@ var exports_projector = {};
|
|
|
72
72
|
__export(exports_projector, {
|
|
73
73
|
SessionAlreadyProjected: () => SessionAlreadyProjected2,
|
|
74
74
|
SessionProjector: () => exports_projector,
|
|
75
|
-
node: () =>
|
|
75
|
+
node: () => node37
|
|
76
76
|
});
|
|
77
77
|
import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, or, sql } from "drizzle-orm";
|
|
78
78
|
import { DateTime, Effect, Layer, Schema, Stream } from "effect";
|
|
@@ -547,6 +547,6 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
547
547
|
return publishSessionUsage(db, bus, event.data.sessionID);
|
|
548
548
|
}), Effect.forkScoped({ startImmediately: true }));
|
|
549
549
|
}));
|
|
550
|
-
var
|
|
550
|
+
var node37 = makeGlobalNode({ name: "session-projector", layer, deps: [node93, node94] });
|
|
551
551
|
|
|
552
|
-
export { SessionAlreadyProjected2,
|
|
552
|
+
export { SessionAlreadyProjected2, node37, exports_projector };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
3
|
Service78
|
|
4
|
-
} from "./app-
|
|
4
|
+
} from "./app-0sxs0ahv.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
7
|
} from "./app-tvtps2q9.js";
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
When2,
|
|
16
16
|
NotFoundError2,
|
|
17
17
|
DisabledError2,
|
|
18
|
-
|
|
19
|
-
} from "./app-
|
|
18
|
+
Service11
|
|
19
|
+
} from "./app-8hm264az.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
22
|
} from "./app-9rqn6x4v.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
var exports_schedule = {};
|
|
26
26
|
__export(exports_schedule, {
|
|
27
27
|
IDInput: () => IDInput2,
|
|
28
|
-
Plugin: () =>
|
|
28
|
+
Plugin: () => Plugin5,
|
|
29
29
|
ScheduleTools: () => exports_schedule,
|
|
30
30
|
View: () => View2
|
|
31
31
|
});
|
|
@@ -62,11 +62,11 @@ var IDInput2 = Schema.Struct({
|
|
|
62
62
|
id: ID4.annotate({ description: "Schedule id from schedule_list." })
|
|
63
63
|
});
|
|
64
64
|
var RemoveOutput = Schema.Struct({ id: ID4, removed: Schema.Boolean });
|
|
65
|
-
var
|
|
65
|
+
var Plugin5 = {
|
|
66
66
|
id: "opencode.tool.schedule",
|
|
67
67
|
effect: Effect.fn("ScheduleTools.Plugin")(function* (ctx) {
|
|
68
68
|
const config = yield* Service78;
|
|
69
|
-
const schedules = yield*
|
|
69
|
+
const schedules = yield* Service11;
|
|
70
70
|
const loaded = yield* observe2(config, ctx.event, Effect.andThen(ctx.tool.reload(), ctx.command.reload()));
|
|
71
71
|
const enabled = () => latest2(loaded.entries, "experimental")?.schedules === true;
|
|
72
72
|
const allowed = (sessionID) => schedules.enabled(sessionID).pipe(Effect.flatMap((on) => on ? Effect.void : Effect.fail(new DisabledError2)));
|
|
@@ -198,4 +198,4 @@ function toView(info) {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export { View2, IDInput2,
|
|
201
|
+
export { View2, IDInput2, Plugin5, exports_schedule };
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Service81,
|
|
7
7
|
node84
|
|
8
|
-
} from "./app-
|
|
8
|
+
} from "./app-98xdtdx3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./app-
|
|
10
|
+
Service62,
|
|
11
|
+
node63
|
|
12
|
+
} from "./app-tzz6b5w9.js";
|
|
13
13
|
import {
|
|
14
14
|
retryOneShot2
|
|
15
15
|
} from "./app-wnhgecwx.js";
|
|
@@ -25,11 +25,11 @@ __export(exports_generate, {
|
|
|
25
25
|
ModelNotFoundError: () => ModelNotFoundError2,
|
|
26
26
|
ProviderFailure: () => ProviderFailure2,
|
|
27
27
|
ProviderRequestError: () => ProviderRequestError2,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service26,
|
|
29
29
|
UnavailableError: () => UnavailableError5,
|
|
30
30
|
UnsupportedModelError: () => UnsupportedModelError2,
|
|
31
31
|
layer: () => layer13,
|
|
32
|
-
node: () =>
|
|
32
|
+
node: () => node29
|
|
33
33
|
});
|
|
34
34
|
import { ai, DecisionClient, ImageClient, LLMClient, Media } from "@opencode/ai/effect";
|
|
35
35
|
import { Money } from "@opencode/schema/money";
|
|
@@ -81,11 +81,11 @@ class ProviderRequestError2 extends Schema.TaggedError()("Generate.ProviderReque
|
|
|
81
81
|
}) {
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
class
|
|
84
|
+
class Service26 extends Context.Service()("@opencode/Generate") {
|
|
85
85
|
}
|
|
86
|
-
var layer13 = Layer.effect(
|
|
86
|
+
var layer13 = Layer.effect(Service26, Effect.gen(function* () {
|
|
87
87
|
const llm = yield* LLMClient.Service;
|
|
88
|
-
const resolver = yield*
|
|
88
|
+
const resolver = yield* Service62;
|
|
89
89
|
const models = yield* Service81;
|
|
90
90
|
const executor = yield* RequestExecutor.Service;
|
|
91
91
|
const images = yield* ImageClient.Service;
|
|
@@ -163,7 +163,7 @@ var layer13 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
163
163
|
};
|
|
164
164
|
});
|
|
165
165
|
const credentials = (effect) => effect.pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError5({ message: "Generation credentials are unavailable" })));
|
|
166
|
-
return
|
|
166
|
+
return Service26.of({
|
|
167
167
|
text: (input) => credentials(runText(input)),
|
|
168
168
|
image: (input) => credentials(image(input)),
|
|
169
169
|
decisions: (input) => credentials(decisions(input))
|
|
@@ -215,10 +215,10 @@ function failureReason(tag, status) {
|
|
|
215
215
|
return "overloaded";
|
|
216
216
|
return "provider";
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
service:
|
|
218
|
+
var node29 = makeLocationNode({
|
|
219
|
+
service: Service26,
|
|
220
220
|
layer: layer13,
|
|
221
|
-
deps: [
|
|
221
|
+
deps: [node63, node84, llmClient2, requestExecutor2]
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
export { UnavailableError5, ModelNotFoundError2, UnsupportedModelError2, InvalidRequestError3, ProviderFailure2, ProviderRequestError2,
|
|
224
|
+
export { UnavailableError5, ModelNotFoundError2, UnsupportedModelError2, InvalidRequestError3, ProviderFailure2, ProviderRequestError2, Service26, layer13, node29, exports_generate };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./app-
|
|
2
|
+
Service68
|
|
3
|
+
} from "./app-1ccdbfbm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./app-
|
|
5
|
+
Service51
|
|
6
|
+
} from "./app-zw6d6ftc.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./app-9rqn6x4v.js";
|
|
@@ -27,8 +27,8 @@ var fetch = (input, init = {}) => Effect.gen(function* () {
|
|
|
27
27
|
if (parsed.protocol === "file:")
|
|
28
28
|
return yield* Effect.fail(new Error("fetch cannot be used for filesystem access."));
|
|
29
29
|
const url = parsed.href;
|
|
30
|
-
const execution = yield*
|
|
31
|
-
const permission = yield*
|
|
30
|
+
const execution = yield* Service51;
|
|
31
|
+
const permission = yield* Service68;
|
|
32
32
|
const source = { type: "tool", messageID: execution.messageID, id: execution.id };
|
|
33
33
|
yield* permission.assert({
|
|
34
34
|
action: "webfetch",
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-4d2dtj2f.js";
|
|
4
4
|
import {
|
|
5
5
|
Service90,
|
|
6
6
|
node93
|
|
7
|
-
} from "./app-
|
|
7
|
+
} from "./app-5w42mrth.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./app-
|
|
9
|
+
Event21,
|
|
10
|
+
Service89,
|
|
11
|
+
node92
|
|
12
|
+
} from "./app-8msqj5xh.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./app-
|
|
14
|
+
Service83,
|
|
15
|
+
node86
|
|
16
|
+
} from "./app-cws484wx.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./app-
|
|
18
|
+
Service76,
|
|
19
|
+
node77
|
|
20
|
+
} from "./app-fpdrc9jq.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./app-
|
|
22
|
+
ID21,
|
|
23
|
+
Service88,
|
|
24
|
+
node91
|
|
25
|
+
} from "./app-sq9brptb.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create4
|
|
29
29
|
} from "./app-40y6dtc2.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID20,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./app-
|
|
33
|
+
Service87,
|
|
34
|
+
node90
|
|
35
|
+
} from "./app-dvgrwqdr.js";
|
|
36
36
|
import {
|
|
37
37
|
make25
|
|
38
|
-
} from "./app-
|
|
38
|
+
} from "./app-df9ht006.js";
|
|
39
39
|
import {
|
|
40
40
|
__export
|
|
41
41
|
} from "./app-9rqn6x4v.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
var exports_mcp4 = {};
|
|
45
45
|
__export(exports_mcp4, {
|
|
46
46
|
Mcp: () => exports_mcp4,
|
|
47
|
-
NotFoundError: () =>
|
|
47
|
+
NotFoundError: () => NotFoundError6,
|
|
48
48
|
Options: () => Options4,
|
|
49
49
|
PromptsChanged: () => PromptsChanged2,
|
|
50
50
|
Resource: () => Resource2,
|
|
@@ -52,12 +52,12 @@ __export(exports_mcp4, {
|
|
|
52
52
|
ResourceContent: () => ResourceContent2,
|
|
53
53
|
ResourceTemplate: () => ResourceTemplate2,
|
|
54
54
|
ServerName: () => ServerName2,
|
|
55
|
-
Service: () =>
|
|
55
|
+
Service: () => Service44,
|
|
56
56
|
Status: () => Status3,
|
|
57
57
|
ToolCallError: () => ToolCallError2,
|
|
58
58
|
configured: () => configured4,
|
|
59
59
|
layer: () => layer18,
|
|
60
|
-
node: () =>
|
|
60
|
+
node: () => node48
|
|
61
61
|
});
|
|
62
62
|
import { Mcp } from "@opencode/schema/mcp";
|
|
63
63
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -75,7 +75,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
75
75
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
76
76
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
77
77
|
|
|
78
|
-
class
|
|
78
|
+
class NotFoundError6 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
79
79
|
server: ServerName2
|
|
80
80
|
}) {
|
|
81
81
|
get message() {
|
|
@@ -108,7 +108,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
108
108
|
var endpointLoads = makeUnsafe2();
|
|
109
109
|
var cloneConfig = (config) => structuredClone(config);
|
|
110
110
|
|
|
111
|
-
class
|
|
111
|
+
class Service44 extends Context.Service()("@opencode/MCP") {
|
|
112
112
|
}
|
|
113
113
|
var Options4 = Schema.Struct({
|
|
114
114
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -116,13 +116,13 @@ var Options4 = Schema.Struct({
|
|
|
116
116
|
version: Schema.String
|
|
117
117
|
}))
|
|
118
118
|
});
|
|
119
|
-
var layer18 = (options) => Layer.effect(
|
|
120
|
-
const location = yield*
|
|
121
|
-
const environment = yield*
|
|
119
|
+
var layer18 = (options) => Layer.effect(Service44, Effect.gen(function* () {
|
|
120
|
+
const location = yield* Service83;
|
|
121
|
+
const environment = yield* Service76;
|
|
122
122
|
const bus = yield* Service90;
|
|
123
|
-
const forms = yield*
|
|
124
|
-
const integration = yield*
|
|
125
|
-
const credentials = yield*
|
|
123
|
+
const forms = yield* Service88;
|
|
124
|
+
const integration = yield* Service87;
|
|
125
|
+
const credentials = yield* Service89;
|
|
126
126
|
const root = yield* Effect.scope;
|
|
127
127
|
const fork = yield* FiberSet.makeRuntime();
|
|
128
128
|
const servers = yield* Scope.fork(root, "parallel");
|
|
@@ -137,7 +137,7 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
137
137
|
return;
|
|
138
138
|
const remote = entry.config;
|
|
139
139
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
140
|
-
const integrationID =
|
|
140
|
+
const integrationID = ID20.make(suffix);
|
|
141
141
|
entry.integrationID = integrationID;
|
|
142
142
|
const methodID = MethodID2.make(suffix);
|
|
143
143
|
const scope = yield* Scope.fork(root);
|
|
@@ -152,7 +152,7 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
152
152
|
method: { id: methodID, type: "oauth", label: name },
|
|
153
153
|
authorize: () => Effect.gen(function* () {
|
|
154
154
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
155
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
155
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service89, credentials));
|
|
156
156
|
})
|
|
157
157
|
});
|
|
158
158
|
}).pipe(Scope.provide(scope));
|
|
@@ -160,7 +160,7 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
160
160
|
const requireServer = Effect.fnUntraced(function* (name) {
|
|
161
161
|
const entry = entries.get(name);
|
|
162
162
|
if (!entry)
|
|
163
|
-
return yield* new
|
|
163
|
+
return yield* new NotFoundError6({ server: name });
|
|
164
164
|
return entry;
|
|
165
165
|
});
|
|
166
166
|
const connected = Effect.fnUntraced(function* (name) {
|
|
@@ -172,12 +172,12 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
172
172
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
173
173
|
return;
|
|
174
174
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
175
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
175
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service89, credentials));
|
|
176
176
|
});
|
|
177
177
|
const elicitation = {
|
|
178
178
|
create: (input) => Effect.gen(function* () {
|
|
179
179
|
if (input.params.mode === "url") {
|
|
180
|
-
const formID =
|
|
180
|
+
const formID = ID21.create();
|
|
181
181
|
const elicitationID = input.params.elicitationId;
|
|
182
182
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
183
183
|
if (key)
|
|
@@ -370,7 +370,7 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
370
370
|
let closed = false;
|
|
371
371
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
372
372
|
closed = true;
|
|
373
|
-
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
373
|
+
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service76, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
|
|
374
374
|
const register = Effect.gen(function* () {
|
|
375
375
|
if (closed) {
|
|
376
376
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -443,7 +443,7 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
443
443
|
yield* entry.connection.start;
|
|
444
444
|
}).pipe(locks.withLock(name));
|
|
445
445
|
});
|
|
446
|
-
fork(bus.subscribe(
|
|
446
|
+
fork(bus.subscribe(Event21.Switched).pipe(Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
447
447
|
const state = create4({
|
|
448
448
|
name: "mcp",
|
|
449
449
|
initial: () => ({
|
|
@@ -469,7 +469,7 @@ var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
469
469
|
}),
|
|
470
470
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
471
471
|
});
|
|
472
|
-
return
|
|
472
|
+
return Service44.of({
|
|
473
473
|
transform: state.transform,
|
|
474
474
|
reload: state.reload,
|
|
475
475
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -603,12 +603,12 @@ function mergeCatalogs(catalogs) {
|
|
|
603
603
|
}
|
|
604
604
|
function configured4(options) {
|
|
605
605
|
return makeLocationNode({
|
|
606
|
-
service:
|
|
606
|
+
service: Service44,
|
|
607
607
|
layer: layer18(options),
|
|
608
|
-
deps: [
|
|
608
|
+
deps: [node86, node77, node93, node91, node90, node92]
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var node48 = configured4();
|
|
612
612
|
function toElicitationField(key, property, required) {
|
|
613
613
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
614
614
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -659,4 +659,4 @@ function toElicitationField(key, property, required) {
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
-
export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
662
|
+
export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError6, ToolCallError2, Service44, Options4, layer18, configured4, node48, exports_mcp4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make30,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-bfmm6xpm.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize3,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
} from "./app-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
17
|
+
var exports_instructions6 = {};
|
|
18
|
+
__export(exports_instructions6, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions6,
|
|
20
20
|
make: () => make24,
|
|
21
|
-
render: () =>
|
|
21
|
+
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
24
24
|
import { searchSignature, toolExpression } from "@opencode/codemode";
|
|
@@ -32,7 +32,7 @@ ${hasMoreTools ? `The catalog is partial. Before calling a tool that is not list
|
|
|
32
32
|
- ${searchSignature}` : "The catalog is complete. Do not guess tool names."}
|
|
33
33
|
|
|
34
34
|
## Code Mode tools (call only inside \`execute\`)`;
|
|
35
|
-
function
|
|
35
|
+
function render2(catalog) {
|
|
36
36
|
if (catalog.total === 0)
|
|
37
37
|
return "No Code Mode tools are currently available. Later Code Mode catalog updates may add or remove tools. Do not call `execute` unless there is at least one available Code Mode tool.";
|
|
38
38
|
const tools = catalog.namespaces.flatMap((namespace) => {
|
|
@@ -46,7 +46,7 @@ ${tools.join(`
|
|
|
46
46
|
function update3(previous, current) {
|
|
47
47
|
const replacement = `The Code Mode tool catalog has changed. This catalog supersedes the previous Code Mode tool catalog.
|
|
48
48
|
|
|
49
|
-
${
|
|
49
|
+
${render2(current)}`;
|
|
50
50
|
if (current.total === 0)
|
|
51
51
|
return replacement;
|
|
52
52
|
const previousComplete = previous.shown === previous.total;
|
|
@@ -113,16 +113,16 @@ var key = Key3.make("core/codemode");
|
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
114
|
var make24 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
|
-
return
|
|
116
|
+
return make30({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
120
120
|
render: {
|
|
121
|
-
initial:
|
|
121
|
+
initial: render2,
|
|
122
122
|
changed: update3,
|
|
123
123
|
removed: () => "Code Mode tools are no longer available. Do not use any previously listed Code Mode tools."
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { render2, update3, make24, exports_instructions6 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./app-
|
|
2
|
+
Ref4
|
|
3
|
+
} from "./app-cws484wx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./app-9rqn6x4v.js";
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service57,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node58,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service57 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service57, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node58 = LayerNode.unbound(Service57, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service57;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -42,10 +42,10 @@ function canonical3(ref) {
|
|
|
42
42
|
const flavor = process.platform === "win32" && !ref.directory.startsWith("/") ? path.win32 : path.posix;
|
|
43
43
|
const normalized = flavor.normalize(ref.directory);
|
|
44
44
|
const trailing = normalized.endsWith(flavor.sep) && normalized.length > flavor.parse(normalized).root.length;
|
|
45
|
-
return
|
|
45
|
+
return Ref4.make({
|
|
46
46
|
directory: AbsolutePath.make(trailing ? normalized.slice(0, -1) : normalized),
|
|
47
47
|
workspaceID: ref.workspaceID
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Service57, node58, reload2, canonical3, exports_location_service_map };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
makeLocalDriver2
|
|
6
6
|
} from "./app-cwrgdav8.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./app-
|
|
8
|
+
Service83,
|
|
9
|
+
node86
|
|
10
|
+
} from "./app-cws484wx.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./app-
|
|
12
|
+
Service77,
|
|
13
|
+
node78
|
|
14
|
+
} from "./app-bt05df1g.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./app-9rqn6x4v.js";
|
|
@@ -20,26 +20,26 @@ import {
|
|
|
20
20
|
var exports_environment3 = {};
|
|
21
21
|
__export(exports_environment3, {
|
|
22
22
|
EnvironmentService: () => exports_environment3,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service76,
|
|
24
|
+
node: () => node77
|
|
25
25
|
});
|
|
26
26
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
27
27
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import { ChildProcessSpawner } from "effect/process/ChildProcessSpawner";
|
|
30
|
-
class
|
|
30
|
+
class Service76 extends Context.Service()("@opencode/Environment") {
|
|
31
31
|
}
|
|
32
|
-
var layer = Layer.effect(
|
|
32
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
33
33
|
const spawner = yield* ChildProcessSpawner;
|
|
34
|
-
const location = yield*
|
|
35
|
-
const workspace = yield*
|
|
34
|
+
const location = yield* Service83;
|
|
35
|
+
const workspace = yield* Service77;
|
|
36
36
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
37
|
-
return
|
|
37
|
+
return Service76.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
40
|
-
service:
|
|
39
|
+
var node77 = makeLocationNode({
|
|
40
|
+
service: Service76,
|
|
41
41
|
layer,
|
|
42
|
-
deps: [CrossSpawnSpawner.node,
|
|
42
|
+
deps: [CrossSpawnSpawner.node, node86, node78]
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
export {
|
|
45
|
+
export { Service76, node77, exports_environment3 };
|