@opencode/core 0.0.0-dev-479 → 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/account/sql.js +1 -1
- package/dist/agent.js +92 -92
- package/dist/aisdk-native.js +102 -102
- package/dist/aisdk.js +108 -108
- package/dist/app.js +3 -3
- package/dist/artifact.js +247 -246
- package/dist/bus.js +80 -80
- package/dist/chunks/{plugin-kxwct6tk.js → app-0asq6p20.js} +10 -10
- package/dist/chunks/{plugin-0j7gp832.js → app-0j7gp832.js} +1 -1
- package/dist/chunks/{plugin-0ma9gw4f.js → app-0ma9gw4f.js} +2 -2
- package/dist/chunks/{plugin-qj97zj8m.js → app-0qdw55z7.js} +6 -6
- package/dist/chunks/{plugin-s320htan.js → app-0z1kk8n9.js} +8 -8
- package/dist/chunks/{plugin-nt1ksxpe.js → app-11pmnyyq.js} +13 -13
- package/dist/chunks/{plugin-m4htaz91.js → app-11v4hymh.js} +11 -11
- package/dist/chunks/{plugin-zcveajwy.js → app-13aj6xfg.js} +29 -29
- package/dist/chunks/{plugin-jxbp2qyt.js → app-13am0myr.js} +59 -59
- package/dist/chunks/{plugin-x150ncgg.js → app-19gkfjnk.js} +2 -2
- package/dist/chunks/{plugin-7npe92bj.js → app-19w73m0f.js} +11 -11
- package/dist/chunks/{plugin-1aqsckx4.js → app-1aqsckx4.js} +1 -1
- package/dist/chunks/{plugin-qtf35215.js → app-1njtx4es.js} +3 -3
- package/dist/chunks/{plugin-ybws1qgk.js → app-1v2g13eq.js} +4 -4
- package/dist/chunks/{plugin-f341sazs.js → app-1vbrkdbs.js} +3 -3
- package/dist/chunks/{plugin-1x2knyw4.js → app-1x2knyw4.js} +1 -1
- package/dist/chunks/{plugin-fk248ax2.js → app-20mc4p3b.js} +11 -11
- package/dist/chunks/{plugin-p2zjxbd0.js → app-23b5bwtt.js} +3 -3
- package/dist/chunks/{plugin-n9053ya8.js → app-24sxtq8k.js} +6 -6
- package/dist/chunks/{plugin-gmemj5zs.js → app-26wfx3k0.js} +4 -4
- package/dist/chunks/{plugin-1ep2p91f.js → app-27w5k9zf.js} +2 -2
- package/dist/chunks/{plugin-g1ngm9se.js → app-28ma8gfj.js} +146 -146
- package/dist/chunks/{plugin-233argac.js → app-2am13szv.js} +8 -8
- package/dist/chunks/{plugin-sbz71ybr.js → app-2cdjxzfg.js} +3 -3
- package/dist/chunks/{plugin-hq8qa4db.js → app-2db5e21y.js} +5 -5
- package/dist/chunks/{plugin-b1zhhzgv.js → app-2emepb4b.js} +31 -31
- package/dist/chunks/{plugin-fhmm688v.js → app-2gd46ww5.js} +31 -31
- package/dist/chunks/{plugin-b0grxa7w.js → app-2hg7qvzt.js} +5 -5
- package/dist/chunks/{plugin-xmx7xj34.js → app-2kj7f5bg.js} +7 -7
- package/dist/chunks/{plugin-n8e9v4vc.js → app-2n05qsag.js} +4 -4
- package/dist/chunks/{plugin-s1ba0vj0.js → app-2p60zmnr.js} +2 -2
- package/dist/chunks/{plugin-d937xkcq.js → app-2zydp9t3.js} +6 -6
- package/dist/chunks/{plugin-y02sr1p4.js → app-33fs0phy.js} +3 -3
- package/dist/chunks/{plugin-3992z3jj.js → app-33vee48d.js} +43 -43
- package/dist/chunks/{plugin-793zj1sy.js → app-3ab9az2f.js} +11 -11
- package/dist/chunks/{plugin-ayjs7tqn.js → app-3cbjf1nt.js} +2 -2
- package/dist/chunks/{plugin-nydjq4sd.js → app-3gqs30ps.js} +19 -19
- package/dist/chunks/{plugin-3hepkmqq.js → app-3hepkmqq.js} +1 -1
- package/dist/chunks/{plugin-0zr7nnmg.js → app-3jqetb86.js} +19 -19
- package/dist/chunks/{plugin-dby5vbzt.js → app-3k6see7r.js} +18 -18
- package/dist/chunks/{plugin-mcjqta85.js → app-3nmxyean.js} +5 -5
- package/dist/chunks/{plugin-3nnrz6f6.js → app-3nnrz6f6.js} +1 -1
- package/dist/chunks/{plugin-sswgfrj6.js → app-3xg6wq2g.js} +13 -13
- package/dist/chunks/{plugin-40y6dtc2.js → app-40y6dtc2.js} +1 -1
- package/dist/chunks/{plugin-40za9wsf.js → app-40za9wsf.js} +2 -2
- package/dist/chunks/{plugin-003h9f7h.js → app-43ynt425.js} +30 -30
- package/dist/chunks/{plugin-jxd6f16v.js → app-44pmzq9c.js} +2 -2
- package/dist/chunks/{plugin-0nce9c54.js → app-45a1n0rj.js} +21 -21
- package/dist/chunks/{plugin-3b63hagv.js → app-4am3819x.js} +32 -32
- package/dist/chunks/{plugin-4dx1dgte.js → app-4dx1dgte.js} +1 -1
- package/dist/chunks/{plugin-4f25tdd0.js → app-4f25tdd0.js} +1 -1
- package/dist/chunks/{plugin-12a87htm.js → app-4medx3yc.js} +8 -8
- package/dist/chunks/{plugin-sztprh7q.js → app-4pc43vs5.js} +3 -3
- package/dist/chunks/{plugin-4pyp9zr9.js → app-4pyp9zr9.js} +1 -1
- package/dist/chunks/{plugin-4v008n1t.js → app-4v008n1t.js} +1 -1
- package/dist/chunks/{plugin-pvs364j1.js → app-57zkss3n.js} +9 -9
- package/dist/chunks/{plugin-csxt3m9f.js → app-5af0c4bz.js} +13 -13
- package/dist/chunks/{plugin-5ftq3225.js → app-5ftq3225.js} +2 -2
- package/dist/chunks/{plugin-hdms92sz.js → app-5fz99wkv.js} +6 -6
- package/dist/chunks/{plugin-5m9w47nd.js → app-5m9w47nd.js} +1 -1
- package/dist/chunks/{plugin-5s5vqdc4.js → app-5tgs095n.js} +28 -28
- package/dist/chunks/{plugin-t7jftra3.js → app-5tqhmh96.js} +7 -7
- package/dist/chunks/{plugin-a19ta31c.js → app-5xfk76mk.js} +78 -78
- package/dist/chunks/{plugin-84vrtabg.js → app-5z1m43a3.js} +7 -7
- package/dist/chunks/{plugin-3sc7df82.js → app-62beg8mw.js} +25 -25
- package/dist/chunks/{plugin-qj94hwma.js → app-62fftzdq.js} +12 -12
- package/dist/chunks/{plugin-nt9tcqpf.js → app-6m70gvhx.js} +9 -9
- package/dist/chunks/{plugin-4zyss6cy.js → app-6mzrbse0.js} +29 -29
- package/dist/chunks/{plugin-58tmp4yv.js → app-6s3jfmgb.js} +11 -11
- package/dist/chunks/{plugin-r76ra0tx.js → app-6tvaezwq.js} +3 -3
- package/dist/chunks/{plugin-0sa7jxz1.js → app-6xgrzf3v.js} +4 -4
- package/dist/chunks/{plugin-dzndmsqs.js → app-71jkfa4r.js} +4 -4
- package/dist/chunks/{plugin-6vz3jywf.js → app-722vxske.js} +9 -9
- package/dist/chunks/{plugin-czwrbhp2.js → app-750t9xmf.js} +21 -21
- package/dist/chunks/{plugin-76cb1hcw.js → app-76cb1hcw.js} +1 -1
- package/dist/chunks/{plugin-5ta9hw7a.js → app-76ggf0cd.js} +10 -10
- package/dist/chunks/{plugin-7bmhse3q.js → app-7bmhse3q.js} +1 -1
- package/dist/chunks/{plugin-3fyd3gy1.js → app-7ey693cm.js} +6 -6
- package/dist/chunks/{plugin-7kr66rt3.js → app-7kr66rt3.js} +1 -1
- package/dist/chunks/{plugin-mpp1es3r.js → app-7ncdpmyj.js} +9 -9
- package/dist/chunks/{plugin-8sxe6kv8.js → app-7qrph824.js} +2 -2
- package/dist/chunks/{plugin-3dz8yjj2.js → app-7t9chrae.js} +14 -14
- package/dist/chunks/{plugin-7w2ypzdf.js → app-7w2ypzdf.js} +1 -1
- package/dist/chunks/{plugin-7weczvnd.js → app-7weczvnd.js} +1 -1
- package/dist/chunks/{plugin-m0hzqf10.js → app-7wm6fjb2.js} +6 -6
- package/dist/chunks/{plugin-jhheezf7.js → app-7zggx0n1.js} +6 -6
- package/dist/chunks/{plugin-80mg3ag8.js → app-80mg3ag8.js} +3 -3
- package/dist/chunks/{plugin-bzv7p55q.js → app-82fxv0dw.js} +4 -4
- package/dist/chunks/{plugin-yw5tymv7.js → app-847k13tf.js} +11 -11
- package/dist/chunks/{plugin-msgw3yfh.js → app-87ef3s8z.js} +32 -32
- package/dist/chunks/{plugin-89287pr7.js → app-89287pr7.js} +1 -1
- package/dist/chunks/{plugin-8b3vzgkx.js → app-8b3vzgkx.js} +1 -1
- package/dist/chunks/{plugin-4d2dtj2f.js → app-8cg7mtm3.js} +4 -4
- package/dist/chunks/{plugin-pw9cbn0b.js → app-8dxpscf2.js} +26 -26
- package/dist/chunks/{plugin-k56zdrkn.js → app-8fzjfj5n.js} +2 -2
- package/dist/chunks/{plugin-z9wgtvaj.js → app-8g403b55.js} +22 -22
- package/dist/chunks/{plugin-4k3rcg9y.js → app-8jw7n1ah.js} +9 -9
- package/dist/chunks/{plugin-zrgw02gd.js → app-8px3ddj4.js} +4 -4
- package/dist/chunks/{plugin-d71f6xpr.js → app-8qbdxarg.js} +26 -26
- package/dist/chunks/{plugin-t55cvahq.js → app-8sb7jtsn.js} +9 -9
- package/dist/chunks/{plugin-8wtp7s3z.js → app-8wtp7s3z.js} +1 -1
- package/dist/chunks/{plugin-mb7mbhnz.js → app-8z6m94af.js} +3 -3
- package/dist/chunks/{plugin-hj5ct57v.js → app-90pvm6py.js} +8 -8
- package/dist/chunks/{plugin-90zstvax.js → app-90zstvax.js} +1 -1
- package/dist/chunks/{plugin-7zpjpnxk.js → app-93n7n3x8.js} +21 -21
- package/dist/chunks/{plugin-nn2nd58t.js → app-93xmyh8q.js} +5 -5
- package/dist/chunks/{plugin-zd6datdt.js → app-99a9crdx.js} +11 -11
- package/dist/chunks/{plugin-t4grjx7g.js → app-9av120cb.js} +17 -17
- package/dist/chunks/{plugin-e7stmr9y.js → app-9c645kx6.js} +2 -2
- package/dist/chunks/{plugin-c0vscat1.js → app-9cgaya5j.js} +10 -10
- package/dist/chunks/{plugin-maw2k4sy.js → app-9hqxgecf.js} +21 -21
- package/dist/chunks/app-9kkkhnvp.js +92 -0
- package/dist/chunks/{plugin-3y7pxfxj.js → app-9rqhy0gk.js} +7 -7
- package/dist/chunks/{plugin-xvek642c.js → app-9vajtycf.js} +12 -12
- package/dist/chunks/{plugin-1yepcjym.js → app-9wje21dv.js} +12 -12
- package/dist/chunks/{plugin-pcwm73g7.js → app-a1dwv91k.js} +8 -8
- package/dist/chunks/{plugin-7nqkf5r1.js → app-a5fx33f2.js} +6 -6
- package/dist/chunks/{plugin-rwvswa9y.js → app-ae65egk4.js} +6 -6
- package/dist/chunks/{plugin-6jfqrnyk.js → app-af8dd66m.js} +4 -4
- package/dist/chunks/{plugin-wvpwprnn.js → app-afwnmwkf.js} +43 -43
- package/dist/chunks/{plugin-034tev2y.js → app-aj7mw0zk.js} +2 -2
- package/dist/chunks/{plugin-xzk7eqpq.js → app-b37ymw5d.js} +15 -15
- package/dist/chunks/{plugin-4gj35b6k.js → app-b3hbd1md.js} +14 -14
- package/dist/chunks/{plugin-tehqysmh.js → app-b6s5ycsj.js} +6 -6
- package/dist/chunks/{plugin-5nnwax6m.js → app-b6vsg801.js} +5 -5
- package/dist/chunks/{plugin-v7npc9v0.js → app-bfmts8p1.js} +8 -8
- package/dist/chunks/{plugin-e2y3qpx8.js → app-bg9cnzs0.js} +21 -21
- package/dist/chunks/{plugin-zyq2pv4t.js → app-bhfd478d.js} +4 -4
- package/dist/chunks/{plugin-qs0ybwet.js → app-bmgv8h6w.js} +12 -12
- package/dist/chunks/{plugin-3kyqn81p.js → app-bprvspg8.js} +11 -11
- package/dist/chunks/{plugin-bstexjd6.js → app-bstexjd6.js} +1 -1
- package/dist/chunks/{plugin-y75me4wg.js → app-catycsjd.js} +11 -11
- package/dist/chunks/{plugin-mj8rdz5b.js → app-cfg1rk1c.js} +28 -28
- package/dist/chunks/{plugin-yrgx642j.js → app-ck4dpv2q.js} +20 -20
- package/dist/chunks/app-cpdsp3va.js +16 -0
- package/dist/chunks/{plugin-kxs6tnw8.js → app-cpg2sjfp.js} +21 -21
- package/dist/chunks/{plugin-cwrgdav8.js → app-cwrgdav8.js} +2 -2
- package/dist/chunks/{plugin-7qp028r2.js → app-czy8szj2.js} +322 -322
- package/dist/chunks/{plugin-ja240zvt.js → app-d4by6qpt.js} +11 -11
- package/dist/chunks/{plugin-916zt89d.js → app-dbf6dzq1.js} +6 -6
- package/dist/chunks/{plugin-ps1gq44e.js → app-dgmx8s6q.js} +9 -9
- package/dist/chunks/{plugin-dt77769w.js → app-dt77769w.js} +1 -1
- package/dist/chunks/{plugin-xqgz2960.js → app-dv2k300y.js} +26 -26
- package/dist/chunks/{plugin-bhvnwa4b.js → app-dztesnfv.js} +17 -17
- package/dist/chunks/{plugin-gxwxvs29.js → app-dzws43fd.js} +10 -10
- package/dist/chunks/{plugin-e834z07m.js → app-e834z07m.js} +1 -1
- package/dist/chunks/{plugin-xgxp23qn.js → app-ead32ctt.js} +4 -4
- package/dist/chunks/{plugin-eqw4pqj1.js → app-eqw4pqj1.js} +2 -2
- package/dist/chunks/{plugin-zbd22mt1.js → app-erf9fzfw.js} +18 -18
- package/dist/chunks/app-essehzfx.js +26 -0
- package/dist/chunks/{plugin-fzqwfg67.js → app-f1y0a070.js} +1 -1
- package/dist/chunks/{plugin-fpc24hg7.js → app-f5hyk6e9.js} +22 -22
- package/dist/chunks/{plugin-m8s6m4f9.js → app-f851hg2k.js} +17 -17
- package/dist/chunks/{plugin-b8dt3yzy.js → app-fdtp6zbm.js} +11 -11
- package/dist/chunks/{plugin-zqv3715y.js → app-fefx1jcc.js} +3 -3
- package/dist/chunks/{plugin-fffv3p7h.js → app-fffv3p7h.js} +1 -1
- package/dist/chunks/{plugin-r7r55277.js → app-fhwn87jp.js} +8 -8
- package/dist/chunks/{plugin-qsdrkw2j.js → app-fk0rpprw.js} +6 -6
- package/dist/chunks/{plugin-tx91wa5k.js → app-g1e2r5aa.js} +4 -4
- package/dist/chunks/{plugin-f1hyb445.js → app-g6p4g6mv.js} +25 -25
- package/dist/chunks/{plugin-ha11x1pn.js → app-g7mcj942.js} +59 -59
- package/dist/chunks/{plugin-hyppwetb.js → app-g8dgshm1.js} +6 -6
- package/dist/chunks/{plugin-gbjdnr5j.js → app-gbjdnr5j.js} +2 -2
- package/dist/chunks/{plugin-xrxvh75p.js → app-ge0ek74f.js} +28 -28
- package/dist/chunks/{plugin-tqfes9er.js → app-ggqsw24s.js} +18 -18
- package/dist/chunks/{plugin-1pry3703.js → app-ghkxye21.js} +36 -36
- package/dist/chunks/{plugin-96drvzaz.js → app-ghqvcpnh.js} +9 -9
- package/dist/chunks/{plugin-08620e8x.js → app-gk56h2xy.js} +16 -16
- package/dist/chunks/{plugin-5s7rnpj6.js → app-gkqc8wt9.js} +9 -9
- package/dist/chunks/{plugin-d4v9tmah.js → app-gn8tkhbf.js} +2 -2
- package/dist/chunks/{plugin-yye3bq51.js → app-gtse556r.js} +3 -3
- package/dist/chunks/{plugin-ehrst6qt.js → app-gwz0wrrb.js} +14 -14
- package/dist/chunks/{plugin-gxs71cxp.js → app-gxs71cxp.js} +1 -1
- package/dist/chunks/{plugin-0mmtzz5j.js → app-h0xhqjby.js} +4 -4
- package/dist/chunks/{plugin-243e1pz5.js → app-h2ff2q30.js} +8 -8
- package/dist/chunks/{plugin-h9hc66h4.js → app-h9hc66h4.js} +1 -1
- package/dist/chunks/{plugin-mqjmkxe2.js → app-hahgtam6.js} +42 -42
- package/dist/chunks/{plugin-whnfyxqz.js → app-hetycfaa.js} +43 -43
- package/dist/chunks/{plugin-76s20aka.js → app-hfzv1g6g.js} +30 -30
- package/dist/chunks/{plugin-hpg1pkwy.js → app-hpg1pkwy.js} +1 -1
- package/dist/chunks/{plugin-f2kh68ms.js → app-hxjfpgt3.js} +6 -6
- package/dist/chunks/{plugin-hy8c1z76.js → app-hy8c1z76.js} +1 -1
- package/dist/chunks/{plugin-sj8a7msy.js → app-hz7a74th.js} +28 -28
- package/dist/chunks/{plugin-qt0px9k1.js → app-j06ysx93.js} +14 -14
- package/dist/chunks/{plugin-v5t90qh9.js → app-j6z15evp.js} +5 -5
- package/dist/chunks/{plugin-wws03c5r.js → app-jhwp234h.js} +5 -5
- package/dist/chunks/{plugin-2fywmefk.js → app-jk9ctt2d.js} +27 -27
- package/dist/chunks/{plugin-c7yad11g.js → app-jmx08cdn.js} +12 -12
- package/dist/chunks/{plugin-q0pszf8t.js → app-js4hvacx.js} +31 -31
- package/dist/chunks/{plugin-jtnps1zs.js → app-jtnps1zs.js} +2 -2
- package/dist/chunks/{plugin-vza1zfjv.js → app-jy1f4pdx.js} +5 -5
- package/dist/chunks/{plugin-r0db2mfd.js → app-jy6h2y3j.js} +16 -16
- package/dist/chunks/{plugin-ngp7bjdm.js → app-jyntrgsj.js} +9 -9
- package/dist/chunks/{plugin-k3cx6fhe.js → app-k3cx6fhe.js} +1 -1
- package/dist/chunks/{plugin-rhmv684b.js → app-k44x9x7y.js} +146 -169
- package/dist/chunks/{plugin-0ysbbc3a.js → app-k483zyxw.js} +2 -2
- package/dist/chunks/{plugin-xk248cya.js → app-k8bdr0d0.js} +22 -22
- package/dist/chunks/{plugin-eav1rnxp.js → app-ka1mq67y.js} +13 -13
- package/dist/chunks/{plugin-40d4jecb.js → app-kbsfb6et.js} +1 -1
- package/dist/chunks/{plugin-35kq4gbv.js → app-kfd17r3s.js} +7 -7
- package/dist/chunks/{plugin-963hk181.js → app-kp2338hr.js} +2 -2
- package/dist/chunks/{plugin-dz1sb5rn.js → app-kpfh6gak.js} +20 -20
- package/dist/chunks/{plugin-cq1cxh4j.js → app-kse531ts.js} +6 -6
- package/dist/chunks/{plugin-kt3bjfbg.js → app-kt3bjfbg.js} +1 -1
- package/dist/chunks/{plugin-pahg8g4d.js → app-kz92qt34.js} +9 -9
- package/dist/chunks/{plugin-kzczzf4v.js → app-kzczzf4v.js} +1 -1
- package/dist/chunks/{plugin-m1714858.js → app-m1714858.js} +1 -1
- package/dist/chunks/{plugin-m9w0rfyh.js → app-m9w0rfyh.js} +1 -1
- package/dist/chunks/{plugin-nhdvqvpg.js → app-me1613fs.js} +151 -151
- package/dist/chunks/{plugin-4h8kjm87.js → app-mgvq6ne3.js} +23 -23
- package/dist/chunks/{plugin-ybgghwx2.js → app-mj1xqs5a.js} +31 -31
- package/dist/chunks/{plugin-3p8n1y9y.js → app-mxhv6w83.js} +8 -8
- package/dist/chunks/{plugin-tvfqhq7x.js → app-n17wdgkv.js} +33 -33
- package/dist/chunks/{plugin-wb47rx5c.js → app-n3bkb5q1.js} +8 -8
- package/dist/chunks/{plugin-1n3sgxej.js → app-n4k1ey5b.js} +3 -3
- package/dist/chunks/{plugin-pfp0mh64.js → app-n8ahjr4j.js} +13 -13
- package/dist/chunks/{plugin-xcd5nyq5.js → app-navg70v8.js} +11 -11
- package/dist/chunks/{plugin-dwwzshk6.js → app-ndpzex15.js} +14 -14
- package/dist/chunks/{plugin-0zbd8xvq.js → app-np51zkq5.js} +29 -29
- package/dist/chunks/{plugin-pt4tp1e1.js → app-nr7cqb9h.js} +9 -9
- package/dist/chunks/{plugin-6hzvd6ez.js → app-nv1v3ewx.js} +21 -21
- package/dist/chunks/{plugin-0v7tspfh.js → app-nv2s17h7.js} +38 -38
- package/dist/chunks/{plugin-wegkxhrn.js → app-nx4vzyjd.js} +2 -2
- package/dist/chunks/{plugin-jpb5jcq1.js → app-p5w1jxhv.js} +17 -17
- package/dist/chunks/{plugin-pknna89w.js → app-pknna89w.js} +1 -1
- package/dist/chunks/{plugin-s5n4w658.js → app-pq46x9ny.js} +8 -8
- package/dist/chunks/{plugin-wvqnneyz.js → app-prha7nnz.js} +8 -8
- package/dist/chunks/{plugin-fg9p65nk.js → app-prq7xxp2.js} +6 -6
- package/dist/chunks/{plugin-fgx4vva4.js → app-prwg2e47.js} +4 -4
- package/dist/chunks/{plugin-w634rffz.js → app-psbj456r.js} +11 -11
- package/dist/chunks/{plugin-61a47rr1.js → app-pyz2pf6w.js} +3 -3
- package/dist/chunks/{plugin-q1m0f6c3.js → app-q0ez1hrk.js} +7 -7
- package/dist/chunks/{plugin-6a692jyb.js → app-q391cchf.js} +27 -27
- package/dist/chunks/{plugin-1pbgpcqw.js → app-q7zpym3n.js} +2 -2
- package/dist/chunks/{plugin-36xh6f9c.js → app-q94qz23g.js} +46 -46
- package/dist/chunks/{plugin-skm192qe.js → app-q9csfq1d.js} +9 -9
- package/dist/chunks/{plugin-sbdaa9p8.js → app-q9qzw55y.js} +6 -6
- package/dist/chunks/{plugin-rj7ypc2p.js → app-qczyd0hm.js} +14 -14
- package/dist/chunks/{plugin-08xtkz47.js → app-qfwh95mr.js} +13 -13
- package/dist/chunks/{plugin-wzfa06mn.js → app-qfz6bxfd.js} +4 -4
- package/dist/chunks/{plugin-ysph14gh.js → app-qgk9wbmt.js} +19 -19
- package/dist/chunks/app-qmh7vbk2.js +18 -0
- package/dist/chunks/{plugin-gh3n7sy5.js → app-qnt4ewtn.js} +4 -4
- package/dist/chunks/{plugin-qp7r0hxv.js → app-qp7r0hxv.js} +1 -1
- package/dist/chunks/{plugin-1v8n87jg.js → app-qpe5m7rp.js} +11 -11
- package/dist/chunks/{plugin-qqvy8y24.js → app-qqvy8y24.js} +1 -1
- package/dist/chunks/{plugin-rgnftxgr.js → app-qrkmc1kp.js} +11 -11
- package/dist/chunks/{plugin-xv58zx2g.js → app-r17y8811.js} +36 -36
- package/dist/chunks/{plugin-rmv7fhs4.js → app-r1fnsf7p.js} +6 -6
- package/dist/chunks/{plugin-7ps7a2h1.js → app-r1n0s1ac.js} +16 -16
- package/dist/chunks/{plugin-rb9dy4dg.js → app-rb9dy4dg.js} +1 -1
- package/dist/chunks/{plugin-z0hqw6m5.js → app-rchz5kjx.js} +4 -4
- package/dist/chunks/{plugin-5kfk4j49.js → app-rgzbxrk5.js} +4 -4
- package/dist/chunks/{plugin-4yvj4xjq.js → app-rhg1wx68.js} +27 -27
- package/dist/chunks/{plugin-c5zvymhv.js → app-rj7j5fvs.js} +4 -4
- package/dist/chunks/{plugin-edm37t96.js → app-rnbnz8pk.js} +6 -6
- package/dist/chunks/{plugin-rt5dr6hb.js → app-rt5dr6hb.js} +1 -1
- package/dist/chunks/{plugin-r0x0111z.js → app-rz032gsk.js} +22 -22
- package/dist/chunks/{plugin-9d9b6p64.js → app-s55t9t0j.js} +49 -49
- package/dist/chunks/{plugin-56qbqrx1.js → app-s5hy498g.js} +13 -13
- package/dist/chunks/{plugin-drw40kyn.js → app-s72x33aq.js} +20 -20
- package/dist/chunks/{plugin-atzwqwnx.js → app-s7s2w16j.js} +36 -36
- package/dist/chunks/{plugin-sa3fpqfw.js → app-sa3fpqfw.js} +2 -2
- package/dist/chunks/{plugin-sbya78hr.js → app-sbya78hr.js} +1 -1
- package/dist/chunks/{plugin-504fpne4.js → app-sch7yt7r.js} +19 -19
- package/dist/chunks/{plugin-02ng8mn2.js → app-sgfxw3p2.js} +80 -80
- package/dist/chunks/{plugin-rcea88yy.js → app-sj4xjt7y.js} +24 -24
- package/dist/chunks/{plugin-ccr33psb.js → app-sr8x3p00.js} +20 -20
- package/dist/chunks/{plugin-svcy3p9a.js → app-svcy3p9a.js} +1 -1
- package/dist/chunks/{plugin-96djdqw5.js → app-szwm4crx.js} +4 -4
- package/dist/chunks/{plugin-yf5czeb9.js → app-t0zfenmz.js} +23 -23
- package/dist/chunks/{plugin-dgttzt9v.js → app-t4f7c3ht.js} +18 -18
- package/dist/chunks/{plugin-n4kz79fk.js → app-t7wtafck.js} +13 -13
- package/dist/chunks/{plugin-tczq8hjw.js → app-tczq8hjw.js} +1 -1
- package/dist/chunks/{plugin-ka9p5agb.js → app-tkp5adq0.js} +15 -15
- package/dist/chunks/{plugin-j376ae4e.js → app-tr8x705m.js} +5 -5
- package/dist/chunks/{plugin-01svjha3.js → app-ts7bpkbv.js} +3 -3
- package/dist/chunks/{plugin-twssxy5n.js → app-twssxy5n.js} +2 -2
- package/dist/chunks/{plugin-w79nt68w.js → app-v0t96s7a.js} +4 -4
- package/dist/chunks/{plugin-v2r1d0zg.js → app-v2r1d0zg.js} +1 -1
- package/dist/chunks/{plugin-mrk4w3jx.js → app-v7zvx5ny.js} +49 -37
- package/dist/chunks/{plugin-p7vhpwh8.js → app-v9ez2kgh.js} +5 -5
- package/dist/chunks/{plugin-h0pwkjsk.js → app-vf5rezts.js} +10 -10
- package/dist/chunks/{plugin-vjf35v1f.js → app-vjf35v1f.js} +1 -1
- package/dist/chunks/{plugin-teav1bzy.js → app-vt4r9rmy.js} +9 -9
- package/dist/chunks/{plugin-3mawbxvt.js → app-vyzwj7hv.js} +9 -9
- package/dist/chunks/{plugin-3ny17yye.js → app-w0gbs4kg.js} +29 -29
- package/dist/chunks/{plugin-w3wsvvr9.js → app-w3wsvvr9.js} +1 -1
- package/dist/chunks/{plugin-b6z35kmf.js → app-w687dnns.js} +4 -4
- package/dist/chunks/{plugin-t1e2s6vs.js → app-w6adzdws.js} +83 -83
- package/dist/chunks/{plugin-wakvkjy4.js → app-wakvkjy4.js} +1 -1
- package/dist/chunks/{plugin-qtd6gj7b.js → app-wbqzfeen.js} +17 -17
- package/dist/chunks/{plugin-1z4v3b5m.js → app-wd6ygds7.js} +2 -2
- package/dist/chunks/{plugin-wd87259q.js → app-wd87259q.js} +1 -1
- package/dist/chunks/{plugin-d2dt6bgk.js → app-weahyj5x.js} +5 -5
- package/dist/chunks/{plugin-d5t7af91.js → app-wf5k0dcb.js} +27 -27
- package/dist/chunks/{plugin-8t99kr38.js → app-wfs84ra6.js} +4 -4
- package/dist/chunks/{plugin-xjbsd7zy.js → app-whhbv2ev.js} +9 -9
- package/dist/chunks/{plugin-bkkpnb7q.js → app-whq4nd4h.js} +11 -11
- package/dist/chunks/{plugin-2ept0w77.js → app-wjnwerxx.js} +22 -22
- package/dist/chunks/{plugin-wnhgecwx.js → app-wnhgecwx.js} +1 -1
- package/dist/chunks/{plugin-vv64d4rb.js → app-wq1xd5na.js} +11 -11
- package/dist/chunks/{plugin-wvr8xscb.js → app-wvr8xscb.js} +1 -1
- package/dist/chunks/{plugin-rg4170c0.js → app-wy3njjma.js} +18 -18
- package/dist/chunks/{plugin-xv9paqsr.js → app-wyya4zt2.js} +9 -9
- package/dist/chunks/{plugin-24yxk1vj.js → app-wyzscbnm.js} +5 -5
- package/dist/chunks/{plugin-7w0955b3.js → app-x2eb1s38.js} +16 -16
- package/dist/chunks/{plugin-wgh8jmkg.js → app-x2kh5z67.js} +20 -20
- package/dist/chunks/{plugin-6n3rv08g.js → app-x48k7f96.js} +11 -11
- package/dist/chunks/{plugin-4tzzh3ak.js → app-xavgr0sn.js} +21 -21
- package/dist/chunks/{plugin-1ez7h27k.js → app-xfdj8ybq.js} +32 -32
- package/dist/chunks/{plugin-4rq2pt6y.js → app-xfssnbs4.js} +17 -17
- package/dist/chunks/{plugin-xksw6ev0.js → app-xksw6ev0.js} +1 -1
- package/dist/chunks/{plugin-a07zd1hj.js → app-xrj14re7.js} +8 -8
- package/dist/chunks/{plugin-j9shjdqa.js → app-xznfvz6c.js} +12 -12
- package/dist/chunks/{plugin-517gz7kt.js → app-y3e9w5j4.js} +16 -16
- package/dist/chunks/{plugin-20t9t4ks.js → app-y5x79gp6.js} +5 -5
- package/dist/chunks/{plugin-xfhmp08x.js → app-y70svyf1.js} +22 -22
- package/dist/chunks/{plugin-8rappqr0.js → app-y9dbkkt2.js} +29 -29
- package/dist/chunks/{plugin-yb20nhc3.js → app-yb20nhc3.js} +1 -1
- package/dist/chunks/{plugin-5e07pmtn.js → app-ydejkx0z.js} +4 -4
- package/dist/chunks/{plugin-mqanfb8j.js → app-yef98r2t.js} +3 -3
- package/dist/chunks/{plugin-wtheay7g.js → app-yq2mt5qr.js} +3 -3
- package/dist/chunks/{plugin-ky596kc3.js → app-yqveydy6.js} +4 -4
- package/dist/chunks/{plugin-yr705xyq.js → app-yr705xyq.js} +1 -1
- package/dist/chunks/{plugin-y3p3hzkr.js → app-ysampvvb.js} +5 -5
- package/dist/chunks/{plugin-yvtc2x31.js → app-yvtc2x31.js} +1 -1
- package/dist/chunks/{plugin-sf9y72b7.js → app-z080rjh6.js} +4 -4
- package/dist/chunks/{plugin-xjyfcqfe.js → app-z4sah7cn.js} +12 -12
- package/dist/chunks/{plugin-mt6gec7v.js → app-z7a53n6z.js} +6 -6
- package/dist/chunks/{plugin-ze75qvmd.js → app-ze75qvmd.js} +3 -3
- package/dist/chunks/{plugin-dbq0azap.js → app-zkket41r.js} +24 -24
- package/dist/chunks/{plugin-kmnzj81a.js → app-zvg8q0fs.js} +3 -3
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +145 -145
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +151 -151
- package/dist/command.js +96 -96
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +112 -112
- package/dist/config/plugin/agent.js +130 -130
- package/dist/config/plugin/command.js +230 -229
- package/dist/config/plugin/compaction.js +171 -171
- package/dist/config/plugin/compatibility.js +150 -150
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +131 -131
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +130 -130
- package/dist/config/plugin/location-watcher.js +132 -132
- package/dist/config/plugin/mcp.js +138 -137
- package/dist/config/plugin/policy.js +130 -130
- package/dist/config/plugin/provider.js +130 -130
- package/dist/config/plugin/reference.js +132 -132
- package/dist/config/plugin/shell.js +130 -130
- package/dist/config/plugin/skill-file.js +146 -146
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +151 -151
- package/dist/config/plugin/snapshot.js +130 -130
- package/dist/config/plugin/source.js +133 -133
- package/dist/config/plugin/tool-output.js +131 -131
- package/dist/config/plugin/websearch.js +129 -129
- package/dist/config/plugin/worktree.js +132 -132
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +135 -135
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +90 -90
- package/dist/database/database.js +77 -77
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +62 -62
- 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/v1-migration.bun.js +98 -98
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +431 -430
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +106 -106
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +106 -106
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +81 -81
- package/dist/file-access.js +152 -152
- package/dist/file-mutation.js +107 -107
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +246 -245
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +110 -110
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +117 -117
- package/dist/form.js +91 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +118 -118
- package/dist/git.js +7 -7
- 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 +104 -104
- 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/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +422 -421
- package/dist/instruction-discovery.js +97 -97
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +92 -92
- package/dist/job/sql.js +2 -2
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +176 -176
- package/dist/location-lifecycle.js +150 -150
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +419 -418
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +104 -104
- package/dist/mcp/connection.js +110 -0
- package/dist/mcp/index.js +121 -120
- package/dist/mcp/instructions.js +182 -181
- package/dist/mcp/oauth.js +86 -86
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +103 -103
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +104 -104
- package/dist/model-resolver.js +112 -112
- package/dist/model-retry.js +1 -1
- package/dist/model.js +107 -107
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +113 -113
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +93 -93
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +153 -153
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +97 -97
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +85 -85
- package/dist/plugin/command.js +112 -111
- package/dist/plugin/goal.js +1 -1
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +237 -236
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +398 -397
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +110 -110
- package/dist/plugin/module.js +129 -129
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +146 -146
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +104 -104
- package/dist/plugin/provider/azure.js +132 -132
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +130 -130
- package/dist/plugin/provider/claude-agent/aisdk.js +115 -115
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +145 -145
- package/dist/plugin/provider/claude-agent/instructions.js +112 -112
- package/dist/plugin/provider/claude-agent/integration.js +113 -113
- 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 +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- 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 +108 -108
- package/dist/plugin/provider/claude-agent/session.js +110 -110
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +128 -128
- package/dist/plugin/provider/cloudflare-workers-ai.js +128 -128
- package/dist/plugin/provider/configured.js +126 -126
- package/dist/plugin/provider/credential-settings.js +85 -85
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +108 -108
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +110 -110
- package/dist/plugin/provider/gitlab.js +107 -107
- package/dist/plugin/provider/google-vertex.js +127 -127
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +139 -139
- package/dist/plugin/provider/local.js +136 -136
- package/dist/plugin/provider/modal.js +107 -107
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +139 -139
- package/dist/plugin/provider/openai-context-caps.js +103 -103
- package/dist/plugin/provider/openai.js +132 -132
- package/dist/plugin/provider/opencode.js +155 -155
- package/dist/plugin/provider/openrouter.js +104 -104
- package/dist/plugin/provider/poe.js +90 -90
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +87 -87
- package/dist/plugin/provider/sap-ai-core.js +104 -104
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +129 -129
- package/dist/plugin/provider/vllm.js +139 -139
- package/dist/plugin/provider/xai.js +104 -104
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +234 -234
- package/dist/plugin/sdk.js +85 -85
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +145 -145
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +408 -407
- package/dist/plugin/tool-input-repair.js +2 -2
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +106 -106
- package/dist/plugin/warming.js +130 -130
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- 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 +248 -247
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -93
- package/dist/provider.js +106 -106
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +101 -101
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +108 -108
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +242 -241
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +246 -245
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +129 -129
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +173 -173
- package/dist/session/context.js +199 -198
- package/dist/session/diff.js +101 -101
- 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 +240 -239
- package/dist/session/execution.js +163 -163
- package/dist/session/generate.js +201 -200
- package/dist/session/history.js +136 -136
- package/dist/session/inbox.js +143 -143
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +86 -86
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +137 -137
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +168 -168
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +165 -165
- package/dist/session/projector.js +143 -143
- package/dist/session/prompt.js +148 -148
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +139 -139
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +251 -250
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +113 -113
- package/dist/session/runner/publish-llm-event.js +149 -149
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +163 -163
- package/dist/session/runner/to-llm-message.js +137 -137
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +181 -181
- package/dist/session/shell.js +144 -144
- package/dist/session/skill.js +147 -147
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +84 -84
- package/dist/session/store.js +142 -142
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +230 -229
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +203 -202
- package/dist/session/to-session-error.js +148 -148
- package/dist/session/transfer.js +234 -233
- package/dist/session/usage.js +1 -1
- package/dist/session.js +236 -235
- package/dist/shared-cache.js +5 -5
- 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 +146 -146
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +149 -149
- package/dist/skill.js +156 -156
- package/dist/snapshot.js +106 -106
- 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 +179 -178
- package/dist/tool/plugin/artifact.js +227 -226
- package/dist/tool/plugin/edit.js +164 -164
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +168 -168
- package/dist/tool/plugin/grep.js +168 -168
- package/dist/tool/plugin/image-generate.js +240 -239
- package/dist/tool/plugin/mcp-resource.js +163 -162
- package/dist/tool/plugin/opencode.js +161 -161
- package/dist/tool/plugin/patch.js +164 -164
- package/dist/tool/plugin/question.js +146 -146
- package/dist/tool/plugin/read.js +171 -171
- package/dist/tool/plugin/schedule.js +248 -247
- package/dist/tool/plugin/shell.js +234 -233
- package/dist/tool/plugin/skill.js +145 -145
- package/dist/tool/plugin/subagent.js +237 -236
- package/dist/tool/plugin/todo.js +153 -153
- package/dist/tool/plugin/webfetch.js +155 -155
- package/dist/tool/plugin/websearch.js +153 -153
- package/dist/tool/plugin/write.js +166 -166
- package/dist/tool/read-filesystem.js +115 -115
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +161 -161
- package/dist/types/mcp/connection.d.ts +75 -0
- package/dist/types/mcp/index.d.ts +3 -3
- package/dist/usage-limits.js +100 -100
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +105 -105
- 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/variant.js +104 -104
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +99 -99
- package/dist/websearch.js +101 -101
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +92 -92
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +113 -113
- package/package.json +8 -8
- package/dist/chunks/plugin-4m6g1g4q.js +0 -16
- package/dist/chunks/plugin-7yv5xa0k.js +0 -18
- package/dist/chunks/plugin-vfb1yg8m.js +0 -26
- /package/dist/chunks/{plugin-0qkdqm5v.js → app-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{plugin-0zkw76rk.js → app-0zkw76rk.js} +0 -0
- /package/dist/chunks/{plugin-17cy0kzp.js → app-17cy0kzp.js} +0 -0
- /package/dist/chunks/{plugin-1cnp2v09.js → app-1cnp2v09.js} +0 -0
- /package/dist/chunks/{plugin-1kah00gy.js → app-1kah00gy.js} +0 -0
- /package/dist/chunks/{plugin-1pevy3nx.js → app-1pevy3nx.js} +0 -0
- /package/dist/chunks/{plugin-24dcb14g.js → app-24dcb14g.js} +0 -0
- /package/dist/chunks/{plugin-2710q6r3.js → app-2710q6r3.js} +0 -0
- /package/dist/chunks/{plugin-2bv980vf.js → app-2bv980vf.js} +0 -0
- /package/dist/chunks/{plugin-2c3vjs8z.js → app-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{plugin-359p4xyc.js → app-359p4xyc.js} +0 -0
- /package/dist/chunks/{plugin-3asan66x.js → app-3asan66x.js} +0 -0
- /package/dist/chunks/{plugin-3v8g72cx.js → app-3v8g72cx.js} +0 -0
- /package/dist/chunks/{plugin-3wcehsnq.js → app-3wcehsnq.js} +0 -0
- /package/dist/chunks/{plugin-43n2bw4t.js → app-43n2bw4t.js} +0 -0
- /package/dist/chunks/{plugin-4knz6hnm.js → app-4knz6hnm.js} +0 -0
- /package/dist/chunks/{plugin-4qk9sjk2.js → app-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{plugin-4vcrnpx2.js → app-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{plugin-4y7fprxs.js → app-4y7fprxs.js} +0 -0
- /package/dist/chunks/{plugin-53557ph1.js → app-53557ph1.js} +0 -0
- /package/dist/chunks/{plugin-550bvhaj.js → app-550bvhaj.js} +0 -0
- /package/dist/chunks/{plugin-5w3e23ze.js → app-5w3e23ze.js} +0 -0
- /package/dist/chunks/{plugin-6agm2x70.js → app-6agm2x70.js} +0 -0
- /package/dist/chunks/{plugin-6prwharc.js → app-6prwharc.js} +0 -0
- /package/dist/chunks/{plugin-6q2bdcd1.js → app-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{plugin-7akdwqpd.js → app-7akdwqpd.js} +0 -0
- /package/dist/chunks/{plugin-7m9af43g.js → app-7m9af43g.js} +0 -0
- /package/dist/chunks/{plugin-822emrt2.js → app-822emrt2.js} +0 -0
- /package/dist/chunks/{plugin-84wd9syh.js → app-84wd9syh.js} +0 -0
- /package/dist/chunks/{plugin-88xbtdfr.js → app-88xbtdfr.js} +0 -0
- /package/dist/chunks/{plugin-8n3pysct.js → app-8n3pysct.js} +0 -0
- /package/dist/chunks/{plugin-8wj87zfr.js → app-8wj87zfr.js} +0 -0
- /package/dist/chunks/{plugin-9a4afbnw.js → app-9a4afbnw.js} +0 -0
- /package/dist/chunks/{plugin-9rqn6x4v.js → app-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{plugin-a6k6eb26.js → app-a6k6eb26.js} +0 -0
- /package/dist/chunks/{plugin-af5trqkr.js → app-af5trqkr.js} +0 -0
- /package/dist/chunks/{plugin-afrmfg78.js → app-afrmfg78.js} +0 -0
- /package/dist/chunks/{plugin-aqzs7mqg.js → app-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{plugin-atq7p7m5.js → app-atq7p7m5.js} +0 -0
- /package/dist/chunks/{plugin-beh6qq61.js → app-beh6qq61.js} +0 -0
- /package/dist/chunks/{plugin-bkyjaxrp.js → app-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{plugin-bmr6ed5q.js → app-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{plugin-cf4snx6d.js → app-cf4snx6d.js} +0 -0
- /package/dist/chunks/{plugin-cqv5kn06.js → app-cqv5kn06.js} +0 -0
- /package/dist/chunks/{plugin-cvy3z8tj.js → app-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{plugin-d9fn303g.js → app-d9fn303g.js} +0 -0
- /package/dist/chunks/{plugin-d9jj8t3e.js → app-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{plugin-dap0rakb.js → app-dap0rakb.js} +0 -0
- /package/dist/chunks/{plugin-dbht28n9.js → app-dbht28n9.js} +0 -0
- /package/dist/chunks/{plugin-df08tz66.js → app-df08tz66.js} +0 -0
- /package/dist/chunks/{plugin-dy18nga0.js → app-dy18nga0.js} +0 -0
- /package/dist/chunks/{plugin-e5kj55wp.js → app-e5kj55wp.js} +0 -0
- /package/dist/chunks/{plugin-e73j6tqm.js → app-e73j6tqm.js} +0 -0
- /package/dist/chunks/{plugin-ean2d8b5.js → app-ean2d8b5.js} +0 -0
- /package/dist/chunks/{plugin-ec1grn59.js → app-ec1grn59.js} +0 -0
- /package/dist/chunks/{plugin-eh3zwz77.js → app-eh3zwz77.js} +0 -0
- /package/dist/chunks/{plugin-emrn6kk6.js → app-emrn6kk6.js} +0 -0
- /package/dist/chunks/{plugin-f0mxakyp.js → app-f0mxakyp.js} +0 -0
- /package/dist/chunks/{plugin-f6n9ztr4.js → app-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{plugin-faypxj3z.js → app-faypxj3z.js} +0 -0
- /package/dist/chunks/{plugin-fd410y7t.js → app-fd410y7t.js} +0 -0
- /package/dist/chunks/{plugin-fkpq3x5p.js → app-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{plugin-g4wezp1m.js → app-g4wezp1m.js} +0 -0
- /package/dist/chunks/{plugin-g86h250q.js → app-g86h250q.js} +0 -0
- /package/dist/chunks/{plugin-gebd4c9n.js → app-gebd4c9n.js} +0 -0
- /package/dist/chunks/{plugin-gftt206x.js → app-gftt206x.js} +0 -0
- /package/dist/chunks/{plugin-hcxmzztb.js → app-hcxmzztb.js} +0 -0
- /package/dist/chunks/{plugin-hk9envan.js → app-hk9envan.js} +0 -0
- /package/dist/chunks/{plugin-j2ntwpah.js → app-j2ntwpah.js} +0 -0
- /package/dist/chunks/{plugin-j5zkgpj8.js → app-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{plugin-jjkms2e6.js → app-jjkms2e6.js} +0 -0
- /package/dist/chunks/{plugin-jr7sbwjy.js → app-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{plugin-jwfs4k6c.js → app-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{plugin-jwr30sdr.js → app-jwr30sdr.js} +0 -0
- /package/dist/chunks/{plugin-jzg6c2d5.js → app-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{plugin-m18g726c.js → app-m18g726c.js} +0 -0
- /package/dist/chunks/{plugin-mp448xyj.js → app-mp448xyj.js} +0 -0
- /package/dist/chunks/{plugin-msx8hqn2.js → app-msx8hqn2.js} +0 -0
- /package/dist/chunks/{plugin-n05xt0ee.js → app-n05xt0ee.js} +0 -0
- /package/dist/chunks/{plugin-n3j8tn72.js → app-n3j8tn72.js} +0 -0
- /package/dist/chunks/{plugin-nh4v3znn.js → app-nh4v3znn.js} +0 -0
- /package/dist/chunks/{plugin-njntx4h6.js → app-njntx4h6.js} +0 -0
- /package/dist/chunks/{plugin-p71gwv9c.js → app-p71gwv9c.js} +0 -0
- /package/dist/chunks/{plugin-q3sfg36h.js → app-q3sfg36h.js} +0 -0
- /package/dist/chunks/{plugin-q74kybfr.js → app-q74kybfr.js} +0 -0
- /package/dist/chunks/{plugin-qaymkmh1.js → app-qaymkmh1.js} +0 -0
- /package/dist/chunks/{plugin-qb87gjwd.js → app-qb87gjwd.js} +0 -0
- /package/dist/chunks/{plugin-qfa1cgps.js → app-qfa1cgps.js} +0 -0
- /package/dist/chunks/{plugin-qg3g05ea.js → app-qg3g05ea.js} +0 -0
- /package/dist/chunks/{plugin-qrg20bc0.js → app-qrg20bc0.js} +0 -0
- /package/dist/chunks/{plugin-rcb2kzg1.js → app-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{plugin-sdp7kfr6.js → app-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{plugin-ssg3fenm.js → app-ssg3fenm.js} +0 -0
- /package/dist/chunks/{plugin-syrav9an.js → app-syrav9an.js} +0 -0
- /package/dist/chunks/{plugin-t03h4f5z.js → app-t03h4f5z.js} +0 -0
- /package/dist/chunks/{plugin-ty7weeps.js → app-ty7weeps.js} +0 -0
- /package/dist/chunks/{plugin-ve7vex1e.js → app-ve7vex1e.js} +0 -0
- /package/dist/chunks/{plugin-vtarvj67.js → app-vtarvj67.js} +0 -0
- /package/dist/chunks/{plugin-w803qqfp.js → app-w803qqfp.js} +0 -0
- /package/dist/chunks/{plugin-wc3fc9cn.js → app-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{plugin-wer8tq1h.js → app-wer8tq1h.js} +0 -0
- /package/dist/chunks/{plugin-wtztk69x.js → app-wtztk69x.js} +0 -0
- /package/dist/chunks/{plugin-x0ckcb58.js → app-x0ckcb58.js} +0 -0
- /package/dist/chunks/{plugin-x61499pn.js → app-x61499pn.js} +0 -0
- /package/dist/chunks/{plugin-y44na4kk.js → app-y44na4kk.js} +0 -0
- /package/dist/chunks/{plugin-y8f7s663.js → app-y8f7s663.js} +0 -0
- /package/dist/chunks/{plugin-ygaqb7jw.js → app-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{plugin-z5v4ffb3.js → app-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{plugin-z9919s4g.js → app-z9919s4g.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./app-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service90,
|
|
6
6
|
node93
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./app-n4k1ey5b.js";
|
|
8
8
|
import {
|
|
9
9
|
Service89,
|
|
10
10
|
node92
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./app-82fxv0dw.js";
|
|
12
12
|
import {
|
|
13
13
|
Service88,
|
|
14
14
|
node91
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./app-wyzscbnm.js";
|
|
16
16
|
import {
|
|
17
17
|
ID22,
|
|
18
18
|
Current3,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
UpdateInput5,
|
|
21
21
|
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./app-kp2338hr.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./app-aj7mw0zk.js";
|
|
28
28
|
import {
|
|
29
29
|
refresh2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./app-7qrph824.js";
|
|
31
31
|
import {
|
|
32
32
|
WorktreeTable2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./app-3cbjf1nt.js";
|
|
34
34
|
import {
|
|
35
35
|
__export
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./app-9rqn6x4v.js";
|
|
37
37
|
|
|
38
38
|
// src/project.ts
|
|
39
39
|
var exports_project = {};
|
|
@@ -1,80 +1,70 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./app-8cg7mtm3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service89,
|
|
6
6
|
node92
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./app-82fxv0dw.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
Event20,
|
|
10
10
|
Service84,
|
|
11
11
|
node87
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./app-k8bdr0d0.js";
|
|
13
13
|
import {
|
|
14
14
|
Service86,
|
|
15
15
|
node89
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./app-k483zyxw.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service62,
|
|
19
|
+
node63
|
|
20
|
+
} from "./app-9hqxgecf.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID19,
|
|
23
|
+
Service83,
|
|
24
|
+
node86
|
|
25
|
+
} from "./app-x2kh5z67.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create4
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./app-40y6dtc2.js";
|
|
30
30
|
import {
|
|
31
31
|
ID18,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
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
|
-
} from "./
|
|
41
|
+
} from "./app-9rqn6x4v.js";
|
|
39
42
|
|
|
40
43
|
// src/mcp/index.ts
|
|
41
44
|
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 layer13 = (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 layer13 = (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 layer13 = (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(Service59, 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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 layer13 = (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 };
|