@opencode/core 0.0.0-dev-20032 → 0.0.0-dev-20033
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/{agent-vwxj763t.js → location-mutation-0476keb0.js} +9 -9
- package/dist/chunks/{agent-c580fjmb.js → location-mutation-0ah1yex1.js} +5 -5
- package/dist/chunks/{agent-6a91tj2m.js → location-mutation-0cxgwq0r.js} +10 -10
- package/dist/chunks/{agent-mt0p4caj.js → location-mutation-0d3c170h.js} +22 -22
- package/dist/chunks/{agent-p44d8wdy.js → location-mutation-0f9afca0.js} +5 -5
- package/dist/chunks/{agent-x002dt7s.js → location-mutation-0kcpwvdq.js} +37 -37
- package/dist/chunks/{agent-09e1c8fx.js → location-mutation-0mbkcvfa.js} +32 -32
- package/dist/chunks/location-mutation-0mesazry.js +4 -0
- package/dist/chunks/{agent-0paq2nw3.js → location-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{agent-f62qkzqr.js → location-mutation-0ryd0fps.js} +5 -5
- package/dist/chunks/{agent-pmr4s4kc.js → location-mutation-0v53mg2y.js} +4 -4
- package/dist/chunks/{agent-vbw49qtd.js → location-mutation-0y3tcx3y.js} +39 -39
- package/dist/chunks/{agent-jasw7syv.js → location-mutation-0yxt0fzt.js} +33 -33
- package/dist/chunks/{agent-0cpkxb4n.js → location-mutation-1126x7dj.js} +48 -48
- package/dist/chunks/{agent-smaz7q15.js → location-mutation-11pdtyhd.js} +22 -22
- package/dist/chunks/{agent-9kw00vxr.js → location-mutation-16nrxpzh.js} +19 -19
- package/dist/chunks/{agent-pc232jaj.js → location-mutation-17m5mchg.js} +44 -44
- package/dist/chunks/{agent-twvyfk9y.js → location-mutation-182ab1xk.js} +20 -20
- package/dist/chunks/{agent-mhkvc446.js → location-mutation-1bbkgx8g.js} +3 -3
- package/dist/chunks/{agent-1dazxqgg.js → location-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{agent-dm43cxx4.js → location-mutation-1de3wz0w.js} +20 -20
- package/dist/chunks/{agent-a624avds.js → location-mutation-1j77b7ta.js} +39 -39
- package/dist/chunks/{agent-5gtvee54.js → location-mutation-1nrrh40f.js} +6 -6
- package/dist/chunks/{agent-x2qdxhwm.js → location-mutation-1tvs79at.js} +8 -8
- package/dist/chunks/{agent-21r38tys.js → location-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{agent-2a5m3afh.js → location-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{agent-57ez7d0k.js → location-mutation-2fgn2we9.js} +9 -9
- package/dist/chunks/{agent-a3m1esjv.js → location-mutation-2hyvpaaa.js} +182 -182
- package/dist/chunks/{agent-0jwsre1p.js → location-mutation-2k8khapm.js} +5 -5
- package/dist/chunks/{agent-y11d2ej4.js → location-mutation-2k8mrmw0.js} +24 -24
- package/dist/chunks/{agent-9z1qqh7b.js → location-mutation-2rhxvkcj.js} +9 -9
- package/dist/chunks/{agent-jrxvx6f5.js → location-mutation-2stzdrtj.js} +14 -14
- package/dist/chunks/{agent-b0rer08y.js → location-mutation-2xd2a7xt.js} +13 -13
- package/dist/chunks/{agent-ne87pwxh.js → location-mutation-31axeyek.js} +46 -46
- package/dist/chunks/{agent-hcm8gwy7.js → location-mutation-3286khgb.js} +15 -15
- package/dist/chunks/{agent-d1e9an0g.js → location-mutation-33ygfhj8.js} +19 -19
- package/dist/chunks/{agent-mskg3jyh.js → location-mutation-35yy44ty.js} +24 -24
- package/dist/chunks/{agent-j710vash.js → location-mutation-3672w6ev.js} +12 -12
- package/dist/chunks/{agent-3fc6dm20.js → location-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{agent-kpnqw0e7.js → location-mutation-3g3mmpj3.js} +6 -6
- package/dist/chunks/{agent-036p5t1s.js → location-mutation-3hdyanjz.js} +4 -4
- package/dist/chunks/{agent-3hepkmqq.js → location-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{agent-96sewvm2.js → location-mutation-3m3facqp.js} +20 -20
- package/dist/chunks/{agent-818pfwc9.js → location-mutation-3pbjq009.js} +8 -8
- package/dist/chunks/{agent-3smtnn6g.js → location-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{agent-hb8h3vmt.js → location-mutation-3tdg7zvz.js} +41 -41
- package/dist/chunks/{agent-3tq5qxbk.js → location-mutation-3tq5qxbk.js} +2 -2
- package/dist/chunks/{agent-3tvqynh2.js → location-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{agent-3zsf4n22.js → location-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{agent-v6zzpp1a.js → location-mutation-48m92b7p.js} +3 -3
- package/dist/chunks/{agent-trkg9a33.js → location-mutation-4aj8pjfh.js} +23 -23
- package/dist/chunks/{agent-xepqwmf1.js → location-mutation-4k2tzc3x.js} +16 -16
- package/dist/chunks/{agent-6gm4jdfq.js → location-mutation-4kcqhn4d.js} +5 -5
- package/dist/chunks/{agent-vq4vz5jx.js → location-mutation-4v1st6vt.js} +16 -16
- package/dist/chunks/{agent-6tk3k0am.js → location-mutation-55jzxn1z.js} +14 -14
- package/dist/chunks/{agent-1ygqh575.js → location-mutation-56gdpj1q.js} +9 -9
- package/dist/chunks/{agent-57b9ws8p.js → location-mutation-57b9ws8p.js} +1 -1
- package/dist/chunks/{agent-hpkeaty4.js → location-mutation-5a6sb5aa.js} +20 -20
- package/dist/chunks/{agent-5daktx2q.js → location-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{agent-5ekn9679.js → location-mutation-5ekn9679.js} +1 -1
- package/dist/chunks/{agent-rb647vmk.js → location-mutation-5mg79ja1.js} +24 -24
- package/dist/chunks/{agent-h6r3nrb9.js → location-mutation-5mtzsd3b.js} +4 -4
- package/dist/chunks/{agent-a1gfr0v3.js → location-mutation-5sgg7bt6.js} +15 -15
- package/dist/chunks/{agent-6pt3k1ax.js → location-mutation-5sgqv57k.js} +22 -22
- package/dist/chunks/{agent-jcec2fc7.js → location-mutation-5ss3w5rs.js} +47 -47
- package/dist/chunks/{agent-5t3nmthw.js → location-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{agent-qsaqrdx1.js → location-mutation-5vhjg0x8.js} +11 -11
- package/dist/chunks/{agent-aengndq2.js → location-mutation-5xk7vzw2.js} +26 -26
- package/dist/chunks/{agent-zt1q6574.js → location-mutation-61bj6qxp.js} +11 -11
- package/dist/chunks/{agent-669tq793.js → location-mutation-669tq793.js} +1 -1
- package/dist/chunks/{agent-ywr1yhv3.js → location-mutation-66axxmz4.js} +9 -9
- package/dist/chunks/{agent-z6vqazby.js → location-mutation-6b00zg80.js} +5 -5
- package/dist/chunks/{agent-993beb9q.js → location-mutation-6c9gw431.js} +14 -14
- package/dist/chunks/{agent-wd0m6wek.js → location-mutation-6cfhdf3e.js} +32 -32
- package/dist/chunks/{agent-efp767h6.js → location-mutation-6efns8wf.js} +11 -11
- package/dist/chunks/{agent-2402vzrj.js → location-mutation-6h73sxmp.js} +5 -5
- package/dist/chunks/{agent-1mw3ztx0.js → location-mutation-6hv36207.js} +10 -10
- package/dist/chunks/{agent-42dpyp2f.js → location-mutation-6jwa23mg.js} +13 -13
- package/dist/chunks/{agent-6msgmcgs.js → location-mutation-6msgmcgs.js} +1 -1
- package/dist/chunks/{agent-8rch3mzj.js → location-mutation-6pnqrt06.js} +14 -14
- package/dist/chunks/{agent-cr6qanjc.js → location-mutation-6wchzsn4.js} +61 -61
- package/dist/chunks/{agent-042xvhgw.js → location-mutation-6wxcm30k.js} +13 -13
- package/dist/chunks/{agent-qkaf2nyf.js → location-mutation-77y6kpgx.js} +5 -5
- package/dist/chunks/{agent-7bmhse3q.js → location-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{agent-jvkm5she.js → location-mutation-7q1xd1t5.js} +13 -13
- package/dist/chunks/{agent-5y480sgp.js → location-mutation-7s451enq.js} +8 -8
- package/dist/chunks/{agent-8q7cq0y1.js → location-mutation-7w99qc9d.js} +3 -3
- package/dist/chunks/{agent-z9x99dgf.js → location-mutation-89rqwv2a.js} +28 -28
- package/dist/chunks/{agent-8d7r5vzw.js → location-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{agent-tpth3d6j.js → location-mutation-8g2e475e.js} +22 -22
- package/dist/chunks/{agent-zq2asrye.js → location-mutation-8zh96sms.js} +24 -24
- package/dist/chunks/{agent-ate3yb88.js → location-mutation-9321mna9.js} +3 -3
- package/dist/chunks/{agent-1pj3pseb.js → location-mutation-93tmgf40.js} +15 -15
- package/dist/chunks/{agent-3qf0w8va.js → location-mutation-9447eybt.js} +11 -11
- package/dist/chunks/{agent-94ek1h2f.js → location-mutation-94ek1h2f.js} +2 -2
- package/dist/chunks/{agent-5kz5bk4q.js → location-mutation-954axgpr.js} +10 -10
- package/dist/chunks/{agent-8jp7x2be.js → location-mutation-9eqsn0d4.js} +21 -21
- package/dist/chunks/{agent-pbv8fc70.js → location-mutation-9pxc51yt.js} +26 -26
- package/dist/chunks/{agent-ek0z8tpz.js → location-mutation-9xnycm3j.js} +2 -2
- package/dist/chunks/{agent-zk5n06yq.js → location-mutation-a222jf67.js} +20 -20
- package/dist/chunks/{agent-90j0wwtx.js → location-mutation-a2k1swm6.js} +6 -6
- package/dist/chunks/{agent-aaet6srn.js → location-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{agent-86qzxe6p.js → location-mutation-afrtgck4.js} +4 -4
- package/dist/chunks/{agent-abdgxmtc.js → location-mutation-ajzq7epc.js} +7 -7
- package/dist/chunks/{agent-r7nsrefv.js → location-mutation-ak9msbxp.js} +6 -6
- package/dist/chunks/{agent-kv03vt94.js → location-mutation-b0e2gp5s.js} +10 -10
- package/dist/chunks/{agent-anwzgchg.js → location-mutation-b0mxsgtx.js} +36 -36
- package/dist/chunks/{agent-b6gygkdw.js → location-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{agent-6ze6cnmj.js → location-mutation-babhbb0e.js} +12 -12
- package/dist/chunks/{agent-ym4va9hq.js → location-mutation-bqnpx25c.js} +16 -16
- package/dist/chunks/{agent-k7v2xwv9.js → location-mutation-c0vkr8fz.js} +18 -18
- package/dist/chunks/{agent-e6mjvmeb.js → location-mutation-c451a391.js} +27 -27
- package/dist/chunks/{agent-ncdsqf8r.js → location-mutation-c59wch7e.js} +26 -26
- package/dist/chunks/{agent-rat7368c.js → location-mutation-c5dgc1kz.js} +11 -11
- package/dist/chunks/{agent-mc5vr7h5.js → location-mutation-cdxhvz31.js} +18 -18
- package/dist/chunks/{agent-ckecvw8r.js → location-mutation-ckecvw8r.js} +2 -2
- package/dist/chunks/{agent-st50yqfc.js → location-mutation-cp36jwmw.js} +24 -24
- package/dist/chunks/{agent-e6hd9jay.js → location-mutation-cpy6gm2a.js} +6 -6
- package/dist/chunks/{agent-s7p4phhd.js → location-mutation-cr402dc0.js} +27 -27
- package/dist/chunks/{agent-1sjbhta5.js → location-mutation-ctyyg58g.js} +13 -13
- package/dist/chunks/{agent-8k8b4hth.js → location-mutation-cwq9dvnd.js} +8 -8
- package/dist/chunks/{agent-c3fjamxb.js → location-mutation-cz22139c.js} +4 -4
- package/dist/chunks/{agent-pfrgg7nw.js → location-mutation-czmpb77b.js} +14 -14
- package/dist/chunks/{agent-dda0p7y7.js → location-mutation-d43tgzm4.js} +9 -9
- package/dist/chunks/{agent-87n4nh5h.js → location-mutation-d6frzvcz.js} +25 -25
- package/dist/chunks/{agent-egxpqa30.js → location-mutation-d8zdfjjq.js} +5 -5
- package/dist/chunks/{agent-k0w1ng5j.js → location-mutation-d9xsvaya.js} +24 -24
- package/dist/chunks/{agent-qaw4m7e1.js → location-mutation-ddrvd88x.js} +4 -4
- package/dist/chunks/{agent-rdecwvm0.js → location-mutation-dg2cj1yd.js} +4 -4
- package/dist/chunks/{agent-tz2bjj40.js → location-mutation-dj9sq318.js} +5 -5
- package/dist/chunks/{agent-xrrk0pa1.js → location-mutation-dp1y9vyx.js} +38 -38
- package/dist/chunks/{agent-y71avatq.js → location-mutation-dpkg50ah.js} +4 -4
- package/dist/chunks/{agent-mrzfvsf9.js → location-mutation-e9r5cz82.js} +1 -1
- package/dist/chunks/{agent-4hk0erf7.js → location-mutation-ed5kq3r2.js} +22 -22
- package/dist/chunks/{agent-ef5x83kb.js → location-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{agent-vqc379z4.js → location-mutation-efxr34m3.js} +17 -17
- package/dist/chunks/{agent-ex1m1kp8.js → location-mutation-ehpz93s6.js} +4 -4
- package/dist/chunks/{agent-erw5rpbs.js → location-mutation-erw5rpbs.js} +2 -2
- package/dist/chunks/{agent-etq0c3wd.js → location-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{agent-yk25tvz4.js → location-mutation-ey46wjem.js} +24 -24
- package/dist/chunks/{agent-nj66ywra.js → location-mutation-ez5dttf9.js} +15 -15
- package/dist/chunks/{agent-g190xswt.js → location-mutation-f3ngv102.js} +4 -4
- package/dist/chunks/{agent-d5jz98xq.js → location-mutation-f7bt6hk4.js} +15 -15
- package/dist/chunks/{agent-7797a809.js → location-mutation-f9fagdg1.js} +26 -26
- package/dist/chunks/{agent-fhs97t90.js → location-mutation-fhs97t90.js} +2 -2
- package/dist/chunks/{agent-2fr5yqz7.js → location-mutation-fqxf6ym2.js} +10 -10
- package/dist/chunks/{agent-7232vf31.js → location-mutation-fx0pc3ha.js} +23 -23
- package/dist/chunks/{agent-emypf9yp.js → location-mutation-g2wevp18.js} +17 -17
- package/dist/chunks/{agent-z5985ys6.js → location-mutation-gc3a8bv2.js} +23 -23
- package/dist/chunks/{agent-nav1p6g3.js → location-mutation-gc6tpv1q.js} +8 -8
- package/dist/chunks/{agent-gd4qta3r.js → location-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{agent-ppxegf25.js → location-mutation-gfngyh9n.js} +15 -15
- package/dist/chunks/{agent-b28x5q96.js → location-mutation-ghv1x119.js} +50 -50
- package/dist/chunks/{agent-k0a1k3xn.js → location-mutation-gkb45k2f.js} +7 -7
- package/dist/chunks/{agent-gv6a8nnw.js → location-mutation-gv6a8nnw.js} +2 -2
- package/dist/chunks/{agent-b8bsj8wv.js → location-mutation-h5z1cdbz.js} +19 -19
- package/dist/chunks/{agent-7z7az0f5.js → location-mutation-h6jr292a.js} +4 -4
- package/dist/chunks/{agent-h6vf3j39.js → location-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{agent-5a165npp.js → location-mutation-hjsgmfqs.js} +33 -33
- package/dist/chunks/{agent-t5r9nnk5.js → location-mutation-hmvf075g.js} +29 -29
- package/dist/chunks/{agent-9c3np669.js → location-mutation-hpfvhvya.js} +8 -8
- package/dist/chunks/{agent-zhtpe0kf.js → location-mutation-hsm6rg1p.js} +13 -13
- package/dist/chunks/{agent-b54qgkhb.js → location-mutation-hsxj0tbk.js} +28 -28
- package/dist/chunks/location-mutation-ht5y0zrb.js +18 -0
- package/dist/chunks/{agent-34vjswhe.js → location-mutation-ht7bqe9r.js} +25 -25
- package/dist/chunks/{agent-nf9xdvg6.js → location-mutation-hv1dh0hm.js} +15 -15
- package/dist/chunks/{agent-rp5vjngm.js → location-mutation-j4bv4cz5.js} +15 -15
- package/dist/chunks/{agent-j56e64zr.js → location-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/{agent-7ad9f6we.js → location-mutation-jdp8z0qq.js} +16 -16
- package/dist/chunks/{agent-xcd0eash.js → location-mutation-jhf3jymm.js} +6 -6
- package/dist/chunks/{agent-3dy7ype7.js → location-mutation-k4hdfaf8.js} +5 -5
- package/dist/chunks/{agent-7tgakezr.js → location-mutation-k53npxr2.js} +1 -1
- package/dist/chunks/{agent-egrr39fs.js → location-mutation-k9avtbwf.js} +6 -6
- package/dist/chunks/{agent-d747qbk3.js → location-mutation-kafahprb.js} +8 -8
- package/dist/chunks/{agent-ysjzdycw.js → location-mutation-kcq0y1ne.js} +9 -9
- package/dist/chunks/{agent-atcq0r4a.js → location-mutation-kx2eb1yn.js} +3 -3
- package/dist/chunks/{agent-m3fdjcah.js → location-mutation-m3fdjcah.js} +1 -1
- package/dist/chunks/{agent-th3pkrnx.js → location-mutation-m6h87r9y.js} +4 -4
- package/dist/chunks/{agent-m9w0rfyh.js → location-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{agent-gd4ttfw7.js → location-mutation-mmrm3n1c.js} +14 -14
- package/dist/chunks/{agent-gmjq4p6e.js → location-mutation-mqt5419d.js} +12 -12
- package/dist/chunks/{agent-mj1873cd.js → location-mutation-ms4pyb1d.js} +12 -12
- package/dist/chunks/{agent-tazp3vs0.js → location-mutation-mvksx64m.js} +4 -4
- package/dist/chunks/{agent-j1e4v64e.js → location-mutation-n3pc0es3.js} +28 -28
- package/dist/chunks/{agent-xn74gsdd.js → location-mutation-n7xfswjm.js} +17 -17
- package/dist/chunks/{agent-cyrsh1yr.js → location-mutation-nb36acq4.js} +31 -31
- package/dist/chunks/{agent-qe435bmh.js → location-mutation-ncwexr1x.js} +86 -86
- package/dist/chunks/{agent-5frpvc34.js → location-mutation-nng2ktcm.js} +2 -2
- package/dist/chunks/{agent-768gsh1v.js → location-mutation-nsjkyrtc.js} +5 -5
- package/dist/chunks/{agent-k3c624dm.js → location-mutation-nzks3jc8.js} +3 -3
- package/dist/chunks/{agent-4j387kr6.js → location-mutation-p31wwqk3.js} +16 -16
- package/dist/chunks/{agent-2khwyb0w.js → location-mutation-p6wzjqpv.js} +3 -3
- package/dist/chunks/{agent-4tr6j3yt.js → location-mutation-pcsw2ems.js} +34 -34
- package/dist/chunks/{agent-cmwkp3r5.js → location-mutation-phstrbs2.js} +8 -8
- package/dist/chunks/{agent-pjvnvgmy.js → location-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{agent-pknna89w.js → location-mutation-pknna89w.js} +1 -1
- package/dist/chunks/location-mutation-pp7nh8fz.js +26 -0
- package/dist/chunks/{agent-vv2mzy79.js → location-mutation-pr8zsjjb.js} +15 -15
- package/dist/chunks/{agent-5zwzqxke.js → location-mutation-prwfk4z0.js} +5 -5
- package/dist/chunks/{agent-w1888pr6.js → location-mutation-ps3q9x72.js} +4 -4
- package/dist/chunks/{agent-zqyfehrf.js → location-mutation-q6c3sq23.js} +6 -6
- package/dist/chunks/{agent-34rkz0x9.js → location-mutation-qa3qhgw8.js} +7 -7
- package/dist/chunks/{agent-wdr78amw.js → location-mutation-qa9hp778.js} +17 -17
- package/dist/chunks/{agent-6sfqjq27.js → location-mutation-qdjrgbhx.js} +1 -1
- package/dist/chunks/{agent-cwa6csj7.js → location-mutation-qmqgtz8f.js} +9 -9
- package/dist/chunks/{agent-rgbhby81.js → location-mutation-qpd1z403.js} +16 -16
- package/dist/chunks/{agent-qsdy395h.js → location-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{agent-bgxcxs0p.js → location-mutation-qte5z7bc.js} +5 -5
- package/dist/chunks/{agent-tn5b9xfz.js → location-mutation-r0tsexjd.js} +24 -24
- package/dist/chunks/{agent-j3ntnz47.js → location-mutation-r9k88yn5.js} +10 -10
- package/dist/chunks/{agent-8mfdap3f.js → location-mutation-rc1dmyce.js} +8 -8
- package/dist/chunks/{agent-rdw6cm16.js → location-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{agent-0gdmqesm.js → location-mutation-rhjbct0v.js} +4 -4
- package/dist/chunks/{agent-wtgbwnmd.js → location-mutation-rhnpvtt2.js} +6 -6
- package/dist/chunks/{agent-1q5awywt.js → location-mutation-rmm45jmv.js} +5 -5
- package/dist/chunks/{agent-gre73awd.js → location-mutation-rnnxe44a.js} +4 -4
- package/dist/chunks/location-mutation-rnznfafx.js +503 -0
- package/dist/chunks/{agent-7rz492sz.js → location-mutation-rwqsxa3d.js} +54 -54
- package/dist/chunks/{agent-rny51x47.js → location-mutation-s6gbna7s.js} +11 -11
- package/dist/chunks/{agent-vb9ggsp7.js → location-mutation-sae5cjvq.js} +11 -11
- package/dist/chunks/{agent-depwzj9d.js → location-mutation-sk2hk6tq.js} +9 -9
- package/dist/chunks/{agent-zqqw7vpf.js → location-mutation-st2v0nd0.js} +20 -20
- package/dist/chunks/{agent-s44gg63h.js → location-mutation-syq206ry.js} +10 -10
- package/dist/chunks/{agent-wsyne64r.js → location-mutation-t8yd87gs.js} +11 -11
- package/dist/chunks/{agent-tazgh4e4.js → location-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{agent-tcezcvh9.js → location-mutation-tcezcvh9.js} +1 -1
- package/dist/chunks/{agent-s7xnm3xk.js → location-mutation-tdcn0t3e.js} +5 -5
- package/dist/chunks/{agent-tdstcens.js → location-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{agent-pv8kkmrg.js → location-mutation-tgg7s0qp.js} +6 -6
- package/dist/chunks/{agent-f2szdyjf.js → location-mutation-tkn7td33.js} +3 -3
- package/dist/chunks/{agent-yczq05sr.js → location-mutation-tpmaka30.js} +11 -11
- package/dist/chunks/{agent-w3v1w3dz.js → location-mutation-tpxy60yg.js} +9 -9
- package/dist/chunks/{agent-j9cr01ke.js → location-mutation-tvs85jmj.js} +15 -15
- package/dist/chunks/{agent-tvtrv512.js → location-mutation-tvtrv512.js} +1 -1
- package/dist/chunks/{agent-5j7bry64.js → location-mutation-ty0dtyd1.js} +10 -10
- package/dist/chunks/{agent-8gxqpgph.js → location-mutation-tz4n1mmd.js} +4 -4
- package/dist/chunks/{agent-d2wgds0x.js → location-mutation-v2dypmqc.js} +18 -18
- package/dist/chunks/{agent-erjkhgr0.js → location-mutation-v865h690.js} +20 -20
- package/dist/chunks/{agent-veqvce7d.js → location-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{agent-6zyttfys.js → location-mutation-vqeras5a.js} +9 -9
- package/dist/chunks/{agent-vtxr0yy2.js → location-mutation-vtxr0yy2.js} +2 -2
- package/dist/chunks/{agent-2fqthqjg.js → location-mutation-vvazcd3s.js} +46 -46
- package/dist/chunks/{agent-4gycnsfp.js → location-mutation-vyqn3nqs.js} +5 -5
- package/dist/chunks/{agent-vzcthcp8.js → location-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{agent-w3wsvvr9.js → location-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{agent-2kvkr281.js → location-mutation-w5j7ezcf.js} +30 -30
- package/dist/chunks/{agent-95t7q91w.js → location-mutation-wd1s414x.js} +4 -4
- package/dist/chunks/{agent-wd3x2cqz.js → location-mutation-wd3x2cqz.js} +2 -2
- package/dist/chunks/{agent-wd87259q.js → location-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{agent-1bksnpxx.js → location-mutation-wk573dmn.js} +12 -12
- package/dist/chunks/{agent-gssvgekz.js → location-mutation-wwwhfv4c.js} +20 -20
- package/dist/chunks/{agent-zd8ptnqb.js → location-mutation-x0sgemt3.js} +32 -32
- package/dist/chunks/{agent-x1ezjp6w.js → location-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{agent-kesj5jy8.js → location-mutation-x3rrr00f.js} +8 -8
- package/dist/chunks/{agent-37rtka32.js → location-mutation-x8v7rwxh.js} +15 -15
- package/dist/chunks/{agent-7mkcw6wm.js → location-mutation-x9kfschm.js} +44 -44
- package/dist/chunks/{agent-as3gfbfe.js → location-mutation-xtnzmd6c.js} +16 -16
- package/dist/chunks/{agent-38j4n8ns.js → location-mutation-xx2qkkfx.js} +86 -86
- package/dist/chunks/{agent-h9dmwwwx.js → location-mutation-xzyj6q3f.js} +30 -30
- package/dist/chunks/{agent-y1fvbwt7.js → location-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{agent-n5mm3spe.js → location-mutation-y1mevkv6.js} +41 -41
- package/dist/chunks/{agent-60w5e542.js → location-mutation-ya8x5spr.js} +5 -5
- package/dist/chunks/{agent-2x2nfseg.js → location-mutation-yb4xdytz.js} +11 -11
- package/dist/chunks/{agent-xs4zavqa.js → location-mutation-ybx1yz55.js} +6 -6
- package/dist/chunks/{agent-q844vg7r.js → location-mutation-ycz23sph.js} +19 -19
- package/dist/chunks/{agent-zvr28f0w.js → location-mutation-yhtbc78s.js} +20 -20
- package/dist/chunks/{agent-x4twtbmc.js → location-mutation-ynpf6v7f.js} +29 -29
- package/dist/chunks/{agent-yp2x3t23.js → location-mutation-yp2x3t23.js} +1 -1
- package/dist/chunks/{agent-yrhqyw5v.js → location-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{agent-yrznvahk.js → location-mutation-yrznvahk.js} +2 -2
- package/dist/chunks/{agent-z07pqspn.js → location-mutation-z07pqspn.js} +3 -3
- package/dist/chunks/{agent-z0bkrqjs.js → location-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{agent-z63w68vq.js → location-mutation-z63w68vq.js} +2 -2
- package/dist/chunks/{agent-3pm9060n.js → location-mutation-za77p82n.js} +6 -6
- package/dist/chunks/{agent-zeh9ct20.js → location-mutation-zeh9ct20.js} +2 -2
- package/dist/chunks/{agent-wcpje083.js → location-mutation-zfa7ynd8.js} +5 -5
- package/dist/chunks/{agent-99102x0e.js → location-mutation-zjvxqk0q.js} +11 -11
- package/dist/chunks/{agent-cwkmhrp6.js → location-mutation-zpqvt9gf.js} +17 -17
- package/dist/chunks/{agent-4n6nta6x.js → location-mutation-zr21ttst.js} +11 -11
- package/dist/chunks/{agent-zr2ceqn5.js → location-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{agent-qrrsv7v7.js → location-mutation-zs5g3rfz.js} +25 -25
- package/dist/chunks/location-mutation-zw77q1p0.js +252 -0
- package/dist/chunks/{agent-p4n2tsr9.js → location-mutation-zxnx5pz0.js} +35 -35
- package/dist/chunks/{agent-zxq2ej10.js → location-mutation-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- 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 +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +142 -142
- 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 +124 -124
- 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 +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- 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 +370 -370
- 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 +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- 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 +99 -99
- 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 +361 -361
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- 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 +358 -358
- package/dist/location.js +87 -87
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- 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 +84 -84
- 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/compaction.js +133 -133
- 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 +332 -332
- package/dist/plugin/mcp-codemode-exclusion.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 +93 -93
- package/dist/plugin/provider/gitlab.js +91 -91
- 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 +122 -122
- 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 +94 -94
- 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 +160 -160
- 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 +349 -349
- 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/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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +98 -98
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +87 -87
- 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 +134 -134
- 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 +5 -5
- 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 +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- 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 +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +229 -229
- 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 +124 -124
- 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 +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +150 -150
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- 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 +2 -2
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +89 -89
- 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 +125 -125
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +118 -118
- 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 +12 -12
- 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 +5 -5
- 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 +5 -5
- 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 +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/agent-6kdq0pjd.js +0 -4
- package/dist/chunks/agent-7bk4ngx8.js +0 -252
- package/dist/chunks/agent-dcj1wave.js +0 -26
- package/dist/chunks/agent-dxj72tfx.js +0 -18
- package/dist/chunks/agent-ma5qs0kd.js +0 -503
- /package/dist/chunks/{agent-0qkdqm5v.js → location-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{agent-0zkw76rk.js → location-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{agent-17cy0kzp.js → location-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{agent-1cnp2v09.js → location-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{agent-1kg9ymc8.js → location-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{agent-24dcb14g.js → location-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{agent-2710q6r3.js → location-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{agent-2axfhc9x.js → location-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{agent-2c3vjs8z.js → location-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{agent-34c7v6d4.js → location-mutation-34c7v6d4.js} +0 -0
- /package/dist/chunks/{agent-359p4xyc.js → location-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{agent-3asan66x.js → location-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{agent-3v8g72cx.js → location-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{agent-3w5fmr99.js → location-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{agent-3wcehsnq.js → location-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{agent-43n2bw4t.js → location-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{agent-4knz6hnm.js → location-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{agent-4vcrnpx2.js → location-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{agent-4y7fprxs.js → location-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{agent-53557ph1.js → location-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{agent-550bvhaj.js → location-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{agent-5qd3pb7m.js → location-mutation-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{agent-6prwharc.js → location-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{agent-7akdwqpd.js → location-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{agent-7m9af43g.js → location-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{agent-822emrt2.js → location-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{agent-88xbtdfr.js → location-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{agent-8n3pysct.js → location-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{agent-8wj87zfr.js → location-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{agent-922hggd3.js → location-mutation-922hggd3.js} +0 -0
- /package/dist/chunks/{agent-9a4afbnw.js → location-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{agent-9rqn6x4v.js → location-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{agent-a6k6eb26.js → location-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{agent-af5trqkr.js → location-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{agent-afrmfg78.js → location-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{agent-aqzs7mqg.js → location-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{agent-atq7p7m5.js → location-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{agent-bkyjaxrp.js → location-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{agent-bmr6ed5q.js → location-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{agent-cf4snx6d.js → location-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{agent-cvy3z8tj.js → location-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{agent-d9fn303g.js → location-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{agent-d9jj8t3e.js → location-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{agent-dajrwvna.js → location-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{agent-dap0rakb.js → location-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{agent-df08tz66.js → location-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{agent-dy18nga0.js → location-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{agent-e5kj55wp.js → location-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{agent-e73j6tqm.js → location-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{agent-ec1grn59.js → location-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{agent-eh3zwz77.js → location-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{agent-emrn6kk6.js → location-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{agent-f0mxakyp.js → location-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{agent-f6n9ztr4.js → location-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{agent-faypxj3z.js → location-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{agent-fd410y7t.js → location-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{agent-fxgpk5d8.js → location-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{agent-g4wezp1m.js → location-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{agent-g86h250q.js → location-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{agent-gebd4c9n.js → location-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{agent-gftt206x.js → location-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{agent-hjbc5kem.js → location-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{agent-hk9envan.js → location-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{agent-j2ntwpah.js → location-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{agent-j5zkgpj8.js → location-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{agent-jjkms2e6.js → location-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{agent-jr7sbwjy.js → location-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{agent-jwfs4k6c.js → location-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{agent-jzg6c2d5.js → location-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{agent-mp448xyj.js → location-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{agent-msx8hqn2.js → location-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{agent-n05xt0ee.js → location-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{agent-n3j8tn72.js → location-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{agent-njntx4h6.js → location-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{agent-q3sfg36h.js → location-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{agent-q74kybfr.js → location-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{agent-qaymkmh1.js → location-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{agent-qb87gjwd.js → location-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{agent-qfa1cgps.js → location-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{agent-qg3g05ea.js → location-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{agent-qrg20bc0.js → location-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{agent-rcb2kzg1.js → location-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{agent-sdp7kfr6.js → location-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{agent-sk3qaz4a.js → location-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{agent-ssg3fenm.js → location-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{agent-w803qqfp.js → location-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{agent-wc3fc9cn.js → location-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{agent-wer8tq1h.js → location-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{agent-wtztk69x.js → location-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{agent-x0ckcb58.js → location-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{agent-x61499pn.js → location-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{agent-y44na4kk.js → location-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{agent-y8cydn3q.js → location-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{agent-y8f7s663.js → location-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{agent-ygaqb7jw.js → location-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{agent-ym463w8f.js → location-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{agent-z9919s4g.js → location-mutation-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-mutation-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
Info15
|
|
9
|
-
} from "./agent-818pfwc9.js";
|
|
10
|
-
import {
|
|
11
|
-
Info9
|
|
12
|
-
} from "./agent-tz2bjj40.js";
|
|
6
|
+
} from "./location-mutation-f3ngv102.js";
|
|
13
7
|
import {
|
|
14
8
|
Info17
|
|
15
|
-
} from "./
|
|
9
|
+
} from "./location-mutation-3pbjq009.js";
|
|
10
|
+
import {
|
|
11
|
+
Info11
|
|
12
|
+
} from "./location-mutation-dj9sq318.js";
|
|
16
13
|
import {
|
|
17
14
|
Info14
|
|
18
|
-
} from "./
|
|
15
|
+
} from "./location-mutation-qa3qhgw8.js";
|
|
16
|
+
import {
|
|
17
|
+
Info13
|
|
18
|
+
} from "./location-mutation-0f9afca0.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-mutation-2k8khapm.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info19
|
|
24
|
+
} from "./location-mutation-qte5z7bc.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Info10
|
|
27
|
+
} from "./location-mutation-3tdg7zvz.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./location-mutation-wd1s414x.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./location-mutation-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/config/normalize.ts
|
|
42
42
|
var exports_normalize = {};
|
|
@@ -84,10 +84,10 @@ function normalize2(input) {
|
|
|
84
84
|
const encoded = {};
|
|
85
85
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
86
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
87
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info10.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info11, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -112,7 +112,7 @@ function normalize2(input) {
|
|
|
112
112
|
});
|
|
113
113
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
114
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
115
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info17, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
116
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
117
|
const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
|
|
118
118
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -126,7 +126,7 @@ function normalize2(input) {
|
|
|
126
126
|
model: migratedSmallModel,
|
|
127
127
|
...legacyAgents.title
|
|
128
128
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
129
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info17, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
130
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
131
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
132
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info13, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -421,7 +421,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
421
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
422
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
423
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
424
|
+
const provider = decodeValue(Info19, raw, path, diagnostics);
|
|
425
425
|
if (provider === undefined)
|
|
426
426
|
return [];
|
|
427
427
|
const destination = providerID2(name);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref4
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-mutation-xtnzmd6c.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-mutation-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/location-service-map.ts
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service52,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node55,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service52 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service52, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node55 = LayerNode.unbound(Service52, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service52;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -45,4 +45,4 @@ function canonical3(ref) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Service52, node55, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-mutation-ddrvd88x.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service79
|
|
6
|
+
} from "./location-mutation-xtnzmd6c.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service27
|
|
10
|
+
} from "./location-mutation-31axeyek.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command2 = {};
|
|
17
|
+
__export(exports_command2, {
|
|
18
|
+
CommandPlugin: () => exports_command2,
|
|
19
|
+
Plugin: () => Plugin35
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin35 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
199
|
+
const location = yield* Service79;
|
|
200
|
+
const mcp = yield* Service27;
|
|
201
201
|
const bus = yield* Service83;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin35, exports_command2 };
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ModelInitializationError3,
|
|
6
6
|
UnresolvedProviderVariablesError3,
|
|
7
7
|
UnsupportedCompactionError3,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service46,
|
|
9
|
+
node48
|
|
10
|
+
} from "./location-mutation-17m5mchg.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-mutation-7w99qc9d.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-mutation-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/runner/model.ts
|
|
19
19
|
var exports_model = {};
|
|
@@ -22,13 +22,13 @@ __export(exports_model, {
|
|
|
22
22
|
ModelInitializationError: () => ModelInitializationError2,
|
|
23
23
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
24
24
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service38,
|
|
26
26
|
SessionRunnerModel: () => exports_model,
|
|
27
27
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
28
28
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
29
29
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
30
30
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node40,
|
|
32
32
|
resolved: () => resolved2
|
|
33
33
|
});
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -57,7 +57,7 @@ var ModelInitializationError2 = ModelInitializationError3;
|
|
|
57
57
|
var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
|
|
58
58
|
var UnsupportedCompactionError2 = UnsupportedCompactionError3;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service38 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
61
61
|
}
|
|
62
62
|
var resolved2 = (model, options) => ({
|
|
63
63
|
model,
|
|
@@ -72,9 +72,9 @@ var resolved2 = (model, options) => ({
|
|
|
72
72
|
compaction: options.compaction,
|
|
73
73
|
transport: options.transport
|
|
74
74
|
});
|
|
75
|
-
var layer = Layer.effect(
|
|
76
|
-
const resolver = yield*
|
|
77
|
-
return
|
|
75
|
+
var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
76
|
+
const resolver = yield* Service46;
|
|
77
|
+
return Service38.of({
|
|
78
78
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
79
79
|
if (!session.model) {
|
|
80
80
|
const resolved = yield* resolver.resolve();
|
|
@@ -92,6 +92,6 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
92
92
|
})
|
|
93
93
|
});
|
|
94
94
|
}));
|
|
95
|
-
var
|
|
95
|
+
var node40 = makeLocationNode({ service: Service38, layer, deps: [node48] });
|
|
96
96
|
|
|
97
|
-
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
97
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service38, resolved2, node40, exports_model };
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-mutation-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83,
|
|
6
6
|
node87
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-mutation-ddrvd88x.js";
|
|
8
8
|
import {
|
|
9
9
|
Event19,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service75,
|
|
11
|
+
node78
|
|
12
|
+
} from "./location-mutation-182ab1xk.js";
|
|
13
13
|
import {
|
|
14
|
-
Service80,
|
|
15
|
-
node84
|
|
16
|
-
} from "./agent-as3gfbfe.js";
|
|
17
|
-
import {
|
|
18
|
-
Service74,
|
|
19
|
-
node76
|
|
20
|
-
} from "./agent-st50yqfc.js";
|
|
21
|
-
import {
|
|
22
|
-
ID16,
|
|
23
14
|
Service79,
|
|
24
15
|
node83
|
|
25
|
-
} from "./
|
|
16
|
+
} from "./location-mutation-xtnzmd6c.js";
|
|
17
|
+
import {
|
|
18
|
+
Service77,
|
|
19
|
+
node80
|
|
20
|
+
} from "./location-mutation-cp36jwmw.js";
|
|
21
|
+
import {
|
|
22
|
+
ID13,
|
|
23
|
+
Service74,
|
|
24
|
+
node77
|
|
25
|
+
} from "./location-mutation-5a6sb5aa.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-mutation-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID12,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service73,
|
|
34
|
+
node76
|
|
35
|
+
} from "./location-mutation-zs5g3rfz.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./location-mutation-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
44
|
NotFoundError: () => NotFoundError4,
|
|
45
|
-
Options: () =>
|
|
45
|
+
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service27,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
|
-
configured: () =>
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
56
|
+
configured: () => configured4,
|
|
57
|
+
layer: () => layer12,
|
|
58
|
+
node: () => node31
|
|
59
59
|
});
|
|
60
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
61
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -93,21 +93,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
93
93
|
var endpointLoads = makeUnsafe2();
|
|
94
94
|
var cloneConfig = (config) => structuredClone(config);
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service27 extends Context.Service()("@opencode/MCP") {
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var Options4 = Schema.Struct({
|
|
99
99
|
clientInfo: Schema.optional(Schema.Struct({
|
|
100
100
|
name: Schema.String,
|
|
101
101
|
version: Schema.String
|
|
102
102
|
}))
|
|
103
103
|
});
|
|
104
|
-
var
|
|
105
|
-
const location = yield*
|
|
106
|
-
const environment = yield*
|
|
104
|
+
var layer12 = (options) => Layer.effect(Service27, Effect.gen(function* () {
|
|
105
|
+
const location = yield* Service79;
|
|
106
|
+
const environment = yield* Service77;
|
|
107
107
|
const bus = yield* Service83;
|
|
108
|
-
const forms = yield*
|
|
109
|
-
const integration = yield*
|
|
110
|
-
const credentials = yield*
|
|
108
|
+
const forms = yield* Service74;
|
|
109
|
+
const integration = yield* Service73;
|
|
110
|
+
const credentials = yield* Service75;
|
|
111
111
|
const root = yield* Effect.scope;
|
|
112
112
|
const fork = yield* FiberSet.makeRuntime();
|
|
113
113
|
const entries = new Map;
|
|
@@ -119,7 +119,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
119
119
|
return;
|
|
120
120
|
const remote = entry.config;
|
|
121
121
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
122
|
-
const integrationID =
|
|
122
|
+
const integrationID = ID12.make(suffix);
|
|
123
123
|
entry.integrationID = integrationID;
|
|
124
124
|
owned.add(integrationID);
|
|
125
125
|
const methodID = MethodID2.make(suffix);
|
|
@@ -135,7 +135,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
135
135
|
method: { id: methodID, type: "oauth", label: name },
|
|
136
136
|
authorize: () => Effect.gen(function* () {
|
|
137
137
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
138
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
138
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service75, credentials));
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
}).pipe(Scope.provide(scope));
|
|
@@ -151,12 +151,12 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
151
151
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
152
152
|
return;
|
|
153
153
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
154
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
154
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service75, credentials));
|
|
155
155
|
});
|
|
156
156
|
const elicitation = {
|
|
157
157
|
create: (input) => Effect.gen(function* () {
|
|
158
158
|
if (input.params.mode === "url") {
|
|
159
|
-
const formID =
|
|
159
|
+
const formID = ID13.create();
|
|
160
160
|
const elicitationID = input.params.elicitationId;
|
|
161
161
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
162
162
|
if (key)
|
|
@@ -240,7 +240,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
240
240
|
entry.scope = scope;
|
|
241
241
|
const authProvider = yield* connectProvider(entry);
|
|
242
242
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
243
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
243
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service77, environment), Scope.provide(scope));
|
|
244
244
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
245
245
|
if (Exit.isSuccess(result)) {
|
|
246
246
|
entry.client = result.value.connection;
|
|
@@ -391,7 +391,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
391
391
|
}),
|
|
392
392
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
393
393
|
});
|
|
394
|
-
return
|
|
394
|
+
return Service27.of({
|
|
395
395
|
transform: state.transform,
|
|
396
396
|
reload: state.reload,
|
|
397
397
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -510,14 +510,14 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
510
510
|
})
|
|
511
511
|
});
|
|
512
512
|
}));
|
|
513
|
-
function
|
|
513
|
+
function configured4(options) {
|
|
514
514
|
return makeLocationNode({
|
|
515
|
-
service:
|
|
516
|
-
layer:
|
|
517
|
-
deps: [
|
|
515
|
+
service: Service27,
|
|
516
|
+
layer: layer12(options),
|
|
517
|
+
deps: [node83, node80, node87, node77, node76, node78]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
var
|
|
520
|
+
var node31 = configured4();
|
|
521
521
|
function toElicitationField(key, property, required) {
|
|
522
522
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
523
523
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -568,4 +568,4 @@ function toElicitationField(key, property, required) {
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2,
|
|
571
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2, Service27, Options4, layer12, configured4, node31, exports_mcp4 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-mutation-5vhjg0x8.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-mutation-ddrvd88x.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event19,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service75
|
|
11
|
+
} from "./location-mutation-182ab1xk.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID12,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service73
|
|
16
|
+
} from "./location-mutation-zs5g3rfz.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-mutation-pjvnvgmy.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID11
|
|
23
|
+
} from "./location-mutation-xzyj6q3f.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-mutation-a2k1swm6.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID11.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID12.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,8 +53,8 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
56
|
+
const credentials = yield* Service75;
|
|
57
|
+
const integrations = yield* Service73;
|
|
58
58
|
const bus = yield* Service83;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-mutation-ddrvd88x.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-mutation-16nrxpzh.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-mutation-sk3qaz4a.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
|
+
Options: () => Options6,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service48,
|
|
23
23
|
UnavailableError: () => UnavailableError3,
|
|
24
|
-
configured: () =>
|
|
24
|
+
configured: () => configured6,
|
|
25
25
|
layer: () => layer21,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node50
|
|
27
27
|
});
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -35,21 +35,21 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
var
|
|
38
|
+
var Options6 = Schema.Struct({ handoff: Schema.optional(Handoff) });
|
|
39
39
|
|
|
40
40
|
class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
41
41
|
message: Schema.String
|
|
42
42
|
}) {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class NotFoundError6 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
46
46
|
ptyID: Pty.ID
|
|
47
47
|
}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service48 extends Context.Service()("@opencode/PersistentPty") {
|
|
51
51
|
}
|
|
52
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
52
|
+
var makeLayer = (options = {}) => Layer.effect(Service48, Effect.gen(function* () {
|
|
53
53
|
const bus = yield* Service83;
|
|
54
54
|
const global = yield* Global.Service;
|
|
55
55
|
const context = yield* Effect.context();
|
|
@@ -72,7 +72,7 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
|
|
|
72
72
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
73
73
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
74
74
|
if (!found)
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
76
76
|
return found;
|
|
77
77
|
});
|
|
78
78
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -239,7 +239,7 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
|
|
|
239
239
|
detach: attachment.detach
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
return
|
|
242
|
+
return Service48.of({
|
|
243
243
|
list,
|
|
244
244
|
get,
|
|
245
245
|
create,
|
|
@@ -256,12 +256,12 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
|
|
|
256
256
|
});
|
|
257
257
|
}));
|
|
258
258
|
var layer21 = makeLayer();
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
259
|
+
var configured6 = (options) => makeGlobalNode({
|
|
260
|
+
service: Service48,
|
|
261
261
|
layer: options === undefined ? layer21 : makeLayer(options),
|
|
262
262
|
deps: [node87, Global.node]
|
|
263
263
|
});
|
|
264
|
-
var
|
|
264
|
+
var node50 = configured6();
|
|
265
265
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
266
266
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
267
267
|
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options6, UnavailableError3, NotFoundError6, Service48, layer21, configured6, node50, exports_persistent_pty, Handoff2 };
|