@opencode/core 2.0.15 → 2.0.16
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-tb273c1p.js → event-logger-01ps9m3h.js} +32 -32
- package/dist/chunks/{location-exkxrshv.js → event-logger-03q3r71s.js} +18 -18
- package/dist/chunks/{location-2p24pe68.js → event-logger-089g9g2x.js} +46 -46
- package/dist/chunks/{location-s9r6cqpa.js → event-logger-0bb1qdg3.js} +3 -3
- package/dist/chunks/{location-s0esgemt.js → event-logger-0br3sbwn.js} +13 -9
- package/dist/chunks/{location-8ec97xvv.js → event-logger-0f3a36n3.js} +9 -9
- package/dist/chunks/{location-z5qed6cr.js → event-logger-0fnt4z85.js} +26 -26
- package/dist/chunks/{location-sj7g5k2t.js → event-logger-0gz4y0yt.js} +5 -5
- package/dist/chunks/{location-vp932wpr.js → event-logger-0jshnw7f.js} +16 -16
- package/dist/chunks/{location-t5ewrtsm.js → event-logger-0p1t7cwm.js} +9 -9
- package/dist/chunks/{location-gbece2fh.js → event-logger-0p8kebmq.js} +26 -26
- package/dist/chunks/{location-0paq2nw3.js → event-logger-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-s2y6cwc9.js → event-logger-0yt7yd1j.js} +33 -33
- package/dist/chunks/{location-vs030v48.js → event-logger-11k6dxds.js} +4 -4
- package/dist/chunks/{location-qyagpvrp.js → event-logger-132pb4yq.js} +29 -29
- package/dist/chunks/{location-8v97fgxy.js → event-logger-1bry463v.js} +14 -14
- package/dist/chunks/{location-1dazxqgg.js → event-logger-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-mmr7bq34.js → event-logger-1p07q0wb.js} +7 -7
- package/dist/chunks/{location-mtg5e72x.js → event-logger-1xx7tqhe.js} +11 -11
- package/dist/chunks/{location-33w4ejhs.js → event-logger-1ygqh575.js} +6 -6
- package/dist/chunks/{location-21r38tys.js → event-logger-21r38tys.js} +1 -1
- package/dist/chunks/{location-2402vzrj.js → event-logger-2402vzrj.js} +1 -1
- package/dist/chunks/{location-52mpv69t.js → event-logger-27gf4k7j.js} +10 -10
- package/dist/chunks/{location-tdkr4fjp.js → event-logger-28ehbsev.js} +41 -41
- package/dist/chunks/{location-2a5m3afh.js → event-logger-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-4sn99hha.js → event-logger-2fgn2we9.js} +5 -5
- package/dist/chunks/{location-dpwed560.js → event-logger-2jnnq67w.js} +6 -6
- package/dist/chunks/{location-7dqw4kz8.js → event-logger-2k8khapm.js} +5 -5
- package/dist/chunks/{location-7tvzmp5f.js → event-logger-2ntmd471.js} +15 -15
- package/dist/chunks/{location-db8cpbv4.js → event-logger-2qt06f8c.js} +11 -11
- package/dist/chunks/{location-w3z8akkh.js → event-logger-2ye00mg1.js} +46 -45
- package/dist/chunks/{location-qmr67b2d.js → event-logger-32b2ehkd.js} +13 -13
- package/dist/chunks/{location-s92vr3t8.js → event-logger-36wx3dpn.js} +32 -32
- package/dist/chunks/{location-31723wk9.js → event-logger-39nw5ydc.js} +17 -17
- package/dist/chunks/{location-zm32ajz2.js → event-logger-3c9ypvct.js} +7 -7
- package/dist/chunks/{location-3fc6dm20.js → event-logger-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-0k6bkn72.js → event-logger-3kx3nt6q.js} +3 -3
- package/dist/chunks/{location-3smtnn6g.js → event-logger-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → event-logger-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-xhyq1prs.js → event-logger-3xw1mt3t.js} +4 -4
- package/dist/chunks/{location-3zsf4n22.js → event-logger-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-g98nad6a.js → event-logger-3zvr4ntj.js} +17 -17
- package/dist/chunks/{location-a6zkqr4m.js → event-logger-4c7cwrwt.js} +15 -15
- package/dist/chunks/{location-t880hhr6.js → event-logger-4nsq4evv.js} +31 -31
- package/dist/chunks/{location-2ys44scz.js → event-logger-4rzfcrmm.js} +12 -12
- package/dist/chunks/{location-g1sxm558.js → event-logger-4w5f3qm5.js} +8 -8
- package/dist/chunks/{location-5em5jamf.js → event-logger-4x2e8ejb.js} +6 -6
- package/dist/chunks/{location-qqeeq2t9.js → event-logger-57b9ws8p.js} +4 -4
- package/dist/chunks/{location-e5sbd26s.js → event-logger-57p7edxn.js} +4 -4
- package/dist/chunks/{location-5daktx2q.js → event-logger-5daktx2q.js} +1 -1
- package/dist/chunks/{location-512dnrra.js → event-logger-5dwbhd1q.js} +9 -9
- package/dist/chunks/{location-b3bw2nfz.js → event-logger-5eerdhhh.js} +5 -5
- package/dist/chunks/{location-5ekn9679.js → event-logger-5ekn9679.js} +1 -1
- package/dist/chunks/{location-e3qxr5gk.js → event-logger-5qd3pb7m.js} +2 -2
- package/dist/chunks/{location-r1vfcwav.js → event-logger-5sgwv95d.js} +21 -21
- package/dist/chunks/{location-5t3nmthw.js → event-logger-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-vjn4w5j0.js → event-logger-5v0fdq8j.js} +12 -12
- package/dist/chunks/{location-mvksx64m.js → event-logger-5xpznt2d.js} +4 -4
- package/dist/chunks/{location-zgw6fgh0.js → event-logger-63ar50w9.js} +5 -5
- package/dist/chunks/{location-669tq793.js → event-logger-669tq793.js} +1 -1
- package/dist/chunks/event-logger-6kdq0pjd.js +4 -0
- package/dist/chunks/{location-6msgmcgs.js → event-logger-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-8kc8r484.js → event-logger-6tdwvj9c.js} +33 -33
- package/dist/chunks/{location-826nay5f.js → event-logger-6z4ywrmd.js} +41 -41
- package/dist/chunks/{location-kx0rdwde.js → event-logger-70n28njg.js} +11 -11
- package/dist/chunks/{location-r2cbgwrp.js → event-logger-718xzxc8.js} +13 -13
- package/dist/chunks/{location-nmc8s8ga.js → event-logger-747n07b7.js} +15 -15
- package/dist/chunks/{location-2n8vgttj.js → event-logger-74wfabdn.js} +24 -24
- package/dist/chunks/{location-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-pdgv857h.js → event-logger-7f6v5qpp.js} +10 -10
- package/dist/chunks/{location-ek44vwmj.js → event-logger-7fqx7jvc.js} +48 -48
- package/dist/chunks/{location-2vvgwsdm.js → event-logger-7mwj9qcd.js} +14 -14
- package/dist/chunks/{location-hcg5gfqa.js → event-logger-816m4crp.js} +6 -6
- package/dist/chunks/{location-vssdr3c7.js → event-logger-8a4ad92b.js} +11 -11
- package/dist/chunks/{location-c5nmmnam.js → event-logger-8aahf52h.js} +13 -13
- package/dist/chunks/{location-8d7r5vzw.js → event-logger-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-bh4p5r3h.js → event-logger-8h5varp2.js} +8 -8
- package/dist/chunks/{location-6jbefxhr.js → event-logger-8m795tf5.js} +14 -14
- package/dist/chunks/{location-96dp4j9b.js → event-logger-8xeyrzky.js} +91 -91
- package/dist/chunks/{location-np8489tv.js → event-logger-900yt45k.js} +22 -22
- package/dist/chunks/{location-pghvqat4.js → event-logger-908dkt5v.js} +12 -12
- package/dist/chunks/{location-rnghhd3g.js → event-logger-93w6htg6.js} +10 -10
- package/dist/chunks/{location-94ek1h2f.js → event-logger-94ek1h2f.js} +2 -2
- package/dist/chunks/{location-yvvvp4gn.js → event-logger-99xay3p1.js} +8 -8
- package/dist/chunks/{location-gr2tmdz7.js → event-logger-9agfq1d2.js} +14 -14
- package/dist/chunks/{location-7tpcrxhs.js → event-logger-9dvwkvjz.js} +19 -19
- package/dist/chunks/{location-zfa7ynd8.js → event-logger-9e4j78a5.js} +5 -5
- package/dist/chunks/{location-geebtqnp.js → event-logger-9gj3h84v.js} +7 -7
- package/dist/chunks/{location-6sftkhr6.js → event-logger-9n49v3te.js} +19 -19
- package/dist/chunks/{location-rk8yrdje.js → event-logger-9t2qpacv.js} +22 -22
- package/dist/chunks/{location-y6zcy5jv.js → event-logger-9v66419v.js} +22 -22
- package/dist/chunks/{location-4ywqwb3e.js → event-logger-a0s8xvxt.js} +10 -10
- package/dist/chunks/{location-m7va1g8x.js → event-logger-a3r4dcrj.js} +2 -2
- package/dist/chunks/{location-svhm0fyq.js → event-logger-a52pef7j.js} +4 -4
- package/dist/chunks/{location-aaet6srn.js → event-logger-aaet6srn.js} +2 -2
- package/dist/chunks/{location-3t63r8vy.js → event-logger-aneqmxfb.js} +8 -8
- package/dist/chunks/{location-kpf5aqxw.js → event-logger-aqs1w8sb.js} +10 -10
- package/dist/chunks/{location-hypat1yv.js → event-logger-azjsvxqn.js} +3 -3
- package/dist/chunks/{location-j8tshh3j.js → event-logger-b2aqqavs.js} +53 -41
- package/dist/chunks/{location-3yfr3ttv.js → event-logger-b4285gp2.js} +9 -9
- package/dist/chunks/{location-78jgv2cz.js → event-logger-b4kkqjxq.js} +1 -1
- package/dist/chunks/{location-b6gygkdw.js → event-logger-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-306693xq.js → event-logger-bgvszk91.js} +22 -22
- package/dist/chunks/{location-h5gt9chz.js → event-logger-bmg501ry.js} +25 -25
- package/dist/chunks/event-logger-bnwmzjfq.js +26 -0
- package/dist/chunks/{location-hafm9y5m.js → event-logger-bs4se5xz.js} +31 -30
- package/dist/chunks/{location-m9g140gf.js → event-logger-bsqx64w4.js} +5 -5
- package/dist/chunks/{location-jzje5vrp.js → event-logger-btgkjvyx.js} +19 -19
- package/dist/chunks/{location-bdmzfegv.js → event-logger-bv1pwt2s.js} +30 -30
- package/dist/chunks/event-logger-by5v678g.js +18 -0
- package/dist/chunks/{location-2qp6y8xf.js → event-logger-c78bbtc9.js} +5 -5
- package/dist/chunks/{location-z1cdyrqr.js → event-logger-c99wwxqk.js} +29 -29
- package/dist/chunks/{location-3a58h9a4.js → event-logger-chazxwvm.js} +74 -74
- package/dist/chunks/{location-xhk8n0yf.js → event-logger-ck33pjpx.js} +11 -11
- package/dist/chunks/{location-ckecvw8r.js → event-logger-ckecvw8r.js} +2 -2
- package/dist/chunks/{location-vyrd71eq.js → event-logger-ckfwh0ft.js} +11 -11
- package/dist/chunks/{location-rfbkd05a.js → event-logger-cmc17df4.js} +5 -5
- package/dist/chunks/{location-g0445xdp.js → event-logger-cmwkp3r5.js} +4 -4
- package/dist/chunks/{location-kwj5scwb.js → event-logger-cyr3g3e5.js} +16 -16
- package/dist/chunks/{location-kxqn5q5s.js → event-logger-d4sk7cm2.js} +18 -18
- package/dist/chunks/{location-8py9cb08.js → event-logger-d6pm2gat.js} +1 -1
- package/dist/chunks/{location-a881zpfh.js → event-logger-dda0p7y7.js} +9 -9
- package/dist/chunks/{location-3rbdcc49.js → event-logger-ddtyr2hh.js} +25 -25
- package/dist/chunks/{location-pvat10bb.js → event-logger-deqzrk0a.js} +11 -11
- package/dist/chunks/{location-18s9r5gn.js → event-logger-dg2cj1yd.js} +4 -4
- package/dist/chunks/{location-x2z8ar3h.js → event-logger-dntn16f7.js} +26 -22
- package/dist/chunks/{location-jwcy2c2z.js → event-logger-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-xq3yw8dy.js → event-logger-dsvbxzrp.js} +81 -75
- package/dist/chunks/{location-0tmnpbjy.js → event-logger-dyzt9za5.js} +36 -36
- package/dist/chunks/{location-04mw5jg5.js → event-logger-e0k7xjnp.js} +3 -3
- package/dist/chunks/{location-7pqgzsme.js → event-logger-e33fphm7.js} +13 -13
- package/dist/chunks/{location-y7as1a2d.js → event-logger-ec6m7bjn.js} +39 -39
- package/dist/chunks/{location-xcrt1tny.js → event-logger-ef35abme.js} +33 -33
- package/dist/chunks/{location-ef5x83kb.js → event-logger-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-1dangqhw.js → event-logger-eneefzjq.js} +8 -8
- package/dist/chunks/{location-hd8qv2ty.js → event-logger-enywfw21.js} +6 -6
- package/dist/chunks/{location-erw5rpbs.js → event-logger-erw5rpbs.js} +2 -2
- package/dist/chunks/{location-etq0c3wd.js → event-logger-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-c6rpq5f1.js → event-logger-f27dyjrk.js} +46 -46
- package/dist/chunks/{location-cf8rhbja.js → event-logger-f2947pfg.js} +33 -33
- package/dist/chunks/{location-qpk3e0rf.js → event-logger-f9q7adw3.js} +19 -19
- package/dist/chunks/event-logger-fh4s07nh.js +252 -0
- package/dist/chunks/{location-pmh8g6yq.js → event-logger-fkz383g5.js} +11 -11
- package/dist/chunks/{location-jfqtm2ew.js → event-logger-fm2qvscf.js} +4 -4
- package/dist/chunks/{location-8s04dv6n.js → event-logger-fv5sjpfb.js} +14 -14
- package/dist/chunks/{location-n9awvp43.js → event-logger-fxq78srh.js} +33 -33
- package/dist/chunks/{location-kk00bynn.js → event-logger-g190xswt.js} +21 -21
- package/dist/chunks/{location-rhjkpe6e.js → event-logger-g43vs6pk.js} +5 -5
- package/dist/chunks/{location-dkgr3p4r.js → event-logger-g8vnyhk4.js} +8 -8
- package/dist/chunks/{location-0kxfmfxf.js → event-logger-gbhtmfkn.js} +13 -13
- package/dist/chunks/{location-gd4qta3r.js → event-logger-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-nf6tfn93.js → event-logger-gmc59x4c.js} +6 -6
- package/dist/chunks/{location-gv6a8nnw.js → event-logger-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-saawvakp.js → event-logger-gyfpy8sq.js} +10 -10
- package/dist/chunks/{location-4dgbcxzg.js → event-logger-h6r3nrb9.js} +4 -4
- package/dist/chunks/{location-h6vf3j39.js → event-logger-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-yq14pbr7.js → event-logger-hbyhqfhs.js} +5 -5
- package/dist/chunks/{location-c6mn7xyg.js → event-logger-he6tcr5q.js} +27 -27
- package/dist/chunks/{location-8ffpk8ek.js → event-logger-hef66yfx.js} +26 -26
- package/dist/chunks/{location-qdm92ydp.js → event-logger-hwk227gb.js} +37 -37
- package/dist/chunks/{location-tqzp8tzb.js → event-logger-j0pg6dsa.js} +5 -5
- package/dist/chunks/{location-w63jt7y5.js → event-logger-j1np5d6f.js} +23 -23
- package/dist/chunks/{location-j56e64zr.js → event-logger-j56e64zr.js} +1 -1
- package/dist/chunks/{location-n8c291r7.js → event-logger-j8zzr2am.js} +4 -4
- package/dist/chunks/{location-aa2h7fmm.js → event-logger-je1vn78e.js} +36 -36
- package/dist/chunks/{location-256nx13v.js → event-logger-jexxy024.js} +3 -3
- package/dist/chunks/{location-e23w9d35.js → event-logger-jf9anmv7.js} +12 -12
- package/dist/chunks/{location-gy60rj0z.js → event-logger-jgd9see8.js} +17 -17
- package/dist/chunks/{location-jftkgdp0.js → event-logger-jjg31dbj.js} +18 -18
- package/dist/chunks/{location-jv01nqvq.js → event-logger-jv01nqvq.js} +2 -2
- package/dist/chunks/{location-rgtjpwpw.js → event-logger-jww5q7tc.js} +3 -3
- package/dist/chunks/{location-t0b0bsey.js → event-logger-jx360mrh.js} +11 -11
- package/dist/chunks/{location-n793kqf0.js → event-logger-jzmh272x.js} +10 -10
- package/dist/chunks/{location-apd0xxcy.js → event-logger-k36bwha9.js} +11 -11
- package/dist/chunks/{location-nzks3jc8.js → event-logger-k3c624dm.js} +3 -3
- package/dist/chunks/{location-dagkn99r.js → event-logger-k53npxr2.js} +1 -1
- package/dist/chunks/{location-0810149y.js → event-logger-kaaz88r3.js} +16 -16
- package/dist/chunks/{location-agc1sn7c.js → event-logger-kc29vnnm.js} +19 -19
- package/dist/chunks/{location-ny0mz096.js → event-logger-kmyrg3fm.js} +22 -22
- package/dist/chunks/{location-35r86gx7.js → event-logger-m0fa3ej4.js} +2 -2
- package/dist/chunks/{location-7w0t4dm2.js → event-logger-m3dqj4zs.js} +12 -12
- package/dist/chunks/{location-m3fdjcah.js → event-logger-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-etzz3kcr.js → event-logger-m3zza4qd.js} +8 -8
- package/dist/chunks/{location-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-1bbkgx8g.js → event-logger-mhkvc446.js} +3 -3
- package/dist/chunks/event-logger-mjt9wwac.js +96 -0
- package/dist/chunks/{location-3172pg9v.js → event-logger-msf2edjm.js} +28 -24
- package/dist/chunks/{location-fwz8j036.js → event-logger-mxkwqd26.js} +11 -11
- package/dist/chunks/{location-fpvyk3ge.js → event-logger-n1jgwtn1.js} +29 -29
- package/dist/chunks/{location-fb3n4k1c.js → event-logger-n300db4g.js} +5 -5
- package/dist/chunks/{location-ajdjch6h.js → event-logger-n37c4crj.js} +9 -9
- package/dist/chunks/{location-8fyqdzgp.js → event-logger-n4xm4h5w.js} +11 -11
- package/dist/chunks/{location-1twdgbjf.js → event-logger-n9sgmesv.js} +16 -16
- package/dist/chunks/{location-r99pq75w.js → event-logger-najthaah.js} +24 -24
- package/dist/chunks/{location-e6asg1wm.js → event-logger-np6mkd1m.js} +50 -50
- package/dist/chunks/{location-6z9mwsmt.js → event-logger-nt0v7t0n.js} +24 -24
- package/dist/chunks/{location-qfe26hq3.js → event-logger-nyvq8r07.js} +82 -82
- package/dist/chunks/{location-cje11ec7.js → event-logger-p2qeza37.js} +43 -43
- package/dist/chunks/{location-6anwy9fs.js → event-logger-pf2hb43r.js} +4 -4
- package/dist/chunks/{location-qnqm58w1.js → event-logger-pft9k85v.js} +13 -13
- package/dist/chunks/{location-vh4x57nh.js → event-logger-pgkvq3r8.js} +32 -32
- package/dist/chunks/{location-pjvnvgmy.js → event-logger-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → event-logger-pknna89w.js} +1 -1
- package/dist/chunks/{location-an7cqtb7.js → event-logger-pmr4s4kc.js} +4 -4
- package/dist/chunks/{location-k906dc9m.js → event-logger-pp173efe.js} +16 -16
- package/dist/chunks/{location-w747ydy6.js → event-logger-pxag7cab.js} +20 -20
- package/dist/chunks/{location-ae4pezjx.js → event-logger-pzk5trfr.js} +55 -55
- package/dist/chunks/{location-cxrw2h6h.js → event-logger-q460c3tq.js} +41 -41
- package/dist/chunks/{location-3d2kdets.js → event-logger-qanbasbs.js} +9 -9
- package/dist/chunks/{location-vxyzwx8s.js → event-logger-qdgkf1bg.js} +8 -8
- package/dist/chunks/{location-qg0jgkcp.js → event-logger-qg0jgkcp.js} +2 -2
- package/dist/chunks/{location-ft3hqk2c.js → event-logger-qmqgtz8f.js} +9 -9
- package/dist/chunks/{location-15y6myyc.js → event-logger-qp6bbb4z.js} +23 -23
- package/dist/chunks/{location-qsdy395h.js → event-logger-qsdy395h.js} +1 -1
- package/dist/chunks/{location-vbz4mrgg.js → event-logger-qz809afx.js} +33 -33
- package/dist/chunks/{location-7yca83g1.js → event-logger-r1g03gg9.js} +14 -14
- package/dist/chunks/{location-yp2x3t23.js → event-logger-r8xr0va3.js} +4 -4
- package/dist/chunks/{location-rdw6cm16.js → event-logger-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-0jgcnqr4.js → event-logger-rf0y6vjb.js} +33 -33
- package/dist/chunks/{location-rvhvw5j9.js → event-logger-rt4ems47.js} +171 -171
- package/dist/chunks/{location-dhmh7aw6.js → event-logger-rwm5vee1.js} +4 -4
- package/dist/chunks/{location-rhjbct0v.js → event-logger-s8d7rejh.js} +4 -4
- package/dist/chunks/{location-yt0fqk68.js → event-logger-s8zy8myc.js} +5 -5
- package/dist/chunks/{location-92pk5wqe.js → event-logger-shsdp4g3.js} +23 -23
- package/dist/chunks/{location-ge3bpktt.js → event-logger-svd3wk3g.js} +15 -15
- package/dist/chunks/{location-85skx0n5.js → event-logger-swnqtvke.js} +25 -25
- package/dist/chunks/{location-a64frenn.js → event-logger-syzcn7b5.js} +3 -3
- package/dist/chunks/{location-wk3hxpq4.js → event-logger-sz2yehtx.js} +17 -17
- package/dist/chunks/{location-jgttmm4a.js → event-logger-t71v2ka4.js} +5 -5
- package/dist/chunks/{location-tazgh4e4.js → event-logger-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-tcezcvh9.js → event-logger-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-tdstcens.js → event-logger-tdstcens.js} +1 -1
- package/dist/chunks/{location-d6ex932k.js → event-logger-te5g4v54.js} +11 -11
- package/dist/chunks/{location-z0aj456m.js → event-logger-tjedn1bk.js} +4 -4
- package/dist/chunks/{location-yz4rntjy.js → event-logger-tmqa4ga1.js} +29 -29
- package/dist/chunks/event-logger-tncp3d9k.js +507 -0
- package/dist/chunks/{location-tvtrv512.js → event-logger-tvtrv512.js} +1 -1
- package/dist/chunks/event-logger-twfs5dqp.js +339 -0
- package/dist/chunks/{location-c8bydgjz.js → event-logger-v6gb7zv2.js} +6 -6
- package/dist/chunks/{location-pxs69nmc.js → event-logger-vamd4fsq.js} +4 -4
- package/dist/chunks/{location-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
- package/dist/chunks/{location-hvtd657f.js → event-logger-vn3yw2wj.js} +32 -32
- package/dist/chunks/{location-t5z4ehj3.js → event-logger-vz8d88kv.js} +22 -22
- package/dist/chunks/{location-vzcthcp8.js → event-logger-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-neb0pg0h.js → event-logger-w2nj5ptj.js} +5 -5
- package/dist/chunks/{location-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-vdwcy635.js → event-logger-w6y5hf30.js} +15 -15
- package/dist/chunks/{location-5dyz4swx.js → event-logger-w8t53nqw.js} +20 -20
- package/dist/chunks/{location-jv4eadh7.js → event-logger-wargq46t.js} +5 -5
- package/dist/chunks/{location-wd3x2cqz.js → event-logger-wd3x2cqz.js} +2 -2
- package/dist/chunks/{location-wd87259q.js → event-logger-wd87259q.js} +1 -1
- package/dist/chunks/{location-npk9ncrr.js → event-logger-wqj2xpp0.js} +9 -9
- package/dist/chunks/{location-15ywfmbg.js → event-logger-wsb64f9g.js} +21 -21
- package/dist/chunks/{location-2prhyday.js → event-logger-wv72qc1v.js} +15 -15
- package/dist/chunks/{location-vhv9377y.js → event-logger-ww6x407f.js} +5 -5
- package/dist/chunks/{location-x1ezjp6w.js → event-logger-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-vtxr0yy2.js → event-logger-xkntkrq7.js} +3 -3
- package/dist/chunks/{location-cdc8dbba.js → event-logger-xvjpp9n9.js} +12 -12
- package/dist/chunks/{location-9qc6n929.js → event-logger-xxaqvhcx.js} +29 -29
- package/dist/chunks/{location-y1fvbwt7.js → event-logger-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-358yawqv.js → event-logger-y2nf1ewr.js} +19 -19
- package/dist/chunks/{location-p9n0sz6q.js → event-logger-y43qwa20.js} +22 -22
- package/dist/chunks/{location-eq2jtcfw.js → event-logger-y4q6tv4t.js} +7 -7
- package/dist/chunks/{location-4qjz8wfv.js → event-logger-y5rv6h3q.js} +27 -27
- package/dist/chunks/{location-c395zvtw.js → event-logger-y87mwaek.js} +19 -19
- package/dist/chunks/{location-ygg1f209.js → event-logger-ybhbtxjg.js} +7 -7
- package/dist/chunks/{location-r1kjg1tc.js → event-logger-ybshnyry.js} +5 -5
- package/dist/chunks/{location-cte9ap30.js → event-logger-yemq3d8b.js} +8 -8
- package/dist/chunks/{location-2f7sk49n.js → event-logger-yj0pkhyr.js} +16 -16
- package/dist/chunks/{location-dgpq7z8n.js → event-logger-yjmj8nkq.js} +22 -22
- package/dist/chunks/{location-yrhqyw5v.js → event-logger-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-s4enseaf.js → event-logger-yrznvahk.js} +2 -2
- package/dist/chunks/{location-z07pqspn.js → event-logger-z07pqspn.js} +3 -3
- package/dist/chunks/{location-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-29x78va6.js → event-logger-z63w68vq.js} +6 -6
- package/dist/chunks/{location-xfjpae9m.js → event-logger-z7ctwqf8.js} +23 -23
- package/dist/chunks/{location-2p5y98w0.js → event-logger-za77p82n.js} +6 -6
- package/dist/chunks/{location-zeh9ct20.js → event-logger-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-w9gpp3gx.js → event-logger-zehx49jx.js} +35 -34
- package/dist/chunks/{location-d2kfejna.js → event-logger-znm218mv.js} +13 -13
- package/dist/chunks/{location-zr2ceqn5.js → event-logger-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-2pnnswbv.js → event-logger-zsecex3e.js} +4 -4
- package/dist/chunks/{location-3124xjv5.js → event-logger-zxk6ecdw.js} +8 -8
- package/dist/chunks/{location-zxq2ej10.js → event-logger-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-h6awxmcx.js → event-logger-zz2qg7p3.js} +12 -12
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +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 +123 -123
- package/dist/config/plugin/command.js +212 -212
- 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 +123 -123
- package/dist/config/plugin/mcp.js +130 -130
- 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 +83 -83
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +122 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -369
- 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 +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +95 -95
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- 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 +362 -361
- package/dist/instruction-discovery.js +77 -77
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +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 +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 -358
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +102 -102
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/compaction.js +131 -131
- 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 +3 -3
- package/dist/plugin/internal.js +333 -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 +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +93 -93
- package/dist/plugin/provider/gitlab.js +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 +94 -94
- 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 +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +74 -74
- 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 +352 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- 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 +98 -98
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +226 -225
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +151 -151
- 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 +77 -77
- 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 +126 -126
- 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 +208 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +156 -156
- 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 +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 +15 -15
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +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 +124 -124
- 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 +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +109 -109
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +114 -114
- 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 +14 -14
- 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/gitlab.d.ts +4 -1
- package/dist/types/session/model-transport.d.ts +1 -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 +3 -3
- 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 +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- 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 +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +80 -80
- 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 +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +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/chunks/location-vg9ntks0.js +0 -503
- package/dist/plugin/mcp-codemode-exclusion.js +0 -8
- /package/dist/chunks/{location-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → event-logger-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → event-logger-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-34c7v6d4.js → event-logger-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → event-logger-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3w5fmr99.js → event-logger-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → event-logger-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → event-logger-6prwharc.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → event-logger-822emrt2.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-922hggd3.js → event-logger-922hggd3.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → event-logger-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fxgpk5d8.js → event-logger-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → event-logger-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → event-logger-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hjbc5kem.js → event-logger-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → event-logger-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-sk3qaz4a.js → event-logger-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → event-logger-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8cydn3q.js → event-logger-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Resource2,
|
|
3
|
+
ResourceTemplate2,
|
|
4
|
+
ResourceContent2,
|
|
5
|
+
Service42
|
|
6
|
+
} from "./event-logger-dsvbxzrp.js";
|
|
7
|
+
import {
|
|
8
|
+
Service68
|
|
9
|
+
} from "./event-logger-p2qeza37.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
13
|
+
|
|
14
|
+
// src/tool/plugin/mcp-resource.ts
|
|
15
|
+
var exports_mcp_resource = {};
|
|
16
|
+
__export(exports_mcp_resource, {
|
|
17
|
+
McpResourceTools: () => exports_mcp_resource,
|
|
18
|
+
Plugin: () => Plugin42
|
|
19
|
+
});
|
|
20
|
+
import { ToolFailure } from "@opencode/ai";
|
|
21
|
+
import { Effect, Schema } from "effect";
|
|
22
|
+
var Plugin42 = {
|
|
23
|
+
id: "opencode.tools.mcp-resources",
|
|
24
|
+
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
25
|
+
const mcp = yield* Service42;
|
|
26
|
+
const permission = yield* Service68;
|
|
27
|
+
yield* ctx.tool.transform((editor) => {
|
|
28
|
+
editor.add({
|
|
29
|
+
name: "list_mcp_resources",
|
|
30
|
+
options: { namespace: "opencode", codemode: true },
|
|
31
|
+
description: "List documents, records, and other data exposed by MCP servers. Use this when the user refers to something that is not a local file, such as a URI with a custom scheme, then load a match with read_mcp_resource. Each entry names the server to read it from. Templates are resources addressed by a parameter such as a record ID; fill in the uriTemplate placeholders before reading.",
|
|
32
|
+
input: Schema.Struct({
|
|
33
|
+
server: Schema.optionalKey(Schema.String.annotate({ description: "MCP server name as configured. Omit to list every server." }))
|
|
34
|
+
}),
|
|
35
|
+
output: Schema.Struct({
|
|
36
|
+
resources: Schema.Array(Resource2),
|
|
37
|
+
templates: Schema.Array(ResourceTemplate2)
|
|
38
|
+
}),
|
|
39
|
+
execute: (input, context) => Effect.gen(function* () {
|
|
40
|
+
const servers = input.server === undefined ? (yield* mcp.servers()).map((server) => server.name) : [input.server];
|
|
41
|
+
yield* permission.assert({
|
|
42
|
+
action: "opencode_list_mcp_resources",
|
|
43
|
+
resources: servers,
|
|
44
|
+
save: servers,
|
|
45
|
+
metadata: {},
|
|
46
|
+
sessionID: context.sessionID,
|
|
47
|
+
agent: context.agent,
|
|
48
|
+
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
49
|
+
});
|
|
50
|
+
if (input.server === undefined)
|
|
51
|
+
return { output: yield* mcp.resourceCatalog() };
|
|
52
|
+
return { output: yield* mcp.resources({ server: input.server }) };
|
|
53
|
+
}).pipe(Effect.mapError((error) => new ToolFailure({ message: error.message, error })))
|
|
54
|
+
});
|
|
55
|
+
editor.add({
|
|
56
|
+
name: "read_mcp_resource",
|
|
57
|
+
options: { namespace: "opencode", codemode: true },
|
|
58
|
+
description: "Read one MCP resource by server and URI. Not for local files. Always return the full contents rather than slicing or filtering them; oversized output is truncated automatically and the full content is saved to a file you can read. Images and PDFs are shown to you directly.",
|
|
59
|
+
input: Schema.Struct({
|
|
60
|
+
server: Schema.String.annotate({
|
|
61
|
+
description: "The server field of the discovered resource."
|
|
62
|
+
}),
|
|
63
|
+
uri: Schema.String.annotate({
|
|
64
|
+
description: "Exact resource URI from discovery, an expanded uriTemplate, or the user."
|
|
65
|
+
})
|
|
66
|
+
}),
|
|
67
|
+
output: ResourceContent2,
|
|
68
|
+
execute: (input, context) => Effect.gen(function* () {
|
|
69
|
+
yield* permission.assert({
|
|
70
|
+
action: "opencode_read_mcp_resource",
|
|
71
|
+
resources: [`${input.server}:${input.uri}`],
|
|
72
|
+
save: [`${input.server}:*`],
|
|
73
|
+
metadata: { server: input.server, uri: input.uri },
|
|
74
|
+
sessionID: context.sessionID,
|
|
75
|
+
agent: context.agent,
|
|
76
|
+
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
77
|
+
});
|
|
78
|
+
const resource = yield* mcp.readResource(input);
|
|
79
|
+
if (!resource)
|
|
80
|
+
return yield* new ToolFailure({
|
|
81
|
+
message: `MCP server "${input.server}" is not connected or does not expose resources`
|
|
82
|
+
});
|
|
83
|
+
return {
|
|
84
|
+
output: resource,
|
|
85
|
+
content: resource.contents.flatMap((part) => part.type === "blob" && (part.mimeType?.startsWith("image/") || part.mimeType === "application/pdf") ? [{ type: "file", uri: `data:${part.mimeType};base64,${part.blob}`, mime: part.mimeType }] : [])
|
|
86
|
+
};
|
|
87
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({
|
|
88
|
+
message: `Unable to read MCP resource ${input.server}:${input.uri}: ${error.message}`,
|
|
89
|
+
error
|
|
90
|
+
})))
|
|
91
|
+
});
|
|
92
|
+
}).pipe(Effect.orDie);
|
|
93
|
+
})
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export { Plugin42, exports_mcp_resource };
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./event-logger-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service55,
|
|
8
|
+
node58
|
|
9
|
+
} from "./event-logger-najthaah.js";
|
|
10
10
|
import {
|
|
11
11
|
Content2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-0jshnw7f.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./event-logger-3smtnn6g.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./event-logger-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: () => Service13,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node15,
|
|
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,7 +85,7 @@ 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"),
|
|
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service13 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(Service13, Effect.gen(function* () {
|
|
334
|
+
const environment = yield* Service55;
|
|
335
|
+
return Service13.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 node15 = makeLocationNode({ service: Service13, layer, deps: [node58] });
|
|
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, Service13, read2, node15, exports_read_filesystem };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
ID5,
|
|
6
|
+
Service43
|
|
7
|
+
} from "./event-logger-6tdwvj9c.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./event-logger-jexxy024.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./event-logger-ybhbtxjg.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./event-logger-z07pqspn.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/session/diff.ts
|
|
22
22
|
var exports_diff = {};
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service43;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID5.make(from),
|
|
91
|
+
to: ID5.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service78
|
|
3
|
+
} from "./event-logger-1bry463v.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service68
|
|
6
|
+
} from "./event-logger-p2qeza37.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID3,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service20
|
|
14
|
+
} from "./event-logger-z7ctwqf8.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch2 = {};
|
|
21
|
+
__export(exports_websearch2, {
|
|
22
|
+
Input: () => Input2,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin37,
|
|
25
|
+
WebSearchTool: () => exports_websearch2,
|
|
26
|
+
description: () => description2,
|
|
27
|
+
name: () => name2
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name2 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input2 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID3,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin37 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service68;
|
|
53
|
+
const forms = yield* Service78;
|
|
54
|
+
const websearch = yield* Service20;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name2,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description2,
|
|
59
|
+
input: Input2,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name2,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name2];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name2, NO_RESULTS2, description2, Input2, Plugin37, exports_websearch2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-p2qeza37.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/plan.ts
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin16
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin16 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin16, exports_plan };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/update.ts
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service4,
|
|
13
|
+
node: () => node6
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service4 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service4.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node6 = makeGlobalNode({ service: Service4, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service4, node6, exports_update };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service51
|
|
4
|
+
} from "./event-logger-f27dyjrk.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-logger-qsdy395h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/config/plugin/websearch.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigWebSearchPlugin: () =>
|
|
16
|
-
Plugin: () =>
|
|
13
|
+
var exports_websearch = {};
|
|
14
|
+
__export(exports_websearch, {
|
|
15
|
+
ConfigWebSearchPlugin: () => exports_websearch,
|
|
16
|
+
Plugin: () => Plugin33
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin33 = define({
|
|
21
21
|
id: "opencode.config.websearch",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const config = yield*
|
|
23
|
+
const config = yield* Service51;
|
|
24
24
|
const loaded = yield* observe2(config, ctx.event, ctx.websearch.reload());
|
|
25
25
|
yield* ctx.websearch.transform((websearch) => {
|
|
26
26
|
const selection = latest2(loaded.entries, "websearch");
|
|
@@ -32,4 +32,4 @@ var Plugin32 = define({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Plugin33, exports_websearch };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node83
|
|
4
|
+
} from "./event-logger-fv5sjpfb.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
|
-
|
|
7
|
+
make21,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-s8d7rejh.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/instructions/builtins.ts
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service38,
|
|
19
|
+
node: () => node41
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service38 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service79;
|
|
29
|
+
return Service38.of({
|
|
30
30
|
load: (sessionID) => Effect.succeed(combine2([
|
|
31
|
-
|
|
31
|
+
make21({
|
|
32
32
|
key: Key3.make("core/environment"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: Effect.sync(() => [
|
|
@@ -49,7 +49,7 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
49
49
|
`)
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
|
-
|
|
52
|
+
make21({
|
|
53
53
|
key: Key3.make("core/date"),
|
|
54
54
|
codec: Schema.toCodecJson(Schema.String),
|
|
55
55
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
@@ -61,6 +61,6 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
61
61
|
]))
|
|
62
62
|
});
|
|
63
63
|
}));
|
|
64
|
-
var
|
|
64
|
+
var node41 = makeLocationNode({ service: Service38, layer, deps: [Global.node, node83] });
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service38, node41, exports_builtins };
|