@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,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
batch2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service57
|
|
6
|
+
} from "./file-mutation-em5cgnc4.js";
|
|
7
7
|
import {
|
|
8
8
|
match2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-y1fvbwt7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
Service17,
|
|
12
12
|
statements2,
|
|
13
13
|
decision2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-3aj445ja.js";
|
|
15
15
|
import {
|
|
16
16
|
observe2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-qsdy395h.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/config/plugin/policy.ts
|
|
23
23
|
var exports_policy = {};
|
|
24
24
|
__export(exports_policy, {
|
|
25
25
|
ConfigPolicyPlugin: () => exports_policy,
|
|
26
|
-
Plugin: () =>
|
|
26
|
+
Plugin: () => Plugin46
|
|
27
27
|
});
|
|
28
28
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
29
29
|
import { Effect, Stream } from "effect";
|
|
30
|
-
var
|
|
30
|
+
var Plugin46 = define({
|
|
31
31
|
id: "opencode.config.policy",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const managed = yield*
|
|
33
|
+
const config = yield* Service57;
|
|
34
|
+
const managed = yield* Service17;
|
|
35
35
|
const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload()], { discard: true }));
|
|
36
36
|
const loaded = yield* observe2(config, ctx.event, reload);
|
|
37
37
|
yield* managed.changes().pipe(Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -76,4 +76,4 @@ var Plugin21 = define({
|
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
export {
|
|
79
|
+
export { Plugin46, exports_policy };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-10sr3c2w.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-0rv871qk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event14,
|
|
10
|
+
Service62
|
|
11
|
+
} from "./file-mutation-7r9mhtn4.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID9,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-0s4zgerr.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID8,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-twbk3118.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID7,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info15
|
|
24
|
+
} from "./file-mutation-6zc1k7ct.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./file-mutation-pjvnvgmy.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-mutation-54ma36ye.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-mutation-1sqrcqpt.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
|
|
|
43
43
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
|
-
var providerID =
|
|
47
|
-
var integrationID =
|
|
46
|
+
var providerID = ID8.openai;
|
|
47
|
+
var integrationID = ID9.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -180,7 +180,7 @@ var ChatGPTPlugin2 = define({
|
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
182
|
const bus = yield* Service85;
|
|
183
|
-
const credentials = yield*
|
|
183
|
+
const credentials = yield* Service62;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
186
186
|
let source;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID9.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
271
|
-
yield* bus.subscribe(
|
|
271
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
274
|
function headers(app) {
|
|
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
|
|
|
325
325
|
const found = byID.get(model.modelID);
|
|
326
326
|
return found ? [deriveModel(found, model)] : [];
|
|
327
327
|
}),
|
|
328
|
-
...remote.filter((model) => !known.has(
|
|
328
|
+
...remote.filter((model) => !known.has(ID7.make(model.slug))).map((model) => deriveModel(model, Info15.default(ID8.openai, ID7.make(model.slug))))
|
|
329
329
|
];
|
|
330
330
|
}
|
|
331
331
|
function deriveModel(remote, previous) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-mutation-hgz4x7wa.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-0rv871qk.js";
|
|
4
4
|
import {
|
|
5
5
|
supportsText2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-6zc1k7ct.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service16,
|
|
9
|
+
Event2
|
|
10
|
+
} from "./file-mutation-qevj7g07.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/models-dev.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -38,7 +38,7 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
38
38
|
var ModelsDevPlugin2 = define({
|
|
39
39
|
id: "opencode.models.dev",
|
|
40
40
|
effect: Effect.fn(function* (ctx) {
|
|
41
|
-
const modelsDev = yield*
|
|
41
|
+
const modelsDev = yield* Service16;
|
|
42
42
|
const bus = yield* Service85;
|
|
43
43
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
44
44
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -72,7 +72,7 @@ var ModelsDevPlugin2 = define({
|
|
|
72
72
|
loaded.data = snapshots(data);
|
|
73
73
|
return ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload()));
|
|
74
74
|
};
|
|
75
|
-
yield* bus.subscribe(
|
|
75
|
+
yield* bus.subscribe(Event2.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
|
|
76
76
|
const latest = yield* modelsDev.get();
|
|
77
77
|
if (snapshots(latest) !== loaded.data)
|
|
78
78
|
yield* apply(latest);
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-3cywy0c3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-mutation-y71avatq.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-0rv871qk.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessage2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-mtpeagzc.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-mutation-c1fqxshp.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeMessageRowSync2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-mutation-42ehbd6e.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/session/inbox.ts
|
|
33
33
|
var exports_inbox = {};
|
|
@@ -35,12 +35,12 @@ __export(exports_inbox, {
|
|
|
35
35
|
Compaction: () => Compaction2,
|
|
36
36
|
CompactionPayload: () => CompactionPayload2,
|
|
37
37
|
Delivery: () => Delivery2,
|
|
38
|
-
Info: () =>
|
|
38
|
+
Info: () => Info6,
|
|
39
39
|
Item: () => Item2,
|
|
40
40
|
LifecycleConflict: () => LifecycleConflict2,
|
|
41
41
|
Move: () => Move2,
|
|
42
42
|
MovePayload: () => MovePayload2,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service37,
|
|
44
44
|
SessionInbox: () => exports_inbox,
|
|
45
45
|
Synthetic: () => Synthetic2,
|
|
46
46
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -48,12 +48,12 @@ __export(exports_inbox, {
|
|
|
48
48
|
UserPayload: () => UserPayload2,
|
|
49
49
|
find: () => find2,
|
|
50
50
|
has: () => has2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
list: () =>
|
|
53
|
-
make: () =>
|
|
51
|
+
layer: () => layer19,
|
|
52
|
+
list: () => list3,
|
|
53
|
+
make: () => make16,
|
|
54
54
|
moveIDs: () => moveIDs2,
|
|
55
55
|
nextPromotable: () => nextPromotable2,
|
|
56
|
-
node: () =>
|
|
56
|
+
node: () => node39,
|
|
57
57
|
projectAdmitted: () => projectAdmitted2,
|
|
58
58
|
projectCancelled: () => projectCancelled2,
|
|
59
59
|
projectDelivered: () => projectDelivered2,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
Compaction as Compaction2,
|
|
69
69
|
CompactionPayload as CompactionPayload2,
|
|
70
70
|
Delivery as Delivery2,
|
|
71
|
-
Info as
|
|
71
|
+
Info as Info6,
|
|
72
72
|
Item as Item2,
|
|
73
73
|
Move as Move2,
|
|
74
74
|
MovePayload as MovePayload2,
|
|
@@ -153,9 +153,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
153
153
|
return yield* new LifecycleConflict2({ id });
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
class
|
|
156
|
+
class Service37 extends Context.Service()("@opencode/SessionInbox") {
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var make16 = Effect.fn("SessionInbox.make")(function* () {
|
|
159
159
|
const database = yield* Service86;
|
|
160
160
|
const db = database.db;
|
|
161
161
|
const bus = yield* Service85;
|
|
@@ -175,7 +175,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
175
175
|
inboxID: request.id,
|
|
176
176
|
sessionID: request.sessionID,
|
|
177
177
|
item: request.item
|
|
178
|
-
}).pipe(Effect.map((event) =>
|
|
178
|
+
}).pipe(Effect.map((event) => Info6.make({
|
|
179
179
|
id: request.id,
|
|
180
180
|
sessionID: request.sessionID,
|
|
181
181
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -195,7 +195,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
195
195
|
}
|
|
196
196
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
197
197
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
198
|
-
const pending = (yield*
|
|
198
|
+
const pending = (yield* list3(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
199
199
|
if (pending)
|
|
200
200
|
return pending;
|
|
201
201
|
return yield* admit({
|
|
@@ -220,7 +220,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
220
220
|
delivery: "queue"
|
|
221
221
|
})));
|
|
222
222
|
return {
|
|
223
|
-
list: (sessionID) =>
|
|
223
|
+
list: (sessionID) => list3(db, sessionID),
|
|
224
224
|
reconcile,
|
|
225
225
|
admit,
|
|
226
226
|
admitCompaction,
|
|
@@ -229,8 +229,8 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
229
229
|
queue
|
|
230
230
|
};
|
|
231
231
|
});
|
|
232
|
-
var
|
|
233
|
-
var
|
|
232
|
+
var layer19 = Layer.effect(Service37, make16());
|
|
233
|
+
var node39 = makeGlobalNode({ service: Service37, layer: layer19, deps: [node90, node89] });
|
|
234
234
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
235
235
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
236
236
|
if (message !== undefined)
|
|
@@ -268,7 +268,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
268
268
|
from: input.delivery === "steer" ? "queue" : "steer",
|
|
269
269
|
to: input.delivery
|
|
270
270
|
}));
|
|
271
|
-
var
|
|
271
|
+
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
272
272
|
const rows = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
273
273
|
return rows.map(fromRow);
|
|
274
274
|
});
|
|
@@ -328,4 +328,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
328
328
|
return rows;
|
|
329
329
|
}));
|
|
330
330
|
|
|
331
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
331
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info6, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service37, make16, layer19, node39, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-0rv871qk.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event14,
|
|
7
|
+
Service62,
|
|
8
|
+
node65
|
|
9
|
+
} from "./file-mutation-7r9mhtn4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service58,
|
|
12
|
+
node61
|
|
13
|
+
} from "./file-mutation-y84x4ntc.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service79,
|
|
19
|
+
node83
|
|
20
|
+
} from "./file-mutation-w7h8reg6.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-kwb1v3vj.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-mutation-9qpecfme.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
names3,
|
|
29
29
|
stripPreferenceMetadata2,
|
|
30
30
|
discover3
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-mutation-hd1nrk2b.js";
|
|
32
32
|
import {
|
|
33
33
|
plan2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-mutation-6827pfxn.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
36
|
+
Service64,
|
|
37
|
+
Event16,
|
|
38
|
+
node67
|
|
39
|
+
} from "./file-mutation-kr4x12kf.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
43
43
|
|
|
44
44
|
// src/config.ts
|
|
45
45
|
var exports_config = {};
|
|
46
46
|
__export(exports_config, {
|
|
47
47
|
Config: () => exports_config,
|
|
48
|
-
Options: () =>
|
|
49
|
-
Service: () =>
|
|
48
|
+
Options: () => Options5,
|
|
49
|
+
Service: () => Service57,
|
|
50
50
|
Test: () => Test2,
|
|
51
|
-
configured: () =>
|
|
51
|
+
configured: () => configured6,
|
|
52
52
|
latest: () => latest2,
|
|
53
|
-
layer: () =>
|
|
54
|
-
node: () =>
|
|
53
|
+
layer: () => layer23,
|
|
54
|
+
node: () => node60,
|
|
55
55
|
testLayer: () => testLayer2
|
|
56
56
|
});
|
|
57
57
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -67,7 +67,7 @@ import { ChildProcess } from "effect/process";
|
|
|
67
67
|
function latest2(entries, key) {
|
|
68
68
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var Options5 = Schema.Struct({
|
|
71
71
|
project: Schema.optional(Schema.Boolean),
|
|
72
72
|
global: Schema.optional(Schema.Boolean),
|
|
73
73
|
system: Schema.optional(Schema.Union([Schema.Boolean, Schema.String])),
|
|
@@ -76,7 +76,7 @@ var Options8 = Schema.Struct({
|
|
|
76
76
|
content: Schema.optional(Schema.String)
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service57 extends Context.Service()("@opencode/Config") {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -94,16 +94,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
94
94
|
setEntries: (next) => Ref.set(entries, next),
|
|
95
95
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
96
96
|
});
|
|
97
|
-
return Context.empty().pipe(Context.add(
|
|
97
|
+
return Context.empty().pipe(Context.add(Service57, service), Context.add(Test2, service));
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var layer23 = (options) => Layer.effect(Service57, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const watcher = yield*
|
|
101
|
+
const location = yield* Service79;
|
|
102
|
+
const watcher = yield* Service58;
|
|
103
103
|
const bus = yield* Service85;
|
|
104
|
-
const credentials = yield*
|
|
104
|
+
const credentials = yield* Service62;
|
|
105
105
|
const globalService = yield* Global.Service;
|
|
106
|
-
const wellknown = yield*
|
|
106
|
+
const wellknown = yield* Service64;
|
|
107
107
|
const processes = yield* AppProcess.Service;
|
|
108
108
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
109
109
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
@@ -186,7 +186,7 @@ var layer26 = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
188
188
|
return [
|
|
189
|
-
...yield* Effect.forEach(
|
|
189
|
+
...yield* Effect.forEach(names3, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
|
|
190
190
|
new Directory({ type: "directory", path: directory })
|
|
191
191
|
];
|
|
192
192
|
});
|
|
@@ -254,8 +254,8 @@ var layer26 = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
254
254
|
}, (effect) => reloadLock.withPermit(effect));
|
|
255
255
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
256
256
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
257
|
-
yield* bus.subscribe(
|
|
258
|
-
yield* bus.subscribe(
|
|
257
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
258
|
+
yield* bus.subscribe(Event16.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
259
259
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
260
260
|
if (!wellknown.snapshot().length)
|
|
261
261
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var layer26 = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
268
268
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
269
269
|
const update = Effect.fn("Config.update")(function* (patch) {
|
|
270
270
|
const directory = initial.global ?? AbsolutePath2.make(globalService.config);
|
|
271
|
-
const candidates =
|
|
271
|
+
const candidates = names3.map((name) => path.join(directory, name));
|
|
272
272
|
const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
|
|
273
273
|
const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
|
|
274
274
|
`;
|
|
@@ -283,7 +283,7 @@ var layer26 = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
283
283
|
`);
|
|
284
284
|
yield* requestReload;
|
|
285
285
|
}, (effect) => updateLock.withPermit(effect));
|
|
286
|
-
return
|
|
286
|
+
return Service57.of({
|
|
287
287
|
entries: Effect.fnUntraced(function* () {
|
|
288
288
|
return configs;
|
|
289
289
|
}),
|
|
@@ -295,22 +295,22 @@ var layer26 = (options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
|
295
295
|
update
|
|
296
296
|
});
|
|
297
297
|
}));
|
|
298
|
-
function
|
|
298
|
+
function configured6(options) {
|
|
299
299
|
return makeLocationNode({
|
|
300
|
-
service:
|
|
301
|
-
layer:
|
|
300
|
+
service: Service57,
|
|
301
|
+
layer: layer23(options),
|
|
302
302
|
deps: [
|
|
303
|
-
|
|
303
|
+
node61,
|
|
304
304
|
node89,
|
|
305
305
|
FSUtil.node,
|
|
306
306
|
Global.node,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
node83,
|
|
308
|
+
node65,
|
|
309
|
+
node67,
|
|
310
310
|
AppProcess.node
|
|
311
311
|
]
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var node60 = configured6();
|
|
315
315
|
|
|
316
|
-
export { latest2,
|
|
316
|
+
export { latest2, Options5, Service57, Test2, testLayer2, layer23, configured6, node60, exports_config };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID8
|
|
3
|
+
} from "./file-mutation-twbk3118.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-1sqrcqpt.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cloudflare-ai-gateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
10
10
|
import { isArrayNonEmpty } from "effect/Array";
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Form } from "@opencode/schema/form";
|
|
13
|
-
var providerID =
|
|
13
|
+
var providerID = ID8.make("cloudflare-ai-gateway");
|
|
14
14
|
var accountIdField = Form.StringField.make({
|
|
15
15
|
type: "string",
|
|
16
16
|
key: "accountId",
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-3cywy0c3.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make20,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-02nrjc1r.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-c1fqxshp.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info5,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service24,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node28,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info5 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,12 +56,12 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service24 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
63
63
|
`);
|
|
64
|
-
var source = (entry) =>
|
|
64
|
+
var source = (entry) => make20({
|
|
65
65
|
key: Key4.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make21({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service86;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service24.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node28 = makeLocationNode({ service: Service24, layer, deps: [node90] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info5, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service24, node28, exports_instruction_entry };
|