@opencode/core 0.0.0-dev-19560 → 0.0.0-dev-19562
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 +78 -78
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/catalog.js +84 -84
- package/dist/chunks/{instance-atkakgh2.js → model-resolver-00e8a32v.js} +7 -7
- package/dist/chunks/{instance-gkv26jye.js → model-resolver-00n9sm3e.js} +9 -9
- package/dist/chunks/{instance-2k8khapm.js → model-resolver-0jwsre1p.js} +5 -5
- package/dist/chunks/{instance-5qsb12y6.js → model-resolver-0mqwdcna.js} +27 -27
- package/dist/chunks/{instance-0paq2nw3.js → model-resolver-0paq2nw3.js} +1 -1
- package/dist/chunks/{instance-0q0f95c6.js → model-resolver-0q0f95c6.js} +1 -1
- package/dist/chunks/{instance-wbkyxrgf.js → model-resolver-0r7yqxbf.js} +5 -5
- package/dist/chunks/{instance-dfe8djrf.js → model-resolver-0v53mg2y.js} +4 -4
- package/dist/chunks/{instance-a68v6zx7.js → model-resolver-13ggeyh8.js} +8 -8
- package/dist/chunks/{instance-92twm15x.js → model-resolver-14fxtwre.js} +47 -47
- package/dist/chunks/{instance-7b5gkxp8.js → model-resolver-15abmk5b.js} +19 -19
- package/dist/chunks/{instance-j028xdjb.js → model-resolver-1bbkgx8g.js} +3 -3
- package/dist/chunks/{instance-ex5dzrg8.js → model-resolver-1cn8af6j.js} +14 -14
- package/dist/chunks/{instance-1dazxqgg.js → model-resolver-1dazxqgg.js} +2 -2
- package/dist/chunks/{instance-5mmf80mp.js → model-resolver-1xzg4q7f.js} +8 -8
- package/dist/chunks/{instance-21r38tys.js → model-resolver-21r38tys.js} +1 -1
- package/dist/chunks/{instance-6h73sxmp.js → model-resolver-2402vzrj.js} +5 -5
- package/dist/chunks/{instance-s5bmgc6k.js → model-resolver-24p1656x.js} +34 -34
- package/dist/chunks/{instance-2a5m3afh.js → model-resolver-2a5m3afh.js} +1 -1
- package/dist/chunks/{instance-cpy6gm2a.js → model-resolver-2d57kztd.js} +6 -6
- package/dist/chunks/{instance-53fk4k5k.js → model-resolver-2jb6wffc.js} +32 -32
- package/dist/chunks/{instance-n4mt7cy9.js → model-resolver-2ps3j6a4.js} +26 -26
- package/dist/chunks/{instance-vmvrpa7f.js → model-resolver-2rwb14mb.js} +2 -2
- package/dist/chunks/{instance-d6s6sv1w.js → model-resolver-390mr0wc.js} +5 -5
- package/dist/chunks/{instance-2kccvtj4.js → model-resolver-3a0pq44c.js} +11 -11
- package/dist/chunks/{instance-c8sb3dx4.js → model-resolver-3aa2qh1v.js} +17 -17
- package/dist/chunks/{instance-zeqhkn80.js → model-resolver-3adkf2hq.js} +25 -25
- package/dist/chunks/{instance-0z1bdv2c.js → model-resolver-3ccz5h33.js} +25 -25
- package/dist/chunks/{instance-e5xpd6yj.js → model-resolver-3f15rfkp.js} +6 -6
- package/dist/chunks/{instance-3hepkmqq.js → model-resolver-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-3smtnn6g.js → model-resolver-3smtnn6g.js} +1 -1
- package/dist/chunks/{instance-3tvqynh2.js → model-resolver-3tvqynh2.js} +1 -1
- package/dist/chunks/{instance-tqgpkrg9.js → model-resolver-472r768p.js} +3 -3
- package/dist/chunks/{instance-zam36egm.js → model-resolver-49sc2kz0.js} +9 -9
- package/dist/chunks/{instance-3zwnvr1n.js → model-resolver-4cfrandj.js} +55 -55
- package/dist/chunks/{instance-drgn1tc1.js → model-resolver-4hdjqv5n.js} +20 -20
- package/dist/chunks/{instance-hchjte0m.js → model-resolver-4j4p0yst.js} +5 -5
- package/dist/chunks/{instance-wycsdkc3.js → model-resolver-4w79hth0.js} +9 -9
- package/dist/chunks/{instance-p8bp9xy3.js → model-resolver-4y9xcd5s.js} +14 -14
- package/dist/chunks/{instance-k2dherqe.js → model-resolver-50spkatp.js} +1 -1
- package/dist/chunks/{instance-y56ehv6b.js → model-resolver-52vrzpkh.js} +9 -9
- package/dist/chunks/{instance-mfqp6xfm.js → model-resolver-56gdpj1q.js} +6 -6
- package/dist/chunks/{instance-cqqhcsta.js → model-resolver-5907cmhj.js} +12 -12
- package/dist/chunks/{instance-hyqhh812.js → model-resolver-5cneagdz.js} +20 -21
- package/dist/chunks/{instance-vgt8j0sp.js → model-resolver-5d9hgq6a.js} +25 -25
- package/dist/chunks/{instance-5daktx2q.js → model-resolver-5daktx2q.js} +1 -1
- package/dist/chunks/{instance-cfadke7g.js → model-resolver-5pqk165g.js} +18 -18
- package/dist/chunks/{instance-5t3nmthw.js → model-resolver-5t3nmthw.js} +2 -2
- package/dist/chunks/{instance-8xz3zc3b.js → model-resolver-5w049mzn.js} +17 -17
- package/dist/chunks/{instance-h3z8dn0k.js → model-resolver-61rt74dg.js} +11 -11
- package/dist/chunks/{instance-669tq793.js → model-resolver-669tq793.js} +1 -1
- package/dist/chunks/{instance-6msgmcgs.js → model-resolver-6msgmcgs.js} +1 -1
- package/dist/chunks/{instance-9v1w22sa.js → model-resolver-6q8410ef.js} +10 -10
- package/dist/chunks/{instance-71q4at8m.js → model-resolver-71q4at8m.js} +1 -1
- package/dist/chunks/{instance-e0renkat.js → model-resolver-76wy3d38.js} +31 -31
- package/dist/chunks/{instance-7bmhse3q.js → model-resolver-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-3vg8y1ak.js → model-resolver-7gwa0hgg.js} +6 -6
- package/dist/chunks/{instance-1wkp69xd.js → model-resolver-7kzjj59j.js} +9 -9
- package/dist/chunks/{instance-sbz3393s.js → model-resolver-7qpx1xb8.js} +38 -38
- package/dist/chunks/{instance-hknnrgbc.js → model-resolver-7srvnxx8.js} +4 -4
- package/dist/chunks/{instance-774mmb8v.js → model-resolver-7yhtqe52.js} +6 -6
- package/dist/chunks/{instance-we1nej8k.js → model-resolver-7z0etnq8.js} +9 -9
- package/dist/chunks/{instance-mth96381.js → model-resolver-84r56gr5.js} +1 -1
- package/dist/chunks/{instance-tcezcvh9.js → model-resolver-89znhe33.js} +4 -4
- package/dist/chunks/{instance-j65qfcye.js → model-resolver-8as59qyc.js} +8 -8
- package/dist/chunks/{instance-cq9s2pzj.js → model-resolver-8cj6vp2e.js} +8 -8
- package/dist/chunks/{instance-8d7r5vzw.js → model-resolver-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instance-7jc459k6.js → model-resolver-8jnsm5sz.js} +4 -4
- package/dist/chunks/{instance-ngqd1g3c.js → model-resolver-8nk5pr3x.js} +4 -4
- package/dist/chunks/{instance-8p4f9s12.js → model-resolver-8p4f9s12.js} +2 -2
- package/dist/chunks/{instance-36y50440.js → model-resolver-8q68r2wm.js} +36 -36
- package/dist/chunks/{instance-d0jvxa8c.js → model-resolver-8ra0ktpd.js} +1 -1
- package/dist/chunks/{instance-g6ybfmtd.js → model-resolver-94jd98dy.js} +3 -3
- package/dist/chunks/{instance-ad0exsgz.js → model-resolver-97c56c16.js} +24 -24
- package/dist/chunks/{instance-xaj3xdtg.js → model-resolver-9anxe710.js} +4 -4
- package/dist/chunks/{instance-mf0cqsb6.js → model-resolver-9gh4k6y6.js} +5 -5
- package/dist/chunks/{instance-sth5w77v.js → model-resolver-9qc5egqb.js} +9 -9
- package/dist/chunks/{instance-gzz0cat6.js → model-resolver-9xpp069q.js} +36 -36
- package/dist/chunks/{instance-b0ew86wa.js → model-resolver-9ynvy50g.js} +18 -18
- package/dist/chunks/{instance-b685mj8n.js → model-resolver-a10qfg7z.js} +13 -13
- package/dist/chunks/{instance-a1bz86dw.js → model-resolver-a1bz86dw.js} +3 -3
- package/dist/chunks/{instance-aaet6srn.js → model-resolver-aaet6srn.js} +2 -2
- package/dist/chunks/{instance-69m4g4fy.js → model-resolver-aawxrc71.js} +8 -8
- package/dist/chunks/{instance-pjc1x023.js → model-resolver-ae2xf8y7.js} +46 -46
- package/dist/chunks/{instance-2vd2t3ny.js → model-resolver-agnae2h9.js} +13 -13
- package/dist/chunks/{instance-mnd9tb9p.js → model-resolver-ah1s8aaq.js} +89 -89
- package/dist/chunks/{instance-7dvjm3dp.js → model-resolver-ajpf6mah.js} +6 -6
- package/dist/chunks/{instance-qx23bgy9.js → model-resolver-b1k5mb32.js} +19 -19
- package/dist/chunks/{instance-ehtqn8cz.js → model-resolver-b21wsm0h.js} +14 -14
- package/dist/chunks/{instance-8c5cat9p.js → model-resolver-b4ymjb7p.js} +34 -34
- package/dist/chunks/{instance-b6gygkdw.js → model-resolver-b6gygkdw.js} +2 -2
- package/dist/chunks/{instance-k0dqn2qy.js → model-resolver-b9dtzdzx.js} +15 -15
- package/dist/chunks/{instance-v8q3yec4.js → model-resolver-ba05va59.js} +32 -32
- package/dist/chunks/{instance-t6kmwkf4.js → model-resolver-ba67t4eh.js} +16 -16
- package/dist/chunks/{instance-5mrs3756.js → model-resolver-baajpyvs.js} +24 -24
- package/dist/chunks/{instance-kk2xw3y7.js → model-resolver-bh23canw.js} +10 -10
- package/dist/chunks/{instance-azcgtc4a.js → model-resolver-bw3m288y.js} +45 -45
- package/dist/chunks/{instance-83c75zz2.js → model-resolver-c20v218m.js} +12 -12
- package/dist/chunks/{instance-jxcs6xvz.js → model-resolver-c2nzhxaj.js} +11 -11
- package/dist/chunks/{instance-8hd4v6n4.js → model-resolver-c7ssnmaj.js} +4 -4
- package/dist/chunks/{instance-we06zyxx.js → model-resolver-cdqcdd4q.js} +4 -4
- package/dist/chunks/{instance-cfpkc3c9.js → model-resolver-cfpkc3c9.js} +2 -2
- package/dist/chunks/{instance-r837sqjd.js → model-resolver-ck5d9zpy.js} +10 -10
- package/dist/chunks/{instance-bajakh74.js → model-resolver-cq37gk0t.js} +4 -4
- package/dist/chunks/{instance-q5asdkn4.js → model-resolver-ctmr8zqa.js} +4 -4
- package/dist/chunks/{instance-czt6nj1g.js → model-resolver-d9hjbqwg.js} +7 -7
- package/dist/chunks/{instance-zsdcbzkn.js → model-resolver-d9mtv62x.js} +22 -22
- package/dist/chunks/{instance-wdq4bp78.js → model-resolver-dcf7e85t.js} +6 -6
- package/dist/chunks/{instance-d34phyfm.js → model-resolver-ddj422qv.js} +26 -26
- package/dist/chunks/{instance-pa8pe2x7.js → model-resolver-dgj0dq1g.js} +8 -8
- package/dist/chunks/{instance-6em5btvd.js → model-resolver-dhtkj142.js} +10 -10
- package/dist/chunks/{instance-ptq0xf58.js → model-resolver-dj4cd8g6.js} +38 -38
- package/dist/chunks/{instance-h64xq93z.js → model-resolver-drq8acbn.js} +25 -25
- package/dist/chunks/{instance-zx6465ex.js → model-resolver-dsavrnz6.js} +11 -11
- package/dist/chunks/{instance-e5nv3ght.js → model-resolver-e5nv3ght.js} +2 -2
- package/dist/chunks/model-resolver-e6q3pz3t.js +76 -0
- package/dist/chunks/{instance-4qgj4wmy.js → model-resolver-e6qnhjcz.js} +15 -15
- package/dist/chunks/{instance-e82z9tr0.js → model-resolver-e82z9tr0.js} +1 -1
- package/dist/chunks/{instance-7j92jdde.js → model-resolver-ec8389mk.js} +4 -4
- package/dist/chunks/{instance-zqexjq4g.js → model-resolver-egap6qp7.js} +20 -20
- package/dist/chunks/{instance-ypr31vm5.js → model-resolver-ehav94k5.js} +17 -17
- package/dist/chunks/{instance-1kzqz27k.js → model-resolver-eq6j5b08.js} +40 -40
- package/dist/chunks/{instance-4zvdp377.js → model-resolver-eq724rxw.js} +15 -15
- package/dist/chunks/{instance-etq0c3wd.js → model-resolver-etq0c3wd.js} +1 -1
- package/dist/chunks/{instance-9tj4409s.js → model-resolver-f2b3pcdc.js} +43 -43
- package/dist/chunks/{instance-r8xr0va3.js → model-resolver-f2n192rq.js} +4 -4
- package/dist/chunks/{instance-nrdmrqsx.js → model-resolver-f3ngv102.js} +4 -4
- package/dist/chunks/{instance-f828m53h.js → model-resolver-f828m53h.js} +2 -2
- package/dist/chunks/{instance-9e84n160.js → model-resolver-fbwxg4d7.js} +37 -37
- package/dist/chunks/{instance-vq1yc3e1.js → model-resolver-fc7q7xy2.js} +30 -30
- package/dist/chunks/{instance-jkh9vv9y.js → model-resolver-fff2ww6r.js} +20 -20
- package/dist/chunks/model-resolver-fj1dxc35.js +466 -0
- package/dist/chunks/{instance-nr4nqx3r.js → model-resolver-fke1fcjd.js} +14 -14
- package/dist/chunks/{instance-fxbjtjnd.js → model-resolver-fxbjtjnd.js} +1 -1
- package/dist/chunks/{instance-p27gkp7g.js → model-resolver-g1amre2a.js} +18 -18
- package/dist/chunks/model-resolver-ga8867b0.js +26 -0
- package/dist/chunks/{instance-z4pn5b5y.js → model-resolver-gapn44fz.js} +23 -23
- package/dist/chunks/{instance-gd4qta3r.js → model-resolver-gd4qta3r.js} +1 -1
- package/dist/chunks/{instance-3fc6dm20.js → model-resolver-gdvy8fx6.js} +4 -4
- package/dist/chunks/{instance-z8pb3dnf.js → model-resolver-gea7vc3h.js} +5 -5
- package/dist/chunks/{instance-z0yk10rq.js → model-resolver-gfraf4kn.js} +26 -26
- package/dist/chunks/{instance-bf1n3tvh.js → model-resolver-gh1at4hc.js} +18 -18
- package/dist/chunks/{instance-th5km1p3.js → model-resolver-gv6a8nnw.js} +5 -5
- package/dist/chunks/{instance-h03wrkyp.js → model-resolver-h03wrkyp.js} +2 -2
- package/dist/chunks/{instance-4xhhjths.js → model-resolver-h10s6dah.js} +5 -5
- package/dist/chunks/{instance-h6vf3j39.js → model-resolver-h6vf3j39.js} +1 -1
- package/dist/chunks/{instance-ae6rh24q.js → model-resolver-h9h2cf90.js} +13 -13
- package/dist/chunks/{instance-8zn8nz2a.js → model-resolver-hk2b1w8q.js} +78 -78
- package/dist/chunks/model-resolver-ht5y0zrb.js +18 -0
- package/dist/chunks/{instance-jj25k7p6.js → model-resolver-hwt2n11x.js} +25 -25
- package/dist/chunks/{instance-2gvjmcc6.js → model-resolver-hxnmyzpz.js} +26 -26
- package/dist/chunks/{instance-kpy511kd.js → model-resolver-j4h9n0kh.js} +25 -25
- package/dist/chunks/{instance-j56e64zr.js → model-resolver-j56e64zr.js} +1 -1
- package/dist/chunks/{instance-b09hzw3k.js → model-resolver-j699j8bt.js} +2 -2
- package/dist/chunks/{instance-7ap4b03p.js → model-resolver-j8egexsa.js} +4 -4
- package/dist/chunks/{instance-8d465zne.js → model-resolver-jb1x2pah.js} +24 -24
- package/dist/chunks/{instance-mydvtj77.js → model-resolver-jcabrnmj.js} +20 -20
- package/dist/chunks/{instance-mwcck7hd.js → model-resolver-jz0gg2wa.js} +10 -10
- package/dist/chunks/{instance-epfk9eef.js → model-resolver-jzz0khf2.js} +6 -6
- package/dist/chunks/{instance-7q07g5d7.js → model-resolver-k43t2cp1.js} +8 -8
- package/dist/chunks/{instance-v49xabdw.js → model-resolver-k5z1e6p1.js} +7 -7
- package/dist/chunks/{instance-zw519yra.js → model-resolver-kbhm0m0a.js} +15 -15
- package/dist/chunks/{instance-k7azvhe8.js → model-resolver-kdqbr4kj.js} +5 -5
- package/dist/chunks/{instance-e0qjrv0a.js → model-resolver-kenhkcqf.js} +30 -30
- package/dist/chunks/{instance-kg06axw8.js → model-resolver-kg06axw8.js} +1 -1
- package/dist/chunks/{instance-ygpzgdt9.js → model-resolver-kpcpvznn.js} +22 -27
- package/dist/chunks/{instance-xcdrtwcw.js → model-resolver-m1j7qv8x.js} +18 -18
- package/dist/chunks/{instance-wr1sjn0z.js → model-resolver-m1n5w1f6.js} +10 -10
- package/dist/chunks/{instance-v6rh28k5.js → model-resolver-m3e6h5hy.js} +15 -15
- package/dist/chunks/{instance-8nm5f5q1.js → model-resolver-m60j7x9s.js} +11 -11
- package/dist/chunks/{instance-m9w0rfyh.js → model-resolver-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-mvt9nceh.js → model-resolver-mbk19yfb.js} +18 -18
- package/dist/chunks/{instance-eck9pjqj.js → model-resolver-mcrwpmnc.js} +8 -8
- package/dist/chunks/{instance-msq0jde0.js → model-resolver-mfhfdr54.js} +4 -4
- package/dist/chunks/{instance-eskh13hc.js → model-resolver-mp0nztn2.js} +14 -14
- package/dist/chunks/{instance-5j4ntxp7.js → model-resolver-mqz2skd6.js} +16 -16
- package/dist/chunks/{instance-ekdcxhm1.js → model-resolver-mx83bqr4.js} +17 -17
- package/dist/chunks/{instance-y7n2aehx.js → model-resolver-my4mn6ec.js} +15 -15
- package/dist/chunks/{instance-wmct3y1z.js → model-resolver-nfx74p92.js} +9 -9
- package/dist/chunks/{instance-kbj2dgab.js → model-resolver-nrk5vjbf.js} +5 -5
- package/dist/chunks/{instance-tfhyw2nj.js → model-resolver-nv8khyte.js} +9 -9
- package/dist/chunks/{instance-1gpnz6yb.js → model-resolver-nvbchq6z.js} +14 -14
- package/dist/chunks/{instance-htveh2m9.js → model-resolver-p0ydpdje.js} +1 -1
- package/dist/chunks/{instance-z5tggqpm.js → model-resolver-pbky73a2.js} +3 -3
- package/dist/chunks/{instance-jk1jymwb.js → model-resolver-ph0q5yay.js} +6 -6
- package/dist/chunks/{instance-80nc4spm.js → model-resolver-pjsmk15p.js} +5 -5
- package/dist/chunks/{instance-pjvnvgmy.js → model-resolver-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instance-y6f0p4jw.js → model-resolver-pk2244jm.js} +3 -3
- package/dist/chunks/{instance-pknna89w.js → model-resolver-pknna89w.js} +1 -1
- package/dist/chunks/{instance-pngxbnqh.js → model-resolver-pmqmstmj.js} +21 -21
- package/dist/chunks/{instance-y5ncgb6j.js → model-resolver-pp4zvqwf.js} +9 -9
- package/dist/chunks/{instance-wxrmx0rn.js → model-resolver-prmjvc7r.js} +12 -12
- package/dist/chunks/{instance-3qkddhf9.js → model-resolver-prw92f66.js} +15 -15
- package/dist/chunks/{instance-hv8h34pb.js → model-resolver-ps320bc5.js} +11 -11
- package/dist/chunks/{instance-7ndm27ah.js → model-resolver-ptz3r4n8.js} +47 -47
- package/dist/chunks/{instance-1e12bvff.js → model-resolver-pvpa96jk.js} +24 -24
- package/dist/chunks/{instance-7dzgh1k2.js → model-resolver-qbybakcq.js} +42 -42
- package/dist/chunks/{instance-yr6smweb.js → model-resolver-qff9k35d.js} +11 -11
- package/dist/chunks/{instance-nbba76hd.js → model-resolver-qfw3ezrb.js} +20 -20
- package/dist/chunks/{instance-qsdy395h.js → model-resolver-qsdy395h.js} +1 -1
- package/dist/chunks/{instance-712qpzp3.js → model-resolver-qvb3nf84.js} +8 -8
- package/dist/chunks/{instance-cr9wy6w1.js → model-resolver-r01t9b5y.js} +6 -6
- package/dist/chunks/{instance-gmg0ptw0.js → model-resolver-r0jzbrht.js} +16 -16
- package/dist/chunks/{instance-qpyfagd9.js → model-resolver-r345bmqf.js} +11 -11
- package/dist/chunks/{instance-1p650831.js → model-resolver-r4w7q595.js} +4 -4
- package/dist/chunks/{instance-ay6drajv.js → model-resolver-r8mwk7t1.js} +32 -32
- package/dist/chunks/{instance-r9mregkx.js → model-resolver-r9mregkx.js} +2 -2
- package/dist/chunks/{instance-t550f9t1.js → model-resolver-rhjbct0v.js} +4 -4
- package/dist/chunks/{instance-pfc0tjjp.js → model-resolver-rj1enhmn.js} +63 -63
- package/dist/chunks/{instance-dby3ap50.js → model-resolver-rk0rec3h.js} +9 -9
- package/dist/chunks/{instance-q55tx8mb.js → model-resolver-rrh3wayh.js} +25 -25
- package/dist/chunks/{instance-990ev2kv.js → model-resolver-rxjvbk8n.js} +1 -1
- package/dist/chunks/{instance-285kwpzc.js → model-resolver-rzyh5zbg.js} +16 -16
- package/dist/chunks/{instance-rxsz3rd5.js → model-resolver-s04evagd.js} +18 -18
- package/dist/chunks/{instance-kbv9saf0.js → model-resolver-s4vvta73.js} +11 -11
- package/dist/chunks/{instance-7g5cyyyf.js → model-resolver-s6y5cb61.js} +26 -26
- package/dist/chunks/{instance-s8zy8myc.js → model-resolver-s8zy8myc.js} +2 -2
- package/dist/chunks/{instance-989cxe8f.js → model-resolver-sn15zvqk.js} +14 -14
- package/dist/chunks/{instance-nyhmxcfh.js → model-resolver-sna6xqnk.js} +32 -32
- package/dist/chunks/{instance-4671r7vn.js → model-resolver-sse3cj1p.js} +11 -11
- package/dist/chunks/{instance-3rbcg6nj.js → model-resolver-ssg4d1r7.js} +20 -20
- package/dist/chunks/{instance-adqdhdk3.js → model-resolver-stz44jcx.js} +22 -22
- package/dist/chunks/{instance-evbgk2k8.js → model-resolver-t0fxg8b9.js} +5 -5
- package/dist/chunks/{instance-tkmwgdpd.js → model-resolver-t2fc4mz5.js} +7 -7
- package/dist/chunks/{instance-pm423p2k.js → model-resolver-t67bqcnn.js} +6 -6
- package/dist/chunks/{instance-tazgh4e4.js → model-resolver-tazgh4e4.js} +1 -1
- package/dist/chunks/{instance-tdstcens.js → model-resolver-tdstcens.js} +1 -1
- package/dist/chunks/{instance-k21rab87.js → model-resolver-tknyxa64.js} +28 -28
- package/dist/chunks/{instance-gf2az15k.js → model-resolver-tm5c6145.js} +6 -6
- package/dist/chunks/{instance-cyfxk05v.js → model-resolver-tm80w73m.js} +17 -17
- package/dist/chunks/model-resolver-tp0yv4ge.js +247 -0
- package/dist/chunks/{instance-tvtrv512.js → model-resolver-tvtrv512.js} +1 -1
- package/dist/chunks/{instance-vavfmh0d.js → model-resolver-twy35tz0.js} +9 -9
- package/dist/chunks/{instance-jn6ajjq2.js → model-resolver-v4gzsxzt.js} +164 -164
- package/dist/chunks/{instance-b4vf3a2b.js → model-resolver-v7xck931.js} +12 -12
- package/dist/chunks/{instance-veqvce7d.js → model-resolver-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-qqtada7n.js → model-resolver-vqv17xr0.js} +20 -20
- package/dist/chunks/{instance-q1wsye3c.js → model-resolver-vywwb7xw.js} +2 -2
- package/dist/chunks/{instance-vzcthcp8.js → model-resolver-vzcthcp8.js} +1 -1
- package/dist/chunks/{instance-v32t8jx1.js → model-resolver-vzm76b3t.js} +6 -6
- package/dist/chunks/{instance-5wzpv73x.js → model-resolver-w39ek3wx.js} +16 -16
- package/dist/chunks/{instance-w3wsvvr9.js → model-resolver-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-3vcjn72j.js → model-resolver-wc561s8t.js} +13 -13
- package/dist/chunks/{instance-wd87259q.js → model-resolver-wd87259q.js} +1 -1
- package/dist/chunks/{instance-jwr40df7.js → model-resolver-wht86vv7.js} +23 -23
- package/dist/chunks/{instance-tkhxy7z6.js → model-resolver-ws3jmg0w.js} +32 -32
- package/dist/chunks/{instance-58r7h64c.js → model-resolver-wtzjvpyk.js} +11 -11
- package/dist/chunks/{instance-wvmhx4nb.js → model-resolver-wvmhx4nb.js} +2 -2
- package/dist/chunks/{instance-gk5va808.js → model-resolver-ww2jdr25.js} +17 -17
- package/dist/chunks/{instance-x1ezjp6w.js → model-resolver-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instance-bt5b70sq.js → model-resolver-x60p6768.js} +33 -33
- package/dist/chunks/{instance-a41c1ncm.js → model-resolver-xbwfmkd1.js} +6 -6
- package/dist/chunks/{instance-6hh53734.js → model-resolver-xekzrwwc.js} +9 -9
- package/dist/chunks/{instance-rasx6tva.js → model-resolver-xg954myy.js} +6 -6
- package/dist/chunks/{instance-6wdbhf9a.js → model-resolver-xh8yz4jf.js} +11 -11
- package/dist/chunks/model-resolver-xrsqh21y.js +4 -0
- package/dist/chunks/{instance-2fz6hejr.js → model-resolver-xwqaakv5.js} +24 -24
- package/dist/chunks/{instance-w4dt659t.js → model-resolver-xxj3pgp3.js} +1 -1
- package/dist/chunks/{instance-3163fjgp.js → model-resolver-xyrnn15f.js} +47 -47
- package/dist/chunks/{instance-a1f3k8dh.js → model-resolver-xzqvznr8.js} +19 -19
- package/dist/chunks/{instance-y1fvbwt7.js → model-resolver-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instance-sqk862es.js → model-resolver-y1xkgxqn.js} +7 -10
- package/dist/chunks/{instance-dpkg50ah.js → model-resolver-y71avatq.js} +4 -4
- package/dist/chunks/{instance-a4spdbgn.js → model-resolver-y7pd6vgd.js} +18 -18
- package/dist/chunks/{instance-xjpk9v39.js → model-resolver-y8104vkb.js} +5 -5
- package/dist/chunks/{instance-az222bmv.js → model-resolver-yecv7nm8.js} +24 -24
- package/dist/chunks/{instance-5vyhjb32.js → model-resolver-yef4v0b4.js} +58 -58
- package/dist/chunks/{instance-53d4v5pk.js → model-resolver-yqtqx2tb.js} +1 -1
- package/dist/chunks/{instance-yrhqyw5v.js → model-resolver-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instance-xwdfg3dx.js → model-resolver-yrz8q0k0.js} +5 -5
- package/dist/chunks/{instance-yrznvahk.js → model-resolver-yrznvahk.js} +2 -2
- package/dist/chunks/{instance-j1482wbs.js → model-resolver-yz1rwmdd.js} +4 -4
- package/dist/chunks/{instance-z0bkrqjs.js → model-resolver-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-kpma2b8a.js → model-resolver-z0xf8849.js} +37 -37
- package/dist/chunks/{instance-z63w68vq.js → model-resolver-z63w68vq.js} +2 -2
- package/dist/chunks/{instance-gaf58hkh.js → model-resolver-ze55z754.js} +10 -10
- package/dist/chunks/{instance-zeh9ct20.js → model-resolver-zeh9ct20.js} +2 -2
- package/dist/chunks/{instance-zr2ceqn5.js → model-resolver-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instance-nd07399z.js → model-resolver-ztye28yt.js} +13 -13
- package/dist/chunks/{instance-77g3db33.js → model-resolver-zwqxr9ac.js} +9 -9
- package/dist/chunks/{instance-zxq2ej10.js → model-resolver-zxq2ej10.js} +1 -1
- package/dist/chunks/{instance-j311gd59.js → model-resolver-zxrxjv84.js} +6 -6
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +210 -210
- package/dist/config/plugin/compaction.js +157 -157
- package/dist/config/plugin/compatibility.js +140 -0
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +87 -87
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +99 -99
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -363
- 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 +90 -90
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +92 -92
- 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 +69 -69
- package/dist/file-access.js +101 -101
- package/dist/file-mutation.js +91 -91
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +224 -224
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +106 -106
- package/dist/form.js +79 -79
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +84 -84
- package/dist/generate.js +94 -94
- package/dist/git.js +8 -8
- 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 +7 -7
- 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 +4 -4
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -354
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +84 -84
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +132 -132
- package/dist/location-mutation.js +101 -101
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +352 -351
- package/dist/location.js +86 -86
- package/dist/mcp/client.js +88 -88
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +87 -87
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +87 -87
- package/dist/model.js +8 -8
- package/dist/models-dev.js +87 -87
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +106 -106
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +215 -215
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -325
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +99 -99
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/azure.js +120 -120
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +116 -116
- package/dist/plugin/provider/digitalocean.js +80 -80
- 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 +81 -81
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +119 -119
- package/dist/plugin/provider/modal.js +80 -80
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +119 -119
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +80 -80
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +119 -119
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -344
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +83 -83
- package/dist/plugin/vcs/hg.js +83 -83
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -96
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +78 -78
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +83 -83
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +147 -147
- package/dist/session/diff.js +85 -85
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +94 -94
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +128 -128
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +102 -102
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +87 -87
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +227 -227
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +87 -87
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +112 -112
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +133 -133
- package/dist/session/skill.js +100 -100
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +109 -109
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- 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 +11 -11
- package/dist/shell.js +135 -135
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +88 -88
- 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 +119 -119
- package/dist/tool/plugin/edit.js +117 -117
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +119 -119
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +117 -117
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +215 -215
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +119 -119
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/config/plugin/compatibility.d.ts +5 -0
- package/dist/types/config/plugin/entry-observer.d.ts +1 -1
- package/dist/types/config.d.ts +10 -1
- package/dist/types/skill.d.ts +3 -6
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +5 -5
- 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 +2 -2
- package/dist/v1/config/migrate.js +4 -4
- 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/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +74 -74
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/refresh.js +344 -343
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +93 -93
- package/package.json +8 -8
- package/dist/chunks/instance-42p734gx.js +0 -247
- package/dist/chunks/instance-hxa7m5za.js +0 -4
- package/dist/chunks/instance-phz3h32g.js +0 -18
- package/dist/chunks/instance-x067k0ta.js +0 -462
- package/dist/chunks/instance-yc2kznja.js +0 -26
- /package/dist/chunks/{instance-0qkdqm5v.js → model-resolver-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → model-resolver-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → model-resolver-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → model-resolver-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kg9ymc8.js → model-resolver-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → model-resolver-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2axfhc9x.js → model-resolver-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → model-resolver-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → model-resolver-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → model-resolver-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → model-resolver-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3w5fmr99.js → model-resolver-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → model-resolver-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → model-resolver-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → model-resolver-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → model-resolver-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → model-resolver-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → model-resolver-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → model-resolver-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → model-resolver-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → model-resolver-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → model-resolver-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → model-resolver-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → model-resolver-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → model-resolver-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-922hggd3.js → model-resolver-922hggd3.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → model-resolver-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → model-resolver-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → model-resolver-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → model-resolver-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → model-resolver-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → model-resolver-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → model-resolver-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → model-resolver-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → model-resolver-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → model-resolver-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → model-resolver-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → model-resolver-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → model-resolver-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → model-resolver-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → model-resolver-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → model-resolver-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → model-resolver-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → model-resolver-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → model-resolver-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → model-resolver-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → model-resolver-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → model-resolver-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → model-resolver-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → model-resolver-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → model-resolver-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → model-resolver-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-fxgpk5d8.js → model-resolver-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → model-resolver-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → model-resolver-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → model-resolver-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → model-resolver-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hjbc5kem.js → model-resolver-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → model-resolver-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-hrnqkpcd.js → model-resolver-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → model-resolver-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → model-resolver-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → model-resolver-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → model-resolver-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → model-resolver-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → model-resolver-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → model-resolver-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → model-resolver-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → model-resolver-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → model-resolver-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-paphc93g.js → model-resolver-paphc93g.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → model-resolver-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → model-resolver-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → model-resolver-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → model-resolver-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → model-resolver-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → model-resolver-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → model-resolver-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → model-resolver-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-sk3qaz4a.js → model-resolver-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → model-resolver-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-twg0f83k.js → model-resolver-twg0f83k.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → model-resolver-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → model-resolver-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → model-resolver-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → model-resolver-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → model-resolver-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → model-resolver-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8cydn3q.js → model-resolver-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → model-resolver-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → model-resolver-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → model-resolver-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → model-resolver-z9919s4g.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
loadPackage2,
|
|
6
6
|
nativeSettings2,
|
|
7
7
|
mergeOverlay2,
|
|
8
8
|
mergeHeaders2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-xg954myy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service62,
|
|
12
|
+
node66
|
|
13
|
+
} from "./model-resolver-s4vvta73.js";
|
|
14
14
|
import {
|
|
15
15
|
map2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./model-resolver-vywwb7xw.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
ID14,
|
|
19
19
|
VariantID2,
|
|
20
20
|
Ref3
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./model-resolver-5907cmhj.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
23
|
+
ID16,
|
|
24
|
+
Service76,
|
|
25
|
+
node81
|
|
26
|
+
} from "./model-resolver-s6y5cb61.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service75,
|
|
29
|
+
node80
|
|
30
|
+
} from "./model-resolver-3ccz5h33.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/model-resolver.ts
|
|
36
36
|
var exports_model_resolver = {};
|
|
@@ -39,15 +39,15 @@ __export(exports_model_resolver, {
|
|
|
39
39
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
40
40
|
ModelInitializationError: () => ModelInitializationError3,
|
|
41
41
|
ModelResolver: () => exports_model_resolver,
|
|
42
|
-
Service: () =>
|
|
42
|
+
Service: () => Service61,
|
|
43
43
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
44
44
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
45
45
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
46
46
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
47
47
|
fromCatalogModel: () => fromCatalogModel2,
|
|
48
48
|
hasPackage: () => hasPackage2,
|
|
49
|
-
layer: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
layer: () => layer22,
|
|
50
|
+
node: () => node65,
|
|
51
51
|
resolveModel: () => resolveModel2,
|
|
52
52
|
withVariant: () => withVariant2
|
|
53
53
|
});
|
|
@@ -57,8 +57,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
57
57
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
58
58
|
import { Npm } from "@opencode/util/npm";
|
|
59
59
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
60
|
-
providerID:
|
|
61
|
-
modelID:
|
|
60
|
+
providerID: ID15,
|
|
61
|
+
modelID: ID14,
|
|
62
62
|
variant: VariantID2
|
|
63
63
|
}) {
|
|
64
64
|
get message() {
|
|
@@ -67,8 +67,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
70
|
-
providerID:
|
|
71
|
-
modelID:
|
|
70
|
+
providerID: ID15,
|
|
71
|
+
modelID: ID14,
|
|
72
72
|
package: Schema.String
|
|
73
73
|
}) {
|
|
74
74
|
get message() {
|
|
@@ -78,8 +78,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
78
78
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
79
79
|
|
|
80
80
|
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
81
|
-
providerID:
|
|
82
|
-
modelID:
|
|
81
|
+
providerID: ID15,
|
|
82
|
+
modelID: ID14,
|
|
83
83
|
package: Schema.String,
|
|
84
84
|
detail: Schema.String
|
|
85
85
|
}) {
|
|
@@ -89,8 +89,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
92
|
-
providerID:
|
|
93
|
-
modelID:
|
|
92
|
+
providerID: ID15,
|
|
93
|
+
modelID: ID14,
|
|
94
94
|
package: Schema.String,
|
|
95
95
|
phase: InitializationPhase2,
|
|
96
96
|
detail: Schema.String
|
|
@@ -101,8 +101,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
104
|
-
providerID:
|
|
105
|
-
modelID:
|
|
104
|
+
providerID: ID15,
|
|
105
|
+
modelID: ID14,
|
|
106
106
|
variables: Schema.Array(Schema.String)
|
|
107
107
|
}) {
|
|
108
108
|
get message() {
|
|
@@ -111,8 +111,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
114
|
-
providerID:
|
|
115
|
-
modelID:
|
|
114
|
+
providerID: ID15,
|
|
115
|
+
modelID: ID14,
|
|
116
116
|
route: Schema.String
|
|
117
117
|
}) {
|
|
118
118
|
get message() {
|
|
@@ -120,7 +120,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
class
|
|
123
|
+
class Service61 extends Context.Service()("@opencode/ModelResolver") {
|
|
124
124
|
}
|
|
125
125
|
var withVariant2 = (model, variantID) => {
|
|
126
126
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -268,14 +268,14 @@ var causeMessage = (cause) => {
|
|
|
268
268
|
};
|
|
269
269
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
270
270
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
271
|
-
var
|
|
272
|
-
const catalog = yield*
|
|
273
|
-
const integrations = yield*
|
|
271
|
+
var layer22 = Layer.effect(Service61, Effect.gen(function* () {
|
|
272
|
+
const catalog = yield* Service75;
|
|
273
|
+
const integrations = yield* Service76;
|
|
274
274
|
const npm = yield* Npm.Service;
|
|
275
|
-
const aisdk = yield*
|
|
275
|
+
const aisdk = yield* Service62;
|
|
276
276
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
277
277
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
278
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
278
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID16.make(selected.providerID));
|
|
279
279
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
280
280
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
281
281
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -297,7 +297,7 @@ var layer23 = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
297
297
|
websocket: selected.websocket ?? false
|
|
298
298
|
};
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service61.of({
|
|
301
301
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
302
302
|
const selected = requested ? yield* catalog.model.get(requested.providerID, requested.id) : yield* catalog.model.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(catalog.model.available(), (models) => models.find(hasPackage2))));
|
|
303
303
|
if (!selected)
|
|
@@ -314,10 +314,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
314
314
|
const name = packageName2(packageName);
|
|
315
315
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
service:
|
|
319
|
-
layer:
|
|
320
|
-
deps: [
|
|
317
|
+
var node65 = makeLocationNode({
|
|
318
|
+
service: Service61,
|
|
319
|
+
layer: layer22,
|
|
320
|
+
deps: [node80, node81, Npm.node, node66]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
323
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service61, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer22, node65, exports_model_resolver };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/run-coordinator.ts
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make15
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make15 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -89,4 +89,4 @@ var make18 = (options) => Effect.gen(function* () {
|
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
export {
|
|
92
|
+
export { make15, exports_run_coordinator };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
6
|
var exports_permission = {};
|
|
7
7
|
__export(exports_permission, {
|
|
8
8
|
Action: () => Action2,
|
|
9
9
|
ConfigPermissionV1: () => exports_permission,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info18,
|
|
11
11
|
Object: () => Object2,
|
|
12
12
|
Rule: () => Rule2
|
|
13
13
|
});
|
|
@@ -33,9 +33,9 @@ var InputObject = Schema.StructWithRest(Schema.Struct({
|
|
|
33
33
|
}), [Schema.Record(Schema.String, Rule2)]);
|
|
34
34
|
var InputSchema = Schema.Union([Action2, InputObject]);
|
|
35
35
|
var normalizeInput = (input) => typeof input === "string" ? { "*": input } : input;
|
|
36
|
-
var
|
|
36
|
+
var Info18 = InputSchema.pipe(Schema.decodeTo(InputObject, {
|
|
37
37
|
decode: SchemaGetter.transform(normalizeInput),
|
|
38
38
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
39
39
|
})).annotate({ identifier: "PermissionConfig" });
|
|
40
40
|
|
|
41
|
-
export { Action2, Object2, Rule2,
|
|
41
|
+
export { Action2, Object2, Rule2, Info18, exports_permission };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-8p4f9s12.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-2a5m3afh.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service70
|
|
9
|
+
} from "./model-resolver-5w049mzn.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service67
|
|
12
|
+
} from "./model-resolver-yecv7nm8.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service66
|
|
16
|
+
} from "./model-resolver-fke1fcjd.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
|
-
|
|
21
|
+
Entry4,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./model-resolver-2jb6wffc.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service54
|
|
26
|
+
} from "./model-resolver-14fxtwre.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service53
|
|
29
|
+
} from "./model-resolver-9ynvy50g.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/grep.ts
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
38
|
+
Input: () => Input8,
|
|
39
|
+
Output: () => Output7,
|
|
40
|
+
Plugin: () => Plugin9,
|
|
41
|
+
name: () => name8,
|
|
42
|
+
toModelContent: () => toModelContent5
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name8 = "grep";
|
|
48
|
+
var Input8 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,8 +65,8 @@ var Input4 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output7 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent5 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent4 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin9 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service67;
|
|
90
|
+
const ripgrep = yield* Service66;
|
|
91
|
+
const location = yield* Service70;
|
|
92
|
+
const access = yield* Service53;
|
|
93
|
+
const permission = yield* Service54;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name8,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input8,
|
|
99
|
+
output: Output7,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name8,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -136,7 +136,7 @@ var Plugin36 = {
|
|
|
136
136
|
}))
|
|
137
137
|
}), Effect.map((result) => result.map((match) => Match2.make({
|
|
138
138
|
...match,
|
|
139
|
-
entry:
|
|
139
|
+
entry: Entry4.make({
|
|
140
140
|
...match.entry,
|
|
141
141
|
path: RelativePath2.make(path.relative(location.directory, path.resolve(cwd, match.entry.path)))
|
|
142
142
|
})
|
|
@@ -144,7 +144,7 @@ var Plugin36 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent5(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin36 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name8, Input8, Output7, toModelContent5, Plugin9, exports_grep };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./model-resolver-xg954myy.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
ID14
|
|
8
|
+
} from "./model-resolver-5907cmhj.js";
|
|
9
9
|
import {
|
|
10
10
|
Service79
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-resolver-yz1rwmdd.js";
|
|
12
12
|
import {
|
|
13
13
|
OAuth3,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Event20
|
|
15
|
+
} from "./model-resolver-tknyxa64.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID16,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-resolver-s6y5cb61.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service75
|
|
22
|
+
} from "./model-resolver-3ccz5h33.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
get2
|
|
25
|
+
} from "./model-resolver-mx83bqr4.js";
|
|
26
26
|
import {
|
|
27
27
|
useragent2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./model-resolver-r345bmqf.js";
|
|
29
29
|
|
|
30
30
|
// src/plugin/provider/github-copilot.ts
|
|
31
31
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -57,7 +57,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
57
57
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
58
58
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
59
59
|
var oauth = (app) => ({
|
|
60
|
-
integrationID:
|
|
60
|
+
integrationID: ID16.make("github-copilot"),
|
|
61
61
|
method: {
|
|
62
62
|
id: methodID,
|
|
63
63
|
type: "oauth",
|
|
@@ -155,7 +155,7 @@ var oauth = (app) => ({
|
|
|
155
155
|
var GithubCopilotPlugin2 = define({
|
|
156
156
|
id: "opencode.provider.github.copilot",
|
|
157
157
|
effect: Effect.fn(function* (ctx) {
|
|
158
|
-
const catalog = yield*
|
|
158
|
+
const catalog = yield* Service75;
|
|
159
159
|
const bus = yield* Service79;
|
|
160
160
|
const loading = Semaphore.makeUnsafe(1);
|
|
161
161
|
const loaded = {};
|
|
@@ -170,10 +170,10 @@ var GithubCopilotPlugin2 = define({
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
loaded.baseURL = copilotBaseURL2(credential.metadata);
|
|
173
|
-
const provider = yield* catalog.provider.get(
|
|
174
|
-
const existing = (yield* catalog.model.all()).filter((model) => model.providerID ===
|
|
173
|
+
const provider = yield* catalog.provider.get(ID15.githubCopilot);
|
|
174
|
+
const existing = (yield* catalog.model.all()).filter((model) => model.providerID === ID15.githubCopilot);
|
|
175
175
|
loaded.models = yield* Effect.tryPromise({
|
|
176
|
-
try: () =>
|
|
176
|
+
try: () => get2(loaded.baseURL ?? baseURL(), {
|
|
177
177
|
...provider?.headers,
|
|
178
178
|
Authorization: `Bearer ${credential.refresh}`,
|
|
179
179
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -187,12 +187,12 @@ var GithubCopilotPlugin2 = define({
|
|
|
187
187
|
editor.method.update(oauth(ctx.app));
|
|
188
188
|
});
|
|
189
189
|
yield* ctx.catalog.transform((evt) => {
|
|
190
|
-
const item = evt.provider.get(
|
|
190
|
+
const item = evt.provider.get(ID15.githubCopilot);
|
|
191
191
|
if (!item)
|
|
192
192
|
return;
|
|
193
193
|
if (loaded.models) {
|
|
194
194
|
for (const id of item.models.keys()) {
|
|
195
|
-
if (!loaded.models.has(
|
|
195
|
+
if (!loaded.models.has(ID14.make(id)))
|
|
196
196
|
evt.model.remove(item.provider.id, id);
|
|
197
197
|
}
|
|
198
198
|
for (const [id, model] of loaded.models) {
|
|
@@ -207,17 +207,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
if (item.models.has(
|
|
211
|
-
evt.model.update(item.provider.id,
|
|
210
|
+
if (item.models.has(ID14.make("gpt-5-chat-latest"))) {
|
|
211
|
+
evt.model.update(item.provider.id, ID14.make("gpt-5-chat-latest"), (model) => {
|
|
212
212
|
model.enabled = false;
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
217
|
-
yield* bus.subscribe(
|
|
217
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
218
218
|
yield* refresh().pipe(Effect.forkScoped);
|
|
219
219
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
220
|
-
if (evt.model.providerID !==
|
|
220
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
221
221
|
return;
|
|
222
222
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
223
223
|
return;
|
|
@@ -226,7 +226,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
226
226
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
227
227
|
}));
|
|
228
228
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
229
|
-
if (evt.model.providerID !==
|
|
229
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
230
230
|
return;
|
|
231
231
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
232
232
|
return;
|
|
@@ -236,9 +236,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
236
236
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
237
237
|
if (interaction !== "conversation-agent")
|
|
238
238
|
evt.headers["x-initiator"] = "agent";
|
|
239
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID15.githubCopilot });
|
|
240
240
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
241
|
-
if (evt.model.providerID !==
|
|
241
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
242
242
|
return;
|
|
243
243
|
const token = evt.request.headers.get("x-api-key");
|
|
244
244
|
if (!token)
|
|
@@ -246,9 +246,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
246
246
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
247
247
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
248
248
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
249
|
-
}), { providerID:
|
|
249
|
+
}), { providerID: ID15.githubCopilot });
|
|
250
250
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
251
|
-
if (evt.model.providerID !==
|
|
251
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
252
252
|
return;
|
|
253
253
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
254
254
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-r345bmqf.js";
|
|
4
4
|
import {
|
|
5
5
|
Service79
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-yz1rwmdd.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event20
|
|
10
|
+
} from "./model-resolver-tknyxa64.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID16,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-resolver-s6y5cb61.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID15,
|
|
17
17
|
packageName2,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-resolver-xg954myy.js";
|
|
20
20
|
import {
|
|
21
21
|
iife2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./model-resolver-1kg9ymc8.js";
|
|
23
23
|
import {
|
|
24
24
|
which2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./model-resolver-qaymkmh1.js";
|
|
26
26
|
import {
|
|
27
27
|
configuredSettings2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./model-resolver-k5z1e6p1.js";
|
|
29
29
|
|
|
30
30
|
// src/plugin/provider/azure.ts
|
|
31
31
|
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -45,7 +45,7 @@ var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
|
|
|
45
45
|
var AzurePlugin2 = define({
|
|
46
46
|
id: "opencode.provider.azure",
|
|
47
47
|
effect: Effect.fn(function* (ctx) {
|
|
48
|
-
const configured = yield* configuredSettings2(
|
|
48
|
+
const configured = yield* configuredSettings2(ID15.azure);
|
|
49
49
|
const processes = yield* AppProcess.Service;
|
|
50
50
|
const bus = yield* Service79;
|
|
51
51
|
const tokens = new Map;
|
|
@@ -81,13 +81,13 @@ var AzurePlugin2 = define({
|
|
|
81
81
|
});
|
|
82
82
|
yield* ctx.integration.transform((editor) => {
|
|
83
83
|
editor.method.update({
|
|
84
|
-
integrationID:
|
|
84
|
+
integrationID: ID15.azure,
|
|
85
85
|
method: { type: "key", label: "API key", form: form() }
|
|
86
86
|
});
|
|
87
87
|
if (!available)
|
|
88
88
|
return;
|
|
89
89
|
editor.method.update({
|
|
90
|
-
integrationID:
|
|
90
|
+
integrationID: ID15.azure,
|
|
91
91
|
method: {
|
|
92
92
|
id: methodID,
|
|
93
93
|
type: "oauth",
|
|
@@ -119,7 +119,7 @@ var AzurePlugin2 = define({
|
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
121
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
122
|
-
const connection = yield* ctx.integration.connection.active(
|
|
122
|
+
const connection = yield* ctx.integration.connection.active(ID15.azure);
|
|
123
123
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
124
124
|
return;
|
|
125
125
|
})) : undefined;
|
|
@@ -133,7 +133,7 @@ var AzurePlugin2 = define({
|
|
|
133
133
|
yield* load();
|
|
134
134
|
yield* ctx.catalog.transform((evt) => {
|
|
135
135
|
for (const item of evt.provider.list()) {
|
|
136
|
-
if (item.provider.id !==
|
|
136
|
+
if (item.provider.id !== ID15.azure && packageName2(item.provider.package) !== "@ai-sdk/azure")
|
|
137
137
|
continue;
|
|
138
138
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
139
139
|
if (resourceName)
|
|
@@ -157,11 +157,11 @@ var AzurePlugin2 = define({
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
160
|
-
yield* bus.subscribe(
|
|
160
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
161
161
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
162
|
-
if (evt.model.providerID !==
|
|
162
|
+
if (evt.model.providerID !== ID15.azure)
|
|
163
163
|
return;
|
|
164
|
-
const connection = yield* ctx.integration.connection.active(
|
|
164
|
+
const connection = yield* ctx.integration.connection.active(ID15.azure);
|
|
165
165
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
166
166
|
return;
|
|
167
167
|
})) : undefined;
|
|
@@ -174,7 +174,7 @@ var AzurePlugin2 = define({
|
|
|
174
174
|
evt.request.headers.delete("x-api-key");
|
|
175
175
|
evt.request.headers.set("authorization", `Bearer ${current.access}`);
|
|
176
176
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
177
|
-
}), { providerID:
|
|
177
|
+
}), { providerID: ID15.azure });
|
|
178
178
|
})
|
|
179
179
|
});
|
|
180
180
|
function resolveResourceName(settings, fallback) {
|