@opencode/core 0.0.0-dev-20446 → 0.0.0-dev-20448
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 +77 -77
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +90 -90
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{repository-cache-e9266ee7.js → event-logger-025r9p6c.js} +20 -20
- package/dist/chunks/{repository-cache-0j77ygfz.js → event-logger-0j77ygfz.js} +2 -2
- package/dist/chunks/{repository-cache-9qk0q36h.js → event-logger-0pa8htj5.js} +18 -18
- package/dist/chunks/{repository-cache-0paq2nw3.js → event-logger-0paq2nw3.js} +1 -1
- package/dist/chunks/{repository-cache-0vbcp93d.js → event-logger-0vbcp93d.js} +2 -2
- package/dist/chunks/{repository-cache-jpeemenq.js → event-logger-10ke8wy4.js} +4 -4
- package/dist/chunks/{repository-cache-cgkqc5k9.js → event-logger-13fywz9t.js} +22 -22
- package/dist/chunks/{repository-cache-dm4xrbzk.js → event-logger-17zj526k.js} +8 -8
- package/dist/chunks/{repository-cache-1dazxqgg.js → event-logger-1dazxqgg.js} +2 -2
- package/dist/chunks/{repository-cache-1dvck2a7.js → event-logger-1dvck2a7.js} +2 -2
- package/dist/chunks/{repository-cache-qcrnsjqj.js → event-logger-1f1banxt.js} +22 -22
- package/dist/chunks/{repository-cache-vgb18m5f.js → event-logger-1fqq8vqc.js} +26 -26
- package/dist/chunks/{repository-cache-vxhhv58t.js → event-logger-1jt7ykkj.js} +24 -24
- package/dist/chunks/{repository-cache-br52dth2.js → event-logger-1pek3jt7.js} +5 -5
- package/dist/chunks/event-logger-1vsw5z46.js +26 -0
- package/dist/chunks/{repository-cache-21r38tys.js → event-logger-21r38tys.js} +1 -1
- package/dist/chunks/{repository-cache-n7d88tpn.js → event-logger-256nx13v.js} +3 -3
- package/dist/chunks/{repository-cache-9nkwfwgn.js → event-logger-27a4zz2s.js} +17 -17
- package/dist/chunks/{repository-cache-g0kjp75c.js → event-logger-283mwr8r.js} +18 -18
- package/dist/chunks/{repository-cache-9aqqzffj.js → event-logger-29eg91y8.js} +18 -18
- package/dist/chunks/{repository-cache-2a5m3afh.js → event-logger-2a5m3afh.js} +1 -1
- package/dist/chunks/{repository-cache-2ccvkpx1.js → event-logger-2ccvkpx1.js} +2 -2
- package/dist/chunks/{repository-cache-mwka8kak.js → event-logger-2d99pj65.js} +13 -13
- package/dist/chunks/{repository-cache-n48q0swr.js → event-logger-2jm1kbky.js} +9 -9
- package/dist/chunks/{repository-cache-qgn6gcr1.js → event-logger-2k8khapm.js} +5 -5
- package/dist/chunks/{repository-cache-as7cf5zz.js → event-logger-2m8jawch.js} +4 -4
- package/dist/chunks/{repository-cache-ca7w653e.js → event-logger-2vs2nh1n.js} +4 -4
- package/dist/chunks/{repository-cache-5we7r0eg.js → event-logger-2wts5qzq.js} +8 -8
- package/dist/chunks/{repository-cache-h3g3cs7p.js → event-logger-2zfnf44s.js} +4 -4
- package/dist/chunks/{repository-cache-kb6vbnxp.js → event-logger-30krspkn.js} +4 -4
- package/dist/chunks/{repository-cache-8ht81e1j.js → event-logger-340fk759.js} +11 -11
- package/dist/chunks/{repository-cache-ekeagaff.js → event-logger-376x46en.js} +32 -32
- package/dist/chunks/{repository-cache-3fc6dm20.js → event-logger-3fc6dm20.js} +1 -1
- package/dist/chunks/{repository-cache-2w25bewv.js → event-logger-3h8j5ahx.js} +8 -8
- package/dist/chunks/{repository-cache-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-cache-aq1q7s3w.js → event-logger-3ma1skk1.js} +11 -11
- package/dist/chunks/{repository-cache-x9qtnq71.js → event-logger-3ma5fxv3.js} +11 -11
- package/dist/chunks/{repository-cache-jk54fhp7.js → event-logger-3ny7sck4.js} +11 -11
- package/dist/chunks/{repository-cache-qsr9synt.js → event-logger-3qaj82j9.js} +5 -5
- package/dist/chunks/{repository-cache-3smtnn6g.js → event-logger-3smtnn6g.js} +1 -1
- package/dist/chunks/{repository-cache-3tvqynh2.js → event-logger-3tvqynh2.js} +1 -1
- package/dist/chunks/{repository-cache-mnkrz2st.js → event-logger-3xbeb0ys.js} +5 -5
- package/dist/chunks/{repository-cache-3zsf4n22.js → event-logger-3zsf4n22.js} +1 -1
- package/dist/chunks/{repository-cache-ydvbazfr.js → event-logger-432svpan.js} +43 -43
- package/dist/chunks/{repository-cache-ha4q6k7g.js → event-logger-4608f3zx.js} +34 -34
- package/dist/chunks/{repository-cache-0qb7pa1n.js → event-logger-470chn1p.js} +8 -8
- package/dist/chunks/{repository-cache-7fv9049a.js → event-logger-49vre7sk.js} +42 -42
- package/dist/chunks/{repository-cache-b7gejjdn.js → event-logger-4f7vnw9z.js} +15 -15
- package/dist/chunks/{repository-cache-j5w2yx54.js → event-logger-4mwpykj0.js} +6 -6
- package/dist/chunks/{repository-cache-zbrkq2e1.js → event-logger-4pwd558p.js} +7 -7
- package/dist/chunks/{repository-cache-ryhnjg92.js → event-logger-4qrezbc4.js} +29 -29
- package/dist/chunks/{repository-cache-63s895d0.js → event-logger-4qwh2j69.js} +9 -9
- package/dist/chunks/{repository-cache-5c68v4c5.js → event-logger-4veqx6w1.js} +13 -13
- package/dist/chunks/{repository-cache-dtrxyetv.js → event-logger-4wskyzd5.js} +5 -5
- package/dist/chunks/{repository-cache-54ma36ye.js → event-logger-54ma36ye.js} +1 -1
- package/dist/chunks/{repository-cache-n7qbnv1j.js → event-logger-55xfy5s4.js} +15 -15
- package/dist/chunks/{repository-cache-a04262f3.js → event-logger-594gxkg3.js} +1 -1
- package/dist/chunks/{repository-cache-c765mh8b.js → event-logger-5d607bsg.js} +9 -9
- package/dist/chunks/{repository-cache-5daktx2q.js → event-logger-5daktx2q.js} +1 -1
- package/dist/chunks/{repository-cache-8zq1pfr0.js → event-logger-5dkh983c.js} +15 -15
- package/dist/chunks/event-logger-5f4ycdnm.js +507 -0
- package/dist/chunks/{repository-cache-gex2px6h.js → event-logger-5fe36zdw.js} +3 -3
- package/dist/chunks/{repository-cache-ymcgbes0.js → event-logger-5n25gzb5.js} +4 -4
- package/dist/chunks/{repository-cache-5t3nmthw.js → event-logger-5t3nmthw.js} +2 -2
- package/dist/chunks/{repository-cache-pr2h8h86.js → event-logger-5znq9j58.js} +8 -8
- package/dist/chunks/{repository-cache-669tq793.js → event-logger-669tq793.js} +1 -1
- package/dist/chunks/{repository-cache-5fwyrf5z.js → event-logger-68419g8m.js} +33 -33
- package/dist/chunks/{repository-cache-skpsgn3k.js → event-logger-6q0c4mka.js} +36 -36
- package/dist/chunks/{repository-cache-7x28tdrb.js → event-logger-6wc4pc56.js} +21 -21
- package/dist/chunks/{repository-cache-b005zpx3.js → event-logger-712676yn.js} +20 -20
- package/dist/chunks/{repository-cache-71az546q.js → event-logger-71az546q.js} +2 -2
- package/dist/chunks/{repository-cache-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-cache-5m5yrm4y.js → event-logger-7cjh5p1y.js} +8 -8
- package/dist/chunks/{repository-cache-vxfyztn0.js → event-logger-7v7knrkr.js} +13 -13
- package/dist/chunks/{repository-cache-dhr91br8.js → event-logger-7x3ym2x5.js} +5 -5
- package/dist/chunks/{repository-cache-2jmaghvr.js → event-logger-7yqjxrmz.js} +6 -6
- package/dist/chunks/{repository-cache-hrbcf8x8.js → event-logger-84p84h2c.js} +3 -3
- package/dist/chunks/{repository-cache-w1eejvng.js → event-logger-84txncab.js} +5 -5
- package/dist/chunks/{repository-cache-c2st8pk7.js → event-logger-887y1z54.js} +5 -5
- package/dist/chunks/{repository-cache-8d7r5vzw.js → event-logger-8d7r5vzw.js} +1 -1
- package/dist/chunks/{repository-cache-e61dah1y.js → event-logger-8hezddv1.js} +29 -29
- package/dist/chunks/{repository-cache-kpqjj4ny.js → event-logger-8s6x3d41.js} +36 -36
- package/dist/chunks/{repository-cache-j9me29bk.js → event-logger-904bg09a.js} +11 -11
- package/dist/chunks/{repository-cache-y23ntya0.js → event-logger-9bxjh02c.js} +47 -47
- package/dist/chunks/{repository-cache-htpvgqrd.js → event-logger-9e4en3sz.js} +8 -8
- package/dist/chunks/{repository-cache-9e5bzkjp.js → event-logger-9e5bzkjp.js} +3 -3
- package/dist/chunks/{repository-cache-j2nvzb5v.js → event-logger-9vqrjshk.js} +15 -15
- package/dist/chunks/{repository-cache-pw9d3wh8.js → event-logger-9we07c3h.js} +28 -28
- package/dist/chunks/{repository-cache-hx7zmtxv.js → event-logger-9x3j7hff.js} +91 -91
- package/dist/chunks/{repository-cache-aaet6srn.js → event-logger-aaet6srn.js} +2 -2
- package/dist/chunks/{repository-cache-zav7rf1m.js → event-logger-aakwft81.js} +26 -26
- package/dist/chunks/{repository-cache-nb17w2yx.js → event-logger-agkzm0be.js} +9 -9
- package/dist/chunks/{repository-cache-8w5vxsg3.js → event-logger-anwj03q3.js} +15 -15
- package/dist/chunks/{repository-cache-g63fbaar.js → event-logger-ax23vn7r.js} +7 -7
- package/dist/chunks/{repository-cache-nfqw6mz9.js → event-logger-b29htdbz.js} +20 -20
- package/dist/chunks/{repository-cache-scgrse2b.js → event-logger-b3f8fkhc.js} +5 -5
- package/dist/chunks/{repository-cache-py3kkmfq.js → event-logger-b4twkq7r.js} +6 -6
- package/dist/chunks/{repository-cache-8aw8tj9n.js → event-logger-b5beq1ps.js} +15 -15
- package/dist/chunks/{repository-cache-b6gygkdw.js → event-logger-b6gygkdw.js} +2 -2
- package/dist/chunks/{repository-cache-22f357wt.js → event-logger-b720ka4c.js} +3 -3
- package/dist/chunks/{repository-cache-4eda5p0n.js → event-logger-b77ncnqv.js} +17 -17
- package/dist/chunks/{repository-cache-zmsbhx8q.js → event-logger-bcz24cr5.js} +14 -14
- package/dist/chunks/{repository-cache-1gd6spct.js → event-logger-bfnsmjbw.js} +5 -5
- package/dist/chunks/{repository-cache-9tc8fk2g.js → event-logger-bfv0d40t.js} +19 -19
- package/dist/chunks/{repository-cache-76ymgwed.js → event-logger-bkxyw0dr.js} +9 -9
- package/dist/chunks/{repository-cache-ngpj616s.js → event-logger-bmwt6c32.js} +39 -39
- package/dist/chunks/{repository-cache-3s1wsaeq.js → event-logger-bt8wzsf1.js} +25 -25
- package/dist/chunks/{repository-cache-1d5ct0zc.js → event-logger-bx4acmk7.js} +11 -11
- package/dist/chunks/{repository-cache-fqpgqbak.js → event-logger-bxcmn2wa.js} +45 -45
- package/dist/chunks/{repository-cache-5q9xfknq.js → event-logger-by5tvt2z.js} +10 -10
- package/dist/chunks/{repository-cache-v49gtp01.js → event-logger-byv6g4ee.js} +26 -26
- package/dist/chunks/{repository-cache-40f2545g.js → event-logger-c89vh89k.js} +33 -33
- package/dist/chunks/{repository-cache-kxsrbhnp.js → event-logger-cbf5jjb3.js} +9 -9
- package/dist/chunks/{repository-cache-2rk6k8vg.js → event-logger-cdevnsy5.js} +14 -14
- package/dist/chunks/{repository-cache-cfpp34xq.js → event-logger-cfdmmks0.js} +45 -45
- package/dist/chunks/{repository-cache-e35ah7hw.js → event-logger-cr2e17pp.js} +24 -24
- package/dist/chunks/{repository-cache-d7q3t8ht.js → event-logger-cv3we14p.js} +9 -9
- package/dist/chunks/{repository-cache-wqcy1a6q.js → event-logger-cz658kn3.js} +17 -17
- package/dist/chunks/{repository-cache-7gh65m6s.js → event-logger-d2c9eem0.js} +8 -8
- package/dist/chunks/{repository-cache-bsxd6m7c.js → event-logger-d9vtgrjt.js} +7 -7
- package/dist/chunks/{repository-cache-3j8sdtpz.js → event-logger-dfe8djrf.js} +4 -4
- package/dist/chunks/{repository-cache-xkntkrq7.js → event-logger-dmqcgk4z.js} +5 -5
- package/dist/chunks/{repository-cache-8mk2n5b3.js → event-logger-dr12q9z6.js} +22 -22
- package/dist/chunks/{repository-cache-kryraq7m.js → event-logger-dvdrsg1q.js} +86 -86
- package/dist/chunks/{repository-cache-rtb06bvf.js → event-logger-dyhejfhh.js} +3 -3
- package/dist/chunks/{repository-cache-gtm34f6g.js → event-logger-e0rzh98p.js} +24 -24
- package/dist/chunks/{repository-cache-e93vysgz.js → event-logger-e6cfs5fy.js} +4 -4
- package/dist/chunks/{repository-cache-9esanb1h.js → event-logger-e6j7p34d.js} +29 -29
- package/dist/chunks/{repository-cache-n032fvft.js → event-logger-e8cja42p.js} +6 -6
- package/dist/chunks/{repository-cache-n9esafc3.js → event-logger-ebsr21av.js} +20 -20
- package/dist/chunks/{repository-cache-ef5x83kb.js → event-logger-ef5x83kb.js} +1 -1
- package/dist/chunks/{repository-cache-etq0c3wd.js → event-logger-etq0c3wd.js} +1 -1
- package/dist/chunks/{repository-cache-10h2grd6.js → event-logger-ex7a17jg.js} +9 -9
- package/dist/chunks/{repository-cache-eybz4adf.js → event-logger-ezjrjzyq.js} +10 -10
- package/dist/chunks/{repository-cache-tavta0y2.js → event-logger-fcc8k9h4.js} +21 -21
- package/dist/chunks/{repository-cache-btec747f.js → event-logger-fepbnb8j.js} +5 -5
- package/dist/chunks/{repository-cache-f3gqgk1j.js → event-logger-fepsx33q.js} +24 -24
- package/dist/chunks/{repository-cache-j83nw7fd.js → event-logger-fngg5dts.js} +29 -29
- package/dist/chunks/{repository-cache-expxz8xq.js → event-logger-fzaeg2ds.js} +12 -12
- package/dist/chunks/{repository-cache-tntmnmab.js → event-logger-g14hjekp.js} +181 -181
- package/dist/chunks/{repository-cache-fjabd4vm.js → event-logger-g54wh2k8.js} +72 -72
- package/dist/chunks/{repository-cache-xfkkasph.js → event-logger-g5w8qwbj.js} +4 -4
- package/dist/chunks/{repository-cache-gd4qta3r.js → event-logger-gd4qta3r.js} +1 -1
- package/dist/chunks/{repository-cache-jk5jtrba.js → event-logger-gdresbk1.js} +43 -43
- package/dist/chunks/{repository-cache-m4emmwet.js → event-logger-gepsrshe.js} +15 -15
- package/dist/chunks/{repository-cache-e8nmz9dx.js → event-logger-gg6v90bt.js} +3 -3
- package/dist/chunks/{repository-cache-091f0rd0.js → event-logger-gksp05c7.js} +41 -41
- package/dist/chunks/{repository-cache-qmp8ys2a.js → event-logger-gm0fw0ea.js} +20 -20
- package/dist/chunks/{repository-cache-t81m24cw.js → event-logger-gwkgtfjp.js} +9 -9
- package/dist/chunks/{repository-cache-n8c291r7.js → event-logger-gzbkpp9m.js} +6 -6
- package/dist/chunks/{repository-cache-32dhwnjc.js → event-logger-h0nrh5g5.js} +16 -16
- package/dist/chunks/{repository-cache-r8ebqbsc.js → event-logger-h0y6gyg6.js} +5 -5
- package/dist/chunks/{repository-cache-h2b79v29.js → event-logger-h2b79v29.js} +2 -2
- package/dist/chunks/{repository-cache-6bkwpg0x.js → event-logger-h6sem7h5.js} +12 -12
- package/dist/chunks/{repository-cache-h6vf3j39.js → event-logger-h6vf3j39.js} +1 -1
- package/dist/chunks/{repository-cache-86qzxe6p.js → event-logger-h90v2x9d.js} +4 -4
- package/dist/chunks/{repository-cache-706phk7x.js → event-logger-h9phamz0.js} +2 -2
- package/dist/chunks/{repository-cache-4z58m4b4.js → event-logger-h9wp8z5w.js} +4 -4
- package/dist/chunks/{repository-cache-0a1ad31p.js → event-logger-hamg8kx8.js} +27 -27
- package/dist/chunks/{repository-cache-4429sr8a.js → event-logger-hd0dv02w.js} +21 -21
- package/dist/chunks/{repository-cache-hs1x7rht.js → event-logger-hh2y2jgt.js} +12 -12
- package/dist/chunks/{repository-cache-376dc42v.js → event-logger-hk5c0ytp.js} +24 -24
- package/dist/chunks/{repository-cache-0z5qyjxf.js → event-logger-hpxe7m2y.js} +18 -11
- package/dist/chunks/{repository-cache-g41awwxy.js → event-logger-ht5v7459.js} +21 -21
- package/dist/chunks/{repository-cache-j56e64zr.js → event-logger-j56e64zr.js} +1 -1
- package/dist/chunks/{repository-cache-zdy34q02.js → event-logger-j6q81gkc.js} +13 -13
- package/dist/chunks/{repository-cache-fsaqawm2.js → event-logger-jk1cfv3m.js} +6 -6
- package/dist/chunks/{repository-cache-f7t5kd0c.js → event-logger-k2vtjz35.js} +34 -34
- package/dist/chunks/{repository-cache-k3c624dm.js → event-logger-k3c624dm.js} +3 -3
- package/dist/chunks/{repository-cache-gh5z95q3.js → event-logger-k70p9jzb.js} +9 -9
- package/dist/chunks/{repository-cache-0zvk9z0h.js → event-logger-k8gwj0p0.js} +13 -13
- package/dist/chunks/{repository-cache-yzt1bx7e.js → event-logger-k9jsxftv.js} +32 -32
- package/dist/chunks/{repository-cache-vf3z480h.js → event-logger-kbf65jmx.js} +28 -28
- package/dist/chunks/{repository-cache-rax07w26.js → event-logger-kbkddehn.js} +26 -26
- package/dist/chunks/{repository-cache-0s60x6wy.js → event-logger-kk2qnnr0.js} +18 -18
- package/dist/chunks/{repository-cache-n37c4crj.js → event-logger-kp8q1t60.js} +9 -9
- package/dist/chunks/{repository-cache-beprb18x.js → event-logger-m1q4m0kb.js} +12 -12
- package/dist/chunks/{repository-cache-x3d3jna2.js → event-logger-m2n93apa.js} +7 -7
- package/dist/chunks/{repository-cache-m3fdjcah.js → event-logger-m3fdjcah.js} +1 -1
- package/dist/chunks/{repository-cache-37sfe3bm.js → event-logger-m69d1h5c.js} +14 -14
- package/dist/chunks/{repository-cache-169shjta.js → event-logger-m6fea7hh.js} +11 -11
- package/dist/chunks/{repository-cache-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-cache-mazbtkaa.js → event-logger-mazbtkaa.js} +2 -2
- package/dist/chunks/{repository-cache-1ygqh575.js → event-logger-mfqp6xfm.js} +6 -6
- package/dist/chunks/{repository-cache-4epeq83n.js → event-logger-mg9eprjx.js} +8 -8
- package/dist/chunks/{repository-cache-8f2ehy9w.js → event-logger-mkgkpagd.js} +18 -18
- package/dist/chunks/{repository-cache-mpk0rfs5.js → event-logger-mpk0rfs5.js} +1 -1
- package/dist/chunks/{repository-cache-a1gpj94z.js → event-logger-mvfsc1pv.js} +3 -3
- package/dist/chunks/{repository-cache-qne3fa44.js → event-logger-n8vdnqrc.js} +5 -5
- package/dist/chunks/{repository-cache-e7k2h18t.js → event-logger-p1ykeed4.js} +4 -4
- package/dist/chunks/{repository-cache-cmwkp3r5.js → event-logger-p37cw4rj.js} +8 -8
- package/dist/chunks/{repository-cache-s8vhzyp4.js → event-logger-p7tapf4a.js} +56 -56
- package/dist/chunks/{repository-cache-822vy19y.js → event-logger-pchm5dd6.js} +21 -21
- package/dist/chunks/{repository-cache-dzydyd9h.js → event-logger-pd72zq69.js} +48 -48
- package/dist/chunks/{repository-cache-s39a1knw.js → event-logger-pdzqywty.js} +44 -44
- package/dist/chunks/{repository-cache-pjvnvgmy.js → event-logger-pjvnvgmy.js} +1 -1
- package/dist/chunks/{repository-cache-pknna89w.js → event-logger-pknna89w.js} +1 -1
- package/dist/chunks/{repository-cache-bjzxe3qz.js → event-logger-pm4gwtf6.js} +12 -12
- package/dist/chunks/{repository-cache-37ea9c2d.js → event-logger-pnaxc6j9.js} +8 -8
- package/dist/chunks/{repository-cache-kzhakyvk.js → event-logger-prdz64n1.js} +2 -2
- package/dist/chunks/{repository-cache-wn1kxzz7.js → event-logger-ps49tzpg.js} +16 -16
- package/dist/chunks/{repository-cache-n0rv915y.js → event-logger-ps97516x.js} +17 -17
- package/dist/chunks/{repository-cache-f0m8zgz7.js → event-logger-q9p7zpd5.js} +309 -309
- package/dist/chunks/{repository-cache-agkhkqzj.js → event-logger-qh22g8nh.js} +13 -13
- package/dist/chunks/{repository-cache-qnc92qwc.js → event-logger-qnc92qwc.js} +1 -1
- package/dist/chunks/{repository-cache-q8406f75.js → event-logger-qrn3harz.js} +10 -10
- package/dist/chunks/{repository-cache-qsdy395h.js → event-logger-qsdy395h.js} +1 -1
- package/dist/chunks/{repository-cache-yrerq1n3.js → event-logger-qsjw007r.js} +10 -10
- package/dist/chunks/{repository-cache-3bg5g8q7.js → event-logger-qv6rw298.js} +24 -24
- package/dist/chunks/{repository-cache-kq1ref1h.js → event-logger-qvq09nk1.js} +3 -3
- package/dist/chunks/{repository-cache-n57qrn3a.js → event-logger-r01t9b5y.js} +6 -6
- package/dist/chunks/{repository-cache-k64zxjm6.js → event-logger-r0cb0ck6.js} +10 -10
- package/dist/chunks/{repository-cache-yp2x3t23.js → event-logger-r8xr0va3.js} +4 -4
- package/dist/chunks/{repository-cache-dg2gsbnn.js → event-logger-rd108yne.js} +17 -17
- package/dist/chunks/{repository-cache-rdw6cm16.js → event-logger-rdw6cm16.js} +1 -1
- package/dist/chunks/{repository-cache-3by35n0t.js → event-logger-rjdsec5h.js} +5 -5
- package/dist/chunks/{repository-cache-k4vx4kqq.js → event-logger-rpchwtds.js} +33 -33
- package/dist/chunks/{repository-cache-re4wmejr.js → event-logger-rs3qhzzg.js} +30 -30
- package/dist/chunks/{repository-cache-8sgzw3p1.js → event-logger-rtkh151k.js} +6 -6
- package/dist/chunks/{repository-cache-4ag3f9xz.js → event-logger-rtx9gtyv.js} +3 -3
- package/dist/chunks/{repository-cache-ysypycvb.js → event-logger-s3atc1v9.js} +1 -1
- package/dist/chunks/{repository-cache-hkyvzcah.js → event-logger-s4mtyj9y.js} +15 -15
- package/dist/chunks/{repository-cache-zwc7jy6c.js → event-logger-scnp1dpp.js} +5 -5
- package/dist/chunks/{repository-cache-0j4x3pky.js → event-logger-sdx9bhzb.js} +19 -19
- package/dist/chunks/{repository-cache-69jzkc3x.js → event-logger-shqntgwy.js} +30 -30
- package/dist/chunks/{repository-cache-gjnx9fp9.js → event-logger-spw1z2q7.js} +23 -23
- package/dist/chunks/{repository-cache-a1jg4bqm.js → event-logger-sqxnm49h.js} +9 -9
- package/dist/chunks/{repository-cache-8gn7nf7w.js → event-logger-sy89kq56.js} +11 -11
- package/dist/chunks/{repository-cache-g9n5gn8p.js → event-logger-sz0w735c.js} +4 -4
- package/dist/chunks/{repository-cache-rhjbct0v.js → event-logger-t550f9t1.js} +4 -4
- package/dist/chunks/{repository-cache-tazgh4e4.js → event-logger-tazgh4e4.js} +1 -1
- package/dist/chunks/{repository-cache-tcezcvh9.js → event-logger-tcezcvh9.js} +1 -1
- package/dist/chunks/{repository-cache-tdstcens.js → event-logger-tdstcens.js} +1 -1
- package/dist/chunks/{repository-cache-2fxbb402.js → event-logger-tng282jn.js} +8 -8
- package/dist/chunks/{repository-cache-mk49qygx.js → event-logger-tv2mrqm9.js} +16 -16
- package/dist/chunks/{repository-cache-tvtrv512.js → event-logger-tvtrv512.js} +1 -1
- package/dist/chunks/{repository-cache-25ex5bj3.js → event-logger-tw51v10a.js} +16 -16
- package/dist/chunks/{repository-cache-3v5tjer0.js → event-logger-tzehptey.js} +9 -9
- package/dist/chunks/{repository-cache-v1faaxn9.js → event-logger-v1faaxn9.js} +1 -1
- package/dist/chunks/{repository-cache-myh7k9xx.js → event-logger-v3t7ccjd.js} +41 -41
- package/dist/chunks/{repository-cache-tk14y25j.js → event-logger-vazhwx36.js} +5 -5
- package/dist/chunks/{repository-cache-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
- package/dist/chunks/{repository-cache-hqc76sze.js → event-logger-vp0z89e3.js} +20 -20
- package/dist/chunks/{repository-cache-m0ecvezt.js → event-logger-vq5c9x4q.js} +8 -8
- package/dist/chunks/{repository-cache-vzcthcp8.js → event-logger-vzcthcp8.js} +1 -1
- package/dist/chunks/{repository-cache-7vwcfb7e.js → event-logger-vzmgbyx1.js} +8 -8
- package/dist/chunks/{repository-cache-vzs5sf6e.js → event-logger-vzs5sf6e.js} +1 -1
- package/dist/chunks/{repository-cache-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-cache-gzj36dnw.js → event-logger-w7xxgrkj.js} +23 -23
- package/dist/chunks/{repository-cache-qxnn7y6z.js → event-logger-w8srcnpp.js} +8 -8
- package/dist/chunks/{repository-cache-4v7ngy20.js → event-logger-wa9g86nq.js} +4 -4
- package/dist/chunks/{repository-cache-wd87259q.js → event-logger-wd87259q.js} +1 -1
- package/dist/chunks/{repository-cache-wscpecpd.js → event-logger-wm2754ph.js} +27 -27
- package/dist/chunks/{repository-cache-j0032p6g.js → event-logger-wpwd7k51.js} +9 -9
- package/dist/chunks/{repository-cache-963rbvmp.js → event-logger-wwfsgjp3.js} +9 -9
- package/dist/chunks/{repository-cache-x1ezjp6w.js → event-logger-x1ezjp6w.js} +1 -1
- package/dist/chunks/{repository-cache-7kfsqtmt.js → event-logger-xa4xh9eb.js} +11 -11
- package/dist/chunks/{repository-cache-jfqtm2ew.js → event-logger-xb02k0wq.js} +4 -4
- package/dist/chunks/{repository-cache-wqkf1g1x.js → event-logger-xbxcg6gj.js} +22 -22
- package/dist/chunks/{repository-cache-pedjrwj0.js → event-logger-xcec66r5.js} +46 -46
- package/dist/chunks/{repository-cache-vsp1fds9.js → event-logger-xdk9p2qn.js} +4 -4
- package/dist/chunks/{repository-cache-a6964z1k.js → event-logger-xe40c49s.js} +43 -43
- package/dist/chunks/{repository-cache-gpzeq7j5.js → event-logger-xfwsg613.js} +20 -20
- package/dist/chunks/{repository-cache-yfksphsg.js → event-logger-xh9ky465.js} +13 -13
- package/dist/chunks/{repository-cache-t9ra34wt.js → event-logger-xr2kbdek.js} +9 -9
- package/dist/chunks/{repository-cache-mre670nb.js → event-logger-xtqeprzx.js} +16 -16
- package/dist/chunks/{repository-cache-48frr5ey.js → event-logger-xyw3p85n.js} +24 -24
- package/dist/chunks/{repository-cache-y1fvbwt7.js → event-logger-y1fvbwt7.js} +1 -1
- package/dist/chunks/{repository-cache-8aaqm6qj.js → event-logger-y1qqcj8h.js} +8 -8
- package/dist/chunks/{repository-cache-v41jw1xq.js → event-logger-y40kyw7n.js} +42 -42
- package/dist/chunks/{repository-cache-dpkg50ah.js → event-logger-y71avatq.js} +4 -4
- package/dist/chunks/{repository-cache-p1p3hvby.js → event-logger-yb0nnf5a.js} +3 -3
- package/dist/chunks/{repository-cache-yrhqyw5v.js → event-logger-yrhqyw5v.js} +1 -1
- package/dist/chunks/{repository-cache-hzbq48p7.js → event-logger-yt79nyat.js} +6 -6
- package/dist/chunks/{repository-cache-0mrd04w5.js → event-logger-yyq5wwvp.js} +35 -35
- package/dist/chunks/{repository-cache-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
- package/dist/chunks/event-logger-z2cwt4s7.js +252 -0
- package/dist/chunks/{repository-cache-t4wnk216.js → event-logger-z82rkb9m.js} +3 -3
- package/dist/chunks/{repository-cache-3g7y17n3.js → event-logger-z8rfaqzv.js} +27 -27
- package/dist/chunks/{repository-cache-3rbph65y.js → event-logger-zcayt5jj.js} +41 -41
- package/dist/chunks/{repository-cache-58s7bv4e.js → event-logger-zfv7fwfa.js} +34 -34
- package/dist/chunks/{repository-cache-3556dn8t.js → event-logger-znsx74x0.js} +1 -1
- package/dist/chunks/{repository-cache-zr2ceqn5.js → event-logger-zr2ceqn5.js} +1 -1
- package/dist/chunks/{repository-cache-v30h9xz5.js → event-logger-zwq83wym.js} +22 -22
- package/dist/chunks/{repository-cache-zxq2ej10.js → event-logger-zxq2ej10.js} +1 -1
- package/dist/chunks/{repository-cache-v6evfva1.js → event-logger-zypmz1pm.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -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 +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/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 +226 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +104 -104
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +363 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +85 -85
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +75 -75
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +105 -105
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -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 +124 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +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 +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +120 -120
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- 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 +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +72 -72
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +354 -354
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +97 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +135 -135
- 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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +225 -225
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +116 -116
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -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 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +211 -211
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +221 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +5 -5
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +106 -106
- package/dist/snapshot.js +89 -89
- 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 +124 -124
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- 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 +216 -216
- package/dist/tool/plugin/skill.js +105 -105
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- 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 +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/repository-cache-93qh2cqg.js +0 -507
- package/dist/chunks/repository-cache-at67ztw2.js +0 -26
- package/dist/chunks/repository-cache-cqtfknxy.js +0 -252
- /package/dist/chunks/{repository-cache-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-cache-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-cache-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-cache-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-cache-1kg9ymc8.js → event-logger-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{repository-cache-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
- /package/dist/chunks/{repository-cache-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-cache-2axfhc9x.js → event-logger-2axfhc9x.js} +0 -0
- /package/dist/chunks/{repository-cache-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-cache-34c7v6d4.js → event-logger-34c7v6d4.js} +0 -0
- /package/dist/chunks/{repository-cache-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-cache-3asan66x.js → event-logger-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-cache-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-cache-3w5fmr99.js → event-logger-3w5fmr99.js} +0 -0
- /package/dist/chunks/{repository-cache-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-cache-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-cache-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-cache-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-cache-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-cache-53557ph1.js → event-logger-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-cache-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-cache-6prwharc.js → event-logger-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-cache-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-cache-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-cache-822emrt2.js → event-logger-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-cache-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-cache-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-cache-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
- /package/dist/chunks/{repository-cache-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-cache-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-cache-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-cache-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-cache-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-cache-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-cache-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-cache-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-cache-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cache-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cache-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-cache-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-cache-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-cache-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
- /package/dist/chunks/{repository-cache-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-cache-df08tz66.js → event-logger-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-cache-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-cache-e3qxr5gk.js → event-logger-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{repository-cache-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-cache-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-cache-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-cache-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-cache-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-cache-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-cache-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-cache-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-cache-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-cache-fxgpk5d8.js → event-logger-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{repository-cache-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-cache-g86h250q.js → event-logger-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-cache-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-cache-gftt206x.js → event-logger-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-cache-hjbc5kem.js → event-logger-hjbc5kem.js} +0 -0
- /package/dist/chunks/{repository-cache-hk9envan.js → event-logger-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-cache-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-cache-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-cache-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
- /package/dist/chunks/{repository-cache-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-cache-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-cache-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-cache-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-cache-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-cache-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-cache-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-cache-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-cache-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-cache-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-cache-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-cache-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-cache-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-cache-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
- /package/dist/chunks/{repository-cache-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-cache-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-cache-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-cache-sk3qaz4a.js → event-logger-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{repository-cache-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-cache-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-cache-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{repository-cache-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-cache-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-cache-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-cache-x61499pn.js → event-logger-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-cache-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-cache-y8cydn3q.js → event-logger-y8cydn3q.js} +0 -0
- /package/dist/chunks/{repository-cache-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-cache-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-cache-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
- /package/dist/chunks/{repository-cache-z5v4ffb3.js → event-logger-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{repository-cache-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./event-logger-fzaeg2ds.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./event-logger-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./event-logger-mpk0rfs5.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID12,
|
|
14
|
+
Service73,
|
|
15
|
+
node77,
|
|
16
|
+
Event16
|
|
17
|
+
} from "./event-logger-qv6rw298.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service76,
|
|
20
|
+
node80
|
|
21
|
+
} from "./event-logger-tw51v10a.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
25
|
+
|
|
26
|
+
// src/aisdk-native.ts
|
|
27
|
+
var exports_aisdk_native = {};
|
|
28
|
+
__export(exports_aisdk_native, {
|
|
29
|
+
AISDKNative: () => exports_aisdk_native,
|
|
30
|
+
native: () => native2,
|
|
31
|
+
rewrite: () => rewrite2
|
|
32
|
+
});
|
|
33
|
+
import { Effect as Effect2, Option as Option2, Schema as Schema2, Struct as Struct2 } from "effect";
|
|
25
34
|
|
|
26
35
|
// src/provider.ts
|
|
27
36
|
var exports_provider3 = {};
|
|
@@ -29,13 +38,13 @@ __export(exports_provider3, {
|
|
|
29
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
30
39
|
Compaction: () => Compaction3,
|
|
31
40
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
32
|
-
Event: () =>
|
|
33
|
-
ID: () =>
|
|
41
|
+
Event: () => Event15,
|
|
42
|
+
ID: () => ID11,
|
|
34
43
|
Info: () => Info26,
|
|
35
44
|
LoadError: () => LoadError3,
|
|
36
45
|
Provider: () => exports_provider3,
|
|
37
46
|
Request: () => Request3,
|
|
38
|
-
Service: () =>
|
|
47
|
+
Service: () => Service72,
|
|
39
48
|
Settings: () => Settings2,
|
|
40
49
|
Transport: () => Transport2,
|
|
41
50
|
aisdk: () => aisdk2,
|
|
@@ -45,12 +54,12 @@ __export(exports_provider3, {
|
|
|
45
54
|
mergeOverlay: () => mergeOverlay2,
|
|
46
55
|
modelSettings: () => modelSettings2,
|
|
47
56
|
nativeSettings: () => nativeSettings2,
|
|
48
|
-
node: () =>
|
|
57
|
+
node: () => node76,
|
|
49
58
|
packageName: () => packageName2,
|
|
50
59
|
timeout: () => timeout2,
|
|
51
60
|
timeouts: () => timeouts2
|
|
52
61
|
});
|
|
53
|
-
import { Context, Effect
|
|
62
|
+
import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
|
|
54
63
|
import { Provider } from "@opencode/schema/provider";
|
|
55
64
|
import { Model } from "@opencode/schema/model";
|
|
56
65
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -59,265 +68,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
59
68
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
60
69
|
import { Credential } from "@opencode/schema/credential";
|
|
61
70
|
import { freeze } from "immer";
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var exports_aisdk_native = {};
|
|
65
|
-
__export(exports_aisdk_native, {
|
|
66
|
-
AISDKNative: () => exports_aisdk_native,
|
|
67
|
-
native: () => native2,
|
|
68
|
-
rewrite: () => rewrite2
|
|
69
|
-
});
|
|
70
|
-
import { Effect, Option, Schema, Struct } from "effect";
|
|
71
|
-
function rewrite2(target, input) {
|
|
72
|
-
if (input.specifier === undefined)
|
|
73
|
-
return;
|
|
74
|
-
const plain = resolve(input.specifier, input);
|
|
75
|
-
if (!plain)
|
|
76
|
-
return;
|
|
77
|
-
const settings = decode(target.settings ?? {});
|
|
78
|
-
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
79
|
-
const translated = options(replacement, input.modelID, settings);
|
|
80
|
-
if (target.package !== undefined || replacement !== input.specifier)
|
|
81
|
-
target.package = replacement;
|
|
82
|
-
target.settings = target.settings === undefined ? undefined : {
|
|
83
|
-
...translated.settings,
|
|
84
|
-
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
85
|
-
};
|
|
86
|
-
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
87
|
-
target.body = mergeOverlay2(translated.body, target.body);
|
|
88
|
-
target.variants = target.variants?.map((variant) => {
|
|
89
|
-
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
90
|
-
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
91
|
-
const body = mergeOverlay2(overlay.body, variant.body);
|
|
92
|
-
return {
|
|
93
|
-
id: variant.id,
|
|
94
|
-
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
95
|
-
...headers === undefined ? {} : { headers },
|
|
96
|
-
...body === undefined ? {} : { body }
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
var PACKAGES = {
|
|
101
|
-
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
102
|
-
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
103
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
104
|
-
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
105
|
-
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
106
|
-
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
107
|
-
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
108
|
-
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
109
|
-
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
110
|
-
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
111
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
112
|
-
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
113
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
114
|
-
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
115
|
-
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
116
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
117
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
118
|
-
};
|
|
119
|
-
var protocols = (name) => ({
|
|
120
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
121
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
122
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
123
|
-
});
|
|
124
|
-
var HOSTS = {
|
|
125
|
-
alibaba: protocols("alibaba"),
|
|
126
|
-
"alibaba-cn": protocols("alibaba"),
|
|
127
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
128
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
129
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
130
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
131
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
132
|
-
"cloudflare-ai-gateway": {
|
|
133
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
134
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
135
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
136
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
137
|
-
},
|
|
138
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
139
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
140
|
-
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
141
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
142
|
-
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
143
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
144
|
-
meta: protocols("meta"),
|
|
145
|
-
minimax: protocols("minimax"),
|
|
146
|
-
"minimax-cn": protocols("minimax"),
|
|
147
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
148
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
149
|
-
moonshotai: protocols("moonshot"),
|
|
150
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
151
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
152
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
153
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
154
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
155
|
-
};
|
|
156
|
-
var NATIVE = new Set([
|
|
157
|
-
...Object.values(PACKAGES),
|
|
158
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
159
|
-
"@opencode/ai/providers/azure/chat",
|
|
160
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
161
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
162
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
163
|
-
]);
|
|
164
|
-
function native2(npm, context) {
|
|
165
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
166
|
-
if (host)
|
|
167
|
-
return host;
|
|
168
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
169
|
-
return mantle(context.modelID);
|
|
170
|
-
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
171
|
-
return "@opencode/ai/providers/azure/chat";
|
|
172
|
-
return PACKAGES[npm];
|
|
173
|
-
}
|
|
174
|
-
var mantle = (modelID) => {
|
|
175
|
-
if (modelID === undefined)
|
|
176
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
177
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
178
|
-
};
|
|
179
|
-
function resolve(specifier, context) {
|
|
180
|
-
const npm = packageName2(specifier);
|
|
181
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
182
|
-
return native2(npm, context);
|
|
183
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
184
|
-
return mantle(context.modelID);
|
|
185
|
-
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
186
|
-
return "@opencode/ai/providers/azure/chat";
|
|
187
|
-
return NATIVE.has(npm) ? npm : undefined;
|
|
188
|
-
}
|
|
189
|
-
function options(replacement, modelID, settings) {
|
|
190
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
191
|
-
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
192
|
-
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
193
|
-
return {
|
|
194
|
-
settings: {
|
|
195
|
-
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
196
|
-
...thinking === undefined ? {} : { thinking }
|
|
197
|
-
},
|
|
198
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
199
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
200
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
201
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
var BEDROCK_KEYS = [
|
|
205
|
-
"bearerToken",
|
|
206
|
-
"endpoint",
|
|
207
|
-
"credentials",
|
|
208
|
-
"credentialProvider",
|
|
209
|
-
"accessKeyId",
|
|
210
|
-
"secretAccessKey",
|
|
211
|
-
"sessionToken"
|
|
212
|
-
];
|
|
213
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
214
|
-
function bedrockSettings(settings, converse) {
|
|
215
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
216
|
-
const credentials = settings.credentials ?? settings;
|
|
217
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
218
|
-
return {
|
|
219
|
-
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
220
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
221
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
222
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
223
|
-
credentials: {
|
|
224
|
-
...region === undefined ? {} : { region },
|
|
225
|
-
accessKeyId: credentials.accessKeyId,
|
|
226
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
227
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
function bedrockThinking(modelID, settings) {
|
|
233
|
-
const reasoning = settings.reasoningConfig;
|
|
234
|
-
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
235
|
-
return;
|
|
236
|
-
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
237
|
-
}
|
|
238
|
-
function bedrockRequest(modelID, settings) {
|
|
239
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
240
|
-
const reasoning = settings.reasoningConfig;
|
|
241
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
242
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
243
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
244
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
245
|
-
const type = reasoning?.type;
|
|
246
|
-
const budget = reasoning?.budgetTokens;
|
|
247
|
-
const display = reasoning?.display;
|
|
248
|
-
const betas = settings.anthropicBeta ?? [];
|
|
249
|
-
const fields = mergeOverlay2(additional, {
|
|
250
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
251
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
252
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
253
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
254
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
255
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
256
|
-
reasoningConfig: {
|
|
257
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
258
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
259
|
-
maxReasoningEffort: effort
|
|
260
|
-
}
|
|
261
|
-
} : {}
|
|
262
|
-
});
|
|
263
|
-
const body = {
|
|
264
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
265
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
266
|
-
};
|
|
267
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
268
|
-
}
|
|
269
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
270
|
-
function openRouterRequest(settings) {
|
|
271
|
-
const headers = mergeHeaders2({
|
|
272
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
273
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
274
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
275
|
-
}, settings.headers) ?? {};
|
|
276
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
277
|
-
}
|
|
278
|
-
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
279
|
-
var Credentials = Schema.Struct({
|
|
280
|
-
accessKeyId: Schema.String,
|
|
281
|
-
secretAccessKey: Schema.String,
|
|
282
|
-
sessionToken: lenient(Schema.String),
|
|
283
|
-
region: lenient(Schema.String)
|
|
284
|
-
});
|
|
285
|
-
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
286
|
-
apiKey: lenient(Schema.String),
|
|
287
|
-
baseURL: lenient(Schema.String),
|
|
288
|
-
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
289
|
-
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
290
|
-
useCompletionUrls: lenient(Schema.Boolean),
|
|
291
|
-
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
292
|
-
bearerToken: lenient(Schema.String),
|
|
293
|
-
endpoint: lenient(Schema.String),
|
|
294
|
-
region: lenient(Schema.String),
|
|
295
|
-
credentials: lenient(Credentials),
|
|
296
|
-
accessKeyId: lenient(Schema.String),
|
|
297
|
-
secretAccessKey: lenient(Schema.String),
|
|
298
|
-
sessionToken: lenient(Schema.String),
|
|
299
|
-
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
300
|
-
serviceTier: lenient(Schema.String),
|
|
301
|
-
reasoningConfig: lenient(Schema.Struct({
|
|
302
|
-
type: lenient(Schema.String),
|
|
303
|
-
display: lenient(Schema.String),
|
|
304
|
-
maxReasoningEffort: lenient(Schema.String),
|
|
305
|
-
budgetTokens: lenient(Schema.Number)
|
|
306
|
-
})),
|
|
307
|
-
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
308
|
-
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
309
|
-
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
310
|
-
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
311
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
312
|
-
appName: lenient(Schema.String),
|
|
313
|
-
appUrl: lenient(Schema.String),
|
|
314
|
-
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
315
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
316
|
-
var decode = Schema.decodeUnknownSync(Legacy);
|
|
317
|
-
|
|
318
|
-
// src/provider.ts
|
|
319
|
-
import { Event as Event16 } from "@opencode/schema/provider";
|
|
320
|
-
var ID12 = Provider.ID;
|
|
71
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
72
|
+
var ID11 = Provider.ID;
|
|
321
73
|
var AISDK_PREFIX2 = "aisdk:";
|
|
322
74
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
323
75
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -328,12 +80,12 @@ function packageName2(value) {
|
|
|
328
80
|
return value;
|
|
329
81
|
return value.slice(AISDK_PREFIX2.length);
|
|
330
82
|
}
|
|
331
|
-
var JsonRecord =
|
|
332
|
-
var decodeJsonRecord =
|
|
83
|
+
var JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
84
|
+
var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
|
|
333
85
|
|
|
334
|
-
class LoadError3 extends
|
|
335
|
-
package:
|
|
336
|
-
cause:
|
|
86
|
+
class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
|
|
87
|
+
package: Schema.String,
|
|
88
|
+
cause: Schema.Defect()
|
|
337
89
|
}) {
|
|
338
90
|
}
|
|
339
91
|
var packages = new Map;
|
|
@@ -395,12 +147,12 @@ var builtins = new Map([
|
|
|
395
147
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
396
148
|
]
|
|
397
149
|
]);
|
|
398
|
-
var loadPackage2 =
|
|
150
|
+
var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
399
151
|
const specifier = packageName2(input);
|
|
400
152
|
const builtin = builtins.get(specifier);
|
|
401
153
|
if (builtin)
|
|
402
154
|
return yield* importPackage(specifier, specifier, builtin);
|
|
403
|
-
const resolved = yield*
|
|
155
|
+
const resolved = yield* Effect.sync(() => {
|
|
404
156
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
405
157
|
return specifier;
|
|
406
158
|
try {
|
|
@@ -419,8 +171,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
419
171
|
}
|
|
420
172
|
const parts = specifier.split("/");
|
|
421
173
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
422
|
-
const installed = yield* npm.add(root).pipe(
|
|
423
|
-
const entrypoint = yield*
|
|
174
|
+
const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
175
|
+
const entrypoint = yield* Effect.try({
|
|
424
176
|
try: () => resolveModule(specifier, installed.directory),
|
|
425
177
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
426
178
|
});
|
|
@@ -429,15 +181,15 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
429
181
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
|
|
430
182
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
431
183
|
function nativeSettings2(settings) {
|
|
432
|
-
return
|
|
184
|
+
return Struct.omit(settings, CORE_KEYS);
|
|
433
185
|
}
|
|
434
186
|
function modelSettings2(settings) {
|
|
435
|
-
return settings &&
|
|
187
|
+
return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
|
|
436
188
|
}
|
|
437
|
-
var decodeTimeout =
|
|
189
|
+
var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
|
|
438
190
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
439
191
|
function timeout2(value) {
|
|
440
|
-
return
|
|
192
|
+
return Option.getOrUndefined(decodeTimeout(value));
|
|
441
193
|
}
|
|
442
194
|
function timeouts2(settings) {
|
|
443
195
|
return {
|
|
@@ -477,7 +229,7 @@ var Transport2 = Provider.Transport;
|
|
|
477
229
|
var Settings2 = Provider.Settings;
|
|
478
230
|
var Info26 = Provider.Info;
|
|
479
231
|
|
|
480
|
-
class
|
|
232
|
+
class Service72 extends Context.Service()("@opencode/Provider") {
|
|
481
233
|
}
|
|
482
234
|
var definitions = new WeakMap;
|
|
483
235
|
function index(providerID, models) {
|
|
@@ -490,10 +242,10 @@ function index(providerID, models) {
|
|
|
490
242
|
definitions.set(models, indexes);
|
|
491
243
|
return result;
|
|
492
244
|
}
|
|
493
|
-
var layer = Layer.effect(
|
|
494
|
-
const bus = yield*
|
|
495
|
-
const integrations = yield*
|
|
496
|
-
const location = yield*
|
|
245
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
246
|
+
const bus = yield* Service81;
|
|
247
|
+
const integrations = yield* Service73;
|
|
248
|
+
const location = yield* Service76;
|
|
497
249
|
const state = create3({
|
|
498
250
|
name: "provider",
|
|
499
251
|
initial: () => new Map,
|
|
@@ -572,9 +324,9 @@ var layer = Layer.effect(Service69, Effect2.gen(function* () {
|
|
|
572
324
|
},
|
|
573
325
|
notify: () => notify
|
|
574
326
|
});
|
|
575
|
-
yield*
|
|
327
|
+
yield* Effect.addFinalizer(() => shutdown2(state.reload()));
|
|
576
328
|
let cached;
|
|
577
|
-
const snapshot =
|
|
329
|
+
const snapshot = Effect.fn("Provider.snapshot")(function* () {
|
|
578
330
|
while (true) {
|
|
579
331
|
const revision = integrations.revision();
|
|
580
332
|
const records = state.get();
|
|
@@ -585,7 +337,7 @@ var layer = Layer.effect(Service69, Effect2.gen(function* () {
|
|
|
585
337
|
const available = Array.from(records.values()).filter((record) => {
|
|
586
338
|
if (record.provider.activation === "disabled")
|
|
587
339
|
return false;
|
|
588
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
340
|
+
const integration = byID.get(record.provider.integrationID ?? ID12.make(record.provider.id));
|
|
589
341
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
590
342
|
return false;
|
|
591
343
|
if (record.provider.activation === "enabled")
|
|
@@ -602,7 +354,7 @@ var layer = Layer.effect(Service69, Effect2.gen(function* () {
|
|
|
602
354
|
}
|
|
603
355
|
});
|
|
604
356
|
let published;
|
|
605
|
-
const notify =
|
|
357
|
+
const notify = Effect.gen(function* () {
|
|
606
358
|
const value = yield* snapshot();
|
|
607
359
|
if (value === published)
|
|
608
360
|
return;
|
|
@@ -611,19 +363,19 @@ var layer = Layer.effect(Service69, Effect2.gen(function* () {
|
|
|
611
363
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
612
364
|
});
|
|
613
365
|
});
|
|
614
|
-
yield* bus.subscribe([
|
|
615
|
-
return
|
|
366
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
367
|
+
return Service72.of({
|
|
616
368
|
transform: state.transform,
|
|
617
369
|
reload: state.reload,
|
|
618
|
-
get:
|
|
619
|
-
all:
|
|
620
|
-
available:
|
|
370
|
+
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
371
|
+
all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
372
|
+
available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
|
|
621
373
|
snapshot
|
|
622
374
|
});
|
|
623
375
|
}));
|
|
624
|
-
var
|
|
625
|
-
var importPackage =
|
|
626
|
-
const module = yield*
|
|
376
|
+
var node76 = makeLocationNode({ service: Service72, layer, deps: [node85, node77, node80] });
|
|
377
|
+
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
378
|
+
const module = yield* Effect.tryPromise({
|
|
627
379
|
try: () => {
|
|
628
380
|
const existing = packages.get(entrypoint);
|
|
629
381
|
if (existing)
|
|
@@ -643,4 +395,252 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
643
395
|
return module;
|
|
644
396
|
});
|
|
645
397
|
|
|
646
|
-
|
|
398
|
+
// src/aisdk-native.ts
|
|
399
|
+
function rewrite2(target, input) {
|
|
400
|
+
if (input.specifier === undefined)
|
|
401
|
+
return;
|
|
402
|
+
const plain = resolve(input.specifier, input);
|
|
403
|
+
if (!plain)
|
|
404
|
+
return;
|
|
405
|
+
const settings = decode(target.settings ?? {});
|
|
406
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
407
|
+
const translated = options(replacement, input.modelID, settings);
|
|
408
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
409
|
+
target.package = replacement;
|
|
410
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
411
|
+
...translated.settings,
|
|
412
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
413
|
+
};
|
|
414
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
415
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
416
|
+
target.variants = target.variants?.map((variant) => {
|
|
417
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
418
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
419
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
420
|
+
return {
|
|
421
|
+
id: variant.id,
|
|
422
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
423
|
+
...headers === undefined ? {} : { headers },
|
|
424
|
+
...body === undefined ? {} : { body }
|
|
425
|
+
};
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
var PACKAGES = {
|
|
429
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
430
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
431
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
432
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
433
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
434
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
435
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
436
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
437
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
438
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
439
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
440
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
441
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
442
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
443
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
444
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
445
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
446
|
+
};
|
|
447
|
+
var protocols = (name) => ({
|
|
448
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
449
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
450
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
451
|
+
});
|
|
452
|
+
var HOSTS = {
|
|
453
|
+
alibaba: protocols("alibaba"),
|
|
454
|
+
"alibaba-cn": protocols("alibaba"),
|
|
455
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
456
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
457
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
458
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
459
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
460
|
+
"cloudflare-ai-gateway": {
|
|
461
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
462
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
463
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
464
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
465
|
+
},
|
|
466
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
467
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
468
|
+
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
469
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
470
|
+
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
471
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
472
|
+
meta: protocols("meta"),
|
|
473
|
+
minimax: protocols("minimax"),
|
|
474
|
+
"minimax-cn": protocols("minimax"),
|
|
475
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
476
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
477
|
+
moonshotai: protocols("moonshot"),
|
|
478
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
479
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
480
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
481
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
482
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
483
|
+
};
|
|
484
|
+
var NATIVE = new Set([
|
|
485
|
+
...Object.values(PACKAGES),
|
|
486
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
487
|
+
"@opencode/ai/providers/azure/chat",
|
|
488
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
489
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
490
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
491
|
+
]);
|
|
492
|
+
function native2(npm, context) {
|
|
493
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
494
|
+
if (host)
|
|
495
|
+
return host;
|
|
496
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
497
|
+
return mantle(context.modelID);
|
|
498
|
+
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
499
|
+
return "@opencode/ai/providers/azure/chat";
|
|
500
|
+
return PACKAGES[npm];
|
|
501
|
+
}
|
|
502
|
+
var mantle = (modelID) => {
|
|
503
|
+
if (modelID === undefined)
|
|
504
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
505
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
506
|
+
};
|
|
507
|
+
function resolve(specifier, context) {
|
|
508
|
+
const npm = packageName2(specifier);
|
|
509
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
510
|
+
return native2(npm, context);
|
|
511
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
512
|
+
return mantle(context.modelID);
|
|
513
|
+
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
514
|
+
return "@opencode/ai/providers/azure/chat";
|
|
515
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
516
|
+
}
|
|
517
|
+
function options(replacement, modelID, settings) {
|
|
518
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
519
|
+
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
520
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
521
|
+
return {
|
|
522
|
+
settings: {
|
|
523
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
524
|
+
...thinking === undefined ? {} : { thinking }
|
|
525
|
+
},
|
|
526
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
527
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
528
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
529
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
var BEDROCK_KEYS = [
|
|
533
|
+
"bearerToken",
|
|
534
|
+
"endpoint",
|
|
535
|
+
"credentials",
|
|
536
|
+
"credentialProvider",
|
|
537
|
+
"accessKeyId",
|
|
538
|
+
"secretAccessKey",
|
|
539
|
+
"sessionToken"
|
|
540
|
+
];
|
|
541
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
542
|
+
function bedrockSettings(settings, converse) {
|
|
543
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
544
|
+
const credentials = settings.credentials ?? settings;
|
|
545
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
546
|
+
return {
|
|
547
|
+
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
548
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
549
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
550
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
551
|
+
credentials: {
|
|
552
|
+
...region === undefined ? {} : { region },
|
|
553
|
+
accessKeyId: credentials.accessKeyId,
|
|
554
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
555
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
function bedrockThinking(modelID, settings) {
|
|
561
|
+
const reasoning = settings.reasoningConfig;
|
|
562
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
563
|
+
return;
|
|
564
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
565
|
+
}
|
|
566
|
+
function bedrockRequest(modelID, settings) {
|
|
567
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
568
|
+
const reasoning = settings.reasoningConfig;
|
|
569
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
570
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
571
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
572
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
573
|
+
const type = reasoning?.type;
|
|
574
|
+
const budget = reasoning?.budgetTokens;
|
|
575
|
+
const display = reasoning?.display;
|
|
576
|
+
const betas = settings.anthropicBeta ?? [];
|
|
577
|
+
const fields = mergeOverlay2(additional, {
|
|
578
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
579
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
580
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
581
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
582
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
583
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
584
|
+
reasoningConfig: {
|
|
585
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
586
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
587
|
+
maxReasoningEffort: effort
|
|
588
|
+
}
|
|
589
|
+
} : {}
|
|
590
|
+
});
|
|
591
|
+
const body = {
|
|
592
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
593
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
594
|
+
};
|
|
595
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
596
|
+
}
|
|
597
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
598
|
+
function openRouterRequest(settings) {
|
|
599
|
+
const headers = mergeHeaders2({
|
|
600
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
601
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
602
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
603
|
+
}, settings.headers) ?? {};
|
|
604
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
605
|
+
}
|
|
606
|
+
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
|
|
607
|
+
var Credentials = Schema2.Struct({
|
|
608
|
+
accessKeyId: Schema2.String,
|
|
609
|
+
secretAccessKey: Schema2.String,
|
|
610
|
+
sessionToken: lenient(Schema2.String),
|
|
611
|
+
region: lenient(Schema2.String)
|
|
612
|
+
});
|
|
613
|
+
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
614
|
+
apiKey: lenient(Schema2.String),
|
|
615
|
+
baseURL: lenient(Schema2.String),
|
|
616
|
+
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
617
|
+
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
618
|
+
useCompletionUrls: lenient(Schema2.Boolean),
|
|
619
|
+
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
620
|
+
bearerToken: lenient(Schema2.String),
|
|
621
|
+
endpoint: lenient(Schema2.String),
|
|
622
|
+
region: lenient(Schema2.String),
|
|
623
|
+
credentials: lenient(Credentials),
|
|
624
|
+
accessKeyId: lenient(Schema2.String),
|
|
625
|
+
secretAccessKey: lenient(Schema2.String),
|
|
626
|
+
sessionToken: lenient(Schema2.String),
|
|
627
|
+
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
628
|
+
serviceTier: lenient(Schema2.String),
|
|
629
|
+
reasoningConfig: lenient(Schema2.Struct({
|
|
630
|
+
type: lenient(Schema2.String),
|
|
631
|
+
display: lenient(Schema2.String),
|
|
632
|
+
maxReasoningEffort: lenient(Schema2.String),
|
|
633
|
+
budgetTokens: lenient(Schema2.Number)
|
|
634
|
+
})),
|
|
635
|
+
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
636
|
+
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
637
|
+
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
638
|
+
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
639
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
640
|
+
appName: lenient(Schema2.String),
|
|
641
|
+
appUrl: lenient(Schema2.String),
|
|
642
|
+
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
643
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
644
|
+
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
645
|
+
|
|
646
|
+
export { rewrite2, native2, exports_aisdk_native, ID11, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info26, Service72, node76, exports_provider3, Event15 };
|