@opencode/core 0.0.0-dev-20670 → 0.0.0-dev-20676
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{variant-43a10n5x.js → location-service-map-02ap8hgf.js} +11 -11
- package/dist/chunks/{variant-8whp40kv.js → location-service-map-08rawchj.js} +3 -3
- package/dist/chunks/{variant-7kyq03wq.js → location-service-map-0bqj672y.js} +75 -75
- package/dist/chunks/{variant-96te9d4b.js → location-service-map-0gapa1rm.js} +5 -5
- package/dist/chunks/{variant-q0xm7vwc.js → location-service-map-0j77ygfz.js} +6 -6
- package/dist/chunks/{variant-0paq2nw3.js → location-service-map-0paq2nw3.js} +1 -1
- package/dist/chunks/{variant-0vbcp93d.js → location-service-map-0vbcp93d.js} +2 -2
- package/dist/chunks/{variant-11zweyk1.js → location-service-map-11j58wcb.js} +16 -16
- package/dist/chunks/{variant-gtz9hmz6.js → location-service-map-175z9p3h.js} +29 -29
- package/dist/chunks/{variant-mge8kx0v.js → location-service-map-184snskb.js} +26 -26
- package/dist/chunks/{variant-e4znzpr0.js → location-service-map-19t8v49x.js} +29 -29
- package/dist/chunks/{variant-73y8v8y6.js → location-service-map-1azy29z3.js} +1 -1
- package/dist/chunks/{variant-gxre2ca4.js → location-service-map-1bpgn3j1.js} +41 -41
- package/dist/chunks/{variant-1dazxqgg.js → location-service-map-1dazxqgg.js} +2 -2
- package/dist/chunks/{variant-gsnm7xcg.js → location-service-map-1j9eqnrf.js} +25 -25
- package/dist/chunks/{variant-zr84kw0b.js → location-service-map-1jnd4n2z.js} +48 -48
- package/dist/chunks/{variant-2c6y2vpm.js → location-service-map-1ske5fb0.js} +38 -36
- package/dist/chunks/{variant-gmmdfr2g.js → location-service-map-1xzpbkn4.js} +11 -11
- package/dist/chunks/{variant-56gdpj1q.js → location-service-map-1ygqh575.js} +9 -9
- package/dist/chunks/{variant-9w3q8q8k.js → location-service-map-1yjhkjct.js} +16 -16
- package/dist/chunks/{variant-hbepmwya.js → location-service-map-1zmgywvv.js} +18 -18
- package/dist/chunks/{variant-2a5m3afh.js → location-service-map-2a5m3afh.js} +1 -1
- package/dist/chunks/{variant-6hay09zr.js → location-service-map-2c4ctngw.js} +30 -30
- package/dist/chunks/{variant-4ts7tf6z.js → location-service-map-2ccvkpx1.js} +2 -2
- package/dist/chunks/{variant-tbmac1c7.js → location-service-map-2k71kv7p.js} +4 -4
- package/dist/chunks/{variant-djszqvmq.js → location-service-map-2sejkfem.js} +9 -9
- package/dist/chunks/{variant-jarn1zxe.js → location-service-map-2vbg8t8g.js} +6 -6
- package/dist/chunks/{variant-qxtmr2bd.js → location-service-map-2xh4f3v5.js} +4 -4
- package/dist/chunks/{variant-4rgynks6.js → location-service-map-2yzjveyy.js} +8 -8
- package/dist/chunks/{variant-npj3fp8d.js → location-service-map-325kx1e5.js} +11 -11
- package/dist/chunks/{variant-zv2rxc3d.js → location-service-map-38bs44c2.js} +6 -6
- package/dist/chunks/{variant-y2dcdtp0.js → location-service-map-394e98e2.js} +9 -9
- package/dist/chunks/{variant-h2b79v29.js → location-service-map-3cegwx68.js} +2 -2
- package/dist/chunks/{variant-3fc6dm20.js → location-service-map-3fc6dm20.js} +1 -1
- package/dist/chunks/{variant-mm69kq7h.js → location-service-map-3fgnt1g5.js} +20 -20
- package/dist/chunks/{variant-27k4znhv.js → location-service-map-3hegg1r1.js} +34 -34
- package/dist/chunks/{variant-3hepkmqq.js → location-service-map-3hepkmqq.js} +1 -1
- package/dist/chunks/{variant-mqj33d01.js → location-service-map-3q0tb30h.js} +14 -14
- package/dist/chunks/{variant-3smtnn6g.js → location-service-map-3smtnn6g.js} +1 -1
- package/dist/chunks/{variant-3tvqynh2.js → location-service-map-3tvqynh2.js} +1 -1
- package/dist/chunks/{variant-anzb5n5e.js → location-service-map-3vzqx2de.js} +30 -30
- package/dist/chunks/{variant-3zsf4n22.js → location-service-map-3zsf4n22.js} +1 -1
- package/dist/chunks/{variant-pddh4aqp.js → location-service-map-450z7n67.js} +9 -9
- package/dist/chunks/{variant-g4yyayt9.js → location-service-map-4c12s6k2.js} +5 -5
- package/dist/chunks/{variant-yrm0szr2.js → location-service-map-4pnaszbr.js} +19 -19
- package/dist/chunks/{variant-tc2bp7te.js → location-service-map-4wrkd8nn.js} +11 -11
- package/dist/chunks/{variant-1ypt9myv.js → location-service-map-4yzb4k77.js} +30 -30
- package/dist/chunks/{variant-pwkca9pk.js → location-service-map-50c6c5t8.js} +3 -3
- package/dist/chunks/{variant-54ma36ye.js → location-service-map-54ma36ye.js} +1 -1
- package/dist/chunks/{variant-y77dm3c4.js → location-service-map-56bmv1jq.js} +15 -15
- package/dist/chunks/{variant-hj5zw0v5.js → location-service-map-5b9bq1rj.js} +23 -23
- package/dist/chunks/{variant-363vysxk.js → location-service-map-5bsr47cr.js} +12 -12
- package/dist/chunks/{variant-5daktx2q.js → location-service-map-5daktx2q.js} +1 -1
- package/dist/chunks/{variant-273qqx2t.js → location-service-map-5f4txd3a.js} +5 -5
- package/dist/chunks/{variant-5m9w47nd.js → location-service-map-5m9w47nd.js} +1 -1
- package/dist/chunks/{variant-7qt3axmk.js → location-service-map-5r8mhc2e.js} +18 -18
- package/dist/chunks/{variant-5t3nmthw.js → location-service-map-5t3nmthw.js} +2 -2
- package/dist/chunks/{variant-q74y9j8r.js → location-service-map-5te2wr9w.js} +11 -11
- package/dist/chunks/{variant-magykp64.js → location-service-map-5wtwrezn.js} +21 -21
- package/dist/chunks/{variant-8pypt00x.js → location-service-map-6d6dcgkd.js} +13 -13
- package/dist/chunks/{variant-a7zpr1c3.js → location-service-map-6gb5ybxr.js} +15 -15
- package/dist/chunks/{variant-85cf5a55.js → location-service-map-6hjr6ee9.js} +7 -7
- package/dist/chunks/{variant-3ftpg69t.js → location-service-map-6n9j43ss.js} +20 -20
- package/dist/chunks/{variant-kg3zg8yk.js → location-service-map-6qmzkyd7.js} +34 -34
- package/dist/chunks/{variant-6xb47vfp.js → location-service-map-6xb47vfp.js} +1 -1
- package/dist/chunks/{variant-gfds2h31.js → location-service-map-7agpffj5.js} +21 -21
- package/dist/chunks/{variant-7bmhse3q.js → location-service-map-7bmhse3q.js} +1 -1
- package/dist/chunks/{variant-a1n2n4d8.js → location-service-map-7dgtb3sy.js} +27 -27
- package/dist/chunks/{variant-2k8khapm.js → location-service-map-7dqw4kz8.js} +5 -5
- package/dist/chunks/{variant-4wk8r1at.js → location-service-map-7pzbknk5.js} +18 -18
- package/dist/chunks/{variant-srk0zn0s.js → location-service-map-7vwv1ctf.js} +39 -39
- package/dist/chunks/{variant-az8dgmmc.js → location-service-map-7yqn6t2d.js} +11 -11
- package/dist/chunks/{variant-3r1fp5nk.js → location-service-map-83ceevpg.js} +5 -5
- package/dist/chunks/{variant-1dvck2a7.js → location-service-map-84h8c373.js} +2 -2
- package/dist/chunks/{variant-fqtvmpfq.js → location-service-map-892mrmp0.js} +8 -8
- package/dist/chunks/{variant-1fbkv74j.js → location-service-map-8aencfgk.js} +9 -9
- package/dist/chunks/{variant-8d7r5vzw.js → location-service-map-8d7r5vzw.js} +1 -1
- package/dist/chunks/{variant-was7srj9.js → location-service-map-8mfdap3f.js} +8 -8
- package/dist/chunks/{variant-gwyfdq8m.js → location-service-map-8nqcfcr1.js} +24 -24
- package/dist/chunks/{variant-qvpfanze.js → location-service-map-8p3dxnqd.js} +6 -6
- package/dist/chunks/{variant-5evreb3e.js → location-service-map-8qkqmygm.js} +9 -9
- package/dist/chunks/{variant-y5rf7nzv.js → location-service-map-8wbxkt1z.js} +4 -4
- package/dist/chunks/{variant-r42cqwsc.js → location-service-map-8wknmqy6.js} +41 -41
- package/dist/chunks/{variant-w0033jfm.js → location-service-map-96c8tg89.js} +15 -15
- package/dist/chunks/{variant-k7xgtgde.js → location-service-map-9c5rr9n3.js} +11 -11
- package/dist/chunks/location-service-map-9cv4zsas.js +26 -0
- package/dist/chunks/{variant-fa9g1mnx.js → location-service-map-9qyb5gne.js} +18 -18
- package/dist/chunks/{variant-34bswkv4.js → location-service-map-9rsdwp92.js} +42 -42
- package/dist/chunks/{variant-bf28q0c2.js → location-service-map-9ser2t9j.js} +13 -13
- package/dist/chunks/{variant-wv396vej.js → location-service-map-9t7a50xb.js} +6 -6
- package/dist/chunks/{variant-fzf3d4e0.js → location-service-map-9y0pke98.js} +28 -28
- package/dist/chunks/{variant-a1gpj94z.js → location-service-map-a1gpj94z.js} +1 -1
- package/dist/chunks/{variant-7zjc8zg2.js → location-service-map-a27tyv5c.js} +6 -6
- package/dist/chunks/{variant-36zr3dcy.js → location-service-map-a4fvnfmb.js} +4 -4
- package/dist/chunks/{variant-eqkxs06z.js → location-service-map-a4mewc9c.js} +6 -6
- package/dist/chunks/{variant-bdm4x938.js → location-service-map-a7bcxdzj.js} +9 -9
- package/dist/chunks/{variant-vrc7s6sw.js → location-service-map-a7wkqhsb.js} +13 -13
- package/dist/chunks/{variant-aaet6srn.js → location-service-map-aaet6srn.js} +2 -2
- package/dist/chunks/{variant-mf5w15f6.js → location-service-map-aed87xjs.js} +5 -5
- package/dist/chunks/{variant-3ha3xwk3.js → location-service-map-aeg6eyha.js} +19 -19
- package/dist/chunks/{variant-9s3nv18s.js → location-service-map-ahv44ny0.js} +12 -12
- package/dist/chunks/{variant-5gxvh74d.js → location-service-map-ak7pz24p.js} +16 -12
- package/dist/chunks/{variant-dgqg0y62.js → location-service-map-amyk267s.js} +28 -28
- package/dist/chunks/{variant-zy58z06m.js → location-service-map-avxkmpf6.js} +9 -9
- package/dist/chunks/{variant-vv8y31wj.js → location-service-map-awng3dnh.js} +12 -12
- package/dist/chunks/{variant-zpn6vsrm.js → location-service-map-aytqzqr5.js} +48 -48
- package/dist/chunks/{variant-j3hvrqpy.js → location-service-map-b1vm559f.js} +6 -6
- package/dist/chunks/{variant-zyk1yjk8.js → location-service-map-b3f8fkhc.js} +5 -5
- package/dist/chunks/{variant-jktqzjpa.js → location-service-map-b4twkq7r.js} +4 -4
- package/dist/chunks/{variant-b6gygkdw.js → location-service-map-b6gygkdw.js} +2 -2
- package/dist/chunks/{variant-w8pj8qhp.js → location-service-map-b9nzwy47.js} +28 -28
- package/dist/chunks/{variant-fj7dxcp8.js → location-service-map-bvnz36at.js} +28 -28
- package/dist/chunks/{variant-fmp6ttz0.js → location-service-map-c2wgan0f.js} +11 -11
- package/dist/chunks/{variant-hcxj4rsa.js → location-service-map-cds2n5n0.js} +42 -42
- package/dist/chunks/{variant-vfvegtrt.js → location-service-map-ctnq4dsf.js} +19 -19
- package/dist/chunks/{variant-96ctqc5x.js → location-service-map-dbv05mm3.js} +4 -4
- package/dist/chunks/{variant-xkntkrq7.js → location-service-map-dmqcgk4z.js} +5 -5
- package/dist/chunks/{variant-tfsj2qc7.js → location-service-map-dr6x92kd.js} +43 -43
- package/dist/chunks/location-service-map-dxj72tfx.js +18 -0
- package/dist/chunks/{variant-5qd3pb7m.js → location-service-map-e3qxr5gk.js} +2 -2
- package/dist/chunks/{variant-p1dchzeh.js → location-service-map-ecf0mzvt.js} +9 -9
- package/dist/chunks/{variant-g96ergdg.js → location-service-map-edhez49w.js} +33 -33
- package/dist/chunks/{variant-ef5x83kb.js → location-service-map-ef5x83kb.js} +1 -1
- package/dist/chunks/{variant-1aaptxkf.js → location-service-map-ejaq5k43.js} +19 -19
- package/dist/chunks/{variant-13phwz10.js → location-service-map-ekyddhpf.js} +4 -4
- package/dist/chunks/{variant-kzht0r54.js → location-service-map-enm5kfpk.js} +11 -11
- package/dist/chunks/{variant-etq0c3wd.js → location-service-map-etq0c3wd.js} +1 -1
- package/dist/chunks/{variant-vbhjmb5m.js → location-service-map-evtrk6k9.js} +8 -8
- package/dist/chunks/{variant-12r2p6ep.js → location-service-map-evw1vbjj.js} +19 -19
- package/dist/chunks/{variant-2weejz9f.js → location-service-map-ew67yh0c.js} +5 -5
- package/dist/chunks/{variant-9vqn762s.js → location-service-map-f1v9fw78.js} +4 -4
- package/dist/chunks/{variant-8xxgh2t9.js → location-service-map-f323m8zj.js} +27 -27
- package/dist/chunks/{variant-a5hrzf2z.js → location-service-map-f47nxccf.js} +3 -3
- package/dist/chunks/{variant-genng97f.js → location-service-map-f5311cxz.js} +2 -2
- package/dist/chunks/location-service-map-f6daj2pg.js +507 -0
- package/dist/chunks/{variant-71az546q.js → location-service-map-f75zav2x.js} +2 -2
- package/dist/chunks/{variant-tj9v0x4b.js → location-service-map-f8wxzn9z.js} +11 -11
- package/dist/chunks/{variant-5a9dmyae.js → location-service-map-f9c4ha4g.js} +28 -28
- package/dist/chunks/{variant-qyzq8tdf.js → location-service-map-fb3czpaz.js} +7 -7
- package/dist/chunks/{variant-hb96kx89.js → location-service-map-ff7yw72f.js} +18 -18
- package/dist/chunks/{variant-bydnjh3t.js → location-service-map-ftjf86m5.js} +9 -9
- package/dist/chunks/{variant-mxtpa36p.js → location-service-map-fwd3p1cx.js} +15 -15
- package/dist/chunks/{variant-2yxe94w7.js → location-service-map-g4dv7bvc.js} +8 -8
- package/dist/chunks/{variant-w19d8598.js → location-service-map-g5w8qwbj.js} +7 -7
- package/dist/chunks/{variant-v44y4b59.js → location-service-map-g8p0k12n.js} +14 -14
- package/dist/chunks/{variant-gd4qta3r.js → location-service-map-gd4qta3r.js} +1 -1
- package/dist/chunks/{variant-fcncf75j.js → location-service-map-gjjzmrg1.js} +20 -20
- package/dist/chunks/{variant-yj7yjf4r.js → location-service-map-grvv2rqy.js} +22 -22
- package/dist/chunks/{variant-mqkwkb58.js → location-service-map-gy15s2w2.js} +17 -17
- package/dist/chunks/{variant-e842s4t9.js → location-service-map-gyc5zbfz.js} +28 -28
- package/dist/chunks/{variant-zxsy4by3.js → location-service-map-h2kr4rkv.js} +34 -34
- package/dist/chunks/{variant-4ca69wfz.js → location-service-map-h5f6c4sz.js} +26 -26
- package/dist/chunks/{variant-h6vf3j39.js → location-service-map-h6vf3j39.js} +1 -1
- package/dist/chunks/{variant-4xpgt2w9.js → location-service-map-h83xjv7f.js} +5 -5
- package/dist/chunks/{variant-gw7cjrad.js → location-service-map-h9wp8z5w.js} +4 -4
- package/dist/chunks/{variant-d646jtrt.js → location-service-map-hbd3aq53.js} +14 -14
- package/dist/chunks/{variant-ygtb1s3e.js → location-service-map-hz5d2qnw.js} +8 -8
- package/dist/chunks/{variant-14mf7nj2.js → location-service-map-j2ags8d8.js} +3 -3
- package/dist/chunks/{variant-j56e64zr.js → location-service-map-j56e64zr.js} +1 -1
- package/dist/chunks/{variant-zhwjstx1.js → location-service-map-j7wrvvyd.js} +28 -28
- package/dist/chunks/{variant-psjjct8g.js → location-service-map-jzcv0qpc.js} +14 -14
- package/dist/chunks/{variant-8m5xe4tx.js → location-service-map-k185drda.js} +9 -9
- package/dist/chunks/location-service-map-k6m70d57.js +253 -0
- package/dist/chunks/{variant-ckf8nxjz.js → location-service-map-k76fn4kw.js} +4 -4
- package/dist/chunks/{variant-9e5bzkjp.js → location-service-map-kb9j3d72.js} +3 -3
- package/dist/chunks/{variant-5ejk7f0k.js → location-service-map-kcz43jmd.js} +13 -13
- package/dist/chunks/{variant-rgx9nb55.js → location-service-map-kwwqe74w.js} +7 -7
- package/dist/chunks/{variant-c1enaq1p.js → location-service-map-m011ww83.js} +58 -58
- package/dist/chunks/{variant-m3fdjcah.js → location-service-map-m3fdjcah.js} +1 -1
- package/dist/chunks/{variant-1bg0pxyr.js → location-service-map-m57273zm.js} +1 -1
- package/dist/chunks/{variant-ye8czdsw.js → location-service-map-m9mf0r2p.js} +24 -24
- package/dist/chunks/{variant-m9w0rfyh.js → location-service-map-m9w0rfyh.js} +1 -1
- package/dist/chunks/{variant-2vjdd89t.js → location-service-map-mec1k519.js} +60 -60
- package/dist/chunks/{variant-ncv9kjc6.js → location-service-map-mgs9qbr4.js} +11 -11
- package/dist/chunks/{variant-bytkh039.js → location-service-map-my4xzb9n.js} +11 -11
- package/dist/chunks/{variant-bf1ejp41.js → location-service-map-n7z4xm27.js} +25 -25
- package/dist/chunks/{variant-rhraev7y.js → location-service-map-nkf980df.js} +4 -4
- package/dist/chunks/{variant-dpkg50ah.js → location-service-map-nxm207yx.js} +4 -4
- package/dist/chunks/{variant-sjryg82s.js → location-service-map-nxn85c58.js} +13 -13
- package/dist/chunks/{variant-wyec3xap.js → location-service-map-p27g6bxy.js} +3 -3
- package/dist/chunks/{variant-takqf31v.js → location-service-map-p5045ta7.js} +31 -31
- package/dist/chunks/{variant-bvh7grhs.js → location-service-map-p6raj4b6.js} +1 -1
- package/dist/chunks/{variant-s1nb2eev.js → location-service-map-p72tdqb0.js} +33 -33
- package/dist/chunks/{variant-90nsq7vp.js → location-service-map-p999hyvt.js} +13 -13
- package/dist/chunks/{variant-76p9kcxt.js → location-service-map-pa1hgbv6.js} +23 -23
- package/dist/chunks/{variant-cmwkp3r5.js → location-service-map-pa8pe2x7.js} +8 -8
- package/dist/chunks/{variant-c7yhx3mn.js → location-service-map-pbkc6z0x.js} +30 -30
- package/dist/chunks/{variant-zpg27evg.js → location-service-map-ph6hkvqz.js} +21 -21
- package/dist/chunks/{variant-ajbd8md1.js → location-service-map-ph6vza46.js} +21 -21
- package/dist/chunks/{variant-s3rfr38d.js → location-service-map-pj2ztazb.js} +6 -6
- package/dist/chunks/{variant-pjvnvgmy.js → location-service-map-pjvnvgmy.js} +1 -1
- package/dist/chunks/{variant-pknna89w.js → location-service-map-pknna89w.js} +1 -1
- package/dist/chunks/{variant-0ryd0fps.js → location-service-map-pp7e5es3.js} +5 -5
- package/dist/chunks/{variant-xfwm1nrf.js → location-service-map-psvvfma6.js} +32 -32
- package/dist/chunks/{variant-bw5kq8m8.js → location-service-map-pthq0dnh.js} +11 -11
- package/dist/chunks/{variant-6tqx1ph1.js → location-service-map-q3ajnrbc.js} +11 -11
- package/dist/chunks/{variant-jyapyf9t.js → location-service-map-q6j3y7mw.js} +11 -11
- package/dist/chunks/{variant-vms99gx2.js → location-service-map-q6jc51jp.js} +6 -6
- package/dist/chunks/{variant-w1d288hs.js → location-service-map-qaybkfxq.js} +11 -11
- package/dist/chunks/{variant-e4qpf6ew.js → location-service-map-qbhax9c1.js} +42 -42
- package/dist/chunks/{variant-qnc92qwc.js → location-service-map-qnc92qwc.js} +1 -1
- package/dist/chunks/{variant-778zdafs.js → location-service-map-qpz47a73.js} +2 -2
- package/dist/chunks/{variant-qsdy395h.js → location-service-map-qsdy395h.js} +1 -1
- package/dist/chunks/{variant-fj13q4zb.js → location-service-map-qv69242q.js} +11 -11
- package/dist/chunks/{variant-eeaf82dq.js → location-service-map-qvb3nf84.js} +8 -8
- package/dist/chunks/{variant-xyafkbt0.js → location-service-map-qxjc9qry.js} +3 -3
- package/dist/chunks/{variant-zv5357n6.js → location-service-map-qy5rkdh4.js} +48 -48
- package/dist/chunks/{variant-24zt9st4.js → location-service-map-qz19f2ca.js} +3 -3
- package/dist/chunks/{variant-kwdfxrj7.js → location-service-map-r0k7g56y.js} +11 -11
- package/dist/chunks/{variant-3jmpz8k1.js → location-service-map-r2c3c0ss.js} +1 -1
- package/dist/chunks/{variant-7gak28c2.js → location-service-map-r2ppdy3s.js} +11 -11
- package/dist/chunks/{variant-v5dkyp31.js → location-service-map-ratrq7cm.js} +4 -4
- package/dist/chunks/{variant-rdw6cm16.js → location-service-map-rdw6cm16.js} +1 -1
- package/dist/chunks/{variant-s37hkjzm.js → location-service-map-rq6rwtv7.js} +11 -11
- package/dist/chunks/{variant-37rf5trb.js → location-service-map-rzqryg3a.js} +18 -18
- package/dist/chunks/{variant-ynjzq9s0.js → location-service-map-s3ntfkf5.js} +21 -21
- package/dist/chunks/{variant-y6hcfz9t.js → location-service-map-s7bwdk4y.js} +11 -11
- package/dist/chunks/{variant-f6es3tce.js → location-service-map-sdc6xxdr.js} +26 -26
- package/dist/chunks/{variant-y2j1t95j.js → location-service-map-sendxm4e.js} +16 -16
- package/dist/chunks/{variant-68hxq47m.js → location-service-map-smzvt7r2.js} +30 -30
- package/dist/chunks/{variant-k70p9jzb.js → location-service-map-srq8z0b0.js} +9 -9
- package/dist/chunks/{variant-gkh8nh6z.js → location-service-map-ssc7andz.js} +23 -23
- package/dist/chunks/{variant-j0x50v7v.js → location-service-map-sx9yt0qx.js} +13 -13
- package/dist/chunks/{variant-cz9840fe.js → location-service-map-szgjrnac.js} +33 -33
- package/dist/chunks/{variant-tazgh4e4.js → location-service-map-tazgh4e4.js} +1 -1
- package/dist/chunks/{variant-vhk0jjay.js → location-service-map-tbn4207b.js} +4 -4
- package/dist/chunks/{variant-tcezcvh9.js → location-service-map-tcezcvh9.js} +1 -1
- package/dist/chunks/{variant-tdstcens.js → location-service-map-tdstcens.js} +1 -1
- package/dist/chunks/{variant-tpk0zy7s.js → location-service-map-tvekrvpv.js} +13 -13
- package/dist/chunks/{variant-09a75c85.js → location-service-map-tyx2gxt0.js} +34 -34
- package/dist/chunks/{variant-6x68kpm5.js → location-service-map-tyxqw1k3.js} +14 -14
- package/dist/chunks/{variant-y4xh0pmk.js → location-service-map-v0es1rhs.js} +7 -7
- package/dist/chunks/{variant-veqvce7d.js → location-service-map-veqvce7d.js} +1 -1
- package/dist/chunks/{variant-baep62j8.js → location-service-map-vg7sm5hz.js} +90 -90
- package/dist/chunks/{variant-rh1z4y1h.js → location-service-map-vrz4pw5b.js} +31 -31
- package/dist/chunks/{variant-saa5sm41.js → location-service-map-vtntxqkx.js} +5 -5
- package/dist/chunks/{variant-sehwt9te.js → location-service-map-vw16m3bh.js} +19 -19
- package/dist/chunks/{variant-68b4ewtf.js → location-service-map-vy61f7p0.js} +6 -6
- package/dist/chunks/{variant-vzs5sf6e.js → location-service-map-vzs5sf6e.js} +1 -1
- package/dist/chunks/{variant-84txncab.js → location-service-map-w1eejvng.js} +5 -5
- package/dist/chunks/{variant-fq7d5agy.js → location-service-map-w1pw22f8.js} +43 -43
- package/dist/chunks/{variant-m2c06fa4.js → location-service-map-w3ht8xf8.js} +10 -10
- package/dist/chunks/{variant-w3wsvvr9.js → location-service-map-w3wsvvr9.js} +1 -1
- package/dist/chunks/{variant-kb1yqcjd.js → location-service-map-w5149683.js} +25 -25
- package/dist/chunks/{variant-dg6dbwk8.js → location-service-map-wc1gtajg.js} +6 -6
- package/dist/chunks/{variant-wd87259q.js → location-service-map-wd87259q.js} +1 -1
- package/dist/chunks/{variant-wzgtrbaw.js → location-service-map-wehxh746.js} +5 -5
- package/dist/chunks/{variant-qfyvnv8a.js → location-service-map-wj25t1v6.js} +45 -45
- package/dist/chunks/{variant-47rh35ks.js → location-service-map-wshpgqwz.js} +12 -12
- package/dist/chunks/{variant-p23nk964.js → location-service-map-x1skv0g2.js} +8 -8
- package/dist/chunks/{variant-vnk7j1ms.js → location-service-map-x4sqrdsf.js} +11 -11
- package/dist/chunks/{variant-db2wf4at.js → location-service-map-x661k3y3.js} +4 -4
- package/dist/chunks/{variant-jhyh6f4e.js → location-service-map-xamp5sn5.js} +34 -34
- package/dist/chunks/{variant-at1j3wg7.js → location-service-map-xdc1v96w.js} +9 -9
- package/dist/chunks/{variant-4arb9zza.js → location-service-map-xfk06v0t.js} +8 -8
- package/dist/chunks/{variant-04ah9brh.js → location-service-map-xmy875w3.js} +4 -4
- package/dist/chunks/{variant-pje0b5e4.js → location-service-map-xw2650a4.js} +24 -24
- package/dist/chunks/{variant-z053hk1w.js → location-service-map-xzfz3f2s.js} +22 -22
- package/dist/chunks/{variant-43hb2m25.js → location-service-map-y069cswa.js} +5 -5
- package/dist/chunks/{variant-av9e2wha.js → location-service-map-y0hd39tq.js} +5 -5
- package/dist/chunks/{variant-y1fvbwt7.js → location-service-map-y1fvbwt7.js} +1 -1
- package/dist/chunks/{variant-fa263v27.js → location-service-map-y469akzv.js} +76 -76
- package/dist/chunks/{variant-av38vskm.js → location-service-map-y60kwh1p.js} +5 -5
- package/dist/chunks/{variant-dkkxy9wz.js → location-service-map-y940h5xz.js} +24 -24
- package/dist/chunks/{variant-43myjda7.js → location-service-map-ydsqnbec.js} +11 -11
- package/dist/chunks/{variant-yj81bjva.js → location-service-map-yjt29acb.js} +7 -7
- package/dist/chunks/{variant-t10yzrjw.js → location-service-map-ykh0j0pf.js} +316 -316
- package/dist/chunks/{variant-pkqb68ka.js → location-service-map-ykt494b9.js} +4 -4
- package/dist/chunks/{variant-7zt5x37y.js → location-service-map-yqc6bamn.js} +1 -1
- package/dist/chunks/{variant-6apymsef.js → location-service-map-ysh6fhh8.js} +17 -17
- package/dist/chunks/{variant-8d7mxkd3.js → location-service-map-yv3xr3ac.js} +3 -3
- package/dist/chunks/{variant-z0bkrqjs.js → location-service-map-z0bkrqjs.js} +1 -1
- package/dist/chunks/{variant-jhbzetc7.js → location-service-map-z8kqchpa.js} +158 -158
- package/dist/chunks/{variant-p5p5kne1.js → location-service-map-zfme70y8.js} +2 -2
- package/dist/chunks/{variant-n8vdnqrc.js → location-service-map-zmr78fwr.js} +5 -5
- package/dist/chunks/{variant-22myzpse.js → location-service-map-zq8j9q38.js} +21 -21
- package/dist/chunks/{variant-zr2ceqn5.js → location-service-map-zr2ceqn5.js} +1 -1
- package/dist/chunks/{variant-zxq2ej10.js → location-service-map-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +79 -79
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -85
- package/dist/database/database.js +70 -70
- 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 +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +93 -93
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +94 -94
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +99 -99
- 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 +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -354
- package/dist/instruction-discovery.js +79 -79
- package/dist/instructions/builtins.js +85 -85
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- 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 +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +114 -114
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +114 -114
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- 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 +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +341 -341
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- 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/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- 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 +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- 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 +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +213 -213
- 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 +15 -15
- package/dist/shell.js +130 -130
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- 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 +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/credential/sql.d.ts +6 -0
- package/dist/types/credential.d.ts +14 -0
- package/dist/types/filesystem.d.ts +11 -5
- package/dist/types/integration/connection.d.ts +2 -2
- package/dist/types/integration.d.ts +2 -2
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +85 -85
- package/dist/worktree.js +92 -92
- package/package.json +8 -8
- package/dist/chunks/variant-2jm8wccg.js +0 -26
- package/dist/chunks/variant-619r8v3y.js +0 -18
- package/dist/chunks/variant-7nkk035h.js +0 -253
- package/dist/chunks/variant-xm1s6dzm.js +0 -507
- /package/dist/chunks/{variant-0qkdqm5v.js → location-service-map-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{variant-0zkw76rk.js → location-service-map-0zkw76rk.js} +0 -0
- /package/dist/chunks/{variant-17cy0kzp.js → location-service-map-17cy0kzp.js} +0 -0
- /package/dist/chunks/{variant-1cnp2v09.js → location-service-map-1cnp2v09.js} +0 -0
- /package/dist/chunks/{variant-1kg9ymc8.js → location-service-map-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{variant-24dcb14g.js → location-service-map-24dcb14g.js} +0 -0
- /package/dist/chunks/{variant-2710q6r3.js → location-service-map-2710q6r3.js} +0 -0
- /package/dist/chunks/{variant-2axfhc9x.js → location-service-map-2axfhc9x.js} +0 -0
- /package/dist/chunks/{variant-2c3vjs8z.js → location-service-map-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{variant-34c7v6d4.js → location-service-map-34c7v6d4.js} +0 -0
- /package/dist/chunks/{variant-359p4xyc.js → location-service-map-359p4xyc.js} +0 -0
- /package/dist/chunks/{variant-3asan66x.js → location-service-map-3asan66x.js} +0 -0
- /package/dist/chunks/{variant-3t0ybcrp.js → location-service-map-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{variant-3v8g72cx.js → location-service-map-3v8g72cx.js} +0 -0
- /package/dist/chunks/{variant-3w5fmr99.js → location-service-map-3w5fmr99.js} +0 -0
- /package/dist/chunks/{variant-3wcehsnq.js → location-service-map-3wcehsnq.js} +0 -0
- /package/dist/chunks/{variant-43n2bw4t.js → location-service-map-43n2bw4t.js} +0 -0
- /package/dist/chunks/{variant-4knz6hnm.js → location-service-map-4knz6hnm.js} +0 -0
- /package/dist/chunks/{variant-4vcrnpx2.js → location-service-map-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{variant-4y7fprxs.js → location-service-map-4y7fprxs.js} +0 -0
- /package/dist/chunks/{variant-53557ph1.js → location-service-map-53557ph1.js} +0 -0
- /package/dist/chunks/{variant-550bvhaj.js → location-service-map-550bvhaj.js} +0 -0
- /package/dist/chunks/{variant-6prwharc.js → location-service-map-6prwharc.js} +0 -0
- /package/dist/chunks/{variant-6q2bdcd1.js → location-service-map-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{variant-7akdwqpd.js → location-service-map-7akdwqpd.js} +0 -0
- /package/dist/chunks/{variant-7m9af43g.js → location-service-map-7m9af43g.js} +0 -0
- /package/dist/chunks/{variant-822emrt2.js → location-service-map-822emrt2.js} +0 -0
- /package/dist/chunks/{variant-88xbtdfr.js → location-service-map-88xbtdfr.js} +0 -0
- /package/dist/chunks/{variant-8n3pysct.js → location-service-map-8n3pysct.js} +0 -0
- /package/dist/chunks/{variant-8wj87zfr.js → location-service-map-8wj87zfr.js} +0 -0
- /package/dist/chunks/{variant-9a4afbnw.js → location-service-map-9a4afbnw.js} +0 -0
- /package/dist/chunks/{variant-9rqn6x4v.js → location-service-map-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{variant-a6k6eb26.js → location-service-map-a6k6eb26.js} +0 -0
- /package/dist/chunks/{variant-af5trqkr.js → location-service-map-af5trqkr.js} +0 -0
- /package/dist/chunks/{variant-afrmfg78.js → location-service-map-afrmfg78.js} +0 -0
- /package/dist/chunks/{variant-aqzs7mqg.js → location-service-map-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{variant-atq7p7m5.js → location-service-map-atq7p7m5.js} +0 -0
- /package/dist/chunks/{variant-bkyjaxrp.js → location-service-map-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{variant-bmr6ed5q.js → location-service-map-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{variant-cf4snx6d.js → location-service-map-cf4snx6d.js} +0 -0
- /package/dist/chunks/{variant-cvy3z8tj.js → location-service-map-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{variant-d9fn303g.js → location-service-map-d9fn303g.js} +0 -0
- /package/dist/chunks/{variant-d9jj8t3e.js → location-service-map-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{variant-dajrwvna.js → location-service-map-dajrwvna.js} +0 -0
- /package/dist/chunks/{variant-dap0rakb.js → location-service-map-dap0rakb.js} +0 -0
- /package/dist/chunks/{variant-df08tz66.js → location-service-map-df08tz66.js} +0 -0
- /package/dist/chunks/{variant-dy18nga0.js → location-service-map-dy18nga0.js} +0 -0
- /package/dist/chunks/{variant-e5kj55wp.js → location-service-map-e5kj55wp.js} +0 -0
- /package/dist/chunks/{variant-e73j6tqm.js → location-service-map-e73j6tqm.js} +0 -0
- /package/dist/chunks/{variant-ec1grn59.js → location-service-map-ec1grn59.js} +0 -0
- /package/dist/chunks/{variant-eh3zwz77.js → location-service-map-eh3zwz77.js} +0 -0
- /package/dist/chunks/{variant-emrn6kk6.js → location-service-map-emrn6kk6.js} +0 -0
- /package/dist/chunks/{variant-f0mxakyp.js → location-service-map-f0mxakyp.js} +0 -0
- /package/dist/chunks/{variant-f6n9ztr4.js → location-service-map-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{variant-faypxj3z.js → location-service-map-faypxj3z.js} +0 -0
- /package/dist/chunks/{variant-fd410y7t.js → location-service-map-fd410y7t.js} +0 -0
- /package/dist/chunks/{variant-fxgpk5d8.js → location-service-map-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{variant-g4wezp1m.js → location-service-map-g4wezp1m.js} +0 -0
- /package/dist/chunks/{variant-g86h250q.js → location-service-map-g86h250q.js} +0 -0
- /package/dist/chunks/{variant-gebd4c9n.js → location-service-map-gebd4c9n.js} +0 -0
- /package/dist/chunks/{variant-gftt206x.js → location-service-map-gftt206x.js} +0 -0
- /package/dist/chunks/{variant-hk9envan.js → location-service-map-hk9envan.js} +0 -0
- /package/dist/chunks/{variant-j2ntwpah.js → location-service-map-j2ntwpah.js} +0 -0
- /package/dist/chunks/{variant-j5zkgpj8.js → location-service-map-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{variant-jjkms2e6.js → location-service-map-jjkms2e6.js} +0 -0
- /package/dist/chunks/{variant-jr7sbwjy.js → location-service-map-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{variant-jwfs4k6c.js → location-service-map-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{variant-jzg6c2d5.js → location-service-map-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{variant-mp448xyj.js → location-service-map-mp448xyj.js} +0 -0
- /package/dist/chunks/{variant-msx8hqn2.js → location-service-map-msx8hqn2.js} +0 -0
- /package/dist/chunks/{variant-n05xt0ee.js → location-service-map-n05xt0ee.js} +0 -0
- /package/dist/chunks/{variant-n3j8tn72.js → location-service-map-n3j8tn72.js} +0 -0
- /package/dist/chunks/{variant-njntx4h6.js → location-service-map-njntx4h6.js} +0 -0
- /package/dist/chunks/{variant-q3sfg36h.js → location-service-map-q3sfg36h.js} +0 -0
- /package/dist/chunks/{variant-q74kybfr.js → location-service-map-q74kybfr.js} +0 -0
- /package/dist/chunks/{variant-qaymkmh1.js → location-service-map-qaymkmh1.js} +0 -0
- /package/dist/chunks/{variant-qb87gjwd.js → location-service-map-qb87gjwd.js} +0 -0
- /package/dist/chunks/{variant-qfa1cgps.js → location-service-map-qfa1cgps.js} +0 -0
- /package/dist/chunks/{variant-qg3g05ea.js → location-service-map-qg3g05ea.js} +0 -0
- /package/dist/chunks/{variant-qrg20bc0.js → location-service-map-qrg20bc0.js} +0 -0
- /package/dist/chunks/{variant-rcb2kzg1.js → location-service-map-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{variant-sdp7kfr6.js → location-service-map-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{variant-ssg3fenm.js → location-service-map-ssg3fenm.js} +0 -0
- /package/dist/chunks/{variant-w803qqfp.js → location-service-map-w803qqfp.js} +0 -0
- /package/dist/chunks/{variant-wc3fc9cn.js → location-service-map-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{variant-wer8tq1h.js → location-service-map-wer8tq1h.js} +0 -0
- /package/dist/chunks/{variant-wtztk69x.js → location-service-map-wtztk69x.js} +0 -0
- /package/dist/chunks/{variant-x0ckcb58.js → location-service-map-x0ckcb58.js} +0 -0
- /package/dist/chunks/{variant-x61499pn.js → location-service-map-x61499pn.js} +0 -0
- /package/dist/chunks/{variant-y44na4kk.js → location-service-map-y44na4kk.js} +0 -0
- /package/dist/chunks/{variant-y8cydn3q.js → location-service-map-y8cydn3q.js} +0 -0
- /package/dist/chunks/{variant-y8f7s663.js → location-service-map-y8f7s663.js} +0 -0
- /package/dist/chunks/{variant-ygaqb7jw.js → location-service-map-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{variant-ym463w8f.js → location-service-map-ym463w8f.js} +0 -0
- /package/dist/chunks/{variant-z5v4ffb3.js → location-service-map-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{variant-z9919s4g.js → location-service-map-z9919s4g.js} +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-02ap8hgf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./location-service-map-1yjhkjct.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event18
|
|
10
|
+
} from "./location-service-map-1ske5fb0.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-service-map-x661k3y3.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID12,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-service-map-3hegg1r1.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service82
|
|
21
|
+
} from "./location-service-map-xfk06v0t.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID11,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-service-map-ykh0j0pf.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-service-map-gyc5zbfz.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
ID3,
|
|
32
|
+
Input13,
|
|
33
33
|
Response2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-service-map-bvnz36at.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/opencode.ts
|
|
37
37
|
import { Duration, Effect, Equal, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
@@ -47,7 +47,7 @@ var methodID = MethodID2.make("device");
|
|
|
47
47
|
var RemoteResponse = Schema.Struct({
|
|
48
48
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
49
49
|
websearch: Schema.Struct({
|
|
50
|
-
providerID:
|
|
50
|
+
providerID: ID3
|
|
51
51
|
}).pipe(Schema.optional),
|
|
52
52
|
mcp: Schema.Struct({
|
|
53
53
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -99,7 +99,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
99
99
|
}
|
|
100
100
|
function oauth(http) {
|
|
101
101
|
return {
|
|
102
|
-
integrationID:
|
|
102
|
+
integrationID: ID12.make("opencode"),
|
|
103
103
|
method: {
|
|
104
104
|
id: methodID,
|
|
105
105
|
type: "oauth",
|
|
@@ -163,10 +163,10 @@ function oauth(http) {
|
|
|
163
163
|
var OpencodePlugin2 = define({
|
|
164
164
|
id: "opencode.provider.opencode",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const bus = yield*
|
|
166
|
+
const bus = yield* Service80;
|
|
167
167
|
const client = yield* HttpClient.HttpClient;
|
|
168
168
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
169
|
-
const managed = yield*
|
|
169
|
+
const managed = yield* Service82;
|
|
170
170
|
const scope = yield* Scope.Scope;
|
|
171
171
|
const loading = Semaphore.makeUnsafe(1);
|
|
172
172
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -183,7 +183,7 @@ var OpencodePlugin2 = define({
|
|
|
183
183
|
return ctx.integration.connection.status({ integrationID: "opencode", connection, status });
|
|
184
184
|
};
|
|
185
185
|
return yield* ctx.integration.connection.resolve(connection).pipe(Effect.flatMap((credential) => {
|
|
186
|
-
if (!credential)
|
|
186
|
+
if (!credential || credential.type === "external")
|
|
187
187
|
return Effect.succeed({ config: undefined, connection, organization: undefined, mcp: undefined });
|
|
188
188
|
return fetchConfig(http, credential).pipe(Effect.map((config) => ({
|
|
189
189
|
config,
|
|
@@ -215,7 +215,7 @@ var OpencodePlugin2 = define({
|
|
|
215
215
|
providers.update(providerID, (provider) => {
|
|
216
216
|
if (source && source.provider !== provider)
|
|
217
217
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
218
|
-
provider.integrationID =
|
|
218
|
+
provider.integrationID = ID12.make("opencode");
|
|
219
219
|
if (item.canonical !== undefined)
|
|
220
220
|
provider.canonical = item.canonical;
|
|
221
221
|
if (item.name !== undefined)
|
|
@@ -281,7 +281,7 @@ var OpencodePlugin2 = define({
|
|
|
281
281
|
sourceConnection: snapshot.connection
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
const item = providers.get(
|
|
284
|
+
const item = providers.get(ID11.opencode);
|
|
285
285
|
if (!item)
|
|
286
286
|
return;
|
|
287
287
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -293,7 +293,7 @@ var OpencodePlugin2 = define({
|
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
yield* ctx.model.transform((models) => {
|
|
296
|
-
const item = models.provider.get(
|
|
296
|
+
const item = models.provider.get(ID11.opencode);
|
|
297
297
|
if (!item)
|
|
298
298
|
return;
|
|
299
299
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -321,13 +321,13 @@ var OpencodePlugin2 = define({
|
|
|
321
321
|
return yield* Effect.fail(new Error("OpenCode Console connection changed"));
|
|
322
322
|
}
|
|
323
323
|
const credential = yield* ctx.integration.connection.resolve(active);
|
|
324
|
-
if (!credential)
|
|
324
|
+
if (!credential || credential.type === "external")
|
|
325
325
|
return yield* Effect.fail(new Error("OpenCode Console is not connected"));
|
|
326
326
|
const metadata = credential.metadata;
|
|
327
327
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
328
328
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
329
329
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
330
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
330
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
331
331
|
query: input.query,
|
|
332
332
|
providerID: descriptor.providerID
|
|
333
333
|
}));
|
|
@@ -382,10 +382,10 @@ var OpencodePlugin2 = define({
|
|
|
382
382
|
});
|
|
383
383
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
384
384
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
385
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
385
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID11.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
386
386
|
});
|
|
387
387
|
yield* guard(snapshot);
|
|
388
|
-
yield* bus.subscribe(
|
|
388
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID12.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
389
389
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
390
390
|
})
|
|
391
391
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID10,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-service-map-gyc5zbfz.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service63
|
|
7
|
+
} from "./location-service-map-1bpgn3j1.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-service-map-a27tyv5c.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/local.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -22,7 +22,7 @@ function createLocalProviderPlugin2(input) {
|
|
|
22
22
|
id: input.id,
|
|
23
23
|
effect: Effect.fn(function* (ctx) {
|
|
24
24
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service63;
|
|
26
26
|
const source = { current: configured(yield* config.entries(), input.providerID, origin, suffix) };
|
|
27
27
|
const loaded = { models: [], hash: "[]" };
|
|
28
28
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -50,7 +50,7 @@ function createLocalProviderPlugin2(input) {
|
|
|
50
50
|
for (const item of loaded.models) {
|
|
51
51
|
const spec = input.model(item);
|
|
52
52
|
providers.models.update(input.providerID, spec.id, (model) => {
|
|
53
|
-
model.modelID =
|
|
53
|
+
model.modelID = ID10.make(spec.id);
|
|
54
54
|
model.name = spec.name || spec.id;
|
|
55
55
|
model.family = spec.family ? Family2.make(spec.family) : undefined;
|
|
56
56
|
model.capabilities = {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-5wtwrezn.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info16
|
|
9
|
+
} from "./location-service-map-1xzpbkn4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info15
|
|
12
|
+
} from "./location-service-map-ratrq7cm.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info19
|
|
15
|
+
} from "./location-service-map-h83xjv7f.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-service-map-7dqw4kz8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info18
|
|
21
|
+
} from "./location-service-map-zmr78fwr.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
migrateMcp2,
|
|
28
28
|
migrateProvider2,
|
|
29
29
|
providerID2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-service-map-ekyddhpf.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/config/normalize.ts
|
|
36
36
|
var exports_normalize = {};
|
|
@@ -97,12 +97,12 @@ function normalize2(input) {
|
|
|
97
97
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
98
98
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
99
99
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
100
|
-
const legacyCommands = decodeMap(input.command,
|
|
100
|
+
const legacyCommands = decodeMap(input.command, Info15, ["command"], diagnostics, decodeValue);
|
|
101
101
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
102
102
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
103
103
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
104
104
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
105
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
105
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info16, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
106
106
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
107
107
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
108
108
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -116,7 +116,7 @@ function normalize2(input) {
|
|
|
116
116
|
model: migratedSmallModel,
|
|
117
117
|
...legacyAgents.title
|
|
118
118
|
};
|
|
119
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
119
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info16, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
120
120
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
121
121
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
122
122
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -217,7 +217,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
217
217
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
const server = decodeValue(
|
|
220
|
+
const server = decodeValue(Info19, value, path, diagnostics);
|
|
221
221
|
if (server !== undefined)
|
|
222
222
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
223
223
|
});
|
|
@@ -413,7 +413,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
413
413
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
414
414
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
415
415
|
return [];
|
|
416
|
-
const provider = decodeValue(
|
|
416
|
+
const provider = decodeValue(Info18, raw, path, diagnostics);
|
|
417
417
|
if (provider === undefined)
|
|
418
418
|
return [];
|
|
419
419
|
const destination = providerID2(name);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-nxm207yx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/update.ts
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service5,
|
|
13
|
+
node: () => node7
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service5 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service5.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node7 = makeGlobalNode({ service: Service5, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service5, node7, exports_update };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-6qmzkyd7.js";
|
|
7
7
|
import {
|
|
8
8
|
Service78,
|
|
9
9
|
node82
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-service-map-f5311cxz.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service56,
|
|
13
|
+
node60
|
|
14
|
+
} from "./location-service-map-mec1k519.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/file-access.ts
|
|
20
20
|
var exports_file_access = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
26
|
-
node: () =>
|
|
25
|
+
Service: () => Service13,
|
|
26
|
+
node: () => node15,
|
|
27
27
|
resolvePath: () => resolvePath2
|
|
28
28
|
});
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -37,7 +37,7 @@ var ResolveInput2 = Schema.Struct({
|
|
|
37
37
|
kind: Kind2.pipe(Schema.optional)
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service13 extends Context.Service()("@opencode/FileAccess") {
|
|
41
41
|
}
|
|
42
42
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
43
43
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -49,10 +49,10 @@ var invocation = (context) => ({
|
|
|
49
49
|
agent: context.agent,
|
|
50
50
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
51
51
|
});
|
|
52
|
-
var layer = Layer.effect(
|
|
52
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
53
53
|
const fs = yield* FSUtil.Service;
|
|
54
54
|
const location = yield* Service78;
|
|
55
|
-
const permission = yield*
|
|
55
|
+
const permission = yield* Service56;
|
|
56
56
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
57
57
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
58
58
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
101
101
|
});
|
|
102
102
|
return target;
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return Service13.of({ resolve, authorizeExternal, authorizeRead });
|
|
105
105
|
}));
|
|
106
|
-
var
|
|
106
|
+
var node15 = makeLocationNode({ service: Service13, layer, deps: [FSUtil.node, node82, node60] });
|
|
107
107
|
|
|
108
|
-
export { Kind2, ResolveInput2,
|
|
108
|
+
export { Kind2, ResolveInput2, Service13, resolvePath2, node15, exports_file_access };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fromPromise2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-zr2ceqn5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service64
|
|
6
|
+
} from "./location-service-map-y940h5xz.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/module.ts
|
|
12
12
|
var exports_module = {};
|
|
13
13
|
__export(exports_module, {
|
|
14
14
|
LoadError: () => LoadError2,
|
|
15
15
|
PluginModule: () => exports_module,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make4
|
|
17
17
|
});
|
|
18
18
|
import { Host } from "@opencode/plugin/host";
|
|
19
19
|
import { createPluginSources } from "@opencode/plugin/source";
|
|
@@ -22,8 +22,8 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
|
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { stat } from "node:fs/promises";
|
|
24
24
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
25
|
-
var
|
|
26
|
-
const watcher = yield*
|
|
25
|
+
var make4 = Effect.fn("PluginModule.make")(function* () {
|
|
26
|
+
const watcher = yield* Service64;
|
|
27
27
|
const scope = yield* Effect.scope;
|
|
28
28
|
const runPromise = yield* FiberSet.makeRuntimePromise();
|
|
29
29
|
const changes = yield* PubSub.unbounded();
|
|
@@ -102,4 +102,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
|
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { make4, LoadError2, exports_module };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
10
|
-
render: () =>
|
|
9
|
+
make: () => make16,
|
|
10
|
+
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
// src/session/runner/prompt/system.txt
|
|
@@ -29,10 +29,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function make16(tools) {
|
|
33
|
+
return render3(system_default, tools);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function render3(prompt, tools) {
|
|
36
36
|
const instructions = [];
|
|
37
37
|
if (tools.includes("shell")) {
|
|
38
38
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -47,4 +47,4 @@ function render2(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { make16, render3, exports_system_prompt };
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service46,
|
|
8
|
+
node49
|
|
9
|
+
} from "./location-service-map-7agpffj5.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-service-map-8d7r5vzw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
@@ -20,8 +20,8 @@ __export(exports_ripgrep, {
|
|
|
20
20
|
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service17,
|
|
24
|
+
node: () => node19
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service17 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
63
|
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service46;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -92,7 +92,7 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
93
|
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service17.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node19 = makeLocationNode({ service: Service17, layer, deps: [node49, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export { Error2, InvalidPatternError2,
|
|
180
|
+
export { Error2, InvalidPatternError2, Service17, node19, exports_ripgrep };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./location-service-map-9c5rr9n3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-service-map-nxm207yx.js";
|
|
8
8
|
import {
|
|
9
9
|
Binding2,
|
|
10
10
|
RegistryService2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
node51
|
|
12
|
+
} from "./location-service-map-wc1gtajg.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-service-map-faypxj3z.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/workspace.ts
|
|
21
21
|
var exports_workspace = {};
|
|
@@ -24,10 +24,10 @@ __export(exports_workspace, {
|
|
|
24
24
|
ID: () => ID5,
|
|
25
25
|
Info: () => Info8,
|
|
26
26
|
NotFound: () => NotFound3,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service47,
|
|
28
28
|
Workspace: () => exports_workspace,
|
|
29
|
-
configured: () =>
|
|
30
|
-
node: () =>
|
|
29
|
+
configured: () => configured6,
|
|
30
|
+
node: () => node50
|
|
31
31
|
});
|
|
32
32
|
import { Workspace } from "@opencode/schema/workspace";
|
|
33
33
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -56,15 +56,15 @@ class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service47 extends Context.Service()("@opencode/Workspace") {
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
service:
|
|
61
|
+
var configured6 = (options = {}) => makeGlobalNode({
|
|
62
|
+
service: Service47,
|
|
63
63
|
layer: layer(options),
|
|
64
|
-
deps: [
|
|
64
|
+
deps: [node85, node51]
|
|
65
65
|
});
|
|
66
|
-
var layer = (options) => Layer.effect(
|
|
67
|
-
const db = (yield*
|
|
66
|
+
var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
67
|
+
const db = (yield* Service81).db;
|
|
68
68
|
const registry = yield* RegistryService2;
|
|
69
69
|
const lifetime = yield* Scope.Scope;
|
|
70
70
|
const connections = new Map;
|
|
@@ -154,7 +154,7 @@ var layer = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
154
154
|
yield* Scope.close(connection.scope, Exit.void);
|
|
155
155
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
156
156
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
157
|
-
return
|
|
157
|
+
return Service47.of({
|
|
158
158
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
159
159
|
const workspaceID = input.id ?? ID5.create();
|
|
160
160
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
@@ -221,6 +221,6 @@ var layer = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
223
|
}));
|
|
224
|
-
var
|
|
224
|
+
var node50 = configured6();
|
|
225
225
|
|
|
226
|
-
export { ID5, Info8, NotFound3, CreateConflict2,
|
|
226
|
+
export { ID5, Info8, NotFound3, CreateConflict2, Service47, configured6, node50, exports_workspace };
|