@opencode/core 0.0.0-dev-480 → 0.0.0-dev-481
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/agent.js +73 -73
- package/dist/aisdk-native.js +79 -79
- package/dist/aisdk.js +84 -84
- package/dist/app.js +9 -9
- package/dist/artifact.js +196 -195
- package/dist/bus.js +62 -62
- package/dist/chunks/{app-2w814gvs.js → app-0asq6p20.js} +8 -8
- package/dist/chunks/{app-pdh4dm2s.js → app-0qdw55z7.js} +10 -10
- package/dist/chunks/{app-s320htan.js → app-0z1kk8n9.js} +7 -7
- package/dist/chunks/{app-k0q7t0cq.js → app-11pmnyyq.js} +12 -12
- package/dist/chunks/{app-rmeffpf9.js → app-11v4hymh.js} +9 -9
- package/dist/chunks/{app-hkmsr0ex.js → app-13aj6xfg.js} +31 -31
- package/dist/chunks/{app-x150ncgg.js → app-19gkfjnk.js} +1 -1
- package/dist/chunks/{app-e4zeypx4.js → app-19w73m0f.js} +9 -9
- package/dist/chunks/{app-qtf35215.js → app-1njtx4es.js} +3 -3
- package/dist/chunks/{app-94e33dpz.js → app-1vbrkdbs.js} +1 -1
- package/dist/chunks/{app-dghd1q51.js → app-20mc4p3b.js} +10 -10
- package/dist/chunks/{app-bjzy61a4.js → app-23b5bwtt.js} +3 -3
- package/dist/chunks/{app-0892kzf1.js → app-24sxtq8k.js} +6 -6
- package/dist/chunks/{app-jjvvtnfs.js → app-26wfx3k0.js} +3 -3
- package/dist/chunks/{app-1ep2p91f.js → app-27w5k9zf.js} +1 -1
- package/dist/chunks/{app-1kh27kfm.js → app-28ma8gfj.js} +148 -148
- package/dist/chunks/{app-5neq2awb.js → app-2am13szv.js} +6 -6
- package/dist/chunks/{app-sbz71ybr.js → app-2cdjxzfg.js} +2 -2
- package/dist/chunks/{app-3vea0fa5.js → app-2db5e21y.js} +5 -5
- package/dist/chunks/{app-eh2tgqqb.js → app-2emepb4b.js} +30 -30
- package/dist/chunks/{app-2x55c7c5.js → app-2gd46ww5.js} +33 -33
- package/dist/chunks/{app-0ahs07zn.js → app-2kj7f5bg.js} +6 -6
- package/dist/chunks/{app-14nqs3ap.js → app-2n05qsag.js} +1 -1
- package/dist/chunks/{app-vcr7qvjv.js → app-2zydp9t3.js} +3 -3
- package/dist/chunks/{app-ywnf2d1v.js → app-33fs0phy.js} +1 -1
- package/dist/chunks/{app-yadjp1dh.js → app-33vee48d.js} +36 -36
- package/dist/chunks/{app-m3pwqbwq.js → app-3ab9az2f.js} +9 -9
- package/dist/chunks/{app-ayjs7tqn.js → app-3cbjf1nt.js} +1 -1
- package/dist/chunks/{app-8ph5tyb9.js → app-3gqs30ps.js} +17 -17
- package/dist/chunks/{app-35tprrwd.js → app-3jqetb86.js} +19 -19
- package/dist/chunks/{app-wxej1nzg.js → app-3k6see7r.js} +17 -17
- package/dist/chunks/{app-4z1mvv1x.js → app-3nmxyean.js} +4 -4
- package/dist/chunks/{app-yg9m2vv3.js → app-3xg6wq2g.js} +12 -12
- package/dist/chunks/{app-4n2b8756.js → app-43ynt425.js} +30 -30
- package/dist/chunks/{app-szxd9z8c.js → app-45a1n0rj.js} +19 -19
- package/dist/chunks/{app-nw690v4j.js → app-4am3819x.js} +23 -23
- package/dist/chunks/{app-56je3jta.js → app-4medx3yc.js} +7 -7
- package/dist/chunks/{app-fp0vcpt3.js → app-4pc43vs5.js} +3 -3
- package/dist/chunks/{app-323cmkwk.js → app-57zkss3n.js} +12 -12
- package/dist/chunks/{app-6tzaetms.js → app-5af0c4bz.js} +10 -10
- package/dist/chunks/{app-kevqfsd3.js → app-5ftq3225.js} +3 -3
- package/dist/chunks/{app-y6ptae2a.js → app-5fz99wkv.js} +6 -6
- package/dist/chunks/{app-dv69vrjt.js → app-5tgs095n.js} +24 -24
- package/dist/chunks/{app-f3r7ra5x.js → app-5tqhmh96.js} +6 -6
- package/dist/chunks/{app-2bxnm4ec.js → app-5xfk76mk.js} +73 -73
- package/dist/chunks/{app-6xxb6mpe.js → app-5z1m43a3.js} +2 -2
- package/dist/chunks/{app-35ntjcgy.js → app-62beg8mw.js} +13 -13
- package/dist/chunks/{app-33vtbrd4.js → app-62fftzdq.js} +13 -13
- package/dist/chunks/{app-rqp2fa0h.js → app-6m70gvhx.js} +9 -9
- package/dist/chunks/{app-hzg4n0pv.js → app-6mzrbse0.js} +32 -32
- package/dist/chunks/{app-5s0vqhb5.js → app-6s3jfmgb.js} +10 -10
- package/dist/chunks/{app-hhc0852x.js → app-6tvaezwq.js} +4 -4
- package/dist/chunks/{app-2epj4sa1.js → app-6xgrzf3v.js} +4 -4
- package/dist/chunks/{app-cd9gcdpg.js → app-71jkfa4r.js} +3 -3
- package/dist/chunks/{app-25p1apms.js → app-722vxske.js} +7 -7
- package/dist/chunks/{app-xs0nknjh.js → app-750t9xmf.js} +14 -14
- package/dist/chunks/{app-690aq4ev.js → app-76ggf0cd.js} +9 -9
- package/dist/chunks/{app-wz104dr9.js → app-7ey693cm.js} +5 -5
- package/dist/chunks/{app-thtdv5s3.js → app-7ncdpmyj.js} +9 -9
- package/dist/chunks/{app-8sxe6kv8.js → app-7qrph824.js} +1 -1
- package/dist/chunks/{app-sk38pgfv.js → app-7t9chrae.js} +13 -13
- package/dist/chunks/{app-bnqpswrr.js → app-7zggx0n1.js} +6 -6
- package/dist/chunks/{app-69r3s0z2.js → app-82fxv0dw.js} +2 -2
- package/dist/chunks/{app-8e6rjbvw.js → app-847k13tf.js} +9 -9
- package/dist/chunks/{app-ndvyrhxt.js → app-87ef3s8z.js} +28 -28
- package/dist/chunks/{app-4d2dtj2f.js → app-8cg7mtm3.js} +3 -3
- package/dist/chunks/{app-7yfjyeqk.js → app-8dxpscf2.js} +22 -22
- package/dist/chunks/{app-bd76xnxh.js → app-8fzjfj5n.js} +2 -2
- package/dist/chunks/{app-2v1211kw.js → app-8g403b55.js} +21 -21
- package/dist/chunks/{app-9st9tfe3.js → app-8jw7n1ah.js} +8 -8
- package/dist/chunks/{app-n5jj43cg.js → app-8px3ddj4.js} +4 -4
- package/dist/chunks/{app-q2c48w2f.js → app-8qbdxarg.js} +22 -22
- package/dist/chunks/{app-hxhjnsvc.js → app-8sb7jtsn.js} +8 -8
- package/dist/chunks/{app-mb7mbhnz.js → app-8z6m94af.js} +1 -1
- package/dist/chunks/{app-rhprh2s9.js → app-90pvm6py.js} +9 -9
- package/dist/chunks/{app-6mtyq6z7.js → app-93n7n3x8.js} +13 -13
- package/dist/chunks/{app-cxab28sr.js → app-93xmyh8q.js} +3 -3
- package/dist/chunks/{app-59jk283z.js → app-99a9crdx.js} +9 -9
- package/dist/chunks/{app-32gn4798.js → app-9av120cb.js} +14 -14
- package/dist/chunks/{app-88ff6j75.js → app-9c645kx6.js} +1 -1
- package/dist/chunks/{app-brjmxn14.js → app-9cgaya5j.js} +9 -9
- package/dist/chunks/{app-xcqpvrxn.js → app-9hqxgecf.js} +16 -16
- package/dist/chunks/app-9kkkhnvp.js +92 -0
- package/dist/chunks/{app-035wadpx.js → app-9rqhy0gk.js} +6 -6
- package/dist/chunks/{app-z06h1gcq.js → app-9vajtycf.js} +8 -8
- package/dist/chunks/{app-wq0rd6cr.js → app-9wje21dv.js} +9 -9
- package/dist/chunks/{app-889wyzdh.js → app-a1dwv91k.js} +6 -6
- package/dist/chunks/{app-znjfpv5m.js → app-a5fx33f2.js} +3 -3
- package/dist/chunks/{app-4bwthz3m.js → app-ae65egk4.js} +5 -5
- package/dist/chunks/{app-vegpmsma.js → app-af8dd66m.js} +1 -1
- package/dist/chunks/{app-nfqr52w1.js → app-afwnmwkf.js} +38 -38
- package/dist/chunks/{app-fn6ry6x3.js → app-b37ymw5d.js} +13 -13
- package/dist/chunks/{app-vx9d4jfk.js → app-b3hbd1md.js} +11 -11
- package/dist/chunks/{app-9a2vwae8.js → app-b6s5ycsj.js} +8 -8
- package/dist/chunks/{app-htwgbsdd.js → app-bfmts8p1.js} +5 -5
- package/dist/chunks/{app-bsk7mddt.js → app-bg9cnzs0.js} +21 -21
- package/dist/chunks/{app-jkdcm5hg.js → app-bhfd478d.js} +3 -3
- package/dist/chunks/{app-bydc9kjr.js → app-bmgv8h6w.js} +10 -10
- package/dist/chunks/{app-xfzj7gv9.js → app-bprvspg8.js} +10 -10
- package/dist/chunks/{app-vgcbppz4.js → app-catycsjd.js} +9 -9
- package/dist/chunks/{app-x8fqtcqj.js → app-cfg1rk1c.js} +24 -24
- package/dist/chunks/{app-1ph3b4tr.js → app-ck4dpv2q.js} +29 -29
- package/dist/chunks/app-cpdsp3va.js +16 -0
- package/dist/chunks/{app-ff9qqsat.js → app-cpg2sjfp.js} +20 -20
- package/dist/chunks/{app-2zepk20t.js → app-czy8szj2.js} +342 -342
- package/dist/chunks/{app-47epqbk9.js → app-d4by6qpt.js} +9 -9
- package/dist/chunks/{app-hsad75c7.js → app-dbf6dzq1.js} +7 -7
- package/dist/chunks/{app-egb0tdpa.js → app-dgmx8s6q.js} +24 -24
- package/dist/chunks/{app-dgyn6wwr.js → app-dv2k300y.js} +20 -20
- package/dist/chunks/{app-j35vrh5w.js → app-dztesnfv.js} +20 -20
- package/dist/chunks/{app-kw5k2th0.js → app-dzws43fd.js} +9 -9
- package/dist/chunks/{app-ewa1ec51.js → app-ead32ctt.js} +2 -2
- package/dist/chunks/{app-4t66x4kf.js → app-erf9fzfw.js} +16 -16
- package/dist/chunks/{app-sjpm2wtc.js → app-essehzfx.js} +11 -11
- package/dist/chunks/{app-mvnwdwmw.js → app-f1y0a070.js} +1 -1
- package/dist/chunks/{app-pkzaafh3.js → app-f5hyk6e9.js} +22 -22
- package/dist/chunks/{app-5fanhgfz.js → app-f851hg2k.js} +19 -19
- package/dist/chunks/{app-bjx4a53x.js → app-fdtp6zbm.js} +8 -8
- package/dist/chunks/{app-wyzw1feq.js → app-fefx1jcc.js} +3 -3
- package/dist/chunks/{app-g4v74gy6.js → app-fhwn87jp.js} +7 -7
- package/dist/chunks/{app-4g4z4142.js → app-fk0rpprw.js} +11 -11
- package/dist/chunks/{app-yydqqga9.js → app-g1e2r5aa.js} +3 -3
- package/dist/chunks/{app-xcygg6mt.js → app-g6p4g6mv.js} +21 -21
- package/dist/chunks/{app-h9kyje9x.js → app-g7mcj942.js} +38 -38
- package/dist/chunks/{app-xk9149mm.js → app-g8dgshm1.js} +7 -7
- package/dist/chunks/{app-0x8q64rn.js → app-ge0ek74f.js} +28 -28
- package/dist/chunks/{app-mcgq8fg0.js → app-ggqsw24s.js} +14 -14
- package/dist/chunks/{app-f6ss1wp3.js → app-ghkxye21.js} +30 -30
- package/dist/chunks/{app-vsgb1f4e.js → app-ghqvcpnh.js} +12 -12
- package/dist/chunks/{app-ez7r46kf.js → app-gk56h2xy.js} +13 -13
- package/dist/chunks/{app-xzqn2rhm.js → app-gkqc8wt9.js} +8 -8
- package/dist/chunks/{app-vkq1ae39.js → app-gtse556r.js} +13 -13
- package/dist/chunks/{app-wtm34wvt.js → app-gwz0wrrb.js} +12 -12
- package/dist/chunks/{app-hbe2vhx0.js → app-h0xhqjby.js} +2 -2
- package/dist/chunks/{app-3b53hm86.js → app-h2ff2q30.js} +7 -7
- package/dist/chunks/{app-nyc4jwvb.js → app-h9hc66h4.js} +3 -3
- package/dist/chunks/{app-jqc5eb3q.js → app-hahgtam6.js} +40 -40
- package/dist/chunks/{app-kev0rknr.js → app-hetycfaa.js} +33 -33
- package/dist/chunks/{app-x9nz0k3p.js → app-hfzv1g6g.js} +31 -31
- package/dist/chunks/{app-3xvfm8m4.js → app-hxjfpgt3.js} +5 -5
- package/dist/chunks/{app-7tpyp9vw.js → app-hy8c1z76.js} +7 -7
- package/dist/chunks/{app-ep1fdtvb.js → app-hz7a74th.js} +28 -28
- package/dist/chunks/{app-wa3m3n7k.js → app-j06ysx93.js} +12 -12
- package/dist/chunks/{app-0nm9xmph.js → app-j6z15evp.js} +7 -7
- package/dist/chunks/{app-wws03c5r.js → app-jhwp234h.js} +4 -4
- package/dist/chunks/{app-psaq7w5p.js → app-jk9ctt2d.js} +26 -26
- package/dist/chunks/{app-77srnqy4.js → app-jmx08cdn.js} +13 -13
- package/dist/chunks/{app-cbf5n1y2.js → app-js4hvacx.js} +20 -20
- package/dist/chunks/{app-01sxc1c2.js → app-jy1f4pdx.js} +4 -4
- package/dist/chunks/{app-6c691zda.js → app-jy6h2y3j.js} +13 -13
- package/dist/chunks/{app-6rb0kxcw.js → app-jyntrgsj.js} +7 -7
- package/dist/chunks/{app-kse4pj6t.js → app-k44x9x7y.js} +144 -167
- package/dist/chunks/{app-rty8vnq8.js → app-k483zyxw.js} +1 -1
- package/dist/chunks/{app-2z05z86t.js → app-k8bdr0d0.js} +19 -19
- package/dist/chunks/{app-ck0a13vj.js → app-ka1mq67y.js} +12 -12
- package/dist/chunks/{app-b8rax9gc.js → app-kbsfb6et.js} +1 -1
- package/dist/chunks/{app-qr8hn1sn.js → app-kfd17r3s.js} +6 -6
- package/dist/chunks/{app-zvqwea82.js → app-kpfh6gak.js} +19 -19
- package/dist/chunks/{app-37k6b6nc.js → app-kse531ts.js} +4 -4
- package/dist/chunks/{app-tj6g9xqy.js → app-kz92qt34.js} +7 -7
- package/dist/chunks/{app-gj6zt7jr.js → app-me1613fs.js} +159 -159
- package/dist/chunks/{app-4nyxr47m.js → app-mgvq6ne3.js} +21 -21
- package/dist/chunks/{app-jm0x7179.js → app-mj1xqs5a.js} +38 -38
- package/dist/chunks/{app-f9px2wq5.js → app-mxhv6w83.js} +7 -7
- package/dist/chunks/{app-hf0syw03.js → app-n17wdgkv.js} +21 -21
- package/dist/chunks/{app-sx2sqvt0.js → app-n3bkb5q1.js} +6 -6
- package/dist/chunks/{app-9de5wjbr.js → app-n4k1ey5b.js} +2 -2
- package/dist/chunks/{app-pbtq0xh8.js → app-n8ahjr4j.js} +14 -14
- package/dist/chunks/{app-69qb4gaq.js → app-navg70v8.js} +10 -10
- package/dist/chunks/{app-6r3rh7r1.js → app-ndpzex15.js} +9 -9
- package/dist/chunks/{app-s643ebaf.js → app-np51zkq5.js} +18 -18
- package/dist/chunks/{app-dcp06de2.js → app-nr7cqb9h.js} +6 -6
- package/dist/chunks/{app-mt6vzf6s.js → app-nv1v3ewx.js} +20 -20
- package/dist/chunks/{app-kkw24wtk.js → app-nv2s17h7.js} +40 -40
- package/dist/chunks/{app-wegkxhrn.js → app-nx4vzyjd.js} +1 -1
- package/dist/chunks/{app-fzkjf62m.js → app-p5w1jxhv.js} +14 -14
- package/dist/chunks/{app-z4zjbjyv.js → app-pq46x9ny.js} +8 -8
- package/dist/chunks/{app-p8f4bkd9.js → app-prha7nnz.js} +5 -5
- package/dist/chunks/{app-fg9p65nk.js → app-prq7xxp2.js} +4 -4
- package/dist/chunks/{app-zeb1kz6r.js → app-prwg2e47.js} +3 -3
- package/dist/chunks/{app-e8myj6jb.js → app-psbj456r.js} +9 -9
- package/dist/chunks/{app-phmgg4nn.js → app-pyz2pf6w.js} +5 -5
- package/dist/chunks/{app-jn1pk9qr.js → app-q391cchf.js} +25 -25
- package/dist/chunks/{app-gjghz9g4.js → app-q7zpym3n.js} +1 -1
- package/dist/chunks/{app-ba5rcjwv.js → app-q94qz23g.js} +37 -37
- package/dist/chunks/{app-bnnprwfj.js → app-q9csfq1d.js} +13 -13
- package/dist/chunks/{app-e6fqcwsk.js → app-q9qzw55y.js} +5 -5
- package/dist/chunks/{app-vhdveqxn.js → app-qczyd0hm.js} +19 -19
- package/dist/chunks/{app-f0sjhv8k.js → app-qfwh95mr.js} +6 -6
- package/dist/chunks/{app-k46dd5bg.js → app-qfz6bxfd.js} +3 -3
- package/dist/chunks/{app-8s9gs4xt.js → app-qgk9wbmt.js} +15 -15
- package/dist/chunks/{app-2dkjcnxp.js → app-qmh7vbk2.js} +4 -4
- package/dist/chunks/{app-ct922x92.js → app-qnt4ewtn.js} +4 -4
- package/dist/chunks/{app-st0cffhr.js → app-qpe5m7rp.js} +9 -9
- package/dist/chunks/{app-bvgyq84r.js → app-qrkmc1kp.js} +9 -9
- package/dist/chunks/{app-7q7rxd99.js → app-r17y8811.js} +26 -26
- package/dist/chunks/{app-rmv7fhs4.js → app-r1fnsf7p.js} +3 -3
- package/dist/chunks/{app-ven1czbf.js → app-r1n0s1ac.js} +14 -14
- package/dist/chunks/{app-390xskpw.js → app-rchz5kjx.js} +3 -3
- package/dist/chunks/{app-esqtx2bv.js → app-rgzbxrk5.js} +6 -6
- package/dist/chunks/{app-r3am8bxq.js → app-rhg1wx68.js} +25 -25
- package/dist/chunks/{app-5zpqhmp2.js → app-rnbnz8pk.js} +4 -4
- package/dist/chunks/{app-qmkmbszb.js → app-rz032gsk.js} +13 -13
- package/dist/chunks/{app-79nnga0g.js → app-s55t9t0j.js} +45 -45
- package/dist/chunks/{app-yd5ts3vm.js → app-s5hy498g.js} +13 -13
- package/dist/chunks/{app-29znb8a3.js → app-s72x33aq.js} +17 -17
- package/dist/chunks/{app-deze0pbg.js → app-s7s2w16j.js} +34 -34
- package/dist/chunks/{app-29w6bfzb.js → app-sch7yt7r.js} +17 -17
- package/dist/chunks/{app-wbqm5j27.js → app-sgfxw3p2.js} +72 -72
- package/dist/chunks/{app-4aqcs7cm.js → app-sj4xjt7y.js} +22 -22
- package/dist/chunks/{app-1yp5yc7j.js → app-sr8x3p00.js} +16 -16
- package/dist/chunks/{app-3y6ztehy.js → app-t0zfenmz.js} +23 -23
- package/dist/chunks/{app-w3c3s7r0.js → app-t4f7c3ht.js} +15 -15
- package/dist/chunks/{app-729wf2sv.js → app-t7wtafck.js} +10 -10
- package/dist/chunks/{app-q94xbs3k.js → app-tkp5adq0.js} +7 -7
- package/dist/chunks/{app-tx9th86b.js → app-ts7bpkbv.js} +1 -1
- package/dist/chunks/{app-mf63ygpr.js → app-v0t96s7a.js} +3 -3
- package/dist/chunks/{app-0fzs4qek.js → app-v7zvx5ny.js} +30 -30
- package/dist/chunks/{app-1yq9hg58.js → app-v9ez2kgh.js} +4 -4
- package/dist/chunks/{app-t6fvvd0q.js → app-vf5rezts.js} +8 -8
- package/dist/chunks/{app-qh5g3qaw.js → app-vt4r9rmy.js} +7 -7
- package/dist/chunks/{app-wcjy6v7w.js → app-vyzwj7hv.js} +7 -7
- package/dist/chunks/{app-4fcdzvcv.js → app-w0gbs4kg.js} +27 -27
- package/dist/chunks/{app-j4re26mb.js → app-w6adzdws.js} +81 -81
- package/dist/chunks/{app-k9mev5ma.js → app-wbqzfeen.js} +14 -14
- package/dist/chunks/{app-1ccesh34.js → app-wd6ygds7.js} +1 -1
- package/dist/chunks/{app-jf43mb4q.js → app-weahyj5x.js} +3 -3
- package/dist/chunks/{app-48c4cf2k.js → app-wf5k0dcb.js} +29 -29
- package/dist/chunks/{app-r17fbvme.js → app-wfs84ra6.js} +3 -3
- package/dist/chunks/{app-xjbsd7zy.js → app-whhbv2ev.js} +7 -7
- package/dist/chunks/{app-sj49106k.js → app-whq4nd4h.js} +8 -8
- package/dist/chunks/{app-zdkp82n7.js → app-wjnwerxx.js} +6 -6
- package/dist/chunks/{app-ac642rmg.js → app-wq1xd5na.js} +9 -9
- package/dist/chunks/{app-czwy3yzx.js → app-wvr8xscb.js} +6 -6
- package/dist/chunks/{app-hny7yx1q.js → app-wy3njjma.js} +17 -17
- package/dist/chunks/{app-3ehakt2b.js → app-wyya4zt2.js} +7 -7
- package/dist/chunks/{app-th2hp9ev.js → app-wyzscbnm.js} +1 -1
- package/dist/chunks/{app-hv7hhxe7.js → app-x2eb1s38.js} +14 -14
- package/dist/chunks/{app-fm152kwa.js → app-x2kh5z67.js} +19 -19
- package/dist/chunks/{app-1zqc9pfk.js → app-x48k7f96.js} +10 -10
- package/dist/chunks/{app-2vk2ak2q.js → app-xavgr0sn.js} +22 -22
- package/dist/chunks/{app-0c255mfh.js → app-xfdj8ybq.js} +32 -32
- package/dist/chunks/{app-7yz4rvvq.js → app-xfssnbs4.js} +16 -16
- package/dist/chunks/{app-kbgs7tyr.js → app-xksw6ev0.js} +3 -3
- package/dist/chunks/{app-ygvhn020.js → app-xrj14re7.js} +7 -7
- package/dist/chunks/{app-ee8h273g.js → app-xznfvz6c.js} +11 -11
- package/dist/chunks/{app-ftsg2ab9.js → app-y3e9w5j4.js} +8 -8
- package/dist/chunks/{app-70esdp6e.js → app-y5x79gp6.js} +4 -4
- package/dist/chunks/{app-19bray3m.js → app-y70svyf1.js} +22 -22
- package/dist/chunks/{app-qsvhv05j.js → app-y9dbkkt2.js} +25 -25
- package/dist/chunks/{app-8ppgdgnm.js → app-ydejkx0z.js} +1 -1
- package/dist/chunks/{app-kak54rfk.js → app-yef98r2t.js} +13 -13
- package/dist/chunks/{app-0bskj9a3.js → app-yq2mt5qr.js} +1 -1
- package/dist/chunks/{app-h0rg6s60.js → app-yqveydy6.js} +3 -3
- package/dist/chunks/{app-t8erkws8.js → app-ysampvvb.js} +3 -3
- package/dist/chunks/{app-38aws4xb.js → app-z080rjh6.js} +3 -3
- package/dist/chunks/{app-1cs0ztjs.js → app-z4sah7cn.js} +10 -10
- package/dist/chunks/{app-tgfrqp5x.js → app-z7a53n6z.js} +5 -5
- package/dist/chunks/{app-wffevkx6.js → app-zkket41r.js} +22 -22
- package/dist/chunks/{app-r6r95tvq.js → app-zvg8q0fs.js} +2 -2
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +113 -113
- package/dist/codemode/instructions.js +8 -8
- package/dist/codemode/tool.js +119 -119
- package/dist/command.js +77 -77
- package/dist/config/discovery.js +73 -73
- package/dist/config/integration.js +3 -3
- package/dist/config/normalize.js +88 -88
- package/dist/config/plugin/agent.js +100 -100
- package/dist/config/plugin/command.js +189 -188
- package/dist/config/plugin/compaction.js +134 -134
- package/dist/config/plugin/compatibility.js +116 -116
- package/dist/config/plugin/formatter.js +101 -101
- package/dist/config/plugin/image.js +100 -100
- package/dist/config/plugin/instruction.js +101 -101
- package/dist/config/plugin/location-watcher.js +102 -102
- package/dist/config/plugin/mcp.js +105 -104
- package/dist/config/plugin/policy.js +100 -100
- package/dist/config/plugin/provider.js +100 -100
- package/dist/config/plugin/reference.js +102 -102
- package/dist/config/plugin/shell.js +102 -102
- package/dist/config/plugin/skill-file.js +113 -113
- package/dist/config/plugin/skill.js +119 -119
- package/dist/config/plugin/snapshot.js +100 -100
- package/dist/config/plugin/source.js +103 -103
- package/dist/config/plugin/tool-output.js +101 -101
- package/dist/config/plugin/websearch.js +101 -101
- package/dist/config/plugin/worktree.js +102 -102
- package/dist/config.js +106 -106
- package/dist/credential.js +71 -71
- package/dist/database/database.js +60 -60
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +50 -50
- package/dist/database/v1-migration.bun.js +18 -18
- package/dist/effect/app-node-builder.js +276 -275
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +80 -80
- package/dist/environment/index.js +80 -80
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +123 -123
- package/dist/file-mutation.js +81 -81
- package/dist/filesystem/file-watch.js +15 -15
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +205 -204
- package/dist/filesystem/search.js +84 -84
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +87 -87
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +78 -78
- package/dist/generate.js +92 -92
- package/dist/git.js +3 -3
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +89 -89
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +364 -363
- package/dist/instruction-discovery.js +78 -78
- package/dist/instructions/builtins.js +78 -78
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +72 -72
- package/dist/job.js +66 -66
- package/dist/kv.js +65 -65
- package/dist/location-activity.js +82 -82
- package/dist/location-lifecycle.js +118 -118
- package/dist/location-service-map.js +77 -77
- package/dist/location-services.js +362 -361
- package/dist/location.js +72 -72
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +21 -21
- package/dist/mcp/connection.js +110 -0
- package/dist/mcp/index.js +94 -93
- package/dist/mcp/instructions.js +147 -146
- package/dist/mcp/oauth.js +11 -11
- package/dist/mcp/stdio.js +77 -77
- package/dist/modal/models.js +89 -89
- package/dist/model-resolver.js +88 -88
- package/dist/model.js +80 -80
- package/dist/models-dev.js +96 -96
- package/dist/permission/saved.js +74 -74
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +121 -121
- package/dist/persistent-pty/index.js +77 -77
- package/dist/persistent-pty.js +65 -65
- package/dist/plugin/agent.js +66 -66
- package/dist/plugin/command.js +87 -86
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +196 -195
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +340 -339
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +85 -85
- package/dist/plugin/module.js +99 -99
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +114 -114
- package/dist/plugin/provider/amazon-bedrock.js +81 -81
- package/dist/plugin/provider/azure.js +103 -103
- package/dist/plugin/provider/chatgpt.js +99 -99
- package/dist/plugin/provider/claude-agent/aisdk.js +92 -92
- package/dist/plugin/provider/claude-agent/claude/query-options.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/sessions.js +11 -11
- package/dist/plugin/provider/claude-agent/claude/status.js +6 -6
- package/dist/plugin/provider/claude-agent/index.js +111 -111
- package/dist/plugin/provider/claude-agent/instructions.js +88 -88
- package/dist/plugin/provider/claude-agent/integration.js +87 -87
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +84 -84
- package/dist/plugin/provider/claude-agent/session.js +87 -87
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +2 -2
- package/dist/plugin/provider/claude-agent/tools/server.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +99 -99
- package/dist/plugin/provider/cloudflare-workers-ai.js +99 -99
- package/dist/plugin/provider/configured.js +97 -97
- package/dist/plugin/provider/credential-settings.js +66 -66
- package/dist/plugin/provider/digitalocean.js +84 -84
- package/dist/plugin/provider/github-copilot.js +86 -86
- package/dist/plugin/provider/gitlab.js +83 -83
- package/dist/plugin/provider/google-vertex.js +98 -98
- package/dist/plugin/provider/llmgateway.js +69 -69
- package/dist/plugin/provider/lmstudio.js +105 -105
- package/dist/plugin/provider/local.js +102 -102
- package/dist/plugin/provider/modal.js +84 -84
- package/dist/plugin/provider/ollama.js +105 -105
- package/dist/plugin/provider/openai-context-caps.js +80 -80
- package/dist/plugin/provider/openai.js +99 -99
- package/dist/plugin/provider/opencode.js +121 -121
- package/dist/plugin/provider/openrouter.js +81 -81
- package/dist/plugin/provider/poe.js +69 -69
- package/dist/plugin/provider/refresh.js +68 -68
- package/dist/plugin/provider/sap-ai-core.js +80 -80
- package/dist/plugin/provider/snowflake-cortex.js +99 -99
- package/dist/plugin/provider/vllm.js +103 -103
- package/dist/plugin/provider/xai.js +81 -81
- package/dist/plugin/provider.js +188 -188
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +115 -115
- package/dist/plugin/supervisor.js +351 -350
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +77 -77
- package/dist/plugin/vcs/hg.js +75 -75
- package/dist/plugin/verbosity.js +83 -83
- package/dist/plugin/warming.js +101 -101
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +205 -204
- package/dist/project/icon.js +3 -3
- package/dist/project/schema.js +1 -1
- package/dist/project/sql.js +2 -2
- package/dist/project.js +71 -71
- package/dist/provider.js +83 -83
- package/dist/pty.js +87 -87
- package/dist/reference/instructions.js +78 -78
- package/dist/reference.js +80 -80
- package/dist/repository-cache.js +70 -70
- package/dist/ripgrep.js +81 -81
- package/dist/rpc.js +77 -77
- package/dist/schedule/check.js +200 -199
- package/dist/schedule/sql.js +4 -4
- package/dist/schedule.js +206 -205
- package/dist/session/blob.js +99 -99
- package/dist/session/command.js +66 -66
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +161 -160
- package/dist/session/diff.js +78 -78
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +126 -125
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +163 -162
- package/dist/session/history.js +104 -104
- package/dist/session/inbox.js +115 -115
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +69 -69
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +109 -109
- package/dist/session/model-request.js +133 -133
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +110 -110
- package/dist/session/prompt.js +116 -116
- package/dist/session/revert.js +107 -107
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +207 -206
- package/dist/session/runner/model.js +89 -89
- package/dist/session/runner/publish-llm-event.js +117 -117
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +130 -130
- package/dist/session/runner/to-llm-message.js +105 -105
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +146 -146
- package/dist/session/shell.js +110 -110
- package/dist/session/skill.js +115 -115
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +110 -110
- package/dist/session/stored.js +3 -3
- package/dist/session/subagent-job.js +190 -189
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +166 -165
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +123 -122
- package/dist/session.js +201 -200
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +8 -8
- package/dist/shell.js +113 -113
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +119 -119
- package/dist/skill.js +124 -124
- package/dist/snapshot.js +82 -82
- package/dist/tool/mcp.js +146 -145
- package/dist/tool/plugin/artifact.js +189 -188
- package/dist/tool/plugin/edit.js +130 -130
- package/dist/tool/plugin/glob.js +133 -133
- package/dist/tool/plugin/grep.js +127 -127
- package/dist/tool/plugin/image-generate.js +198 -197
- package/dist/tool/plugin/mcp-resource.js +128 -127
- package/dist/tool/plugin/opencode.js +128 -128
- package/dist/tool/plugin/patch.js +132 -132
- package/dist/tool/plugin/question.js +114 -114
- package/dist/tool/plugin/read.js +136 -136
- package/dist/tool/plugin/schedule.js +205 -204
- package/dist/tool/plugin/shell.js +192 -191
- package/dist/tool/plugin/skill.js +123 -123
- package/dist/tool/plugin/subagent.js +195 -194
- package/dist/tool/plugin/todo.js +120 -120
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +123 -123
- package/dist/tool/plugin/write.js +132 -132
- package/dist/tool/read-filesystem.js +85 -85
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +129 -129
- package/dist/types/mcp/connection.d.ts +75 -0
- package/dist/types/mcp/index.d.ts +3 -3
- package/dist/usage-limits.js +73 -73
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +81 -81
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +83 -83
- package/dist/vcs.js +80 -80
- package/dist/voice.js +73 -73
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +68 -68
- package/dist/wellknown.js +73 -73
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +74 -74
- package/dist/worktree/directory.js +1 -1
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +80 -80
- package/dist/worktree.js +84 -84
- package/package.json +8 -8
- package/dist/chunks/app-yc9fq4e8.js +0 -16
- /package/dist/chunks/{app-s5r5pqmg.js → app-13am0myr.js} +0 -0
- /package/dist/chunks/{app-6xw3seg4.js → app-2hg7qvzt.js} +0 -0
- /package/dist/chunks/{app-27b1v58b.js → app-7wm6fjb2.js} +0 -0
- /package/dist/chunks/{app-775hqbnd.js → app-80mg3ag8.js} +0 -0
- /package/dist/chunks/{app-034tev2y.js → app-aj7mw0zk.js} +0 -0
- /package/dist/chunks/{app-d4v9tmah.js → app-gn8tkhbf.js} +0 -0
- /package/dist/chunks/{app-963hk181.js → app-kp2338hr.js} +0 -0
- /package/dist/chunks/{app-0mn5h64x.js → app-q0ez1hrk.js} +0 -0
- /package/dist/chunks/{app-j9nxzz3g.js → app-ze75qvmd.js} +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-8cg7mtm3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service89,
|
|
6
6
|
node92
|
|
7
|
-
} from "./app-
|
|
7
|
+
} from "./app-82fxv0dw.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
Event20,
|
|
10
10
|
Service84,
|
|
11
11
|
node87
|
|
12
|
-
} from "./app-
|
|
12
|
+
} from "./app-k8bdr0d0.js";
|
|
13
13
|
import {
|
|
14
14
|
Service86,
|
|
15
15
|
node89
|
|
16
|
-
} from "./app-
|
|
16
|
+
} from "./app-k483zyxw.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./app-
|
|
18
|
+
Service62,
|
|
19
|
+
node63
|
|
20
|
+
} from "./app-9hqxgecf.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./app-
|
|
22
|
+
ID19,
|
|
23
|
+
Service83,
|
|
24
|
+
node86
|
|
25
|
+
} from "./app-x2kh5z67.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create4
|
|
@@ -30,9 +30,12 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
ID18,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./app-
|
|
33
|
+
Service82,
|
|
34
|
+
node85
|
|
35
|
+
} from "./app-gwz0wrrb.js";
|
|
36
|
+
import {
|
|
37
|
+
make23
|
|
38
|
+
} from "./app-9kkkhnvp.js";
|
|
36
39
|
import {
|
|
37
40
|
__export
|
|
38
41
|
} from "./app-9rqn6x4v.js";
|
|
@@ -42,39 +45,26 @@ var exports_mcp4 = {};
|
|
|
42
45
|
__export(exports_mcp4, {
|
|
43
46
|
Mcp: () => exports_mcp4,
|
|
44
47
|
NotFoundError: () => NotFoundError5,
|
|
45
|
-
Options: () =>
|
|
48
|
+
Options: () => Options3,
|
|
46
49
|
PromptsChanged: () => PromptsChanged2,
|
|
47
50
|
Resource: () => Resource2,
|
|
48
51
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
52
|
ResourceContent: () => ResourceContent2,
|
|
50
53
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
54
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
55
|
+
Service: () => Service33,
|
|
53
56
|
Status: () => Status3,
|
|
54
57
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
58
|
+
configured: () => configured3,
|
|
59
|
+
layer: () => layer15,
|
|
60
|
+
node: () => node37
|
|
58
61
|
});
|
|
59
62
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
63
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
61
64
|
import { ephemeral } from "@opencode/schema/event";
|
|
62
65
|
import { createHash } from "node:crypto";
|
|
63
66
|
import { isDeepStrictEqual } from "node:util";
|
|
64
|
-
import {
|
|
65
|
-
Cause,
|
|
66
|
-
Clock,
|
|
67
|
-
Context,
|
|
68
|
-
Effect,
|
|
69
|
-
Exit,
|
|
70
|
-
FiberSet,
|
|
71
|
-
Latch,
|
|
72
|
-
Layer,
|
|
73
|
-
Schema,
|
|
74
|
-
Scope,
|
|
75
|
-
Semaphore,
|
|
76
|
-
Stream
|
|
77
|
-
} from "effect";
|
|
67
|
+
import { Clock, Context, Effect, Exit, FiberSet, Latch, Layer, Schema, Scope, Semaphore, Stream } from "effect";
|
|
78
68
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
79
69
|
import { waitForAbort } from "@opencode/util/process";
|
|
80
70
|
var ServerName2 = Schema.String.pipe(Schema.brand("MCP.ServerName"));
|
|
@@ -118,20 +108,20 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
118
108
|
var endpointLoads = makeUnsafe2();
|
|
119
109
|
var cloneConfig = (config) => structuredClone(config);
|
|
120
110
|
|
|
121
|
-
class
|
|
111
|
+
class Service33 extends Context.Service()("@opencode/MCP") {
|
|
122
112
|
}
|
|
123
|
-
var
|
|
113
|
+
var Options3 = Schema.Struct({
|
|
124
114
|
clientInfo: Schema.optional(Schema.Struct({
|
|
125
115
|
name: Schema.String,
|
|
126
116
|
version: Schema.String
|
|
127
117
|
}))
|
|
128
118
|
});
|
|
129
|
-
var
|
|
119
|
+
var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
130
120
|
const location = yield* Service86;
|
|
131
|
-
const environment = yield*
|
|
121
|
+
const environment = yield* Service62;
|
|
132
122
|
const bus = yield* Service89;
|
|
133
|
-
const forms = yield*
|
|
134
|
-
const integration = yield*
|
|
123
|
+
const forms = yield* Service83;
|
|
124
|
+
const integration = yield* Service82;
|
|
135
125
|
const credentials = yield* Service84;
|
|
136
126
|
const root = yield* Effect.scope;
|
|
137
127
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -184,7 +174,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
184
174
|
const elicitation = {
|
|
185
175
|
create: (input) => Effect.gen(function* () {
|
|
186
176
|
if (input.params.mode === "url") {
|
|
187
|
-
const formID =
|
|
177
|
+
const formID = ID19.create();
|
|
188
178
|
const elicitationID = input.params.elicitationId;
|
|
189
179
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
190
180
|
if (key)
|
|
@@ -229,30 +219,83 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
229
219
|
yield* forms.reply({ id: formID, answer: { [URL_ELICITATION_FIELD_KEY]: true } }).pipe(Effect.ignore);
|
|
230
220
|
})
|
|
231
221
|
};
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
222
|
+
const makeEntry = (name, config, started) => {
|
|
223
|
+
const entry = {
|
|
224
|
+
config,
|
|
225
|
+
status: { status: "pending" },
|
|
226
|
+
startup: Latch.makeUnsafe(),
|
|
227
|
+
attempt: { started, settled: Latch.makeUnsafe() },
|
|
228
|
+
connection: make23({
|
|
229
|
+
name,
|
|
230
|
+
config,
|
|
231
|
+
directory: location.directory,
|
|
232
|
+
clientInfo: options?.clientInfo,
|
|
233
|
+
authProvider: Effect.suspend(() => connectProvider(entry)),
|
|
234
|
+
elicitation,
|
|
235
|
+
environment,
|
|
236
|
+
scope: servers,
|
|
237
|
+
lock: locks.withLock(name),
|
|
238
|
+
handshake: (effect) => config.type === "remote" ? endpointLoads.withLock(config.url)(effect) : effect,
|
|
239
|
+
callbacks,
|
|
240
|
+
fork,
|
|
241
|
+
events: {
|
|
242
|
+
connecting: Effect.gen(function* () {
|
|
243
|
+
if (!entry.attempt || entry.status.status !== "pending")
|
|
244
|
+
entry.attempt = { started: yield* Clock.currentTimeMillis, settled: Latch.makeUnsafe() };
|
|
245
|
+
entry.status = { status: "pending" };
|
|
246
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
247
|
+
}),
|
|
248
|
+
connected: Effect.gen(function* () {
|
|
249
|
+
entry.status = { status: "connected" };
|
|
250
|
+
yield* Effect.logInfo("mcp connected", { server: name, tools: entry.connection.tools?.length });
|
|
251
|
+
yield* bus.publish(McpEvent.ToolsChanged, { server: name });
|
|
252
|
+
yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
|
|
253
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
254
|
+
}),
|
|
255
|
+
failed: (failure) => Effect.gen(function* () {
|
|
256
|
+
entry.status = failure;
|
|
257
|
+
yield* Effect.logWarning("mcp connect failed", { server: name, status: entry.status });
|
|
258
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
259
|
+
}),
|
|
260
|
+
settled: Effect.suspend(() => {
|
|
261
|
+
const attempt = entry.attempt;
|
|
262
|
+
entry.attempt = undefined;
|
|
263
|
+
return (attempt ? attempt.settled.open : Effect.void).pipe(Effect.ensuring(entry.startup.open));
|
|
264
|
+
}),
|
|
265
|
+
stopped: Effect.gen(function* () {
|
|
266
|
+
yield* bus.publish(McpEvent.ToolsChanged, { server: name });
|
|
267
|
+
yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
|
|
268
|
+
yield* bus.publish(PromptsChanged2, { server: name });
|
|
269
|
+
}),
|
|
270
|
+
closed: (reason) => Effect.gen(function* () {
|
|
271
|
+
entry.status = { status: "failed", error: reason };
|
|
272
|
+
yield* entry.connection.stop;
|
|
273
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
274
|
+
}),
|
|
275
|
+
toolsChanged: Effect.suspend(() => bus.publish(McpEvent.ToolsChanged, { server: name })),
|
|
276
|
+
promptsChanged: Effect.suspend(() => bus.publish(PromptsChanged2, { server: name })),
|
|
277
|
+
resourcesChanged: Effect.suspend(() => bus.publish(McpEvent.ResourcesChanged, { server: name }))
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
};
|
|
281
|
+
return entry;
|
|
282
|
+
};
|
|
283
|
+
const serverTools = (name, entry) => {
|
|
284
|
+
const source = entry.connection.tools;
|
|
285
|
+
if (!source)
|
|
286
|
+
return [];
|
|
287
|
+
if (entry.tagged?.source !== source)
|
|
288
|
+
entry.tagged = {
|
|
289
|
+
source,
|
|
290
|
+
tools: source.map((tool) => ({
|
|
291
|
+
...tool,
|
|
292
|
+
server: name,
|
|
293
|
+
...entry.config.codemode === undefined ? {} : { codemode: entry.config.codemode }
|
|
294
|
+
}))
|
|
295
|
+
};
|
|
296
|
+
return entry.tagged.tools;
|
|
297
|
+
};
|
|
298
|
+
const toCatalog = (name, catalog) => ResourceCatalog2.make({
|
|
256
299
|
resources: catalog.resources.map((resource) => Resource2.make({
|
|
257
300
|
server: name,
|
|
258
301
|
name: resource.name,
|
|
@@ -267,69 +310,9 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
267
310
|
description: template.description,
|
|
268
311
|
mimeType: template.mimeType
|
|
269
312
|
}))
|
|
270
|
-
})));
|
|
271
|
-
const watch = (name, entry, connection) => {
|
|
272
|
-
const live = whenLive(name, entry, connection);
|
|
273
|
-
connection.onClose((reason) => live(Effect.gen(function* () {
|
|
274
|
-
entry.status = { status: "failed", error: reason };
|
|
275
|
-
yield* stopServer(name, entry);
|
|
276
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
277
|
-
})));
|
|
278
|
-
connection.onSessionExpired(() => fork(recover(name, entry, connection)));
|
|
279
|
-
connection.onToolsChanged(() => live(refreshTools(name, entry, connection).pipe(Effect.andThen(bus.publish(McpEvent.ToolsChanged, { server: name })))));
|
|
280
|
-
connection.onPromptsChanged(() => live(refreshPrompts(name, entry, connection)));
|
|
281
|
-
connection.onResourcesChanged(() => live(bus.publish(McpEvent.ResourcesChanged, { server: name })));
|
|
282
|
-
};
|
|
283
|
-
const startServer = (name, entry) => Effect.gen(function* () {
|
|
284
|
-
if (!entry.attempt || entry.status.status !== "pending")
|
|
285
|
-
entry.attempt = { started: yield* Clock.currentTimeMillis, settled: Latch.makeUnsafe() };
|
|
286
|
-
entry.status = { status: "pending" };
|
|
287
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
288
|
-
const scope = yield* Scope.fork(servers);
|
|
289
|
-
entry.scope = scope;
|
|
290
|
-
const authProvider = yield* connectProvider(entry);
|
|
291
|
-
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
292
|
-
const load = 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(Service60, environment), Scope.provide(scope));
|
|
293
|
-
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
294
|
-
if (Exit.isSuccess(result)) {
|
|
295
|
-
entry.client = result.value.connection;
|
|
296
|
-
entry.tools = result.value.tools.map((tool) => toTool(name, entry, tool));
|
|
297
|
-
entry.prompts = [];
|
|
298
|
-
entry.status = { status: "connected" };
|
|
299
|
-
watch(name, entry, result.value.connection);
|
|
300
|
-
yield* Effect.logInfo("mcp connected", { server: name, tools: entry.tools.length });
|
|
301
|
-
yield* bus.publish(McpEvent.ToolsChanged, { server: name });
|
|
302
|
-
yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
|
|
303
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
304
|
-
whenLive(name, entry, result.value.connection)(refreshPrompts(name, entry, result.value.connection));
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
yield* Scope.close(scope, Exit.void);
|
|
308
|
-
entry.scope = undefined;
|
|
309
|
-
const error = Cause.squash(result.cause);
|
|
310
|
-
entry.status = error instanceof McpClient.NeedsAuthError ? { status: "needs_auth", error: error.message } : { status: "failed", error: error instanceof Error ? error.message : String(error) };
|
|
311
|
-
yield* Effect.logWarning("mcp connect failed", { server: name, status: entry.status });
|
|
312
|
-
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
313
|
-
}).pipe(Effect.ensuring(Effect.suspend(() => {
|
|
314
|
-
const attempt = entry.attempt;
|
|
315
|
-
entry.attempt = undefined;
|
|
316
|
-
return attempt ? attempt.settled.open : Effect.void;
|
|
317
|
-
})), Effect.ensuring(entry.startup.open), Effect.annotateLogs({ server: name, directory: location.directory, connectionID: crypto.randomUUID() }));
|
|
318
|
-
const stopServer = Effect.fnUntraced(function* (name, entry) {
|
|
319
|
-
const scope = entry.scope;
|
|
320
|
-
if (!scope)
|
|
321
|
-
return;
|
|
322
|
-
entry.scope = undefined;
|
|
323
|
-
entry.client = undefined;
|
|
324
|
-
entry.tools = undefined;
|
|
325
|
-
entry.prompts = undefined;
|
|
326
|
-
yield* Scope.close(scope, Exit.void);
|
|
327
|
-
yield* bus.publish(McpEvent.ToolsChanged, { server: name });
|
|
328
|
-
yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
|
|
329
|
-
yield* bus.publish(PromptsChanged2, { server: name });
|
|
330
313
|
});
|
|
331
314
|
const disposeServer = Effect.fnUntraced(function* (name, entry) {
|
|
332
|
-
yield*
|
|
315
|
+
yield* entry.connection.stop;
|
|
333
316
|
if (entry.integrationID)
|
|
334
317
|
owned.delete(entry.integrationID);
|
|
335
318
|
if (entry.registration)
|
|
@@ -339,12 +322,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
339
322
|
const previous = entries.get(name);
|
|
340
323
|
if (previous)
|
|
341
324
|
yield* disposeServer(name, previous);
|
|
342
|
-
const entry =
|
|
343
|
-
config: serverConfig,
|
|
344
|
-
status: { status: "pending" },
|
|
345
|
-
startup: Latch.makeUnsafe(),
|
|
346
|
-
attempt: { started: yield* Clock.currentTimeMillis, settled: Latch.makeUnsafe() }
|
|
347
|
-
};
|
|
325
|
+
const entry = makeEntry(name, serverConfig, yield* Clock.currentTimeMillis);
|
|
348
326
|
entries.set(name, entry);
|
|
349
327
|
yield* Effect.gen(function* () {
|
|
350
328
|
yield* register(name, entry);
|
|
@@ -353,7 +331,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
353
331
|
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
354
332
|
return;
|
|
355
333
|
}
|
|
356
|
-
yield*
|
|
334
|
+
yield* entry.connection.start;
|
|
357
335
|
}).pipe(Effect.ensuring(entry.startup.open));
|
|
358
336
|
});
|
|
359
337
|
const removeServer = Effect.fnUntraced(function* (name) {
|
|
@@ -395,7 +373,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
395
373
|
let closed = false;
|
|
396
374
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
397
375
|
closed = true;
|
|
398
|
-
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
376
|
+
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service62, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
|
|
399
377
|
const register = Effect.gen(function* () {
|
|
400
378
|
if (closed) {
|
|
401
379
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -423,12 +401,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
423
401
|
if (!applied && entries.size === 0) {
|
|
424
402
|
const started = yield* Clock.currentTimeMillis;
|
|
425
403
|
for (const [name, server] of servers) {
|
|
426
|
-
entries.set(name,
|
|
427
|
-
config: server,
|
|
428
|
-
status: { status: "pending" },
|
|
429
|
-
startup: Latch.makeUnsafe(),
|
|
430
|
-
attempt: { started, settled: Latch.makeUnsafe() }
|
|
431
|
-
});
|
|
404
|
+
entries.set(name, makeEntry(name, server, started));
|
|
432
405
|
}
|
|
433
406
|
yield* Effect.forEach(entries, ([name, entry]) => register(name, entry), { discard: true });
|
|
434
407
|
applied = servers;
|
|
@@ -442,7 +415,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
442
415
|
fork(Effect.gen(function* () {
|
|
443
416
|
if (entry.status.status !== "pending")
|
|
444
417
|
return yield* entry.startup.open;
|
|
445
|
-
yield*
|
|
418
|
+
yield* entry.connection.start;
|
|
446
419
|
}).pipe(locks.withLock(name)));
|
|
447
420
|
}
|
|
448
421
|
return;
|
|
@@ -472,11 +445,11 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
472
445
|
return;
|
|
473
446
|
if (entry.status.status === "disabled")
|
|
474
447
|
return;
|
|
475
|
-
yield*
|
|
476
|
-
yield*
|
|
448
|
+
yield* entry.connection.stop;
|
|
449
|
+
yield* entry.connection.start;
|
|
477
450
|
}).pipe(locks.withLock(name));
|
|
478
451
|
});
|
|
479
|
-
fork(bus.subscribe(
|
|
452
|
+
fork(bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
480
453
|
const state = create4({
|
|
481
454
|
name: "mcp",
|
|
482
455
|
initial: () => ({
|
|
@@ -502,14 +475,14 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
502
475
|
}),
|
|
503
476
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
504
477
|
});
|
|
505
|
-
return
|
|
478
|
+
return Service33.of({
|
|
506
479
|
transform: state.transform,
|
|
507
480
|
reload: state.reload,
|
|
508
481
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
509
482
|
return Array.from(entries).toSorted(([a], [b]) => a.localeCompare(b)).map(([name, entry]) => ({
|
|
510
483
|
name,
|
|
511
484
|
status: entry.status,
|
|
512
|
-
title: entry.client?.title,
|
|
485
|
+
title: entry.connection.client?.title,
|
|
513
486
|
integrationID: entry.integrationID
|
|
514
487
|
}));
|
|
515
488
|
}),
|
|
@@ -522,15 +495,15 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
522
495
|
const name = ServerName2.make(server);
|
|
523
496
|
yield* Effect.gen(function* () {
|
|
524
497
|
const target = yield* requireServer(name);
|
|
525
|
-
yield*
|
|
526
|
-
yield*
|
|
498
|
+
yield* target.entry.connection.stop;
|
|
499
|
+
yield* target.entry.connection.start;
|
|
527
500
|
}).pipe(locks.withLock(name));
|
|
528
501
|
}),
|
|
529
502
|
disconnect: Effect.fn("MCP.disconnect")(function* (server) {
|
|
530
503
|
const name = ServerName2.make(server);
|
|
531
504
|
yield* Effect.gen(function* () {
|
|
532
505
|
const target = yield* requireServer(name);
|
|
533
|
-
yield*
|
|
506
|
+
yield* target.entry.connection.stop;
|
|
534
507
|
target.entry.status = { status: "disabled" };
|
|
535
508
|
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
536
509
|
}).pipe(locks.withLock(name));
|
|
@@ -548,7 +521,7 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
548
521
|
const clients = Array.from(attached.values()).flatMap((stack) => stack.at(-1)?.tools ?? []);
|
|
549
522
|
const shadowed = new Set(clients.map((tool) => `${tool.server}\x00${tool.name}`));
|
|
550
523
|
return [
|
|
551
|
-
...Array.from(entries
|
|
524
|
+
...Array.from(entries).flatMap(([name, entry]) => serverTools(name, entry)).filter((tool) => !shadowed.has(`${tool.server}\x00${tool.name}`)),
|
|
552
525
|
...clients
|
|
553
526
|
].toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
|
|
554
527
|
}),
|
|
@@ -574,13 +547,14 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
574
547
|
}
|
|
575
548
|
const target = yield* requireServer(server);
|
|
576
549
|
yield* target.entry.startup.await;
|
|
577
|
-
|
|
550
|
+
const connected = target.entry.connection.client;
|
|
551
|
+
if (!connected)
|
|
578
552
|
return yield* new ToolCallError2({
|
|
579
553
|
server: target.name,
|
|
580
554
|
tool: input.name,
|
|
581
555
|
message: unavailable(target.name, target.entry.status)
|
|
582
556
|
});
|
|
583
|
-
const result = yield*
|
|
557
|
+
const result = yield* target.entry.connection.recovering(connected, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
|
|
584
558
|
server: target.name,
|
|
585
559
|
tool: input.name,
|
|
586
560
|
message: `MCP tool "${input.name}" on server "${target.name}" failed: ${error.message}`
|
|
@@ -589,21 +563,22 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
589
563
|
}),
|
|
590
564
|
instructions: Effect.fn("MCP.instructions")(function* () {
|
|
591
565
|
return Array.from(entries).flatMap(([server, entry]) => {
|
|
592
|
-
const instructions = entry.client?.instructions;
|
|
566
|
+
const instructions = entry.connection.client?.instructions;
|
|
593
567
|
if (!instructions)
|
|
594
568
|
return [];
|
|
595
569
|
return [{ server, instructions }];
|
|
596
570
|
}).toSorted((a, b) => a.server.localeCompare(b.server));
|
|
597
571
|
}),
|
|
598
572
|
prompts: Effect.fn("MCP.prompts")(function* () {
|
|
599
|
-
return Array.from(entries
|
|
573
|
+
return Array.from(entries).flatMap(([server, entry]) => (entry.connection.prompts ?? []).map((prompt) => ({ ...prompt, server }))).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
|
|
600
574
|
}),
|
|
601
575
|
prompt: Effect.fn("MCP.prompt")(function* (input) {
|
|
602
576
|
const target = yield* requireServer(ServerName2.make(input.server));
|
|
603
577
|
yield* target.entry.startup.await;
|
|
604
|
-
|
|
578
|
+
const client = target.entry.connection.client;
|
|
579
|
+
if (!client)
|
|
605
580
|
return;
|
|
606
|
-
const result = yield*
|
|
581
|
+
const result = yield* target.entry.connection.recovering(client, (connection) => connection.prompt({ name: input.name, args: input.args })).pipe(Effect.orElseSucceed(() => {
|
|
607
582
|
return;
|
|
608
583
|
}));
|
|
609
584
|
if (!result)
|
|
@@ -612,22 +587,24 @@ var layer18 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
612
587
|
}),
|
|
613
588
|
resourceCatalog: Effect.fn("MCP.resourceCatalog")(function* () {
|
|
614
589
|
const empty = ResourceCatalog2.make({ resources: [], templates: [] });
|
|
615
|
-
const catalogs = yield* Effect.forEach(Array.from(entries), ([name, entry]) => entry.client ?
|
|
590
|
+
const catalogs = yield* Effect.forEach(Array.from(entries), ([name, entry]) => entry.connection.client ? entry.connection.catalog(entry.connection.client).pipe(Effect.map((catalog) => toCatalog(name, catalog)), Effect.orElseSucceed(() => empty)) : Effect.succeed(empty), { concurrency: "unbounded" });
|
|
616
591
|
return mergeCatalogs(catalogs);
|
|
617
592
|
}),
|
|
618
593
|
resources: Effect.fn("MCP.resources")(function* (input) {
|
|
619
594
|
const target = yield* requireServer(ServerName2.make(input.server));
|
|
620
595
|
yield* target.entry.startup.await;
|
|
621
|
-
|
|
596
|
+
const client = target.entry.connection.client;
|
|
597
|
+
if (!client)
|
|
622
598
|
return ResourceCatalog2.make({ resources: [], templates: [] });
|
|
623
|
-
return mergeCatalogs([
|
|
599
|
+
return mergeCatalogs([toCatalog(target.name, yield* target.entry.connection.catalog(client))]);
|
|
624
600
|
}),
|
|
625
601
|
readResource: Effect.fn("MCP.readResource")(function* (input) {
|
|
626
602
|
const target = yield* requireServer(ServerName2.make(input.server));
|
|
627
603
|
yield* target.entry.startup.await;
|
|
628
|
-
|
|
604
|
+
const client = target.entry.connection.client;
|
|
605
|
+
if (!client)
|
|
629
606
|
return;
|
|
630
|
-
const result = yield*
|
|
607
|
+
const result = yield* target.entry.connection.recovering(client, (connection) => connection.readResource({ uri: input.uri }));
|
|
631
608
|
if (!result)
|
|
632
609
|
return;
|
|
633
610
|
return ResourceContent2.make({
|
|
@@ -644,14 +621,14 @@ function mergeCatalogs(catalogs) {
|
|
|
644
621
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
645
622
|
});
|
|
646
623
|
}
|
|
647
|
-
function
|
|
624
|
+
function configured3(options) {
|
|
648
625
|
return makeLocationNode({
|
|
649
|
-
service:
|
|
650
|
-
layer:
|
|
651
|
-
deps: [node89,
|
|
626
|
+
service: Service33,
|
|
627
|
+
layer: layer15(options),
|
|
628
|
+
deps: [node89, node63, node92, node86, node85, node87]
|
|
652
629
|
});
|
|
653
630
|
}
|
|
654
|
-
var
|
|
631
|
+
var node37 = configured3();
|
|
655
632
|
function toElicitationField(key, property, required) {
|
|
656
633
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
657
634
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -702,4 +679,4 @@ function toElicitationField(key, property, required) {
|
|
|
702
679
|
}
|
|
703
680
|
}
|
|
704
681
|
|
|
705
|
-
export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2,
|
|
682
|
+
export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2, Service33, Options3, layer15, configured3, node37, exports_mcp4 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service90,
|
|
3
3
|
node93
|
|
4
|
-
} from "./app-
|
|
4
|
+
} from "./app-n4k1ey5b.js";
|
|
5
5
|
import {
|
|
6
6
|
Service89,
|
|
7
7
|
node92
|
|
8
|
-
} from "./app-
|
|
8
|
+
} from "./app-82fxv0dw.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./app-pknna89w.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event20,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID20,
|
|
26
|
+
Info: () => Info29,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
29
|
Service: () => Service84,
|
|
@@ -37,15 +37,15 @@ import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
|
37
37
|
import { Integration } from "@opencode/schema/integration";
|
|
38
38
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { EffectFlock } from "@opencode/util/effect-flock";
|
|
40
|
-
var
|
|
40
|
+
var ID20 = Credential.ID;
|
|
41
41
|
var OAuth3 = Credential.OAuth;
|
|
42
42
|
var Key4 = Credential.Key;
|
|
43
43
|
var External2 = Credential.External;
|
|
44
44
|
var Value2 = Credential.Value;
|
|
45
|
-
var
|
|
45
|
+
var Event20 = Credential.Event;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class Info29 extends Schema.Class("Credential.Info")({
|
|
48
|
+
id: ID20,
|
|
49
49
|
integrationID: Integration.ID,
|
|
50
50
|
label: Schema.String,
|
|
51
51
|
value: Value2
|
|
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
64
64
|
const stored = (row) => {
|
|
65
65
|
if (!row.integration_id)
|
|
66
66
|
return;
|
|
67
|
-
return new
|
|
67
|
+
return new Info29({
|
|
68
68
|
id: row.id,
|
|
69
69
|
integrationID: row.integration_id,
|
|
70
70
|
label: row.label,
|
|
@@ -91,8 +91,8 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
91
91
|
return row ? stored(row) : undefined;
|
|
92
92
|
}),
|
|
93
93
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
94
|
-
const credential = new
|
|
95
|
-
id: input.id ??
|
|
94
|
+
const credential = new Info29({
|
|
95
|
+
id: input.id ?? ID20.create(),
|
|
96
96
|
integrationID: input.integrationID,
|
|
97
97
|
label: input.label ?? "default",
|
|
98
98
|
value: input.value
|
|
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
123
123
|
type: credential.value.type,
|
|
124
124
|
active: activated
|
|
125
125
|
});
|
|
126
|
-
yield* bus.publish(
|
|
126
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
127
127
|
if (activated)
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
129
129
|
return credential;
|
|
130
130
|
}),
|
|
131
131
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -145,7 +145,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
145
145
|
})), Effect.orDie);
|
|
146
146
|
if (integrationID) {
|
|
147
147
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
148
|
-
yield* bus.publish(
|
|
148
|
+
yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
|
|
149
149
|
}
|
|
150
150
|
}),
|
|
151
151
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -177,7 +177,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
177
177
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
178
178
|
});
|
|
179
179
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
180
|
-
yield* bus.publish(
|
|
180
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
181
181
|
}),
|
|
182
182
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
183
183
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -210,12 +210,12 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
210
210
|
active: removed.switched,
|
|
211
211
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
212
212
|
});
|
|
213
|
-
yield* bus.publish(
|
|
213
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
214
214
|
if (removed.switched)
|
|
215
|
-
yield* bus.publish(
|
|
215
|
+
yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}));
|
|
219
219
|
var node87 = makeGlobalNode({ service: Service84, layer, deps: [node93, node92, EffectFlock.node] });
|
|
220
220
|
|
|
221
|
-
export {
|
|
221
|
+
export { ID20, OAuth3, Key4, External2, Value2, Event20, Info29, Service84, node87, exports_credential };
|