@opencode/core 0.0.0-dev-20201 → 0.0.0-dev-20203
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/{instruction-discovery-0m9abmmn.js → location-services-04j5qzgw.js} +46 -46
- package/dist/chunks/{instruction-discovery-83nzp4gh.js → location-services-0fgcbzg9.js} +32 -32
- package/dist/chunks/{instruction-discovery-haf9dfsv.js → location-services-0gf2cy4k.js} +7 -7
- package/dist/chunks/{instruction-discovery-krfewakq.js → location-services-0gz88f7v.js} +20 -20
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → location-services-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-htjw9qza.js → location-services-0w62qmxp.js} +6 -6
- package/dist/chunks/{instruction-discovery-ydyhm6d1.js → location-services-0zdhcxq1.js} +2 -2
- package/dist/chunks/{instruction-discovery-2gps5qkv.js → location-services-129hjeyj.js} +35 -35
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → location-services-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-gjr572bt.js → location-services-1hbenywt.js} +6 -6
- package/dist/chunks/{instruction-discovery-1zt3wmc0.js → location-services-1pfd5r9f.js} +9 -9
- package/dist/chunks/{instruction-discovery-p6wxjpka.js → location-services-1rn5pcm9.js} +4 -4
- package/dist/chunks/{instruction-discovery-9hm3kz5r.js → location-services-1tqghxe1.js} +3 -3
- package/dist/chunks/{instruction-discovery-tf8k2ct1.js → location-services-1w8sqpqb.js} +15 -15
- package/dist/chunks/{instruction-discovery-56gdpj1q.js → location-services-1ygqh575.js} +9 -9
- package/dist/chunks/{instruction-discovery-1e45gtaj.js → location-services-20x4t0fx.js} +21 -21
- package/dist/chunks/{instruction-discovery-21r38tys.js → location-services-21r38tys.js} +1 -1
- package/dist/chunks/{instruction-discovery-pt6tajbr.js → location-services-26arvx1m.js} +29 -29
- package/dist/chunks/{instruction-discovery-z63w68vq.js → location-services-29x78va6.js} +6 -6
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → location-services-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-zmmq3vtx.js → location-services-2c48prkg.js} +41 -41
- package/dist/chunks/{instruction-discovery-hv2q3w3f.js → location-services-2s51ny8k.js} +3 -3
- package/dist/chunks/{instruction-discovery-mx08f3d4.js → location-services-2wveq407.js} +35 -35
- package/dist/chunks/{instruction-discovery-gaz93y6q.js → location-services-2ynhemhj.js} +14 -14
- package/dist/chunks/{instruction-discovery-csym5fq6.js → location-services-3664e2vt.js} +11 -11
- package/dist/chunks/{instruction-discovery-m11z29hh.js → location-services-38j7x2hc.js} +44 -44
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → location-services-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-19m74aww.js → location-services-3j6aw61a.js} +32 -32
- package/dist/chunks/{instruction-discovery-5jryjte4.js → location-services-3nm0fk8h.js} +13 -13
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → location-services-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → location-services-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-h48630q4.js → location-services-3w9hmcr6.js} +4 -4
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → location-services-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-by21sspw.js → location-services-42rf9s8q.js} +22 -22
- package/dist/chunks/{instruction-discovery-b35m9fe4.js → location-services-44k2838g.js} +25 -25
- package/dist/chunks/{instruction-discovery-0p94bapm.js → location-services-46je7tbg.js} +24 -24
- package/dist/chunks/{instruction-discovery-nzyhnfxz.js → location-services-4dgbcxzg.js} +4 -4
- package/dist/chunks/{instruction-discovery-t52m587s.js → location-services-4h4hnnes.js} +90 -90
- package/dist/chunks/{instruction-discovery-dbfdzhzx.js → location-services-4p9aey09.js} +10 -10
- package/dist/chunks/{instruction-discovery-wtj1fkcm.js → location-services-4s6qdf3p.js} +27 -27
- package/dist/chunks/{instruction-discovery-6x932a0b.js → location-services-4tdje3y4.js} +11 -11
- package/dist/chunks/{instruction-discovery-54tcyq79.js → location-services-54tcyq79.js} +2 -2
- package/dist/chunks/{instruction-discovery-5daktx2q.js → location-services-5daktx2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-313btym2.js → location-services-5e1npf9a.js} +47 -47
- package/dist/chunks/{instruction-discovery-mj1xe8px.js → location-services-5jdch5sh.js} +19 -19
- package/dist/chunks/{instruction-discovery-pa3zv37e.js → location-services-5p8spvcz.js} +18 -18
- package/dist/chunks/{instruction-discovery-fhadyd41.js → location-services-5pezwg1d.js} +34 -34
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → location-services-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-8d0p2m37.js → location-services-5w8x6yjj.js} +8 -8
- package/dist/chunks/{instruction-discovery-1ajx6rf5.js → location-services-5xtgfte3.js} +8 -8
- package/dist/chunks/{instruction-discovery-4snd7rxp.js → location-services-5y305m15.js} +35 -35
- package/dist/chunks/{instruction-discovery-669tq793.js → location-services-669tq793.js} +1 -1
- package/dist/chunks/{instruction-discovery-2402vzrj.js → location-services-6h73sxmp.js} +5 -5
- package/dist/chunks/{instruction-discovery-t1pte4dq.js → location-services-6hg3r82e.js} +11 -11
- package/dist/chunks/{instruction-discovery-3y9a08y5.js → location-services-6kbr84ay.js} +7 -7
- package/dist/chunks/{instruction-discovery-6msgmcgs.js → location-services-6msgmcgs.js} +1 -1
- package/dist/chunks/{instruction-discovery-w92k2e0p.js → location-services-6pc27hjz.js} +4 -4
- package/dist/chunks/{instruction-discovery-462mt53s.js → location-services-6v2f9cm4.js} +16 -16
- package/dist/chunks/{instruction-discovery-9dq8xf2p.js → location-services-728seb0w.js} +21 -21
- package/dist/chunks/{instruction-discovery-73tb2d7t.js → location-services-73tb2d7t.js} +1 -1
- package/dist/chunks/{instruction-discovery-1ed2t66p.js → location-services-784hb5j4.js} +4 -4
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/location-services-7edgwqb7.js +26 -0
- package/dist/chunks/{instruction-discovery-vmwh049b.js → location-services-7h7s3rmt.js} +9 -9
- package/dist/chunks/{instruction-discovery-n2f6f3b8.js → location-services-7hhteh4v.js} +3 -3
- package/dist/chunks/{instruction-discovery-9z1p3ewq.js → location-services-7m38xmwt.js} +11 -11
- package/dist/chunks/{instruction-discovery-fjvydvzm.js → location-services-7n2xhmm7.js} +5 -5
- package/dist/chunks/{instruction-discovery-0ktvqtxx.js → location-services-7ndtgxtc.js} +12 -12
- package/dist/chunks/{instruction-discovery-s595rm5c.js → location-services-7p2zmt5w.js} +3 -3
- package/dist/chunks/{instruction-discovery-1v0y93kt.js → location-services-7rnj5ym9.js} +32 -32
- package/dist/chunks/{instruction-discovery-2rk6v76p.js → location-services-7s76t0fg.js} +24 -24
- package/dist/chunks/location-services-7xa2s11f.js +252 -0
- package/dist/chunks/{instruction-discovery-57ez7d0k.js → location-services-81swgkk7.js} +7 -7
- package/dist/chunks/{instruction-discovery-zka01a4k.js → location-services-85sxd0h8.js} +3 -3
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → location-services-89znhe33.js} +4 -4
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → location-services-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-gcxftnca.js → location-services-8rxxwv2n.js} +11 -11
- package/dist/chunks/{instruction-discovery-4qj1kjwb.js → location-services-8s7zrxf3.js} +31 -31
- package/dist/chunks/{instruction-discovery-v86d1rgq.js → location-services-8xd21chy.js} +11 -11
- package/dist/chunks/{instruction-discovery-ah8906zj.js → location-services-903nybc4.js} +18 -18
- package/dist/chunks/{instruction-discovery-ec8m6frp.js → location-services-930n0wtx.js} +40 -40
- package/dist/chunks/{instruction-discovery-mazzq2sp.js → location-services-94mr9t66.js} +3 -3
- package/dist/chunks/{instruction-discovery-10zks11j.js → location-services-96ymsse1.js} +8 -8
- package/dist/chunks/{instruction-discovery-p3762mbd.js → location-services-9fbzm6a9.js} +8 -8
- package/dist/chunks/{instruction-discovery-sxz6gkc3.js → location-services-a2ew8a62.js} +7 -7
- package/dist/chunks/{instruction-discovery-9eczen2y.js → location-services-a354z5sm.js} +11 -11
- package/dist/chunks/{instruction-discovery-4m57d5j7.js → location-services-a7cgx6bn.js} +20 -20
- package/dist/chunks/{instruction-discovery-aaet6srn.js → location-services-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-0mz76y92.js → location-services-ab0n33ds.js} +27 -27
- package/dist/chunks/{instruction-discovery-zee1rnkq.js → location-services-ag4rn41e.js} +4 -4
- package/dist/chunks/{instruction-discovery-253mwr29.js → location-services-an3y63gz.js} +13 -13
- package/dist/chunks/{instruction-discovery-7jjmtfmg.js → location-services-aryx1f52.js} +22 -22
- package/dist/chunks/{instruction-discovery-hkfg6fzm.js → location-services-avm8jn6n.js} +5 -5
- package/dist/chunks/{instruction-discovery-0mcn7v1a.js → location-services-b3za54ys.js} +6 -6
- package/dist/chunks/{instruction-discovery-0hevse2d.js → location-services-b5y4wceh.js} +27 -27
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → location-services-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-5cmxdwv8.js → location-services-ba07h9gm.js} +3 -3
- package/dist/chunks/{instruction-discovery-xj1gnyjz.js → location-services-bcnfbw3r.js} +28 -28
- package/dist/chunks/{instruction-discovery-0v53mg2y.js → location-services-bf0ztrs3.js} +4 -4
- package/dist/chunks/{instruction-discovery-tme0fwn1.js → location-services-bf54q0vn.js} +39 -39
- package/dist/chunks/{instruction-discovery-bjtzbw4r.js → location-services-bjtzbw4r.js} +3 -3
- package/dist/chunks/{instruction-discovery-aazjjeev.js → location-services-bt39fvn6.js} +5 -5
- package/dist/chunks/{instruction-discovery-hv4kwx9p.js → location-services-bt483pgf.js} +5 -5
- package/dist/chunks/{instruction-discovery-9famhe87.js → location-services-bw6qjwge.js} +17 -17
- package/dist/chunks/{instruction-discovery-sbv68sdq.js → location-services-bxnwhgcr.js} +27 -27
- package/dist/chunks/{instruction-discovery-3w21a4te.js → location-services-by36gnm3.js} +4 -4
- package/dist/chunks/{instruction-discovery-dtvc26hn.js → location-services-bz7ff98x.js} +8 -8
- package/dist/chunks/{instruction-discovery-618n4sfx.js → location-services-c1pmqqvm.js} +4 -4
- package/dist/chunks/{instruction-discovery-50mzsvk4.js → location-services-c20khjev.js} +21 -21
- package/dist/chunks/location-services-c826cjyq.js +507 -0
- package/dist/chunks/{instruction-discovery-9zmqhxbz.js → location-services-c8y3sydt.js} +39 -39
- package/dist/chunks/{instruction-discovery-vmgq4x8b.js → location-services-cmkj70ft.js} +2 -2
- package/dist/chunks/{instruction-discovery-g4y22msr.js → location-services-cvjyqy8b.js} +23 -23
- package/dist/chunks/{instruction-discovery-cwa6csj7.js → location-services-cwa6csj7.js} +2 -2
- package/dist/chunks/{instruction-discovery-2fwe55ar.js → location-services-d1kmb1kz.js} +6 -6
- package/dist/chunks/{instruction-discovery-tpwc6ef7.js → location-services-d1nz6qw9.js} +19 -19
- package/dist/chunks/{instruction-discovery-v6ghzfeb.js → location-services-d9wzmzc3.js} +5 -5
- package/dist/chunks/{instruction-discovery-t071t56z.js → location-services-dajjmxcf.js} +15 -15
- package/dist/chunks/{instruction-discovery-rnce621k.js → location-services-dbtc50z0.js} +4 -4
- package/dist/chunks/{instruction-discovery-b998031c.js → location-services-dgs4c22x.js} +48 -48
- package/dist/chunks/{instruction-discovery-btkw48kz.js → location-services-dhtjyx18.js} +16 -16
- package/dist/chunks/{instruction-discovery-57b9ws8p.js → location-services-drwq78ky.js} +5 -5
- package/dist/chunks/{instruction-discovery-3vqk67dv.js → location-services-dy7h2h1w.js} +4 -4
- package/dist/chunks/{instruction-discovery-t6f8zp4h.js → location-services-dyf86r4x.js} +33 -33
- package/dist/chunks/{instruction-discovery-8ahh5dpe.js → location-services-dyv6jqgc.js} +12 -12
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → location-services-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-aep3g16v.js → location-services-e7173haz.js} +11 -11
- package/dist/chunks/{instruction-discovery-j41jk2xd.js → location-services-e9xwgjwy.js} +5 -5
- package/dist/chunks/{instruction-discovery-ecfe7b91.js → location-services-ecfe7b91.js} +2 -2
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → location-services-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-sfjv4z1e.js → location-services-em10apng.js} +50 -50
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → location-services-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-mz7s15yj.js → location-services-evd3jqhg.js} +6 -6
- package/dist/chunks/{instruction-discovery-95m3yrnv.js → location-services-ey7mvkmc.js} +1 -1
- package/dist/chunks/{instruction-discovery-ez6g3cfe.js → location-services-f3wv10y1.js} +12 -12
- package/dist/chunks/{instruction-discovery-zd30eb5w.js → location-services-f62qkzqr.js} +5 -5
- package/dist/chunks/{instruction-discovery-d5es2r86.js → location-services-faxt9yky.js} +11 -11
- package/dist/chunks/{instruction-discovery-5r1fmgqk.js → location-services-fej70bpn.js} +22 -22
- package/dist/chunks/{instruction-discovery-kwp4fxk2.js → location-services-fg90r6cn.js} +14 -14
- package/dist/chunks/{instruction-discovery-tg8xb7s7.js → location-services-fn25s999.js} +21 -21
- package/dist/chunks/{instruction-discovery-rxmdwt28.js → location-services-fqg394v6.js} +25 -25
- package/dist/chunks/{instruction-discovery-nt6vq48h.js → location-services-frp52m33.js} +65 -65
- package/dist/chunks/{instruction-discovery-v0n01akt.js → location-services-fwf02z8y.js} +25 -25
- package/dist/chunks/{instruction-discovery-k1qrnqst.js → location-services-g1ntwptg.js} +8 -8
- package/dist/chunks/{instruction-discovery-cercamy6.js → location-services-g3y93bdq.js} +27 -27
- package/dist/chunks/{instruction-discovery-atgyr79m.js → location-services-g4r1rkq7.js} +15 -15
- package/dist/chunks/{instruction-discovery-m7kk9p21.js → location-services-g97k7hqe.js} +6 -6
- package/dist/chunks/{instruction-discovery-n6g7pm9a.js → location-services-ganadfp0.js} +23 -23
- package/dist/chunks/{instruction-discovery-1s4jnf68.js → location-services-gap9hmaf.js} +33 -33
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → location-services-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-gfvb90ym.js → location-services-gfvb90ym.js} +2 -2
- package/dist/chunks/{instruction-discovery-x2dff076.js → location-services-ggp883ka.js} +9 -9
- package/dist/chunks/{instruction-discovery-gv6a8nnw.js → location-services-gv6a8nnw.js} +2 -2
- package/dist/chunks/{instruction-discovery-z4dh3vqn.js → location-services-h0rgcqpm.js} +9 -9
- package/dist/chunks/{instruction-discovery-qajb4ab4.js → location-services-h20z1ya9.js} +9 -9
- package/dist/chunks/{instruction-discovery-pgwx98q6.js → location-services-h56wjgp5.js} +45 -45
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → location-services-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-d1nyvj9r.js → location-services-h8dspmgn.js} +5 -5
- package/dist/chunks/{instruction-discovery-h4psvgch.js → location-services-h9m1c2w5.js} +30 -30
- package/dist/chunks/{instruction-discovery-d48vtfkp.js → location-services-h9mky73t.js} +17 -17
- package/dist/chunks/{instruction-discovery-gthjt79f.js → location-services-hmay1t1j.js} +19 -19
- package/dist/chunks/{instruction-discovery-qw8pzqw4.js → location-services-hxx0ygc8.js} +16 -16
- package/dist/chunks/{instruction-discovery-j56e64zr.js → location-services-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-4rttqgcn.js → location-services-j7axrqd8.js} +29 -29
- package/dist/chunks/{instruction-discovery-9czdv8f4.js → location-services-jdvpg0be.js} +36 -36
- package/dist/chunks/{instruction-discovery-jwdv21t5.js → location-services-jeqepyqp.js} +71 -71
- package/dist/chunks/{instruction-discovery-2g0ztak0.js → location-services-jfb30j9d.js} +1 -1
- package/dist/chunks/{instruction-discovery-xf7wsf7v.js → location-services-jm8m12cd.js} +30 -30
- package/dist/chunks/{instruction-discovery-5dm9y5jy.js → location-services-jqwafpw4.js} +25 -25
- package/dist/chunks/{instruction-discovery-a2qe2ev9.js → location-services-jvnghvnw.js} +8 -8
- package/dist/chunks/{instruction-discovery-nzks3jc8.js → location-services-k3c624dm.js} +3 -3
- package/dist/chunks/{instruction-discovery-r55skn5g.js → location-services-k5qdgh99.js} +8 -8
- package/dist/chunks/{instruction-discovery-fwbecdke.js → location-services-kbcbk3rc.js} +24 -24
- package/dist/chunks/{instruction-discovery-0g47z5db.js → location-services-kbhmzeq3.js} +10 -10
- package/dist/chunks/{instruction-discovery-7x2gjr73.js → location-services-kn6v00wg.js} +20 -20
- package/dist/chunks/{instruction-discovery-hkpbwr5n.js → location-services-kwhnaq83.js} +35 -35
- package/dist/chunks/{instruction-discovery-2wmwqrmr.js → location-services-m12cyjmp.js} +15 -15
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → location-services-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-4yrht77e.js → location-services-m9jd0mcb.js} +8 -8
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-sd347z6p.js → location-services-mmtg5wy2.js} +33 -33
- package/dist/chunks/{instruction-discovery-2jmd7hhv.js → location-services-mntr9wjt.js} +33 -33
- package/dist/chunks/{instruction-discovery-bw9zjykr.js → location-services-mrvjcs5x.js} +6 -6
- package/dist/chunks/{instruction-discovery-kh9sx4kg.js → location-services-ms93yq6r.js} +8 -8
- package/dist/chunks/{instruction-discovery-zc5xmhzd.js → location-services-mv9w5stb.js} +96 -96
- package/dist/chunks/{instruction-discovery-dbv05mm3.js → location-services-mwwxnxty.js} +4 -4
- package/dist/chunks/{instruction-discovery-rf4f2dr1.js → location-services-mz18n95x.js} +19 -19
- package/dist/chunks/{instruction-discovery-977ht9t5.js → location-services-n2cd4sc1.js} +10 -10
- package/dist/chunks/{instruction-discovery-cnxtgke5.js → location-services-n3e4gkzn.js} +10 -10
- package/dist/chunks/{instruction-discovery-mygxndw1.js → location-services-n7mjttc7.js} +9 -9
- package/dist/chunks/{instruction-discovery-qj9rkb8h.js → location-services-ndwv7bs8.js} +15 -15
- package/dist/chunks/{instruction-discovery-fkj9hg5w.js → location-services-njfyzs8z.js} +18 -18
- package/dist/chunks/{instruction-discovery-bzrgxa7n.js → location-services-ns8v16m0.js} +22 -22
- package/dist/chunks/{instruction-discovery-hnr5yq9h.js → location-services-p1nm93x7.js} +5 -5
- package/dist/chunks/{instruction-discovery-1gmn1d4c.js → location-services-p1spfnmp.js} +32 -32
- package/dist/chunks/location-services-p2h6zvwc.js +18 -0
- package/dist/chunks/{instruction-discovery-vjpvmx0s.js → location-services-pe5ggv3d.js} +32 -32
- package/dist/chunks/{instruction-discovery-1n6cta5e.js → location-services-ph6sxt2m.js} +54 -54
- package/dist/chunks/{instruction-discovery-4bm5ja14.js → location-services-ph842b28.js} +4 -4
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → location-services-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-sy0q8s5r.js → location-services-pq983g12.js} +19 -19
- package/dist/chunks/{instruction-discovery-psazpmmj.js → location-services-psazpmmj.js} +2 -2
- package/dist/chunks/{instruction-discovery-4nt6gyzn.js → location-services-pttdfhpz.js} +17 -17
- package/dist/chunks/{instruction-discovery-4crd9m5v.js → location-services-q34hn4m8.js} +31 -31
- package/dist/chunks/{instruction-discovery-4y9v7fm9.js → location-services-q9hdtabh.js} +22 -22
- package/dist/chunks/{instruction-discovery-nhmmjf3s.js → location-services-qd16t7pt.js} +27 -27
- package/dist/chunks/{instruction-discovery-j2g318hr.js → location-services-qfgcszr2.js} +11 -11
- package/dist/chunks/{instruction-discovery-ywkfy99j.js → location-services-qg0jgkcp.js} +9 -9
- package/dist/chunks/{instruction-discovery-qgn6gcr1.js → location-services-qgn6gcr1.js} +1 -1
- package/dist/chunks/{instruction-discovery-qsdy395h.js → location-services-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-63xfv5kt.js → location-services-qxpw477z.js} +17 -17
- package/dist/chunks/{instruction-discovery-v78mbkhs.js → location-services-qzyph8ek.js} +11 -11
- package/dist/chunks/{instruction-discovery-gvbq99q9.js → location-services-r95crx12.js} +17 -17
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → location-services-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-cjb35hf5.js → location-services-rf1x1me2.js} +5 -5
- package/dist/chunks/{instruction-discovery-fvanntqq.js → location-services-rp8jz6x1.js} +6 -6
- package/dist/chunks/{instruction-discovery-y20bjj5g.js → location-services-rs47j036.js} +17 -17
- package/dist/chunks/{instruction-discovery-ngfwjn3z.js → location-services-rwe7vfy4.js} +58 -58
- package/dist/chunks/{instruction-discovery-nev00ktm.js → location-services-s0kg6ey3.js} +13 -13
- package/dist/chunks/{instruction-discovery-essdahbf.js → location-services-s4bzt415.js} +10 -10
- package/dist/chunks/{instruction-discovery-yrznvahk.js → location-services-s4enseaf.js} +2 -2
- package/dist/chunks/{instruction-discovery-yq75na06.js → location-services-sdvc1rg6.js} +15 -15
- package/dist/chunks/{instruction-discovery-g7cwama8.js → location-services-shd7mr8y.js} +12 -12
- package/dist/chunks/{instruction-discovery-qgxmrbd2.js → location-services-shgcqddn.js} +13 -13
- package/dist/chunks/{instruction-discovery-bkekp0bs.js → location-services-sxz61evh.js} +17 -17
- package/dist/chunks/{instruction-discovery-eaj1djv9.js → location-services-t550f9t1.js} +8 -8
- package/dist/chunks/{instruction-discovery-g93jr2kh.js → location-services-t6tst13s.js} +10 -10
- package/dist/chunks/{instruction-discovery-zf69n85s.js → location-services-t8rew5kn.js} +18 -18
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → location-services-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-tdstcens.js → location-services-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-tssg28ba.js → location-services-tj0fs0r1.js} +13 -13
- package/dist/chunks/{instruction-discovery-0de1jdh9.js → location-services-tnjf10ex.js} +181 -181
- package/dist/chunks/{instruction-discovery-nqm1jzm6.js → location-services-tqqd1wey.js} +23 -23
- package/dist/chunks/{instruction-discovery-tvtrv512.js → location-services-tvtrv512.js} +1 -1
- package/dist/chunks/{instruction-discovery-4hbdev4w.js → location-services-tx7d86r5.js} +28 -28
- package/dist/chunks/{instruction-discovery-espax8zg.js → location-services-v7z2bvyd.js} +4 -4
- package/dist/chunks/{instruction-discovery-veqvce7d.js → location-services-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-hrb0vm0w.js → location-services-vgacam68.js} +16 -16
- package/dist/chunks/{instruction-discovery-vrw7f2ye.js → location-services-vh5rvw9s.js} +9 -9
- package/dist/chunks/{instruction-discovery-xgg9hmxa.js → location-services-vzc886ch.js} +35 -35
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → location-services-vzcthcp8.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → location-services-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-3yrwsvjf.js → location-services-wem8116r.js} +9 -9
- package/dist/chunks/{instruction-discovery-59c5e31r.js → location-services-wfe10mpm.js} +10 -10
- package/dist/chunks/{instruction-discovery-s5358avs.js → location-services-wfg70ajk.js} +5 -5
- package/dist/chunks/{instruction-discovery-9jzp6rtr.js → location-services-wk5z6jzv.js} +9 -9
- package/dist/chunks/{instruction-discovery-ks9yaxq2.js → location-services-wqgv35h5.js} +31 -31
- package/dist/chunks/{instruction-discovery-7f3mg9np.js → location-services-wqtjegkd.js} +22 -22
- package/dist/chunks/{instruction-discovery-qqx79t2y.js → location-services-ww3yq57e.js} +16 -16
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → location-services-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instruction-discovery-f6msy67p.js → location-services-xaaqc030.js} +12 -12
- package/dist/chunks/{instruction-discovery-e2yk33t0.js → location-services-xedyykk9.js} +15 -15
- package/dist/chunks/{instruction-discovery-4hy5hsgr.js → location-services-xjvaav3g.js} +11 -11
- package/dist/chunks/{instruction-discovery-xkntkrq7.js → location-services-xkntkrq7.js} +2 -2
- package/dist/chunks/{instruction-discovery-hekxc47r.js → location-services-xp3fh2h7.js} +1 -1
- package/dist/chunks/location-services-xrsqh21y.js +4 -0
- package/dist/chunks/{instruction-discovery-5ebwwas2.js → location-services-xs0sd5xy.js} +9 -9
- package/dist/chunks/{instruction-discovery-1379bkbv.js → location-services-xtsf53gz.js} +12 -12
- package/dist/chunks/{instruction-discovery-6abecr9g.js → location-services-xx97hvw2.js} +28 -28
- package/dist/chunks/{instruction-discovery-hexry4kh.js → location-services-xzhjr7c3.js} +25 -25
- package/dist/chunks/{instruction-discovery-xxttpmb7.js → location-services-y0zn2255.js} +33 -33
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → location-services-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-e0ncgxgt.js → location-services-y3eexsj3.js} +12 -12
- package/dist/chunks/{instruction-discovery-y71avatq.js → location-services-y71avatq.js} +1 -1
- package/dist/chunks/{instruction-discovery-r8xr0va3.js → location-services-yp2x3t23.js} +4 -4
- package/dist/chunks/{instruction-discovery-yrhqyw5v.js → location-services-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instruction-discovery-j61gwjnb.js → location-services-ytp36fc8.js} +11 -11
- package/dist/chunks/{instruction-discovery-dq0v80fr.js → location-services-ywv187z9.js} +12 -12
- package/dist/chunks/{instruction-discovery-57e9z27j.js → location-services-yy3gmdz3.js} +8 -8
- package/dist/chunks/{instruction-discovery-rt9dj4yq.js → location-services-yy7hf67g.js} +13 -13
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-dj9sq318.js → location-services-z3pw5915.js} +5 -5
- package/dist/chunks/{instruction-discovery-nsm263hr.js → location-services-z8ay4g4r.js} +32 -32
- package/dist/chunks/{instruction-discovery-zm898m83.js → location-services-ze2qnn7n.js} +5 -5
- package/dist/chunks/{instruction-discovery-zeh9ct20.js → location-services-zeh9ct20.js} +2 -2
- package/dist/chunks/{instruction-discovery-f3cngsvp.js → location-services-zkdqcrb9.js} +11 -11
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → location-services-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-6gjdrgth.js → location-services-zsn9zpn8.js} +11 -11
- package/dist/chunks/{instruction-discovery-83kp2sb4.js → location-services-zv2tdc3m.js} +31 -31
- package/dist/chunks/{instruction-discovery-hrr3p34g.js → location-services-zwznb21e.js} +3 -3
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → location-services-zxq2ej10.js} +1 -1
- package/dist/chunks/{instruction-discovery-4p9pg674.js → location-services-zy883y1h.js} +41 -41
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- 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/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 +2 -2
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- 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/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +128 -128
- 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 +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +119 -119
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +94 -94
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -161
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -96
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +224 -224
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +153 -153
- 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 +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +154 -154
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- 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 +140 -140
- 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 +127 -127
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +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/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- 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 +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-2ar97v3n.js +0 -252
- package/dist/chunks/instruction-discovery-6kdq0pjd.js +0 -4
- package/dist/chunks/instruction-discovery-hy0r23vx.js +0 -507
- package/dist/chunks/instruction-discovery-n95b3jav.js +0 -18
- package/dist/chunks/instruction-discovery-z6qbewq6.js +0 -26
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → location-services-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → location-services-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → location-services-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → location-services-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → location-services-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → location-services-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → location-services-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-922hggd3.js → location-services-922hggd3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → location-services-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → location-services-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hjbc5kem.js → location-services-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → location-services-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → location-services-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sk3qaz4a.js → location-services-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → location-services-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → location-services-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → location-services-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → location-services-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-qzyph8ek.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./location-services-xaaqc030.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./location-services-y0zn2255.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-services-0fgcbzg9.js";
|
|
15
15
|
import {
|
|
16
16
|
which2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-qaymkmh1.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
ID13
|
|
20
|
+
} from "./location-services-129hjeyj.js";
|
|
21
21
|
import {
|
|
22
22
|
iife2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-services-1kg9ymc8.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-services-b3za54ys.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/azure.ts
|
|
29
29
|
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -43,9 +43,9 @@ var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
|
|
|
43
43
|
var AzurePlugin2 = define({
|
|
44
44
|
id: "opencode.provider.azure",
|
|
45
45
|
effect: Effect.fn(function* (ctx) {
|
|
46
|
-
const configured = yield* configuredSettings2(
|
|
46
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
47
47
|
const processes = yield* AppProcess.Service;
|
|
48
|
-
const bus = yield*
|
|
48
|
+
const bus = yield* Service82;
|
|
49
49
|
const tokens = new Map;
|
|
50
50
|
const loading = Semaphore.makeUnsafe(1);
|
|
51
51
|
const loaded = {};
|
|
@@ -79,13 +79,13 @@ var AzurePlugin2 = define({
|
|
|
79
79
|
});
|
|
80
80
|
yield* ctx.integration.transform((editor) => {
|
|
81
81
|
editor.method.update({
|
|
82
|
-
integrationID:
|
|
82
|
+
integrationID: ID13.azure,
|
|
83
83
|
method: { type: "key", label: "API key", form: form() }
|
|
84
84
|
});
|
|
85
85
|
if (!available)
|
|
86
86
|
return;
|
|
87
87
|
editor.method.update({
|
|
88
|
-
integrationID:
|
|
88
|
+
integrationID: ID13.azure,
|
|
89
89
|
method: {
|
|
90
90
|
id: methodID,
|
|
91
91
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ var AzurePlugin2 = define({
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
120
|
-
const connection = yield* ctx.integration.connection.active(
|
|
120
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
121
121
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
122
122
|
return;
|
|
123
123
|
})) : undefined;
|
|
@@ -131,7 +131,7 @@ var AzurePlugin2 = define({
|
|
|
131
131
|
yield* load();
|
|
132
132
|
yield* ctx.provider.transform((evt) => {
|
|
133
133
|
for (const item of evt.list()) {
|
|
134
|
-
if (item.provider.id !==
|
|
134
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
135
135
|
continue;
|
|
136
136
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
137
137
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -149,7 +149,7 @@ var AzurePlugin2 = define({
|
|
|
149
149
|
});
|
|
150
150
|
yield* ctx.model.transform((models) => {
|
|
151
151
|
for (const item of models.provider.list()) {
|
|
152
|
-
if (item.provider.id !==
|
|
152
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
153
153
|
continue;
|
|
154
154
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
155
155
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -161,9 +161,9 @@ var AzurePlugin2 = define({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
164
|
-
yield* bus.subscribe(
|
|
164
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
165
165
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
166
|
-
const connection = yield* ctx.integration.connection.active(
|
|
166
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
167
167
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
168
168
|
return;
|
|
169
169
|
})) : undefined;
|
|
@@ -175,7 +175,7 @@ var AzurePlugin2 = define({
|
|
|
175
175
|
return `Bearer ${current.access}`;
|
|
176
176
|
});
|
|
177
177
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
178
|
-
if (evt.model.providerID !==
|
|
178
|
+
if (evt.model.providerID !== ID13.azure)
|
|
179
179
|
return;
|
|
180
180
|
const authorization = yield* bearer(evt.request.url);
|
|
181
181
|
if (!authorization)
|
|
@@ -184,9 +184,9 @@ var AzurePlugin2 = define({
|
|
|
184
184
|
evt.request.headers.delete("x-api-key");
|
|
185
185
|
evt.request.headers.set("authorization", authorization);
|
|
186
186
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
187
|
-
}), { providerID:
|
|
187
|
+
}), { providerID: ID13.azure });
|
|
188
188
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
189
|
-
if (evt.model.providerID !==
|
|
189
|
+
if (evt.model.providerID !== ID13.azure)
|
|
190
190
|
return;
|
|
191
191
|
const authorization = yield* bearer(evt.url);
|
|
192
192
|
if (!authorization)
|
|
@@ -195,7 +195,7 @@ var AzurePlugin2 = define({
|
|
|
195
195
|
delete evt.headers["x-api-key"];
|
|
196
196
|
evt.headers.authorization = authorization;
|
|
197
197
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
198
|
-
}), { providerID:
|
|
198
|
+
}), { providerID: ID13.azure });
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
function resolveResourceName(settings, fallback) {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/managed-policy.ts
|
|
6
6
|
var exports_managed_policy = {};
|
|
7
7
|
__export(exports_managed_policy, {
|
|
8
8
|
ManagedPolicy: () => exports_managed_policy,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service47,
|
|
10
|
+
node: () => node49
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service47 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service47, () => {
|
|
18
18
|
const state = { current: { statements: [] } };
|
|
19
|
-
return
|
|
19
|
+
return Service47.of({
|
|
20
20
|
current: () => state.current,
|
|
21
21
|
set: (next) => Effect.sync(() => {
|
|
22
22
|
state.current = next;
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
-
var
|
|
26
|
+
var node49 = makeGlobalNode({ service: Service47, layer, deps: [] });
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { Service47, node49, exports_managed_policy };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service77
|
|
6
|
+
} from "./location-services-6v2f9cm4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service54
|
|
9
|
+
} from "./location-services-t8rew5kn.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service7
|
|
12
|
+
} from "./location-services-ns8v16m0.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-services-2a5m3afh.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service8
|
|
27
|
+
} from "./location-services-bw6qjwge.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-services-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input9,
|
|
36
|
+
Plugin: () => Plugin28,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name9,
|
|
39
|
+
toModelContent: () => toModelContent5
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name9 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input9 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin28 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service8;
|
|
62
|
+
const access = yield* Service54;
|
|
63
|
+
const sessionInstructions = yield* Service7;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service77;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name9,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input9,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -112,7 +112,7 @@ var Plugin31 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent5(result.path, input.offset, result.output),
|
|
116
116
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
117
117
|
})), Effect.mapError((error) => {
|
|
118
118
|
if (error instanceof ToolFailure)
|
|
@@ -145,7 +145,7 @@ ${suggestions.join(`
|
|
|
145
145
|
});
|
|
146
146
|
})
|
|
147
147
|
};
|
|
148
|
-
var
|
|
148
|
+
var toModelContent5 = (path, offset, output) => {
|
|
149
149
|
if (output.type === "file" && output.encoding === "base64")
|
|
150
150
|
return [
|
|
151
151
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -181,4 +181,4 @@ var toModelContent6 = (path, offset, output) => {
|
|
|
181
181
|
`);
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { name9, Input9, Plugin28, toModelContent5, exports_read };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service82
|
|
3
|
+
} from "./location-services-xaaqc030.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-4dgbcxzg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event19
|
|
9
|
+
} from "./location-services-y0zn2255.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
ID14
|
|
12
|
+
} from "./location-services-0fgcbzg9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID13,
|
|
15
|
+
Service73
|
|
16
|
+
} from "./location-services-129hjeyj.js";
|
|
17
17
|
import {
|
|
18
18
|
load2,
|
|
19
19
|
derive2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-dyv6jqgc.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
30
|
-
const bus = yield*
|
|
29
|
+
const providers = yield* Service73;
|
|
30
|
+
const bus = yield* Service82;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
33
33
|
const load = Effect.fn("ModalPlugin.load")(function* () {
|
|
@@ -67,7 +67,7 @@ var ModalPlugin2 = define({
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-fxgpk5d8.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-services-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-services-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-services-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./location-services-xaaqc030.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service77,
|
|
12
|
+
node81
|
|
13
|
+
} from "./location-services-6v2f9cm4.js";
|
|
14
14
|
import {
|
|
15
15
|
reconcile2,
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-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: () => Info5,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service36,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node38
|
|
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 Info5, 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 Service36 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const bus = yield*
|
|
52
|
+
const location = yield* Service77;
|
|
53
|
+
const bus = yield* Service82;
|
|
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(Service22, 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(Info5));
|
|
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));
|
|
@@ -118,7 +118,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
118
118
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
119
119
|
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 }));
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return Service36.of({
|
|
122
122
|
transform: state.transform,
|
|
123
123
|
reload: state.reload,
|
|
124
124
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -164,10 +164,10 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
164
164
|
})
|
|
165
165
|
});
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
168
|
-
service:
|
|
167
|
+
var node38 = makeLocationNode({
|
|
168
|
+
service: Service36,
|
|
169
169
|
layer,
|
|
170
|
-
deps: [FSUtil.node,
|
|
170
|
+
deps: [FSUtil.node, node81, node86]
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
export { Base2, BranchList2, FileStatus2,
|
|
173
|
+
export { Base2, BranchList2, FileStatus2, Info5, Mode2, DiffError2, Service36, node38, exports_vcs };
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-94mr9t66.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./location-services-xaaqc030.js";
|
|
9
9
|
import {
|
|
10
10
|
llmClient2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-5t3nmthw.js";
|
|
12
12
|
import {
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-services-rdw6cm16.js";
|
|
15
15
|
import {
|
|
16
16
|
estimate2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-h6vf3j39.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionEvent2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-ec1grn59.js";
|
|
21
21
|
import {
|
|
22
22
|
provenance2,
|
|
23
23
|
compatible2,
|
|
24
24
|
isCheckpoint2,
|
|
25
25
|
encode2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-services-1rn5pcm9.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
load4
|
|
29
|
+
} from "./location-services-3664e2vt.js";
|
|
30
30
|
import {
|
|
31
31
|
toLLMMessages2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./location-services-xp3fh2h7.js";
|
|
33
33
|
import {
|
|
34
34
|
baseTranscript2,
|
|
35
35
|
unsupportedParts2,
|
|
36
36
|
boundImages2,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
37
|
+
Service24,
|
|
38
|
+
node27
|
|
39
|
+
} from "./location-services-h9m1c2w5.js";
|
|
40
40
|
import {
|
|
41
41
|
toSessionError2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./location-services-c1pmqqvm.js";
|
|
43
43
|
import {
|
|
44
44
|
isRetryable2,
|
|
45
45
|
policy2
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./location-services-1hbenywt.js";
|
|
47
47
|
import {
|
|
48
48
|
calculateCost2,
|
|
49
49
|
record2,
|
|
50
50
|
add2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./location-services-tdstcens.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./location-services-9rqn6x4v.js";
|
|
55
55
|
|
|
56
56
|
// src/session/compaction.ts
|
|
57
57
|
var exports_compaction2 = {};
|
|
58
58
|
__export(exports_compaction2, {
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service11,
|
|
60
60
|
SessionCompaction: () => exports_compaction2,
|
|
61
61
|
buildPrompt: () => buildPrompt2,
|
|
62
62
|
estimateContext: () => estimateContext2,
|
|
63
|
-
layer: () =>
|
|
64
|
-
node: () =>
|
|
63
|
+
layer: () => layer7,
|
|
64
|
+
node: () => node13,
|
|
65
65
|
recentUserMessages: () => recentUserMessages2
|
|
66
66
|
});
|
|
67
67
|
import {
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
} from "@opencode/ai";
|
|
78
78
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
79
79
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
80
|
-
class
|
|
80
|
+
class Service11 extends Context.Service()("@opencode/SessionCompaction") {
|
|
81
81
|
}
|
|
82
82
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
83
83
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -155,11 +155,11 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
155
155
|
};
|
|
156
156
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
157
157
|
var LEGACY_HEADING = "## Additional Context";
|
|
158
|
-
var
|
|
159
|
-
const bus = yield*
|
|
158
|
+
var layer7 = Layer.effect(Service11, Effect.gen(function* () {
|
|
159
|
+
const bus = yield* Service82;
|
|
160
160
|
const llm = yield* LLMClient.Service;
|
|
161
161
|
const db = (yield* Service84).db;
|
|
162
|
-
const requests = yield*
|
|
162
|
+
const requests = yield* Service24;
|
|
163
163
|
const state = create3({
|
|
164
164
|
name: "session-compaction",
|
|
165
165
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -247,7 +247,7 @@ var layer6 = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
247
247
|
const send = (request) => {
|
|
248
248
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
249
249
|
return Effect.gen(function* () {
|
|
250
|
-
const history = yield*
|
|
250
|
+
const history = yield* load4(db, context.session.id, "local").pipe(Effect.orDie);
|
|
251
251
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
252
252
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
253
253
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -449,16 +449,16 @@ ${text}`;
|
|
|
449
449
|
}, { metadata: outcome.metadata });
|
|
450
450
|
return { status: "completed" };
|
|
451
451
|
});
|
|
452
|
-
return
|
|
452
|
+
return Service11.of({
|
|
453
453
|
transform: state.transform,
|
|
454
454
|
reload: state.reload,
|
|
455
455
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
456
456
|
});
|
|
457
457
|
}));
|
|
458
|
-
var
|
|
459
|
-
service:
|
|
460
|
-
layer:
|
|
461
|
-
deps: [
|
|
458
|
+
var node13 = makeLocationNode({
|
|
459
|
+
service: Service11,
|
|
460
|
+
layer: layer7,
|
|
461
|
+
deps: [node86, node88, llmClient2, node27]
|
|
462
462
|
});
|
|
463
463
|
var previousCompaction = (messages) => {
|
|
464
464
|
const [first] = messages;
|
|
@@ -652,4 +652,4 @@ var estimateMedia = (mime) => {
|
|
|
652
652
|
return 0;
|
|
653
653
|
};
|
|
654
654
|
|
|
655
|
-
export {
|
|
655
|
+
export { Service11, buildPrompt2, layer7, node13, recentUserMessages2, estimateContext2, exports_compaction2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-6msgmcgs.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-psazpmmj.js";
|
|
7
7
|
|
|
8
8
|
// src/worktree/sql.ts
|
|
9
9
|
import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
|