@opencode/core 0.0.0-dev-20194 → 0.0.0-dev-20196
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{reference-3e8yqhxk.js → file-mutation-00x9hzck.js} +10 -10
- package/dist/chunks/{reference-sc1tzy0m.js → file-mutation-06avesrm.js} +10 -10
- package/dist/chunks/{reference-pk3z8zwb.js → file-mutation-0bt5rkyv.js} +7 -7
- package/dist/chunks/{reference-ybhbtxjg.js → file-mutation-0dr0g8g1.js} +3 -3
- package/dist/chunks/{reference-ysh0bc3c.js → file-mutation-0jjvght6.js} +10 -10
- package/dist/chunks/{reference-qevex4z1.js → file-mutation-0k08rxc6.js} +31 -31
- package/dist/chunks/{reference-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{reference-yqa20cga.js → file-mutation-0pkr918c.js} +22 -22
- package/dist/chunks/{reference-4azmnb77.js → file-mutation-0q60sf5x.js} +8 -8
- package/dist/chunks/{reference-y560y7p4.js → file-mutation-0tkcb012.js} +21 -21
- package/dist/chunks/{reference-gbtx73hb.js → file-mutation-166kng33.js} +8 -8
- package/dist/chunks/{reference-yp2x3t23.js → file-mutation-1acjjqhc.js} +4 -4
- package/dist/chunks/{reference-1dazxqgg.js → file-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{reference-py3kkmfq.js → file-mutation-1p07q0wb.js} +4 -4
- package/dist/chunks/{reference-hs32c6fx.js → file-mutation-1pc8b49c.js} +8 -8
- package/dist/chunks/{reference-hxg08g5j.js → file-mutation-1vcc0tqx.js} +15 -15
- package/dist/chunks/{reference-21r38tys.js → file-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{reference-6h73sxmp.js → file-mutation-2402vzrj.js} +5 -5
- package/dist/chunks/{reference-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{reference-wd5k3756.js → file-mutation-2ka3r0xm.js} +21 -21
- package/dist/chunks/{reference-t2j5vcca.js → file-mutation-2tn83n21.js} +17 -17
- package/dist/chunks/{reference-5hqxtq21.js → file-mutation-2wdjbrvw.js} +25 -25
- package/dist/chunks/file-mutation-31ndy29r.js +655 -0
- package/dist/chunks/{reference-x5xe0bd0.js → file-mutation-33z6kxja.js} +33 -33
- package/dist/chunks/{reference-96p72y45.js → file-mutation-36wh3zdf.js} +11 -11
- package/dist/chunks/{reference-1jsptwm6.js → file-mutation-37ccqw5v.js} +6 -6
- package/dist/chunks/{reference-1f5yd8z2.js → file-mutation-39thqb0z.js} +77 -77
- package/dist/chunks/{reference-as35gwv2.js → file-mutation-3ag7ttm0.js} +13 -13
- package/dist/chunks/{reference-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{reference-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{reference-r4453y51.js → file-mutation-3hmc9p2p.js} +44 -44
- package/dist/chunks/{reference-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{reference-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{reference-3zsf4n22.js → file-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{reference-8rw29dk0.js → file-mutation-45bn2qe8.js} +18 -18
- package/dist/chunks/{reference-qdbakdjh.js → file-mutation-49exe669.js} +5 -5
- package/dist/chunks/{reference-9m59q143.js → file-mutation-4d8ebea5.js} +17 -17
- package/dist/chunks/{reference-thddb0yg.js → file-mutation-4k2fjpjr.js} +20 -20
- package/dist/chunks/{reference-ngffvtk2.js → file-mutation-4pe60rv6.js} +16 -16
- package/dist/chunks/{reference-67f3c5a6.js → file-mutation-4ywmn05m.js} +5 -5
- package/dist/chunks/{reference-x5rq2qdm.js → file-mutation-55gwq3qn.js} +43 -43
- package/dist/chunks/{reference-ypp73q3k.js → file-mutation-56798xf4.js} +21 -21
- package/dist/chunks/{reference-xfkkasph.js → file-mutation-57b9ws8p.js} +7 -7
- package/dist/chunks/{reference-d9s573fh.js → file-mutation-57ez7d0k.js} +2 -2
- package/dist/chunks/{reference-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{reference-ba38qkz5.js → file-mutation-5q075wzn.js} +8 -8
- package/dist/chunks/{reference-ps6kahe0.js → file-mutation-5rd0r6f7.js} +3 -3
- package/dist/chunks/{reference-5t3nmthw.js → file-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{reference-0f9b925g.js → file-mutation-5vth3xyp.js} +42 -42
- package/dist/chunks/{reference-rxyp0enr.js → file-mutation-5zpn8qhf.js} +161 -161
- package/dist/chunks/{reference-tgcnk5sw.js → file-mutation-607q5haz.js} +5 -5
- package/dist/chunks/{reference-vgr5e0ea.js → file-mutation-61w5k2bk.js} +5 -5
- package/dist/chunks/{reference-m655g54e.js → file-mutation-63vbqmwh.js} +5 -5
- package/dist/chunks/{reference-669tq793.js → file-mutation-669tq793.js} +1 -1
- package/dist/chunks/{reference-c35p20hr.js → file-mutation-6by7ejxe.js} +18 -18
- package/dist/chunks/{reference-se4rjrwe.js → file-mutation-6m5gwycq.js} +9 -9
- package/dist/chunks/{reference-6msgmcgs.js → file-mutation-6msgmcgs.js} +1 -1
- package/dist/chunks/{reference-knx0mxy4.js → file-mutation-6qdk3m7n.js} +17 -17
- package/dist/chunks/{reference-bk2c8kx1.js → file-mutation-6y9tzzzt.js} +5 -5
- package/dist/chunks/{reference-eq1pz5kg.js → file-mutation-73tb2d7t.js} +3 -3
- package/dist/chunks/{reference-3yzf73xp.js → file-mutation-7629jcb2.js} +9 -9
- package/dist/chunks/{reference-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{reference-3jq6wq7y.js → file-mutation-7he179h5.js} +5 -5
- package/dist/chunks/{reference-0gg825j3.js → file-mutation-7hrh0yhw.js} +3 -3
- package/dist/chunks/{reference-ma2yn7zc.js → file-mutation-7mzanbhg.js} +30 -30
- package/dist/chunks/{reference-yjvnj1zk.js → file-mutation-7ncrrmyf.js} +11 -11
- package/dist/chunks/{reference-y2r3h4fb.js → file-mutation-7q8hkdsk.js} +15 -15
- package/dist/chunks/{reference-sv8w0sp0.js → file-mutation-7tbm9b7t.js} +3 -3
- package/dist/chunks/{reference-mnkndwyg.js → file-mutation-80rcay5r.js} +8 -8
- package/dist/chunks/{reference-fxpk8e1k.js → file-mutation-82mxp87a.js} +41 -41
- package/dist/chunks/{reference-7vvdj7v1.js → file-mutation-8443s99e.js} +15 -15
- package/dist/chunks/{reference-8d7r5vzw.js → file-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{reference-6e87vakz.js → file-mutation-8ygpbkv1.js} +16 -16
- package/dist/chunks/{reference-11pm3r9v.js → file-mutation-908kwkj3.js} +12 -12
- package/dist/chunks/{reference-jexxy024.js → file-mutation-91m9hd8f.js} +3 -3
- package/dist/chunks/{reference-51f5btjf.js → file-mutation-93ygb5af.js} +6 -6
- package/dist/chunks/{reference-gfvb90ym.js → file-mutation-94ek1h2f.js} +2 -2
- package/dist/chunks/{reference-pntwmbjc.js → file-mutation-9ecw5ke1.js} +8 -8
- package/dist/chunks/{reference-wsrgfmp7.js → file-mutation-9r9g3gnb.js} +8 -8
- package/dist/chunks/{reference-xp3d2160.js → file-mutation-a1dcbnh1.js} +14 -14
- package/dist/chunks/{reference-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{reference-zvteq2sz.js → file-mutation-annjwsdj.js} +37 -37
- package/dist/chunks/{reference-hmmwrfz7.js → file-mutation-arws8trd.js} +4 -4
- package/dist/chunks/{reference-4yner5sa.js → file-mutation-aztrj7be.js} +15 -15
- package/dist/chunks/{reference-a3r4dcrj.js → file-mutation-b07rpg7m.js} +2 -2
- package/dist/chunks/{reference-afq9djet.js → file-mutation-b0g280va.js} +20 -20
- package/dist/chunks/{reference-fydrzrkb.js → file-mutation-b0rtdght.js} +11 -11
- package/dist/chunks/{reference-4a6kxgsg.js → file-mutation-b2g6p7zb.js} +9 -9
- package/dist/chunks/{reference-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{reference-f6rweyq9.js → file-mutation-b9frkjp9.js} +1 -1
- package/dist/chunks/{reference-faj6f0em.js → file-mutation-ba1mv5p0.js} +3 -3
- package/dist/chunks/{reference-vwfyqj1a.js → file-mutation-bfn9xngp.js} +18 -18
- package/dist/chunks/{reference-q6cph699.js → file-mutation-bhp9zwz7.js} +24 -24
- package/dist/chunks/{reference-ddg1q8r0.js → file-mutation-bjgnzx8v.js} +15 -15
- package/dist/chunks/{reference-q72jbytn.js → file-mutation-bmb3ej5t.js} +4 -4
- package/dist/chunks/{reference-5vyyh9tt.js → file-mutation-bqdk09cg.js} +37 -37
- package/dist/chunks/{reference-ws016w0z.js → file-mutation-bvb037bs.js} +3 -3
- package/dist/chunks/{reference-d7mqv6pa.js → file-mutation-bw35qwa5.js} +1 -1
- package/dist/chunks/{reference-ypd49sxc.js → file-mutation-bw4jwp7x.js} +11 -11
- package/dist/chunks/{reference-bqszwq89.js → file-mutation-c4y5a9cq.js} +8 -8
- package/dist/chunks/{reference-1zys84da.js → file-mutation-cbbagb43.js} +11 -11
- package/dist/chunks/{reference-f26ddygf.js → file-mutation-cekhgrsm.js} +81 -81
- package/dist/chunks/{reference-5jrh7n3y.js → file-mutation-chbxjcn8.js} +9 -9
- package/dist/chunks/{reference-54tcyq79.js → file-mutation-ckecvw8r.js} +2 -2
- package/dist/chunks/{reference-djszqvmq.js → file-mutation-cwa6csj7.js} +9 -9
- package/dist/chunks/{reference-9qb76avw.js → file-mutation-d48vtfkp.js} +20 -20
- package/dist/chunks/{reference-y71avatq.js → file-mutation-dpkg50ah.js} +4 -4
- package/dist/chunks/{reference-r9e31c0d.js → file-mutation-dv5spdm5.js} +29 -29
- package/dist/chunks/{reference-kgajg4t2.js → file-mutation-dw698h1a.js} +8 -8
- package/dist/chunks/{reference-v9cwmph0.js → file-mutation-dy8qwv32.js} +25 -25
- package/dist/chunks/{reference-v5hpcsb0.js → file-mutation-e6hmchc5.js} +5 -5
- package/dist/chunks/{reference-t550f9t1.js → file-mutation-eaj1djv9.js} +8 -8
- package/dist/chunks/{reference-dv36yjgc.js → file-mutation-ec9ctddj.js} +5 -5
- package/dist/chunks/{reference-ecfe7b91.js → file-mutation-ecfe7b91.js} +2 -2
- package/dist/chunks/{reference-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{reference-t4m9kaws.js → file-mutation-eq1jxjww.js} +48 -48
- package/dist/chunks/{reference-etq0c3wd.js → file-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{reference-fmfggwz4.js → file-mutation-exq2ffnr.js} +11 -11
- package/dist/chunks/{reference-3eexfaf4.js → file-mutation-eyansxxn.js} +16 -16
- package/dist/chunks/{reference-pwehtxr6.js → file-mutation-ez89fygf.js} +21 -21
- package/dist/chunks/{reference-jvf3yq6v.js → file-mutation-f73rjn58.js} +4 -4
- package/dist/chunks/{reference-nezp3nh3.js → file-mutation-feek47bh.js} +30 -30
- package/dist/chunks/{reference-htqg6e4e.js → file-mutation-fgpb6470.js} +13 -13
- package/dist/chunks/{reference-g74mfj6n.js → file-mutation-fhs97t90.js} +9 -9
- package/dist/chunks/{reference-z98sedxz.js → file-mutation-fj17yqcr.js} +3 -3
- package/dist/chunks/{reference-14794zc1.js → file-mutation-fsmjrpwr.js} +6 -6
- package/dist/chunks/{reference-fqjhatxe.js → file-mutation-fss11zrv.js} +30 -30
- package/dist/chunks/{reference-yfz2gavf.js → file-mutation-fwg4bfmy.js} +5 -5
- package/dist/chunks/{reference-cyww2hg1.js → file-mutation-fyrmabcy.js} +8 -8
- package/dist/chunks/{reference-6hqe4q59.js → file-mutation-g4nge062.js} +13 -13
- package/dist/chunks/{reference-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{reference-yyb7tjpc.js → file-mutation-gv6a8nnw.js} +2 -2
- package/dist/chunks/{reference-vhfvd2jp.js → file-mutation-gz2b78z0.js} +22 -22
- package/dist/chunks/{reference-chweyq95.js → file-mutation-gzwr95fx.js} +6 -6
- package/dist/chunks/{reference-177cmxdg.js → file-mutation-h22dswsw.js} +19 -19
- package/dist/chunks/{reference-44zaxtg7.js → file-mutation-h2j90xdb.js} +23 -23
- package/dist/chunks/{reference-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{reference-t4btr8yn.js → file-mutation-hbj37746.js} +20 -20
- package/dist/chunks/{reference-fh8xxmnr.js → file-mutation-hekxc47r.js} +12 -10
- package/dist/chunks/{reference-yw63brvc.js → file-mutation-hjtdmxqs.js} +13 -13
- package/dist/chunks/{reference-4xz89tjk.js → file-mutation-hkfg6fzm.js} +5 -5
- package/dist/chunks/{reference-rer9h1m0.js → file-mutation-hzxg5djm.js} +16 -16
- package/dist/chunks/{reference-thjmag0n.js → file-mutation-j0b1x3jn.js} +14 -14
- package/dist/chunks/{reference-0h711vda.js → file-mutation-j2978cmg.js} +46 -46
- package/dist/chunks/{reference-j56e64zr.js → file-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/{reference-aqeafnz7.js → file-mutation-j64p557d.js} +14 -14
- package/dist/chunks/{reference-kb3wdknj.js → file-mutation-jarn1zxe.js} +6 -6
- package/dist/chunks/{reference-w6yg8354.js → file-mutation-jazhghcp.js} +11 -11
- package/dist/chunks/{reference-2t8jpbpj.js → file-mutation-jfyc1maa.js} +12 -12
- package/dist/chunks/{reference-yfxpx2t9.js → file-mutation-jj5netzx.js} +9 -9
- package/dist/chunks/{reference-xg0dkexn.js → file-mutation-jk58jcy1.js} +16 -16
- package/dist/chunks/{reference-yead9t7b.js → file-mutation-jk776ydv.js} +6 -6
- package/dist/chunks/{reference-8ha6ga5e.js → file-mutation-jsb3pxss.js} +8 -8
- package/dist/chunks/{reference-0m9cq689.js → file-mutation-jshgtcbt.js} +13 -13
- package/dist/chunks/{reference-a6fdbjg5.js → file-mutation-jsx6v7sj.js} +11 -11
- package/dist/chunks/{reference-z4470vjq.js → file-mutation-jvy91fcn.js} +26 -26
- package/dist/chunks/{reference-nrc70r1t.js → file-mutation-jxg9h7h6.js} +47 -47
- package/dist/chunks/{reference-24mjcg6m.js → file-mutation-k18pbb1y.js} +8 -8
- package/dist/chunks/{reference-hz0q9sdq.js → file-mutation-k1qrnqst.js} +8 -8
- package/dist/chunks/{reference-k3c624dm.js → file-mutation-k3c624dm.js} +3 -3
- package/dist/chunks/{reference-fgbgrse6.js → file-mutation-ka6f9z9r.js} +5 -5
- package/dist/chunks/{reference-81bye27z.js → file-mutation-kc6k5esa.js} +24 -24
- package/dist/chunks/{reference-rr9dycgk.js → file-mutation-kwqt7trd.js} +7 -7
- package/dist/chunks/{reference-pmwpe40e.js → file-mutation-kzc3h1h3.js} +4 -4
- package/dist/chunks/{reference-q2s2wz1h.js → file-mutation-m1hk3fbq.js} +8 -8
- package/dist/chunks/{reference-m3fdjcah.js → file-mutation-m3fdjcah.js} +1 -1
- package/dist/chunks/{reference-b15rjjj6.js → file-mutation-m7h4c5p1.js} +21 -21
- package/dist/chunks/{reference-m77p9bps.js → file-mutation-m7qqma2k.js} +13 -13
- package/dist/chunks/{reference-xkxsh21d.js → file-mutation-m8xex9m9.js} +4 -4
- package/dist/chunks/{reference-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{reference-avbsach8.js → file-mutation-madt145n.js} +20 -20
- package/dist/chunks/{reference-mjymc32g.js → file-mutation-magykp64.js} +4 -4
- package/dist/chunks/{reference-bg7sr6g1.js → file-mutation-mdw2h4tg.js} +5 -5
- package/dist/chunks/{reference-p9g6edyn.js → file-mutation-mepdzt2d.js} +9 -9
- package/dist/chunks/{reference-1ygqh575.js → file-mutation-mfqp6xfm.js} +6 -6
- package/dist/chunks/{reference-9j56qjm9.js → file-mutation-mh153f1p.js} +11 -11
- package/dist/chunks/{reference-wnys78fq.js → file-mutation-mksgfzgs.js} +3 -3
- package/dist/chunks/{reference-6fmnkfnr.js → file-mutation-mkwktbjz.js} +20 -20
- package/dist/chunks/{reference-yf72js65.js → file-mutation-mqwgf0bk.js} +11 -11
- package/dist/chunks/{reference-3s9dhbpg.js → file-mutation-mrj8mwf0.js} +28 -28
- package/dist/chunks/{reference-g4x6f0m8.js → file-mutation-n08rr4pq.js} +15 -15
- package/dist/chunks/{reference-wqkzg7sy.js → file-mutation-n24gc8vs.js} +11 -11
- package/dist/chunks/{reference-0jq9fyba.js → file-mutation-n37c4crj.js} +9 -9
- package/dist/chunks/{reference-fzts1kpm.js → file-mutation-n3hytwrq.js} +11 -11
- package/dist/chunks/{reference-nc0myf7t.js → file-mutation-n5anf3fb.js} +11 -11
- package/dist/chunks/{reference-5958cd08.js → file-mutation-n61sj0zv.js} +25 -25
- package/dist/chunks/{reference-5na37vb4.js → file-mutation-n7y60bnp.js} +24 -24
- package/dist/chunks/{reference-8pn44ehn.js → file-mutation-n92w27pw.js} +10 -10
- package/dist/chunks/{reference-0kfypxfq.js → file-mutation-na5yh9md.js} +18 -18
- package/dist/chunks/{reference-h3h6bw0z.js → file-mutation-nn2w30r8.js} +18 -18
- package/dist/chunks/{reference-cpy6gm2a.js → file-mutation-nqnxh7mc.js} +4 -4
- package/dist/chunks/{reference-2e6dphxw.js → file-mutation-nzdeb66t.js} +9 -9
- package/dist/chunks/{reference-h6r3nrb9.js → file-mutation-nzyhnfxz.js} +4 -4
- package/dist/chunks/{reference-t7y3dpm9.js → file-mutation-p4etetpf.js} +26 -26
- package/dist/chunks/{reference-4j4tgtq5.js → file-mutation-p6wxjpka.js} +4 -4
- package/dist/chunks/{reference-v8nsmxgn.js → file-mutation-pb1eahw5.js} +8 -8
- package/dist/chunks/{reference-bsqx64w4.js → file-mutation-pcxghkgz.js} +4 -4
- package/dist/chunks/{reference-vvfvm01x.js → file-mutation-pdn3apj7.js} +13 -13
- package/dist/chunks/{reference-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{reference-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{reference-sqmzwr9m.js → file-mutation-px76j0pk.js} +9 -9
- package/dist/chunks/{reference-0z2rg4rm.js → file-mutation-pz7cr76j.js} +37 -37
- package/dist/chunks/{reference-s31h5w29.js → file-mutation-q241hggs.js} +19 -19
- package/dist/chunks/{reference-cab88dx5.js → file-mutation-q2y76nmn.js} +20 -20
- package/dist/chunks/{reference-jkcb4v42.js → file-mutation-q5ne48hz.js} +13 -13
- package/dist/chunks/{reference-nqw1h68k.js → file-mutation-q752a12t.js} +18 -18
- package/dist/chunks/{reference-td3sphkw.js → file-mutation-q9mp86yc.js} +13 -13
- package/dist/chunks/{reference-9qs04gms.js → file-mutation-qcc5r1n1.js} +19 -19
- package/dist/chunks/{reference-v1h7jmyp.js → file-mutation-qcdf9a5m.js} +1 -1
- package/dist/chunks/{reference-2k8khapm.js → file-mutation-qgn6gcr1.js} +5 -5
- package/dist/chunks/file-mutation-qhp8asra.js +252 -0
- package/dist/chunks/{reference-pnde1qtn.js → file-mutation-qm67wygm.js} +4 -4
- package/dist/chunks/{reference-5sj81wm5.js → file-mutation-qr8csav2.js} +5 -5
- package/dist/chunks/{reference-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{reference-8vsk6s2a.js → file-mutation-qvcq4vww.js} +21 -21
- package/dist/chunks/{reference-krnctd4r.js → file-mutation-r4jmx1pn.js} +14 -14
- package/dist/chunks/{reference-31ywrma3.js → file-mutation-r4m9e03x.js} +4 -4
- package/dist/chunks/file-mutation-rap9a73h.js +18 -0
- package/dist/chunks/{reference-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{reference-eqy59tqm.js → file-mutation-rq2znn32.js} +29 -29
- package/dist/chunks/{reference-wbrq6ka8.js → file-mutation-rqnjnaqb.js} +4 -4
- package/dist/chunks/{reference-yws4pbzc.js → file-mutation-sbwvsvgv.js} +30 -30
- package/dist/chunks/{reference-e12g3w7z.js → file-mutation-skv4x9jf.js} +16 -16
- package/dist/chunks/{reference-8aaqm6qj.js → file-mutation-sm965ndy.js} +8 -8
- package/dist/chunks/{reference-sx1n432n.js → file-mutation-sx1n432n.js} +1 -1
- package/dist/chunks/{reference-8ryk0bb9.js → file-mutation-sznyev98.js} +5 -5
- package/dist/chunks/{reference-34rkz0x9.js → file-mutation-t6vsspdg.js} +4 -4
- package/dist/chunks/{reference-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{reference-tcezcvh9.js → file-mutation-tcezcvh9.js} +1 -1
- package/dist/chunks/{reference-nx90x7kt.js → file-mutation-tcwxap8g.js} +16 -16
- package/dist/chunks/{reference-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{reference-pmjz3wtp.js → file-mutation-tknscx6b.js} +27 -27
- package/dist/chunks/{reference-jqcdp112.js → file-mutation-tmkkbmay.js} +26 -26
- package/dist/chunks/{reference-p37cw4rj.js → file-mutation-tpw6cwsb.js} +8 -8
- package/dist/chunks/{reference-tvtrv512.js → file-mutation-tvtrv512.js} +1 -1
- package/dist/chunks/{reference-qb1aeqnr.js → file-mutation-v0j3551j.js} +26 -26
- package/dist/chunks/{reference-n2bd736z.js → file-mutation-v0mz33x9.js} +95 -102
- package/dist/chunks/{reference-156a9j9s.js → file-mutation-v434jxdj.js} +20 -20
- package/dist/chunks/{reference-bdqrk2vk.js → file-mutation-va5qff5x.js} +4 -4
- package/dist/chunks/{reference-hkcbg3z4.js → file-mutation-vbr7z2an.js} +7 -7
- package/dist/chunks/{reference-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{reference-h9pnpq88.js → file-mutation-vfjhn2wd.js} +4 -4
- package/dist/chunks/{reference-jm5a5pey.js → file-mutation-vq1w5bxf.js} +20 -20
- package/dist/chunks/{reference-mev7xm92.js → file-mutation-vwmcz341.js} +25 -25
- package/dist/chunks/{reference-vzcthcp8.js → file-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{reference-vzs5sf6e.js → file-mutation-vzs5sf6e.js} +1 -1
- package/dist/chunks/{reference-tdkwvqdy.js → file-mutation-w16ewm88.js} +32 -32
- package/dist/chunks/{reference-7zg2wc6k.js → file-mutation-w1hpm58k.js} +42 -42
- package/dist/chunks/{reference-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{reference-3b3jy36q.js → file-mutation-w579p95t.js} +13 -13
- package/dist/chunks/{reference-be7pa3qf.js → file-mutation-w5sez581.js} +8 -8
- package/dist/chunks/{reference-0b8npddv.js → file-mutation-w8ferkse.js} +10 -10
- package/dist/chunks/{reference-n11m6crk.js → file-mutation-was05px2.js} +23 -23
- package/dist/chunks/{reference-psazpmmj.js → file-mutation-wd3x2cqz.js} +2 -2
- package/dist/chunks/{reference-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{reference-3sph9hsg.js → file-mutation-wf80fvfx.js} +14 -14
- package/dist/chunks/{reference-ssrktsty.js → file-mutation-whrzd189.js} +20 -20
- package/dist/chunks/file-mutation-wjf1m7fj.js +26 -0
- package/dist/chunks/{reference-axd321tm.js → file-mutation-wmnz76n2.js} +2 -2
- package/dist/chunks/{reference-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{reference-jxxs5s4h.js → file-mutation-x5pftk9r.js} +322 -326
- package/dist/chunks/{reference-bkyy3065.js → file-mutation-x9v2s4mt.js} +36 -36
- package/dist/chunks/{reference-t265p2pq.js → file-mutation-xatxs8ze.js} +4 -4
- package/dist/chunks/{reference-c4989wfm.js → file-mutation-xdcdg5gg.js} +15 -15
- package/dist/chunks/{reference-ww5pdtvn.js → file-mutation-xdyqf2ep.js} +26 -26
- package/dist/chunks/{reference-dmqcgk4z.js → file-mutation-xkntkrq7.js} +5 -5
- package/dist/chunks/{reference-fxb44a1q.js → file-mutation-xptjm771.js} +13 -13
- package/dist/chunks/{reference-qwkdrh69.js → file-mutation-xv48q100.js} +28 -28
- package/dist/chunks/{reference-b2a4mx33.js → file-mutation-xwm6bryg.js} +4 -4
- package/dist/chunks/{reference-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{reference-ykprmxnv.js → file-mutation-yksbe7bm.js} +2 -2
- package/dist/chunks/{reference-bhvqvkry.js → file-mutation-yrgme7j0.js} +12 -12
- package/dist/chunks/{reference-yrhqyw5v.js → file-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{reference-yrznvahk.js → file-mutation-yrznvahk.js} +2 -2
- package/dist/chunks/{reference-bf7x6yrd.js → file-mutation-yt06qecn.js} +27 -27
- package/dist/chunks/{reference-bjtzbw4r.js → file-mutation-z07pqspn.js} +3 -3
- package/dist/chunks/{reference-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{reference-z63w68vq.js → file-mutation-z63w68vq.js} +2 -2
- package/dist/chunks/{reference-3v9eaqqc.js → file-mutation-z6ze4cqf.js} +8 -8
- package/dist/chunks/{reference-b4tbyby1.js → file-mutation-zcnbza31.js} +28 -28
- package/dist/chunks/{reference-rq775frq.js → file-mutation-zeh9ct20.js} +2 -2
- package/dist/chunks/{reference-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{reference-1qadeb1c.js → file-mutation-zwy3hb2f.js} +21 -21
- package/dist/chunks/{reference-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -124
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -372
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +98 -98
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- package/dist/git.js +6 -6
- 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 +91 -91
- 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/id/id.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 +362 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -360
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +106 -106
- package/dist/mcp/instructions.js +124 -124
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +99 -99
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +94 -94
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -161
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -353
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +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 +221 -221
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +90 -90
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +140 -144
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- 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 +123 -123
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +114 -114
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +217 -217
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +8 -8
- package/dist/types/session/compaction.d.ts +30 -55
- 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 +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +1 -1
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/reference-4wvg2h98.js +0 -252
- package/dist/chunks/reference-587j3zfx.js +0 -39
- package/dist/chunks/reference-5kveh0cp.js +0 -26
- package/dist/chunks/reference-dxj72tfx.js +0 -18
- package/dist/chunks/reference-s3adcg6q.js +0 -624
- package/dist/plugin/compaction.js +0 -136
- package/dist/types/plugin/compaction.d.ts +0 -3
- /package/dist/chunks/{reference-0mesazry.js → file-mutation-0mesazry.js} +0 -0
- /package/dist/chunks/{reference-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{reference-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{reference-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{reference-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{reference-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{reference-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{reference-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{reference-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{reference-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{reference-34c7v6d4.js → file-mutation-34c7v6d4.js} +0 -0
- /package/dist/chunks/{reference-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{reference-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{reference-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{reference-3w5fmr99.js → file-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{reference-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{reference-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{reference-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{reference-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{reference-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{reference-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{reference-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{reference-5qd3pb7m.js → file-mutation-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{reference-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{reference-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{reference-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{reference-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{reference-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{reference-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{reference-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{reference-922hggd3.js → file-mutation-922hggd3.js} +0 -0
- /package/dist/chunks/{reference-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{reference-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{reference-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{reference-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{reference-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{reference-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{reference-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{reference-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{reference-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{reference-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{reference-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{reference-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{reference-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{reference-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{reference-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{reference-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{reference-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{reference-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{reference-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{reference-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{reference-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{reference-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{reference-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{reference-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{reference-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{reference-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{reference-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{reference-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{reference-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{reference-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{reference-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{reference-hjbc5kem.js → file-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{reference-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{reference-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{reference-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{reference-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{reference-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{reference-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{reference-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{reference-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{reference-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{reference-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{reference-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{reference-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{reference-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{reference-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{reference-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{reference-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{reference-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{reference-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{reference-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{reference-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{reference-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{reference-sk3qaz4a.js → file-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{reference-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{reference-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{reference-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{reference-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{reference-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{reference-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{reference-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{reference-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{reference-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{reference-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{reference-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{reference-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{reference-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2,
|
|
5
5
|
typeFollowing2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-2a5m3afh.js";
|
|
7
7
|
import {
|
|
8
8
|
execDefaults2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-1dazxqgg.js";
|
|
10
10
|
import {
|
|
11
11
|
makeLocalDriver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-b6gygkdw.js";
|
|
13
13
|
import {
|
|
14
14
|
makeMemoryDriver2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
17
|
Service80,
|
|
18
18
|
node84
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-wmnz76n2.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service69,
|
|
22
|
+
node72
|
|
23
|
+
} from "./file-mutation-m7h4c5p1.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/environment/environment.ts
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service54,
|
|
33
|
+
node: () => node58
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service54,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node58,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service54 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
65
|
const location = yield* Service80;
|
|
66
|
-
const workspace = yield*
|
|
66
|
+
const workspace = yield* Service69;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service54.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node58 = makeLocationNode({
|
|
71
|
+
service: Service54,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node, node84,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node84, node72]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service54, node58, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
node86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-607q5haz.js";
|
|
7
7
|
import {
|
|
8
8
|
Service80,
|
|
9
9
|
node84
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-wmnz76n2.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
15
|
make12
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-mksgfzgs.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service23,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node26
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,9 +31,9 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service23 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
36
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
37
37
|
const location = yield* Service80;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
39
|
const git = yield* make12;
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service23.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node26 = makeLocationNode({
|
|
61
|
+
service: Service23,
|
|
62
62
|
layer,
|
|
63
63
|
deps: [node84, Global.node, node86, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service23, node26, exports_strategies };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-ba1mv5p0.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service33,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service33 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service33.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service33, awaitActivation2, exports_service };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-r4m9e03x.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
ID8,
|
|
11
|
+
Service67,
|
|
12
|
+
node70,
|
|
13
|
+
Event16
|
|
14
|
+
} from "./file-mutation-dv5spdm5.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-nzyhnfxz.js";
|
|
18
18
|
import {
|
|
19
19
|
Service80,
|
|
20
20
|
node84
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-mutation-wmnz76n2.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -37,13 +37,13 @@ var exports_provider3 = {};
|
|
|
37
37
|
__export(exports_provider3, {
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
|
-
Event: () =>
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
40
|
+
Event: () => Event15,
|
|
41
|
+
ID: () => ID7,
|
|
42
|
+
Info: () => Info22,
|
|
43
43
|
LoadError: () => LoadError3,
|
|
44
44
|
Provider: () => exports_provider3,
|
|
45
|
-
Request: () =>
|
|
46
|
-
Service: () =>
|
|
45
|
+
Request: () => Request2,
|
|
46
|
+
Service: () => Service66,
|
|
47
47
|
Settings: () => Settings2,
|
|
48
48
|
Transport: () => Transport2,
|
|
49
49
|
aisdk: () => aisdk2,
|
|
@@ -53,7 +53,7 @@ __export(exports_provider3, {
|
|
|
53
53
|
mergeOverlay: () => mergeOverlay2,
|
|
54
54
|
modelSettings: () => modelSettings2,
|
|
55
55
|
nativeSettings: () => nativeSettings2,
|
|
56
|
-
node: () =>
|
|
56
|
+
node: () => node69,
|
|
57
57
|
packageName: () => packageName2
|
|
58
58
|
});
|
|
59
59
|
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
@@ -64,8 +64,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
64
64
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
65
65
|
import { Credential } from "@opencode/schema/credential";
|
|
66
66
|
import { freeze } from "immer";
|
|
67
|
-
import { Event as
|
|
68
|
-
var
|
|
67
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
68
|
+
var ID7 = Provider.ID;
|
|
69
69
|
var AISDK_PREFIX2 = "aisdk:";
|
|
70
70
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
71
71
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -206,13 +206,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
206
206
|
return result;
|
|
207
207
|
}, new Map).values());
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Request2 = Provider.Request;
|
|
210
210
|
var Compaction3 = Provider.Compaction;
|
|
211
211
|
var Transport2 = Provider.Transport;
|
|
212
212
|
var Settings2 = Provider.Settings;
|
|
213
|
-
var
|
|
213
|
+
var Info22 = Provider.Info;
|
|
214
214
|
|
|
215
|
-
class
|
|
215
|
+
class Service66 extends Context.Service()("@opencode/Provider") {
|
|
216
216
|
}
|
|
217
217
|
var definitions = new WeakMap;
|
|
218
218
|
function index(providerID, models) {
|
|
@@ -225,9 +225,9 @@ function index(providerID, models) {
|
|
|
225
225
|
definitions.set(models, indexes);
|
|
226
226
|
return result;
|
|
227
227
|
}
|
|
228
|
-
var layer = Layer.effect(
|
|
228
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
229
229
|
const bus = yield* Service83;
|
|
230
|
-
const integrations = yield*
|
|
230
|
+
const integrations = yield* Service67;
|
|
231
231
|
const location = yield* Service80;
|
|
232
232
|
const state = create3({
|
|
233
233
|
name: "provider",
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
239
239
|
const current = records.get(id);
|
|
240
240
|
if (current)
|
|
241
241
|
return current;
|
|
242
|
-
const added = { provider:
|
|
242
|
+
const added = { provider: Info22.empty(id), models: new Map };
|
|
243
243
|
records.set(id, added);
|
|
244
244
|
maps.add(added.models);
|
|
245
245
|
return added;
|
|
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
320
320
|
const available = Array.from(records.values()).filter((record) => {
|
|
321
321
|
if (record.provider.activation === "disabled")
|
|
322
322
|
return false;
|
|
323
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
323
|
+
const integration = byID.get(record.provider.integrationID ?? ID8.make(record.provider.id));
|
|
324
324
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
325
325
|
return false;
|
|
326
326
|
if (record.provider.activation === "enabled")
|
|
@@ -346,8 +346,8 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
346
346
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
|
-
yield* bus.subscribe([
|
|
350
|
-
return
|
|
349
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
350
|
+
return Service66.of({
|
|
351
351
|
transform: state.transform,
|
|
352
352
|
reload: state.reload,
|
|
353
353
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -356,7 +356,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
356
356
|
snapshot
|
|
357
357
|
});
|
|
358
358
|
}));
|
|
359
|
-
var
|
|
359
|
+
var node69 = makeLocationNode({ service: Service66, layer, deps: [node87, node70, node84] });
|
|
360
360
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
361
361
|
const module = yield* Effect.tryPromise({
|
|
362
362
|
try: () => {
|
|
@@ -625,4 +625,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
625
625
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
626
626
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
627
627
|
|
|
628
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
628
|
+
export { rewrite2, native2, exports_aisdk_native, ID7, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info22, Service66, node69, exports_provider3, Event15 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service54
|
|
3
|
+
} from "./file-mutation-qvcq4vww.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -19,7 +19,7 @@ var FORCE_KILL_AFTER = Duration.seconds(2);
|
|
|
19
19
|
var OUTGOING_CAPACITY = 64;
|
|
20
20
|
var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
21
21
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
22
|
-
const environment = yield*
|
|
22
|
+
const environment = yield* Service54;
|
|
23
23
|
const scope = yield* Effect.scope;
|
|
24
24
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
25
25
|
const buffer = new ReadBuffer;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-nzyhnfxz.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-r4m9e03x.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./file-mutation-feek47bh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID8,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-dv5spdm5.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID7,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service66
|
|
20
|
+
} from "./file-mutation-rq2znn32.js";
|
|
21
21
|
import {
|
|
22
22
|
ID6
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-xdyqf2ep.js";
|
|
24
24
|
import {
|
|
25
25
|
load3,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-mutation-9ecw5ke1.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-mutation-n3hytwrq.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID14
|
|
33
|
+
} from "./file-mutation-zwy3hb2f.js";
|
|
34
34
|
|
|
35
35
|
// src/plugin/provider/github-copilot.ts
|
|
36
36
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -62,7 +62,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
62
62
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
63
63
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
64
64
|
var oauth = (app) => ({
|
|
65
|
-
integrationID:
|
|
65
|
+
integrationID: ID8.make("github-copilot"),
|
|
66
66
|
method: {
|
|
67
67
|
id: methodID,
|
|
68
68
|
type: "oauth",
|
|
@@ -160,7 +160,7 @@ var oauth = (app) => ({
|
|
|
160
160
|
var GithubCopilotPlugin2 = define({
|
|
161
161
|
id: "opencode.provider.github.copilot",
|
|
162
162
|
effect: Effect.fn(function* (ctx) {
|
|
163
|
-
const providers = yield*
|
|
163
|
+
const providers = yield* Service66;
|
|
164
164
|
const bus = yield* Service83;
|
|
165
165
|
const loading = Semaphore.makeUnsafe(1);
|
|
166
166
|
const loaded = {};
|
|
@@ -177,7 +177,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
180
|
-
const provider = yield* providers.get(
|
|
180
|
+
const provider = yield* providers.get(ID7.githubCopilot);
|
|
181
181
|
const remote = yield* Effect.tryPromise({
|
|
182
182
|
try: () => load3(url, {
|
|
183
183
|
...provider?.headers,
|
|
@@ -199,7 +199,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
199
199
|
editor.method.update(oauth(ctx.app));
|
|
200
200
|
});
|
|
201
201
|
yield* ctx.provider.transform((evt) => {
|
|
202
|
-
const item = evt.get(
|
|
202
|
+
const item = evt.get(ID7.githubCopilot);
|
|
203
203
|
if (!item)
|
|
204
204
|
return;
|
|
205
205
|
if (loaded.models) {
|
|
@@ -219,17 +219,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
yield* ctx.model.transform((models) => {
|
|
222
|
-
if (models.get(
|
|
223
|
-
models.update(
|
|
222
|
+
if (models.get(ID7.githubCopilot, ID6.make("gpt-5-chat-latest"))) {
|
|
223
|
+
models.update(ID7.githubCopilot, ID6.make("gpt-5-chat-latest"), (model) => {
|
|
224
224
|
model.enabled = false;
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
229
|
-
yield* bus.subscribe(
|
|
229
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID8.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
230
230
|
yield* refresh().pipe(Effect.forkScoped);
|
|
231
231
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
232
|
-
if (evt.model.providerID !==
|
|
232
|
+
if (evt.model.providerID !== ID7.githubCopilot)
|
|
233
233
|
return;
|
|
234
234
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
235
235
|
return;
|
|
@@ -238,7 +238,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
238
238
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
239
239
|
}));
|
|
240
240
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
241
|
-
if (evt.model.providerID !==
|
|
241
|
+
if (evt.model.providerID !== ID7.githubCopilot)
|
|
242
242
|
return;
|
|
243
243
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
244
244
|
return;
|
|
@@ -248,13 +248,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
248
248
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
249
249
|
if (interaction !== "conversation-agent")
|
|
250
250
|
evt.headers["x-initiator"] = "agent";
|
|
251
|
-
}), { providerID:
|
|
251
|
+
}), { providerID: ID7.githubCopilot });
|
|
252
252
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
253
|
-
if (evt.model.providerID !==
|
|
253
|
+
if (evt.model.providerID !== ID7.githubCopilot)
|
|
254
254
|
return;
|
|
255
255
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
256
256
|
return;
|
|
257
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
257
|
+
const agent = yield* ctx.agent.get({ agentID: ID14.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
258
258
|
return;
|
|
259
259
|
}));
|
|
260
260
|
if (agent?.data.model)
|
|
@@ -265,9 +265,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
265
265
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
266
266
|
return;
|
|
267
267
|
}));
|
|
268
|
-
}), { providerID:
|
|
268
|
+
}), { providerID: ID7.githubCopilot });
|
|
269
269
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
270
|
-
if (evt.model.providerID !==
|
|
270
|
+
if (evt.model.providerID !== ID7.githubCopilot)
|
|
271
271
|
return;
|
|
272
272
|
const token = evt.request.headers.get("x-api-key");
|
|
273
273
|
if (!token)
|
|
@@ -275,9 +275,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
275
275
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
276
276
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
277
277
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
278
|
-
}), { providerID:
|
|
278
|
+
}), { providerID: ID7.githubCopilot });
|
|
279
279
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
280
|
-
if (evt.model.providerID !==
|
|
280
|
+
if (evt.model.providerID !== ID7.githubCopilot)
|
|
281
281
|
return;
|
|
282
282
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
283
283
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-ba1mv5p0.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service60
|
|
6
|
+
} from "./file-mutation-93ygb5af.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-rap9a73h.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-p6wxjpka.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-z6ze4cqf.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-mrj8mwf0.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service26
|
|
21
|
+
} from "./file-mutation-39thqb0z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
|
-
var
|
|
28
|
-
__export(
|
|
29
|
-
SessionGenerate: () =>
|
|
27
|
+
var exports_generate = {};
|
|
28
|
+
__export(exports_generate, {
|
|
29
|
+
SessionGenerate: () => exports_generate,
|
|
30
30
|
generate: () => generate2
|
|
31
31
|
});
|
|
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* Service60;
|
|
36
36
|
const database = yield* Service84;
|
|
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* Service26;
|
|
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, provenance2(model) ?? "local");
|
|
@@ -71,4 +71,4 @@ var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
|
71
71
|
}).pipe(instances.provide(input.session));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
export { generate2,
|
|
74
|
+
export { generate2, exports_generate };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service38,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node41
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service38 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service38, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service38.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service48, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node41 = makeGlobalNode({ service: Service38, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service38, node41, exports_environment };
|