@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
|
@@ -2,35 +2,35 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./generate-z8hrkqzq.js";
|
|
6
6
|
import {
|
|
7
7
|
Key3,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make21,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./generate-s8d7rejh.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-z5v4ffb3.js";
|
|
16
16
|
import {
|
|
17
17
|
create3
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-rdw6cm16.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./generate-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/instruction-discovery.ts
|
|
24
24
|
var exports_instruction_discovery = {};
|
|
25
25
|
__export(exports_instruction_discovery, {
|
|
26
|
-
Event: () =>
|
|
26
|
+
Event: () => Event8,
|
|
27
27
|
File: () => File2,
|
|
28
28
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
29
29
|
Options: () => Options6,
|
|
30
|
-
Service: () =>
|
|
30
|
+
Service: () => Service47,
|
|
31
31
|
configured: () => configured7,
|
|
32
|
-
layer: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
layer: () => layer20,
|
|
33
|
+
node: () => node50
|
|
34
34
|
});
|
|
35
35
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -42,7 +42,7 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
42
42
|
}
|
|
43
43
|
var Files = Schema.Array(File2);
|
|
44
44
|
var key = Key3.make("core/instructions");
|
|
45
|
-
var
|
|
45
|
+
var Event8 = {
|
|
46
46
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
47
47
|
};
|
|
48
48
|
var Options6 = Schema.Struct({
|
|
@@ -50,9 +50,9 @@ var Options6 = Schema.Struct({
|
|
|
50
50
|
global: Schema.optional(Schema.Boolean)
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service47 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
54
54
|
}
|
|
55
|
-
var
|
|
55
|
+
var layer20 = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service83;
|
|
57
57
|
const state = create3({
|
|
58
58
|
name: "instruction-discovery",
|
|
@@ -72,9 +72,9 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
72
72
|
editor.available = false;
|
|
73
73
|
}
|
|
74
74
|
}),
|
|
75
|
-
notify: () => bus.publish(
|
|
75
|
+
notify: () => bus.publish(Event8.Updated, {}).pipe(Effect.asVoid)
|
|
76
76
|
});
|
|
77
|
-
const source = (value) =>
|
|
77
|
+
const source = (value) => make21({
|
|
78
78
|
key,
|
|
79
79
|
codec: Schema.toCodecJson(Files),
|
|
80
80
|
read: Effect.succeed(value),
|
|
@@ -90,7 +90,7 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
90
90
|
return unavailable3;
|
|
91
91
|
return Array.from(current.files.values());
|
|
92
92
|
});
|
|
93
|
-
return
|
|
93
|
+
return Service47.of({
|
|
94
94
|
project: options?.project !== false,
|
|
95
95
|
global: options?.global !== false,
|
|
96
96
|
transform: state.transform,
|
|
@@ -106,12 +106,12 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
106
106
|
}));
|
|
107
107
|
function configured7(options) {
|
|
108
108
|
return makeLocationNode({
|
|
109
|
-
service:
|
|
110
|
-
layer:
|
|
109
|
+
service: Service47,
|
|
110
|
+
layer: layer20(options),
|
|
111
111
|
deps: [node87]
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
var
|
|
114
|
+
var node50 = configured7();
|
|
115
115
|
function render(files) {
|
|
116
116
|
return files.map((file) => `Instructions from: ${file.path}
|
|
117
117
|
${file.content}`).join(`
|
|
@@ -142,4 +142,4 @@ ${render([after])}`;
|
|
|
142
142
|
`);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export { File2,
|
|
145
|
+
export { File2, Event8, Options6, Service47, layer20, configured7, node50, exports_instruction_discovery };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service27,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer12,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node30
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
19
19
|
} from "@opencode/ai/route";
|
|
20
20
|
import { AIError, AIErrorReason, TransportError } from "@opencode/ai";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
import { Cause, Clock, Context, Effect, Fiber, Layer, Metric, Queue, Scope, Semaphore, Stream } from "effect";
|
|
22
|
+
import { Cause, Clock, Context, Duration, Effect, Fiber, Layer, Metric, Queue, Scope, Semaphore, Stream } from "effect";
|
|
23
23
|
import { Headers } from "effect/unstable/http";
|
|
24
24
|
import { Socket } from "effect/unstable/socket";
|
|
25
25
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service27 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service27, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -266,7 +266,7 @@ var makeLayer2 = (connector) => Layer.effect(Service32, Effect.gen(function* ()
|
|
|
266
266
|
let terminal;
|
|
267
267
|
const token = {};
|
|
268
268
|
const frames = Stream.fromQueue(active.queue).pipe(Stream.timeoutOrElse({
|
|
269
|
-
duration: idleTimeout ?? IDLE_TIMEOUT,
|
|
269
|
+
duration: idleTimeout === false ? Duration.infinity : idleTimeout ?? IDLE_TIMEOUT,
|
|
270
270
|
orElse: () => Stream.fail(transportError("Timed out waiting for WebSocket data", {
|
|
271
271
|
url: exchange.connect.url,
|
|
272
272
|
operation: "read",
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service32, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service27.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer12 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node30 = makeGlobalNode({ service: Service27, layer: layer12, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service27, makeLayer2, layer12, node30, exports_model_transport };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service66
|
|
3
|
+
} from "./generate-5v5aasd4.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -12,14 +12,16 @@ __export(exports_stdio, {
|
|
|
12
12
|
make: () => make2
|
|
13
13
|
});
|
|
14
14
|
import { ReadBuffer, serializeMessage } from "@modelcontextprotocol/client";
|
|
15
|
-
import { Cause, Duration, Effect, Queue, Scope, Stream } from "effect";
|
|
15
|
+
import { Cause, Duration, Effect, Fiber, Option, Queue, Scope, Stream } from "effect";
|
|
16
16
|
import { ChildProcess } from "effect/unstable/process";
|
|
17
17
|
var CLOSE_GRACE = Duration.seconds(2);
|
|
18
18
|
var FORCE_KILL_AFTER = Duration.seconds(2);
|
|
19
19
|
var OUTGOING_CAPACITY = 64;
|
|
20
20
|
var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
21
|
+
var EXIT_WAIT = Duration.seconds(1);
|
|
22
|
+
var STDERR_TAIL = 1000;
|
|
21
23
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
22
|
-
const environment = yield*
|
|
24
|
+
const environment = yield* Service66;
|
|
23
25
|
const scope = yield* Effect.scope;
|
|
24
26
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
25
27
|
const buffer = new ReadBuffer;
|
|
@@ -27,6 +29,7 @@ var make2 = Effect.fnUntraced(function* (options) {
|
|
|
27
29
|
let startup;
|
|
28
30
|
let closing;
|
|
29
31
|
let trailingBytes = 0;
|
|
32
|
+
let stderr = "";
|
|
30
33
|
const stop = Effect.fnUntraced(function* (handle) {
|
|
31
34
|
yield* Effect.timeoutOption(handle.exitCode, CLOSE_GRACE).pipe(Effect.ignore);
|
|
32
35
|
const terminated = yield* Effect.timeoutOption(handle.kill({ killSignal: "SIGTERM" }), FORCE_KILL_AFTER);
|
|
@@ -97,16 +100,24 @@ var make2 = Effect.fnUntraced(function* (options) {
|
|
|
97
100
|
}
|
|
98
101
|
});
|
|
99
102
|
const startOutput = (handle) => Effect.gen(function* () {
|
|
103
|
+
const drain = yield* Effect.forkScoped(handle.stderr.pipe(Stream.decodeText(), Stream.tap((output) => Effect.sync(() => stderr = (stderr + output).slice(-STDERR_TAIL))), Stream.runForEach((output) => output.trim() === "" ? Effect.void : Effect.logDebug("mcp server stderr", { server: options.server, output })), Effect.ignore));
|
|
100
104
|
yield* Effect.forkScoped(Stream.runForEach(handle.stdout, deliver).pipe(Effect.tapCause((cause) => Effect.sync(() => {
|
|
101
105
|
const error = Cause.squash(cause);
|
|
102
106
|
transport.onerror?.(error instanceof Error ? error : new Error(String(error)));
|
|
103
107
|
})), Effect.ignore, Effect.ensuring(Effect.gen(function* () {
|
|
104
108
|
const unexpected = state.phase !== "closed";
|
|
105
|
-
if (unexpected)
|
|
109
|
+
if (unexpected) {
|
|
110
|
+
const code = yield* Fiber.await(drain).pipe(Effect.andThen(handle.exitCode), Effect.timeoutOption(EXIT_WAIT), Effect.orElseSucceed(() => Option.none()));
|
|
111
|
+
const exited = Option.match(code, {
|
|
112
|
+
onNone: () => "MCP server process exited",
|
|
113
|
+
onSome: (code) => `MCP server process exited with code ${code}`
|
|
114
|
+
});
|
|
115
|
+
const output = stderr.trim();
|
|
116
|
+
transport.onerror?.(new Error(output ? `${exited}: ${output}` : exited));
|
|
106
117
|
yield* Effect.promise(close);
|
|
118
|
+
}
|
|
107
119
|
transport.onclose?.();
|
|
108
120
|
}))));
|
|
109
|
-
yield* Effect.forkScoped(handle.stderr.pipe(Stream.decodeText(), Stream.runForEach((output) => output.trim() === "" ? Effect.void : Effect.logDebug("mcp server stderr", { server: options.server, output })), Effect.ignore));
|
|
110
121
|
});
|
|
111
122
|
return transport;
|
|
112
123
|
});
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-6zp854ra.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-9e5bzkjp.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
load4
|
|
12
|
+
} from "./generate-pd0d3v86.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-5pyjqqve.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
23
|
ListInput: () => ListInput5,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service59,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node62
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
|
|
|
52
52
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
53
53
|
var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service59 extends Context.Service()("@opencode/SessionStore") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
58
58
|
const { db } = yield* Service84;
|
|
59
|
-
return
|
|
59
|
+
return Service59.of({
|
|
60
60
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
61
61
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
62
62
|
return row ? fromRow2(row) : undefined;
|
|
@@ -98,7 +98,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
98
98
|
const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
|
|
99
99
|
return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
|
|
100
100
|
}),
|
|
101
|
-
context: Effect.fn("SessionStore.context")((sessionID) =>
|
|
101
|
+
context: Effect.fn("SessionStore.context")((sessionID) => load4(db, sessionID, "latest")),
|
|
102
102
|
message: Effect.fn("SessionStore.message")(function* (messageID) {
|
|
103
103
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
|
|
104
104
|
return row ? {
|
|
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node62 = makeGlobalNode({ service: Service59, layer, deps: [node88] });
|
|
129
129
|
|
|
130
|
-
export { ListInput5,
|
|
130
|
+
export { ListInput5, Service59, node62, exports_store };
|
|
@@ -1,42 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-6m42r3np.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info14
|
|
9
|
+
} from "./generate-3rd28rcz.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Info13
|
|
15
|
-
} from "./job-sxz6gkc3.js";
|
|
11
|
+
Info16
|
|
12
|
+
} from "./generate-b27vhd2z.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
14
|
+
Info17
|
|
15
|
+
} from "./generate-w2h15q85.js";
|
|
19
16
|
import {
|
|
20
17
|
Spec2
|
|
21
|
-
} from "./
|
|
18
|
+
} from "./generate-7dqw4kz8.js";
|
|
22
19
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
20
|
+
Info18
|
|
21
|
+
} from "./generate-zmr78fwr.js";
|
|
25
22
|
import {
|
|
26
|
-
Info8
|
|
27
|
-
} from "./job-jmvgh3qv.js";
|
|
28
|
-
import {
|
|
29
|
-
migrate2,
|
|
30
23
|
normalizeAction2,
|
|
31
24
|
migrateAgent2,
|
|
32
|
-
|
|
25
|
+
migrateCommand2,
|
|
26
|
+
modelSelection2,
|
|
33
27
|
migrateMcp2,
|
|
34
28
|
migrateProvider2,
|
|
35
29
|
providerID2
|
|
36
|
-
} from "./
|
|
30
|
+
} from "./generate-5yzz6hd1.js";
|
|
37
31
|
import {
|
|
38
32
|
__export
|
|
39
|
-
} from "./
|
|
33
|
+
} from "./generate-9rqn6x4v.js";
|
|
40
34
|
|
|
41
35
|
// src/config/normalize.ts
|
|
42
36
|
var exports_normalize = {};
|
|
@@ -54,6 +48,7 @@ import { ConfigCompaction } from "@opencode/schema/config/compaction";
|
|
|
54
48
|
import { ConfigFormatter } from "@opencode/schema/config/formatter";
|
|
55
49
|
import { ConfigLSP } from "@opencode/schema/config/lsp";
|
|
56
50
|
import { ConfigMedia } from "@opencode/schema/config/media";
|
|
51
|
+
import { ConfigModel } from "@opencode/schema/config/model";
|
|
57
52
|
import { ConfigMCP } from "@opencode/schema/config/mcp";
|
|
58
53
|
import { ConfigPlugin } from "@opencode/schema/config/plugin";
|
|
59
54
|
import { ConfigPolicy } from "@opencode/schema/config/policy";
|
|
@@ -72,6 +67,7 @@ var unsupportedExperimental = [
|
|
|
72
67
|
];
|
|
73
68
|
var unsupportedProvider = ["id", "whitelist", "blacklist"];
|
|
74
69
|
var unsupportedModel = ["release_date", "attachment", "reasoning", "temperature", "experimental"];
|
|
70
|
+
var LegacyAutoupdate = Schema.Literals([true, false, "notify"]);
|
|
75
71
|
function normalize2(input) {
|
|
76
72
|
if (!isRecord(input))
|
|
77
73
|
return {
|
|
@@ -84,18 +80,15 @@ function normalize2(input) {
|
|
|
84
80
|
const encoded = {};
|
|
85
81
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
82
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
83
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(LegacyAutoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
84
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
85
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ?
|
|
91
|
-
if (legacyMedia !== undefined)
|
|
92
|
-
|
|
93
|
-
if (migrated !== undefined)
|
|
94
|
-
encoded.media = canonical(ConfigMedia.Info, migrated);
|
|
95
|
-
}
|
|
86
|
+
const legacyMedia = own(input, "attachment") ? decodeEncoded(ConfigMedia.Info, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
87
|
+
if (legacyMedia !== undefined)
|
|
88
|
+
encoded.media = legacyMedia;
|
|
96
89
|
if (legacySnapshots !== undefined)
|
|
97
90
|
encoded.snapshots = legacySnapshots;
|
|
98
|
-
const migratedUpdate = legacyUpdate ===
|
|
91
|
+
const migratedUpdate = legacyUpdate === false ? "disable" : legacyUpdate === "notify" ? "notify" : legacyUpdate === true ? "auto" : undefined;
|
|
99
92
|
const update = prefer(migratedUpdate, nativeUpdate, ["update"], diagnostics);
|
|
100
93
|
if (update !== undefined)
|
|
101
94
|
encoded.update = update;
|
|
@@ -104,17 +97,14 @@ function normalize2(input) {
|
|
|
104
97
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
98
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
99
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
100
|
+
const legacyCommands = decodeMap(input.command, Info16, ["command"], diagnostics, decodeValue);
|
|
108
101
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
|
-
const migratedCommands = mapValues(legacyCommands, (value) =>
|
|
110
|
-
const migrated = commands2({ value })?.value;
|
|
111
|
-
return migrated === undefined ? undefined : canonical(ConfigCommand.Info, migrated);
|
|
112
|
-
});
|
|
102
|
+
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
113
103
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
104
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
105
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info14, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
106
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
|
-
const migratedSmallModel =
|
|
107
|
+
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
118
108
|
if (legacySmallModel && !migratedSmallModel)
|
|
119
109
|
diagnostics.push({
|
|
120
110
|
kind: "unsupported",
|
|
@@ -126,7 +116,7 @@ function normalize2(input) {
|
|
|
126
116
|
model: migratedSmallModel,
|
|
127
117
|
...legacyAgents.title
|
|
128
118
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
119
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info14, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
120
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
121
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
122
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -152,10 +142,12 @@ function normalize2(input) {
|
|
|
152
142
|
normalizeWatcher(input, encoded, diagnostics);
|
|
153
143
|
normalizeFormatter(input, encoded, diagnostics);
|
|
154
144
|
normalizeLsp(input, encoded, diagnostics);
|
|
145
|
+
const model = own(input, "model") ? decodeValue(ConfigModel.Selection, input.model, ["model"], diagnostics) : undefined;
|
|
146
|
+
if (model)
|
|
147
|
+
encoded.model = { ...model, providerID: providerID2(model.providerID) };
|
|
155
148
|
const nativeAtomic = {
|
|
156
149
|
$schema: Info.fields.$schema,
|
|
157
150
|
shell: Info.fields.shell,
|
|
158
|
-
model: Info.fields.model,
|
|
159
151
|
default_agent: Info.fields.default_agent,
|
|
160
152
|
share: Info.fields.share,
|
|
161
153
|
enterprise: Info.fields.enterprise,
|
|
@@ -225,7 +217,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
217
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
218
|
return;
|
|
227
219
|
}
|
|
228
|
-
const server = decodeValue(
|
|
220
|
+
const server = decodeValue(Info17, value, path, diagnostics);
|
|
229
221
|
if (server !== undefined)
|
|
230
222
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
223
|
});
|
|
@@ -421,7 +413,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
413
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
414
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
415
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
416
|
+
const provider = decodeValue(Info18, raw, path, diagnostics);
|
|
425
417
|
if (provider === undefined)
|
|
426
418
|
return [];
|
|
427
419
|
const destination = providerID2(name);
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
|
+
timeouts2,
|
|
5
6
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
7
|
+
} from "./generate-3edgjjmd.js";
|
|
7
8
|
import {
|
|
8
9
|
__export
|
|
9
|
-
} from "./
|
|
10
|
+
} from "./generate-9rqn6x4v.js";
|
|
10
11
|
|
|
11
12
|
// src/aisdk.ts
|
|
12
13
|
var exports_aisdk = {};
|
|
13
14
|
__export(exports_aisdk, {
|
|
14
15
|
AISDK: () => exports_aisdk,
|
|
15
16
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
17
|
+
Service: () => Service74,
|
|
17
18
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
19
|
+
node: () => node78
|
|
19
20
|
});
|
|
20
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
22
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -96,23 +97,22 @@ function prepareOptions(model, pkg) {
|
|
|
96
97
|
body: projected.body
|
|
97
98
|
};
|
|
98
99
|
const customFetch = options.fetch;
|
|
99
|
-
const
|
|
100
|
+
const timeouts = timeouts2(options);
|
|
101
|
+
delete options.headerTimeout;
|
|
100
102
|
delete options.chunkTimeout;
|
|
101
103
|
delete options.compaction;
|
|
102
104
|
delete options.transport;
|
|
103
105
|
options.fetch = async (input, init) => {
|
|
104
106
|
const opts = { ...init ?? {} };
|
|
105
|
-
const
|
|
107
|
+
const headers = new AbortController;
|
|
108
|
+
const headerTimer = timeouts.headerTimeout === false ? undefined : setTimeout(() => headers.abort(new Error(HEADER_TIMEOUT_MESSAGE)), timeouts.headerTimeout);
|
|
109
|
+
const chunks = new AbortController;
|
|
110
|
+
opts.signal = AbortSignal.any([
|
|
106
111
|
opts.signal,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const abortSignals = signals.map((item) => item instanceof AbortController ? item.signal : item);
|
|
112
|
-
if (abortSignals.length === 1)
|
|
113
|
-
opts.signal = abortSignals[0];
|
|
114
|
-
if (abortSignals.length > 1)
|
|
115
|
-
opts.signal = AbortSignal.any(abortSignals);
|
|
112
|
+
headers.signal,
|
|
113
|
+
chunks.signal,
|
|
114
|
+
timeouts.timeout ? AbortSignal.timeout(timeouts.timeout) : undefined
|
|
115
|
+
].filter((item) => item !== undefined && item !== null));
|
|
116
116
|
if (typeof opts.body === "string" && model.body !== undefined) {
|
|
117
117
|
const decoded = Option.getOrUndefined(decodeJson(opts.body));
|
|
118
118
|
if (Schema.is(Schema.Record(Schema.String, Schema.Json))(decoded)) {
|
|
@@ -121,10 +121,10 @@ function prepareOptions(model, pkg) {
|
|
|
121
121
|
}
|
|
122
122
|
const send = typeof customFetch === "function" ? customFetch : fetch;
|
|
123
123
|
const middleware = httpMiddleware.getStore();
|
|
124
|
-
const res = middleware ?
|
|
125
|
-
if (
|
|
124
|
+
const res = await (middleware ? throughMiddleware(middleware, send, input, { ...opts, timeout: false }) : send(input, { ...opts, timeout: false })).finally(() => clearTimeout(headerTimer));
|
|
125
|
+
if (timeouts.chunkTimeout === false)
|
|
126
126
|
return res;
|
|
127
|
-
return wrapSSE(res, chunkTimeout,
|
|
127
|
+
return wrapSSE(res, timeouts.chunkTimeout, chunks);
|
|
128
128
|
};
|
|
129
129
|
return options;
|
|
130
130
|
}
|
|
@@ -148,9 +148,10 @@ function throughMiddleware(store, send, input, init) {
|
|
|
148
148
|
return new Response(stream, { status: response.status, headers: response.headers });
|
|
149
149
|
}), { signal: init.signal ?? undefined });
|
|
150
150
|
}
|
|
151
|
+
var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
|
|
151
152
|
|
|
152
153
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
153
|
-
providerID:
|
|
154
|
+
providerID: ID13,
|
|
154
155
|
cause: Schema.Defect()
|
|
155
156
|
}) {
|
|
156
157
|
}
|
|
@@ -158,9 +159,9 @@ function initError(providerID) {
|
|
|
158
159
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
class
|
|
162
|
+
class Service74 extends Context.Service()("@opencode/AISDK") {
|
|
162
163
|
}
|
|
163
|
-
var locationLayer2 = Layer.effect(
|
|
164
|
+
var locationLayer2 = Layer.effect(Service74, Effect.gen(function* () {
|
|
164
165
|
let sdkHooks = [];
|
|
165
166
|
let languageHooks = [];
|
|
166
167
|
const languages = new Map;
|
|
@@ -198,7 +199,7 @@ var locationLayer2 = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
198
199
|
}
|
|
199
200
|
return event;
|
|
200
201
|
});
|
|
201
|
-
const service =
|
|
202
|
+
const service = Service74.of({
|
|
202
203
|
hook: {
|
|
203
204
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
204
205
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -342,7 +343,17 @@ function providerOptionKey(packageName, providerID) {
|
|
|
342
343
|
function requestSettings(settings) {
|
|
343
344
|
if (settings === undefined)
|
|
344
345
|
return;
|
|
345
|
-
const result = Object.fromEntries(Object.entries(settings).filter(([key]) => ![
|
|
346
|
+
const result = Object.fromEntries(Object.entries(settings).filter(([key]) => ![
|
|
347
|
+
"apiKey",
|
|
348
|
+
"authToken",
|
|
349
|
+
"baseURL",
|
|
350
|
+
"chunkTimeout",
|
|
351
|
+
"compaction",
|
|
352
|
+
"fetch",
|
|
353
|
+
"headerTimeout",
|
|
354
|
+
"timeout",
|
|
355
|
+
"transport"
|
|
356
|
+
].includes(key)));
|
|
346
357
|
return Object.keys(result).length === 0 ? undefined : result;
|
|
347
358
|
}
|
|
348
359
|
function mapBodyToProviderOptions(model, packageName) {
|
|
@@ -785,7 +796,8 @@ var NETWORK_ERROR_MESSAGES = new Set([
|
|
|
785
796
|
"failed to fetch",
|
|
786
797
|
"terminated",
|
|
787
798
|
"other side closed",
|
|
788
|
-
"sse read timed out"
|
|
799
|
+
"sse read timed out",
|
|
800
|
+
HEADER_TIMEOUT_MESSAGE.toLowerCase()
|
|
789
801
|
]);
|
|
790
802
|
var NativeErrorShape = Schema.Struct({
|
|
791
803
|
message: Schema.String,
|
|
@@ -862,6 +874,6 @@ function providerErrorMessage(error) {
|
|
|
862
874
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
863
875
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
864
876
|
}
|
|
865
|
-
var
|
|
877
|
+
var node78 = makeLocationNode({ service: Service74, layer: locationLayer2, deps: [] });
|
|
866
878
|
|
|
867
|
-
export { InitError2,
|
|
879
|
+
export { InitError2, Service74, locationLayer2, node78, exports_aisdk };
|