@opencode/core 0.0.0-dev-19336 → 0.0.0-dev-19337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +79 -79
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -83
- package/dist/chunks/{location-services-qa4rp7fn.js → credential-0996nyz8.js} +9 -9
- package/dist/chunks/{location-services-f32vetax.js → credential-0bnjtszc.js} +8 -8
- package/dist/chunks/{location-services-1ktzqmb5.js → credential-0n3rk2gt.js} +17 -17
- package/dist/chunks/{location-services-0paq2nw3.js → credential-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-services-f8q7mv7a.js → credential-0pyqcms3.js} +1 -1
- package/dist/chunks/{location-services-0q0f95c6.js → credential-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-services-g56x3r05.js → credential-0y6fnfyn.js} +16 -16
- package/dist/chunks/{location-services-hk3dp6b5.js → credential-10es6fvg.js} +2 -2
- package/dist/chunks/{location-services-bmwmmh03.js → credential-151mpj9e.js} +10 -10
- package/dist/chunks/{location-services-a4j6dykb.js → credential-17qwwr3r.js} +15 -15
- package/dist/chunks/{location-services-yp2x3t23.js → credential-1acjjqhc.js} +4 -4
- package/dist/chunks/{location-services-e255sby6.js → credential-1adagaa7.js} +29 -29
- package/dist/chunks/{location-services-3mmc2xt1.js → credential-1b5rdxkb.js} +11 -11
- package/dist/chunks/{location-services-mvfsc1pv.js → credential-1bbkgx8g.js} +3 -3
- package/dist/chunks/{location-services-1dazxqgg.js → credential-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-services-1dfhrqqs.js → credential-1dfhrqqs.js} +2 -2
- package/dist/chunks/{location-services-jd31tk7v.js → credential-1hanh0e3.js} +22 -22
- package/dist/chunks/{location-services-skw6ndhb.js → credential-1j4x7018.js} +36 -36
- package/dist/chunks/{location-services-56gdpj1q.js → credential-1ygqh575.js} +9 -9
- package/dist/chunks/{location-services-21r38tys.js → credential-21r38tys.js} +1 -1
- package/dist/chunks/{location-services-vgtd617j.js → credential-22rswy7q.js} +9 -9
- package/dist/chunks/{location-services-2402vzrj.js → credential-2402vzrj.js} +1 -1
- package/dist/chunks/{location-services-7emx6ety.js → credential-249nn8tn.js} +21 -21
- package/dist/chunks/{location-services-fxf97kjq.js → credential-2566302p.js} +10 -10
- package/dist/chunks/{location-services-a3vv4rs0.js → credential-28prswrc.js} +9 -9
- package/dist/chunks/{location-services-3rz3vg39.js → credential-2998kf83.js} +59 -59
- package/dist/chunks/{location-services-z63w68vq.js → credential-29x78va6.js} +6 -6
- package/dist/chunks/{location-services-1v3d03cy.js → credential-2a29v3a8.js} +32 -32
- package/dist/chunks/{location-services-2a5m3afh.js → credential-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-services-g35h8zvz.js → credential-2jhbac8t.js} +24 -24
- package/dist/chunks/{location-services-qm7jrdpz.js → credential-2nbt55tc.js} +8 -8
- package/dist/chunks/{location-services-cq37gk0t.js → credential-2tfmgkzg.js} +4 -4
- package/dist/chunks/{location-services-n3pz4r15.js → credential-2tw57gz0.js} +16 -16
- package/dist/chunks/{location-services-zhj44hqa.js → credential-31dzdahz.js} +3 -3
- package/dist/chunks/{location-services-3fc6dm20.js → credential-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-services-z7vx10hx.js → credential-3fh0rg45.js} +15 -15
- package/dist/chunks/{location-services-bcbmvgj8.js → credential-3gfpy94r.js} +46 -46
- package/dist/chunks/{location-services-1at44jv2.js → credential-3gfv59ch.js} +18 -18
- package/dist/chunks/{location-services-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-services-p79ar1tw.js → credential-3k31r9j9.js} +11 -11
- package/dist/chunks/{location-services-3smtnn6g.js → credential-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-services-3tvqynh2.js → credential-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-services-8f0zq1qa.js → credential-3x4a4zpr.js} +6 -6
- package/dist/chunks/{location-services-qtmpnr27.js → credential-40wszbrc.js} +50 -50
- package/dist/chunks/{location-services-7amtd6bp.js → credential-4css7a44.js} +13 -13
- package/dist/chunks/{location-services-4j4p0yst.js → credential-4jmdj23e.js} +9 -9
- package/dist/chunks/{location-services-k4f6a3yg.js → credential-4rym0agr.js} +20 -20
- package/dist/chunks/{location-services-bcnz578n.js → credential-526v470z.js} +2 -2
- package/dist/chunks/{location-services-aj8kkpvr.js → credential-55r4thj5.js} +4 -4
- package/dist/chunks/{location-services-zv3e7t68.js → credential-593yh7cm.js} +2 -2
- package/dist/chunks/{location-services-a1bz86dw.js → credential-5c4hm403.js} +3 -3
- package/dist/chunks/{location-services-s2jzy5b9.js → credential-5cnp842v.js} +11 -11
- package/dist/chunks/{location-services-5daktx2q.js → credential-5daktx2q.js} +1 -1
- package/dist/chunks/{location-services-6nh5w358.js → credential-5e20nh0k.js} +11 -11
- package/dist/chunks/{location-services-5thce3ah.js → credential-5gnvgr1s.js} +35 -35
- package/dist/chunks/{location-services-n65r81b4.js → credential-5hrkz7py.js} +4 -4
- package/dist/chunks/{location-services-5t3nmthw.js → credential-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-services-zd0y80kv.js → credential-5w5ha1nc.js} +14 -14
- package/dist/chunks/{location-services-06dxphr1.js → credential-64kphnzf.js} +4 -4
- package/dist/chunks/{location-services-669tq793.js → credential-669tq793.js} +1 -1
- package/dist/chunks/{location-services-4hzm3hzr.js → credential-6dtevzgb.js} +70 -70
- package/dist/chunks/{location-services-rpsdx5vs.js → credential-6ee1nj74.js} +7 -7
- package/dist/chunks/{location-services-dt6arx9z.js → credential-6gdcbxbt.js} +5 -5
- package/dist/chunks/{location-services-y9gdx2th.js → credential-6jrdwt83.js} +4 -4
- package/dist/chunks/{location-services-3gt2xagq.js → credential-6kqsmg0b.js} +26 -26
- package/dist/chunks/{location-services-6msgmcgs.js → credential-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-services-z69s9t6b.js → credential-6qw5vjfk.js} +5 -5
- package/dist/chunks/{location-services-w5qh34h0.js → credential-6va5e0hk.js} +25 -25
- package/dist/chunks/{location-services-71q4at8m.js → credential-71q4at8m.js} +1 -1
- package/dist/chunks/{location-services-ewqwwm8c.js → credential-71qmvsg5.js} +10 -10
- package/dist/chunks/{location-services-eeaf82dq.js → credential-73t188jy.js} +8 -8
- package/dist/chunks/{location-services-3xh3zrfj.js → credential-79ygexg1.js} +10 -10
- package/dist/chunks/{location-services-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-services-7dqw4kz8.js → credential-7dqw4kz8.js} +1 -1
- package/dist/chunks/{location-services-mf9m2v67.js → credential-7jdsj2a9.js} +3 -3
- package/dist/chunks/{location-services-1vb9fm0n.js → credential-7y8s6rgk.js} +29 -29
- package/dist/chunks/{location-services-rk0rec3h.js → credential-81swgkk7.js} +9 -9
- package/dist/chunks/{location-services-gqsqt983.js → credential-8483wvpx.js} +7 -7
- package/dist/chunks/{location-services-zg809rcf.js → credential-89spjjbp.js} +22 -22
- package/dist/chunks/{location-services-8d7r5vzw.js → credential-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-services-2q8h11r1.js → credential-8meg8dre.js} +9 -9
- package/dist/chunks/{location-services-4wdwamv9.js → credential-96h9wr4f.js} +18 -18
- package/dist/chunks/{location-services-6qtdhq9p.js → credential-98408z27.js} +32 -32
- package/dist/chunks/{location-services-m016k5dt.js → credential-98g7fywj.js} +11 -11
- package/dist/chunks/{location-services-9wrk0c7x.js → credential-9a1bzkpj.js} +18 -18
- package/dist/chunks/{location-services-m27pyyd3.js → credential-9p3b3m98.js} +6 -6
- package/dist/chunks/{location-services-ebcw7cv9.js → credential-9rdh6ewn.js} +5 -5
- package/dist/chunks/{location-services-v5dkyp31.js → credential-a2ew8a62.js} +4 -4
- package/dist/chunks/{location-services-a103fdm3.js → credential-a2tdmfa4.js} +26 -26
- package/dist/chunks/{location-services-twy35tz0.js → credential-a5gt7g2r.js} +9 -9
- package/dist/chunks/{location-services-aaet6srn.js → credential-aaet6srn.js} +2 -2
- package/dist/chunks/{location-services-k16ay38w.js → credential-abkdt1xb.js} +1 -1
- package/dist/chunks/{location-services-wzxndrfm.js → credential-ac32kc2r.js} +23 -23
- package/dist/chunks/{location-services-12behdsj.js → credential-ahcp8nkf.js} +11 -11
- package/dist/chunks/{location-services-b1t5snx6.js → credential-ahymmsbp.js} +15 -15
- package/dist/chunks/credential-b01ntp0y.js +462 -0
- package/dist/chunks/{location-services-3tt1qkhr.js → credential-b0grxa7w.js} +5 -5
- package/dist/chunks/{location-services-6t5esrgx.js → credential-b1jm75xs.js} +15 -15
- package/dist/chunks/{location-services-vvv3thrh.js → credential-b5hymcep.js} +12 -12
- package/dist/chunks/{location-services-b6gygkdw.js → credential-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-services-w0pkcsrz.js → credential-b8s54zd1.js} +11 -11
- package/dist/chunks/{location-services-nakqg6cg.js → credential-b9pe0b4x.js} +20 -20
- package/dist/chunks/{location-services-9tdt6gn5.js → credential-bawspjyh.js} +13 -13
- package/dist/chunks/{location-services-bf0ztrs3.js → credential-bct739vz.js} +4 -4
- package/dist/chunks/credential-bqchtq7z.js +247 -0
- package/dist/chunks/{location-services-4eavgkwb.js → credential-c3xdpmrh.js} +11 -11
- package/dist/chunks/{location-services-zmm5wz6q.js → credential-cb5dpwd3.js} +44 -44
- package/dist/chunks/{location-services-n0ps73j4.js → credential-cbqmp7b7.js} +24 -24
- package/dist/chunks/{location-services-r9babyk8.js → credential-cd4mc13g.js} +1 -1
- package/dist/chunks/{location-services-xvbxf676.js → credential-cqwj9awd.js} +32 -32
- package/dist/chunks/{location-services-rbr5swsa.js → credential-d94m8qs1.js} +12 -12
- package/dist/chunks/{location-services-4crx14pj.js → credential-ddtk0mvx.js} +9 -9
- package/dist/chunks/{location-services-8p4f9s12.js → credential-dj2t23y0.js} +2 -2
- package/dist/chunks/{location-services-e6ywpf8t.js → credential-dnba0na5.js} +8 -8
- package/dist/chunks/{location-services-1sfmn0at.js → credential-dp84dkzj.js} +20 -20
- package/dist/chunks/{location-services-tjbdzdwh.js → credential-dqv7d9mx.js} +21 -21
- package/dist/chunks/{location-services-vz505d38.js → credential-dyhhrnbz.js} +8 -8
- package/dist/chunks/{location-services-9xx5ccgp.js → credential-e1pb9r1r.js} +22 -22
- package/dist/chunks/{location-services-4ycxm7c6.js → credential-e4bvg1nj.js} +17 -17
- package/dist/chunks/{location-services-j8b7ra2y.js → credential-e8184ah6.js} +167 -167
- package/dist/chunks/{location-services-rhjbct0v.js → credential-eaj1djv9.js} +8 -8
- package/dist/chunks/{location-services-pjsas99n.js → credential-eckjfj34.js} +6 -6
- package/dist/chunks/{location-services-54td8zkb.js → credential-eere18dq.js} +5 -5
- package/dist/chunks/{location-services-rv7qyr27.js → credential-efhzxcq4.js} +27 -27
- package/dist/chunks/{location-services-p12hzc12.js → credential-eg6kvm4e.js} +35 -35
- package/dist/chunks/{location-services-t2bav4cb.js → credential-egqpk7m0.js} +10 -10
- package/dist/chunks/{location-services-v6654y3b.js → credential-enygcmwv.js} +14 -14
- package/dist/chunks/{location-services-98r3f9c4.js → credential-et95z6r9.js} +30 -30
- package/dist/chunks/{location-services-etq0c3wd.js → credential-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-services-s78rk26g.js → credential-exydcs1h.js} +18 -18
- package/dist/chunks/{location-services-dhambjr8.js → credential-f0yr6nyc.js} +25 -25
- package/dist/chunks/{location-services-30qzt7jy.js → credential-fbp1d1k7.js} +25 -25
- package/dist/chunks/{location-services-gp27hab3.js → credential-fr2qe1q3.js} +6 -6
- package/dist/chunks/{location-services-4ttr90xy.js → credential-fw4rsm43.js} +20 -20
- package/dist/chunks/{location-services-fxbjtjnd.js → credential-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-services-egdp0v7k.js → credential-fyjrpq2n.js} +5 -5
- package/dist/chunks/{location-services-h7merwq8.js → credential-g3nd3rk8.js} +23 -23
- package/dist/chunks/{location-services-e7v4kvvc.js → credential-g7hryrp6.js} +16 -16
- package/dist/chunks/{location-services-3am5m0cf.js → credential-gb35scn0.js} +15 -15
- package/dist/chunks/{location-services-gd4qta3r.js → credential-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-services-96yt6zt0.js → credential-gf4qtxm6.js} +1 -1
- package/dist/chunks/{location-services-dg94tkx3.js → credential-gg9d5pah.js} +28 -28
- package/dist/chunks/{location-services-dtz1dq5w.js → credential-gh3h736b.js} +11 -11
- package/dist/chunks/{location-services-vkez6a4k.js → credential-ghk9cxjs.js} +6 -6
- package/dist/chunks/{location-services-d5ta482m.js → credential-gj6dbvth.js} +5 -5
- package/dist/chunks/{location-services-n3ehebhz.js → credential-gp1yc2vx.js} +12 -12
- package/dist/chunks/{location-services-gv6a8nnw.js → credential-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-services-d50f2zf5.js → credential-gx1zhcta.js} +1 -1
- package/dist/chunks/{location-services-h03wrkyp.js → credential-h03wrkyp.js} +2 -2
- package/dist/chunks/{location-services-dx15qm69.js → credential-h1z6jwhd.js} +24 -24
- package/dist/chunks/{location-services-yt1hy964.js → credential-h32nz7rm.js} +20 -20
- package/dist/chunks/{location-services-0qk6n2y7.js → credential-h4rz3t7g.js} +34 -34
- package/dist/chunks/{location-services-h6vf3j39.js → credential-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-services-akrnn5pm.js → credential-h74ge2a2.js} +11 -11
- package/dist/chunks/{location-services-0r7yqxbf.js → credential-hcz3zddy.js} +5 -5
- package/dist/chunks/{location-services-f828m53h.js → credential-hdnk95c8.js} +2 -2
- package/dist/chunks/{location-services-vfx896b4.js → credential-hhf650b6.js} +20 -20
- package/dist/chunks/{location-services-m2m38rh4.js → credential-hrj4tf28.js} +3 -3
- package/dist/chunks/{location-services-kqd2wwpf.js → credential-hyj2vz80.js} +4 -4
- package/dist/chunks/{location-services-k50vc20r.js → credential-j10vveh1.js} +6 -6
- package/dist/chunks/{location-services-n26aazvb.js → credential-j1etvyav.js} +9 -9
- package/dist/chunks/{location-services-npm3wgeg.js → credential-j4m9dw8y.js} +13 -13
- package/dist/chunks/{location-services-j56e64zr.js → credential-j56e64zr.js} +1 -1
- package/dist/chunks/{location-services-paphc93g.js → credential-j935v87r.js} +2 -2
- package/dist/chunks/{location-services-gjes9ycv.js → credential-j9cg0esf.js} +87 -87
- package/dist/chunks/{location-services-81s162yb.js → credential-ja89yahs.js} +9 -9
- package/dist/chunks/{location-services-3tey5e4w.js → credential-jefma2gq.js} +10 -10
- package/dist/chunks/{location-services-tjasw5j2.js → credential-jh4fk4tf.js} +22 -22
- package/dist/chunks/{location-services-1c4qjgv9.js → credential-jj6pqn3w.js} +1 -1
- package/dist/chunks/credential-jrj2y5pk.js +22 -0
- package/dist/chunks/{location-services-3znngwgn.js → credential-jvmxcf50.js} +9 -9
- package/dist/chunks/{location-services-h0r85tvv.js → credential-jx42jpcz.js} +11 -11
- package/dist/chunks/{location-services-0kghfr31.js → credential-jxzmtya1.js} +32 -32
- package/dist/chunks/{location-services-fygdb7h7.js → credential-k8r06fnw.js} +3 -3
- package/dist/chunks/{location-services-kg06axw8.js → credential-kg06axw8.js} +1 -1
- package/dist/chunks/{location-services-qj8eh1ht.js → credential-kk00bynn.js} +21 -21
- package/dist/chunks/{location-services-cfpkc3c9.js → credential-m0jqrx5p.js} +2 -2
- package/dist/chunks/{location-services-00v0w1pn.js → credential-m1gz7xkc.js} +35 -35
- package/dist/chunks/{location-services-98cmn0hr.js → credential-m4vn3qv8.js} +17 -17
- package/dist/chunks/{location-services-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-services-d20tfxtv.js → credential-mhayska3.js} +8 -8
- package/dist/chunks/{location-services-1s1fbqj5.js → credential-mj233eqc.js} +17 -17
- package/dist/chunks/{location-services-mkcjrzeh.js → credential-mkcjrzeh.js} +1 -1
- package/dist/chunks/{location-services-hqxaqnsz.js → credential-mkw2wvv0.js} +13 -13
- package/dist/chunks/{location-services-0f9afca0.js → credential-mtft99cd.js} +5 -5
- package/dist/chunks/{location-services-31zm1s50.js → credential-mx65tve6.js} +30 -30
- package/dist/chunks/{location-services-nw0bqh17.js → credential-n6avr4zf.js} +11 -11
- package/dist/chunks/{location-services-dcfrmvyb.js → credential-nahk2kxe.js} +24 -24
- package/dist/chunks/{location-services-9r3q67g7.js → credential-nc3q5shn.js} +88 -88
- package/dist/chunks/{location-services-fgh0kbhd.js → credential-ng5shs3s.js} +1 -1
- package/dist/chunks/{location-services-bv56xrks.js → credential-nhvhf6q8.js} +2 -2
- package/dist/chunks/{location-services-hjt4xg1x.js → credential-nhy5jxhy.js} +4 -4
- package/dist/chunks/{location-services-8azq3xgr.js → credential-nkz5kzvr.js} +23 -23
- package/dist/chunks/{location-services-8jywm6xd.js → credential-npsw1jjn.js} +15 -15
- package/dist/chunks/{location-services-t3nckq9e.js → credential-ntdnj22e.js} +18 -18
- package/dist/chunks/{location-services-hewa18pm.js → credential-p0sx4xrp.js} +42 -42
- package/dist/chunks/{location-services-wrmagx7v.js → credential-p6d8qxhz.js} +46 -46
- package/dist/chunks/{location-services-gkk9gzwj.js → credential-p71dzhbg.js} +13 -13
- package/dist/chunks/{location-services-dcg0h0ke.js → credential-p7m6avpa.js} +35 -35
- package/dist/chunks/{location-services-w8v69kqr.js → credential-pc200wed.js} +8 -8
- package/dist/chunks/{location-services-marnn1hp.js → credential-pjedbq3k.js} +7 -7
- package/dist/chunks/{location-services-pjvnvgmy.js → credential-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-services-pknna89w.js → credential-pknna89w.js} +1 -1
- package/dist/chunks/{location-services-jw1smgdw.js → credential-pn0ve21a.js} +4 -4
- package/dist/chunks/{location-services-xekzrwwc.js → credential-pnv527nz.js} +9 -9
- package/dist/chunks/{location-services-q70gtfmt.js → credential-q19fwqr8.js} +16 -16
- package/dist/chunks/{location-services-dgj0dq1g.js → credential-q26tgv94.js} +8 -8
- package/dist/chunks/{location-services-gbjggf4w.js → credential-q5zfzp2a.js} +43 -43
- package/dist/chunks/{location-services-s0avzt1k.js → credential-qdmm088d.js} +25 -25
- package/dist/chunks/{location-services-wd1wk3fx.js → credential-qdykr49y.js} +26 -26
- package/dist/chunks/{location-services-0387ntk2.js → credential-qmthdazp.js} +17 -17
- package/dist/chunks/{location-services-qsdy395h.js → credential-qsdy395h.js} +1 -1
- package/dist/chunks/{location-services-r33ff4dw.js → credential-qz49fwgp.js} +4 -4
- package/dist/chunks/{location-services-ne17v9pc.js → credential-qzteyjp0.js} +18 -18
- package/dist/chunks/{location-services-5ap78ss6.js → credential-r4k4q95n.js} +43 -43
- package/dist/chunks/{location-services-cknngr8n.js → credential-r50xb6dr.js} +11 -11
- package/dist/chunks/credential-rap9a73h.js +18 -0
- package/dist/chunks/{location-services-6wwkxy3b.js → credential-rc4v7jdw.js} +3 -3
- package/dist/chunks/{location-services-9w95a7ga.js → credential-rgcx19v1.js} +24 -24
- package/dist/chunks/{location-services-pnean495.js → credential-rhhgd1jt.js} +5 -5
- package/dist/chunks/{location-services-34na97t4.js → credential-rnwa6k7x.js} +4 -4
- package/dist/chunks/{location-services-cy9hrc59.js → credential-rp0q961h.js} +40 -40
- package/dist/chunks/{location-services-er56z9m3.js → credential-rxhbz9hr.js} +4 -4
- package/dist/chunks/{location-services-0aqaye2v.js → credential-rxzbznts.js} +27 -27
- package/dist/chunks/{location-services-kc564ayd.js → credential-s2aq5fn4.js} +9 -9
- package/dist/chunks/{location-services-yrznvahk.js → credential-s4enseaf.js} +2 -2
- package/dist/chunks/{location-services-7sqxeqwy.js → credential-shh6fz4q.js} +4 -4
- package/dist/chunks/{location-services-k33dzkhb.js → credential-st0tfbhf.js} +44 -44
- package/dist/chunks/{location-services-nq6tkbxw.js → credential-stb366ab.js} +17 -17
- package/dist/chunks/{location-services-hv7wfk6h.js → credential-t0vv7hjv.js} +41 -41
- package/dist/chunks/{location-services-a8xcd0w8.js → credential-t5pp6k6z.js} +4 -4
- package/dist/chunks/{location-services-tazgh4e4.js → credential-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-services-tcezcvh9.js → credential-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-services-tdstcens.js → credential-tdstcens.js} +1 -1
- package/dist/chunks/{location-services-7tkmrrpv.js → credential-tdw0q9zr.js} +33 -33
- package/dist/chunks/{location-services-4pg6n0t4.js → credential-trjjxkd4.js} +8 -8
- package/dist/chunks/{location-services-tvtrv512.js → credential-tvtrv512.js} +1 -1
- package/dist/chunks/{location-services-m70sbz6t.js → credential-tz4n1mmd.js} +4 -4
- package/dist/chunks/{location-services-x95pbp60.js → credential-v6pdazz0.js} +36 -36
- package/dist/chunks/{location-services-veqvce7d.js → credential-veqvce7d.js} +1 -1
- package/dist/chunks/{location-services-3g0xtcs6.js → credential-vgcq2s3r.js} +13 -13
- package/dist/chunks/{location-services-n1wtw7cf.js → credential-vqh4gwbt.js} +36 -36
- package/dist/chunks/{location-services-wpmxaqyc.js → credential-vr2q3kmy.js} +6 -6
- package/dist/chunks/{location-services-a5y8eyny.js → credential-vsa2623n.js} +30 -30
- package/dist/chunks/{location-services-d9hczm2r.js → credential-vyje1mnf.js} +17 -17
- package/dist/chunks/{location-services-ksz0h0wp.js → credential-vyqtz9n7.js} +1 -1
- package/dist/chunks/{location-services-vzcthcp8.js → credential-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-services-kap76w5z.js → credential-w031r0ta.js} +23 -23
- package/dist/chunks/{location-services-7dh69f0v.js → credential-w09rpk5j.js} +7 -7
- package/dist/chunks/{location-services-z5jxp7ad.js → credential-w27d4nw8.js} +33 -33
- package/dist/chunks/{location-services-v5w9803s.js → credential-w2q9x1k3.js} +8 -8
- package/dist/chunks/{location-services-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-services-p4j0k99t.js → credential-w4enfkwp.js} +30 -30
- package/dist/chunks/{location-services-kp0f7k9w.js → credential-w7cj9ekx.js} +4 -4
- package/dist/chunks/{location-services-mgn1q268.js → credential-w8gzpttc.js} +25 -25
- package/dist/chunks/{location-services-wd87259q.js → credential-wd87259q.js} +1 -1
- package/dist/chunks/{location-services-hmtdza7e.js → credential-wfr0f2wv.js} +50 -50
- package/dist/chunks/{location-services-sktxfqvp.js → credential-wnbzzbw2.js} +9 -9
- package/dist/chunks/{location-services-x0b2ccgt.js → credential-wptwfzfm.js} +20 -20
- package/dist/chunks/{location-services-p75j69a2.js → credential-wrxgasq3.js} +20 -20
- package/dist/chunks/{location-services-fbrz957q.js → credential-wvhct48y.js} +25 -25
- package/dist/chunks/{location-services-z7wszd63.js → credential-x0srfm87.js} +18 -18
- package/dist/chunks/{location-services-x1ezjp6w.js → credential-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-services-x43y2vfs.js → credential-x43y2vfs.js} +2 -2
- package/dist/chunks/{location-services-g764418v.js → credential-xzr3fv1j.js} +7 -7
- package/dist/chunks/{location-services-y1fvbwt7.js → credential-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-services-y71avatq.js → credential-y71avatq.js} +1 -1
- package/dist/chunks/{location-services-rhd00fat.js → credential-y8ztsxtk.js} +9 -9
- package/dist/chunks/{location-services-efrqks1z.js → credential-y91nxhfn.js} +19 -19
- package/dist/chunks/{location-services-hm9cthtf.js → credential-yjc83x66.js} +28 -28
- package/dist/chunks/{location-services-yrhqyw5v.js → credential-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-services-n76fdqym.js → credential-yww5gzhe.js} +5 -5
- package/dist/chunks/{location-services-z0bkrqjs.js → credential-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-services-r01t9b5y.js → credential-z2qvtray.js} +6 -6
- package/dist/chunks/{location-services-3w0fmcng.js → credential-z3pw5915.js} +5 -5
- package/dist/chunks/{location-services-9yks55mb.js → credential-z6rkfk30.js} +19 -19
- package/dist/chunks/{location-services-m14v0kx0.js → credential-z8awfy9p.js} +13 -13
- package/dist/chunks/{location-services-zeh9ct20.js → credential-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-services-zr2ceqn5.js → credential-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-services-erd68jx8.js → credential-zrrbqdrq.js} +30 -30
- package/dist/chunks/{location-services-zxq2ej10.js → credential-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +113 -113
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +115 -115
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +113 -113
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +115 -115
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +77 -77
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -361
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- 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 +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +100 -100
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +84 -84
- package/dist/generate.js +91 -91
- package/dist/git.js +7 -7
- 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 +3 -3
- 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 +353 -353
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +131 -131
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +350 -350
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +97 -97
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +8 -8
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +106 -106
- 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 +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -324
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- 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 +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +79 -79
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +76 -76
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -343
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +5 -5
- 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 +86 -86
- package/dist/reference/instructions.js +82 -82
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +127 -127
- package/dist/session/context.js +147 -147
- 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 +219 -219
- package/dist/session/execution.js +120 -120
- package/dist/session/generate.js +148 -148
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +75 -75
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +88 -88
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +121 -121
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +83 -83
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +103 -103
- package/dist/snapshot.js +82 -82
- 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 +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +119 -119
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +106 -106
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +7 -7
- 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 +4 -4
- package/dist/v1/config/formatter.js +5 -5
- 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 +4 -4
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- 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/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +72 -72
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +342 -342
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +85 -85
- package/package.json +8 -8
- package/dist/chunks/location-services-0ckm5bhw.js +0 -22
- package/dist/chunks/location-services-1x11rq2a.js +0 -18
- package/dist/chunks/location-services-cgxejw6v.js +0 -462
- package/dist/chunks/location-services-rvz3wna3.js +0 -247
- /package/dist/chunks/{location-services-0mesazry.js → credential-0mesazry.js} +0 -0
- /package/dist/chunks/{location-services-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-services-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-services-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-services-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-services-1kg9ymc8.js → credential-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-services-2710q6r3.js → credential-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-services-2axfhc9x.js → credential-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-services-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-services-359p4xyc.js → credential-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-services-3asan66x.js → credential-3asan66x.js} +0 -0
- /package/dist/chunks/{location-services-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-services-3w5fmr99.js → credential-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-services-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-services-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-services-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-services-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-services-53557ph1.js → credential-53557ph1.js} +0 -0
- /package/dist/chunks/{location-services-550bvhaj.js → credential-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-services-6prwharc.js → credential-6prwharc.js} +0 -0
- /package/dist/chunks/{location-services-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-services-7m9af43g.js → credential-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-services-822emrt2.js → credential-822emrt2.js} +0 -0
- /package/dist/chunks/{location-services-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-services-8n3pysct.js → credential-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-services-922hggd3.js → credential-922hggd3.js} +0 -0
- /package/dist/chunks/{location-services-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-services-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-services-a1tpkmh4.js → credential-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{location-services-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-services-af5trqkr.js → credential-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-services-afrmfg78.js → credential-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-services-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-services-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-services-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-services-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-services-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-services-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-services-d9fn303g.js → credential-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-services-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-services-dajrwvna.js → credential-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-services-dap0rakb.js → credential-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-services-df08tz66.js → credential-df08tz66.js} +0 -0
- /package/dist/chunks/{location-services-dy18nga0.js → credential-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-services-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-services-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-services-ec1grn59.js → credential-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-services-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-services-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-services-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-services-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-services-faypxj3z.js → credential-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-services-fd410y7t.js → credential-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-services-fxgpk5d8.js → credential-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-services-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-services-g86h250q.js → credential-g86h250q.js} +0 -0
- /package/dist/chunks/{location-services-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-services-gftt206x.js → credential-gftt206x.js} +0 -0
- /package/dist/chunks/{location-services-hjbc5kem.js → credential-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-services-hk9envan.js → credential-hk9envan.js} +0 -0
- /package/dist/chunks/{location-services-hrnqkpcd.js → credential-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{location-services-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-services-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-services-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-services-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-services-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-services-mp448xyj.js → credential-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-services-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-services-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-services-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-services-njntx4h6.js → credential-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-services-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-services-q74kybfr.js → credential-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-services-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-services-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-services-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-services-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-services-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-services-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-services-sk3qaz4a.js → credential-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-services-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-services-twg0f83k.js → credential-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-services-w803qqfp.js → credential-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-services-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-services-wtztk69x.js → credential-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-services-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-services-x61499pn.js → credential-x61499pn.js} +0 -0
- /package/dist/chunks/{location-services-y44na4kk.js → credential-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-services-y8cydn3q.js → credential-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-services-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-services-ym463w8f.js → credential-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-services-z9919s4g.js → credential-z9919s4g.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./credential-q19fwqr8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service76,
|
|
7
|
+
node81
|
|
8
|
+
} from "./credential-mj233eqc.js";
|
|
9
9
|
import {
|
|
10
10
|
reconcile2,
|
|
11
11
|
create3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./credential-kg06axw8.js";
|
|
13
13
|
import {
|
|
14
14
|
PATCH_CONTEXT_LINES2,
|
|
15
15
|
MAX_TOTAL_PATCH_BYTES2,
|
|
16
16
|
emptyPatch2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./credential-tazgh4e4.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./credential-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/vcs.ts
|
|
23
23
|
var exports_vcs = {};
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info30,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service75,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node80
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info30, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,12 +45,12 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service75 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const bus = yield*
|
|
52
|
+
const location = yield* Service76;
|
|
53
|
+
const bus = yield* Service79;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
56
56
|
const vcs = location.vcs;
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info30));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -115,7 +115,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
115
115
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
116
116
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return Service75.of({
|
|
119
119
|
transform: state.transform,
|
|
120
120
|
reload: state.reload,
|
|
121
121
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -161,10 +161,10 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
165
|
-
service:
|
|
164
|
+
var node80 = makeLocationNode({
|
|
165
|
+
service: Service75,
|
|
166
166
|
layer,
|
|
167
|
-
deps: [FSUtil.node,
|
|
167
|
+
deps: [FSUtil.node, node81, node84]
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
export { Base2, BranchList2, FileStatus2,
|
|
170
|
+
export { Base2, BranchList2, FileStatus2, Info30, Mode2, DiffError2, Service75, node80, exports_vcs };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./credential-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Info9,
|
|
6
6
|
ID6,
|
|
7
7
|
Name2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./credential-wptwfzfm.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service63
|
|
11
|
+
} from "./credential-p0sx4xrp.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./credential-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/skill.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
17
|
+
var exports_skill = {};
|
|
18
|
+
__export(exports_skill, {
|
|
19
19
|
OpencodeContent: () => OpencodeContent2,
|
|
20
20
|
OpencodeDescription: () => OpencodeDescription2,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin13,
|
|
22
22
|
ReportContent: () => ReportContent2,
|
|
23
|
-
SkillPlugin: () =>
|
|
23
|
+
SkillPlugin: () => exports_skill
|
|
24
24
|
});
|
|
25
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
26
26
|
import { Effect } from "effect";
|
|
@@ -422,19 +422,19 @@ var OpencodeContent2 = opencode_default;
|
|
|
422
422
|
var ReportContent2 = report_default;
|
|
423
423
|
var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
|
|
424
424
|
var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
|
|
425
|
-
var
|
|
425
|
+
var Plugin13 = define({
|
|
426
426
|
id: "opencode.skill",
|
|
427
427
|
effect: Effect.fn(function* (ctx) {
|
|
428
428
|
const reportContent = yield* reportContentWithDiagnostics(ctx.app);
|
|
429
429
|
yield* ctx.skill.transform((editor) => {
|
|
430
|
-
editor.add(
|
|
430
|
+
editor.add(Info9.make({
|
|
431
431
|
id: ID6.make("opencode"),
|
|
432
432
|
name: Name2.make("OpenCode"),
|
|
433
433
|
description: OpencodeDescription2,
|
|
434
434
|
location: AbsolutePath2.make("/builtin/opencode.md"),
|
|
435
435
|
content: OpencodeContent2
|
|
436
436
|
}));
|
|
437
|
-
editor.add(
|
|
437
|
+
editor.add(Info9.make({
|
|
438
438
|
id: ID6.make("report"),
|
|
439
439
|
name: Name2.make("Report"),
|
|
440
440
|
description: REPORT_DESCRIPTION,
|
|
@@ -464,7 +464,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
|
|
|
464
464
|
`);
|
|
465
465
|
});
|
|
466
466
|
var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
|
|
467
|
-
const config = yield*
|
|
467
|
+
const config = yield* Service63;
|
|
468
468
|
return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
|
|
469
469
|
});
|
|
470
470
|
function terminal() {
|
|
@@ -478,4 +478,4 @@ function shell() {
|
|
|
478
478
|
return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
export { OpencodeContent2, ReportContent2, OpencodeDescription2,
|
|
481
|
+
export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin13, exports_skill };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service80,
|
|
3
|
+
node85
|
|
4
|
+
} from "./credential-ahcp8nkf.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./credential-hdnk95c8.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./credential-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
16
|
+
ID: () => ID9,
|
|
17
|
+
Info: () => Info11,
|
|
18
18
|
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service59,
|
|
21
|
+
node: () => node64
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID9 = PermissionSaved.ID;
|
|
29
|
+
var Info11 = PermissionSaved.Info;
|
|
30
30
|
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
@@ -36,10 +36,10 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service59 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const db = (yield*
|
|
41
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
42
|
+
const db = (yield* Service80).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
45
45
|
return rows.map((row) => ({
|
|
@@ -53,7 +53,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
53
53
|
if (!input.resources.length)
|
|
54
54
|
return;
|
|
55
55
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
56
|
-
id:
|
|
56
|
+
id: ID9.create(),
|
|
57
57
|
project_id: input.projectID,
|
|
58
58
|
action: input.action,
|
|
59
59
|
resource
|
|
@@ -62,8 +62,8 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
62
62
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
63
63
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
64
64
|
});
|
|
65
|
-
return
|
|
65
|
+
return Service59.of({ list, add, remove });
|
|
66
66
|
}));
|
|
67
|
-
var
|
|
67
|
+
var node64 = makeGlobalNode({ service: Service59, layer, deps: [node85] });
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { ID9, Info11, ListInput4, AddInput2, Service59, node64, exports_saved };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./credential-q19fwqr8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event18,
|
|
7
|
+
Service72,
|
|
8
|
+
node77
|
|
9
|
+
} from "./credential-m1gz7xkc.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service64,
|
|
12
|
+
node69
|
|
13
|
+
} from "./credential-fw4rsm43.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./credential-922hggd3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service76,
|
|
19
|
+
node81
|
|
20
|
+
} from "./credential-mj233eqc.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./credential-s4enseaf.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./credential-nahk2kxe.js";
|
|
27
27
|
import {
|
|
28
28
|
names4,
|
|
29
29
|
discover3
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./credential-gj6dbvth.js";
|
|
31
31
|
import {
|
|
32
32
|
plan2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./credential-j56e64zr.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
35
|
+
Service65,
|
|
36
|
+
Event14,
|
|
37
|
+
node70
|
|
38
|
+
} from "./credential-dqv7d9mx.js";
|
|
39
39
|
import {
|
|
40
40
|
__export
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./credential-9rqn6x4v.js";
|
|
42
42
|
|
|
43
43
|
// src/config.ts
|
|
44
44
|
var exports_config = {};
|
|
45
45
|
__export(exports_config, {
|
|
46
46
|
Config: () => exports_config,
|
|
47
|
-
Options: () =>
|
|
48
|
-
Service: () =>
|
|
47
|
+
Options: () => Options7,
|
|
48
|
+
Service: () => Service63,
|
|
49
49
|
Test: () => Test2,
|
|
50
50
|
configured: () => configured9,
|
|
51
51
|
latest: () => latest2,
|
|
52
52
|
layer: () => layer21,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node68,
|
|
54
54
|
testLayer: () => testLayer2
|
|
55
55
|
});
|
|
56
56
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -71,14 +71,14 @@ import { Global } from "@opencode/util/global";
|
|
|
71
71
|
function latest2(entries, key) {
|
|
72
72
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
73
73
|
}
|
|
74
|
-
var
|
|
74
|
+
var Options7 = Schema.Struct({
|
|
75
75
|
project: Schema.optional(Schema.Boolean),
|
|
76
76
|
global: Schema.optional(Schema.Boolean),
|
|
77
77
|
file: Schema.optional(Schema.String),
|
|
78
78
|
content: Schema.optional(Schema.String)
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
class
|
|
81
|
+
class Service63 extends Context.Service()("@opencode/Config") {
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -92,15 +92,15 @@ var testLayer2 = (initial = []) => Layer.effectContext(Effect.gen(function* () {
|
|
|
92
92
|
setEntries: (next) => Ref.set(entries, next),
|
|
93
93
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
94
94
|
});
|
|
95
|
-
return Context.empty().pipe(Context.add(
|
|
95
|
+
return Context.empty().pipe(Context.add(Service63, service), Context.add(Test2, service));
|
|
96
96
|
}));
|
|
97
|
-
var layer21 = (options) => Layer.effect(
|
|
97
|
+
var layer21 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
|
-
const location = yield*
|
|
100
|
-
const watcher = yield*
|
|
101
|
-
const bus = yield*
|
|
102
|
-
const credentials = yield*
|
|
103
|
-
const wellknown = yield*
|
|
99
|
+
const location = yield* Service76;
|
|
100
|
+
const watcher = yield* Service64;
|
|
101
|
+
const bus = yield* Service79;
|
|
102
|
+
const credentials = yield* Service72;
|
|
103
|
+
const wellknown = yield* Service65;
|
|
104
104
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
105
105
|
const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
|
|
106
106
|
const decodeInfo = Schema.decodeUnknownOption(Info, decodeOptions);
|
|
@@ -223,8 +223,8 @@ var layer21 = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
223
223
|
}, (effect) => reloadLock.withPermit(effect));
|
|
224
224
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
225
225
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
226
|
-
yield* bus.subscribe(
|
|
227
|
-
yield* bus.subscribe(
|
|
226
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
227
|
+
yield* bus.subscribe(Event14.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
228
228
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
229
229
|
if (!wellknown.snapshot().length)
|
|
230
230
|
return Effect.void;
|
|
@@ -235,7 +235,7 @@ var layer21 = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
235
235
|
}).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to refresh wellknown config", { cause })));
|
|
236
236
|
})), Effect.forever, Effect.forkScoped({ startImmediately: true }));
|
|
237
237
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
238
|
-
return
|
|
238
|
+
return Service63.of({
|
|
239
239
|
entries: Effect.fnUntraced(function* () {
|
|
240
240
|
return configs;
|
|
241
241
|
}),
|
|
@@ -244,11 +244,11 @@ var layer21 = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
244
244
|
}));
|
|
245
245
|
function configured9(options) {
|
|
246
246
|
return makeLocationNode({
|
|
247
|
-
service:
|
|
247
|
+
service: Service63,
|
|
248
248
|
layer: layer21(options),
|
|
249
|
-
deps: [
|
|
249
|
+
deps: [node69, node84, FSUtil.node, Global.node, node81, node77, node70]
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
var
|
|
252
|
+
var node68 = configured9();
|
|
253
253
|
|
|
254
|
-
export { latest2,
|
|
254
|
+
export { latest2, Options7, Service63, Test2, testLayer2, layer21, configured9, node68, exports_config };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./credential-y71avatq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service79,
|
|
6
|
+
node84
|
|
7
|
+
} from "./credential-q19fwqr8.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event18,
|
|
10
|
+
Service72,
|
|
11
|
+
node77
|
|
12
|
+
} from "./credential-m1gz7xkc.js";
|
|
13
13
|
import {
|
|
14
|
-
Service69,
|
|
15
|
-
node74
|
|
16
|
-
} from "./location-services-1s1fbqj5.js";
|
|
17
|
-
import {
|
|
18
|
-
Service67,
|
|
19
|
-
node71
|
|
20
|
-
} from "./location-services-g35h8zvz.js";
|
|
21
|
-
import {
|
|
22
|
-
ID15,
|
|
23
14
|
Service76,
|
|
24
15
|
node81
|
|
25
|
-
} from "./
|
|
16
|
+
} from "./credential-mj233eqc.js";
|
|
17
|
+
import {
|
|
18
|
+
Service54,
|
|
19
|
+
node58
|
|
20
|
+
} from "./credential-2jhbac8t.js";
|
|
21
|
+
import {
|
|
22
|
+
ID13,
|
|
23
|
+
Service70,
|
|
24
|
+
node75
|
|
25
|
+
} from "./credential-rxzbznts.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./credential-kg06axw8.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID12,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service69,
|
|
34
|
+
node74
|
|
35
|
+
} from "./credential-w27d4nw8.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./credential-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
@@ -56,15 +56,15 @@ __export(exports_mcp4, {
|
|
|
56
56
|
ServerInfo: () => ServerInfo2,
|
|
57
57
|
ServerInstructions: () => ServerInstructions2,
|
|
58
58
|
ServerName: () => ServerName2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service29,
|
|
60
60
|
Status: () => Status2,
|
|
61
61
|
Tool: () => Tool3,
|
|
62
62
|
ToolCallError: () => ToolCallError2,
|
|
63
63
|
ToolResult: () => ToolResult2,
|
|
64
64
|
ToolResultContent: () => ToolResultContent2,
|
|
65
65
|
configured: () => configured4,
|
|
66
|
-
layer: () =>
|
|
67
|
-
node: () =>
|
|
66
|
+
layer: () => layer13,
|
|
67
|
+
node: () => node34
|
|
68
68
|
});
|
|
69
69
|
import { Mcp } from "@opencode/schema/mcp";
|
|
70
70
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -81,7 +81,7 @@ var Status2 = Mcp.Status;
|
|
|
81
81
|
class ServerInfo2 extends Schema.Class("MCP.ServerInfo")({
|
|
82
82
|
name: ServerName2,
|
|
83
83
|
status: Status2,
|
|
84
|
-
integrationID:
|
|
84
|
+
integrationID: ID12.pipe(Schema.optional)
|
|
85
85
|
}) {
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -165,7 +165,7 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
165
165
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
166
166
|
var cloneConfig = (config) => structuredClone(config);
|
|
167
167
|
|
|
168
|
-
class
|
|
168
|
+
class Service29 extends Context.Service()("@opencode/MCP") {
|
|
169
169
|
}
|
|
170
170
|
var Options4 = Schema.Struct({
|
|
171
171
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -173,13 +173,13 @@ var Options4 = Schema.Struct({
|
|
|
173
173
|
version: Schema.String
|
|
174
174
|
}))
|
|
175
175
|
});
|
|
176
|
-
var
|
|
177
|
-
const location = yield*
|
|
178
|
-
const environment = yield*
|
|
179
|
-
const bus = yield*
|
|
180
|
-
const forms = yield*
|
|
181
|
-
const integration = yield*
|
|
182
|
-
const credentials = yield*
|
|
176
|
+
var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
177
|
+
const location = yield* Service76;
|
|
178
|
+
const environment = yield* Service54;
|
|
179
|
+
const bus = yield* Service79;
|
|
180
|
+
const forms = yield* Service70;
|
|
181
|
+
const integration = yield* Service69;
|
|
182
|
+
const credentials = yield* Service72;
|
|
183
183
|
const root = yield* Effect.scope;
|
|
184
184
|
const fork = yield* FiberSet.makeRuntime();
|
|
185
185
|
const entries = new Map;
|
|
@@ -191,7 +191,7 @@ var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
|
191
191
|
return;
|
|
192
192
|
const remote = entry.config;
|
|
193
193
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
194
|
-
const integrationID =
|
|
194
|
+
const integrationID = ID12.make(suffix);
|
|
195
195
|
entry.integrationID = integrationID;
|
|
196
196
|
owned.add(integrationID);
|
|
197
197
|
const methodID = MethodID2.make(suffix);
|
|
@@ -315,7 +315,7 @@ var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
|
315
315
|
const elicitation = {
|
|
316
316
|
create: (input) => Effect.gen(function* () {
|
|
317
317
|
if (input.params.mode === "url") {
|
|
318
|
-
const formID =
|
|
318
|
+
const formID = ID13.create();
|
|
319
319
|
const key = input.server + "\x00" + input.params.elicitationId;
|
|
320
320
|
urlElicitations.set(key, formID);
|
|
321
321
|
return yield* forms.ask({
|
|
@@ -433,7 +433,7 @@ var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
|
433
433
|
entry.scope = scope;
|
|
434
434
|
const authProvider = yield* connectProvider(entry);
|
|
435
435
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
436
|
-
const result = yield* 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(
|
|
436
|
+
const result = yield* 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(Service54, environment), Scope.provide(scope), Effect.exit);
|
|
437
437
|
if (Exit.isSuccess(result)) {
|
|
438
438
|
entry.client = result.value.connection;
|
|
439
439
|
entry.tools = result.value.tools.map((def) => toTool(name, entry, def));
|
|
@@ -557,7 +557,7 @@ var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
|
557
557
|
yield* startServer(name, entry);
|
|
558
558
|
}).pipe(locks.withLock(name));
|
|
559
559
|
});
|
|
560
|
-
fork(bus.subscribe(
|
|
560
|
+
fork(bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
561
561
|
const state = create3({
|
|
562
562
|
name: "mcp",
|
|
563
563
|
initial: () => ({
|
|
@@ -587,7 +587,7 @@ var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
|
587
587
|
concurrency: "unbounded",
|
|
588
588
|
discard: true
|
|
589
589
|
}));
|
|
590
|
-
return
|
|
590
|
+
return Service29.of({
|
|
591
591
|
transform: state.transform,
|
|
592
592
|
reload: state.reload,
|
|
593
593
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -709,12 +709,12 @@ var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
|
709
709
|
}));
|
|
710
710
|
function configured4(options) {
|
|
711
711
|
return makeLocationNode({
|
|
712
|
-
service:
|
|
713
|
-
layer:
|
|
714
|
-
deps: [
|
|
712
|
+
service: Service29,
|
|
713
|
+
layer: layer13(options),
|
|
714
|
+
deps: [node81, node58, node84, node75, node74, node77]
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
var
|
|
717
|
+
var node34 = configured4();
|
|
718
718
|
function toElicitationField(key, property, required) {
|
|
719
719
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
720
720
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -765,4 +765,4 @@ function toElicitationField(key, property, required) {
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool3, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2,
|
|
768
|
+
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool3, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2, Service29, Options4, layer13, configured4, node34, exports_mcp4 };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service79,
|
|
4
|
+
node84
|
|
5
|
+
} from "./credential-q19fwqr8.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./credential-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service3,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer4,
|
|
17
|
+
node: () => node5
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service3 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
const bus = yield*
|
|
25
|
+
var layer4 = Layer.effect(Service3, Effect.gen(function* () {
|
|
26
|
+
const bus = yield* Service79;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service3.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {})), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node5 = makeGlobalNode({ service: Service3, layer: layer4, deps: [node84] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service3, layer4, node5, exports_sdk };
|