@opencode/core 0.0.0-dev-19587 → 0.0.0-dev-19589
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 +80 -80
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +7 -7
- package/dist/bus.js +68 -68
- package/dist/catalog.js +84 -84
- package/dist/chunks/{aisdk-native-12zzk1x1.js → generate-00rza3cb.js} +20 -20
- package/dist/chunks/{aisdk-native-vcmavarf.js → generate-02b4kzbq.js} +4 -4
- package/dist/chunks/{aisdk-native-4y910e9x.js → generate-08xvefmx.js} +5 -5
- package/dist/chunks/{aisdk-native-8wzfhrcc.js → generate-0bes2rj4.js} +19 -19
- package/dist/chunks/{aisdk-native-afcey384.js → generate-0n8ns8gx.js} +10 -10
- package/dist/chunks/{aisdk-native-0paq2nw3.js → generate-0paq2nw3.js} +1 -1
- package/dist/chunks/{aisdk-native-0q0f95c6.js → generate-0q0f95c6.js} +1 -1
- package/dist/chunks/{aisdk-native-h0vxvrcv.js → generate-0zzb6e4a.js} +43 -43
- package/dist/chunks/{aisdk-native-rs64jzc9.js → generate-10sykk4e.js} +24 -24
- package/dist/chunks/{aisdk-native-xtrzjk7e.js → generate-12v0qx6f.js} +6 -6
- package/dist/chunks/{aisdk-native-k8tj7ker.js → generate-16c77kcq.js} +20 -20
- package/dist/chunks/{aisdk-native-1dazxqgg.js → generate-1dazxqgg.js} +2 -2
- package/dist/chunks/{aisdk-native-cjg4xdhd.js → generate-1msf33w2.js} +8 -8
- package/dist/chunks/{aisdk-native-1z24fpan.js → generate-1qezbnxe.js} +7 -7
- package/dist/chunks/{aisdk-native-96bqv5va.js → generate-1wys6wms.js} +23 -23
- package/dist/chunks/{aisdk-native-jm425462.js → generate-20h7pzdp.js} +33 -33
- package/dist/chunks/{aisdk-native-21r38tys.js → generate-21r38tys.js} +1 -1
- package/dist/chunks/{aisdk-native-2402vzrj.js → generate-2402vzrj.js} +1 -1
- package/dist/chunks/{aisdk-native-ft5xsh3g.js → generate-24j5m5j2.js} +37 -37
- package/dist/chunks/{aisdk-native-2a5m3afh.js → generate-2a5m3afh.js} +1 -1
- package/dist/chunks/{aisdk-native-y6f0p4jw.js → generate-2f04pwep.js} +3 -3
- package/dist/chunks/{aisdk-native-x3et2xth.js → generate-2hyh68ab.js} +8 -8
- package/dist/chunks/{aisdk-native-607tc6va.js → generate-2k8khapm.js} +5 -5
- package/dist/chunks/{aisdk-native-qm6d722f.js → generate-2kqh0ztw.js} +17 -17
- package/dist/chunks/{aisdk-native-pded2qbh.js → generate-2xfe5qwb.js} +10 -10
- package/dist/chunks/{aisdk-native-5e6hx92c.js → generate-32nvexxh.js} +35 -35
- package/dist/chunks/{aisdk-native-dgs0k0pe.js → generate-37qnb1a0.js} +20 -20
- package/dist/chunks/{aisdk-native-c2hgjq9y.js → generate-3avmt772.js} +10 -10
- package/dist/chunks/{aisdk-native-m5n1efj3.js → generate-3dd05w7p.js} +12 -12
- package/dist/chunks/{aisdk-native-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
- package/dist/chunks/{aisdk-native-ez39whr3.js → generate-3fqwgmhf.js} +13 -13
- package/dist/chunks/{aisdk-native-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{aisdk-native-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
- package/dist/chunks/{aisdk-native-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
- package/dist/chunks/{aisdk-native-1313y6az.js → generate-3w8fp492.js} +35 -35
- package/dist/chunks/{aisdk-native-exs5x9p4.js → generate-3x5jgmm4.js} +22 -22
- package/dist/chunks/{aisdk-native-qjwa214h.js → generate-45tnwva7.js} +11 -11
- package/dist/chunks/{aisdk-native-8764jjnd.js → generate-4d8bqxce.js} +18 -18
- package/dist/chunks/{aisdk-native-47v7jqjw.js → generate-4dpyenvm.js} +39 -39
- package/dist/chunks/{aisdk-native-gcavn3wx.js → generate-4drgpw32.js} +5 -5
- package/dist/chunks/{aisdk-native-3sppp1ax.js → generate-4nyc7g3g.js} +39 -39
- package/dist/chunks/generate-4v7qdvcn.js +18 -0
- package/dist/chunks/{aisdk-native-4ba3v9yg.js → generate-50kfk4rp.js} +32 -32
- package/dist/chunks/{aisdk-native-mfqp6xfm.js → generate-56gdpj1q.js} +6 -6
- package/dist/chunks/{aisdk-native-mz6ae2yf.js → generate-56mz75yv.js} +1 -1
- package/dist/chunks/{aisdk-native-5daktx2q.js → generate-5daktx2q.js} +1 -1
- package/dist/chunks/{aisdk-native-1bykzgew.js → generate-5nayf2hz.js} +20 -20
- package/dist/chunks/{aisdk-native-5t3nmthw.js → generate-5t3nmthw.js} +2 -2
- package/dist/chunks/{aisdk-native-ry3zdq1e.js → generate-5xyazqxs.js} +13 -13
- package/dist/chunks/{aisdk-native-r7by1z8b.js → generate-6275my5r.js} +14 -14
- package/dist/chunks/{aisdk-native-v9kk4whf.js → generate-62en8r1m.js} +16 -16
- package/dist/chunks/{aisdk-native-qfzde7bh.js → generate-63xctefh.js} +6 -6
- package/dist/chunks/{aisdk-native-669tq793.js → generate-669tq793.js} +1 -1
- package/dist/chunks/{aisdk-native-a6v99qxw.js → generate-6anwy9fs.js} +4 -4
- package/dist/chunks/{aisdk-native-b2hqgwse.js → generate-6f9y8hff.js} +1 -1
- package/dist/chunks/{aisdk-native-6msgmcgs.js → generate-6msgmcgs.js} +1 -1
- package/dist/chunks/{aisdk-native-s8d2x3ew.js → generate-6q78kr02.js} +36 -36
- package/dist/chunks/{aisdk-native-yppnjwr8.js → generate-6qqtbadc.js} +12 -12
- package/dist/chunks/{aisdk-native-1x3znp50.js → generate-6t8hmcr4.js} +11 -11
- package/dist/chunks/{aisdk-native-71q4at8m.js → generate-71q4at8m.js} +1 -1
- package/dist/chunks/{aisdk-native-23279rje.js → generate-73t188jy.js} +8 -8
- package/dist/chunks/{aisdk-native-e0gy8g4h.js → generate-76awjvz1.js} +46 -46
- package/dist/chunks/{aisdk-native-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{aisdk-native-xbh8dx30.js → generate-7g5fcwbq.js} +34 -34
- package/dist/chunks/{aisdk-native-0f9afca0.js → generate-7gvwkz6m.js} +5 -5
- package/dist/chunks/{aisdk-native-e5xpd6yj.js → generate-7p797550.js} +6 -6
- package/dist/chunks/{aisdk-native-0pb75hch.js → generate-7pvxdgd3.js} +5 -5
- package/dist/chunks/{aisdk-native-ckhhmwpb.js → generate-7r6j96x8.js} +17 -17
- package/dist/chunks/{aisdk-native-dps54153.js → generate-7wce90dj.js} +4 -4
- package/dist/chunks/{aisdk-native-jxyew9fw.js → generate-7ybm1f9d.js} +4 -4
- package/dist/chunks/{aisdk-native-rsym84ch.js → generate-81swgkk7.js} +7 -7
- package/dist/chunks/{aisdk-native-4ns3h2re.js → generate-87deq66t.js} +6 -6
- package/dist/chunks/{aisdk-native-9p3mq0sv.js → generate-87pnyk16.js} +38 -38
- package/dist/chunks/{aisdk-native-rdt0v5r4.js → generate-8ak0x4nb.js} +13 -13
- package/dist/chunks/{aisdk-native-8d7r5vzw.js → generate-8d7r5vzw.js} +1 -1
- package/dist/chunks/{aisdk-native-1jzc9t6q.js → generate-8n3jwev3.js} +11 -11
- package/dist/chunks/{aisdk-native-8p4f9s12.js → generate-8p4f9s12.js} +2 -2
- package/dist/chunks/{aisdk-native-265kqrgy.js → generate-8vhgkqm3.js} +1 -1
- package/dist/chunks/{aisdk-native-877fs4kk.js → generate-91nn3y69.js} +9 -9
- package/dist/chunks/{aisdk-native-33n3bzdy.js → generate-938z9950.js} +8 -8
- package/dist/chunks/{aisdk-native-87j3jmrh.js → generate-9ag79664.js} +11 -11
- package/dist/chunks/{aisdk-native-3v2fsnmc.js → generate-9crdg4t6.js} +20 -20
- package/dist/chunks/{aisdk-native-6z8ng6g9.js → generate-9ffm2vsk.js} +20 -20
- package/dist/chunks/{aisdk-native-z4fsc67a.js → generate-9n2nj1bj.js} +13 -13
- package/dist/chunks/{aisdk-native-jxnsayze.js → generate-9wewr7va.js} +13 -13
- package/dist/chunks/{aisdk-native-a1bz86dw.js → generate-a1bz86dw.js} +3 -3
- package/dist/chunks/{aisdk-native-4ff8ce17.js → generate-a1z932ek.js} +12 -12
- package/dist/chunks/{aisdk-native-0efqgjpv.js → generate-a77201cw.js} +9 -9
- package/dist/chunks/{aisdk-native-q4s82tbp.js → generate-a9q879s9.js} +24 -24
- package/dist/chunks/{aisdk-native-aaet6srn.js → generate-aaet6srn.js} +2 -2
- package/dist/chunks/{aisdk-native-r92yfjvg.js → generate-am3ejsbr.js} +16 -16
- package/dist/chunks/{aisdk-native-z87g79ds.js → generate-aqfcjpct.js} +4 -4
- package/dist/chunks/{aisdk-native-1kzvh1r6.js → generate-b0j5wwjs.js} +18 -18
- package/dist/chunks/{aisdk-native-wavq5vqb.js → generate-b36s3smy.js} +1 -1
- package/dist/chunks/{aisdk-native-b6gygkdw.js → generate-b6gygkdw.js} +2 -2
- package/dist/chunks/{aisdk-native-558gpyz0.js → generate-bd774qr3.js} +63 -63
- package/dist/chunks/{aisdk-native-ww9ntz46.js → generate-bfaa1j0f.js} +8 -8
- package/dist/chunks/{aisdk-native-cq37gk0t.js → generate-bha4atvq.js} +4 -4
- package/dist/chunks/{aisdk-native-cvtmmhw6.js → generate-bjkv1hdp.js} +1 -1
- package/dist/chunks/{aisdk-native-fyymr9xg.js → generate-bjn91642.js} +4 -4
- package/dist/chunks/{aisdk-native-kxgkddgm.js → generate-bkmwhnwd.js} +7 -7
- package/dist/chunks/{aisdk-native-4knrs4xe.js → generate-bn8ndby6.js} +15 -15
- package/dist/chunks/{aisdk-native-e5nv3ght.js → generate-bndc73cn.js} +5 -5
- package/dist/chunks/{aisdk-native-0d65gp2j.js → generate-bp49gp0s.js} +14 -14
- package/dist/chunks/{aisdk-native-89sq04rc.js → generate-btvmhe1w.js} +17 -17
- package/dist/chunks/{aisdk-native-732en32p.js → generate-bw5dejcj.js} +30 -30
- package/dist/chunks/{aisdk-native-expn7grm.js → generate-c4he4ws2.js} +3 -3
- package/dist/chunks/{aisdk-native-4087s44y.js → generate-c7y10hhw.js} +11 -11
- package/dist/chunks/{aisdk-native-nw4bp5ek.js → generate-c7y5nz0h.js} +22 -22
- package/dist/chunks/{aisdk-native-9jdakqgh.js → generate-cd6ptskk.js} +12 -12
- package/dist/chunks/{aisdk-native-cfpkc3c9.js → generate-cfpkc3c9.js} +2 -2
- package/dist/chunks/{aisdk-native-8798nsf2.js → generate-cjq82wfa.js} +5 -5
- package/dist/chunks/{aisdk-native-jg1wx3s5.js → generate-cknds85b.js} +20 -20
- package/dist/chunks/{aisdk-native-pt1wzm9p.js → generate-cwkg32z7.js} +4 -4
- package/dist/chunks/{aisdk-native-0artwwxx.js → generate-cyaz419g.js} +3 -3
- package/dist/chunks/{aisdk-native-jx8g4evx.js → generate-d2t1ewjp.js} +9 -9
- package/dist/chunks/{aisdk-native-q29qt9dw.js → generate-d4pcbfc2.js} +2 -2
- package/dist/chunks/{aisdk-native-tpw7nhda.js → generate-d8jj1mc6.js} +8 -8
- package/dist/chunks/{aisdk-native-enw7m7xp.js → generate-dg5bcj4q.js} +4 -4
- package/dist/chunks/{aisdk-native-37s12vcn.js → generate-dj9sq318.js} +5 -5
- package/dist/chunks/{aisdk-native-70d2s7af.js → generate-dq61m4ak.js} +1 -1
- package/dist/chunks/{aisdk-native-k8rh8kbe.js → generate-dvmmef1m.js} +15 -15
- package/dist/chunks/{aisdk-native-pscvwjzk.js → generate-e1ffenq0.js} +26 -26
- package/dist/chunks/{aisdk-native-yjptyezs.js → generate-e6hmchc5.js} +5 -5
- package/dist/chunks/{aisdk-native-msp5pacb.js → generate-e9bv773h.js} +43 -43
- package/dist/chunks/{aisdk-native-rhjbct0v.js → generate-eaj1djv9.js} +8 -8
- package/dist/chunks/{aisdk-native-qy9vy1f4.js → generate-eex2agwy.js} +6 -6
- package/dist/chunks/{aisdk-native-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
- package/dist/chunks/{aisdk-native-acxdgsqj.js → generate-efy70ew4.js} +9 -9
- package/dist/chunks/{aisdk-native-jvdd4w81.js → generate-ep6z9mt6.js} +8 -8
- package/dist/chunks/{aisdk-native-wvmhx4nb.js → generate-eraanh1f.js} +4 -4
- package/dist/chunks/{aisdk-native-9zswys26.js → generate-esj243wz.js} +9 -9
- package/dist/chunks/{aisdk-native-etq0c3wd.js → generate-etq0c3wd.js} +1 -1
- package/dist/chunks/{aisdk-native-yp2x3t23.js → generate-f2n192rq.js} +4 -4
- package/dist/chunks/{aisdk-native-1sk4t3bw.js → generate-f5k1bfnh.js} +92 -291
- package/dist/chunks/{aisdk-native-f828m53h.js → generate-f828m53h.js} +2 -2
- package/dist/chunks/{aisdk-native-77240dtv.js → generate-f8epy2bg.js} +8 -8
- package/dist/chunks/{aisdk-native-x6qm3ve3.js → generate-fbbsfk4x.js} +21 -21
- package/dist/chunks/{aisdk-native-0dyhjbwy.js → generate-fbv7bwdr.js} +12 -12
- package/dist/chunks/{aisdk-native-jbr3crdn.js → generate-fg4htv37.js} +20 -20
- package/dist/chunks/{aisdk-native-tkmwgdpd.js → generate-fm2qvscf.js} +7 -7
- package/dist/chunks/{aisdk-native-bbea3drv.js → generate-fmc8few3.js} +30 -30
- package/dist/chunks/{aisdk-native-9v25y94j.js → generate-fntg193g.js} +54 -54
- package/dist/chunks/{aisdk-native-1n48fvpd.js → generate-fq9xr2c7.js} +15 -15
- package/dist/chunks/{aisdk-native-fxbjtjnd.js → generate-fxbjtjnd.js} +1 -1
- package/dist/chunks/{aisdk-native-t0x5rdq8.js → generate-g3n6es57.js} +9 -9
- package/dist/chunks/{aisdk-native-hpbqdbh7.js → generate-g5hnschj.js} +24 -24
- package/dist/chunks/{aisdk-native-cq2eqyzg.js → generate-g8cc633c.js} +41 -41
- package/dist/chunks/{aisdk-native-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
- package/dist/chunks/{aisdk-native-7ct7dy8g.js → generate-ggtqa3p1.js} +15 -15
- package/dist/chunks/{aisdk-native-vtjpe2v7.js → generate-gxyd59xe.js} +11 -11
- package/dist/chunks/{aisdk-native-73rvebw6.js → generate-gynya4d5.js} +24 -24
- package/dist/chunks/{aisdk-native-h03wrkyp.js → generate-h03wrkyp.js} +2 -2
- package/dist/chunks/{aisdk-native-njg0nnyy.js → generate-h0rjc7hp.js} +10 -10
- package/dist/chunks/{aisdk-native-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
- package/dist/chunks/{aisdk-native-cweffwkq.js → generate-h8bvkk4n.js} +20 -20
- package/dist/chunks/{aisdk-native-raxattbk.js → generate-h8c9t6tg.js} +11 -11
- package/dist/chunks/{aisdk-native-zs6mkee1.js → generate-hatn0rtw.js} +5 -5
- package/dist/chunks/{aisdk-native-sjp111s2.js → generate-hb0vn0db.js} +25 -25
- package/dist/chunks/{aisdk-native-6jw7qbdc.js → generate-hf0cb6zs.js} +26 -32
- package/dist/chunks/{aisdk-native-n2kah95r.js → generate-hr5bc81f.js} +8 -8
- package/dist/chunks/{aisdk-native-vfjw4etf.js → generate-hsh8wwzp.js} +18 -18
- package/dist/chunks/{aisdk-native-jghsd1wz.js → generate-htd8zck5.js} +10 -10
- package/dist/chunks/generate-hxyh9mjp.js +247 -0
- package/dist/chunks/{aisdk-native-83t0mtbr.js → generate-hy86y6ky.js} +33 -33
- package/dist/chunks/{aisdk-native-fp838efq.js → generate-j1k42z14.js} +3 -3
- package/dist/chunks/{aisdk-native-j56e64zr.js → generate-j56e64zr.js} +1 -1
- package/dist/chunks/{aisdk-native-0b65cpzw.js → generate-j8k25my2.js} +19 -19
- package/dist/chunks/{aisdk-native-hceg7q13.js → generate-jcww1zet.js} +4 -4
- package/dist/chunks/{aisdk-native-b84cfsc8.js → generate-jz915pxj.js} +9 -9
- package/dist/chunks/{aisdk-native-2nb9akgd.js → generate-k5qasypg.js} +32 -32
- package/dist/chunks/{aisdk-native-etpa6mg3.js → generate-k6yvpnmg.js} +17 -17
- package/dist/chunks/{aisdk-native-jt6t2dx0.js → generate-k94sgdxv.js} +17 -17
- package/dist/chunks/{aisdk-native-kg06axw8.js → generate-kg06axw8.js} +1 -1
- package/dist/chunks/{aisdk-native-j07mcewt.js → generate-knzt4y7a.js} +9 -9
- package/dist/chunks/{aisdk-native-9f8bm3tt.js → generate-kpq4kzcn.js} +24 -24
- package/dist/chunks/{aisdk-native-a7zawp2b.js → generate-kx9vnwq1.js} +3 -3
- package/dist/chunks/{aisdk-native-wqrrwyse.js → generate-kz8df0x3.js} +169 -169
- package/dist/chunks/{aisdk-native-ehh6ph8c.js → generate-m2b5h28j.js} +7 -7
- package/dist/chunks/{aisdk-native-z65s34ts.js → generate-m37xfvad.js} +29 -29
- package/dist/chunks/{aisdk-native-06x8he3q.js → generate-m70sbz6t.js} +4 -4
- package/dist/chunks/{aisdk-native-hrswm3w7.js → generate-m97kazgs.js} +30 -30
- package/dist/chunks/{aisdk-native-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{aisdk-native-50mzsvk4.js → generate-magykp64.js} +4 -4
- package/dist/chunks/{aisdk-native-1aw4vz7v.js → generate-mb8sdv6y.js} +32 -32
- package/dist/chunks/{aisdk-native-219neeqh.js → generate-mgkvz3hx.js} +5 -5
- package/dist/chunks/{aisdk-native-h3zz7w3j.js → generate-mnxb74j9.js} +85 -85
- package/dist/chunks/{aisdk-native-mhkvc446.js → generate-mvfsc1pv.js} +3 -3
- package/dist/chunks/{aisdk-native-efj89ke9.js → generate-mznknh9a.js} +10 -10
- package/dist/chunks/{aisdk-native-t1dawjzh.js → generate-n66sm98c.js} +8 -8
- package/dist/chunks/{aisdk-native-sysvp9tr.js → generate-n84h1qjv.js} +20 -20
- package/dist/chunks/{aisdk-native-y8ve9161.js → generate-n9a29wxm.js} +14 -14
- package/dist/chunks/{aisdk-native-3e8p36t5.js → generate-ngr3dbwj.js} +9 -9
- package/dist/chunks/{aisdk-native-vbeq5p7h.js → generate-nhpb30s9.js} +53 -53
- package/dist/chunks/{aisdk-native-e82z9tr0.js → generate-nhy5jxhy.js} +7 -7
- package/dist/chunks/{aisdk-native-7tfjhc0x.js → generate-nrcfyptd.js} +17 -17
- package/dist/chunks/{aisdk-native-2f4q0qv2.js → generate-nss8rsah.js} +5 -5
- package/dist/chunks/{aisdk-native-rfnf90hr.js → generate-p37avawd.js} +28 -28
- package/dist/chunks/{aisdk-native-bqz616gy.js → generate-p4we2g2j.js} +8 -8
- package/dist/chunks/{aisdk-native-t0hp8g0z.js → generate-p6bpmqk9.js} +11 -11
- package/dist/chunks/{aisdk-native-msq0jde0.js → generate-paegk39x.js} +4 -4
- package/dist/chunks/{aisdk-native-0pae2qra.js → generate-pgc5v9v9.js} +289 -289
- package/dist/chunks/{aisdk-native-b12e5c9w.js → generate-pj4yccrm.js} +18 -18
- package/dist/chunks/{aisdk-native-8r3crzsj.js → generate-pjr7ywh7.js} +9 -9
- package/dist/chunks/{aisdk-native-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
- package/dist/chunks/{aisdk-native-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{aisdk-native-vdp162ys.js → generate-ps1wcy89.js} +25 -25
- package/dist/chunks/{aisdk-native-mvrepv4q.js → generate-psckrajw.js} +25 -25
- package/dist/chunks/{aisdk-native-f2jyds91.js → generate-q178qezn.js} +6 -6
- package/dist/chunks/{aisdk-native-w8r3hzxb.js → generate-q6wdy971.js} +6 -6
- package/dist/chunks/generate-qapv375x.js +4 -0
- package/dist/chunks/{aisdk-native-3snae86b.js → generate-qfcza57d.js} +9 -9
- package/dist/chunks/{aisdk-native-qsdy395h.js → generate-qsdy395h.js} +1 -1
- package/dist/chunks/{aisdk-native-5nhasct8.js → generate-r51729b7.js} +6 -6
- package/dist/chunks/{aisdk-native-kss69rth.js → generate-r7w3sbwp.js} +47 -47
- package/dist/chunks/{aisdk-native-wt3f654q.js → generate-r9jh7s6f.js} +14 -14
- package/dist/chunks/{aisdk-native-r9mregkx.js → generate-r9mregkx.js} +2 -2
- package/dist/chunks/{aisdk-native-39dcxt5x.js → generate-rcap56wv.js} +22 -22
- package/dist/chunks/{aisdk-native-tamfydwv.js → generate-rfbpjv35.js} +16 -16
- package/dist/chunks/{aisdk-native-975vv60r.js → generate-rkq934e2.js} +18 -18
- package/dist/chunks/{aisdk-native-txvev1mj.js → generate-rmapgh8g.js} +26 -26
- package/dist/chunks/{aisdk-native-ep6bb0y2.js → generate-s45b13rg.js} +88 -88
- package/dist/chunks/{aisdk-native-1hstdxwt.js → generate-s539y83q.js} +29 -29
- package/dist/chunks/{aisdk-native-kj81w035.js → generate-s5p5f75z.js} +11 -11
- package/dist/chunks/{aisdk-native-b09hzw3k.js → generate-s8610hey.js} +2 -2
- package/dist/chunks/{aisdk-native-2zphh7x8.js → generate-sdvhpjr9.js} +8 -8
- package/dist/chunks/{aisdk-native-96dvff6g.js → generate-sjmtbwe8.js} +15 -15
- package/dist/chunks/{aisdk-native-92n9kp68.js → generate-snxqqawc.js} +11 -11
- package/dist/chunks/{aisdk-native-5tc8t3sp.js → generate-sqvy6n39.js} +25 -25
- package/dist/chunks/{aisdk-native-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
- package/dist/chunks/{aisdk-native-tcezcvh9.js → generate-tcezcvh9.js} +1 -1
- package/dist/chunks/{aisdk-native-tdstcens.js → generate-tdstcens.js} +1 -1
- package/dist/chunks/{aisdk-native-th5km1p3.js → generate-th5km1p3.js} +2 -2
- package/dist/chunks/{aisdk-native-tvtrv512.js → generate-tvtrv512.js} +1 -1
- package/dist/chunks/{aisdk-native-r3rhgkxa.js → generate-tx792pd3.js} +5 -5
- package/dist/chunks/{aisdk-native-baeegw7z.js → generate-v26dmcdy.js} +7 -7
- package/dist/chunks/{aisdk-native-5b7vf1m4.js → generate-v7e79jg1.js} +22 -22
- package/dist/chunks/{aisdk-native-v6yxqhem.js → generate-v7qghhq8.js} +8 -8
- package/dist/chunks/{aisdk-native-4zxxnnpk.js → generate-vch9w268.js} +3 -3
- package/dist/chunks/{aisdk-native-b5vcnazb.js → generate-vej037r9.js} +4 -4
- package/dist/chunks/{aisdk-native-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{aisdk-native-8k4hkv5d.js → generate-vfnexndp.js} +6 -6
- package/dist/chunks/{aisdk-native-q2b1ymqp.js → generate-vncycja5.js} +4 -4
- package/dist/chunks/{aisdk-native-vzcthcp8.js → generate-vzcthcp8.js} +1 -1
- package/dist/chunks/{aisdk-native-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/generate-w4wj1qng.js +26 -0
- package/dist/chunks/{aisdk-native-mj5qpa52.js → generate-w6904abx.js} +17 -17
- package/dist/chunks/{aisdk-native-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{aisdk-native-f0f4ttvk.js → generate-whrq6171.js} +47 -47
- package/dist/chunks/{aisdk-native-st8p8d2e.js → generate-wtnysg9m.js} +5 -5
- package/dist/chunks/{aisdk-native-rn79xn25.js → generate-x0e6qwje.js} +20 -20
- package/dist/chunks/{aisdk-native-wjeb65nc.js → generate-x10gc1af.js} +6 -6
- package/dist/chunks/{aisdk-native-x1ezjp6w.js → generate-x1ezjp6w.js} +1 -1
- package/dist/chunks/{aisdk-native-k2dherqe.js → generate-x569bdqa.js} +1 -1
- package/dist/chunks/{aisdk-native-dwh3xqh5.js → generate-xa31kddj.js} +13 -13
- package/dist/chunks/{aisdk-native-xdk7gfvz.js → generate-xcpgzh2v.js} +35 -35
- package/dist/chunks/{aisdk-native-xekzrwwc.js → generate-xekzrwwc.js} +2 -2
- package/dist/chunks/{aisdk-native-h42r5qa0.js → generate-xmwtbrer.js} +4 -4
- package/dist/chunks/{aisdk-native-2eykfrat.js → generate-xrv51t12.js} +15 -15
- package/dist/chunks/{aisdk-native-7n1bsde3.js → generate-xx7xr3bh.js} +11 -11
- package/dist/chunks/{aisdk-native-t2tfq0sa.js → generate-y0h0ync2.js} +15 -15
- package/dist/chunks/{aisdk-native-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
- package/dist/chunks/{aisdk-native-61q379j8.js → generate-y33ajj4x.js} +9 -9
- package/dist/chunks/{aisdk-native-g9h27qxy.js → generate-y587sa4j.js} +7 -7
- package/dist/chunks/{aisdk-native-y71avatq.js → generate-y71avatq.js} +1 -1
- package/dist/chunks/{aisdk-native-35wynegs.js → generate-y7wana11.js} +2 -2
- package/dist/chunks/{aisdk-native-6136p1w5.js → generate-ye75azwm.js} +14 -14
- package/dist/chunks/{aisdk-native-95bxmfq6.js → generate-yg4n1b3c.js} +17 -17
- package/dist/chunks/{aisdk-native-c9sxab00.js → generate-yg8tzxp7.js} +10 -10
- package/dist/chunks/{aisdk-native-5mdd6pyz.js → generate-yqar7kj7.js} +11 -11
- package/dist/chunks/{aisdk-native-shrtfrh2.js → generate-yqfnpkff.js} +32 -32
- package/dist/chunks/{aisdk-native-yrhqyw5v.js → generate-yrhqyw5v.js} +1 -1
- package/dist/chunks/{aisdk-native-yrznvahk.js → generate-yrznvahk.js} +2 -2
- package/dist/chunks/{aisdk-native-dc7kgzha.js → generate-yy0bersf.js} +20 -20
- package/dist/chunks/{aisdk-native-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{aisdk-native-z63w68vq.js → generate-z63w68vq.js} +2 -2
- package/dist/chunks/{aisdk-native-f901ejzv.js → generate-z7m2s2v7.js} +20 -20
- package/dist/chunks/{aisdk-native-zeh9ct20.js → generate-zeh9ct20.js} +2 -2
- package/dist/chunks/{aisdk-native-ewnjf4j9.js → generate-zhnshq9c.js} +27 -27
- package/dist/chunks/{aisdk-native-5j9m80r0.js → generate-znk0r93t.js} +8 -8
- package/dist/chunks/{aisdk-native-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
- package/dist/chunks/{aisdk-native-ryck9khc.js → generate-zwf0y1k1.js} +14 -14
- package/dist/chunks/{aisdk-native-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- 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 +119 -119
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +137 -137
- 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 +121 -121
- 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 +121 -121
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +140 -140
- package/dist/config/plugin/snapshot.js +119 -119
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +121 -121
- package/dist/config/plugin/websearch.js +119 -119
- 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 +84 -84
- package/dist/database/database.js +65 -65
- 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 +75 -75
- 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 +69 -69
- 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 +6 -6
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +92 -92
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +93 -93
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +90 -90
- 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 +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +85 -85
- package/dist/job.js +76 -76
- 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 +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +353 -353
- package/dist/location.js +86 -86
- 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 +85 -85
- package/dist/model.js +6 -6
- package/dist/models-dev.js +87 -87
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +81 -81
- 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 +119 -119
- 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 +73 -73
- 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 +344 -344
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +7 -7
- 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 +97 -97
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +88 -88
- 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 +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- 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 +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 +96 -96
- package/dist/session/message-updater.js +4 -4
- 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 +3 -3
- 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 +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- 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 +72 -72
- package/dist/session/store.js +86 -86
- 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 +153 -153
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +136 -136
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- 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 +123 -123
- 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 +100 -100
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +113 -113
- 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 +11 -11
- 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 +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- 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 +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- 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 +2 -2
- package/dist/worktree/git.js +8 -8
- 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-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 → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{aisdk-native-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{aisdk-native-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{aisdk-native-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{aisdk-native-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{aisdk-native-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
- /package/dist/chunks/{aisdk-native-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{aisdk-native-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{aisdk-native-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{aisdk-native-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{aisdk-native-3w5fmr99.js → generate-3w5fmr99.js} +0 -0
- /package/dist/chunks/{aisdk-native-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{aisdk-native-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{aisdk-native-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{aisdk-native-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{aisdk-native-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{aisdk-native-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{aisdk-native-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{aisdk-native-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{aisdk-native-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{aisdk-native-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{aisdk-native-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{aisdk-native-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{aisdk-native-922hggd3.js → generate-922hggd3.js} +0 -0
- /package/dist/chunks/{aisdk-native-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{aisdk-native-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{aisdk-native-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{aisdk-native-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{aisdk-native-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{aisdk-native-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{aisdk-native-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{aisdk-native-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{aisdk-native-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{aisdk-native-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{aisdk-native-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{aisdk-native-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{aisdk-native-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{aisdk-native-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{aisdk-native-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{aisdk-native-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{aisdk-native-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{aisdk-native-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{aisdk-native-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{aisdk-native-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{aisdk-native-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{aisdk-native-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{aisdk-native-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{aisdk-native-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{aisdk-native-fxgpk5d8.js → generate-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{aisdk-native-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{aisdk-native-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{aisdk-native-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{aisdk-native-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{aisdk-native-hjbc5kem.js → generate-hjbc5kem.js} +0 -0
- /package/dist/chunks/{aisdk-native-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{aisdk-native-hrnqkpcd.js → generate-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{aisdk-native-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{aisdk-native-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{aisdk-native-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{aisdk-native-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{aisdk-native-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{aisdk-native-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{aisdk-native-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{aisdk-native-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{aisdk-native-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{aisdk-native-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{aisdk-native-paphc93g.js → generate-paphc93g.js} +0 -0
- /package/dist/chunks/{aisdk-native-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{aisdk-native-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{aisdk-native-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{aisdk-native-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{aisdk-native-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{aisdk-native-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{aisdk-native-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{aisdk-native-sk3qaz4a.js → generate-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{aisdk-native-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{aisdk-native-twg0f83k.js → generate-twg0f83k.js} +0 -0
- /package/dist/chunks/{aisdk-native-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{aisdk-native-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{aisdk-native-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{aisdk-native-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{aisdk-native-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{aisdk-native-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8cydn3q.js → generate-y8cydn3q.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{aisdk-native-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{aisdk-native-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,70 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service79,
|
|
6
6
|
node84
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-jcww1zet.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event16,
|
|
10
|
+
Service63,
|
|
11
|
+
node67
|
|
12
|
+
} from "./generate-bw5dejcj.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service76,
|
|
15
|
+
node81
|
|
16
|
+
} from "./generate-62en8r1m.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service67,
|
|
19
|
+
node71
|
|
20
|
+
} from "./generate-gynya4d5.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID6,
|
|
23
|
+
Service62,
|
|
24
|
+
node66
|
|
25
|
+
} from "./generate-sqvy6n39.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./generate-kg06axw8.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID5,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service61,
|
|
34
|
+
node65
|
|
35
|
+
} from "./generate-s539y83q.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./generate-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError3,
|
|
45
45
|
Options: () => Options3,
|
|
46
|
-
Prompt: () => Prompt2,
|
|
47
|
-
PromptArgument: () => PromptArgument2,
|
|
48
|
-
PromptMessage: () => PromptMessage2,
|
|
49
|
-
PromptResult: () => PromptResult2,
|
|
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
|
-
Service: () =>
|
|
53
|
+
Service: () => Service25,
|
|
60
54
|
Status: () => Status2,
|
|
61
|
-
Tool: () => Tool3,
|
|
62
55
|
ToolCallError: () => ToolCallError2,
|
|
63
|
-
ToolResult: () => ToolResult2,
|
|
64
|
-
ToolResultContent: () => ToolResultContent2,
|
|
65
56
|
configured: () => configured3,
|
|
66
|
-
layer: () =>
|
|
67
|
-
node: () =>
|
|
57
|
+
layer: () => layer11,
|
|
58
|
+
node: () => node29
|
|
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 NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
151
78
|
server: ServerName2
|
|
152
79
|
}) {
|
|
153
80
|
get message() {
|
|
@@ -165,7 +92,7 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
165
92
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
166
93
|
var cloneConfig = (config) => structuredClone(config);
|
|
167
94
|
|
|
168
|
-
class
|
|
95
|
+
class Service25 extends Context.Service()("@opencode/MCP") {
|
|
169
96
|
}
|
|
170
97
|
var Options3 = Schema.Struct({
|
|
171
98
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -173,13 +100,13 @@ var Options3 = Schema.Struct({
|
|
|
173
100
|
version: Schema.String
|
|
174
101
|
}))
|
|
175
102
|
});
|
|
176
|
-
var
|
|
177
|
-
const location = yield*
|
|
178
|
-
const environment = yield*
|
|
103
|
+
var layer11 = (options) => Layer.effect(Service25, Effect.gen(function* () {
|
|
104
|
+
const location = yield* Service76;
|
|
105
|
+
const environment = yield* Service67;
|
|
179
106
|
const bus = yield* Service79;
|
|
180
|
-
const forms = yield*
|
|
181
|
-
const integration = yield*
|
|
182
|
-
const credentials = yield*
|
|
107
|
+
const forms = yield* Service62;
|
|
108
|
+
const integration = yield* Service61;
|
|
109
|
+
const credentials = yield* Service63;
|
|
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 = ID5.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(Service63, 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 NotFoundError3({ 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(Service63, 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 = ID6.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(Service67, 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(Event16.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
|
-
|
|
587
|
-
concurrency: "unbounded",
|
|
588
|
-
discard: true
|
|
589
|
-
}));
|
|
590
|
-
return Service31.of({
|
|
392
|
+
return Service25.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
511
|
function configured3(options) {
|
|
711
512
|
return makeLocationNode({
|
|
712
|
-
service:
|
|
713
|
-
layer:
|
|
714
|
-
deps: [
|
|
513
|
+
service: Service25,
|
|
514
|
+
layer: layer11(options),
|
|
515
|
+
deps: [node81, node71, node84, node66, node65, node67]
|
|
715
516
|
});
|
|
716
517
|
}
|
|
717
|
-
var
|
|
518
|
+
var node29 = configured3();
|
|
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, NotFoundError3, ToolCallError2, Service25, Options3, layer11, configured3, node29, exports_mcp4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-8p4f9s12.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-1msf33w2.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin37,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint5
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint5 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin37 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin27 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint5).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin27 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin37, exports_tavily };
|