@opencode/core 0.0.0-dev-21385 → 0.0.0-dev-21390
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 +79 -79
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{variant-eaj1djv9.js → file-mutation-02nrjc1r.js} +4 -4
- package/dist/chunks/{variant-brmnc5rc.js → file-mutation-03cyahpz.js} +27 -27
- package/dist/chunks/{variant-wb7w7em4.js → file-mutation-06xmkky8.js} +11 -11
- package/dist/chunks/{variant-2s32b1pm.js → file-mutation-06xsmntz.js} +2 -2
- package/dist/chunks/{variant-35gn8txb.js → file-mutation-0b01yxp0.js} +43 -43
- package/dist/chunks/{variant-7dqw4kz8.js → file-mutation-0jwsre1p.js} +5 -5
- package/dist/chunks/{variant-z1593v92.js → file-mutation-0qg9wp3b.js} +14 -14
- package/dist/chunks/{variant-dnjvpwy6.js → file-mutation-0rv871qk.js} +4 -4
- package/dist/chunks/{variant-tc84sxpf.js → file-mutation-0s171grw.js} +21 -21
- package/dist/chunks/{variant-6d84m8eq.js → file-mutation-0s4zgerr.js} +26 -26
- package/dist/chunks/{variant-0vbcp93d.js → file-mutation-0vbcp93d.js} +2 -2
- package/dist/chunks/{variant-g7z4v8j3.js → file-mutation-10sr3c2w.js} +11 -11
- package/dist/chunks/{variant-06m78d2n.js → file-mutation-11bsw10t.js} +22 -22
- package/dist/chunks/{variant-bzeyqsqd.js → file-mutation-1ep4rre3.js} +4 -4
- package/dist/chunks/{variant-ywt8jp22.js → file-mutation-1ffvrpkg.js} +6 -6
- package/dist/chunks/{variant-07s4g8t9.js → file-mutation-1fz8ksxp.js} +50 -50
- package/dist/chunks/{variant-d29451tq.js → file-mutation-1sqrcqpt.js} +6 -6
- package/dist/chunks/{variant-9e5gtvfc.js → file-mutation-1yd7h3h8.js} +11 -11
- package/dist/chunks/{variant-4z5bdeag.js → file-mutation-23yr3n9z.js} +1 -1
- package/dist/chunks/{variant-rt4gesys.js → file-mutation-28b9pmxf.js} +34 -34
- package/dist/chunks/{variant-1wj6nfaq.js → file-mutation-28jszdgh.js} +18 -18
- package/dist/chunks/{variant-534aq8ke.js → file-mutation-2a3rnyjp.js} +1 -1
- package/dist/chunks/{variant-71mr81s1.js → file-mutation-2w943ba3.js} +5 -5
- package/dist/chunks/{variant-hqqehcc0.js → file-mutation-2yz1g7gy.js} +25 -25
- package/dist/chunks/{variant-zxjbgbap.js → file-mutation-30mkkrgf.js} +10 -10
- package/dist/chunks/{variant-dtj6q9re.js → file-mutation-37688efw.js} +12 -12
- package/dist/chunks/{variant-khthv2ze.js → file-mutation-37qnpxgx.js} +35 -35
- package/dist/chunks/{variant-q15tn0mf.js → file-mutation-3a7k8z3r.js} +22 -22
- package/dist/chunks/{variant-rz1bd73a.js → file-mutation-3aj445ja.js} +10 -10
- package/dist/chunks/{variant-s1rzhg3g.js → file-mutation-3berxp5h.js} +17 -17
- package/dist/chunks/{variant-3j5xnwvt.js → file-mutation-3bynrp5j.js} +29 -27
- package/dist/chunks/{variant-c6j5vg12.js → file-mutation-3cywy0c3.js} +3 -3
- package/dist/chunks/{variant-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{variant-3hwn7j4h.js → file-mutation-3hwn7j4h.js} +2 -2
- package/dist/chunks/{variant-y178fjw7.js → file-mutation-3jb9jjfv.js} +15 -15
- package/dist/chunks/{variant-4shp5hvj.js → file-mutation-3kkkyqec.js} +9 -9
- package/dist/chunks/{variant-gxv082ck.js → file-mutation-3pr61yv2.js} +26 -26
- package/dist/chunks/{variant-r10nvqfv.js → file-mutation-3qta67sk.js} +11 -11
- package/dist/chunks/{variant-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{variant-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{variant-fkj43v1r.js → file-mutation-3v80qfk6.js} +10 -10
- package/dist/chunks/{variant-t147m43n.js → file-mutation-3y1bhqyq.js} +10 -10
- package/dist/chunks/{variant-2qj989z5.js → file-mutation-3zqpxcym.js} +48 -48
- package/dist/chunks/{variant-3zsf4n22.js → file-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{variant-espax8zg.js → file-mutation-41czef58.js} +4 -4
- package/dist/chunks/{variant-v3854d8f.js → file-mutation-41gx20tv.js} +23 -23
- package/dist/chunks/{variant-t5azbf2h.js → file-mutation-42ehbd6e.js} +8 -8
- package/dist/chunks/{variant-tw3hkfj3.js → file-mutation-45ag4h5e.js} +36 -36
- package/dist/chunks/{variant-gqm71yrs.js → file-mutation-4t0fmp6z.js} +17 -17
- package/dist/chunks/{variant-hpyx0024.js → file-mutation-4vmkhc5n.js} +11 -11
- package/dist/chunks/{variant-sm0dhwyq.js → file-mutation-519d1vwx.js} +7 -7
- package/dist/chunks/{variant-54ma36ye.js → file-mutation-54ma36ye.js} +1 -1
- package/dist/chunks/{variant-rg7a60r1.js → file-mutation-56spgh5t.js} +24 -24
- package/dist/chunks/file-mutation-57e5yzdy.js +257 -0
- package/dist/chunks/{variant-z0ydvj27.js → file-mutation-5g57z1ma.js} +4 -4
- package/dist/chunks/{variant-5m9w47nd.js → file-mutation-5m9w47nd.js} +1 -1
- package/dist/chunks/{variant-qmfsk48t.js → file-mutation-5mdvenct.js} +19 -19
- package/dist/chunks/{variant-1v4wbcc5.js → file-mutation-5t7451fr.js} +9 -9
- package/dist/chunks/{variant-6pcx6jwm.js → file-mutation-62mz8jvf.js} +24 -24
- package/dist/chunks/{variant-6827pfxn.js → file-mutation-6827pfxn.js} +1 -1
- package/dist/chunks/{variant-7jdm1vab.js → file-mutation-6azzqc0z.js} +8 -8
- package/dist/chunks/{variant-c7av8b5x.js → file-mutation-6eg9htqv.js} +4 -4
- package/dist/chunks/{variant-675j5d4j.js → file-mutation-6m0ab3mz.js} +14 -14
- package/dist/chunks/{variant-0tmgye68.js → file-mutation-6n4b0dsb.js} +9 -9
- package/dist/chunks/{variant-ycbx61rz.js → file-mutation-6t4vhed6.js} +5 -5
- package/dist/chunks/{variant-6xb47vfp.js → file-mutation-6xb47vfp.js} +1 -1
- package/dist/chunks/{variant-vpge477k.js → file-mutation-6zc1k7ct.js} +40 -33
- package/dist/chunks/{variant-59ec13pf.js → file-mutation-74q762c0.js} +15 -15
- package/dist/chunks/{variant-775gj3j1.js → file-mutation-775gj3j1.js} +2 -2
- package/dist/chunks/{variant-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{variant-fbp02deq.js → file-mutation-7djxwg8w.js} +32 -32
- package/dist/chunks/{variant-01133bs8.js → file-mutation-7ndcpfx4.js} +13 -13
- package/dist/chunks/{variant-v2hyeyf7.js → file-mutation-7r5wsdye.js} +10 -10
- package/dist/chunks/{variant-e10gzyda.js → file-mutation-7r9mhtn4.js} +28 -28
- package/dist/chunks/{variant-z0910jfv.js → file-mutation-7smjb1nk.js} +177 -177
- package/dist/chunks/{variant-a20pjse5.js → file-mutation-7v6vae4w.js} +3 -3
- package/dist/chunks/file-mutation-7x5efvhs.js +517 -0
- package/dist/chunks/{variant-7hgt1n33.js → file-mutation-8185hgv1.js} +8 -8
- package/dist/chunks/{variant-tcezcvh9.js → file-mutation-89znhe33.js} +4 -4
- package/dist/chunks/{variant-8m6m0r52.js → file-mutation-8m6m0r52.js} +1 -1
- package/dist/chunks/{variant-8mywswrd.js → file-mutation-8mywswrd.js} +1 -1
- package/dist/chunks/{variant-xf2pv73g.js → file-mutation-8xmp1zer.js} +48 -48
- package/dist/chunks/{variant-eayadx44.js → file-mutation-8y1w76e6.js} +18 -18
- package/dist/chunks/{variant-rga01nkp.js → file-mutation-97yqkd1k.js} +14 -14
- package/dist/chunks/{variant-0r684n0p.js → file-mutation-9c3np669.js} +8 -8
- package/dist/chunks/{variant-ky9wwhcp.js → file-mutation-9qpecfme.js} +15 -15
- package/dist/chunks/{variant-jp8717cv.js → file-mutation-9zs8zcdx.js} +28 -28
- package/dist/chunks/{variant-8ab3w9a1.js → file-mutation-a2px89rw.js} +12 -12
- package/dist/chunks/{variant-90prmkr9.js → file-mutation-a565ke38.js} +18 -18
- package/dist/chunks/{variant-88ttrsfd.js → file-mutation-a82304wy.js} +25 -25
- package/dist/chunks/{variant-nttemcq1.js → file-mutation-ad4w0vjn.js} +23 -23
- package/dist/chunks/{variant-8e1b1gzh.js → file-mutation-ak9msbxp.js} +6 -6
- package/dist/chunks/{variant-vm6z49tp.js → file-mutation-atdrdmj6.js} +6 -6
- package/dist/chunks/{variant-vnvzhrpj.js → file-mutation-aw52c1ne.js} +16 -16
- package/dist/chunks/{variant-qtk9pe34.js → file-mutation-b2nsbkna.js} +13 -13
- package/dist/chunks/{variant-7174g72w.js → file-mutation-bhs00ts1.js} +25 -25
- package/dist/chunks/{variant-nrh2wv08.js → file-mutation-bqjpzzk3.js} +26 -26
- package/dist/chunks/{variant-e0har6f2.js → file-mutation-bsa6sgws.js} +24 -24
- package/dist/chunks/{variant-kbx7rh90.js → file-mutation-c13z1yp1.js} +34 -34
- package/dist/chunks/{variant-es1vcfrp.js → file-mutation-c1fqxshp.js} +3 -3
- package/dist/chunks/{variant-ez4msjhj.js → file-mutation-c87k5ccs.js} +16 -16
- package/dist/chunks/{variant-c17c7gem.js → file-mutation-cb4re6k7.js} +3 -3
- package/dist/chunks/{variant-32gamwqc.js → file-mutation-ce3wexff.js} +17 -17
- package/dist/chunks/{variant-50st65ms.js → file-mutation-cm67jkab.js} +12 -12
- package/dist/chunks/{variant-pedttwxr.js → file-mutation-cmmdg65p.js} +8 -8
- package/dist/chunks/{variant-djszqvmq.js → file-mutation-cwa6csj7.js} +9 -9
- package/dist/chunks/{variant-dk2cs9kn.js → file-mutation-d5et20rv.js} +4 -4
- package/dist/chunks/{variant-zee1rnkq.js → file-mutation-ddt2bs9e.js} +4 -4
- package/dist/chunks/{variant-8cqn97gn.js → file-mutation-dfpkkgmz.js} +23 -23
- package/dist/chunks/{variant-4q6tth2h.js → file-mutation-dp2x8bvg.js} +11 -11
- package/dist/chunks/{variant-br0tr5aq.js → file-mutation-dv1qgsyq.js} +8 -8
- package/dist/chunks/{variant-dys7k0s0.js → file-mutation-dys7k0s0.js} +3 -3
- package/dist/chunks/{variant-dxm36xet.js → file-mutation-dzx86zvg.js} +14 -14
- package/dist/chunks/{variant-95wgg282.js → file-mutation-e27yq2dh.js} +15 -15
- package/dist/chunks/{variant-szkrnbvf.js → file-mutation-e4m676a8.js} +27 -27
- package/dist/chunks/{variant-8aftd3yf.js → file-mutation-eajv9c1q.js} +26 -26
- package/dist/chunks/{variant-myjtek88.js → file-mutation-eb4sm8gp.js} +13 -13
- package/dist/chunks/{variant-kct03rgr.js → file-mutation-ee0gr7kd.js} +21 -21
- package/dist/chunks/{variant-eej6y6fw.js → file-mutation-eej6y6fw.js} +2 -2
- package/dist/chunks/{variant-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{variant-rnt9ng2n.js → file-mutation-efacs7fs.js} +7 -7
- package/dist/chunks/{variant-8apawthn.js → file-mutation-ehvt2tba.js} +25 -25
- package/dist/chunks/{variant-wpz9kdb9.js → file-mutation-em5cgnc4.js} +49 -49
- package/dist/chunks/{variant-44ksx02e.js → file-mutation-erxfktnw.js} +4 -4
- package/dist/chunks/{variant-af0tgjwm.js → file-mutation-etvgdas2.js} +15 -15
- package/dist/chunks/{variant-7vfwfg0s.js → file-mutation-fb8cphng.js} +13 -13
- package/dist/chunks/{variant-fcy631f0.js → file-mutation-fcy631f0.js} +1 -1
- package/dist/chunks/{variant-kf0h36at.js → file-mutation-fp29cjek.js} +7 -7
- package/dist/chunks/{variant-1w2wqhfv.js → file-mutation-fxaymqdw.js} +4 -4
- package/dist/chunks/{variant-qbqerjg9.js → file-mutation-fzp13ncj.js} +10 -11
- package/dist/chunks/{variant-phz50fbd.js → file-mutation-g686f6pq.js} +9 -9
- package/dist/chunks/{variant-kjdm35cs.js → file-mutation-g6yfr6ja.js} +5 -5
- package/dist/chunks/{variant-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{variant-qne3fa44.js → file-mutation-gj71zhbs.js} +5 -5
- package/dist/chunks/{variant-d25qmaxv.js → file-mutation-gr66jygg.js} +47 -47
- package/dist/chunks/{variant-gfn1f735.js → file-mutation-gvvbrpww.js} +9 -9
- package/dist/chunks/{variant-cz4fyjvq.js → file-mutation-gybtzb9x.js} +24 -24
- package/dist/chunks/{variant-rkvys86f.js → file-mutation-gzspr1z4.js} +3 -3
- package/dist/chunks/{variant-amdqtsez.js → file-mutation-h4bdw36b.js} +16 -16
- package/dist/chunks/{variant-4fse96mq.js → file-mutation-h62a697x.js} +8 -8
- package/dist/chunks/{variant-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{variant-z2a96fzh.js → file-mutation-hd1nrk2b.js} +10 -10
- package/dist/chunks/{variant-hgz4x7wa.js → file-mutation-hgz4x7wa.js} +1 -1
- package/dist/chunks/{variant-25nwtkd9.js → file-mutation-hkgnaefc.js} +19 -19
- package/dist/chunks/{variant-rvw0c6fm.js → file-mutation-j8th9n6h.js} +13 -13
- package/dist/chunks/{variant-g8barhva.js → file-mutation-j9d78s05.js} +30 -30
- package/dist/chunks/{variant-039htanw.js → file-mutation-jf9n6w3j.js} +11 -11
- package/dist/chunks/{variant-3sa7tm9a.js → file-mutation-jfbb0hnv.js} +4 -4
- package/dist/chunks/{variant-mb19mnqb.js → file-mutation-jfhp5m7r.js} +36 -36
- package/dist/chunks/{variant-74mxst5h.js → file-mutation-jgzj6jsc.js} +12 -12
- package/dist/chunks/{variant-vgr8962y.js → file-mutation-jjqh5zx4.js} +18 -18
- package/dist/chunks/{variant-j933j9sw.js → file-mutation-jjypx1zf.js} +4 -4
- package/dist/chunks/{variant-2gmpce6q.js → file-mutation-jpecd9th.js} +3 -3
- package/dist/chunks/{variant-wrdz6b4b.js → file-mutation-jsn4hjph.js} +8 -8
- package/dist/chunks/{variant-n78k5cgb.js → file-mutation-jt9ed28e.js} +11 -11
- package/dist/chunks/{variant-pg3754bv.js → file-mutation-jx6q8471.js} +40 -40
- package/dist/chunks/{variant-nr5642w5.js → file-mutation-k02f29ms.js} +33 -33
- package/dist/chunks/{variant-6yet44e5.js → file-mutation-ka369yzh.js} +33 -33
- package/dist/chunks/{variant-zhzgznba.js → file-mutation-kb1d5h98.js} +3 -3
- package/dist/chunks/{variant-wcnw1vw1.js → file-mutation-kd03d9gr.js} +4 -4
- package/dist/chunks/{variant-vdx8s558.js → file-mutation-kdzm5bhe.js} +15 -15
- package/dist/chunks/{variant-56cykqq2.js → file-mutation-kr4x12kf.js} +20 -20
- package/dist/chunks/{variant-kwb1v3vj.js → file-mutation-kwb1v3vj.js} +1 -1
- package/dist/chunks/{variant-nhpkjp8j.js → file-mutation-kxej0ekr.js} +11 -11
- package/dist/chunks/file-mutation-m73346m7.js +26 -0
- package/dist/chunks/{variant-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{variant-maspj1v3.js → file-mutation-maspj1v3.js} +1 -1
- package/dist/chunks/{variant-r70qfazn.js → file-mutation-mqg3fzsn.js} +16 -16
- package/dist/chunks/{variant-ss358qx3.js → file-mutation-mtpeagzc.js} +3 -3
- package/dist/chunks/{variant-qy6ss6as.js → file-mutation-mydhh9sm.js} +85 -85
- package/dist/chunks/{variant-7x0ybmme.js → file-mutation-ndzdr1dv.js} +2 -2
- package/dist/chunks/{variant-nz56sr1f.js → file-mutation-nz56sr1f.js} +2 -2
- package/dist/chunks/{variant-5ffmfybm.js → file-mutation-nzs7qp78.js} +6 -6
- package/dist/chunks/{variant-knhekyq4.js → file-mutation-p190h37r.js} +17 -17
- package/dist/chunks/{variant-smq3am02.js → file-mutation-p2wcahxe.js} +89 -89
- package/dist/chunks/{variant-bw9zjykr.js → file-mutation-p7a39gy5.js} +6 -6
- package/dist/chunks/{variant-c60jy55t.js → file-mutation-pbacqn8s.js} +5 -5
- package/dist/chunks/{variant-dedzrhdb.js → file-mutation-pcdas667.js} +25 -25
- package/dist/chunks/{variant-pf31ssb9.js → file-mutation-pf31ssb9.js} +1 -1
- package/dist/chunks/{variant-7xyrrtj6.js → file-mutation-pfq1ksym.js} +5 -5
- package/dist/chunks/{variant-xamas9nz.js → file-mutation-pgfe47gj.js} +30 -30
- package/dist/chunks/{variant-17hwac7t.js → file-mutation-phsgz9sx.js} +5 -5
- package/dist/chunks/{variant-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{variant-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{variant-rkprpv83.js → file-mutation-py3kkmfq.js} +2 -2
- package/dist/chunks/{variant-cd12tkte.js → file-mutation-q0cbencw.js} +2 -2
- package/dist/chunks/{variant-tkjmt9nc.js → file-mutation-q5d81rx9.js} +11 -11
- package/dist/chunks/{variant-vrr7tc8c.js → file-mutation-q7rdkpep.js} +4 -4
- package/dist/chunks/{variant-rn69d7hp.js → file-mutation-q9eyhvvk.js} +32 -32
- package/dist/chunks/{variant-5qtxbxmk.js → file-mutation-q9qps9mc.js} +18 -18
- package/dist/chunks/{variant-m9xnn9r5.js → file-mutation-qevj7g07.js} +35 -35
- package/dist/chunks/{variant-9x9ct1g1.js → file-mutation-qgf6fbf9.js} +32 -32
- package/dist/chunks/{variant-qnc92qwc.js → file-mutation-qnc92qwc.js} +1 -1
- package/dist/chunks/{variant-4mwbxkt4.js → file-mutation-qnfncs7q.js} +4 -4
- package/dist/chunks/{variant-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{variant-9scmkrsd.js → file-mutation-qwv7c4pn.js} +13 -13
- package/dist/chunks/{variant-5rzwp8tz.js → file-mutation-r2z489rp.js} +3 -3
- package/dist/chunks/{variant-9hvha7ke.js → file-mutation-r62a9xnm.js} +14 -14
- package/dist/chunks/{variant-5awj5jwe.js → file-mutation-r6zh1g81.js} +11 -11
- package/dist/chunks/{variant-nhzw2ksa.js → file-mutation-r7dsxv7s.js} +17 -17
- package/dist/chunks/{variant-0kpfwrjz.js → file-mutation-rbp8ryhp.js} +33 -33
- package/dist/chunks/{variant-7zj2yvh0.js → file-mutation-rcjn9711.js} +13 -13
- package/dist/chunks/{variant-ervcbcv7.js → file-mutation-rcjp1z92.js} +35 -35
- package/dist/chunks/{variant-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{variant-tkb22qbm.js → file-mutation-rert0e01.js} +2 -2
- package/dist/chunks/{variant-6xfqa995.js → file-mutation-retn9hxc.js} +59 -59
- package/dist/chunks/{variant-c41wscbt.js → file-mutation-rj3eygr5.js} +2 -2
- package/dist/chunks/{variant-qy259e2y.js → file-mutation-rt822zgg.js} +11 -11
- package/dist/chunks/{variant-bjq1rgcd.js → file-mutation-rz1wjwgb.js} +24 -24
- package/dist/chunks/{variant-qbqbaz6q.js → file-mutation-s26hbv8p.js} +4 -4
- package/dist/chunks/{variant-k8x2fpjf.js → file-mutation-s4nxs4pr.js} +22 -22
- package/dist/chunks/{variant-c8ax2afj.js → file-mutation-sa8ekw3f.js} +2 -2
- package/dist/chunks/{variant-xjfe4nsj.js → file-mutation-sc1avexy.js} +17 -17
- package/dist/chunks/{variant-s761s72c.js → file-mutation-schnsw0c.js} +9 -9
- package/dist/chunks/{variant-172eh8jk.js → file-mutation-sh547pn2.js} +5 -5
- package/dist/chunks/{variant-0y3k4c6h.js → file-mutation-sh6a696f.js} +21 -21
- package/dist/chunks/{variant-9r4dpyf8.js → file-mutation-stndfsa3.js} +8 -8
- package/dist/chunks/{variant-tatecjgj.js → file-mutation-sxeq46ve.js} +7 -7
- package/dist/chunks/{variant-vj32cyzd.js → file-mutation-sxzykved.js} +37 -37
- package/dist/chunks/{variant-syv4x271.js → file-mutation-syv4x271.js} +1 -1
- package/dist/chunks/{variant-0nxkqgg0.js → file-mutation-t1nzq07k.js} +9 -9
- package/dist/chunks/{variant-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{variant-bnpb9r0r.js → file-mutation-tb34rtt0.js} +31 -31
- package/dist/chunks/{variant-ck1687dj.js → file-mutation-tc78d14m.js} +20 -20
- package/dist/chunks/{variant-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{variant-2w37rd65.js → file-mutation-thz6jf9v.js} +29 -29
- package/dist/chunks/{variant-b27vhd2z.js → file-mutation-tkmwgdpd.js} +7 -7
- package/dist/chunks/{variant-tm0kqsz3.js → file-mutation-tm0kqsz3.js} +1 -1
- package/dist/chunks/{variant-pm8ty30j.js → file-mutation-tt3w6h4v.js} +22 -22
- package/dist/chunks/{variant-dq407baf.js → file-mutation-tt8gc4fv.js} +6 -6
- package/dist/chunks/{variant-8r64qjsw.js → file-mutation-twbk3118.js} +30 -30
- package/dist/chunks/{variant-tyytaxap.js → file-mutation-tyytaxap.js} +1 -1
- package/dist/chunks/{variant-v210v162.js → file-mutation-v210v162.js} +2 -2
- package/dist/chunks/{variant-b55ayt6p.js → file-mutation-v53hzd0w.js} +15 -15
- package/dist/chunks/{variant-v7p4zvkq.js → file-mutation-v7p4zvkq.js} +2 -2
- package/dist/chunks/{variant-ghtkshk3.js → file-mutation-vae2677r.js} +45 -45
- package/dist/chunks/{variant-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{variant-pfxa3h33.js → file-mutation-vkqam852.js} +11 -11
- package/dist/chunks/{variant-wqhaj406.js → file-mutation-vtt8tbap.js} +54 -54
- package/dist/chunks/{variant-nh571ch7.js → file-mutation-vyp2z6jc.js} +27 -27
- package/dist/chunks/{variant-vzs5sf6e.js → file-mutation-vzs5sf6e.js} +1 -1
- package/dist/chunks/{variant-84txncab.js → file-mutation-w1eejvng.js} +5 -5
- package/dist/chunks/{variant-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{variant-t9tm1b69.js → file-mutation-w7h8reg6.js} +14 -14
- package/dist/chunks/{variant-gxgayqbn.js → file-mutation-w84617t1.js} +11 -11
- package/dist/chunks/{variant-waskdk5r.js → file-mutation-waskdk5r.js} +1 -1
- package/dist/chunks/{variant-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{variant-p092c7br.js → file-mutation-we55t667.js} +42 -42
- package/dist/chunks/{variant-wjqb2vp5.js → file-mutation-wk5z6jzv.js} +9 -9
- package/dist/chunks/{variant-9q9t7af4.js → file-mutation-wq2p2qmk.js} +24 -24
- package/dist/chunks/{variant-7nx1mzpm.js → file-mutation-x5e1n3vw.js} +19 -19
- package/dist/chunks/{variant-drwq78ky.js → file-mutation-xfkkasph.js} +4 -4
- package/dist/chunks/{variant-hz3jevdr.js → file-mutation-xmy4sz0h.js} +3 -3
- package/dist/chunks/{variant-xywjvjxx.js → file-mutation-xw6avn3p.js} +12 -12
- package/dist/chunks/{variant-ve88pny4.js → file-mutation-xx5ebepc.js} +8 -8
- package/dist/chunks/{variant-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{variant-y71avatq.js → file-mutation-y71avatq.js} +1 -1
- package/dist/chunks/{variant-mc8agtnj.js → file-mutation-y81rr1wr.js} +22 -22
- package/dist/chunks/{variant-1jz3qj6p.js → file-mutation-y84x4ntc.js} +22 -22
- package/dist/chunks/{variant-n3bbh3xq.js → file-mutation-ymkxabsa.js} +8 -8
- package/dist/chunks/{variant-t9tzyksx.js → file-mutation-ynfzaa2p.js} +24 -24
- package/dist/chunks/{variant-d1sqbt18.js → file-mutation-yv7acsrv.js} +23 -23
- package/dist/chunks/{variant-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{variant-z18fegx4.js → file-mutation-z18fegx4.js} +1 -1
- package/dist/chunks/{variant-kqp9qa1j.js → file-mutation-z1jgb0t4.js} +3 -3
- package/dist/chunks/{variant-h0k6zcwv.js → file-mutation-z2jaas8m.js} +21 -21
- package/dist/chunks/{variant-say7vrea.js → file-mutation-z3tzxhn5.js} +6 -6
- package/dist/chunks/{variant-qryqqwhy.js → file-mutation-z4g16tg4.js} +16 -16
- package/dist/chunks/{variant-es5a2c48.js → file-mutation-zcbpwp6v.js} +10 -10
- package/dist/chunks/{variant-ejj11w5x.js → file-mutation-ze7vjsts.js} +17 -17
- package/dist/chunks/{variant-7rwcep1p.js → file-mutation-zezrz4ps.js} +15 -15
- package/dist/chunks/{variant-hhecb7g7.js → file-mutation-zgxd750f.js} +8 -8
- package/dist/chunks/{variant-0cg871e2.js → file-mutation-zjtrsxny.js} +5 -5
- package/dist/chunks/{variant-qv0sc65t.js → file-mutation-zn9jy13z.js} +6 -6
- package/dist/chunks/{variant-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{variant-0g42q639.js → file-mutation-zvcz9zfg.js} +5 -5
- package/dist/chunks/{variant-41t4yrkv.js → file-mutation-zvntbwz4.js} +15 -15
- package/dist/chunks/{variant-azwe5p1w.js → file-mutation-zw2hpfmh.js} +4 -4
- package/dist/chunks/{variant-r13wq28n.js → file-mutation-zwjpxgfy.js} +45 -45
- package/dist/chunks/{variant-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- 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 +118 -118
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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 +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- 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 +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- 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 +96 -96
- 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 +221 -221
- 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 +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- 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 +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- 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 +155 -155
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- 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 +109 -109
- 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-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- 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 +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- 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 +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- 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 +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- 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 +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- 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 +1 -1
- 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 +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- 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 +114 -114
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +217 -217
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- 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 +138 -138
- 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 +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +97 -97
- 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 +2 -2
- 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 +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -223
- 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 +5 -5
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- 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 +206 -206
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +153 -153
- 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 +212 -212
- package/dist/shell/parse.js +8 -8
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +91 -91
- 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 +120 -120
- 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 +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +136 -136
- package/dist/tool/plugin/webfetch.js +110 -110
- 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/types/session/transfer.d.ts +2 -2
- package/dist/types/worktree/git.d.ts +3 -3
- 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 +5 -5
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- 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 +96 -96
- package/package.json +8 -8
- package/dist/chunks/variant-0x80k0hx.js +0 -26
- package/dist/chunks/variant-7w5g5nar.js +0 -517
- package/dist/chunks/variant-928hdk85.js +0 -257
- /package/dist/chunks/{variant-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{variant-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{variant-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{variant-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{variant-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{variant-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{variant-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{variant-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{variant-2bv980vf.js → file-mutation-2bv980vf.js} +0 -0
- /package/dist/chunks/{variant-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{variant-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{variant-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{variant-3t0ybcrp.js → file-mutation-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{variant-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{variant-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{variant-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{variant-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{variant-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{variant-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{variant-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{variant-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{variant-5qd3pb7m.js → file-mutation-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{variant-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{variant-6q2bdcd1.js → file-mutation-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{variant-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{variant-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{variant-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{variant-84wd9syh.js → file-mutation-84wd9syh.js} +0 -0
- /package/dist/chunks/{variant-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{variant-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{variant-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{variant-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{variant-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{variant-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{variant-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{variant-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{variant-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{variant-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{variant-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{variant-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{variant-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{variant-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{variant-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{variant-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{variant-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{variant-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{variant-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{variant-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{variant-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{variant-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{variant-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{variant-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{variant-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{variant-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{variant-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{variant-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{variant-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{variant-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{variant-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{variant-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{variant-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{variant-hcxmzztb.js → file-mutation-hcxmzztb.js} +0 -0
- /package/dist/chunks/{variant-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{variant-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{variant-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{variant-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{variant-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{variant-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{variant-jze0r7bz.js → file-mutation-jze0r7bz.js} +0 -0
- /package/dist/chunks/{variant-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{variant-m18g726c.js → file-mutation-m18g726c.js} +0 -0
- /package/dist/chunks/{variant-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{variant-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{variant-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{variant-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{variant-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{variant-pkyv6v7h.js → file-mutation-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{variant-pyv0edze.js → file-mutation-pyv0edze.js} +0 -0
- /package/dist/chunks/{variant-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{variant-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{variant-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{variant-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{variant-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{variant-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{variant-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{variant-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{variant-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{variant-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{variant-ve7vex1e.js → file-mutation-ve7vex1e.js} +0 -0
- /package/dist/chunks/{variant-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{variant-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{variant-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{variant-wjj7prxr.js → file-mutation-wjj7prxr.js} +0 -0
- /package/dist/chunks/{variant-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{variant-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{variant-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{variant-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{variant-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{variant-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{variant-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{variant-z5v4ffb3.js → file-mutation-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{variant-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service43,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node46
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service43 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service43.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node46 = makeLocationNode({
|
|
137
|
+
service: Service43,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service43, node46, exports_tool_output2 };
|
|
@@ -2,42 +2,42 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service79,
|
|
8
|
+
node83
|
|
9
|
+
} from "./file-mutation-w7h8reg6.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service75,
|
|
12
|
+
node78
|
|
13
|
+
} from "./file-mutation-7djxwg8w.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content3,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event20,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
|
-
ListInput: () =>
|
|
32
|
+
ListInput: () => ListInput5,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError10,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service74,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node77
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError10 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -75,14 +75,14 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
75
75
|
return `Access denied to directory: ${this.directory}`;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Content3 = Schema.Struct({
|
|
79
79
|
uri: Schema.String,
|
|
80
80
|
name: Schema.String.pipe(Schema.optional),
|
|
81
81
|
content: Schema.String,
|
|
82
82
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
83
83
|
mime: Schema.String
|
|
84
84
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
85
|
-
var
|
|
85
|
+
var ListInput5 = Schema.Struct({
|
|
86
86
|
path: Schema.String.pipe(Schema.optional)
|
|
87
87
|
});
|
|
88
88
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
105
105
|
limit: Schema.optionalKey(PositiveInt2)
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Event20 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service74 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service74, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
|
-
const location = yield*
|
|
115
|
-
const search = yield*
|
|
114
|
+
const location = yield* Service79;
|
|
115
|
+
const search = yield* Service75;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.tap((real) => fs.access(real, { readable: true })), Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
124
124
|
if (input.includes("\x00"))
|
|
125
|
-
return yield* Effect.fail(new
|
|
125
|
+
return yield* Effect.fail(new NotFoundError10({ path: input }));
|
|
126
126
|
const absolute = path.resolve(location.directory, input);
|
|
127
127
|
if (!FSUtil.contains(location.directory, absolute))
|
|
128
|
-
return yield* Effect.fail(new
|
|
129
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
128
|
+
return yield* Effect.fail(new NotFoundError10({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError10({ path: input })), (_, error) => Effect.die(error)));
|
|
130
130
|
if (!FSUtil.contains(root, real))
|
|
131
|
-
return yield* Effect.fail(new
|
|
131
|
+
return yield* Effect.fail(new NotFoundError10({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service74.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
138
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
138
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError10({ path: input.path })), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "File")
|
|
140
|
-
return yield* Effect.fail(new
|
|
140
|
+
return yield* Effect.fail(new NotFoundError10({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
147
147
|
}),
|
|
148
148
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
149
149
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
150
|
-
const missing = new
|
|
150
|
+
const missing = new NotFoundError10({ path: RelativePath2.make(input.path ?? ".") });
|
|
151
151
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
152
152
|
if (info.type !== "Directory")
|
|
153
153
|
return yield* missing;
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node77 = makeLocationNode({
|
|
175
|
+
service: Service74,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node,
|
|
177
|
+
deps: [FSUtil.node, node83, node78]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError10, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, ListInput5, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event20, Service74, node77, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-a82304wy.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./file-mutation-w7h8reg6.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service69,
|
|
13
|
+
node72
|
|
14
|
+
} from "./file-mutation-3zqpxcym.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/file-access.ts
|
|
20
20
|
var exports_file_access = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
26
|
-
node: () =>
|
|
25
|
+
Service: () => Service68,
|
|
26
|
+
node: () => node71,
|
|
27
27
|
resolvePath: () => resolvePath2
|
|
28
28
|
});
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -37,7 +37,7 @@ var ResolveInput2 = Schema.Struct({
|
|
|
37
37
|
kind: Kind2.pipe(Schema.optional)
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service68 extends Context.Service()("@opencode/FileAccess") {
|
|
41
41
|
}
|
|
42
42
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
43
43
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -49,10 +49,10 @@ var invocation = (context) => ({
|
|
|
49
49
|
agent: context.agent,
|
|
50
50
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
51
51
|
});
|
|
52
|
-
var layer = Layer.effect(
|
|
52
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
53
53
|
const fs = yield* FSUtil.Service;
|
|
54
|
-
const location = yield*
|
|
55
|
-
const permission = yield*
|
|
54
|
+
const location = yield* Service79;
|
|
55
|
+
const permission = yield* Service69;
|
|
56
56
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
57
57
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
58
58
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
|
101
101
|
});
|
|
102
102
|
return target;
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return Service68.of({ resolve, authorizeExternal, authorizeRead });
|
|
105
105
|
}));
|
|
106
|
-
var
|
|
106
|
+
var node71 = makeLocationNode({ service: Service68, layer, deps: [FSUtil.node, node83, node72] });
|
|
107
107
|
|
|
108
|
-
export { Kind2, ResolveInput2,
|
|
108
|
+
export { Kind2, ResolveInput2, Service68, resolvePath2, node71, exports_file_access };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID8
|
|
3
|
+
} from "./file-mutation-twbk3118.js";
|
|
4
4
|
import {
|
|
5
5
|
iife2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-1kg9ymc8.js";
|
|
7
7
|
import {
|
|
8
8
|
configuredSettings2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-1sqrcqpt.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
14
14
|
import { Form } from "@opencode/schema/form";
|
|
15
|
-
var providerID =
|
|
15
|
+
var providerID = ID8.make("cloudflare-workers-ai");
|
|
16
16
|
var CloudflareWorkersAIPlugin2 = define({
|
|
17
17
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-0rv871qk.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service30,
|
|
7
|
+
node33
|
|
8
|
+
} from "./file-mutation-8xmp1zer.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service69,
|
|
11
|
+
node72
|
|
12
|
+
} from "./file-mutation-3zqpxcym.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service52,
|
|
15
|
+
node55
|
|
16
|
+
} from "./file-mutation-56spgh5t.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-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: () => Service29,
|
|
26
|
+
layer: () => layer13,
|
|
27
27
|
name: () => name14,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node32
|
|
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 name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service29 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer13 = Layer.effect(Service29, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service30;
|
|
42
|
+
const tools = yield* Service52;
|
|
43
43
|
const bus = yield* Service85;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service69;
|
|
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(Service22, 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 Service29.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
123
|
+
var node32 = makeLocationNode({
|
|
124
|
+
service: Service29,
|
|
125
|
+
layer: layer13,
|
|
126
|
+
deps: [node55, node33, node89, node72]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2, name14,
|
|
129
|
+
export { namespace2, name14, Service29, layer13, node32, exports_mcp3 };
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service30
|
|
6
|
+
} from "./file-mutation-8xmp1zer.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service69
|
|
9
|
+
} from "./file-mutation-3zqpxcym.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/tool/plugin/mcp-resource.ts
|
|
15
15
|
var exports_mcp_resource = {};
|
|
16
16
|
__export(exports_mcp_resource, {
|
|
17
17
|
McpResourceTools: () => exports_mcp_resource,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin9
|
|
19
19
|
});
|
|
20
20
|
import { ToolFailure } from "@opencode/ai";
|
|
21
21
|
import { Effect, Schema } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin9 = {
|
|
23
23
|
id: "opencode.tools.mcp-resources",
|
|
24
24
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
25
|
-
const mcp = yield*
|
|
26
|
-
const permission = yield*
|
|
25
|
+
const mcp = yield* Service30;
|
|
26
|
+
const permission = yield* Service69;
|
|
27
27
|
yield* ctx.tool.transform((editor) => {
|
|
28
28
|
editor.add({
|
|
29
29
|
name: "list_mcp_resources",
|
|
@@ -93,4 +93,4 @@ var Plugin8 = {
|
|
|
93
93
|
})
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Plugin9, exports_mcp_resource };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-3cywy0c3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service38
|
|
6
|
+
} from "./file-mutation-p7a39gy5.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-pf31ssb9.js";
|
|
10
10
|
import {
|
|
11
11
|
preview2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-42ehbd6e.js";
|
|
13
13
|
import {
|
|
14
14
|
baseTranscript2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-j9d78s05.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service23
|
|
18
|
+
} from "./file-mutation-mydhh9sm.js";
|
|
19
19
|
import {
|
|
20
20
|
retry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-mutation-fcy631f0.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
35
|
+
const instances = yield* Service38;
|
|
36
36
|
const database = yield* Service86;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service23;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, model.ref);
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-hgz4x7wa.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service79
|
|
9
|
+
} from "./file-mutation-w7h8reg6.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service77
|
|
12
|
+
} from "./file-mutation-gybtzb9x.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service76
|
|
16
|
+
} from "./file-mutation-dzx86zvg.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-28b9pmxf.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service69
|
|
26
|
+
} from "./file-mutation-3zqpxcym.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service68
|
|
29
|
+
} from "./file-mutation-28jszdgh.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/grep.ts
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
38
|
+
Input: () => Input12,
|
|
39
|
+
Output: () => Output8,
|
|
40
|
+
Plugin: () => Plugin14,
|
|
41
|
+
name: () => name12,
|
|
42
|
+
toModelContent: () => toModelContent5
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name12 = "grep";
|
|
48
|
+
var Input12 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,8 +65,8 @@ var Input2 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output8 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent5 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent2 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin14 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service77;
|
|
90
|
+
const ripgrep = yield* Service76;
|
|
91
|
+
const location = yield* Service79;
|
|
92
|
+
const access = yield* Service68;
|
|
93
|
+
const permission = yield* Service69;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name12,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input12,
|
|
99
|
+
output: Output8,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name12,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -144,7 +144,7 @@ var Plugin3 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent5(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin3 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name12, Input12, Output8, toModelContent5, Plugin14, exports_grep };
|