@opencode/core 2.0.15 → 2.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{location-2n8vgttj.js → schema-0145jres.js} +24 -24
- package/dist/chunks/schema-03mttfrd.js +26 -0
- package/dist/chunks/{location-2vvgwsdm.js → schema-055gg8d0.js} +17 -17
- package/dist/chunks/{location-r1kjg1tc.js → schema-0bhmdfn5.js} +5 -5
- package/dist/chunks/{location-aa2h7fmm.js → schema-0brwk0k2.js} +36 -36
- package/dist/chunks/{location-ygg1f209.js → schema-0e81x99y.js} +7 -7
- package/dist/chunks/{location-d2kfejna.js → schema-0kety719.js} +13 -13
- package/dist/chunks/{location-6z9mwsmt.js → schema-0mc57tk4.js} +24 -24
- package/dist/chunks/{location-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-0810149y.js → schema-0sfeenar.js} +23 -23
- package/dist/chunks/{location-fwz8j036.js → schema-0ymghm5h.js} +11 -11
- package/dist/chunks/{location-c5nmmnam.js → schema-11etax81.js} +16 -16
- package/dist/chunks/{location-y7as1a2d.js → schema-12z81zg4.js} +43 -43
- package/dist/chunks/{location-5em5jamf.js → schema-197cy8dq.js} +9 -9
- package/dist/chunks/{location-1dazxqgg.js → schema-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-hd8qv2ty.js → schema-1y2s2f0j.js} +9 -9
- package/dist/chunks/{location-78jgv2cz.js → schema-1yb3x3z9.js} +1 -1
- package/dist/chunks/{location-apd0xxcy.js → schema-21fjxxq6.js} +11 -11
- package/dist/chunks/{location-21r38tys.js → schema-21r38tys.js} +1 -1
- package/dist/chunks/{location-2402vzrj.js → schema-2402vzrj.js} +1 -1
- package/dist/chunks/{location-rk8yrdje.js → schema-24mn6ts6.js} +21 -21
- package/dist/chunks/{location-cte9ap30.js → schema-258tza17.js} +8 -8
- package/dist/chunks/{location-p9n0sz6q.js → schema-2627m7vs.js} +17 -17
- package/dist/chunks/{location-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-x2z8ar3h.js → schema-2azgrrcp.js} +60 -33
- package/dist/chunks/{location-db8cpbv4.js → schema-2e3sc6z5.js} +11 -11
- package/dist/chunks/{location-rgtjpwpw.js → schema-2fb3f4s4.js} +12 -15
- package/dist/chunks/{location-2qp6y8xf.js → schema-3cfzdc8e.js} +5 -5
- package/dist/chunks/{location-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-cxrw2h6h.js → schema-3m9rvccw.js} +42 -42
- package/dist/chunks/{location-qg0jgkcp.js → schema-3pe7sts8.js} +9 -9
- package/dist/chunks/{location-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-d6ex932k.js → schema-3ybey094.js} +11 -11
- package/dist/chunks/{location-3zsf4n22.js → schema-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-t0b0bsey.js → schema-41prm328.js} +11 -11
- package/dist/chunks/{location-ae4pezjx.js → schema-428cwm86.js} +56 -56
- package/dist/chunks/{location-agc1sn7c.js → schema-42qrv8nh.js} +24 -24
- package/dist/chunks/{location-pghvqat4.js → schema-45cphc5h.js} +12 -12
- package/dist/chunks/{location-g1sxm558.js → schema-4a0nv7mx.js} +7 -7
- package/dist/chunks/{location-s2y6cwc9.js → schema-4hq88yhx.js} +32 -32
- package/dist/chunks/{location-j8tshh3j.js → schema-4twmxjga.js} +53 -41
- package/dist/chunks/{location-a64frenn.js → schema-507gpz5w.js} +3 -3
- package/dist/chunks/{location-kk00bynn.js → schema-50mzsvk4.js} +21 -21
- package/dist/chunks/{location-bh4p5r3h.js → schema-511kpayd.js} +18 -18
- package/dist/chunks/{location-31723wk9.js → schema-52vmy6ww.js} +17 -17
- package/dist/chunks/{location-4sn99hha.js → schema-57ez7d0k.js} +7 -7
- package/dist/chunks/{location-3124xjv5.js → schema-5825hswr.js} +8 -8
- package/dist/chunks/{location-vxyzwx8s.js → schema-587y186t.js} +8 -8
- package/dist/chunks/{location-np8489tv.js → schema-5atn9wfq.js} +19 -19
- package/dist/chunks/{location-5daktx2q.js → schema-5daktx2q.js} +1 -1
- package/dist/chunks/schema-5dggn2va.js +252 -0
- package/dist/chunks/{location-2f7sk49n.js → schema-5m1y3qk6.js} +16 -16
- package/dist/chunks/{location-0k6bkn72.js → schema-5q4kjq47.js} +3 -3
- package/dist/chunks/{location-e3qxr5gk.js → schema-5qd3pb7m.js} +2 -2
- package/dist/chunks/{location-5t3nmthw.js → schema-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-7yca83g1.js → schema-5yfpp9tw.js} +14 -14
- package/dist/chunks/{location-669tq793.js → schema-669tq793.js} +1 -1
- package/dist/chunks/{location-sj7g5k2t.js → schema-6bgjwwbw.js} +5 -5
- package/dist/chunks/{location-ge3bpktt.js → schema-6cbh3zce.js} +15 -15
- package/dist/chunks/{location-96dp4j9b.js → schema-6gjjawqn.js} +91 -91
- package/dist/chunks/schema-6kdq0pjd.js +4 -0
- package/dist/chunks/{location-6msgmcgs.js → schema-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-mmr7bq34.js → schema-6pc27hjz.js} +5 -5
- package/dist/chunks/{location-2p24pe68.js → schema-6whbnvw3.js} +47 -46
- package/dist/chunks/{location-gbece2fh.js → schema-6xg4rx5y.js} +26 -26
- package/dist/chunks/{location-vdwcy635.js → schema-6yy39kvx.js} +18 -18
- package/dist/chunks/{location-jzje5vrp.js → schema-6z8ht897.js} +16 -16
- package/dist/chunks/{location-fb3n4k1c.js → schema-722kb1xk.js} +5 -5
- package/dist/chunks/{location-5dyz4swx.js → schema-75qjrmc8.js} +20 -20
- package/dist/chunks/{location-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-7dqw4kz8.js → schema-7dqw4kz8.js} +1 -1
- package/dist/chunks/{location-nmc8s8ga.js → schema-7khjtj5g.js} +18 -18
- package/dist/chunks/{location-a6zkqr4m.js → schema-7khr9c91.js} +15 -15
- package/dist/chunks/{location-npk9ncrr.js → schema-7mm032py.js} +8 -8
- package/dist/chunks/{location-t5ewrtsm.js → schema-7smws4ww.js} +9 -9
- package/dist/chunks/{location-etzz3kcr.js → schema-7tpxex51.js} +8 -8
- package/dist/chunks/{location-8d7r5vzw.js → schema-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-xfjpae9m.js → schema-8fsqd879.js} +28 -28
- package/dist/chunks/{location-6jbefxhr.js → schema-8j2x59yf.js} +30 -30
- package/dist/chunks/{location-dkgr3p4r.js → schema-8k150j0z.js} +8 -8
- package/dist/chunks/{location-ny0mz096.js → schema-8kn7kdrq.js} +21 -21
- package/dist/chunks/{location-94ek1h2f.js → schema-94ek1h2f.js} +2 -2
- package/dist/chunks/{location-zgw6fgh0.js → schema-94ve3ep0.js} +5 -5
- package/dist/chunks/{location-eq2jtcfw.js → schema-95e3es41.js} +7 -7
- package/dist/chunks/{location-hvtd657f.js → schema-9a5xxas0.js} +29 -29
- package/dist/chunks/{location-r99pq75w.js → schema-9cjj4wa1.js} +24 -24
- package/dist/chunks/{location-e6asg1wm.js → schema-9f1sykhs.js} +63 -54
- package/dist/chunks/{location-512dnrra.js → schema-9m6r901m.js} +6 -6
- package/dist/chunks/{location-saawvakp.js → schema-9ncpcp0p.js} +13 -13
- package/dist/chunks/{location-qnqm58w1.js → schema-9tkzcje5.js} +12 -12
- package/dist/chunks/{location-h6awxmcx.js → schema-9vhpts05.js} +15 -21
- package/dist/chunks/{location-y6zcy5jv.js → schema-9wy6gd4a.js} +24 -24
- package/dist/chunks/{location-c6mn7xyg.js → schema-a5mtmafw.js} +27 -27
- package/dist/chunks/{location-xhyq1prs.js → schema-a79446ya.js} +4 -4
- package/dist/chunks/{location-a881zpfh.js → schema-a7bcxdzj.js} +9 -9
- package/dist/chunks/{location-aaet6srn.js → schema-aaet6srn.js} +2 -2
- package/dist/chunks/{location-zm32ajz2.js → schema-ack3exs3.js} +10 -10
- package/dist/chunks/{location-7pqgzsme.js → schema-aewz2adp.js} +16 -16
- package/dist/chunks/{location-15ywfmbg.js → schema-av5dvdst.js} +21 -21
- package/dist/chunks/{location-w3z8akkh.js → schema-ayqbdn8x.js} +46 -45
- package/dist/chunks/{location-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-35r86gx7.js → schema-b6q25pdb.js} +2 -2
- package/dist/chunks/{location-cdc8dbba.js → schema-b6ysx4kv.js} +12 -12
- package/dist/chunks/{location-fpvyk3ge.js → schema-bk55e78n.js} +21 -21
- package/dist/chunks/{location-qyagpvrp.js → schema-bw1k523x.js} +31 -31
- package/dist/chunks/{location-0jgcnqr4.js → schema-by3r5qkm.js} +35 -35
- package/dist/chunks/{location-e23w9d35.js → schema-c488s98d.js} +12 -12
- package/dist/chunks/{location-r2cbgwrp.js → schema-c5pegrb7.js} +16 -16
- package/dist/chunks/{location-4ywqwb3e.js → schema-cfefqghv.js} +7 -7
- package/dist/chunks/{location-vjn4w5j0.js → schema-cggb2dpx.js} +18 -18
- package/dist/chunks/{location-ckecvw8r.js → schema-ckecvw8r.js} +2 -2
- package/dist/chunks/{location-2ys44scz.js → schema-cmsm0fmq.js} +16 -16
- package/dist/chunks/{location-92pk5wqe.js → schema-csnqga4f.js} +25 -25
- package/dist/chunks/{location-g0445xdp.js → schema-czfptnv9.js} +8 -8
- package/dist/chunks/{location-gr2tmdz7.js → schema-d0e063zs.js} +17 -17
- package/dist/chunks/{location-kpf5aqxw.js → schema-d2w12qf2.js} +10 -10
- package/dist/chunks/{location-8v97fgxy.js → schema-d4nbhrvv.js} +21 -21
- package/dist/chunks/{location-c6rpq5f1.js → schema-d8hz1vnp.js} +44 -44
- package/dist/chunks/{location-s9r6cqpa.js → schema-db7z9sqm.js} +3 -3
- package/dist/chunks/{location-m9g140gf.js → schema-de52ckkz.js} +5 -5
- package/dist/chunks/schema-djehs4n2.js +69 -0
- package/dist/chunks/{location-vtxr0yy2.js → schema-dmqcgk4z.js} +6 -6
- package/dist/chunks/{location-cje11ec7.js → schema-drgwwxwg.js} +46 -46
- package/dist/chunks/{location-qqeeq2t9.js → schema-drwq78ky.js} +7 -7
- package/dist/chunks/{location-826nay5f.js → schema-e32rp4rx.js} +43 -43
- package/dist/chunks/{location-pxs69nmc.js → schema-e69wdmhy.js} +6 -6
- package/dist/chunks/{location-kx0rdwde.js → schema-eajmhh73.js} +11 -11
- package/dist/chunks/{location-erw5rpbs.js → schema-ecfe7b91.js} +17 -3
- package/dist/chunks/{location-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-rhjkpe6e.js → schema-eh37g602.js} +8 -8
- package/dist/chunks/{location-3yfr3ttv.js → schema-eh37vhb5.js} +7 -7
- package/dist/chunks/{location-g98nad6a.js → schema-emsmtts8.js} +20 -20
- package/dist/chunks/{location-7tpcrxhs.js → schema-ena0zzcy.js} +17 -17
- package/dist/chunks/{location-b3bw2nfz.js → schema-es33zt1k.js} +5 -5
- package/dist/chunks/{location-etq0c3wd.js → schema-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-yz4rntjy.js → schema-evs9c0ef.js} +29 -29
- package/dist/chunks/{location-vp932wpr.js → schema-eymenvc3.js} +30 -30
- package/dist/chunks/{location-yp2x3t23.js → schema-f2n192rq.js} +4 -4
- package/dist/chunks/{location-geebtqnp.js → schema-f59qmhat.js} +7 -7
- package/dist/chunks/{location-1dangqhw.js → schema-f5gy8qwh.js} +8 -8
- package/dist/chunks/{location-9qc6n929.js → schema-f658k6de.js} +27 -27
- package/dist/chunks/{location-jv4eadh7.js → schema-fbawcmnd.js} +8 -8
- package/dist/chunks/{location-e5sbd26s.js → schema-fkfyjdkw.js} +4 -4
- package/dist/chunks/{location-vssdr3c7.js → schema-fnbz4a44.js} +14 -14
- package/dist/chunks/{location-6anwy9fs.js → schema-fng9e0je.js} +4 -4
- package/dist/chunks/{location-358yawqv.js → schema-fr2n07jg.js} +26 -26
- package/dist/chunks/{location-t5z4ehj3.js → schema-fze10tzj.js} +22 -22
- package/dist/chunks/{location-s92vr3t8.js → schema-g5j6fn2h.js} +35 -35
- package/dist/chunks/{location-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-gy60rj0z.js → schema-gq46gf1f.js} +17 -17
- package/dist/chunks/{location-gv6a8nnw.js → schema-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-2prhyday.js → schema-gwmzskkb.js} +20 -20
- package/dist/chunks/{location-t880hhr6.js → schema-h3v3gq1k.js} +26 -26
- package/dist/chunks/{location-4dgbcxzg.js → schema-h6r3nrb9.js} +4 -4
- package/dist/chunks/{location-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-8ffpk8ek.js → schema-habj5avf.js} +29 -29
- package/dist/chunks/{location-yt0fqk68.js → schema-hkfg6fzm.js} +5 -5
- package/dist/chunks/{location-dhmh7aw6.js → schema-hn57h045.js} +4 -4
- package/dist/chunks/{location-1bbkgx8g.js → schema-j028xdjb.js} +3 -3
- package/dist/chunks/{location-w63jt7y5.js → schema-j1pt8b99.js} +23 -23
- package/dist/chunks/{location-j56e64zr.js → schema-j56e64zr.js} +1 -1
- package/dist/chunks/{location-3d2kdets.js → schema-jbp9wfgd.js} +9 -9
- package/dist/chunks/{location-w9gpp3gx.js → schema-jfxkwh10.js} +102 -34
- package/dist/chunks/{location-kxqn5q5s.js → schema-jjf6303y.js} +17 -17
- package/dist/chunks/{location-wk3hxpq4.js → schema-jjq7exv6.js} +15 -15
- package/dist/chunks/{location-vbz4mrgg.js → schema-jmanypz0.js} +30 -30
- package/dist/chunks/{location-tdkr4fjp.js → schema-jnqxgjh5.js} +42 -42
- package/dist/chunks/{location-2p5y98w0.js → schema-jns15vzr.js} +6 -6
- package/dist/chunks/{location-s0esgemt.js → schema-jpqeh2wc.js} +13 -9
- package/dist/chunks/{location-8py9cb08.js → schema-jt97ek0w.js} +1 -1
- package/dist/chunks/{location-exkxrshv.js → schema-jzffzcq4.js} +16 -16
- package/dist/chunks/{location-3rbdcc49.js → schema-jztemdeq.js} +24 -24
- package/dist/chunks/{location-nzks3jc8.js → schema-k3c624dm.js} +3 -3
- package/dist/chunks/{location-rfbkd05a.js → schema-k3ztb1qz.js} +5 -5
- package/dist/chunks/{location-pmh8g6yq.js → schema-k5gcqnqh.js} +11 -11
- package/dist/chunks/{location-256nx13v.js → schema-k6yq57aq.js} +3 -3
- package/dist/chunks/{location-ajdjch6h.js → schema-kp8q1t60.js} +9 -9
- package/dist/chunks/{location-306693xq.js → schema-ks0a0grj.js} +23 -23
- package/dist/chunks/{location-z0aj456m.js → schema-m0r31qfn.js} +4 -4
- package/dist/chunks/{location-m3fdjcah.js → schema-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-jgttmm4a.js → schema-ma48de29.js} +5 -5
- package/dist/chunks/{location-8fyqdzgp.js → schema-me2bkwye.js} +11 -11
- package/dist/chunks/{location-33w4ejhs.js → schema-mfqp6xfm.js} +9 -9
- package/dist/chunks/{location-k906dc9m.js → schema-mj50c66e.js} +16 -16
- package/dist/chunks/{location-3172pg9v.js → schema-mnnqb9y7.js} +30 -26
- package/dist/chunks/{location-bdmzfegv.js → schema-mpjr2ekw.js} +33 -33
- package/dist/chunks/{location-mvksx64m.js → schema-mvksx64m.js} +4 -4
- package/dist/chunks/{location-8kc8r484.js → schema-n72gykqt.js} +33 -33
- package/dist/chunks/{location-vyrd71eq.js → schema-nbzsj80d.js} +11 -11
- package/dist/chunks/{location-zfa7ynd8.js → schema-nrp9mwhy.js} +16 -16
- package/dist/chunks/{location-r1vfcwav.js → schema-nvexbzn8.js} +24 -24
- package/dist/chunks/{location-yq14pbr7.js → schema-nyqx1cb3.js} +5 -5
- package/dist/chunks/{location-tqzp8tzb.js → schema-nz8pq8c9.js} +3 -3
- package/dist/chunks/{location-3t63r8vy.js → schema-p07c8hrh.js} +8 -8
- package/dist/chunks/{location-6sftkhr6.js → schema-p8587wpx.js} +18 -18
- package/dist/chunks/{location-7w0t4dm2.js → schema-pecm86x5.js} +13 -13
- package/dist/chunks/{location-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{location-vg9ntks0.js → schema-pkyn48ss.js} +332 -324
- package/dist/chunks/{location-jftkgdp0.js → schema-pm23069r.js} +17 -17
- package/dist/chunks/{location-rnghhd3g.js → schema-pnzr5f25.js} +10 -10
- package/dist/chunks/{location-pdgv857h.js → schema-ps7s312n.js} +10 -10
- package/dist/chunks/{location-qdm92ydp.js → schema-q4q3y0ma.js} +35 -35
- package/dist/chunks/{location-04mw5jg5.js → schema-qg2cf98c.js} +11 -11
- package/dist/chunks/{location-jv01nqvq.js → schema-qjnxxf51.js} +5 -5
- package/dist/chunks/{location-rvhvw5j9.js → schema-qkc3sedm.js} +170 -170
- package/dist/chunks/{location-cf8rhbja.js → schema-qnnvw27w.js} +35 -35
- package/dist/chunks/{location-qsdy395h.js → schema-qsdy395h.js} +1 -1
- package/dist/chunks/{location-z1cdyrqr.js → schema-qw1f8ej3.js} +40 -31
- package/dist/chunks/{location-pvat10bb.js → schema-qyvq79sc.js} +11 -11
- package/dist/chunks/{location-2pnnswbv.js → schema-r1qsnamt.js} +4 -4
- package/dist/chunks/{location-xcrt1tny.js → schema-r3ryr6td.js} +31 -31
- package/dist/chunks/{location-0kxfmfxf.js → schema-rb4e480n.js} +13 -13
- package/dist/chunks/{location-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-ft3hqk2c.js → schema-rey5gbxv.js} +9 -9
- package/dist/chunks/{location-rhjbct0v.js → schema-rhjbct0v.js} +1 -1
- package/dist/chunks/{location-n9awvp43.js → schema-rrxec99e.js} +41 -41
- package/dist/chunks/{location-4qjz8wfv.js → schema-rwvzjkqg.js} +26 -26
- package/dist/chunks/{location-nf6tfn93.js → schema-rxcwgxqf.js} +3 -3
- package/dist/chunks/schema-sejq73tg.js +96 -0
- package/dist/chunks/{location-z5qed6cr.js → schema-sm1zfatk.js} +40 -40
- package/dist/chunks/{location-kwj5scwb.js → schema-spdety1y.js} +16 -16
- package/dist/chunks/{location-18s9r5gn.js → schema-ssdqnhy0.js} +4 -4
- package/dist/chunks/{location-jfqtm2ew.js → schema-t2fc4mz5.js} +4 -4
- package/dist/chunks/{location-hypat1yv.js → schema-t4wzjz2c.js} +3 -3
- package/dist/chunks/{location-qpk3e0rf.js → schema-t7c95w3a.js} +26 -26
- package/dist/chunks/{location-hafm9y5m.js → schema-t7xz7709.js} +31 -30
- package/dist/chunks/{location-an7cqtb7.js → schema-t9zs3egg.js} +4 -4
- package/dist/chunks/{location-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-tcezcvh9.js → schema-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-tdstcens.js → schema-tdstcens.js} +1 -1
- package/dist/chunks/{location-qfe26hq3.js → schema-tfvhzp6w.js} +90 -90
- package/dist/chunks/{location-7tvzmp5f.js → schema-tgyvarbm.js} +15 -15
- package/dist/chunks/{location-15y6myyc.js → schema-tjz0sjs3.js} +20 -20
- package/dist/chunks/{location-yvvvp4gn.js → schema-tk9ew89t.js} +8 -8
- package/dist/chunks/{location-tvtrv512.js → schema-tvtrv512.js} +1 -1
- package/dist/chunks/schema-v1faaxn9.js +18 -0
- package/dist/chunks/{location-dagkn99r.js → schema-v3sgzvyr.js} +1 -1
- package/dist/chunks/schema-v7ytqzq6.js +339 -0
- package/dist/chunks/{location-8ec97xvv.js → schema-v9315egx.js} +9 -9
- package/dist/chunks/{location-vh4x57nh.js → schema-vbb1pxgn.js} +23 -23
- package/dist/chunks/{location-veqvce7d.js → schema-veqvce7d.js} +1 -1
- package/dist/chunks/{location-w747ydy6.js → schema-vgygemyp.js} +28 -28
- package/dist/chunks/{location-xq3yw8dy.js → schema-vmnfmpbz.js} +86 -80
- package/dist/chunks/{location-c8bydgjz.js → schema-vqfzq50h.js} +6 -6
- package/dist/chunks/{location-3a58h9a4.js → schema-vr2z87y7.js} +70 -70
- package/dist/chunks/{location-xhk8n0yf.js → schema-vv4dp7ce.js} +20 -20
- package/dist/chunks/{location-vzcthcp8.js → schema-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-5ekn9679.js → schema-vzs5sf6e.js} +5 -1
- package/dist/chunks/{location-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-wd3x2cqz.js → schema-wd3x2cqz.js} +2 -2
- package/dist/chunks/{location-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{location-qmr67b2d.js → schema-wfg418dn.js} +13 -13
- package/dist/chunks/{location-m7va1g8x.js → schema-wqc6684y.js} +2 -2
- package/dist/chunks/{location-dgpq7z8n.js → schema-wx7ymqfy.js} +26 -26
- package/dist/chunks/{location-8s04dv6n.js → schema-wxnc2egh.js} +16 -16
- package/dist/chunks/{location-vs030v48.js → schema-wzgg19r1.js} +4 -4
- package/dist/chunks/{location-0tmnpbjy.js → schema-wzhdnf6z.js} +32 -32
- package/dist/chunks/{location-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-c395zvtw.js → schema-x3317tkm.js} +21 -21
- package/dist/chunks/{location-dpwed560.js → schema-x8bbrmd5.js} +3 -3
- package/dist/chunks/{location-mtg5e72x.js → schema-xbwwxhdm.js} +14 -14
- package/dist/chunks/{location-tb273c1p.js → schema-xc7gs73k.js} +23 -23
- package/dist/chunks/{location-n793kqf0.js → schema-xybn4n2y.js} +12 -12
- package/dist/chunks/{location-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-1twdgbjf.js → schema-y4bzdzmn.js} +13 -13
- package/dist/chunks/{location-85skx0n5.js → schema-y6gmj16h.js} +22 -22
- package/dist/chunks/{location-jwcy2c2z.js → schema-y71avatq.js} +4 -4
- package/dist/chunks/{location-svhm0fyq.js → schema-y853g6y0.js} +4 -4
- package/dist/chunks/{location-52mpv69t.js → schema-ycw8hfm2.js} +13 -13
- package/dist/chunks/{location-n8c291r7.js → schema-yq2cczkq.js} +7 -7
- package/dist/chunks/{location-yrhqyw5v.js → schema-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-s4enseaf.js → schema-yrznvahk.js} +2 -2
- package/dist/chunks/{location-h5gt9chz.js → schema-ytbrnvs4.js} +25 -25
- package/dist/chunks/{location-hcg5gfqa.js → schema-yv37q7sr.js} +6 -6
- package/dist/chunks/{location-vhv9377y.js → schema-yz82w8p6.js} +5 -5
- package/dist/chunks/{location-z07pqspn.js → schema-z07pqspn.js} +3 -3
- package/dist/chunks/{location-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-neb0pg0h.js → schema-z15n6anb.js} +5 -5
- package/dist/chunks/{location-29x78va6.js → schema-z63w68vq.js} +6 -6
- package/dist/chunks/{location-zeh9ct20.js → schema-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-ek44vwmj.js → schema-zqdrfgj1.js} +48 -48
- package/dist/chunks/{location-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +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 +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +70 -70
- 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 +125 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -367
- 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 +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 +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +363 -361
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +84 -84
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +360 -358
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +106 -106
- package/dist/mcp/instructions.js +126 -126
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/compaction.js +133 -133
- package/dist/plugin/hooks.js +3 -3
- 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 +334 -332
- package/dist/plugin/mcp-codemode-defaults.js +8 -0
- 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 +99 -94
- package/dist/plugin/provider/gitlab.js +93 -91
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -94
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +120 -120
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -160
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +98 -0
- package/dist/plugin/warming.js +121 -121
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +97 -97
- 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 +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +84 -84
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +224 -223
- 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 +88 -88
- 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 +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 +112 -112
- 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 +75 -75
- package/dist/session/store.js +83 -83
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +223 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- 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 +125 -125
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +121 -0
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +116 -116
- 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 +14 -14
- package/dist/types/effect/app-node-platform.d.ts +1 -2
- package/dist/types/mcp/index.d.ts +4 -1
- package/dist/types/model-resolver.d.ts +2 -0
- package/dist/types/plugin/{mcp-codemode-exclusion.d.ts → mcp-codemode-defaults.d.ts} +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +10 -1
- package/dist/types/plugin/provider/gitlab.d.ts +4 -1
- package/dist/types/plugin/verbosity.d.ts +3 -0
- package/dist/types/session/model-transport.d.ts +1 -1
- package/dist/types/shell/result.d.ts +5 -1
- package/dist/types/tool/plugin/mcp-resource.d.ts +9 -0
- package/dist/types/tool/read-filesystem.d.ts +1 -0
- package/dist/types/v1/config/migrate.d.ts +12 -12
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +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 +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +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 +9 -9
- package/dist/chunks/location-0mesazry.js +0 -4
- package/dist/chunks/location-ce7bf4ce.js +0 -252
- package/dist/chunks/location-hpfbmb0d.js +0 -61
- package/dist/chunks/location-jbs0jehe.js +0 -26
- package/dist/chunks/location-n95b3jav.js +0 -18
- package/dist/plugin/mcp-codemode-exclusion.js +0 -8
- /package/dist/chunks/{location-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-34c7v6d4.js → schema-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3w5fmr99.js → schema-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-922hggd3.js → schema-922hggd3.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → schema-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hjbc5kem.js → schema-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → schema-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./schema-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service60,
|
|
8
|
+
node62
|
|
9
|
+
} from "./schema-9cjj4wa1.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Content3
|
|
12
|
+
} from "./schema-eymenvc3.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-3smtnn6g.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./schema-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/read-filesystem.ts
|
|
21
21
|
var exports_read_filesystem = {};
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service9,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node10,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -69,9 +69,9 @@ class MediaIngestLimitError2 extends Schema.TaggedError()("ReadTool.MediaIngestL
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
class OffsetOutOfRangeError2 extends Schema.TaggedError()("ReadTool.OffsetOutOfRangeError", { offset: Schema.Number }) {
|
|
72
|
+
class OffsetOutOfRangeError2 extends Schema.TaggedError()("ReadTool.OffsetOutOfRangeError", { offset: Schema.Number, lines: Schema.Number }) {
|
|
73
73
|
get message() {
|
|
74
|
-
return `Offset ${this.offset} is out of range`;
|
|
74
|
+
return `Offset ${this.offset} is out of range for this file (${this.lines} ${this.lines === 1 ? "line" : "lines"})`;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -85,11 +85,11 @@ class PathKindError2 extends Schema.TaggedError()("ReadTool.PathKindError", {
|
|
|
85
85
|
}
|
|
86
86
|
var PageInput2 = Schema.Struct({
|
|
87
87
|
offset: Schema.optionalKey(NonNegativeInt2),
|
|
88
|
-
limit: Schema.optionalKey(NonNegativeInt2
|
|
88
|
+
limit: Schema.optionalKey(NonNegativeInt2)
|
|
89
89
|
});
|
|
90
90
|
var FileContent2 = Schema.Struct({
|
|
91
91
|
type: Schema.Literal("file"),
|
|
92
|
-
...
|
|
92
|
+
...Content3.fields
|
|
93
93
|
}).annotate({ identifier: "ReadTool.FileContent" });
|
|
94
94
|
|
|
95
95
|
class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service9 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -147,7 +147,9 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
|
|
|
147
147
|
type: "file",
|
|
148
148
|
uri: pathToFileURL(input).href,
|
|
149
149
|
name: path.basename(input),
|
|
150
|
-
content: new TextDecoder().decode(first.bytes)
|
|
150
|
+
content: new TextDecoder().decode(first.bytes).split(`
|
|
151
|
+
`).map(clampLine).join(`
|
|
152
|
+
`),
|
|
151
153
|
encoding: "utf8",
|
|
152
154
|
mime: mimeType(input)
|
|
153
155
|
};
|
|
@@ -156,7 +158,7 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
|
|
|
156
158
|
const result = textPage(first.bytes, true, page);
|
|
157
159
|
if (result === undefined)
|
|
158
160
|
return yield* Effect.die("Read page did not settle for a complete first chunk");
|
|
159
|
-
return yield* makeTextPage(input, resource, result, first.bytes.subarray(0, result.consumed).includes(0));
|
|
161
|
+
return yield* makeTextPage(input, resource, result, first.bytes.subarray(0, result.consumed).includes(0), lineCount(textLeaf(first.bytes).summary.lines, first.bytes.at(-1)));
|
|
160
162
|
}
|
|
161
163
|
const offset = page.offset || 1;
|
|
162
164
|
const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
|
|
@@ -191,7 +193,7 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
|
|
|
191
193
|
checked += leaf.summary.bytes;
|
|
192
194
|
return length > 0 && leaf.bytes.subarray(0, length).includes(0);
|
|
193
195
|
});
|
|
194
|
-
return yield* makeTextPage(input, resource, translated, binary);
|
|
196
|
+
return yield* makeTextPage(input, resource, translated, binary, lineCount(lines, leaves.at(-1)?.bytes.at(-1)));
|
|
195
197
|
}
|
|
196
198
|
}
|
|
197
199
|
const next = yield* readFile(files, input, resource, { offset: bytes, length: FIRST_CHUNK });
|
|
@@ -206,11 +208,11 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
|
|
|
206
208
|
}
|
|
207
209
|
});
|
|
208
210
|
var readFile = (files, input, resource, range) => files.read(input, range).pipe(Effect.catchTag("Environment.WrongKind", () => Effect.fail(new PathKindError2({ resource, expected: "a file" }))));
|
|
209
|
-
var makeTextPage = Effect.fnUntraced(function* (input, resource, result, binary) {
|
|
211
|
+
var makeTextPage = Effect.fnUntraced(function* (input, resource, result, binary, lines) {
|
|
210
212
|
if (binary)
|
|
211
213
|
return yield* new BinaryFileError2({ resource });
|
|
212
214
|
if (result.entries.length === 0 && result.offset !== 1)
|
|
213
|
-
return yield* new OffsetOutOfRangeError2({ offset: result.offset });
|
|
215
|
+
return yield* new OffsetOutOfRangeError2({ offset: result.offset, lines });
|
|
214
216
|
return new TextPage2({
|
|
215
217
|
type: "text-page",
|
|
216
218
|
content: result.entries.join(`
|
|
@@ -256,7 +258,7 @@ var textPage = (bytes, eof, page) => {
|
|
|
256
258
|
next = line;
|
|
257
259
|
break;
|
|
258
260
|
}
|
|
259
|
-
const text = value
|
|
261
|
+
const text = clampLine(value);
|
|
260
262
|
const lineSize = Buffer.byteLength(text, "utf-8") + (entries.length > 0 ? 1 : 0);
|
|
261
263
|
if (size + lineSize > MAX_READ_BYTES2) {
|
|
262
264
|
next = line;
|
|
@@ -273,6 +275,8 @@ var textPage = (bytes, eof, page) => {
|
|
|
273
275
|
const consumed = consumedLines === 0 ? 0 : nthNewline(bytes, consumedLines) ?? bytes.length;
|
|
274
276
|
return { entries, offset, next, consumed };
|
|
275
277
|
};
|
|
278
|
+
var clampLine = (line) => line.length > MAX_LINE_LENGTH ? line.slice(0, MAX_LINE_LENGTH) + MAX_LINE_SUFFIX : line;
|
|
279
|
+
var lineCount = (newlines, last) => newlines + (last === undefined || last === 10 ? 0 : 1);
|
|
276
280
|
var textLeaf = (bytes) => {
|
|
277
281
|
let lines = 0;
|
|
278
282
|
for (const byte of bytes)
|
|
@@ -326,13 +330,13 @@ var nthNewline = (bytes, count) => {
|
|
|
326
330
|
return index + 1;
|
|
327
331
|
}
|
|
328
332
|
};
|
|
329
|
-
var layer = Layer.effect(
|
|
330
|
-
const environment = yield*
|
|
331
|
-
return
|
|
333
|
+
var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
334
|
+
const environment = yield* Service60;
|
|
335
|
+
return Service9.of({
|
|
332
336
|
list: environment.files.list,
|
|
333
337
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
334
338
|
});
|
|
335
339
|
}));
|
|
336
|
-
var
|
|
340
|
+
var node10 = makeLocationNode({ service: Service9, layer, deps: [node62] });
|
|
337
341
|
|
|
338
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2,
|
|
342
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service9, read2, node10, exports_read_filesystem };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./schema-qg2cf98c.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./schema-cmsm0fmq.js";
|
|
9
9
|
import {
|
|
10
10
|
llmClient2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./schema-5t3nmthw.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./schema-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
provenance2,
|
|
17
17
|
compatible2,
|
|
18
18
|
isCheckpoint2,
|
|
19
19
|
encode2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./schema-ssdqnhy0.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
load5
|
|
23
|
+
} from "./schema-3ybey094.js";
|
|
24
24
|
import {
|
|
25
25
|
create3
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./schema-rdw6cm16.js";
|
|
27
27
|
import {
|
|
28
28
|
toLLMMessages2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./schema-v3sgzvyr.js";
|
|
30
30
|
import {
|
|
31
31
|
baseTranscript2,
|
|
32
32
|
unsupportedParts2,
|
|
33
33
|
boundImages2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./schema-jmanypz0.js";
|
|
35
35
|
import {
|
|
36
36
|
toSessionError2
|
|
37
|
-
} from "./
|
|
37
|
+
} from "./schema-wzgg19r1.js";
|
|
38
38
|
import {
|
|
39
39
|
policy2,
|
|
40
40
|
transient2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./schema-x8bbrmd5.js";
|
|
42
42
|
import {
|
|
43
43
|
estimate2
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./schema-h6vf3j39.js";
|
|
45
45
|
import {
|
|
46
46
|
calculateCost2,
|
|
47
47
|
record2,
|
|
48
48
|
add2
|
|
49
|
-
} from "./
|
|
49
|
+
} from "./schema-tdstcens.js";
|
|
50
50
|
import {
|
|
51
51
|
__export
|
|
52
|
-
} from "./
|
|
52
|
+
} from "./schema-9rqn6x4v.js";
|
|
53
53
|
|
|
54
54
|
// src/session/compaction.ts
|
|
55
55
|
var exports_compaction3 = {};
|
|
56
56
|
__export(exports_compaction3, {
|
|
57
|
-
Service: () =>
|
|
57
|
+
Service: () => Service10,
|
|
58
58
|
SessionCompaction: () => exports_compaction3,
|
|
59
59
|
buildPrompt: () => buildPrompt2,
|
|
60
60
|
estimateTokens: () => estimateTokens2,
|
|
61
|
-
layer: () =>
|
|
62
|
-
node: () =>
|
|
61
|
+
layer: () => layer6,
|
|
62
|
+
node: () => node12,
|
|
63
63
|
retainUsers: () => retainUsers2,
|
|
64
64
|
serializeToolContent: () => serializeToolContent2,
|
|
65
65
|
truncateToolOutput: () => truncateToolOutput2
|
|
@@ -125,7 +125,7 @@ var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
|
|
|
125
125
|
`).filter((line) => line.startsWith("##"));
|
|
126
126
|
var LEGACY_HEADING = "## Additional Context";
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service10 extends Context.Service()("@opencode/SessionCompaction") {
|
|
129
129
|
}
|
|
130
130
|
var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
|
|
131
131
|
var estimateTokens2 = (input) => {
|
|
@@ -298,10 +298,10 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
298
298
|
};
|
|
299
299
|
var hasSummarySection = (summary) => summary.split(`
|
|
300
300
|
`).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
|
|
301
|
-
var
|
|
302
|
-
const bus = yield*
|
|
301
|
+
var layer6 = Layer.effect(Service10, Effect.gen(function* () {
|
|
302
|
+
const bus = yield* Service82;
|
|
303
303
|
const llm = yield* LLMClient.Service;
|
|
304
|
-
const db = (yield*
|
|
304
|
+
const db = (yield* Service83).db;
|
|
305
305
|
const state = create3({
|
|
306
306
|
name: "session-compaction",
|
|
307
307
|
initial: () => ({ auto: true, buffer: DEFAULT_BUFFER, tokens: DEFAULT_KEEP_TOKENS, native: [] }),
|
|
@@ -377,7 +377,7 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
377
377
|
webSocket
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
const original = (sessionID) =>
|
|
380
|
+
const original = (sessionID) => load5(db, sessionID, "local").pipe(Effect.orDie);
|
|
381
381
|
const recoverLocally = (input) => original(input.context.session.id).pipe(Effect.flatMap((messages) => execute({ ...input, context: { ...input.context, messages } })));
|
|
382
382
|
const executeProvider = Effect.fn("SessionCompaction.executeProvider")(function* (input) {
|
|
383
383
|
const context = input.context;
|
|
@@ -606,7 +606,7 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
606
606
|
}
|
|
607
607
|
}));
|
|
608
608
|
});
|
|
609
|
-
return
|
|
609
|
+
return Service10.of({
|
|
610
610
|
transform: state.transform,
|
|
611
611
|
reload: state.reload,
|
|
612
612
|
enabled: () => state.get().auto,
|
|
@@ -615,10 +615,10 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
615
615
|
compactManual
|
|
616
616
|
});
|
|
617
617
|
}));
|
|
618
|
-
var
|
|
619
|
-
service:
|
|
620
|
-
layer:
|
|
621
|
-
deps: [
|
|
618
|
+
var node12 = makeLocationNode({
|
|
619
|
+
service: Service10,
|
|
620
|
+
layer: layer6,
|
|
621
|
+
deps: [node86, node87, llmClient2]
|
|
622
622
|
});
|
|
623
623
|
|
|
624
|
-
export {
|
|
624
|
+
export { Service10, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer6, node12, exports_compaction3 };
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-rhjbct0v.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./schema-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-z07pqspn.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./schema-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./schema-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service81,
|
|
9
|
+
node85
|
|
10
|
+
} from "./schema-c488s98d.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service79,
|
|
13
|
+
node83
|
|
14
|
+
} from "./schema-wxnc2egh.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./schema-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./schema-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error2,
|
|
26
|
+
ID: () => ID3,
|
|
27
|
+
Service: () => Service32,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node35,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID3 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error2 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service32 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service81;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service79;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID3.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service32.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node35 = makeLocationNode({
|
|
144
|
+
service: Service32,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node85, Global.node, node83]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer2 = Layer.succeed(Service32, Service32.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service60, Service60.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error2 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error2({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID3, Error2, Service32, node35, noopLayer2, exports_snapshot2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Info14
|
|
6
|
+
} from "./schema-50mzsvk4.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/v1/config/agent.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigAgentV1: () =>
|
|
15
|
-
Info: () =>
|
|
12
|
+
var exports_agent3 = {};
|
|
13
|
+
__export(exports_agent3, {
|
|
14
|
+
ConfigAgentV1: () => exports_agent3,
|
|
15
|
+
Info: () => Info13
|
|
16
16
|
});
|
|
17
17
|
import { Schema, SchemaGetter } from "effect";
|
|
18
18
|
var Color = Schema.Union([
|
|
@@ -44,7 +44,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
44
44
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
45
45
|
}),
|
|
46
46
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
47
|
-
permission: Schema.optional(
|
|
47
|
+
permission: Schema.optional(Info14)
|
|
48
48
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
49
49
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
50
50
|
var normalize = (agent) => {
|
|
@@ -66,9 +66,9 @@ var normalize = (agent) => {
|
|
|
66
66
|
const steps = agent.steps ?? agent.maxSteps;
|
|
67
67
|
return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
|
|
68
68
|
};
|
|
69
|
-
var
|
|
69
|
+
var Info13 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
|
|
70
70
|
decode: SchemaGetter.transform(normalize),
|
|
71
71
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
72
72
|
})).annotate({ identifier: "AgentConfig" });
|
|
73
73
|
|
|
74
|
-
export {
|
|
74
|
+
export { Info13, exports_agent3 };
|
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
removed2,
|
|
4
4
|
make20,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-rhjbct0v.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize2,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./schema-3fc6dm20.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./schema-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
21
|
-
render: () =>
|
|
22
|
-
update: () =>
|
|
17
|
+
var exports_instructions2 = {};
|
|
18
|
+
__export(exports_instructions2, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions2,
|
|
20
|
+
make: () => make13,
|
|
21
|
+
render: () => render2,
|
|
22
|
+
update: () => update2
|
|
23
23
|
});
|
|
24
24
|
import { searchSignature, toolExpression } from "@opencode/codemode";
|
|
25
25
|
import { Effect, Schema } from "effect";
|
|
@@ -32,7 +32,7 @@ ${hasMoreTools ? `The catalog is partial. Inside \`execute\`, use \`search(...)\
|
|
|
32
32
|
- ${searchSignature}` : "The catalog is complete. Do not guess tool names."}
|
|
33
33
|
|
|
34
34
|
## Available tools`;
|
|
35
|
-
function
|
|
35
|
+
function render2(catalog) {
|
|
36
36
|
if (catalog.total === 0)
|
|
37
37
|
return "No Code Mode tools are currently available. Later Code Mode catalog updates may add or remove tools. Do not call `execute` unless there is at least one available Code Mode tool.";
|
|
38
38
|
const tools = catalog.namespaces.flatMap((namespace) => {
|
|
@@ -43,10 +43,10 @@ function render3(catalog) {
|
|
|
43
43
|
${tools.join(`
|
|
44
44
|
`)}`;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function update2(previous, current) {
|
|
47
47
|
const replacement = `The Code Mode tool catalog has changed. This catalog supersedes the previous Code Mode tool catalog.
|
|
48
48
|
|
|
49
|
-
${
|
|
49
|
+
${render2(current)}`;
|
|
50
50
|
if (current.total === 0)
|
|
51
51
|
return replacement;
|
|
52
52
|
const previousComplete = previous.shown === previous.total;
|
|
@@ -111,18 +111,18 @@ ${render3(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make13 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize2(inventory);
|
|
116
116
|
return make20({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
120
120
|
render: {
|
|
121
|
-
initial:
|
|
122
|
-
changed:
|
|
121
|
+
initial: render2,
|
|
122
|
+
changed: update2,
|
|
123
123
|
removed: () => "Code Mode tools are no longer available. Do not use any previously listed Code Mode tools."
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { render2, update2, make13, exports_instructions2 };
|