@opencode/core 0.0.0-dev-19587 → 0.0.0-dev-19588
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 +76 -76
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/catalog.js +84 -84
- package/dist/chunks/{aisdk-native-9zswys26.js → repository-0996nyz8.js} +9 -9
- package/dist/chunks/repository-0c6pz7ms.js +466 -0
- package/dist/chunks/{aisdk-native-2zphh7x8.js → repository-0dh2v9fk.js} +26 -26
- package/dist/chunks/{aisdk-native-6z8ng6g9.js → repository-0h00gbcb.js} +16 -16
- package/dist/chunks/{aisdk-native-ww9ntz46.js → repository-0kc779ng.js} +12 -12
- package/dist/chunks/{aisdk-native-0paq2nw3.js → repository-0paq2nw3.js} +1 -1
- package/dist/chunks/{aisdk-native-0q0f95c6.js → repository-0q0f95c6.js} +1 -1
- package/dist/chunks/{aisdk-native-vtjpe2v7.js → repository-0qevpf4w.js} +11 -11
- package/dist/chunks/{aisdk-native-jvdd4w81.js → repository-16cax9zb.js} +8 -8
- package/dist/chunks/{aisdk-native-mhkvc446.js → repository-1bbkgx8g.js} +3 -3
- package/dist/chunks/{aisdk-native-qfzde7bh.js → repository-1bvekr7f.js} +6 -6
- package/dist/chunks/{aisdk-native-ehh6ph8c.js → repository-1cfwn2bt.js} +7 -7
- package/dist/chunks/{aisdk-native-1dazxqgg.js → repository-1dazxqgg.js} +2 -2
- package/dist/chunks/{aisdk-native-v9kk4whf.js → repository-1e17p1v6.js} +17 -17
- package/dist/chunks/{aisdk-native-q4s82tbp.js → repository-1j9stpns.js} +29 -29
- package/dist/chunks/{aisdk-native-s8d2x3ew.js → repository-1jv4xg0p.js} +36 -36
- package/dist/chunks/{aisdk-native-83t0mtbr.js → repository-1kwjmtsc.js} +22 -22
- package/dist/chunks/{aisdk-native-b12e5c9w.js → repository-1r601apj.js} +21 -21
- package/dist/chunks/{aisdk-native-732en32p.js → repository-1vnsgk5t.js} +33 -33
- package/dist/chunks/{aisdk-native-j07mcewt.js → repository-1zfadm9n.js} +13 -13
- package/dist/chunks/{aisdk-native-dps54153.js → repository-206yk4e9.js} +4 -4
- package/dist/chunks/{aisdk-native-21r38tys.js → repository-21r38tys.js} +1 -1
- package/dist/chunks/{aisdk-native-2402vzrj.js → repository-2402vzrj.js} +1 -1
- package/dist/chunks/{aisdk-native-hpbqdbh7.js → repository-2a25p4mv.js} +32 -32
- package/dist/chunks/{aisdk-native-2a5m3afh.js → repository-2a5m3afh.js} +1 -1
- package/dist/chunks/{aisdk-native-wqrrwyse.js → repository-2ce9th4e.js} +170 -170
- package/dist/chunks/{aisdk-native-b2hqgwse.js → repository-2d802nvw.js} +1 -1
- package/dist/chunks/{aisdk-native-607tc6va.js → repository-2k8khapm.js} +5 -5
- package/dist/chunks/{aisdk-native-dwh3xqh5.js → repository-2kesvzjb.js} +13 -13
- package/dist/chunks/{aisdk-native-dc7kgzha.js → repository-3163b9jg.js} +22 -22
- package/dist/chunks/{aisdk-native-3fc6dm20.js → repository-3fc6dm20.js} +1 -1
- package/dist/chunks/{aisdk-native-3hepkmqq.js → repository-3hepkmqq.js} +1 -1
- package/dist/chunks/{aisdk-native-baeegw7z.js → repository-3pjcaesv.js} +11 -11
- package/dist/chunks/{aisdk-native-rfnf90hr.js → repository-3s8rj46j.js} +30 -30
- package/dist/chunks/{aisdk-native-3smtnn6g.js → repository-3smtnn6g.js} +1 -1
- package/dist/chunks/{aisdk-native-3tvqynh2.js → repository-3tvqynh2.js} +1 -1
- package/dist/chunks/{aisdk-native-jxyew9fw.js → repository-473n3n7b.js} +4 -4
- package/dist/chunks/{aisdk-native-h3zz7w3j.js → repository-4emwyx28.js} +87 -87
- package/dist/chunks/{aisdk-native-12zzk1x1.js → repository-4etetb1j.js} +22 -22
- package/dist/chunks/{aisdk-native-xbh8dx30.js → repository-4j90697n.js} +34 -34
- package/dist/chunks/{aisdk-native-77240dtv.js → repository-51hcmbxq.js} +5 -5
- package/dist/chunks/{aisdk-native-89sq04rc.js → repository-52f3envg.js} +16 -16
- package/dist/chunks/{aisdk-native-mfqp6xfm.js → repository-56gdpj1q.js} +6 -6
- package/dist/chunks/{aisdk-native-23279rje.js → repository-5892jdtn.js} +8 -8
- package/dist/chunks/{aisdk-native-rdt0v5r4.js → repository-592a4gpn.js} +18 -18
- package/dist/chunks/{aisdk-native-1z24fpan.js → repository-5a78h29x.js} +10 -10
- package/dist/chunks/{aisdk-native-0b65cpzw.js → repository-5ct4k76c.js} +15 -15
- package/dist/chunks/{aisdk-native-5daktx2q.js → repository-5daktx2q.js} +1 -1
- package/dist/chunks/{aisdk-native-r92yfjvg.js → repository-5dt15a5r.js} +18 -18
- package/dist/chunks/{aisdk-native-73rvebw6.js → repository-5dwnc6b3.js} +24 -24
- package/dist/chunks/{aisdk-native-xdk7gfvz.js → repository-5mp00kj1.js} +35 -35
- package/dist/chunks/{aisdk-native-3v2fsnmc.js → repository-5n6hsxyx.js} +25 -25
- package/dist/chunks/{aisdk-native-enw7m7xp.js → repository-5qkxfyep.js} +6 -6
- package/dist/chunks/{aisdk-native-5t3nmthw.js → repository-5t3nmthw.js} +2 -2
- package/dist/chunks/{aisdk-native-8798nsf2.js → repository-6035qjw6.js} +11 -11
- package/dist/chunks/{aisdk-native-c9sxab00.js → repository-62rpeqaf.js} +8 -8
- package/dist/chunks/{aisdk-native-f2jyds91.js → repository-630f9zf9.js} +8 -8
- package/dist/chunks/{aisdk-native-669tq793.js → repository-669tq793.js} +1 -1
- package/dist/chunks/{aisdk-native-ez39whr3.js → repository-6a88x1v8.js} +13 -13
- package/dist/chunks/{aisdk-native-47v7jqjw.js → repository-6cbvf3zm.js} +44 -44
- package/dist/chunks/{aisdk-native-vdp162ys.js → repository-6gfqk85e.js} +28 -28
- package/dist/chunks/{aisdk-native-1kzvh1r6.js → repository-6ht32ya1.js} +18 -18
- package/dist/chunks/{aisdk-native-ckhhmwpb.js → repository-6jdhkm56.js} +14 -14
- package/dist/chunks/{aisdk-native-6msgmcgs.js → repository-6msgmcgs.js} +1 -1
- package/dist/chunks/{aisdk-native-pscvwjzk.js → repository-6yp6qgnr.js} +29 -29
- package/dist/chunks/{aisdk-native-71q4at8m.js → repository-71q4at8m.js} +1 -1
- package/dist/chunks/{aisdk-native-raxattbk.js → repository-7207rjaj.js} +8 -8
- package/dist/chunks/{aisdk-native-expn7grm.js → repository-745ca1rp.js} +3 -3
- package/dist/chunks/{aisdk-native-h0vxvrcv.js → repository-74jx9dmy.js} +43 -43
- package/dist/chunks/{aisdk-native-tpw7nhda.js → repository-7a1nds04.js} +8 -8
- package/dist/chunks/{aisdk-native-7bmhse3q.js → repository-7bmhse3q.js} +1 -1
- package/dist/chunks/{aisdk-native-vbeq5p7h.js → repository-7gnac2s0.js} +60 -60
- package/dist/chunks/{aisdk-native-dgs0k0pe.js → repository-7qpszgx3.js} +20 -20
- package/dist/chunks/{aisdk-native-etpa6mg3.js → repository-7s5hb2nx.js} +22 -22
- package/dist/chunks/{aisdk-native-8wzfhrcc.js → repository-8028yanh.js} +13 -13
- package/dist/chunks/{aisdk-native-a7zawp2b.js → repository-83wzj7ta.js} +3 -3
- package/dist/chunks/{aisdk-native-ryck9khc.js → repository-86agcrtg.js} +30 -30
- package/dist/chunks/{aisdk-native-0pb75hch.js → repository-8c7y8dn0.js} +5 -5
- package/dist/chunks/{aisdk-native-8d7r5vzw.js → repository-8d7r5vzw.js} +1 -1
- package/dist/chunks/{aisdk-native-exs5x9p4.js → repository-8fcwscdw.js} +26 -26
- package/dist/chunks/{aisdk-native-njg0nnyy.js → repository-8fsnk1kc.js} +10 -10
- package/dist/chunks/{aisdk-native-06x8he3q.js → repository-8gxqpgph.js} +4 -4
- package/dist/chunks/{aisdk-native-8p4f9s12.js → repository-8p4f9s12.js} +2 -2
- package/dist/chunks/{aisdk-native-1aw4vz7v.js → repository-94d58mvd.js} +32 -32
- package/dist/chunks/{aisdk-native-ep6bb0y2.js → repository-96987kcb.js} +89 -89
- package/dist/chunks/{aisdk-native-5j9m80r0.js → repository-9j2s9z86.js} +8 -8
- package/dist/chunks/{aisdk-native-zs6mkee1.js → repository-9q22g6vd.js} +5 -5
- package/dist/chunks/{aisdk-native-afcey384.js → repository-9whdk0qy.js} +13 -13
- package/dist/chunks/{aisdk-native-z65s34ts.js → repository-9zpvy9zc.js} +26 -26
- package/dist/chunks/repository-9zxwq9ha.js +26 -0
- package/dist/chunks/{aisdk-native-a1bz86dw.js → repository-a1bz86dw.js} +3 -3
- package/dist/chunks/{aisdk-native-tamfydwv.js → repository-a8rkycwa.js} +16 -16
- package/dist/chunks/{aisdk-native-xtrzjk7e.js → repository-a8ve50ng.js} +6 -6
- package/dist/chunks/{aisdk-native-aaet6srn.js → repository-aaet6srn.js} +2 -2
- package/dist/chunks/{aisdk-native-jg1wx3s5.js → repository-aemscjqt.js} +20 -20
- package/dist/chunks/{aisdk-native-b09hzw3k.js → repository-b09hzw3k.js} +2 -2
- package/dist/chunks/{aisdk-native-w8r3hzxb.js → repository-b1kv8p8w.js} +6 -6
- package/dist/chunks/{aisdk-native-1hstdxwt.js → repository-b3pcj4k8.js} +30 -30
- package/dist/chunks/{aisdk-native-kxgkddgm.js → repository-b6f6xskg.js} +7 -7
- package/dist/chunks/{aisdk-native-b6gygkdw.js → repository-b6gygkdw.js} +2 -2
- package/dist/chunks/{aisdk-native-35wynegs.js → repository-b6hy6gkz.js} +2 -2
- package/dist/chunks/{aisdk-native-cvtmmhw6.js → repository-bbarxbyb.js} +1 -1
- package/dist/chunks/{aisdk-native-3snae86b.js → repository-bfntb90j.js} +9 -9
- package/dist/chunks/{aisdk-native-1n48fvpd.js → repository-bgxa3gb8.js} +15 -15
- package/dist/chunks/{aisdk-native-0efqgjpv.js → repository-bmtr48j2.js} +9 -9
- package/dist/chunks/{aisdk-native-n2kah95r.js → repository-bw0vgseb.js} +8 -8
- package/dist/chunks/{aisdk-native-qjwa214h.js → repository-c9wtqnwj.js} +11 -11
- package/dist/chunks/{aisdk-native-7tfjhc0x.js → repository-car4fhb7.js} +19 -19
- package/dist/chunks/{aisdk-native-cfpkc3c9.js → repository-cfpkc3c9.js} +2 -2
- package/dist/chunks/{aisdk-native-t1dawjzh.js → repository-cfv81dax.js} +8 -8
- package/dist/chunks/{aisdk-native-0artwwxx.js → repository-cg1ew3t4.js} +3 -3
- package/dist/chunks/{aisdk-native-hceg7q13.js → repository-cpn39njb.js} +16 -16
- package/dist/chunks/{aisdk-native-cq37gk0t.js → repository-cq37gk0t.js} +4 -4
- package/dist/chunks/{aisdk-native-2nb9akgd.js → repository-cxkh8aa2.js} +32 -32
- package/dist/chunks/{aisdk-native-c2hgjq9y.js → repository-cyhxv4yp.js} +10 -10
- package/dist/chunks/{aisdk-native-95bxmfq6.js → repository-d4exv1s8.js} +31 -31
- package/dist/chunks/{aisdk-native-rs64jzc9.js → repository-d4shdzcf.js} +24 -24
- package/dist/chunks/{aisdk-native-8r3crzsj.js → repository-d50dhb3t.js} +9 -9
- package/dist/chunks/{aisdk-native-1313y6az.js → repository-deanft1t.js} +35 -35
- package/dist/chunks/{aisdk-native-y8ve9161.js → repository-dfey964p.js} +9 -9
- package/dist/chunks/{aisdk-native-5b7vf1m4.js → repository-dg6ptqm6.js} +28 -28
- package/dist/chunks/{aisdk-native-877fs4kk.js → repository-dht5s97y.js} +9 -9
- package/dist/chunks/{aisdk-native-5nhasct8.js → repository-dn0vp9ws.js} +6 -6
- package/dist/chunks/{aisdk-native-mj5qpa52.js → repository-dqgjsbg6.js} +18 -18
- package/dist/chunks/{aisdk-native-jx8g4evx.js → repository-drknmmyh.js} +9 -9
- package/dist/chunks/{aisdk-native-e5nv3ght.js → repository-e5nv3ght.js} +2 -2
- package/dist/chunks/{aisdk-native-e5xpd6yj.js → repository-e5xpd6yj.js} +3 -3
- package/dist/chunks/{aisdk-native-g9h27qxy.js → repository-e8x92nmy.js} +7 -7
- package/dist/chunks/{aisdk-native-ef5x83kb.js → repository-ef5x83kb.js} +1 -1
- package/dist/chunks/repository-ejvrra8h.js +247 -0
- package/dist/chunks/{aisdk-native-etq0c3wd.js → repository-etq0c3wd.js} +1 -1
- package/dist/chunks/{aisdk-native-975vv60r.js → repository-ewq2135v.js} +22 -22
- package/dist/chunks/{aisdk-native-mz6ae2yf.js → repository-eztf1wzg.js} +1 -1
- package/dist/chunks/{aisdk-native-f828m53h.js → repository-f828m53h.js} +2 -2
- package/dist/chunks/{aisdk-native-558gpyz0.js → repository-f9apq077.js} +71 -71
- package/dist/chunks/{aisdk-native-z87g79ds.js → repository-fahke4hq.js} +4 -4
- package/dist/chunks/{aisdk-native-4knrs4xe.js → repository-fgqgf88m.js} +15 -15
- package/dist/chunks/{aisdk-native-b84cfsc8.js → repository-fmgfnr5t.js} +9 -9
- package/dist/chunks/{aisdk-native-shrtfrh2.js → repository-fr89gf7f.js} +33 -33
- package/dist/chunks/{aisdk-native-61q379j8.js → repository-fscyzxmk.js} +9 -9
- package/dist/chunks/{aisdk-native-fxbjtjnd.js → repository-fxbjtjnd.js} +1 -1
- package/dist/chunks/{aisdk-native-50mzsvk4.js → repository-g190xswt.js} +4 -4
- package/dist/chunks/{aisdk-native-h42r5qa0.js → repository-g2c4pnq1.js} +4 -4
- package/dist/chunks/{aisdk-native-tkmwgdpd.js → repository-g8d3gcyj.js} +4 -4
- package/dist/chunks/{aisdk-native-7n1bsde3.js → repository-g8mks886.js} +11 -11
- package/dist/chunks/{aisdk-native-bqz616gy.js → repository-gaf3dhda.js} +8 -8
- package/dist/chunks/{aisdk-native-9f8bm3tt.js → repository-gay8ct22.js} +23 -23
- package/dist/chunks/{aisdk-native-4087s44y.js → repository-gd0jy5mm.js} +11 -11
- package/dist/chunks/{aisdk-native-gd4qta3r.js → repository-gd4qta3r.js} +1 -1
- package/dist/chunks/{aisdk-native-0dyhjbwy.js → repository-gma6pakk.js} +6 -6
- package/dist/chunks/{aisdk-native-cq2eqyzg.js → repository-gs36njwm.js} +45 -45
- package/dist/chunks/{aisdk-native-th5km1p3.js → repository-gv6a8nnw.js} +5 -5
- package/dist/chunks/{aisdk-native-h03wrkyp.js → repository-h03wrkyp.js} +2 -2
- package/dist/chunks/{aisdk-native-3sppp1ax.js → repository-h13rq2ha.js} +22 -22
- package/dist/chunks/{aisdk-native-kj81w035.js → repository-h27f8war.js} +11 -11
- package/dist/chunks/{aisdk-native-fyymr9xg.js → repository-h6jr292a.js} +4 -4
- package/dist/chunks/{aisdk-native-h6vf3j39.js → repository-h6vf3j39.js} +1 -1
- package/dist/chunks/{aisdk-native-vcmavarf.js → repository-haj0byqn.js} +4 -4
- package/dist/chunks/{aisdk-native-t0hp8g0z.js → repository-hgg8kawy.js} +8 -8
- package/dist/chunks/{aisdk-native-mvrepv4q.js → repository-hjr4mjkc.js} +27 -27
- package/dist/chunks/{aisdk-native-e82z9tr0.js → repository-hjt4xg1x.js} +7 -7
- package/dist/chunks/{aisdk-native-0d65gp2j.js → repository-hm7n6gxm.js} +16 -16
- package/dist/chunks/{aisdk-native-rsym84ch.js → repository-hqjg1cx1.js} +9 -9
- package/dist/chunks/{aisdk-native-rn79xn25.js → repository-hqxaqnsz.js} +8 -8
- package/dist/chunks/{aisdk-native-2f4q0qv2.js → repository-ht8esz14.js} +5 -5
- package/dist/chunks/{aisdk-native-k8tj7ker.js → repository-hx4p0gz5.js} +26 -26
- package/dist/chunks/{aisdk-native-96dvff6g.js → repository-j3ht12x2.js} +15 -15
- package/dist/chunks/{aisdk-native-cjg4xdhd.js → repository-j4z2qnee.js} +11 -11
- package/dist/chunks/{aisdk-native-j56e64zr.js → repository-j56e64zr.js} +1 -1
- package/dist/chunks/{aisdk-native-yppnjwr8.js → repository-j5xt7epv.js} +12 -12
- package/dist/chunks/{aisdk-native-f901ejzv.js → repository-jbdvhc0s.js} +23 -23
- package/dist/chunks/{aisdk-native-r3rhgkxa.js → repository-jmr68t6h.js} +5 -5
- package/dist/chunks/repository-jqh9b0xq.js +18 -0
- package/dist/chunks/{aisdk-native-e0gy8g4h.js → repository-jwttr378.js} +43 -43
- package/dist/chunks/{aisdk-native-jxnsayze.js → repository-jxvsdwym.js} +13 -13
- package/dist/chunks/{aisdk-native-96bqv5va.js → repository-jydw0f72.js} +28 -28
- package/dist/chunks/{aisdk-native-k2dherqe.js → repository-k2dherqe.js} +1 -1
- package/dist/chunks/{aisdk-native-x6qm3ve3.js → repository-kee0d0vv.js} +15 -15
- package/dist/chunks/{aisdk-native-kg06axw8.js → repository-kg06axw8.js} +1 -1
- package/dist/chunks/{aisdk-native-k8rh8kbe.js → repository-kmbbtncp.js} +23 -23
- package/dist/chunks/{aisdk-native-v6yxqhem.js → repository-kq7s33qp.js} +8 -8
- package/dist/chunks/{aisdk-native-9jdakqgh.js → repository-ky16kd9n.js} +12 -12
- package/dist/chunks/{aisdk-native-4ba3v9yg.js → repository-m12fw1ht.js} +32 -32
- package/dist/chunks/{aisdk-native-xekzrwwc.js → repository-m2d0j7c0.js} +5 -5
- package/dist/chunks/{aisdk-native-ft5xsh3g.js → repository-m2weea1a.js} +43 -43
- package/dist/chunks/{aisdk-native-t2tfq0sa.js → repository-m74ad31j.js} +15 -15
- package/dist/chunks/{aisdk-native-m9w0rfyh.js → repository-m9w0rfyh.js} +1 -1
- package/dist/chunks/{aisdk-native-jbr3crdn.js → repository-mfeb23pb.js} +16 -16
- package/dist/chunks/{aisdk-native-qm6d722f.js → repository-mhfnevvs.js} +13 -13
- package/dist/chunks/{aisdk-native-wt3f654q.js → repository-ms3qkpaz.js} +11 -11
- package/dist/chunks/{aisdk-native-msq0jde0.js → repository-msq0jde0.js} +1 -1
- package/dist/chunks/{aisdk-native-kss69rth.js → repository-mtkf2msq.js} +51 -51
- package/dist/chunks/{aisdk-native-bbea3drv.js → repository-mwdf18ba.js} +35 -35
- package/dist/chunks/{aisdk-native-txvev1mj.js → repository-n64yq744.js} +24 -24
- package/dist/chunks/{aisdk-native-sjp111s2.js → repository-nb1yf551.js} +28 -28
- package/dist/chunks/{aisdk-native-wjeb65nc.js → repository-ngs1gmwy.js} +6 -6
- package/dist/chunks/{aisdk-native-sysvp9tr.js → repository-nphm860s.js} +22 -22
- package/dist/chunks/{aisdk-native-jghsd1wz.js → repository-nxamnhdf.js} +12 -12
- package/dist/chunks/{aisdk-native-msp5pacb.js → repository-p2t1ayvx.js} +46 -46
- package/dist/chunks/{aisdk-native-jt6t2dx0.js → repository-p5q26rjs.js} +17 -17
- package/dist/chunks/{aisdk-native-r7by1z8b.js → repository-p807tth1.js} +18 -18
- package/dist/chunks/{aisdk-native-x3et2xth.js → repository-pa8pe2x7.js} +8 -8
- package/dist/chunks/{aisdk-native-265kqrgy.js → repository-peejr10p.js} +1 -1
- package/dist/chunks/{aisdk-native-nw4bp5ek.js → repository-pgw46sns.js} +24 -24
- package/dist/chunks/{aisdk-native-wavq5vqb.js → repository-pjrv1sn1.js} +1 -1
- package/dist/chunks/{aisdk-native-pjvnvgmy.js → repository-pjvnvgmy.js} +1 -1
- package/dist/chunks/{aisdk-native-pknna89w.js → repository-pknna89w.js} +1 -1
- package/dist/chunks/{aisdk-native-q2b1ymqp.js → repository-pmr4s4kc.js} +4 -4
- package/dist/chunks/{aisdk-native-pt1wzm9p.js → repository-pwf15mvc.js} +4 -4
- package/dist/chunks/{aisdk-native-qy9vy1f4.js → repository-pxbzt21m.js} +6 -6
- package/dist/chunks/{aisdk-native-8k4hkv5d.js → repository-pxhak851.js} +6 -6
- package/dist/chunks/{aisdk-native-33n3bzdy.js → repository-pye8sh6e.js} +6 -6
- package/dist/chunks/{aisdk-native-3e8p36t5.js → repository-q7cmwac7.js} +6 -6
- package/dist/chunks/{aisdk-native-1sk4t3bw.js → repository-q9fqv6nm.js} +92 -291
- package/dist/chunks/repository-qapv375x.js +4 -0
- package/dist/chunks/{aisdk-native-yjptyezs.js → repository-qjnxxf51.js} +5 -5
- package/dist/chunks/{aisdk-native-219neeqh.js → repository-qkrnz1pz.js} +5 -5
- package/dist/chunks/{aisdk-native-9v25y94j.js → repository-qp8nwhvn.js} +38 -38
- package/dist/chunks/{aisdk-native-2eykfrat.js → repository-qqyxjxre.js} +22 -22
- package/dist/chunks/{aisdk-native-qsdy395h.js → repository-qsdy395h.js} +1 -1
- package/dist/chunks/{aisdk-native-a6v99qxw.js → repository-r33ff4dw.js} +6 -6
- package/dist/chunks/{aisdk-native-6jw7qbdc.js → repository-r628x9jn.js} +20 -26
- package/dist/chunks/{aisdk-native-yp2x3t23.js → repository-r8xr0va3.js} +4 -4
- package/dist/chunks/{aisdk-native-r9mregkx.js → repository-r9mregkx.js} +2 -2
- package/dist/chunks/{aisdk-native-f0f4ttvk.js → repository-rg7n2a7e.js} +47 -47
- package/dist/chunks/{aisdk-native-rhjbct0v.js → repository-rhjbct0v.js} +1 -1
- package/dist/chunks/{aisdk-native-92n9kp68.js → repository-rjt1dhz0.js} +11 -11
- package/dist/chunks/{aisdk-native-vfjw4etf.js → repository-rqpczt31.js} +18 -18
- package/dist/chunks/{aisdk-native-b5vcnazb.js → repository-s2t8c8fj.js} +4 -4
- package/dist/chunks/{aisdk-native-0f9afca0.js → repository-s8zy8myc.js} +5 -5
- package/dist/chunks/{aisdk-native-39dcxt5x.js → repository-shg3amz7.js} +22 -22
- package/dist/chunks/{aisdk-native-87j3jmrh.js → repository-sm236kpq.js} +11 -11
- package/dist/chunks/{aisdk-native-hrswm3w7.js → repository-sr7k2y9v.js} +32 -32
- package/dist/chunks/{aisdk-native-8764jjnd.js → repository-swc0nz61.js} +18 -18
- package/dist/chunks/{aisdk-native-m5n1efj3.js → repository-swh40x6v.js} +12 -12
- package/dist/chunks/{aisdk-native-gcavn3wx.js → repository-sznyev98.js} +5 -5
- package/dist/chunks/{aisdk-native-37s12vcn.js → repository-t0fxg8b9.js} +5 -5
- package/dist/chunks/{aisdk-native-t0x5rdq8.js → repository-t0x5rdq8.js} +2 -2
- package/dist/chunks/{aisdk-native-z4fsc67a.js → repository-t3p48s2k.js} +13 -13
- package/dist/chunks/{aisdk-native-4ff8ce17.js → repository-t5wmzvpv.js} +14 -14
- package/dist/chunks/{aisdk-native-1x3znp50.js → repository-t9cms4w2.js} +11 -11
- package/dist/chunks/{aisdk-native-tazgh4e4.js → repository-tazgh4e4.js} +1 -1
- package/dist/chunks/{aisdk-native-tcezcvh9.js → repository-tcezcvh9.js} +1 -1
- package/dist/chunks/{aisdk-native-tdstcens.js → repository-tdstcens.js} +1 -1
- package/dist/chunks/{aisdk-native-pded2qbh.js → repository-te29s6sc.js} +12 -12
- package/dist/chunks/{aisdk-native-tvtrv512.js → repository-tvtrv512.js} +1 -1
- package/dist/chunks/{aisdk-native-wvmhx4nb.js → repository-tx9qvpbt.js} +4 -4
- package/dist/chunks/{aisdk-native-4y910e9x.js → repository-v7eqyjmy.js} +5 -5
- package/dist/chunks/{aisdk-native-4zxxnnpk.js → repository-vapde0g8.js} +3 -3
- package/dist/chunks/{aisdk-native-veqvce7d.js → repository-veqvce7d.js} +1 -1
- package/dist/chunks/{aisdk-native-6136p1w5.js → repository-vh329328.js} +15 -15
- package/dist/chunks/{aisdk-native-5mdd6pyz.js → repository-vjjm1fp8.js} +11 -11
- package/dist/chunks/{aisdk-native-ry3zdq1e.js → repository-vpwejdc6.js} +15 -15
- package/dist/chunks/{aisdk-native-st8p8d2e.js → repository-vtxfwj71.js} +5 -5
- package/dist/chunks/{aisdk-native-vzcthcp8.js → repository-vzcthcp8.js} +1 -1
- package/dist/chunks/{aisdk-native-cweffwkq.js → repository-w26xsmnw.js} +21 -21
- package/dist/chunks/{aisdk-native-w3wsvvr9.js → repository-w3wsvvr9.js} +1 -1
- package/dist/chunks/{aisdk-native-4ns3h2re.js → repository-w4axh9wz.js} +4 -4
- package/dist/chunks/{aisdk-native-wd87259q.js → repository-wd87259q.js} +1 -1
- package/dist/chunks/{aisdk-native-acxdgsqj.js → repository-wdhn35hf.js} +9 -9
- package/dist/chunks/{aisdk-native-1jzc9t6q.js → repository-wx95frst.js} +11 -11
- package/dist/chunks/{aisdk-native-5e6hx92c.js → repository-wz0ehf68.js} +47 -47
- package/dist/chunks/{aisdk-native-x1ezjp6w.js → repository-x1ezjp6w.js} +1 -1
- package/dist/chunks/{aisdk-native-q29qt9dw.js → repository-x1f4bnb6.js} +2 -2
- package/dist/chunks/{aisdk-native-9p3mq0sv.js → repository-x20sjj3e.js} +46 -46
- package/dist/chunks/{aisdk-native-1bykzgew.js → repository-xqax0h2z.js} +23 -23
- package/dist/chunks/{aisdk-native-y1fvbwt7.js → repository-y1fvbwt7.js} +1 -1
- package/dist/chunks/{aisdk-native-fp838efq.js → repository-y5ff4yjy.js} +11 -11
- package/dist/chunks/{aisdk-native-5tc8t3sp.js → repository-y5znnrem.js} +27 -27
- package/dist/chunks/{aisdk-native-y71avatq.js → repository-y71avatq.js} +1 -1
- package/dist/chunks/{aisdk-native-ewnjf4j9.js → repository-y86j32r6.js} +25 -25
- package/dist/chunks/{aisdk-native-7ct7dy8g.js → repository-yn35vfdn.js} +17 -17
- package/dist/chunks/{aisdk-native-yrhqyw5v.js → repository-yrhqyw5v.js} +1 -1
- package/dist/chunks/{aisdk-native-yrznvahk.js → repository-yrznvahk.js} +2 -2
- package/dist/chunks/{aisdk-native-efj89ke9.js → repository-yyzm5aws.js} +10 -10
- package/dist/chunks/{aisdk-native-z0bkrqjs.js → repository-z0bkrqjs.js} +1 -1
- package/dist/chunks/{aisdk-native-z63w68vq.js → repository-z63w68vq.js} +2 -2
- package/dist/chunks/{aisdk-native-70d2s7af.js → repository-zc2xj3qj.js} +1 -1
- package/dist/chunks/{aisdk-native-zeh9ct20.js → repository-zeh9ct20.js} +2 -2
- package/dist/chunks/{aisdk-native-jm425462.js → repository-zfdedwf3.js} +36 -36
- package/dist/chunks/{aisdk-native-zr2ceqn5.js → repository-zr2ceqn5.js} +1 -1
- package/dist/chunks/{aisdk-native-zxq2ej10.js → repository-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +80 -80
- 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 +119 -119
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +120 -120
- package/dist/config/plugin/image.js +119 -119
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +128 -128
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +121 -121
- package/dist/config/plugin/shell.js +119 -119
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +119 -119
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +121 -121
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +122 -122
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +69 -69
- 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.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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +365 -365
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- 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 +2 -2
- package/dist/filesystem/location-watcher.js +219 -219
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +101 -101
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +92 -92
- 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 +3 -3
- 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 +356 -356
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +1 -1
- 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 +137 -137
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +353 -353
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +202 -260
- package/dist/mcp/index.js +103 -121
- package/dist/mcp/instructions.js +124 -124
- package/dist/mcp/oauth.js +259 -38
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- 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 +75 -75
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +104 -104
- 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 +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +216 -216
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- 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 +101 -101
- 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 +121 -121
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- 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 +121 -121
- package/dist/plugin/provider/modal.js +80 -80
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +121 -121
- 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 +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +137 -137
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- 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 +95 -95
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- 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 +151 -151
- package/dist/session/diff.js +87 -87
- 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 +223 -223
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +87 -87
- 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 +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +228 -228
- 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 +114 -114
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +134 -134
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- 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 +9 -9
- package/dist/shell.js +136 -136
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +92 -92
- 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 +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/mcp/client.d.ts +220 -124
- package/dist/types/mcp/index.d.ts +23 -87
- package/dist/types/mcp/oauth.d.ts +26 -51
- package/dist/types/mcp/stdio.d.ts +1 -1
- package/dist/types/v1/config/migrate.d.ts +2 -0
- 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 +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 +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +3 -3
- 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 +10 -10
- package/dist/worktree/refresh.js +345 -345
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +95 -95
- package/package.json +17 -16
- package/dist/chunks/aisdk-native-0mesazry.js +0 -4
- package/dist/chunks/aisdk-native-0pae2qra.js +0 -466
- package/dist/chunks/aisdk-native-45th5jwr.js +0 -18
- package/dist/chunks/aisdk-native-681gxtn0.js +0 -247
- package/dist/chunks/aisdk-native-6m8sxegb.js +0 -26
- /package/dist/chunks/{aisdk-native-0qkdqm5v.js → repository-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{aisdk-native-0zkw76rk.js → repository-0zkw76rk.js} +0 -0
- /package/dist/chunks/{aisdk-native-17cy0kzp.js → repository-17cy0kzp.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cnp2v09.js → repository-1cnp2v09.js} +0 -0
- /package/dist/chunks/{aisdk-native-1kg9ymc8.js → repository-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{aisdk-native-2710q6r3.js → repository-2710q6r3.js} +0 -0
- /package/dist/chunks/{aisdk-native-2axfhc9x.js → repository-2axfhc9x.js} +0 -0
- /package/dist/chunks/{aisdk-native-2c3vjs8z.js → repository-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{aisdk-native-359p4xyc.js → repository-359p4xyc.js} +0 -0
- /package/dist/chunks/{aisdk-native-3asan66x.js → repository-3asan66x.js} +0 -0
- /package/dist/chunks/{aisdk-native-3v8g72cx.js → repository-3v8g72cx.js} +0 -0
- /package/dist/chunks/{aisdk-native-3w5fmr99.js → repository-3w5fmr99.js} +0 -0
- /package/dist/chunks/{aisdk-native-3wcehsnq.js → repository-3wcehsnq.js} +0 -0
- /package/dist/chunks/{aisdk-native-43n2bw4t.js → repository-43n2bw4t.js} +0 -0
- /package/dist/chunks/{aisdk-native-4knz6hnm.js → repository-4knz6hnm.js} +0 -0
- /package/dist/chunks/{aisdk-native-4vcrnpx2.js → repository-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{aisdk-native-4y7fprxs.js → repository-4y7fprxs.js} +0 -0
- /package/dist/chunks/{aisdk-native-53557ph1.js → repository-53557ph1.js} +0 -0
- /package/dist/chunks/{aisdk-native-550bvhaj.js → repository-550bvhaj.js} +0 -0
- /package/dist/chunks/{aisdk-native-6prwharc.js → repository-6prwharc.js} +0 -0
- /package/dist/chunks/{aisdk-native-7akdwqpd.js → repository-7akdwqpd.js} +0 -0
- /package/dist/chunks/{aisdk-native-7m9af43g.js → repository-7m9af43g.js} +0 -0
- /package/dist/chunks/{aisdk-native-822emrt2.js → repository-822emrt2.js} +0 -0
- /package/dist/chunks/{aisdk-native-88xbtdfr.js → repository-88xbtdfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-8n3pysct.js → repository-8n3pysct.js} +0 -0
- /package/dist/chunks/{aisdk-native-922hggd3.js → repository-922hggd3.js} +0 -0
- /package/dist/chunks/{aisdk-native-9a4afbnw.js → repository-9a4afbnw.js} +0 -0
- /package/dist/chunks/{aisdk-native-9rqn6x4v.js → repository-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{aisdk-native-a6k6eb26.js → repository-a6k6eb26.js} +0 -0
- /package/dist/chunks/{aisdk-native-af5trqkr.js → repository-af5trqkr.js} +0 -0
- /package/dist/chunks/{aisdk-native-afrmfg78.js → repository-afrmfg78.js} +0 -0
- /package/dist/chunks/{aisdk-native-aqzs7mqg.js → repository-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{aisdk-native-atq7p7m5.js → repository-atq7p7m5.js} +0 -0
- /package/dist/chunks/{aisdk-native-bkyjaxrp.js → repository-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{aisdk-native-bmr6ed5q.js → repository-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{aisdk-native-cf4snx6d.js → repository-cf4snx6d.js} +0 -0
- /package/dist/chunks/{aisdk-native-cvy3z8tj.js → repository-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9fn303g.js → repository-d9fn303g.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9jj8t3e.js → repository-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{aisdk-native-dajrwvna.js → repository-dajrwvna.js} +0 -0
- /package/dist/chunks/{aisdk-native-dap0rakb.js → repository-dap0rakb.js} +0 -0
- /package/dist/chunks/{aisdk-native-df08tz66.js → repository-df08tz66.js} +0 -0
- /package/dist/chunks/{aisdk-native-dy18nga0.js → repository-dy18nga0.js} +0 -0
- /package/dist/chunks/{aisdk-native-e5kj55wp.js → repository-e5kj55wp.js} +0 -0
- /package/dist/chunks/{aisdk-native-e73j6tqm.js → repository-e73j6tqm.js} +0 -0
- /package/dist/chunks/{aisdk-native-ec1grn59.js → repository-ec1grn59.js} +0 -0
- /package/dist/chunks/{aisdk-native-eh3zwz77.js → repository-eh3zwz77.js} +0 -0
- /package/dist/chunks/{aisdk-native-emrn6kk6.js → repository-emrn6kk6.js} +0 -0
- /package/dist/chunks/{aisdk-native-f0mxakyp.js → repository-f0mxakyp.js} +0 -0
- /package/dist/chunks/{aisdk-native-f6n9ztr4.js → repository-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{aisdk-native-faypxj3z.js → repository-faypxj3z.js} +0 -0
- /package/dist/chunks/{aisdk-native-fd410y7t.js → repository-fd410y7t.js} +0 -0
- /package/dist/chunks/{aisdk-native-fxgpk5d8.js → repository-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{aisdk-native-g4wezp1m.js → repository-g4wezp1m.js} +0 -0
- /package/dist/chunks/{aisdk-native-g86h250q.js → repository-g86h250q.js} +0 -0
- /package/dist/chunks/{aisdk-native-gebd4c9n.js → repository-gebd4c9n.js} +0 -0
- /package/dist/chunks/{aisdk-native-gftt206x.js → repository-gftt206x.js} +0 -0
- /package/dist/chunks/{aisdk-native-hjbc5kem.js → repository-hjbc5kem.js} +0 -0
- /package/dist/chunks/{aisdk-native-hk9envan.js → repository-hk9envan.js} +0 -0
- /package/dist/chunks/{aisdk-native-hrnqkpcd.js → repository-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{aisdk-native-j2ntwpah.js → repository-j2ntwpah.js} +0 -0
- /package/dist/chunks/{aisdk-native-j5zkgpj8.js → repository-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{aisdk-native-jr7sbwjy.js → repository-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{aisdk-native-jwfs4k6c.js → repository-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{aisdk-native-jzg6c2d5.js → repository-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{aisdk-native-mp448xyj.js → repository-mp448xyj.js} +0 -0
- /package/dist/chunks/{aisdk-native-msx8hqn2.js → repository-msx8hqn2.js} +0 -0
- /package/dist/chunks/{aisdk-native-n05xt0ee.js → repository-n05xt0ee.js} +0 -0
- /package/dist/chunks/{aisdk-native-n3j8tn72.js → repository-n3j8tn72.js} +0 -0
- /package/dist/chunks/{aisdk-native-njntx4h6.js → repository-njntx4h6.js} +0 -0
- /package/dist/chunks/{aisdk-native-paphc93g.js → repository-paphc93g.js} +0 -0
- /package/dist/chunks/{aisdk-native-q3sfg36h.js → repository-q3sfg36h.js} +0 -0
- /package/dist/chunks/{aisdk-native-q74kybfr.js → repository-q74kybfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-qaymkmh1.js → repository-qaymkmh1.js} +0 -0
- /package/dist/chunks/{aisdk-native-qb87gjwd.js → repository-qb87gjwd.js} +0 -0
- /package/dist/chunks/{aisdk-native-qfa1cgps.js → repository-qfa1cgps.js} +0 -0
- /package/dist/chunks/{aisdk-native-qrg20bc0.js → repository-qrg20bc0.js} +0 -0
- /package/dist/chunks/{aisdk-native-rcb2kzg1.js → repository-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{aisdk-native-sdp7kfr6.js → repository-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{aisdk-native-sk3qaz4a.js → repository-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{aisdk-native-ssg3fenm.js → repository-ssg3fenm.js} +0 -0
- /package/dist/chunks/{aisdk-native-twg0f83k.js → repository-twg0f83k.js} +0 -0
- /package/dist/chunks/{aisdk-native-w803qqfp.js → repository-w803qqfp.js} +0 -0
- /package/dist/chunks/{aisdk-native-wer8tq1h.js → repository-wer8tq1h.js} +0 -0
- /package/dist/chunks/{aisdk-native-wtztk69x.js → repository-wtztk69x.js} +0 -0
- /package/dist/chunks/{aisdk-native-x0ckcb58.js → repository-x0ckcb58.js} +0 -0
- /package/dist/chunks/{aisdk-native-x61499pn.js → repository-x61499pn.js} +0 -0
- /package/dist/chunks/{aisdk-native-y44na4kk.js → repository-y44na4kk.js} +0 -0
- /package/dist/chunks/{aisdk-native-y6f0p4jw.js → repository-y6f0p4jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8cydn3q.js → repository-y8cydn3q.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8f7s663.js → repository-y8f7s663.js} +0 -0
- /package/dist/chunks/{aisdk-native-ygaqb7jw.js → repository-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-ym463w8f.js → repository-ym463w8f.js} +0 -0
- /package/dist/chunks/{aisdk-native-z9919s4g.js → repository-z9919s4g.js} +0 -0
|
@@ -1,70 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-y71avatq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service78,
|
|
6
|
+
node83
|
|
7
|
+
} from "./repository-cpn39njb.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service75,
|
|
11
|
+
node79
|
|
12
|
+
} from "./repository-1vnsgk5t.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service66,
|
|
15
|
+
node70
|
|
16
|
+
} from "./repository-1e17p1v6.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service65,
|
|
19
|
+
node69
|
|
20
|
+
} from "./repository-5dwnc6b3.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID18,
|
|
23
|
+
Service77,
|
|
24
|
+
node82
|
|
25
|
+
} from "./repository-y5znnrem.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./repository-kg06axw8.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID13,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service74,
|
|
34
|
+
node78
|
|
35
|
+
} from "./repository-b3pcj4k8.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./repository-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
46
|
-
Prompt: () => Prompt2,
|
|
47
|
-
PromptArgument: () => PromptArgument2,
|
|
48
|
-
PromptMessage: () => PromptMessage2,
|
|
49
|
-
PromptResult: () => PromptResult2,
|
|
44
|
+
NotFoundError: () => NotFoundError5,
|
|
45
|
+
Options: () => Options5,
|
|
50
46
|
PromptsChanged: () => PromptsChanged2,
|
|
51
47
|
Resource: () => Resource2,
|
|
52
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
53
49
|
ResourceContent: () => ResourceContent2,
|
|
54
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
55
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
56
|
-
ServerInfo: () => ServerInfo2,
|
|
57
|
-
ServerInstructions: () => ServerInstructions2,
|
|
58
52
|
ServerName: () => ServerName2,
|
|
59
53
|
Service: () => Service31,
|
|
60
54
|
Status: () => Status2,
|
|
61
|
-
Tool: () => Tool3,
|
|
62
55
|
ToolCallError: () => ToolCallError2,
|
|
63
|
-
|
|
64
|
-
ToolResultContent: () => ToolResultContent2,
|
|
65
|
-
configured: () => configured3,
|
|
56
|
+
configured: () => configured5,
|
|
66
57
|
layer: () => layer13,
|
|
67
|
-
node: () =>
|
|
58
|
+
node: () => node36
|
|
68
59
|
});
|
|
69
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
70
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -77,77 +68,13 @@ import { waitForAbort } from "@opencode/util/process";
|
|
|
77
68
|
var ServerName2 = Schema.String.pipe(Schema.brand("MCP.ServerName"));
|
|
78
69
|
var PromptsChanged2 = ephemeral({ type: "mcp.prompts.changed", schema: { server: Schema.String } });
|
|
79
70
|
var Status2 = Mcp.Status;
|
|
80
|
-
|
|
81
|
-
class ServerInfo2 extends Schema.Class("MCP.ServerInfo")({
|
|
82
|
-
name: ServerName2,
|
|
83
|
-
status: Status2,
|
|
84
|
-
integrationID: ID11.pipe(Schema.optional)
|
|
85
|
-
}) {
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
class ServerInstructions2 extends Schema.Class("MCP.ServerInstructions")({
|
|
89
|
-
server: ServerName2,
|
|
90
|
-
instructions: Schema.String
|
|
91
|
-
}) {
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
class Tool3 extends Schema.Class("MCP.Tool")({
|
|
95
|
-
server: ServerName2,
|
|
96
|
-
name: Schema.String,
|
|
97
|
-
codemode: Schema.Boolean.pipe(Schema.optional),
|
|
98
|
-
description: Schema.String.pipe(Schema.optional),
|
|
99
|
-
inputSchema: Schema.Unknown.pipe(Schema.optional),
|
|
100
|
-
outputSchema: Schema.Unknown.pipe(Schema.optional)
|
|
101
|
-
}) {
|
|
102
|
-
}
|
|
103
|
-
var ToolResultContent2 = Schema.Union([
|
|
104
|
-
Schema.Struct({ type: Schema.Literal("text"), text: Schema.String }),
|
|
105
|
-
Schema.Struct({ type: Schema.Literal("media"), data: Schema.String, mimeType: Schema.String })
|
|
106
|
-
]).pipe(Schema.toTaggedUnion("type"));
|
|
107
|
-
|
|
108
|
-
class ToolResult2 extends Schema.Class("MCP.ToolResult")({
|
|
109
|
-
server: ServerName2,
|
|
110
|
-
tool: Schema.String,
|
|
111
|
-
isError: Schema.Boolean,
|
|
112
|
-
structured: Schema.Unknown.pipe(Schema.optional),
|
|
113
|
-
content: Schema.Array(ToolResultContent2)
|
|
114
|
-
}) {
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
class PromptArgument2 extends Schema.Class("MCP.PromptArgument")({
|
|
118
|
-
name: Schema.String,
|
|
119
|
-
description: Schema.String.pipe(Schema.optional),
|
|
120
|
-
required: Schema.Boolean.pipe(Schema.optional)
|
|
121
|
-
}) {
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
class Prompt2 extends Schema.Class("MCP.Prompt")({
|
|
125
|
-
server: ServerName2,
|
|
126
|
-
name: Schema.String,
|
|
127
|
-
description: Schema.String.pipe(Schema.optional),
|
|
128
|
-
arguments: Schema.Array(PromptArgument2).pipe(Schema.optional)
|
|
129
|
-
}) {
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
class PromptMessage2 extends Schema.Class("MCP.PromptMessage")({
|
|
133
|
-
role: Schema.String,
|
|
134
|
-
content: Schema.Unknown
|
|
135
|
-
}) {
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
class PromptResult2 extends Schema.Class("MCP.PromptResult")({
|
|
139
|
-
server: ServerName2,
|
|
140
|
-
name: Schema.String,
|
|
141
|
-
messages: Schema.Array(PromptMessage2)
|
|
142
|
-
}) {
|
|
143
|
-
}
|
|
144
71
|
var Resource2 = Mcp.Resource;
|
|
145
72
|
var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
146
73
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
147
74
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
148
75
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
149
76
|
|
|
150
|
-
class
|
|
77
|
+
class NotFoundError5 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
151
78
|
server: ServerName2
|
|
152
79
|
}) {
|
|
153
80
|
get message() {
|
|
@@ -167,19 +94,19 @@ var cloneConfig = (config) => structuredClone(config);
|
|
|
167
94
|
|
|
168
95
|
class Service31 extends Context.Service()("@opencode/MCP") {
|
|
169
96
|
}
|
|
170
|
-
var
|
|
97
|
+
var Options5 = Schema.Struct({
|
|
171
98
|
clientInfo: Schema.optional(Schema.Struct({
|
|
172
99
|
name: Schema.String,
|
|
173
100
|
version: Schema.String
|
|
174
101
|
}))
|
|
175
102
|
});
|
|
176
103
|
var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
177
|
-
const location = yield*
|
|
178
|
-
const environment = yield*
|
|
179
|
-
const bus = yield*
|
|
180
|
-
const forms = yield*
|
|
181
|
-
const integration = yield*
|
|
182
|
-
const credentials = yield*
|
|
104
|
+
const location = yield* Service66;
|
|
105
|
+
const environment = yield* Service65;
|
|
106
|
+
const bus = yield* Service78;
|
|
107
|
+
const forms = yield* Service77;
|
|
108
|
+
const integration = yield* Service74;
|
|
109
|
+
const credentials = yield* Service75;
|
|
183
110
|
const root = yield* Effect.scope;
|
|
184
111
|
const fork = yield* FiberSet.makeRuntime();
|
|
185
112
|
const entries = new Map;
|
|
@@ -191,7 +118,7 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
191
118
|
return;
|
|
192
119
|
const remote = entry.config;
|
|
193
120
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
194
|
-
const integrationID =
|
|
121
|
+
const integrationID = ID13.make(suffix);
|
|
195
122
|
entry.integrationID = integrationID;
|
|
196
123
|
owned.add(integrationID);
|
|
197
124
|
const methodID = MethodID2.make(suffix);
|
|
@@ -207,7 +134,7 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
207
134
|
method: { id: methodID, type: "oauth", label: name },
|
|
208
135
|
authorize: () => Effect.gen(function* () {
|
|
209
136
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
210
|
-
return yield* McpOAuth.authorize({ name, config: remote, methodID });
|
|
137
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service75, credentials));
|
|
211
138
|
})
|
|
212
139
|
});
|
|
213
140
|
}).pipe(Scope.provide(scope));
|
|
@@ -216,108 +143,23 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
216
143
|
const name = ServerName2.make(server);
|
|
217
144
|
const entry = entries.get(name);
|
|
218
145
|
if (!entry)
|
|
219
|
-
return yield* new
|
|
146
|
+
return yield* new NotFoundError5({ server: name });
|
|
220
147
|
return { name, entry };
|
|
221
148
|
});
|
|
222
149
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
223
150
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
224
151
|
return;
|
|
225
152
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
226
|
-
|
|
227
|
-
const oauth = remote.oauth || undefined;
|
|
228
|
-
const run = Effect.runPromiseWith(yield* Effect.context());
|
|
229
|
-
const base = {
|
|
230
|
-
redirectUrl: oauth?.redirect_uri ?? "http://127.0.0.1/callback",
|
|
231
|
-
scope: oauth?.scope,
|
|
232
|
-
client: oauth?.client_id ? { id: oauth.client_id, secret: oauth.client_secret } : undefined,
|
|
233
|
-
onRedirect: () => run(Effect.logInfo("mcp oauth authorization required"))
|
|
234
|
-
};
|
|
235
|
-
const found = (yield* credentials.list(entry.integrationID)).at(-1);
|
|
236
|
-
if (!found || found.value.type !== "oauth") {
|
|
237
|
-
yield* Effect.logInfo("mcp oauth credential unavailable", {
|
|
238
|
-
integrationID: entry.integrationID,
|
|
239
|
-
reason: found ? "not_oauth" : "missing"
|
|
240
|
-
});
|
|
241
|
-
return McpOAuth.provider({ ...base, store: McpOAuth.memoryStore() });
|
|
242
|
-
}
|
|
243
|
-
const credentialID = found.id;
|
|
244
|
-
const methodID = found.value.methodID;
|
|
245
|
-
const fields = { credentialID, integrationID: entry.integrationID };
|
|
246
|
-
yield* Effect.logInfo("mcp oauth credential loaded", {
|
|
247
|
-
...fields,
|
|
248
|
-
hasRefreshToken: Boolean(found.value.refresh),
|
|
249
|
-
hasClientInformation: Boolean(McpOAuth.clientFromCredential(found.value)),
|
|
250
|
-
expiresAt: found.value.expires,
|
|
251
|
-
expired: found.value.expires !== 0 && found.value.expires <= Date.now()
|
|
252
|
-
});
|
|
253
|
-
let presented = found.value.refresh;
|
|
254
|
-
const readOAuthCredential = async () => {
|
|
255
|
-
const stored = await run(credentials.get(credentialID));
|
|
256
|
-
return stored?.value.type === "oauth" ? stored.value : undefined;
|
|
257
|
-
};
|
|
258
|
-
return McpOAuth.provider({
|
|
259
|
-
...base,
|
|
260
|
-
invalidate: async (scope) => {
|
|
261
|
-
if (scope === "verifier" || scope === "discovery") {
|
|
262
|
-
await run(Effect.logDebug("mcp oauth invalidation skipped", { ...fields, scope, reason: "not_credentials" }));
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const oauth = await readOAuthCredential();
|
|
266
|
-
if (!oauth || oauth.refresh !== presented) {
|
|
267
|
-
await run(Effect.logInfo("mcp oauth invalidation skipped", {
|
|
268
|
-
...fields,
|
|
269
|
-
scope,
|
|
270
|
-
reason: oauth ? "token_rotated" : "credential_missing"
|
|
271
|
-
}));
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
await run(Effect.logWarning("mcp oauth credential invalidation requested", { ...fields, scope }));
|
|
275
|
-
await run(credentials.remove(credentialID));
|
|
276
|
-
},
|
|
277
|
-
store: {
|
|
278
|
-
tokens: async () => {
|
|
279
|
-
const oauth = await readOAuthCredential();
|
|
280
|
-
if (!oauth)
|
|
281
|
-
return;
|
|
282
|
-
presented = oauth.refresh;
|
|
283
|
-
return McpOAuth.toTokens(oauth);
|
|
284
|
-
},
|
|
285
|
-
saveTokens: async (tokens) => {
|
|
286
|
-
const previous = await readOAuthCredential();
|
|
287
|
-
const value = McpOAuth.toCredential({
|
|
288
|
-
methodID,
|
|
289
|
-
serverUrl: remote.url,
|
|
290
|
-
tokens,
|
|
291
|
-
client: previous ? McpOAuth.clientFromCredential(previous) : undefined
|
|
292
|
-
});
|
|
293
|
-
presented = value.refresh;
|
|
294
|
-
await run(Effect.logInfo("mcp oauth tokens received", {
|
|
295
|
-
...fields,
|
|
296
|
-
credentialPresent: Boolean(previous),
|
|
297
|
-
refreshRotated: Boolean(previous && previous.refresh !== value.refresh),
|
|
298
|
-
hasRefreshToken: Boolean(value.refresh),
|
|
299
|
-
expiresAt: value.expires
|
|
300
|
-
}));
|
|
301
|
-
await run(credentials.update(credentialID, { value }));
|
|
302
|
-
},
|
|
303
|
-
clientInformation: async () => {
|
|
304
|
-
const oauth = await readOAuthCredential();
|
|
305
|
-
return oauth ? McpOAuth.clientFromCredential(oauth) : undefined;
|
|
306
|
-
},
|
|
307
|
-
saveClientInformation: async () => {},
|
|
308
|
-
codeVerifier: async () => {
|
|
309
|
-
return;
|
|
310
|
-
},
|
|
311
|
-
saveCodeVerifier: async () => {}
|
|
312
|
-
}
|
|
313
|
-
});
|
|
153
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service75, credentials));
|
|
314
154
|
});
|
|
315
155
|
const elicitation = {
|
|
316
156
|
create: (input) => Effect.gen(function* () {
|
|
317
157
|
if (input.params.mode === "url") {
|
|
318
|
-
const formID =
|
|
319
|
-
const
|
|
320
|
-
|
|
158
|
+
const formID = ID18.create();
|
|
159
|
+
const elicitationID = input.params.elicitationId;
|
|
160
|
+
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
161
|
+
if (key)
|
|
162
|
+
urlElicitations.set(key, formID);
|
|
321
163
|
return yield* forms.ask({
|
|
322
164
|
id: formID,
|
|
323
165
|
sessionID: GLOBAL_ELICITATION_SESSION_ID,
|
|
@@ -325,11 +167,11 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
325
167
|
metadata: {
|
|
326
168
|
kind: "mcp-elicitation",
|
|
327
169
|
server: input.server,
|
|
328
|
-
elicitationID:
|
|
170
|
+
...elicitationID === undefined ? {} : { elicitationID },
|
|
329
171
|
message: input.params.message
|
|
330
172
|
},
|
|
331
173
|
fields: [{ key: URL_ELICITATION_FIELD_KEY, type: "external", url: input.params.url }]
|
|
332
|
-
}).pipe(Effect.raceFirst(waitForAbort(input.signal)), Effect.ensuring(Effect.sync(() => urlElicitations.delete(key))), Effect.map((state) => ({
|
|
174
|
+
}).pipe(Effect.raceFirst(waitForAbort(input.signal)), Effect.ensuring(Effect.sync(() => key && urlElicitations.delete(key))), Effect.map((state) => ({
|
|
333
175
|
action: state.status === "answered" ? "accept" : "cancel"
|
|
334
176
|
})));
|
|
335
177
|
}
|
|
@@ -358,45 +200,26 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
358
200
|
yield* forms.reply({ id: formID, answer: { [URL_ELICITATION_FIELD_KEY]: true } }).pipe(Effect.ignore);
|
|
359
201
|
})
|
|
360
202
|
};
|
|
361
|
-
const toTool = (server, entry,
|
|
203
|
+
const toTool = (server, entry, tool) => ({
|
|
204
|
+
...tool,
|
|
362
205
|
server,
|
|
363
|
-
|
|
364
|
-
codemode: entry.config.codemode,
|
|
365
|
-
description: def.description,
|
|
366
|
-
inputSchema: def.inputSchema,
|
|
367
|
-
outputSchema: def.outputSchema
|
|
206
|
+
...entry.config.codemode === undefined ? {} : { codemode: entry.config.codemode }
|
|
368
207
|
});
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
name: def.name,
|
|
372
|
-
description: def.description,
|
|
373
|
-
arguments: def.arguments?.map((argument) => new PromptArgument2({
|
|
374
|
-
name: argument.name,
|
|
375
|
-
description: argument.description,
|
|
376
|
-
required: argument.required
|
|
377
|
-
}))
|
|
378
|
-
});
|
|
379
|
-
const toResource = (server, def) => Resource2.make({
|
|
380
|
-
server,
|
|
381
|
-
name: def.name,
|
|
382
|
-
uri: def.uri,
|
|
383
|
-
description: def.description,
|
|
384
|
-
mimeType: def.mimeType
|
|
385
|
-
});
|
|
386
|
-
const toResourceTemplate = (server, def) => ResourceTemplate2.make({
|
|
387
|
-
server,
|
|
388
|
-
name: def.name,
|
|
389
|
-
uriTemplate: def.uriTemplate,
|
|
390
|
-
description: def.description,
|
|
391
|
-
mimeType: def.mimeType
|
|
392
|
-
});
|
|
393
|
-
const refreshTools = (name, entry, connection) => connection.tools().pipe(Effect.map((defs) => {
|
|
394
|
-
entry.tools = defs.map((def) => toTool(name, entry, def));
|
|
208
|
+
const refreshTools = (name, entry, connection) => connection.tools().pipe(Effect.map((tools) => {
|
|
209
|
+
entry.tools = tools.map((tool) => toTool(name, entry, tool));
|
|
395
210
|
}));
|
|
396
|
-
const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.orElseSucceed(() => []), Effect.map((
|
|
397
|
-
entry.prompts =
|
|
211
|
+
const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.orElseSucceed(() => []), Effect.map((prompts) => {
|
|
212
|
+
entry.prompts = prompts.map((prompt) => ({ ...prompt, server: name }));
|
|
398
213
|
}), Effect.andThen(bus.publish(PromptsChanged2, { server: name })));
|
|
399
214
|
const whenLive = (name, entry, connection) => (effect) => fork(Effect.suspend(() => entry.client === connection ? effect : Effect.void).pipe(locks.withLock(name), Effect.ignore));
|
|
215
|
+
const recover = (name, entry, connection) => Effect.gen(function* () {
|
|
216
|
+
if (entry.client !== connection)
|
|
217
|
+
return;
|
|
218
|
+
yield* Effect.logInfo("mcp session expired, reconnecting", { server: name });
|
|
219
|
+
yield* stopServer(name, entry);
|
|
220
|
+
yield* startServer(name, entry);
|
|
221
|
+
}).pipe(locks.withLock(name));
|
|
222
|
+
const recovering = (name, entry, connection, run) => run(connection).pipe(Effect.catchIf((error) => ("_tag" in error) && error._tag === "MCP.SessionExpiredError", (error) => recover(name, entry, connection).pipe(Effect.flatMap(() => entry.client ? run(entry.client) : Effect.fail(error)))));
|
|
400
223
|
const watch = (name, entry, connection) => {
|
|
401
224
|
const live = whenLive(name, entry, connection);
|
|
402
225
|
connection.onClose(() => live(Effect.gen(function* () {
|
|
@@ -404,28 +227,11 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
404
227
|
yield* stopServer(name, entry);
|
|
405
228
|
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
406
229
|
})));
|
|
407
|
-
connection.
|
|
230
|
+
connection.onSessionExpired(() => fork(recover(name, entry, connection)));
|
|
408
231
|
connection.onToolsChanged(() => live(refreshTools(name, entry, connection).pipe(Effect.andThen(bus.publish(McpEvent.ToolsChanged, { server: name })))));
|
|
409
232
|
connection.onPromptsChanged(() => live(refreshPrompts(name, entry, connection)));
|
|
410
233
|
connection.onResourcesChanged(() => live(bus.publish(McpEvent.ResourcesChanged, { server: name })));
|
|
411
234
|
};
|
|
412
|
-
const serverLog = (server, message) => {
|
|
413
|
-
const fields = { server, logger: message.logger, level: message.level, data: message.data };
|
|
414
|
-
switch (message.level) {
|
|
415
|
-
case "debug":
|
|
416
|
-
return Effect.logDebug("MCP server log", fields);
|
|
417
|
-
case "info":
|
|
418
|
-
case "notice":
|
|
419
|
-
return Effect.logInfo("MCP server log", fields);
|
|
420
|
-
case "warning":
|
|
421
|
-
return Effect.logWarning("MCP server log", fields);
|
|
422
|
-
case "error":
|
|
423
|
-
case "critical":
|
|
424
|
-
case "alert":
|
|
425
|
-
case "emergency":
|
|
426
|
-
return Effect.logError("MCP server log", fields);
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
235
|
const startServer = (name, entry) => Effect.gen(function* () {
|
|
430
236
|
entry.status = { status: "pending" };
|
|
431
237
|
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
@@ -433,10 +239,10 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
433
239
|
entry.scope = scope;
|
|
434
240
|
const authProvider = yield* connectProvider(entry);
|
|
435
241
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
436
|
-
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
242
|
+
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service65, environment), Scope.provide(scope), Effect.exit);
|
|
437
243
|
if (Exit.isSuccess(result)) {
|
|
438
244
|
entry.client = result.value.connection;
|
|
439
|
-
entry.tools = result.value.tools.map((
|
|
245
|
+
entry.tools = result.value.tools.map((tool) => toTool(name, entry, tool));
|
|
440
246
|
entry.prompts = [];
|
|
441
247
|
entry.status = { status: "connected" };
|
|
442
248
|
watch(name, entry, result.value.connection);
|
|
@@ -557,7 +363,7 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
557
363
|
yield* startServer(name, entry);
|
|
558
364
|
}).pipe(locks.withLock(name));
|
|
559
365
|
});
|
|
560
|
-
fork(bus.subscribe(
|
|
366
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
561
367
|
const state = create3({
|
|
562
368
|
name: "mcp",
|
|
563
369
|
initial: () => ({
|
|
@@ -583,15 +389,11 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
583
389
|
}),
|
|
584
390
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
585
391
|
});
|
|
586
|
-
const whenAllReady = Effect.suspend(() => Effect.forEach(Array.from(entries.values()), (entry) => entry.startup.await, {
|
|
587
|
-
concurrency: "unbounded",
|
|
588
|
-
discard: true
|
|
589
|
-
}));
|
|
590
392
|
return Service31.of({
|
|
591
393
|
transform: state.transform,
|
|
592
394
|
reload: state.reload,
|
|
593
395
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
594
|
-
return Array.from(entries).toSorted(([a], [b]) => a.localeCompare(b)).map(([name, entry]) =>
|
|
396
|
+
return Array.from(entries).toSorted(([a], [b]) => a.localeCompare(b)).map(([name, entry]) => ({ name, status: entry.status, integrationID: entry.integrationID }));
|
|
595
397
|
}),
|
|
596
398
|
add: Effect.fn("MCP.add")(function* (server, config) {
|
|
597
399
|
const name = ServerName2.make(server);
|
|
@@ -622,7 +424,6 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
622
424
|
yield* state.reload();
|
|
623
425
|
}),
|
|
624
426
|
tools: Effect.fn("MCP.tools")(function* () {
|
|
625
|
-
yield* whenAllReady;
|
|
626
427
|
return Array.from(entries.values()).flatMap((entry) => entry.tools ?? []).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
|
|
627
428
|
}),
|
|
628
429
|
callTool: Effect.fn("MCP.callTool")(function* (input) {
|
|
@@ -634,22 +435,15 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
634
435
|
tool: input.name,
|
|
635
436
|
message: "MCP server is not connected"
|
|
636
437
|
});
|
|
637
|
-
const result = yield* target.entry.client.callTool({ name: input.name, args: input.args, sessionID: input.sessionID }).pipe(Effect.mapError((error) => new ToolCallError2({ server: target.name, tool: input.name, message: error.message })));
|
|
638
|
-
return
|
|
639
|
-
server: target.name,
|
|
640
|
-
tool: input.name,
|
|
641
|
-
isError: result.isError,
|
|
642
|
-
structured: result.structured,
|
|
643
|
-
content: result.content
|
|
644
|
-
});
|
|
438
|
+
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({ server: target.name, tool: input.name, message: error.message })));
|
|
439
|
+
return { ...result, server: target.name, tool: input.name };
|
|
645
440
|
}),
|
|
646
441
|
instructions: Effect.fn("MCP.instructions")(function* () {
|
|
647
|
-
yield* whenAllReady;
|
|
648
442
|
return Array.from(entries).flatMap(([server, entry]) => {
|
|
649
443
|
const instructions = entry.client?.instructions;
|
|
650
444
|
if (!instructions)
|
|
651
445
|
return [];
|
|
652
|
-
return [
|
|
446
|
+
return [{ server, instructions }];
|
|
653
447
|
}).toSorted((a, b) => a.server.localeCompare(b.server));
|
|
654
448
|
}),
|
|
655
449
|
prompts: Effect.fn("MCP.prompts")(function* () {
|
|
@@ -660,19 +454,14 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
660
454
|
yield* target.entry.startup.await;
|
|
661
455
|
if (!target.entry.client)
|
|
662
456
|
return;
|
|
663
|
-
const result = yield* target.entry.client.prompt({ name: input.name, args: input.args }).pipe(Effect.orElseSucceed(() => {
|
|
457
|
+
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.prompt({ name: input.name, args: input.args })).pipe(Effect.orElseSucceed(() => {
|
|
664
458
|
return;
|
|
665
459
|
}));
|
|
666
460
|
if (!result)
|
|
667
461
|
return;
|
|
668
|
-
return
|
|
669
|
-
server: target.name,
|
|
670
|
-
name: input.name,
|
|
671
|
-
messages: result.messages.map((message) => new PromptMessage2({ role: message.role, content: message.content }))
|
|
672
|
-
});
|
|
462
|
+
return { ...result, server: target.name, name: input.name };
|
|
673
463
|
}),
|
|
674
464
|
resourceCatalog: Effect.fn("MCP.resourceCatalog")(function* () {
|
|
675
|
-
yield* whenAllReady;
|
|
676
465
|
const catalogs = yield* Effect.forEach(Array.from(entries), ([name, entry]) => {
|
|
677
466
|
if (!entry.client)
|
|
678
467
|
return Effect.succeed({ resources: [], templates: [] });
|
|
@@ -680,8 +469,20 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
680
469
|
resources: entry.client.resources().pipe(Effect.orElseSucceed(() => [])),
|
|
681
470
|
templates: entry.client.resourceTemplates().pipe(Effect.orElseSucceed(() => []))
|
|
682
471
|
}, { concurrency: "unbounded" }).pipe(Effect.map((catalog) => ({
|
|
683
|
-
resources: catalog.resources.map((
|
|
684
|
-
|
|
472
|
+
resources: catalog.resources.map((resource) => Resource2.make({
|
|
473
|
+
server: name,
|
|
474
|
+
name: resource.name,
|
|
475
|
+
uri: resource.uri,
|
|
476
|
+
description: resource.description,
|
|
477
|
+
mimeType: resource.mimeType
|
|
478
|
+
})),
|
|
479
|
+
templates: catalog.templates.map((template) => ResourceTemplate2.make({
|
|
480
|
+
server: name,
|
|
481
|
+
name: template.name,
|
|
482
|
+
uriTemplate: template.uriTemplate,
|
|
483
|
+
description: template.description,
|
|
484
|
+
mimeType: template.mimeType
|
|
485
|
+
}))
|
|
685
486
|
})));
|
|
686
487
|
}, { concurrency: "unbounded" });
|
|
687
488
|
return ResourceCatalog2.make({
|
|
@@ -694,7 +495,7 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
694
495
|
yield* target.entry.startup.await;
|
|
695
496
|
if (!target.entry.client)
|
|
696
497
|
return;
|
|
697
|
-
const result = yield* target.entry.client.readResource({ uri: input.uri }).pipe(Effect.orElseSucceed(() => {
|
|
498
|
+
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.readResource({ uri: input.uri })).pipe(Effect.orElseSucceed(() => {
|
|
698
499
|
return;
|
|
699
500
|
}));
|
|
700
501
|
if (!result)
|
|
@@ -702,19 +503,19 @@ var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
702
503
|
return ResourceContent2.make({
|
|
703
504
|
server: target.name,
|
|
704
505
|
uri: input.uri,
|
|
705
|
-
contents: result.contents
|
|
506
|
+
contents: result.contents.map((part) => ("text" in part) ? { type: "text", uri: part.uri, text: part.text, mimeType: part.mimeType } : { type: "blob", uri: part.uri, blob: part.blob, mimeType: part.mimeType })
|
|
706
507
|
});
|
|
707
508
|
})
|
|
708
509
|
});
|
|
709
510
|
}));
|
|
710
|
-
function
|
|
511
|
+
function configured5(options) {
|
|
711
512
|
return makeLocationNode({
|
|
712
513
|
service: Service31,
|
|
713
514
|
layer: layer13(options),
|
|
714
|
-
deps: [
|
|
515
|
+
deps: [node70, node69, node83, node82, node78, node79]
|
|
715
516
|
});
|
|
716
517
|
}
|
|
717
|
-
var
|
|
518
|
+
var node36 = configured5();
|
|
718
519
|
function toElicitationField(key, property, required) {
|
|
719
520
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
720
521
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -765,4 +566,4 @@ function toElicitationField(key, property, required) {
|
|
|
765
566
|
}
|
|
766
567
|
}
|
|
767
568
|
|
|
768
|
-
export { ServerName2, PromptsChanged2, Status2,
|
|
569
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError5, ToolCallError2, Service31, Options5, layer13, configured5, node36, exports_mcp4 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/provider.ts
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info9,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info9 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info11 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info9, exports_provider2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID16
|
|
3
|
+
} from "./repository-pye8sh6e.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-hjbc5kem.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID16.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID16.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|