@opencode/core 2.0.21 → 2.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +69 -69
- package/dist/chunks/{job-anp1t542.js → generate-01s90evy.js} +24 -24
- package/dist/chunks/{job-hjrhn7sa.js → generate-01vz176c.js} +13 -13
- package/dist/chunks/{job-gd8pphrc.js → generate-02hj8zpc.js} +1 -1
- package/dist/chunks/{job-1ddmwb72.js → generate-067vzkwc.js} +13 -13
- package/dist/chunks/{job-cezb84g9.js → generate-06wny47j.js} +170 -164
- package/dist/chunks/{job-awtsf2hr.js → generate-0at0q6bk.js} +6 -6
- package/dist/chunks/generate-0j77ygfz.js +25 -0
- package/dist/chunks/{job-vz4zcjem.js → generate-0n25afzx.js} +5 -5
- package/dist/chunks/{job-0paq2nw3.js → generate-0paq2nw3.js} +1 -1
- package/dist/chunks/{job-w85vjd23.js → generate-0q2zy8rk.js} +27 -27
- package/dist/chunks/{job-gv6a8nnw.js → generate-0vbcp93d.js} +2 -2
- package/dist/chunks/{job-35hkzk16.js → generate-0z57cqh9.js} +7 -7
- package/dist/chunks/{job-jeerxax2.js → generate-14qr745v.js} +20 -20
- package/dist/chunks/{job-wpv4xhp3.js → generate-14vr5qa8.js} +26 -15
- package/dist/chunks/{job-pgw42aqy.js → generate-1ader487.js} +8 -8
- package/dist/chunks/{job-1dazxqgg.js → generate-1dazxqgg.js} +2 -2
- package/dist/chunks/{job-94ek1h2f.js → generate-1dvck2a7.js} +2 -2
- package/dist/chunks/{job-80nn28cp.js → generate-1fs3aa3n.js} +11 -11
- package/dist/chunks/{job-73n25p0e.js → generate-1vsafbzv.js} +10 -10
- package/dist/chunks/{job-mfqp6xfm.js → generate-1ygqh575.js} +6 -6
- package/dist/chunks/{job-w6ebfasv.js → generate-1z18ck0n.js} +9 -9
- package/dist/chunks/{job-vdpw8b0t.js → generate-21tjqxxf.js} +11 -11
- package/dist/chunks/{job-jzxd5mvh.js → generate-29x9jy0f.js} +29 -29
- package/dist/chunks/{job-2a5m3afh.js → generate-2a5m3afh.js} +1 -1
- package/dist/chunks/{job-yrznvahk.js → generate-2ccvkpx1.js} +2 -2
- package/dist/chunks/{job-2zhq2a85.js → generate-2pcsyv91.js} +48 -48
- package/dist/chunks/{job-hpg6w38n.js → generate-330q9b0x.js} +33 -37
- package/dist/chunks/{job-2h8w1cfj.js → generate-34bnvpfh.js} +26 -26
- package/dist/chunks/{job-230c54mq.js → generate-34manr0f.js} +12 -12
- package/dist/chunks/{job-w4cz4w8n.js → generate-39k0hmda.js} +2 -2
- package/dist/chunks/{job-amzxah2v.js → generate-3dgfh0cr.js} +39 -39
- package/dist/chunks/{job-5svcwqmc.js → generate-3edgjjmd.js} +55 -30
- package/dist/chunks/{job-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
- package/dist/chunks/{job-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{job-rb7cysfw.js → generate-3j10s7ay.js} +9 -9
- package/dist/chunks/{job-a98nbm3g.js → generate-3q48ekr2.js} +16 -16
- package/dist/chunks/{job-tdhe5xga.js → generate-3rd28rcz.js} +11 -11
- package/dist/chunks/{job-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
- package/dist/chunks/{job-sk3qaz4a.js → generate-3t0ybcrp.js} +58 -20
- package/dist/chunks/{job-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
- package/dist/chunks/{job-7hxgqze9.js → generate-3x5f6s31.js} +61 -83
- package/dist/chunks/{job-3zsf4n22.js → generate-3zsf4n22.js} +1 -1
- package/dist/chunks/{job-deaeaxqh.js → generate-435eggbz.js} +11 -11
- package/dist/chunks/{job-ecfe7b91.js → generate-4eax54pa.js} +6 -3
- package/dist/chunks/{job-z8bzfx2e.js → generate-4kfhygng.js} +37 -37
- package/dist/chunks/{job-ntgtekfh.js → generate-4ntq7m4z.js} +22 -22
- package/dist/chunks/{job-pzvyvyg4.js → generate-529vcnym.js} +17 -19
- package/dist/chunks/{job-54ma36ye.js → generate-54ma36ye.js} +1 -1
- package/dist/chunks/{job-57b9ws8p.js → generate-57b9ws8p.js} +1 -1
- package/dist/chunks/{job-5daktx2q.js → generate-5daktx2q.js} +1 -1
- package/dist/chunks/{job-bg585zsx.js → generate-5kp03ppx.js} +12 -12
- package/dist/chunks/{job-vmgq4x8b.js → generate-5pyjqqve.js} +2 -2
- package/dist/chunks/{job-9gspbefy.js → generate-5swqfww9.js} +52 -26
- package/dist/chunks/{job-5t3nmthw.js → generate-5t3nmthw.js} +2 -2
- package/dist/chunks/{job-ggxahnyx.js → generate-5txw87z1.js} +8 -8
- package/dist/chunks/{job-ynzdndxd.js → generate-5tznt6k3.js} +20 -20
- package/dist/chunks/{job-3vy408b5.js → generate-5v5aasd4.js} +21 -21
- package/dist/chunks/{job-pxz4gc4z.js → generate-5yzz6hd1.js} +24 -132
- package/dist/chunks/{job-dydyxn0c.js → generate-61fzh3cq.js} +8 -8
- package/dist/chunks/{job-669tq793.js → generate-669tq793.js} +1 -1
- package/dist/chunks/{job-h6zqkqnm.js → generate-6cjqe6sy.js} +28 -27
- package/dist/chunks/{job-mjymc32g.js → generate-6m42r3np.js} +21 -21
- package/dist/chunks/{job-4tn3p6ay.js → generate-6nv25w3f.js} +30 -30
- package/dist/chunks/{job-dx8qg5g2.js → generate-6p2526mp.js} +11 -11
- package/dist/chunks/{job-d7semmcg.js → generate-6ywhdf6k.js} +24 -24
- package/dist/chunks/{job-vsq07z0a.js → generate-6zp854ra.js} +3 -3
- package/dist/chunks/{job-ckecvw8r.js → generate-71az546q.js} +2 -2
- package/dist/chunks/{job-73tb2d7t.js → generate-73tb2d7t.js} +1 -1
- package/dist/chunks/{job-kmyvrf53.js → generate-782xyd0k.js} +8 -8
- package/dist/chunks/{job-kgchvb5g.js → generate-7bftgs18.js} +4 -4
- package/dist/chunks/{job-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{job-fcrkznn8.js → generate-7dqw4kz8.js} +5 -5
- package/dist/chunks/{job-hy1na680.js → generate-7keeseff.js} +11 -11
- package/dist/chunks/{job-dah7mteb.js → generate-7naq09xc.js} +20 -20
- package/dist/chunks/{job-00x4qneg.js → generate-7s2tn799.js} +8 -8
- package/dist/chunks/{job-94m5kbhr.js → generate-7xf5yptx.js} +19 -19
- package/dist/chunks/{job-gfctbcth.js → generate-81f48a1k.js} +10 -10
- package/dist/chunks/{job-3r704csb.js → generate-823qfcak.js} +1 -1
- package/dist/chunks/{job-pema4mtg.js → generate-82czg0r8.js} +9 -9
- package/dist/chunks/{job-84txncab.js → generate-84txncab.js} +1 -1
- package/dist/chunks/{job-8d7r5vzw.js → generate-8d7r5vzw.js} +1 -1
- package/dist/chunks/{job-27msewjz.js → generate-8f9gr54c.js} +11 -11
- package/dist/chunks/{job-kfcwqfca.js → generate-8mnpn7jw.js} +49 -49
- package/dist/chunks/{job-0wjxfcep.js → generate-8zvk0rgz.js} +24 -24
- package/dist/chunks/{job-vf68ak62.js → generate-94jj38jg.js} +32 -23
- package/dist/chunks/{job-z07pqspn.js → generate-9e5bzkjp.js} +3 -3
- package/dist/chunks/{job-fnsgkk5v.js → generate-9pvxkkw3.js} +24 -24
- package/dist/chunks/{job-2zp87bs7.js → generate-9pwf6adz.js} +25 -25
- package/dist/chunks/{job-bz7b5t1b.js → generate-9sy6gwjh.js} +12 -6
- package/dist/chunks/{job-aaet6srn.js → generate-aaet6srn.js} +2 -2
- package/dist/chunks/{job-mpk0rfs5.js → generate-addxnjmp.js} +4 -4
- package/dist/chunks/{job-6j9mr40r.js → generate-aer73x3z.js} +15 -15
- package/dist/chunks/{job-e7e40j07.js → generate-afv7vh30.js} +18 -18
- package/dist/chunks/{job-372g89p4.js → generate-ajmxk7z2.js} +23 -24
- package/dist/chunks/{job-c1vmsse5.js → generate-an75rhmh.js} +18 -18
- package/dist/chunks/{job-v6jt2rw3.js → generate-aqdbyk8h.js} +3 -3
- package/dist/chunks/{job-ydesmw24.js → generate-arb3wnqs.js} +8 -8
- package/dist/chunks/{job-3mft5zsr.js → generate-atz6g77g.js} +21 -21
- package/dist/chunks/{job-sxz6gkc3.js → generate-b27vhd2z.js} +7 -7
- package/dist/chunks/{job-b6gygkdw.js → generate-b6gygkdw.js} +2 -2
- package/dist/chunks/{job-7z3v8smk.js → generate-b9rmm35c.js} +10 -10
- package/dist/chunks/{job-21zzzqpe.js → generate-bepbq8jj.js} +15 -15
- package/dist/chunks/{job-8d0p2m37.js → generate-bh5cssh3.js} +6 -6
- package/dist/chunks/{job-x7n7fr05.js → generate-bkrwt1n9.js} +24 -24
- package/dist/chunks/{job-wtmkasd2.js → generate-bp27thah.js} +10 -10
- package/dist/chunks/{job-bype3acy.js → generate-bq4mvesw.js} +32 -32
- package/dist/chunks/{job-kp8q1t60.js → generate-bydnjh3t.js} +8 -8
- package/dist/chunks/{job-a4k5rsdw.js → generate-bzqyrf6j.js} +20 -20
- package/dist/chunks/{job-v6gb7zv2.js → generate-cdm0dq9n.js} +6 -6
- package/dist/chunks/{job-my8d63dw.js → generate-cj02erkw.js} +6 -6
- package/dist/chunks/{job-czfptnv9.js → generate-cmwkp3r5.js} +6 -6
- package/dist/chunks/{job-ed8ee58a.js → generate-d2eqb18p.js} +4 -4
- package/dist/chunks/{job-3wtv6kz3.js → generate-dfc208d8.js} +32 -32
- package/dist/chunks/{job-y71avatq.js → generate-dpkg50ah.js} +4 -4
- package/dist/chunks/{job-vmzrcmtw.js → generate-dwxaxj0c.js} +9 -9
- package/dist/chunks/{job-c3c0cf95.js → generate-e0ne0z26.js} +85 -85
- package/dist/chunks/{job-5qd3pb7m.js → generate-e3qxr5gk.js} +2 -2
- package/dist/chunks/{job-jv8zx4t6.js → generate-ee09rdq3.js} +322 -322
- package/dist/chunks/{job-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
- package/dist/chunks/{job-dyndan9x.js → generate-ejbv3g31.js} +18 -8
- package/dist/chunks/{job-srtvgg2d.js → generate-ejg73w2g.js} +6 -6
- package/dist/chunks/{job-wy2r7fzd.js → generate-eqfn0pk5.js} +33 -38
- package/dist/chunks/{job-etq0c3wd.js → generate-etq0c3wd.js} +1 -1
- package/dist/chunks/{job-bd4hr4wh.js → generate-evhyysd2.js} +33 -33
- package/dist/chunks/{job-dymtghw6.js → generate-exjwxjfq.js} +18 -18
- package/dist/chunks/{job-f50vaec3.js → generate-f5k9xycy.js} +24 -24
- package/dist/chunks/{job-5k4xw9x6.js → generate-fep41vc5.js} +20 -20
- package/dist/chunks/{job-jy3q8cv1.js → generate-ffxkc1dx.js} +13 -13
- package/dist/chunks/{job-2dre8qhb.js → generate-fjh44twp.js} +18 -7
- package/dist/chunks/{job-2ydcz6pr.js → generate-g2xfdbz5.js} +14 -14
- package/dist/chunks/{job-ypqa2cd5.js → generate-g9c3k2sz.js} +32 -40
- package/dist/chunks/{job-97h51v5t.js → generate-gcxxm8yg.js} +39 -27
- package/dist/chunks/{job-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
- package/dist/chunks/{job-p2scykdn.js → generate-gej6rn0s.js} +15 -15
- package/dist/chunks/{job-nq7qbqzc.js → generate-gh5z95q3.js} +9 -9
- package/dist/chunks/{job-ab1ys2yh.js → generate-gjv38h0k.js} +20 -24
- package/dist/chunks/{job-2b6sywcb.js → generate-gk28ph79.js} +10 -10
- package/dist/chunks/{job-krfw28kg.js → generate-gknnw9w7.js} +60 -40
- package/dist/chunks/{job-zr3nw1y0.js → generate-gra2jmjd.js} +5 -5
- package/dist/chunks/{job-hk6cjtaz.js → generate-gtvea8z9.js} +5 -5
- package/dist/chunks/{job-wtj8vade.js → generate-gya1c0vy.js} +3 -3
- package/dist/chunks/{job-wd3x2cqz.js → generate-h2b79v29.js} +2 -2
- package/dist/chunks/{job-vfjhn2wd.js → generate-h6310vsd.js} +4 -4
- package/dist/chunks/{job-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
- package/dist/chunks/{job-v54cehp4.js → generate-h7aewrw9.js} +51 -51
- package/dist/chunks/{job-pt0meat3.js → generate-h9jzhyk0.js} +11 -11
- package/dist/chunks/{job-f29mbr7f.js → generate-h9wp8z5w.js} +4 -4
- package/dist/chunks/{job-2p623br6.js → generate-hbyhqfhs.js} +5 -5
- package/dist/chunks/{job-n7zyc71s.js → generate-hn4yapt1.js} +52 -46
- package/dist/chunks/{job-n8v4y01d.js → generate-hrs38e71.js} +24 -24
- package/dist/chunks/{job-7f5ge08c.js → generate-hyxvh71r.js} +43 -43
- package/dist/chunks/{job-j56e64zr.js → generate-j56e64zr.js} +1 -1
- package/dist/chunks/{job-s2yhstx6.js → generate-j7vp94m4.js} +19 -19
- package/dist/chunks/{job-95f1p06x.js → generate-jb9mn43j.js} +22 -22
- package/dist/chunks/{job-9wcym3xz.js → generate-jjw1xd6n.js} +10 -10
- package/dist/chunks/{job-pyez88hg.js → generate-jmdp6qyf.js} +33 -33
- package/dist/chunks/{job-b4st347k.js → generate-jpep6vf5.js} +3 -3
- package/dist/chunks/{job-xgdw0hys.js → generate-jrw39j1g.js} +14 -9
- package/dist/chunks/{job-brsymgq7.js → generate-k1qrnqst.js} +8 -8
- package/dist/chunks/{job-24ncmqw9.js → generate-k5tx4xwh.js} +15 -15
- package/dist/chunks/{job-pc4b88sv.js → generate-kb6gw2zp.js} +4 -4
- package/dist/chunks/{job-wt6bjq2d.js → generate-kkndcpqr.js} +4 -4
- package/dist/chunks/{job-rc8j1xt1.js → generate-kygz6673.js} +5 -5
- package/dist/chunks/{job-d1a9hefb.js → generate-m26jacn4.js} +12 -12
- package/dist/chunks/{job-m3fdjcah.js → generate-m3fdjcah.js} +1 -1
- package/dist/chunks/{job-ma9c1wd2.js → generate-m4b4ezfy.js} +14 -14
- package/dist/chunks/{job-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{job-dq0v80fr.js → generate-mjqndqed.js} +5 -5
- package/dist/chunks/{job-g0tt42na.js → generate-mmy17vwk.js} +7 -7
- package/dist/chunks/{job-gva2p7bf.js → generate-mt68kget.js} +26 -26
- package/dist/chunks/generate-mzmyqq3a.js +253 -0
- package/dist/chunks/{job-2sv4arh8.js → generate-n5gzjg8d.js} +13 -13
- package/dist/chunks/{job-bxfy3ep7.js → generate-n7fmmpds.js} +11 -11
- package/dist/chunks/{job-b9fqpfm8.js → generate-n92tnbgp.js} +3 -3
- package/dist/chunks/{job-k9rsy0a9.js → generate-ntev6yqw.js} +12 -12
- package/dist/chunks/{job-wygg9rvv.js → generate-ntmn2n27.js} +17 -17
- package/dist/chunks/{job-kftb8sdn.js → generate-nwgjszw0.js} +15 -15
- package/dist/chunks/{job-4dyf21mr.js → generate-nyhzf7s9.js} +20 -20
- package/dist/chunks/{job-ykd9stzd.js → generate-nz1ptcx7.js} +12 -12
- package/dist/chunks/{job-1mdp675b.js → generate-p5cm9qbj.js} +19 -9
- package/dist/chunks/{job-2sf5vtpp.js → generate-pd0d3v86.js} +11 -11
- package/dist/chunks/{job-fmzghwgw.js → generate-peckcdzj.js} +13 -13
- package/dist/chunks/{job-bcf9qfhy.js → generate-pfh2gawv.js} +11 -11
- package/dist/chunks/generate-phz3h32g.js +18 -0
- package/dist/chunks/{job-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
- package/dist/chunks/{job-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{job-jk9p3pr1.js → generate-ppcxd43r.js} +14 -14
- package/dist/chunks/{job-5aa0r02j.js → generate-pvkpwa2b.js} +18 -11
- package/dist/chunks/{job-48c763ft.js → generate-pxhak851.js} +6 -6
- package/dist/chunks/{job-t62vap4r.js → generate-q0808tka.js} +5 -5
- package/dist/chunks/{job-pdpyt1kt.js → generate-q0jhbe3n.js} +9 -9
- package/dist/chunks/{job-0tmgye68.js → generate-q0raz0xt.js} +9 -9
- package/dist/chunks/{job-htjw9qza.js → generate-q3ersh05.js} +6 -6
- package/dist/chunks/{job-7t9gt51b.js → generate-qb7y9a6p.js} +13 -13
- package/dist/chunks/{job-8k2kc9ag.js → generate-qbyggmx7.js} +7 -7
- package/dist/chunks/{job-0ptd10ac.js → generate-qgatrawj.js} +11 -11
- package/dist/chunks/{job-rey5gbxv.js → generate-qmqgtz8f.js} +9 -9
- package/dist/chunks/{job-6msgmcgs.js → generate-qnc92qwc.js} +1 -1
- package/dist/chunks/{job-egadbg92.js → generate-qq54afgs.js} +13 -13
- package/dist/chunks/{job-y083drbn.js → generate-qs9jyzer.js} +5 -5
- package/dist/chunks/{job-qsdy395h.js → generate-qsdy395h.js} +1 -1
- package/dist/chunks/{job-qwjmgwmn.js → generate-qwjmgwmn.js} +1 -1
- package/dist/chunks/{job-nzks3jc8.js → generate-qxjc9qry.js} +4 -4
- package/dist/chunks/{job-x5y9z3y2.js → generate-r7pm0y1x.js} +24 -24
- package/dist/chunks/{job-rdw6cm16.js → generate-rdw6cm16.js} +1 -1
- package/dist/chunks/{job-5cmqbqwp.js → generate-rh2b0agp.js} +15 -15
- package/dist/chunks/{job-c9x0wrsc.js → generate-rpztatg6.js} +16 -16
- package/dist/chunks/{job-qp7xcb4s.js → generate-rv4s02rg.js} +15 -15
- package/dist/chunks/{job-2erysbps.js → generate-s3pcx2b8.js} +10 -10
- package/dist/chunks/{job-rhjbct0v.js → generate-s8d7rejh.js} +4 -4
- package/dist/chunks/{job-xvp1j2dc.js → generate-scgrse2b.js} +11 -6
- package/dist/chunks/{job-c248vghb.js → generate-sgpy7nbp.js} +16 -16
- package/dist/chunks/{job-tbtg7k2g.js → generate-spja3q52.js} +24 -24
- package/dist/chunks/{job-n4szqbm8.js → generate-stnmwbvn.js} +42 -42
- package/dist/chunks/{job-nrk5vjbf.js → generate-t0sqncza.js} +5 -5
- package/dist/chunks/{job-zee1rnkq.js → generate-t2az9yje.js} +4 -4
- package/dist/chunks/{job-f09mb087.js → generate-t3cgces8.js} +40 -40
- package/dist/chunks/{job-8j5tm5td.js → generate-t55xhmjx.js} +32 -32
- package/dist/chunks/{job-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
- package/dist/chunks/{job-zayhf9qs.js → generate-tbp0qxg2.js} +26 -26
- package/dist/chunks/generate-tc5sgnzb.js +26 -0
- package/dist/chunks/{job-tcezcvh9.js → generate-tcezcvh9.js} +1 -1
- package/dist/chunks/{job-tdstcens.js → generate-tdstcens.js} +1 -1
- package/dist/chunks/{job-4h23kj6w.js → generate-te8w5cgp.js} +13 -13
- package/dist/chunks/{job-5nnetc6k.js → generate-thtzhryg.js} +5 -5
- package/dist/chunks/{job-hp7jr1jp.js → generate-trc3n3qb.js} +15 -15
- package/dist/chunks/{job-57ez7d0k.js → generate-v0es1rhs.js} +5 -5
- package/dist/chunks/{job-rwtjgree.js → generate-v1rqtb9w.js} +16 -16
- package/dist/chunks/{job-msknqe7y.js → generate-v1v20ddn.js} +6 -6
- package/dist/chunks/{job-80scg3y3.js → generate-vbfgae2j.js} +4 -4
- package/dist/chunks/{job-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{job-sgsdap7d.js → generate-vnh00gv4.js} +21 -21
- package/dist/chunks/{job-7h2raa0m.js → generate-vswtd384.js} +15 -15
- package/dist/chunks/{job-5cmxdwv8.js → generate-vx3jgdek.js} +3 -3
- package/dist/chunks/{job-vzcthcp8.js → generate-vzcthcp8.js} +1 -1
- package/dist/chunks/{job-vzs5sf6e.js → generate-vzs5sf6e.js} +1 -1
- package/dist/chunks/{job-2w5dyyz8.js → generate-w1ad28wa.js} +5 -5
- package/dist/chunks/{job-nxhqveyz.js → generate-w2h15q85.js} +5 -5
- package/dist/chunks/{job-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{job-a7yhm3z2.js → generate-w8vdqaq3.js} +25 -25
- package/dist/chunks/{job-1p07q0wb.js → generate-w92k2e0p.js} +6 -6
- package/dist/chunks/{job-xp9nh6c1.js → generate-wc2m80g2.js} +39 -50
- package/dist/chunks/{job-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{job-eqrfnj34.js → generate-wdshzat6.js} +40 -17
- package/dist/chunks/{job-79dvcba4.js → generate-wg7dvnk1.js} +84 -84
- package/dist/chunks/{job-7mx9kf16.js → generate-wj2bx7an.js} +11 -11
- package/dist/chunks/{job-bnc1xqpd.js → generate-wrp5ry2f.js} +15 -15
- package/dist/chunks/{job-8pwpezbf.js → generate-x0y04rr6.js} +24 -24
- package/dist/chunks/{job-x1ezjp6w.js → generate-x1ezjp6w.js} +1 -1
- package/dist/chunks/{job-81z9xrjy.js → generate-x4csn5yb.js} +19 -19
- package/dist/chunks/{job-vk5bz9xj.js → generate-xer3snnb.js} +8 -8
- package/dist/chunks/{job-tq0ersfe.js → generate-xf4rrgwy.js} +24 -24
- package/dist/chunks/{job-bxzpjmy4.js → generate-xgaq9ax1.js} +20 -21
- package/dist/chunks/{job-xkntkrq7.js → generate-xkntkrq7.js} +2 -2
- package/dist/chunks/{job-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
- package/dist/chunks/{job-wm3q5ckg.js → generate-y5pnfqkr.js} +20 -20
- package/dist/chunks/{job-321mahy6.js → generate-y8zbdhhn.js} +34 -34
- package/dist/chunks/{job-txbrvd03.js → generate-yfxkm5w6.js} +68 -52
- package/dist/chunks/{job-frdvpnjn.js → generate-yhecr6n4.js} +5 -5
- package/dist/chunks/{job-r8xr0va3.js → generate-yp2x3t23.js} +4 -4
- package/dist/chunks/{job-0cmgxwc3.js → generate-ywacswhv.js} +11 -11
- package/dist/chunks/{job-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{job-dncx4ycs.js → generate-z15fp2pm.js} +5 -5
- package/dist/chunks/{job-2jb1f61f.js → generate-z32f8zps.js} +9 -9
- package/dist/chunks/{job-dr2s0fjn.js → generate-z3507kbh.js} +15 -15
- package/dist/chunks/{job-qje3r2wc.js → generate-z3ra53tp.js} +3 -3
- package/dist/chunks/{job-922hggd3.js → generate-z5v4ffb3.js} +1 -11
- package/dist/chunks/{job-x01dckpp.js → generate-z872cvkj.js} +20 -20
- package/dist/chunks/{job-vdqv4tww.js → generate-z8hrkqzq.js} +4 -4
- package/dist/chunks/{job-j543e7zy.js → generate-ze7rj9cq.js} +11 -11
- package/dist/chunks/{job-mvksx64m.js → generate-zfs8ae4p.js} +4 -4
- package/dist/chunks/{job-qn4ba14w.js → generate-zmr78fwr.js} +5 -5
- package/dist/chunks/{job-rk1r2hx8.js → generate-znsx74x0.js} +1 -1
- package/dist/chunks/generate-zp2fsh7c.js +381 -0
- package/dist/chunks/{job-mn6n0y1n.js → generate-zpzjyv2k.js} +16 -16
- package/dist/chunks/{job-mjphe00w.js → generate-zq24ypn2.js} +30 -30
- package/dist/chunks/{job-m0p8cpk7.js → generate-zqkxpfgh.js} +69 -69
- package/dist/chunks/{job-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
- package/dist/chunks/{job-bx0gng0c.js → generate-zwhxpsnh.js} +17 -17
- package/dist/chunks/{job-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
- 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 +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -106
- package/dist/config/plugin/agent.js +118 -125
- package/dist/config/plugin/command.js +207 -215
- package/dist/config/plugin/compaction.js +154 -161
- package/dist/config/plugin/compatibility.js +134 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -124
- package/dist/config/plugin/image.js +116 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -123
- package/dist/config/plugin/mcp.js +125 -132
- package/dist/config/plugin/policy.js +117 -124
- package/dist/config/plugin/provider.js +116 -123
- package/dist/config/plugin/reference.js +118 -125
- package/dist/config/plugin/shell.js +116 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -144
- package/dist/config/plugin/snapshot.js +116 -123
- package/dist/config/plugin/source.js +119 -126
- package/dist/config/plugin/tool-output.js +117 -125
- package/dist/config/plugin/websearch.js +115 -122
- package/dist/config/plugin/worktree.js +118 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -372
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +214 -222
- 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 +108 -104
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- 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 +18 -20
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -363
- package/dist/instruction-discovery.js +81 -81
- 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 +85 -85
- package/dist/job.js +78 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -360
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +137 -106
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +100 -98
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +3 -1
- package/dist/persistent-pty/binary.node.js +2 -0
- package/dist/persistent-pty/binary.workerd.js +2 -0
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +83 -81
- 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 +102 -102
- package/dist/plugin/hooks.js +1 -1
- package/dist/plugin/host.js +213 -221
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +326 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +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 +118 -123
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -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 +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -122
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -122
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -163
- package/dist/plugin/sdk.js +72 -72
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -354
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -121
- package/dist/plugin/websearch/exa.js +5 -5
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +214 -222
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +104 -98
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- 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 +86 -86
- package/dist/schema.js +2 -4
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -222
- package/dist/session/execution.js +127 -128
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -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 -93
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -170
- package/dist/session/shell.js +130 -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 +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -211
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +114 -112
- package/dist/session/transfer.js +207 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -219
- 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 +132 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -216
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +210 -218
- package/dist/tool/plugin/webfetch.js +106 -106
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +9 -8
- package/dist/tool.js +14 -14
- package/dist/types/agent.d.ts +2 -1
- package/dist/types/filesystem.d.ts +15 -1
- package/dist/types/github-copilot/copilot-provider.d.ts +0 -1
- package/dist/types/instance/service.d.ts +2 -2
- package/dist/types/instance.d.ts +3 -3
- package/dist/types/job.d.ts +1 -1
- package/dist/types/location-service-map.d.ts +3 -3
- package/dist/types/mcp/client.d.ts +2 -2
- package/dist/types/model-resolver.d.ts +2 -2
- package/dist/types/model.d.ts +6 -0
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -0
- package/dist/types/persistent-pty/binary.node.d.ts +1 -0
- package/dist/types/persistent-pty/binary.workerd.d.ts +1 -0
- package/dist/types/persistent-pty/daemon.d.ts +4 -4
- package/dist/types/persistent-pty/index.d.ts +3 -0
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +7 -1
- package/dist/types/plugin/supervisor.d.ts +1 -1
- package/dist/types/provider.d.ts +19 -5
- package/dist/types/schema.d.ts +0 -21
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +4 -1
- package/dist/types/session/diff.d.ts +2 -2
- package/dist/types/session/generate.d.ts +3 -2
- package/dist/types/session/model-transport.d.ts +1 -1
- package/dist/types/session/prompt.d.ts +1 -1
- package/dist/types/session/revert.d.ts +2 -3
- package/dist/types/session/runner/index.d.ts +2 -1
- package/dist/types/session/session.d.ts +5 -5
- package/dist/types/session/shell.d.ts +1 -1
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +2 -0
- package/dist/types/session/transfer.d.ts +2 -3
- package/dist/types/session.d.ts +5 -4
- package/dist/types/tool-output.d.ts +1 -0
- package/dist/types/v1/config/error.d.ts +48 -1433
- package/dist/types/v1/config/migrate.d.ts +15 -318
- package/dist/types/vcs.d.ts +6 -0
- package/dist/types/worktree.d.ts +2 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +5 -13
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +96 -96
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -89
- package/dist/websearch.js +78 -78
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +10 -11
- package/dist/chunks/job-00z3vp5f.js +0 -21
- package/dist/chunks/job-21r38tys.js +0 -14
- package/dist/chunks/job-23pqda6t.js +0 -84
- package/dist/chunks/job-3e147rt9.js +0 -21
- package/dist/chunks/job-3v8rp85y.js +0 -252
- package/dist/chunks/job-8db6vkjt.js +0 -223
- package/dist/chunks/job-8dbeyrdc.js +0 -26
- package/dist/chunks/job-ht5y0zrb.js +0 -18
- package/dist/chunks/job-jmvgh3qv.js +0 -194
- package/dist/chunks/job-tn0aqsam.js +0 -34
- package/dist/chunks/job-tvtrv512.js +0 -51
- package/dist/chunks/job-yrhqyw5v.js +0 -15
- package/dist/chunks/job-z63w68vq.js +0 -46
- package/dist/chunks/job-zeh9ct20.js +0 -29
- package/dist/filesystem/ignore.js +0 -58
- package/dist/id/id.js +0 -14
- package/dist/plugin/provider/venice.js +0 -7
- package/dist/types/filesystem/ignore.d.ts +0 -2
- package/dist/types/id/id.d.ts +0 -19
- package/dist/types/plugin/provider/venice.d.ts +0 -1
- package/dist/types/util/identifier.d.ts +0 -1
- package/dist/types/v1/config/attachment.d.ts +0 -18
- package/dist/types/v1/config/config.d.ts +0 -1243
- package/dist/types/v1/config/formatter.d.ts +0 -15
- package/dist/types/v1/config/layout.d.ts +0 -4
- package/dist/types/v1/config/lsp.d.ts +0 -38
- package/dist/types/v1/config/server.d.ts +0 -10
- package/dist/types/v1/config/skills.d.ts +0 -7
- package/dist/types/v1/permission.d.ts +0 -27
- package/dist/util/identifier.js +0 -5
- package/dist/v1/config/attachment.js +0 -11
- package/dist/v1/config/config.js +0 -23
- package/dist/v1/config/formatter.js +0 -10
- package/dist/v1/config/layout.js +0 -8
- package/dist/v1/config/lsp.js +0 -16
- package/dist/v1/config/server.js +0 -9
- package/dist/v1/config/skills.js +0 -8
- package/dist/v1/permission.js +0 -51
- /package/dist/chunks/{job-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{job-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{job-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{job-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{job-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{job-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{job-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{job-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
- /package/dist/chunks/{job-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{job-34c7v6d4.js → generate-34c7v6d4.js} +0 -0
- /package/dist/chunks/{job-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{job-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{job-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{job-3w5fmr99.js → generate-3w5fmr99.js} +0 -0
- /package/dist/chunks/{job-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{job-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{job-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{job-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{job-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{job-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{job-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{job-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{job-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{job-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{job-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{job-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{job-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{job-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{job-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{job-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{job-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{job-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{job-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{job-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{job-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{job-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{job-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{job-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{job-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{job-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{job-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{job-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{job-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{job-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{job-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{job-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{job-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{job-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{job-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{job-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{job-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{job-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{job-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{job-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{job-fxgpk5d8.js → generate-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{job-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{job-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{job-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{job-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{job-hjbc5kem.js → generate-hjbc5kem.js} +0 -0
- /package/dist/chunks/{job-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{job-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{job-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{job-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{job-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{job-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{job-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{job-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{job-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{job-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{job-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{job-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{job-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{job-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{job-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{job-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{job-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{job-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{job-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{job-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{job-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{job-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{job-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{job-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{job-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{job-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{job-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{job-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{job-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{job-y8cydn3q.js → generate-y8cydn3q.js} +0 -0
- /package/dist/chunks/{job-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{job-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{job-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{job-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83,
|
|
6
6
|
node87
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-z8hrkqzq.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service78,
|
|
11
|
+
node82
|
|
12
|
+
} from "./generate-spja3q52.js";
|
|
13
13
|
import {
|
|
14
14
|
Service80,
|
|
15
15
|
node84
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./generate-yhecr6n4.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service66,
|
|
19
|
+
node69
|
|
20
|
+
} from "./generate-5v5aasd4.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID16,
|
|
23
|
+
Service79,
|
|
24
|
+
node83
|
|
25
|
+
} from "./generate-z872cvkj.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./generate-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service77,
|
|
34
|
+
node81
|
|
35
|
+
} from "./generate-r7pm0y1x.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./generate-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError3,
|
|
45
|
+
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service30,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured4,
|
|
56
|
+
layer: () => layer14,
|
|
57
|
+
node: () => node33
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -86,26 +86,38 @@ class ToolCallError2 extends Schema.TaggedError()("MCP.ToolCallError", {
|
|
|
86
86
|
message: Schema.String
|
|
87
87
|
}) {
|
|
88
88
|
}
|
|
89
|
+
var unavailable = (server, status) => {
|
|
90
|
+
switch (status.status) {
|
|
91
|
+
case "failed":
|
|
92
|
+
return `MCP server "${server}" is not connected: ${status.error}. Reconnect it from /mcps.`;
|
|
93
|
+
case "needs_auth":
|
|
94
|
+
return `MCP server "${server}" needs authentication: ${status.error}. Sign in from /mcps.`;
|
|
95
|
+
case "disabled":
|
|
96
|
+
return `MCP server "${server}" is disabled.`;
|
|
97
|
+
default:
|
|
98
|
+
return `MCP server "${server}" is not connected.`;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
89
101
|
var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
90
102
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
91
103
|
var endpointLoads = makeUnsafe2();
|
|
92
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
93
105
|
|
|
94
|
-
class
|
|
106
|
+
class Service30 extends Context.Service()("@opencode/MCP") {
|
|
95
107
|
}
|
|
96
|
-
var
|
|
108
|
+
var Options4 = Schema.Struct({
|
|
97
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
98
110
|
name: Schema.String,
|
|
99
111
|
version: Schema.String
|
|
100
112
|
}))
|
|
101
113
|
});
|
|
102
|
-
var
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
103
115
|
const location = yield* Service80;
|
|
104
|
-
const environment = yield*
|
|
116
|
+
const environment = yield* Service66;
|
|
105
117
|
const bus = yield* Service83;
|
|
106
|
-
const forms = yield*
|
|
107
|
-
const integration = yield*
|
|
108
|
-
const credentials = yield*
|
|
118
|
+
const forms = yield* Service79;
|
|
119
|
+
const integration = yield* Service77;
|
|
120
|
+
const credentials = yield* Service78;
|
|
109
121
|
const root = yield* Effect.scope;
|
|
110
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
111
123
|
const entries = new Map;
|
|
@@ -117,7 +129,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
117
129
|
return;
|
|
118
130
|
const remote = entry.config;
|
|
119
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
120
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID14.make(suffix);
|
|
121
133
|
entry.integrationID = integrationID;
|
|
122
134
|
owned.add(integrationID);
|
|
123
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -133,7 +145,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
133
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
134
146
|
authorize: () => Effect.gen(function* () {
|
|
135
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
136
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service78, credentials));
|
|
137
149
|
})
|
|
138
150
|
});
|
|
139
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -142,19 +154,19 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
142
154
|
const name = ServerName2.make(server);
|
|
143
155
|
const entry = entries.get(name);
|
|
144
156
|
if (!entry)
|
|
145
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError3({ server: name });
|
|
146
158
|
return { name, entry };
|
|
147
159
|
});
|
|
148
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
149
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
150
162
|
return;
|
|
151
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
152
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service78, credentials));
|
|
153
165
|
});
|
|
154
166
|
const elicitation = {
|
|
155
167
|
create: (input) => Effect.gen(function* () {
|
|
156
168
|
if (input.params.mode === "url") {
|
|
157
|
-
const formID =
|
|
169
|
+
const formID = ID16.create();
|
|
158
170
|
const elicitationID = input.params.elicitationId;
|
|
159
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
160
172
|
if (key)
|
|
@@ -240,8 +252,8 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
240
252
|
})));
|
|
241
253
|
const watch = (name, entry, connection) => {
|
|
242
254
|
const live = whenLive(name, entry, connection);
|
|
243
|
-
connection.onClose(() => live(Effect.gen(function* () {
|
|
244
|
-
entry.status = { status: "failed", error:
|
|
255
|
+
connection.onClose((reason) => live(Effect.gen(function* () {
|
|
256
|
+
entry.status = { status: "failed", error: reason };
|
|
245
257
|
yield* stopServer(name, entry);
|
|
246
258
|
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
247
259
|
})));
|
|
@@ -257,7 +269,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
257
269
|
entry.scope = scope;
|
|
258
270
|
const authProvider = yield* connectProvider(entry);
|
|
259
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
260
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service66, environment), Scope.provide(scope));
|
|
261
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
262
274
|
if (Exit.isSuccess(result)) {
|
|
263
275
|
entry.client = result.value.connection;
|
|
@@ -382,7 +394,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
382
394
|
yield* startServer(name, entry);
|
|
383
395
|
}).pipe(locks.withLock(name));
|
|
384
396
|
});
|
|
385
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
386
398
|
const state = create3({
|
|
387
399
|
name: "mcp",
|
|
388
400
|
initial: () => ({
|
|
@@ -408,7 +420,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
408
420
|
}),
|
|
409
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
410
422
|
});
|
|
411
|
-
return
|
|
423
|
+
return Service30.of({
|
|
412
424
|
transform: state.transform,
|
|
413
425
|
reload: state.reload,
|
|
414
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -452,9 +464,13 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
452
464
|
return yield* new ToolCallError2({
|
|
453
465
|
server: target.name,
|
|
454
466
|
tool: input.name,
|
|
455
|
-
message:
|
|
467
|
+
message: unavailable(target.name, target.entry.status)
|
|
456
468
|
});
|
|
457
|
-
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
|
|
469
|
+
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
|
|
470
|
+
server: target.name,
|
|
471
|
+
tool: input.name,
|
|
472
|
+
message: `MCP tool "${input.name}" on server "${target.name}" failed: ${error.message}`
|
|
473
|
+
})));
|
|
458
474
|
return { ...result, server: target.name, tool: input.name };
|
|
459
475
|
}),
|
|
460
476
|
instructions: Effect.fn("MCP.instructions")(function* () {
|
|
@@ -514,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
514
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
515
531
|
});
|
|
516
532
|
}
|
|
517
|
-
function
|
|
533
|
+
function configured4(options) {
|
|
518
534
|
return makeLocationNode({
|
|
519
|
-
service:
|
|
520
|
-
layer:
|
|
521
|
-
deps: [node84,
|
|
535
|
+
service: Service30,
|
|
536
|
+
layer: layer14(options),
|
|
537
|
+
deps: [node84, node69, node87, node83, node81, node82]
|
|
522
538
|
});
|
|
523
539
|
}
|
|
524
|
-
var
|
|
540
|
+
var node33 = configured4();
|
|
525
541
|
function toElicitationField(key, property, required) {
|
|
526
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
527
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -572,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
572
588
|
}
|
|
573
589
|
}
|
|
574
590
|
|
|
575
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2, Service30, Options4, layer14, configured4, node33, exports_mcp4 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-ntev6yqw.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
11
11
|
__export(exports_location, {
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info27,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref4,
|
|
15
15
|
Service: () => Service80,
|
|
@@ -18,7 +18,7 @@ __export(exports_location, {
|
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
|
-
import { Info as
|
|
21
|
+
import { Info as Info27, Ref as Ref4, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
24
|
class Service80 extends Context.Service()("@opencode/Location") {
|
|
@@ -40,4 +40,4 @@ var boundNode2 = (ref) => makeLocationNode({
|
|
|
40
40
|
deps: [node85]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { Info27, Ref4, response2, Service80, node84, boundNode2, exports_location };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/run-coordinator.ts
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make16
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make16 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -89,4 +89,4 @@ var make18 = (options) => Effect.gen(function* () {
|
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
export {
|
|
92
|
+
export { make16, exports_run_coordinator };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service64
|
|
3
|
+
} from "./generate-9pvxkkw3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service63
|
|
6
|
+
} from "./generate-t3cgces8.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-pvkpwa2b.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./generate-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/compatibility.ts
|
|
15
15
|
var exports_compatibility = {};
|
|
16
16
|
__export(exports_compatibility, {
|
|
17
17
|
ConfigCompatibilityPlugin: () => exports_compatibility,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin34
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
24
|
-
var
|
|
24
|
+
var Plugin34 = define({
|
|
25
25
|
id: "opencode.config.compatibility",
|
|
26
26
|
effect: Effect.fn(function* (ctx) {
|
|
27
|
-
const config = yield*
|
|
27
|
+
const config = yield* Service63;
|
|
28
28
|
const fs = yield* FSUtil.Service;
|
|
29
|
-
const watcher = yield*
|
|
29
|
+
const watcher = yield* Service64;
|
|
30
30
|
const watches = yield* FiberMap.make();
|
|
31
31
|
const changes = yield* PubSub.sliding(1);
|
|
32
32
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -73,4 +73,4 @@ var Plugin17 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Plugin34, exports_compatibility };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./generate-3edgjjmd.js";
|
|
4
4
|
import {
|
|
5
5
|
iife2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-1kg9ymc8.js";
|
|
7
7
|
import {
|
|
8
8
|
configuredSettings2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-0at0q6bk.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
14
14
|
import { Form } from "@opencode/schema/form";
|
|
15
|
-
var providerID =
|
|
15
|
+
var providerID = ID13.make("cloudflare-workers-ai");
|
|
16
16
|
var CloudflareWorkersAIPlugin2 = define({
|
|
17
17
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service35
|
|
3
|
+
} from "./generate-cdm0dq9n.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-phz3h32g.js";
|
|
7
7
|
import {
|
|
8
8
|
SkillNotFoundError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-1z18ck0n.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service56
|
|
12
|
+
} from "./generate-bkrwt1n9.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/skill.ts
|
|
18
18
|
var exports_skill4 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_skill4, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var get4 = Effect.fn("SessionSkill.get")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const skills = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service35;
|
|
26
|
+
const skills = yield* awaitActivation2.pipe(Effect.andThen(Service56), instances.provide(input.session));
|
|
27
27
|
const skill = yield* skills.get(input.skill);
|
|
28
28
|
if (!skill)
|
|
29
29
|
return yield* new SkillNotFoundError2({ skill: input.skill });
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
ascending2
|
|
6
|
-
} from "./job-tvtrv512.js";
|
|
3
|
+
} from "./generate-gd4qta3r.js";
|
|
7
4
|
import {
|
|
8
5
|
create3
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./generate-rdw6cm16.js";
|
|
10
7
|
import {
|
|
11
8
|
__export
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./generate-9rqn6x4v.js";
|
|
13
10
|
|
|
14
11
|
// src/tool-output.ts
|
|
15
12
|
var exports_tool_output2 = {};
|
|
@@ -18,27 +15,30 @@ __export(exports_tool_output2, {
|
|
|
18
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
16
|
MAX_LINES: () => MAX_LINES2,
|
|
20
17
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
18
|
+
Service: () => Service67,
|
|
22
19
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
|
|
20
|
+
fileName: () => fileName2,
|
|
21
|
+
node: () => node70
|
|
24
22
|
});
|
|
25
23
|
import path from "path";
|
|
26
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
27
25
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
28
26
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
27
|
import { Global } from "@opencode/util/global";
|
|
28
|
+
import { Identifier } from "@opencode/schema/identifier";
|
|
30
29
|
var MAX_LINES2 = 2000;
|
|
31
30
|
var MAX_BYTES2 = 50 * 1024;
|
|
32
31
|
var RETENTION3 = Duration.days(7);
|
|
33
32
|
var DIRECTORY3 = "tool-output";
|
|
33
|
+
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service67 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -78,7 +78,7 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
78
78
|
kept.push(line);
|
|
79
79
|
bytes += size;
|
|
80
80
|
}
|
|
81
|
-
const file = path.join(directory,
|
|
81
|
+
const file = path.join(directory, fileName2());
|
|
82
82
|
yield* fs.ensureDir(directory).pipe(Effect.orDie);
|
|
83
83
|
yield* fs.writeFileString(file, text).pipe(Effect.orDie);
|
|
84
84
|
const shown = kept.length > 0 ? `lines 1-${kept.length}` : "0 lines";
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service67.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node70 = makeLocationNode({
|
|
137
|
+
service: Service67,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service67, node70, exports_tool_output2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-2pcsyv91.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-34c7v6d4.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/schema.ts
|
|
2
|
-
import { Schema } from "effect";
|
|
3
2
|
import {
|
|
4
3
|
AbsolutePath as AbsolutePath2,
|
|
5
4
|
DateTimeUtcFromMillis as DateTimeUtcFromMillis2,
|
|
@@ -9,13 +8,4 @@ import {
|
|
|
9
8
|
RelativePath as RelativePath2,
|
|
10
9
|
statics as statics2
|
|
11
10
|
} from "@opencode/schema/schema";
|
|
12
|
-
|
|
13
|
-
return (tag, schema) => {
|
|
14
|
-
class Base {
|
|
15
|
-
}
|
|
16
|
-
Object.setPrototypeOf(Base, schema.pipe(Schema.brand(tag)));
|
|
17
|
-
return Base;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { AbsolutePath2, DateTimeUtcFromMillis2, NonNegativeInt2, optional2, PositiveInt2, RelativePath2, statics2, Newtype2 };
|
|
11
|
+
export { AbsolutePath2, DateTimeUtcFromMillis2, NonNegativeInt2, optional2, PositiveInt2, RelativePath2, statics2 };
|