@opencode/core 0.0.0-dev-20852 → 0.0.0-dev-20854
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/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{vcs-xrpg47n6.js → snapshot-0996nyz8.js} +9 -9
- package/dist/chunks/{vcs-jrrjh5qh.js → snapshot-0hnj9qkb.js} +4 -4
- package/dist/chunks/{vcs-2k8khapm.js → snapshot-0jwsre1p.js} +5 -5
- package/dist/chunks/{vcs-n5cyx6pm.js → snapshot-0jzh9efz.js} +3 -3
- package/dist/chunks/{vcs-x01a3e41.js → snapshot-0nghcqs1.js} +9 -9
- package/dist/chunks/{vcs-bqk49rdk.js → snapshot-0sacbgq8.js} +11 -11
- package/dist/chunks/{vcs-0vbcp93d.js → snapshot-0vbcp93d.js} +2 -2
- package/dist/chunks/{vcs-vx3jgdek.js → snapshot-143qq2q9.js} +3 -3
- package/dist/chunks/{vcs-y76kf4sb.js → snapshot-1a5mtg6h.js} +28 -28
- package/dist/chunks/{vcs-rhraev7y.js → snapshot-1acjjqhc.js} +4 -4
- package/dist/chunks/{vcs-1b7t08e4.js → snapshot-1bwe1zv2.js} +6 -6
- package/dist/chunks/{vcs-psw5e8qw.js → snapshot-1f5hxzwj.js} +33 -33
- package/dist/chunks/{vcs-swn7sb9g.js → snapshot-1hx7m0gn.js} +25 -25
- package/dist/chunks/{vcs-rkprpv83.js → snapshot-1p07q0wb.js} +4 -4
- package/dist/chunks/{vcs-nztkk7wb.js → snapshot-1r73c9nv.js} +22 -22
- package/dist/chunks/{vcs-4dnfqdak.js → snapshot-1raercmk.js} +8 -8
- package/dist/chunks/{vcs-5dwrf02m.js → snapshot-2bpy8z58.js} +9 -9
- package/dist/chunks/{vcs-f8xes8ea.js → snapshot-2hn7av3m.js} +30 -30
- package/dist/chunks/{vcs-at1kfnmk.js → snapshot-2ktf0ed2.js} +8 -8
- package/dist/chunks/{vcs-r9vn4tjy.js → snapshot-2nbevc3z.js} +88 -88
- package/dist/chunks/{vcs-ekvengxv.js → snapshot-2pd7f3c1.js} +13 -13
- package/dist/chunks/{vcs-2vvh33eb.js → snapshot-2vvh33eb.js} +2 -2
- package/dist/chunks/{vcs-75v81xpy.js → snapshot-313rc44e.js} +19 -19
- package/dist/chunks/{vcs-d4k6vvjm.js → snapshot-31ymszjf.js} +1 -1
- package/dist/chunks/{vcs-1ma3nf4z.js → snapshot-323ga0xb.js} +3 -3
- package/dist/chunks/{vcs-3fc6dm20.js → snapshot-3fc6dm20.js} +1 -1
- package/dist/chunks/{vcs-74kk7wxm.js → snapshot-3fppgx15.js} +10 -10
- package/dist/chunks/{vcs-4e8w5bh1.js → snapshot-3h72pgqc.js} +41 -41
- package/dist/chunks/{vcs-3hepkmqq.js → snapshot-3hepkmqq.js} +1 -1
- package/dist/chunks/{vcs-3hwn7j4h.js → snapshot-3hwn7j4h.js} +2 -2
- package/dist/chunks/{vcs-g7sqgjk5.js → snapshot-3nqjeqvp.js} +18 -18
- package/dist/chunks/{vcs-prmgem5b.js → snapshot-3ppptnan.js} +6 -6
- package/dist/chunks/{vcs-3smtnn6g.js → snapshot-3smtnn6g.js} +1 -1
- package/dist/chunks/{vcs-3tvqynh2.js → snapshot-3tvqynh2.js} +1 -1
- package/dist/chunks/{vcs-0htv3dc9.js → snapshot-3zj1jny9.js} +11 -11
- package/dist/chunks/{vcs-8mjwj69h.js → snapshot-3zqpheq4.js} +26 -26
- package/dist/chunks/{vcs-3zsf4n22.js → snapshot-3zsf4n22.js} +1 -1
- package/dist/chunks/{vcs-87s4pnn4.js → snapshot-44x47vc1.js} +13 -13
- package/dist/chunks/{vcs-tjv4f2cx.js → snapshot-4985kjca.js} +83 -83
- package/dist/chunks/{vcs-w19yfnah.js → snapshot-4a32xa5p.js} +17 -17
- package/dist/chunks/{vcs-gmcw3ffg.js → snapshot-4b88qf44.js} +25 -25
- package/dist/chunks/{vcs-19mmt9jm.js → snapshot-4gezj5dt.js} +4 -4
- package/dist/chunks/{vcs-9f8e2eft.js → snapshot-4k07v71c.js} +10 -10
- package/dist/chunks/{vcs-ncrc9mqf.js → snapshot-4t394y7h.js} +42 -42
- package/dist/chunks/{vcs-4ts7tf6z.js → snapshot-4ts7tf6z.js} +2 -2
- package/dist/chunks/{vcs-4mzh11ac.js → snapshot-4vetjhn5.js} +12 -12
- package/dist/chunks/{vcs-6mpsqnn8.js → snapshot-4xffw7wa.js} +5 -5
- package/dist/chunks/{vcs-54ma36ye.js → snapshot-54ma36ye.js} +1 -1
- package/dist/chunks/{vcs-drwq78ky.js → snapshot-57b9ws8p.js} +5 -5
- package/dist/chunks/{vcs-t0mdjq8w.js → snapshot-5a4dpzx5.js} +27 -27
- package/dist/chunks/{vcs-t2n2tt0m.js → snapshot-5jkm5zt2.js} +15 -15
- package/dist/chunks/{vcs-5m9w47nd.js → snapshot-5m9w47nd.js} +1 -1
- package/dist/chunks/{vcs-snenmxcf.js → snapshot-5nq8wefj.js} +5 -5
- package/dist/chunks/{vcs-qkxbda19.js → snapshot-62gdzg6n.js} +14 -14
- package/dist/chunks/{vcs-0vga355r.js → snapshot-685jv0gk.js} +26 -26
- package/dist/chunks/{vcs-fpecnkgp.js → snapshot-6g7e4dd5.js} +5 -5
- package/dist/chunks/{vcs-8mdjf4ye.js → snapshot-6sbb3tqx.js} +24 -24
- package/dist/chunks/{vcs-x8cycxf4.js → snapshot-6wg7wrda.js} +6 -6
- package/dist/chunks/{vcs-6xb47vfp.js → snapshot-6xb47vfp.js} +1 -1
- package/dist/chunks/{vcs-r1apfhp5.js → snapshot-711nmkr3.js} +24 -24
- package/dist/chunks/{vcs-e322j8vf.js → snapshot-71r40yks.js} +6 -6
- package/dist/chunks/{vcs-tztvcf3n.js → snapshot-73v3pe0h.js} +22 -22
- package/dist/chunks/{vcs-7bmhse3q.js → snapshot-7bmhse3q.js} +1 -1
- package/dist/chunks/{vcs-719fesem.js → snapshot-7jcc7m0g.js} +11 -11
- package/dist/chunks/{vcs-vgvem2mc.js → snapshot-7kt5ec22.js} +23 -23
- package/dist/chunks/{vcs-913zs37e.js → snapshot-7sn28qaa.js} +15 -15
- package/dist/chunks/{vcs-he27pt63.js → snapshot-7zt5x37y.js} +1 -1
- package/dist/chunks/{vcs-r3vzrrgx.js → snapshot-82x33wmm.js} +10 -10
- package/dist/chunks/{vcs-84txncab.js → snapshot-84txncab.js} +1 -1
- package/dist/chunks/{vcs-zjdd0gds.js → snapshot-86hs0axb.js} +1 -1
- package/dist/chunks/{vcs-wj76ss2k.js → snapshot-86qzxe6p.js} +4 -4
- package/dist/chunks/{vcs-tcezcvh9.js → snapshot-89znhe33.js} +4 -4
- package/dist/chunks/snapshot-8bavg15d.js +253 -0
- package/dist/chunks/{vcs-8m6m0r52.js → snapshot-8m6m0r52.js} +1 -1
- package/dist/chunks/{vcs-pagt2a0d.js → snapshot-8qhbfk2n.js} +18 -18
- package/dist/chunks/{vcs-9arrdvcr.js → snapshot-92fscyhx.js} +11 -11
- package/dist/chunks/{vcs-q8grz0g8.js → snapshot-9cmfgt91.js} +16 -16
- package/dist/chunks/{vcs-scx6fy7g.js → snapshot-9g7pswbf.js} +20 -20
- package/dist/chunks/{vcs-fjtjx80y.js → snapshot-9kmpexhc.js} +45 -45
- package/dist/chunks/{vcs-5pyjqqve.js → snapshot-9pa8tak9.js} +2 -2
- package/dist/chunks/{vcs-t0nn02sh.js → snapshot-9pttm90n.js} +21 -21
- package/dist/chunks/{vcs-pe0mrp9z.js → snapshot-9ttnny7k.js} +5 -5
- package/dist/chunks/{vcs-fc20vwn7.js → snapshot-9vxdwdzz.js} +31 -31
- package/dist/chunks/snapshot-9zdhvgqs.js +18 -0
- package/dist/chunks/{vcs-kmqyv7tr.js → snapshot-a0we08s8.js} +32 -32
- package/dist/chunks/{vcs-0pr9mksw.js → snapshot-a16rd8k8.js} +30 -30
- package/dist/chunks/{vcs-cp937pt4.js → snapshot-a3c7ahw6.js} +4 -4
- package/dist/chunks/{vcs-yxp99xgz.js → snapshot-a6fw190p.js} +20 -20
- package/dist/chunks/{vcs-f6ehv80r.js → snapshot-adns1g9g.js} +24 -24
- package/dist/chunks/{vcs-nezpkvx6.js → snapshot-ajtydnxp.js} +14 -14
- package/dist/chunks/{vcs-bnxe6qt4.js → snapshot-atj79w0v.js} +32 -32
- package/dist/chunks/{vcs-xwey7zsm.js → snapshot-be7jta6m.js} +4 -4
- package/dist/chunks/{vcs-481njsdn.js → snapshot-be7qvw84.js} +8 -8
- package/dist/chunks/{vcs-7enwnqx2.js → snapshot-bg1wkd0b.js} +15 -15
- package/dist/chunks/{vcs-ywt8jp22.js → snapshot-bjx1sjef.js} +9 -9
- package/dist/chunks/{vcs-yczg0ak8.js → snapshot-bqry624m.js} +11 -11
- package/dist/chunks/{vcs-g1stf5ec.js → snapshot-bv9pwty2.js} +11 -11
- package/dist/chunks/{vcs-5a6bdb3h.js → snapshot-bwx17gqq.js} +30 -30
- package/dist/chunks/{vcs-es1vcfrp.js → snapshot-c1fqxshp.js} +3 -3
- package/dist/chunks/{vcs-js4prka5.js → snapshot-c38a98sw.js} +329 -329
- package/dist/chunks/{vcs-8hzxhjgv.js → snapshot-c7eggyj2.js} +13 -13
- package/dist/chunks/{vcs-f8enj7d3.js → snapshot-ccjdyf7k.js} +4 -4
- package/dist/chunks/{vcs-wyjf03zf.js → snapshot-cf6gmne1.js} +17 -17
- package/dist/chunks/{vcs-gkpc65z4.js → snapshot-ck1fd7pj.js} +50 -50
- package/dist/chunks/{vcs-eys57y9b.js → snapshot-cmwkp3r5.js} +8 -8
- package/dist/chunks/{vcs-235km5t5.js → snapshot-cvm04r39.js} +8 -8
- package/dist/chunks/{vcs-b0tzr3db.js → snapshot-cxz0trys.js} +25 -25
- package/dist/chunks/{vcs-ryr25ayn.js → snapshot-d216944b.js} +5 -5
- package/dist/chunks/{vcs-bddt2pqj.js → snapshot-d48vtfkp.js} +20 -20
- package/dist/chunks/{vcs-d1hzem4k.js → snapshot-dj5070pm.js} +32 -32
- package/dist/chunks/{vcs-wc0vytja.js → snapshot-dx27xtfn.js} +37 -37
- package/dist/chunks/{vcs-55q4pg3x.js → snapshot-e62hrcgf.js} +3 -3
- package/dist/chunks/{vcs-nma959mg.js → snapshot-e80seqcp.js} +3 -3
- package/dist/chunks/{vcs-c4bpxzyg.js → snapshot-e81g86hq.js} +2 -2
- package/dist/chunks/{vcs-mbtj9ds6.js → snapshot-eahqb6ke.js} +30 -30
- package/dist/chunks/{vcs-rhjbct0v.js → snapshot-eaj1djv9.js} +8 -8
- package/dist/chunks/{vcs-xtcapa33.js → snapshot-edd5yykw.js} +18 -18
- package/dist/chunks/{vcs-eej6y6fw.js → snapshot-eej6y6fw.js} +2 -2
- package/dist/chunks/{vcs-xsg53x9j.js → snapshot-eejq6m04.js} +7 -7
- package/dist/chunks/{vcs-ef5x83kb.js → snapshot-ef5x83kb.js} +1 -1
- package/dist/chunks/{vcs-6m2e7bc8.js → snapshot-egftgkpy.js} +3 -3
- package/dist/chunks/{vcs-dks7depp.js → snapshot-ekje3y56.js} +17 -17
- package/dist/chunks/{vcs-a1z3z3g0.js → snapshot-evv0vwxw.js} +9 -9
- package/dist/chunks/{vcs-6vw52h41.js → snapshot-f6vbds02.js} +24 -24
- package/dist/chunks/{vcs-79qaa2kf.js → snapshot-ft3hqk2c.js} +9 -9
- package/dist/chunks/{vcs-x1w8kz1j.js → snapshot-fwetwkyp.js} +11 -11
- package/dist/chunks/{vcs-fxaymqdw.js → snapshot-fxaymqdw.js} +1 -1
- package/dist/chunks/{vcs-91nc53vq.js → snapshot-fxww3vkk.js} +33 -33
- package/dist/chunks/{vcs-v7qp4w0s.js → snapshot-fzrap74d.js} +4 -4
- package/dist/chunks/{vcs-kzr4d4yx.js → snapshot-g0886e5s.js} +10 -10
- package/dist/chunks/{vcs-5q25jc76.js → snapshot-g1vbddss.js} +5 -5
- package/dist/chunks/{vcs-z2hqca5m.js → snapshot-g751szay.js} +15 -15
- package/dist/chunks/{vcs-gd4qta3r.js → snapshot-gd4qta3r.js} +1 -1
- package/dist/chunks/{vcs-ksa5enky.js → snapshot-getmpk2p.js} +30 -30
- package/dist/chunks/{vcs-epvhvayn.js → snapshot-ggdbdp3p.js} +22 -22
- package/dist/chunks/{vcs-47jkzegy.js → snapshot-gj71zhbs.js} +5 -5
- package/dist/chunks/{vcs-4t573r9z.js → snapshot-gjw4dczg.js} +9 -9
- package/dist/chunks/{vcs-gk8qb678.js → snapshot-gk8qb678.js} +1 -1
- package/dist/chunks/{vcs-fym2egaf.js → snapshot-gp6j0m16.js} +178 -178
- package/dist/chunks/{vcs-2fgx34m2.js → snapshot-gpcfbphx.js} +16 -16
- package/dist/chunks/{vcs-xbbfye0x.js → snapshot-gpmsrege.js} +20 -20
- package/dist/chunks/{vcs-6x8j28ta.js → snapshot-gr6rb6jp.js} +28 -28
- package/dist/chunks/{vcs-1vezggaq.js → snapshot-gst7axd9.js} +4 -4
- package/dist/chunks/{vcs-zsr4wwhv.js → snapshot-gw7cjrad.js} +4 -4
- package/dist/chunks/{vcs-q1v8m7mv.js → snapshot-h30nn26j.js} +5 -5
- package/dist/chunks/{vcs-h6vf3j39.js → snapshot-h6vf3j39.js} +1 -1
- package/dist/chunks/{vcs-31xfzrxg.js → snapshot-h7s7r6s9.js} +5 -5
- package/dist/chunks/{vcs-nwehx7ay.js → snapshot-h8wzkg43.js} +22 -22
- package/dist/chunks/{vcs-ssejya2c.js → snapshot-hdaz9kwv.js} +26 -26
- package/dist/chunks/{vcs-a52aq9pv.js → snapshot-hgcw6g89.js} +20 -20
- package/dist/chunks/{vcs-hgz4x7wa.js → snapshot-hgz4x7wa.js} +1 -1
- package/dist/chunks/{vcs-dv7vdq8f.js → snapshot-hky8srv6.js} +17 -17
- package/dist/chunks/{vcs-acv6agwm.js → snapshot-hwxse503.js} +46 -46
- package/dist/chunks/{vcs-p4y3j28t.js → snapshot-j05shhqh.js} +4 -4
- package/dist/chunks/{vcs-91qna3x0.js → snapshot-j09zfasm.js} +3 -3
- package/dist/chunks/{vcs-j56e64zr.js → snapshot-j56e64zr.js} +1 -1
- package/dist/chunks/{vcs-hqsnmgn9.js → snapshot-j6y24mx7.js} +47 -47
- package/dist/chunks/{vcs-rwrxn7zv.js → snapshot-j7n20m06.js} +14 -14
- package/dist/chunks/{vcs-ndgjjs73.js → snapshot-jad7v81x.js} +21 -21
- package/dist/chunks/{vcs-twez2640.js → snapshot-jaqgj7gd.js} +5 -5
- package/dist/chunks/{vcs-59t8e9hp.js → snapshot-jhh798t7.js} +16 -16
- package/dist/chunks/{vcs-1g5yqc8z.js → snapshot-jtfvy0x1.js} +14 -14
- package/dist/chunks/{vcs-addxnjmp.js → snapshot-k22b66k8.js} +4 -4
- package/dist/chunks/{vcs-hdtf1423.js → snapshot-kasbmhf8.js} +6 -6
- package/dist/chunks/snapshot-kgjy6kx3.js +26 -0
- package/dist/chunks/{vcs-ty18q8bq.js → snapshot-kxevvgj2.js} +35 -35
- package/dist/chunks/{vcs-1j76fkgm.js → snapshot-m0zh6mp4.js} +13 -13
- package/dist/chunks/{vcs-m9w0rfyh.js → snapshot-m9w0rfyh.js} +1 -1
- package/dist/chunks/{vcs-5nrew705.js → snapshot-ma15yhyh.js} +5 -5
- package/dist/chunks/{vcs-4dgw1k7b.js → snapshot-meynmx88.js} +46 -46
- package/dist/chunks/{vcs-e0s5vzwf.js → snapshot-meztqrmt.js} +51 -51
- package/dist/chunks/{vcs-va69yy5s.js → snapshot-mma6j8c6.js} +35 -35
- package/dist/chunks/{vcs-2kad87fd.js → snapshot-n1bf2k3s.js} +10 -10
- package/dist/chunks/{vcs-e0ck1vyz.js → snapshot-n6j6gvjr.js} +27 -27
- package/dist/chunks/{vcs-eg7g03rw.js → snapshot-nb6tc7gn.js} +7 -7
- package/dist/chunks/{vcs-hwbqs4aj.js → snapshot-ncf68bzz.js} +8 -8
- package/dist/chunks/{vcs-6t6pa95g.js → snapshot-ncff0ghb.js} +7 -7
- package/dist/chunks/{vcs-4xdpab2z.js → snapshot-nd4tfyg0.js} +9 -9
- package/dist/chunks/{vcs-xbe1xf1p.js → snapshot-nf9s1prm.js} +14 -14
- package/dist/chunks/{vcs-npw39rc8.js → snapshot-npw39rc8.js} +3 -3
- package/dist/chunks/{vcs-15s9tzxd.js → snapshot-nxm9bewc.js} +24 -24
- package/dist/chunks/{vcs-1r3s6wg0.js → snapshot-p0302ss0.js} +27 -27
- package/dist/chunks/{vcs-j8hse5kh.js → snapshot-pck7vvdx.js} +8 -8
- package/dist/chunks/{vcs-0sfv069z.js → snapshot-pdqzrdag.js} +8 -8
- package/dist/chunks/{vcs-tjc13hta.js → snapshot-pgm6csgf.js} +11 -11
- package/dist/chunks/{vcs-pjvnvgmy.js → snapshot-pjvnvgmy.js} +1 -1
- package/dist/chunks/{vcs-7zp1n7a7.js → snapshot-pk3rgn0k.js} +14 -14
- package/dist/chunks/{vcs-y0bqer6n.js → snapshot-pkb3ay4t.js} +7 -7
- package/dist/chunks/{vcs-pknna89w.js → snapshot-pknna89w.js} +1 -1
- package/dist/chunks/{vcs-hne8beqj.js → snapshot-pnevy8t0.js} +12 -12
- package/dist/chunks/{vcs-s6p21de5.js → snapshot-px49nktx.js} +18 -18
- package/dist/chunks/{vcs-0tknss5k.js → snapshot-pxdh6z4x.js} +4 -4
- package/dist/chunks/{vcs-q0xm7vwc.js → snapshot-q0xm7vwc.js} +2 -2
- package/dist/chunks/{vcs-20fcqj0r.js → snapshot-q1wh2s52.js} +11 -11
- package/dist/chunks/{vcs-0mgfbfk9.js → snapshot-q5t8tkm3.js} +15 -15
- package/dist/chunks/{vcs-arj5enh2.js → snapshot-q6pvwn5s.js} +10 -10
- package/dist/chunks/{vcs-0csrw0rg.js → snapshot-q9099wq0.js} +11 -11
- package/dist/chunks/{vcs-r3z16319.js → snapshot-q9s0qt54.js} +24 -24
- package/dist/chunks/{vcs-vwvqks9y.js → snapshot-qhtz5tn1.js} +6 -6
- package/dist/chunks/{vcs-bc7rc02h.js → snapshot-qm7yafx2.js} +30 -30
- package/dist/chunks/{vcs-qnc92qwc.js → snapshot-qnc92qwc.js} +1 -1
- package/dist/chunks/{vcs-hs4jhd8t.js → snapshot-qp5xdmt9.js} +14 -14
- package/dist/chunks/{vcs-qsdy395h.js → snapshot-qsdy395h.js} +1 -1
- package/dist/chunks/{vcs-wavsan29.js → snapshot-qwz14s94.js} +15 -15
- package/dist/chunks/{vcs-jpts0yk4.js → snapshot-qxs3vhad.js} +10 -10
- package/dist/chunks/{vcs-gnf6a704.js → snapshot-qxteq9gp.js} +3 -3
- package/dist/chunks/{vcs-r0a53c5q.js → snapshot-r00vxzkf.js} +13 -13
- package/dist/chunks/{vcs-4987t165.js → snapshot-r1pe02km.js} +6 -6
- package/dist/chunks/{vcs-rdw6cm16.js → snapshot-rdw6cm16.js} +1 -1
- package/dist/chunks/{vcs-tkb22qbm.js → snapshot-rert0e01.js} +2 -2
- package/dist/chunks/{vcs-c41wscbt.js → snapshot-rj3eygr5.js} +2 -2
- package/dist/chunks/{vcs-rxws6bhm.js → snapshot-rmbqd2ve.js} +14 -14
- package/dist/chunks/{vcs-nsh8sgfc.js → snapshot-rrvferkx.js} +8 -8
- package/dist/chunks/{vcs-s99vwkcp.js → snapshot-rv7cqpdn.js} +26 -26
- package/dist/chunks/{vcs-bsprd9wx.js → snapshot-rv8bg9zk.js} +6 -6
- package/dist/chunks/{vcs-h73xewvj.js → snapshot-rw725m44.js} +5 -5
- package/dist/chunks/{vcs-nc5zv3b6.js → snapshot-ryrkax6k.js} +30 -30
- package/dist/chunks/{vcs-jdpcmxaq.js → snapshot-s21g3yfm.js} +5 -5
- package/dist/chunks/{vcs-c8ax2afj.js → snapshot-sa8ekw3f.js} +2 -2
- package/dist/chunks/{vcs-b3f8fkhc.js → snapshot-scgrse2b.js} +5 -5
- package/dist/chunks/{vcs-a3zwd18q.js → snapshot-svcw9x3w.js} +12 -12
- package/dist/chunks/{vcs-y9zen75t.js → snapshot-sy5bqw1f.js} +36 -36
- package/dist/chunks/{vcs-syv4x271.js → snapshot-syv4x271.js} +1 -1
- package/dist/chunks/{vcs-sz15zhhw.js → snapshot-sz15zhhw.js} +1 -1
- package/dist/chunks/{vcs-f7v1be6r.js → snapshot-t0jcgyeh.js} +11 -11
- package/dist/chunks/{vcs-g1kbbzwv.js → snapshot-t24steab.js} +20 -20
- package/dist/chunks/{vcs-vysf6yst.js → snapshot-t2sp9sft.js} +45 -45
- package/dist/chunks/{vcs-8h02xmj1.js → snapshot-t3g5z3jq.js} +4 -4
- package/dist/chunks/{vcs-zvewsjf9.js → snapshot-t4xp0xer.js} +20 -20
- package/dist/chunks/{vcs-tazgh4e4.js → snapshot-tazgh4e4.js} +1 -1
- package/dist/chunks/{vcs-tav3j76w.js → snapshot-tczskvm4.js} +9 -9
- package/dist/chunks/{vcs-tdstcens.js → snapshot-tdstcens.js} +1 -1
- package/dist/chunks/{vcs-tjvrccee.js → snapshot-tj9ze35q.js} +19 -19
- package/dist/chunks/{vcs-tm0kqsz3.js → snapshot-tm0kqsz3.js} +1 -1
- package/dist/chunks/{vcs-qjva7zsb.js → snapshot-twxex640.js} +29 -29
- package/dist/chunks/{vcs-tyytaxap.js → snapshot-tyytaxap.js} +1 -1
- package/dist/chunks/{vcs-m82p2ea3.js → snapshot-v61gpap5.js} +20 -20
- package/dist/chunks/{vcs-v7p4zvkq.js → snapshot-v7p4zvkq.js} +2 -2
- package/dist/chunks/{vcs-veqvce7d.js → snapshot-veqvce7d.js} +1 -1
- package/dist/chunks/{vcs-egxa6wef.js → snapshot-vvdk2v7s.js} +30 -30
- package/dist/chunks/{vcs-f104y2wp.js → snapshot-vxrq7gy3.js} +23 -23
- package/dist/chunks/{vcs-z539r0a3.js → snapshot-vyxcgzxm.js} +4 -4
- package/dist/chunks/{vcs-b1tttxvj.js → snapshot-vz7j5hz5.js} +18 -18
- package/dist/chunks/{vcs-vzs5sf6e.js → snapshot-vzs5sf6e.js} +1 -1
- package/dist/chunks/{vcs-1pxz8ven.js → snapshot-w39jehkq.js} +5 -5
- package/dist/chunks/{vcs-w3wsvvr9.js → snapshot-w3wsvvr9.js} +1 -1
- package/dist/chunks/{vcs-26f3rcp3.js → snapshot-w9m81hfh.js} +33 -33
- package/dist/chunks/{vcs-wd87259q.js → snapshot-wd87259q.js} +1 -1
- package/dist/chunks/{vcs-3zbnw38w.js → snapshot-wdjckp9n.js} +69 -69
- package/dist/chunks/{vcs-p9d0rdr1.js → snapshot-wg81ww38.js} +4 -4
- package/dist/chunks/{vcs-0pfazcqt.js → snapshot-ws8te88a.js} +5 -5
- package/dist/chunks/{vcs-4swtwscf.js → snapshot-ww4mptbv.js} +6 -6
- package/dist/chunks/{vcs-cscq17wm.js → snapshot-x0n2r8bm.js} +9 -9
- package/dist/chunks/{vcs-e7max901.js → snapshot-x2g642t3.js} +55 -55
- package/dist/chunks/{vcs-h2sbe1zw.js → snapshot-x9cg0rxw.js} +21 -21
- package/dist/chunks/{vcs-84p0rsy4.js → snapshot-xbn8j5gg.js} +21 -21
- package/dist/chunks/{vcs-hhasc4wk.js → snapshot-xdykc06c.js} +15 -15
- package/dist/chunks/{vcs-z4656w27.js → snapshot-xkcby2w3.js} +25 -25
- package/dist/chunks/{vcs-dek0q3p9.js → snapshot-xkxtbnne.js} +45 -45
- package/dist/chunks/{vcs-ccwyehyt.js → snapshot-xn2d9mj3.js} +11 -11
- package/dist/chunks/{vcs-7k8ewqsg.js → snapshot-xwazsn8k.js} +33 -33
- package/dist/chunks/{vcs-4hefet2q.js → snapshot-xzf894n2.js} +36 -36
- package/dist/chunks/{vcs-y1fvbwt7.js → snapshot-y1fvbwt7.js} +1 -1
- package/dist/chunks/{vcs-dpkg50ah.js → snapshot-y71avatq.js} +4 -4
- package/dist/chunks/{vcs-qjx1ax0j.js → snapshot-yd4bzqjj.js} +5 -5
- package/dist/chunks/{vcs-5t6ehpr6.js → snapshot-yfv49cfa.js} +50 -50
- package/dist/chunks/{vcs-xsgk3b13.js → snapshot-yh7kjdpc.js} +9 -9
- package/dist/chunks/{vcs-8dp3qddt.js → snapshot-yrd2kh6r.js} +19 -19
- package/dist/chunks/{vcs-qg4yzkf6.js → snapshot-yw0bx123.js} +17 -17
- package/dist/chunks/{vcs-z0bkrqjs.js → snapshot-z0bkrqjs.js} +1 -1
- package/dist/chunks/{vcs-yzq5b05t.js → snapshot-z1j66m5m.js} +2 -2
- package/dist/chunks/{vcs-7gx1y4bm.js → snapshot-z7g7qfqe.js} +15 -15
- package/dist/chunks/{vcs-92c95a58.js → snapshot-z9dst3cg.js} +32 -32
- package/dist/chunks/{vcs-3fz6v6g7.js → snapshot-zejcb5bb.js} +28 -28
- package/dist/chunks/{vcs-qkh4a7bk.js → snapshot-zhcb31md.js} +13 -13
- package/dist/chunks/{vcs-zr2ceqn5.js → snapshot-zr2ceqn5.js} +1 -1
- package/dist/chunks/{vcs-zxq2ej10.js → snapshot-zxq2ej10.js} +1 -1
- package/dist/chunks/{vcs-64x317sc.js → snapshot-zy26rbxg.js} +27 -27
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +92 -92
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +222 -222
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +104 -104
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +130 -130
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +356 -356
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +96 -96
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +92 -92
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +218 -218
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/vcs-086esqp9.js +0 -26
- package/dist/chunks/vcs-pf31ssb9.js +0 -18
- package/dist/chunks/vcs-w8rb82bd.js +0 -253
- /package/dist/chunks/{vcs-0qkdqm5v.js → snapshot-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{vcs-0zkw76rk.js → snapshot-0zkw76rk.js} +0 -0
- /package/dist/chunks/{vcs-17cy0kzp.js → snapshot-17cy0kzp.js} +0 -0
- /package/dist/chunks/{vcs-1cnp2v09.js → snapshot-1cnp2v09.js} +0 -0
- /package/dist/chunks/{vcs-1kg9ymc8.js → snapshot-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{vcs-24dcb14g.js → snapshot-24dcb14g.js} +0 -0
- /package/dist/chunks/{vcs-2710q6r3.js → snapshot-2710q6r3.js} +0 -0
- /package/dist/chunks/{vcs-2axfhc9x.js → snapshot-2axfhc9x.js} +0 -0
- /package/dist/chunks/{vcs-2bv980vf.js → snapshot-2bv980vf.js} +0 -0
- /package/dist/chunks/{vcs-2c3vjs8z.js → snapshot-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{vcs-359p4xyc.js → snapshot-359p4xyc.js} +0 -0
- /package/dist/chunks/{vcs-3asan66x.js → snapshot-3asan66x.js} +0 -0
- /package/dist/chunks/{vcs-3t0ybcrp.js → snapshot-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{vcs-3v8g72cx.js → snapshot-3v8g72cx.js} +0 -0
- /package/dist/chunks/{vcs-3wcehsnq.js → snapshot-3wcehsnq.js} +0 -0
- /package/dist/chunks/{vcs-43n2bw4t.js → snapshot-43n2bw4t.js} +0 -0
- /package/dist/chunks/{vcs-4knz6hnm.js → snapshot-4knz6hnm.js} +0 -0
- /package/dist/chunks/{vcs-4vcrnpx2.js → snapshot-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{vcs-4y7fprxs.js → snapshot-4y7fprxs.js} +0 -0
- /package/dist/chunks/{vcs-53557ph1.js → snapshot-53557ph1.js} +0 -0
- /package/dist/chunks/{vcs-550bvhaj.js → snapshot-550bvhaj.js} +0 -0
- /package/dist/chunks/{vcs-5qd3pb7m.js → snapshot-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{vcs-6prwharc.js → snapshot-6prwharc.js} +0 -0
- /package/dist/chunks/{vcs-6q2bdcd1.js → snapshot-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{vcs-7akdwqpd.js → snapshot-7akdwqpd.js} +0 -0
- /package/dist/chunks/{vcs-7m9af43g.js → snapshot-7m9af43g.js} +0 -0
- /package/dist/chunks/{vcs-822emrt2.js → snapshot-822emrt2.js} +0 -0
- /package/dist/chunks/{vcs-84wd9syh.js → snapshot-84wd9syh.js} +0 -0
- /package/dist/chunks/{vcs-88xbtdfr.js → snapshot-88xbtdfr.js} +0 -0
- /package/dist/chunks/{vcs-8n3pysct.js → snapshot-8n3pysct.js} +0 -0
- /package/dist/chunks/{vcs-8wj87zfr.js → snapshot-8wj87zfr.js} +0 -0
- /package/dist/chunks/{vcs-9a4afbnw.js → snapshot-9a4afbnw.js} +0 -0
- /package/dist/chunks/{vcs-9rqn6x4v.js → snapshot-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{vcs-a6k6eb26.js → snapshot-a6k6eb26.js} +0 -0
- /package/dist/chunks/{vcs-af5trqkr.js → snapshot-af5trqkr.js} +0 -0
- /package/dist/chunks/{vcs-afrmfg78.js → snapshot-afrmfg78.js} +0 -0
- /package/dist/chunks/{vcs-aqzs7mqg.js → snapshot-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{vcs-atq7p7m5.js → snapshot-atq7p7m5.js} +0 -0
- /package/dist/chunks/{vcs-bkyjaxrp.js → snapshot-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{vcs-bmr6ed5q.js → snapshot-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{vcs-bw78ga2c.js → snapshot-bw78ga2c.js} +0 -0
- /package/dist/chunks/{vcs-cf4snx6d.js → snapshot-cf4snx6d.js} +0 -0
- /package/dist/chunks/{vcs-cvy3z8tj.js → snapshot-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{vcs-d9fn303g.js → snapshot-d9fn303g.js} +0 -0
- /package/dist/chunks/{vcs-d9jj8t3e.js → snapshot-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{vcs-dajrwvna.js → snapshot-dajrwvna.js} +0 -0
- /package/dist/chunks/{vcs-dap0rakb.js → snapshot-dap0rakb.js} +0 -0
- /package/dist/chunks/{vcs-df08tz66.js → snapshot-df08tz66.js} +0 -0
- /package/dist/chunks/{vcs-dy18nga0.js → snapshot-dy18nga0.js} +0 -0
- /package/dist/chunks/{vcs-e5kj55wp.js → snapshot-e5kj55wp.js} +0 -0
- /package/dist/chunks/{vcs-e73j6tqm.js → snapshot-e73j6tqm.js} +0 -0
- /package/dist/chunks/{vcs-ec1grn59.js → snapshot-ec1grn59.js} +0 -0
- /package/dist/chunks/{vcs-eh3zwz77.js → snapshot-eh3zwz77.js} +0 -0
- /package/dist/chunks/{vcs-emrn6kk6.js → snapshot-emrn6kk6.js} +0 -0
- /package/dist/chunks/{vcs-f0mxakyp.js → snapshot-f0mxakyp.js} +0 -0
- /package/dist/chunks/{vcs-f6n9ztr4.js → snapshot-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{vcs-faypxj3z.js → snapshot-faypxj3z.js} +0 -0
- /package/dist/chunks/{vcs-fd410y7t.js → snapshot-fd410y7t.js} +0 -0
- /package/dist/chunks/{vcs-g4wezp1m.js → snapshot-g4wezp1m.js} +0 -0
- /package/dist/chunks/{vcs-g86h250q.js → snapshot-g86h250q.js} +0 -0
- /package/dist/chunks/{vcs-gebd4c9n.js → snapshot-gebd4c9n.js} +0 -0
- /package/dist/chunks/{vcs-gftt206x.js → snapshot-gftt206x.js} +0 -0
- /package/dist/chunks/{vcs-hk9envan.js → snapshot-hk9envan.js} +0 -0
- /package/dist/chunks/{vcs-j2ntwpah.js → snapshot-j2ntwpah.js} +0 -0
- /package/dist/chunks/{vcs-j5zkgpj8.js → snapshot-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{vcs-jjkms2e6.js → snapshot-jjkms2e6.js} +0 -0
- /package/dist/chunks/{vcs-jr7sbwjy.js → snapshot-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{vcs-jwfs4k6c.js → snapshot-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{vcs-jze0r7bz.js → snapshot-jze0r7bz.js} +0 -0
- /package/dist/chunks/{vcs-jzg6c2d5.js → snapshot-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{vcs-m18g726c.js → snapshot-m18g726c.js} +0 -0
- /package/dist/chunks/{vcs-mp448xyj.js → snapshot-mp448xyj.js} +0 -0
- /package/dist/chunks/{vcs-msx8hqn2.js → snapshot-msx8hqn2.js} +0 -0
- /package/dist/chunks/{vcs-n05xt0ee.js → snapshot-n05xt0ee.js} +0 -0
- /package/dist/chunks/{vcs-n3j8tn72.js → snapshot-n3j8tn72.js} +0 -0
- /package/dist/chunks/{vcs-njntx4h6.js → snapshot-njntx4h6.js} +0 -0
- /package/dist/chunks/{vcs-pkyv6v7h.js → snapshot-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{vcs-pyv0edze.js → snapshot-pyv0edze.js} +0 -0
- /package/dist/chunks/{vcs-q3sfg36h.js → snapshot-q3sfg36h.js} +0 -0
- /package/dist/chunks/{vcs-q74kybfr.js → snapshot-q74kybfr.js} +0 -0
- /package/dist/chunks/{vcs-qaymkmh1.js → snapshot-qaymkmh1.js} +0 -0
- /package/dist/chunks/{vcs-qb87gjwd.js → snapshot-qb87gjwd.js} +0 -0
- /package/dist/chunks/{vcs-qfa1cgps.js → snapshot-qfa1cgps.js} +0 -0
- /package/dist/chunks/{vcs-qg3g05ea.js → snapshot-qg3g05ea.js} +0 -0
- /package/dist/chunks/{vcs-qrg20bc0.js → snapshot-qrg20bc0.js} +0 -0
- /package/dist/chunks/{vcs-rcb2kzg1.js → snapshot-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{vcs-sdp7kfr6.js → snapshot-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{vcs-ssg3fenm.js → snapshot-ssg3fenm.js} +0 -0
- /package/dist/chunks/{vcs-ve7vex1e.js → snapshot-ve7vex1e.js} +0 -0
- /package/dist/chunks/{vcs-w803qqfp.js → snapshot-w803qqfp.js} +0 -0
- /package/dist/chunks/{vcs-wc3fc9cn.js → snapshot-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{vcs-wer8tq1h.js → snapshot-wer8tq1h.js} +0 -0
- /package/dist/chunks/{vcs-wtztk69x.js → snapshot-wtztk69x.js} +0 -0
- /package/dist/chunks/{vcs-x0ckcb58.js → snapshot-x0ckcb58.js} +0 -0
- /package/dist/chunks/{vcs-x61499pn.js → snapshot-x61499pn.js} +0 -0
- /package/dist/chunks/{vcs-y44na4kk.js → snapshot-y44na4kk.js} +0 -0
- /package/dist/chunks/{vcs-y8f7s663.js → snapshot-y8f7s663.js} +0 -0
- /package/dist/chunks/{vcs-ygaqb7jw.js → snapshot-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{vcs-ym463w8f.js → snapshot-ym463w8f.js} +0 -0
- /package/dist/chunks/{vcs-z5v4ffb3.js → snapshot-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{vcs-z9919s4g.js → snapshot-z9919s4g.js} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service76
|
|
3
|
+
} from "./snapshot-x2g642t3.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input8,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
22
|
Plugin: () => Plugin26,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description4,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name8
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name8 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input8 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input7 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input8.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -96,12 +96,12 @@ var Plugin26 = {
|
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service76;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name8,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description4,
|
|
104
|
+
input: Input8,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin26 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name8,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name8, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input8, Plugin26, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-3fppgx15.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-ccjdyf7k.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event13
|
|
10
|
+
} from "./snapshot-bwx17gqq.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID7,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./snapshot-a16rd8k8.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
ID6
|
|
17
|
+
} from "./snapshot-a0we08s8.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID5,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./snapshot-qm7yafx2.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./snapshot-pjvnvgmy.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin/provider/digitalocean.ts
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { Clock, Deferred, Effect, Option, Schedule, Schema, Semaphore, Stream } from "effect";
|
|
29
29
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
30
|
-
var providerID =
|
|
31
|
-
var integrationID =
|
|
30
|
+
var providerID = ID6.make("digitalocean");
|
|
31
|
+
var integrationID = ID7.make("digitalocean");
|
|
32
32
|
var methodID = MethodID2.make("browser");
|
|
33
33
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
34
34
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
148
148
|
return;
|
|
149
149
|
for (const router of loaded.routers) {
|
|
150
150
|
const id = `router:${router.name}`;
|
|
151
|
-
if (evt.get(providerID)?.models.has(
|
|
151
|
+
if (evt.get(providerID)?.models.has(ID5.make(id)))
|
|
152
152
|
continue;
|
|
153
153
|
evt.models.update(providerID, id, (draft) => {
|
|
154
154
|
draft.name = router.name;
|
|
@@ -159,7 +159,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
162
|
-
yield* bus.subscribe(
|
|
162
|
+
yield* bus.subscribe(Event13.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
163
163
|
yield* refresh().pipe(Effect.repeat(Schedule.spaced("5 minutes")), Effect.forkScoped);
|
|
164
164
|
})
|
|
165
165
|
});
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./snapshot-ccjdyf7k.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service33,
|
|
7
|
+
node36
|
|
8
|
+
} from "./snapshot-meztqrmt.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service76,
|
|
11
|
+
node80
|
|
12
|
+
} from "./snapshot-x2g642t3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service44,
|
|
15
|
+
node46
|
|
16
|
+
} from "./snapshot-q9s0qt54.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
25
|
+
Service: () => Service32,
|
|
26
|
+
layer: () => layer12,
|
|
27
27
|
name: () => name13,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node35
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -35,13 +35,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
36
|
var name13 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service32 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer12 = Layer.effect(Service32, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service33;
|
|
42
|
+
const tools = yield* Service44;
|
|
43
43
|
const bus = yield* Service84;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service76;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -118,12 +118,12 @@ var layer10 = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service32.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
123
|
+
var node35 = makeLocationNode({
|
|
124
|
+
service: Service32,
|
|
125
|
+
layer: layer12,
|
|
126
|
+
deps: [node46, node36, node88, node80]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2, name13,
|
|
129
|
+
export { namespace2, name13, Service32, layer12, node35, exports_mcp3 };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID15,
|
|
3
|
+
Service79
|
|
4
|
+
} from "./snapshot-x9cg0rxw.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service56
|
|
8
|
+
} from "./snapshot-qm7yafx2.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service48
|
|
12
|
+
} from "./snapshot-meynmx88.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./snapshot-143qq2q9.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service70
|
|
18
|
+
} from "./snapshot-jhh798t7.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service76
|
|
22
|
+
} from "./snapshot-x2g642t3.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service23
|
|
25
|
+
} from "./snapshot-4985kjca.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./snapshot-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Service10
|
|
31
|
+
} from "./snapshot-tj9ze35q.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input3,
|
|
40
|
+
Output: () => Output3,
|
|
41
|
+
Plugin: () => Plugin20,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description2,
|
|
44
|
+
name: () => name3
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name3 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input3 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input6 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output3 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description2 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description4 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin20 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service23;
|
|
93
|
+
const jobs = yield* Service70;
|
|
94
|
+
const agents = yield* Service79;
|
|
95
|
+
const config = yield* Service48;
|
|
96
|
+
const permission = yield* Service76;
|
|
97
|
+
const models = yield* Service56;
|
|
98
|
+
const subagents = yield* Service10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin25 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name3,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description2,
|
|
121
|
+
input: Input3,
|
|
122
|
+
output: Output3,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin25 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name3,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin25 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID15.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name3 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name3];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name3, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name3, Input3, Output3, description2, Plugin20, exports_subagent };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service49
|
|
3
|
+
} from "./snapshot-73v3pe0h.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service48
|
|
6
|
+
} from "./snapshot-meynmx88.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./snapshot-71r40yks.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/compatibility.ts
|
|
15
15
|
var exports_compatibility = {};
|
|
16
16
|
__export(exports_compatibility, {
|
|
17
17
|
ConfigCompatibilityPlugin: () => exports_compatibility,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin41
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
24
|
-
var
|
|
24
|
+
var Plugin41 = define({
|
|
25
25
|
id: "opencode.config.compatibility",
|
|
26
26
|
effect: Effect.fn(function* (ctx) {
|
|
27
|
-
const config = yield*
|
|
27
|
+
const config = yield* Service48;
|
|
28
28
|
const fs = yield* FSUtil.Service;
|
|
29
|
-
const watcher = yield*
|
|
29
|
+
const watcher = yield* Service49;
|
|
30
30
|
const watches = yield* FiberMap.make();
|
|
31
31
|
const changes = yield* PubSub.sliding(1);
|
|
32
32
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -73,4 +73,4 @@ var Plugin9 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Plugin41, exports_compatibility };
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service83,
|
|
9
|
+
node87
|
|
10
|
+
} from "./snapshot-svcw9x3w.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service81,
|
|
13
|
+
node85
|
|
14
|
+
} from "./snapshot-jtfvy0x1.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./snapshot-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
|
+
ID: () => ID9,
|
|
27
|
+
Service: () => Service61,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node64,
|
|
30
|
+
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID9 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service61 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service81;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID9.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -136,25 +136,25 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
136
136
|
for (const [file, snapshot] of input.files) {
|
|
137
137
|
const absolute = path.resolve(worktree, file);
|
|
138
138
|
if (!FSUtil.contains(worktree, absolute))
|
|
139
|
-
return yield* new
|
|
139
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
140
140
|
files.set(file, TreeID2.make(snapshot));
|
|
141
141
|
}
|
|
142
142
|
return files;
|
|
143
143
|
});
|
|
144
144
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
145
145
|
if (!enabled())
|
|
146
|
-
return yield* new
|
|
146
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
147
147
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
148
148
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
149
149
|
});
|
|
150
|
-
return
|
|
150
|
+
return Service61.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
151
151
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
152
|
-
var
|
|
153
|
-
service:
|
|
152
|
+
var node64 = makeLocationNode({
|
|
153
|
+
service: Service61,
|
|
154
154
|
layer,
|
|
155
|
-
deps: [FSUtil.node,
|
|
155
|
+
deps: [FSUtil.node, node87, Global.node, node85]
|
|
156
156
|
});
|
|
157
|
-
var
|
|
157
|
+
var noopLayer3 = Layer.succeed(Service61, Service61.of({
|
|
158
158
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
159
159
|
reload: () => Effect.void,
|
|
160
160
|
capture: () => Effect.undefined,
|
|
@@ -163,13 +163,13 @@ var noopLayer2 = Layer.succeed(Service35, Service35.of({
|
|
|
163
163
|
restore: () => Effect.void
|
|
164
164
|
}));
|
|
165
165
|
function failure(operation, cause) {
|
|
166
|
-
if (cause instanceof
|
|
166
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
167
167
|
return cause;
|
|
168
|
-
return new
|
|
168
|
+
return new Error3({
|
|
169
169
|
operation,
|
|
170
170
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
171
171
|
cause
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export {
|
|
175
|
+
export { ID9, Error3, Service61, node64, noopLayer3, exports_snapshot2 };
|