@opencode/core 0.0.0-dev-329 → 0.0.0-dev-338
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 +93 -93
- package/dist/aisdk-native.js +101 -101
- package/dist/aisdk.js +107 -107
- package/dist/app.js +9 -9
- package/dist/bus.js +83 -83
- package/dist/chunks/{websearch-16jyx16v.js → schema-00csjphn.js} +35 -35
- package/dist/chunks/{websearch-hvthv3an.js → schema-01kh9xtm.js} +14 -14
- package/dist/chunks/{websearch-49xmed9t.js → schema-02ye6z51.js} +15 -15
- package/dist/chunks/{websearch-034tev2y.js → schema-034tev2y.js} +2 -2
- package/dist/chunks/{websearch-q1gdkkzj.js → schema-04rctafp.js} +46 -46
- package/dist/chunks/{websearch-fcy5scan.js → schema-099yywvh.js} +34 -34
- package/dist/chunks/{websearch-805824s0.js → schema-0d2vjrpp.js} +8 -8
- package/dist/chunks/{websearch-xpvy2n9z.js → schema-0dhx3ykd.js} +58 -58
- package/dist/chunks/{websearch-601vjtp6.js → schema-0grvd95t.js} +31 -31
- package/dist/chunks/{websearch-1sqct66f.js → schema-0hbtj59d.js} +16 -16
- package/dist/chunks/{websearch-8bt39hgz.js → schema-0hvn3y38.js} +19 -19
- package/dist/chunks/{websearch-0j7gp832.js → schema-0j7gp832.js} +1 -1
- package/dist/chunks/{websearch-b394e4sz.js → schema-0ncehkqy.js} +92 -92
- package/dist/chunks/{websearch-r2jew814.js → schema-0nde5ztd.js} +5 -5
- package/dist/chunks/{websearch-afwz5ca7.js → schema-0qqqxr5x.js} +27 -27
- package/dist/chunks/{websearch-mnapyyeq.js → schema-0t5h2k0v.js} +9 -9
- package/dist/chunks/{websearch-mnnh7rc9.js → schema-0w807sat.js} +9 -9
- package/dist/chunks/{websearch-gynv5cx7.js → schema-12yz1921.js} +3 -3
- package/dist/chunks/{websearch-c00n6d2r.js → schema-1ad21j16.js} +8 -8
- package/dist/chunks/{websearch-1aqsckx4.js → schema-1aqsckx4.js} +1 -1
- package/dist/chunks/{websearch-1ep2p91f.js → schema-1ep2p91f.js} +2 -2
- package/dist/chunks/{websearch-6te9kxba.js → schema-1g2qd3p6.js} +12 -12
- package/dist/chunks/{websearch-1haf6n7w.js → schema-1gdnxn8q.js} +29 -29
- package/dist/chunks/{websearch-kvvgry96.js → schema-1p3hqer1.js} +12 -12
- package/dist/chunks/{websearch-kxrajph7.js → schema-1qc5n05d.js} +10 -10
- package/dist/chunks/{websearch-anjzen6g.js → schema-1ry6nyrb.js} +88 -88
- package/dist/chunks/{websearch-8rd378aw.js → schema-1wrrsbc4.js} +12 -12
- package/dist/chunks/{websearch-z8ctesq9.js → schema-1wtf8ad7.js} +19 -19
- package/dist/chunks/{websearch-1x2knyw4.js → schema-1x2knyw4.js} +1 -1
- package/dist/chunks/{websearch-pxv94apm.js → schema-1x5s0zfr.js} +25 -25
- package/dist/chunks/{websearch-5zrxpy3q.js → schema-1yq9hg58.js} +5 -5
- package/dist/chunks/{websearch-wf9zfwe6.js → schema-1z5f493n.js} +5 -5
- package/dist/chunks/{websearch-204s3925.js → schema-204s3925.js} +1 -1
- package/dist/chunks/{websearch-k30agw6x.js → schema-25jw3g4f.js} +10 -10
- package/dist/chunks/{websearch-nrtygxmh.js → schema-26x8chrq.js} +3 -3
- package/dist/chunks/{websearch-gda836e9.js → schema-2gk2y1j8.js} +12 -12
- package/dist/chunks/{websearch-3dgyr4ab.js → schema-2j84ncef.js} +21 -21
- package/dist/chunks/{websearch-w49gf5e8.js → schema-2v186e1s.js} +34 -34
- package/dist/chunks/{websearch-6pf8eqtx.js → schema-2vahexqr.js} +18 -18
- package/dist/chunks/{websearch-4gp4a51g.js → schema-33qkep72.js} +8 -8
- package/dist/chunks/{websearch-8mdse5a9.js → schema-36r31j1y.js} +17 -17
- package/dist/chunks/{websearch-dmp7nhr3.js → schema-3756z231.js} +45 -45
- package/dist/chunks/{websearch-ha7h766f.js → schema-375j4a5k.js} +27 -27
- package/dist/chunks/{websearch-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{websearch-5k5xv22h.js → schema-3hn5rpb1.js} +22 -22
- package/dist/chunks/{websearch-8r4pvnw6.js → schema-3mhkvgqt.js} +23 -23
- package/dist/chunks/{websearch-j8ry5sc9.js → schema-3qb4h4tp.js} +2 -2
- package/dist/chunks/{websearch-qh2mmm7f.js → schema-3vf3ny91.js} +11 -11
- package/dist/chunks/{websearch-yf89mf0m.js → schema-3w7mkftw.js} +20 -20
- package/dist/chunks/{websearch-40za9wsf.js → schema-40za9wsf.js} +2 -2
- package/dist/chunks/{websearch-agqd6nxz.js → schema-4a2b0ssv.js} +2 -2
- package/dist/chunks/{websearch-xbav9adg.js → schema-4c49gk8m.js} +5 -5
- package/dist/chunks/{websearch-4dx1dgte.js → schema-4dx1dgte.js} +1 -1
- package/dist/chunks/{websearch-rxqyg3qh.js → schema-4f5xwjpe.js} +13 -13
- package/dist/chunks/{websearch-4pyp9zr9.js → schema-4pyp9zr9.js} +1 -1
- package/dist/chunks/{websearch-4v008n1t.js → schema-4v008n1t.js} +1 -1
- package/dist/chunks/{websearch-3wke5hmt.js → schema-4zsvjwk5.js} +11 -11
- package/dist/chunks/{websearch-8tbnpqt6.js → schema-54whx9vj.js} +21 -21
- package/dist/chunks/{websearch-ayazxppv.js → schema-578cqfvw.js} +3 -3
- package/dist/chunks/{websearch-evtwgc13.js → schema-57h12rnx.js} +3 -3
- package/dist/chunks/{websearch-k9xqezxa.js → schema-5c0rjt9e.js} +34 -34
- package/dist/chunks/{websearch-hctaejxs.js → schema-5jzshcv3.js} +21 -21
- package/dist/chunks/{websearch-5m9w47nd.js → schema-5m9w47nd.js} +1 -1
- package/dist/chunks/{websearch-5nnwax6m.js → schema-5nnwax6m.js} +2 -2
- package/dist/chunks/{websearch-6hmgmx3v.js → schema-655tpehd.js} +34 -34
- package/dist/chunks/{websearch-cg7m4wmk.js → schema-68mpvj42.js} +9 -9
- package/dist/chunks/{websearch-qzmk9h6g.js → schema-6a8reyab.js} +12 -12
- package/dist/chunks/{websearch-6esdw8yj.js → schema-6esdw8yj.js} +1 -1
- package/dist/chunks/{websearch-xzwjndvp.js → schema-6sqa993f.js} +9 -9
- package/dist/chunks/{websearch-zbbm2e96.js → schema-6srxf2b1.js} +5 -5
- package/dist/chunks/{websearch-zv5zc9gt.js → schema-6wyy0pz9.js} +39 -39
- package/dist/chunks/{websearch-ja63h2sr.js → schema-6y263vp8.js} +5 -5
- package/dist/chunks/{websearch-01xb69ev.js → schema-6zw0fw57.js} +3 -3
- package/dist/chunks/{websearch-a5sej8qd.js → schema-71gmpxhv.js} +40 -40
- package/dist/chunks/{websearch-w8qtt4th.js → schema-76cb1hcw.js} +4 -4
- package/dist/chunks/{websearch-67zhfnr5.js → schema-78p2h4ex.js} +5 -5
- package/dist/chunks/{websearch-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{websearch-8cpz5p5s.js → schema-7brnv8w0.js} +21 -21
- package/dist/chunks/{websearch-60qgg6x4.js → schema-7fff45pw.js} +10 -10
- package/dist/chunks/{websearch-b4dtgbj0.js → schema-7h768wt6.js} +18 -18
- package/dist/chunks/{websearch-y4da5gg3.js → schema-7jw3x0rm.js} +20 -20
- package/dist/chunks/{websearch-7kr66rt3.js → schema-7kr66rt3.js} +1 -1
- package/dist/chunks/schema-7mzbv8bq.js +26 -0
- package/dist/chunks/{websearch-yy556f5x.js → schema-7n0jac0z.js} +6 -6
- package/dist/chunks/{websearch-12xf7z1p.js → schema-7rvjhzv0.js} +29 -29
- package/dist/chunks/{websearch-7w2ypzdf.js → schema-7w2ypzdf.js} +1 -1
- package/dist/chunks/{websearch-557537gg.js → schema-7wfak81m.js} +6 -6
- package/dist/chunks/{websearch-ntn1kyat.js → schema-7znc2ak6.js} +12 -12
- package/dist/chunks/{websearch-8b3vzgkx.js → schema-8b3vzgkx.js} +1 -1
- package/dist/chunks/{websearch-7ftfgktx.js → schema-8b69v1a7.js} +23 -23
- package/dist/chunks/{websearch-122fevtz.js → schema-8jhdp17k.js} +31 -31
- package/dist/chunks/{websearch-a7acfpr0.js → schema-8m7jngp7.js} +22 -22
- package/dist/chunks/{websearch-8wtp7s3z.js → schema-8wtp7s3z.js} +1 -1
- package/dist/chunks/{websearch-90zstvax.js → schema-90zstvax.js} +1 -1
- package/dist/chunks/{websearch-33k02yxh.js → schema-9bnx8v1s.js} +41 -41
- package/dist/chunks/{websearch-xntjjzbv.js → schema-9vnf221r.js} +29 -29
- package/dist/chunks/{websearch-cm79raxa.js → schema-9y5j7mew.js} +8 -8
- package/dist/chunks/{websearch-9z9tayqc.js → schema-9z9tayqc.js} +2 -2
- package/dist/chunks/{websearch-v3xbvhj5.js → schema-a6vzdybk.js} +25 -25
- package/dist/chunks/{websearch-4n3gwhnp.js → schema-aa5xtxj2.js} +16 -16
- package/dist/chunks/{websearch-vgjkn7gb.js → schema-afzqdm25.js} +27 -27
- package/dist/chunks/{websearch-0rgnf04f.js → schema-asjdf3ky.js} +4 -4
- package/dist/chunks/{websearch-sem18y2v.js → schema-asp0rn3b.js} +28 -28
- package/dist/chunks/{websearch-ayjs7tqn.js → schema-ayjs7tqn.js} +2 -2
- package/dist/chunks/{websearch-y13v0twb.js → schema-b0951d1j.js} +4 -4
- package/dist/chunks/{websearch-d529wksv.js → schema-b1k617ee.js} +21 -21
- package/dist/chunks/schema-b2ekajyb.js +257 -0
- package/dist/chunks/{websearch-jv00a4x0.js → schema-b491pjm5.js} +24 -24
- package/dist/chunks/{websearch-h5f52kj0.js → schema-b59atwxm.js} +4 -4
- package/dist/chunks/{websearch-cak2hj2r.js → schema-bam9qj5c.js} +7 -7
- package/dist/chunks/{websearch-bstexjd6.js → schema-bstexjd6.js} +1 -1
- package/dist/chunks/{websearch-3ryz99p0.js → schema-c6x7d2ts.js} +4 -4
- package/dist/chunks/{websearch-gt9mjs97.js → schema-cmhv6pag.js} +11 -11
- package/dist/chunks/{websearch-cwrgdav8.js → schema-cwrgdav8.js} +2 -2
- package/dist/chunks/{websearch-d4v9tmah.js → schema-d4v9tmah.js} +2 -2
- package/dist/chunks/{websearch-cg0asdpn.js → schema-d56bmmma.js} +28 -28
- package/dist/chunks/{websearch-fj4pg97n.js → schema-dbavz9kp.js} +15 -15
- package/dist/chunks/{websearch-8kx0fqtv.js → schema-dezsc65w.js} +20 -20
- package/dist/chunks/{websearch-ew7k5fkp.js → schema-djm830jq.js} +4 -4
- package/dist/chunks/{websearch-wvq4p2vf.js → schema-djs3dngg.js} +11 -11
- package/dist/chunks/{websearch-2yspc50g.js → schema-drfa0kca.js} +3 -3
- package/dist/chunks/{websearch-dt77769w.js → schema-dt77769w.js} +1 -1
- package/dist/chunks/{websearch-4tcdce07.js → schema-dxf17875.js} +9 -9
- package/dist/chunks/{websearch-547arde1.js → schema-dy8ej2a0.js} +20 -20
- package/dist/chunks/{websearch-bkpt1p78.js → schema-e00yb6hn.js} +7 -7
- package/dist/chunks/{websearch-s0s8b06r.js → schema-e5awnnxc.js} +27 -27
- package/dist/chunks/{websearch-e834z07m.js → schema-e834z07m.js} +1 -1
- package/dist/chunks/{websearch-egqmg6zc.js → schema-e85a669x.js} +12 -12
- package/dist/chunks/{websearch-mk1833rf.js → schema-e89v3s2x.js} +5 -5
- package/dist/chunks/{websearch-0msqabxb.js → schema-ecd2v7nh.js} +5 -5
- package/dist/chunks/{websearch-5sev5bhn.js → schema-efnt7zk1.js} +32 -32
- package/dist/chunks/{websearch-799bn6sb.js → schema-egd6pm3f.js} +33 -33
- package/dist/chunks/{websearch-mvkxka7a.js → schema-ehgd54p9.js} +18 -18
- package/dist/chunks/{websearch-5bmv79gs.js → schema-emvnqz9f.js} +11 -11
- package/dist/chunks/{websearch-axsvjzs7.js → schema-esk39185.js} +6 -6
- package/dist/chunks/{websearch-m37sd98t.js → schema-eybj1wgy.js} +4 -4
- package/dist/chunks/{websearch-6mbr58x5.js → schema-ezqsy8gy.js} +29 -29
- package/dist/chunks/{websearch-mctmh0ex.js → schema-ezw7t4kx.js} +9 -9
- package/dist/chunks/{websearch-jpb38nt4.js → schema-f3ad9cbx.js} +43 -43
- package/dist/chunks/{websearch-0bbqvs7k.js → schema-faaeq40t.js} +6 -6
- package/dist/chunks/{websearch-v6e9b7k7.js → schema-fbgyyhht.js} +28 -28
- package/dist/chunks/{websearch-fffv3p7h.js → schema-fffv3p7h.js} +1 -1
- package/dist/chunks/{websearch-prq7xxp2.js → schema-fg9p65nk.js} +6 -6
- package/dist/chunks/{websearch-bze7nnp8.js → schema-fn61dekp.js} +5 -5
- package/dist/chunks/{websearch-wem7v335.js → schema-fq1fyy34.js} +48 -48
- package/dist/chunks/{websearch-r408tz4r.js → schema-fs1j62r4.js} +11 -11
- package/dist/chunks/{websearch-4zs95934.js → schema-fxyd2t29.js} +12 -12
- package/dist/chunks/{websearch-zfyb5tr4.js → schema-g1e2r5aa.js} +4 -4
- package/dist/chunks/{websearch-n5da3r9v.js → schema-g1mvyxge.js} +11 -11
- package/dist/chunks/{websearch-3qvqwrqv.js → schema-g4te2x2h.js} +31 -31
- package/dist/chunks/{websearch-afky2m1r.js → schema-gcbf8e2a.js} +11 -11
- package/dist/chunks/{websearch-eahpwh8e.js → schema-gcye4jv7.js} +4 -4
- package/dist/chunks/{websearch-4ajbjkvh.js → schema-gm428j6c.js} +35 -35
- package/dist/chunks/{websearch-350e7jny.js → schema-gv5m31y1.js} +8 -5
- package/dist/chunks/{websearch-kcg78dnn.js → schema-hdfrs5mg.js} +7 -7
- package/dist/chunks/{websearch-js8kstzt.js → schema-hek2y864.js} +9 -9
- package/dist/chunks/{websearch-hh7kjqtw.js → schema-hh7kjqtw.js} +1 -1
- package/dist/chunks/{websearch-hpg1pkwy.js → schema-hpg1pkwy.js} +1 -1
- package/dist/chunks/{websearch-2112fxgf.js → schema-hptmg8g9.js} +17 -17
- package/dist/chunks/{websearch-18pwxxmr.js → schema-hq6dxpfa.js} +25 -25
- package/dist/chunks/{websearch-hqxkkta1.js → schema-hqxkkta1.js} +1 -1
- package/dist/chunks/{websearch-ztfj0krh.js → schema-hscrayt9.js} +42 -42
- package/dist/chunks/{websearch-tmdtawbd.js → schema-j0dybgn2.js} +32 -32
- package/dist/chunks/{websearch-n7bnkb3p.js → schema-jcqm84fr.js} +9 -9
- package/dist/chunks/{websearch-jfaecv01.js → schema-jfaecv01.js} +1 -1
- package/dist/chunks/{websearch-w7p07vyz.js → schema-jhxhd08e.js} +19 -19
- package/dist/chunks/{websearch-jtnps1zs.js → schema-jtnps1zs.js} +2 -2
- package/dist/chunks/{websearch-hpss8xr5.js → schema-jzy064tf.js} +17 -17
- package/dist/chunks/{websearch-wxvzs469.js → schema-k394zw05.js} +58 -58
- package/dist/chunks/{websearch-ch0dnrxm.js → schema-k6966x57.js} +22 -22
- package/dist/chunks/{websearch-k814nvkf.js → schema-k814nvkf.js} +1 -1
- package/dist/chunks/{websearch-7cdnexkp.js → schema-k8ec4f2h.js} +22 -22
- package/dist/chunks/{websearch-d84g1cdm.js → schema-k9c4fygp.js} +201 -201
- package/dist/chunks/{websearch-6xtjqz2m.js → schema-kh0hrg97.js} +4 -4
- package/dist/chunks/{websearch-dwx6m9pn.js → schema-khq1tf5f.js} +20 -20
- package/dist/chunks/{websearch-cet60sqk.js → schema-kjphpf5s.js} +16 -16
- package/dist/chunks/{websearch-sdnx44eq.js → schema-kka3dzk1.js} +10 -10
- package/dist/chunks/{websearch-tg1vr1qt.js → schema-kmzgegqq.js} +8 -8
- package/dist/chunks/{websearch-mam69wf9.js → schema-ksw1makz.js} +12 -12
- package/dist/chunks/{websearch-kt3bjfbg.js → schema-kt3bjfbg.js} +1 -1
- package/dist/chunks/{websearch-4qvxhqjk.js → schema-m0n96caj.js} +30 -30
- package/dist/chunks/{websearch-m1714858.js → schema-m1714858.js} +1 -1
- package/dist/chunks/{websearch-c0mz4e8v.js → schema-m2p7g6q5.js} +40 -40
- package/dist/chunks/{websearch-8v45rwxr.js → schema-m9mdazr8.js} +5 -5
- package/dist/chunks/{websearch-fd89c18j.js → schema-m9qjbqaf.js} +11 -11
- package/dist/chunks/{websearch-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{websearch-8ga40a6a.js → schema-ma7n6kha.js} +4 -4
- package/dist/chunks/{websearch-mb7mbhnz.js → schema-mb7mbhnz.js} +3 -3
- package/dist/chunks/{websearch-9tx8500w.js → schema-md7hf9yx.js} +27 -27
- package/dist/chunks/schema-me0dhgxs.js +18 -0
- package/dist/chunks/{websearch-c9t2ty9q.js → schema-mtkfycnh.js} +4 -4
- package/dist/chunks/{websearch-s2tqrscs.js → schema-mvcvwgh8.js} +2 -2
- package/dist/chunks/{websearch-mn9ce29r.js → schema-mw7cb6xb.js} +11 -11
- package/dist/chunks/{websearch-1njm5cxv.js → schema-n8agtmcc.js} +16 -16
- package/dist/chunks/{websearch-ckgb0pw7.js → schema-n9svx643.js} +31 -31
- package/dist/chunks/{websearch-n938yph4.js → schema-na7hrbgf.js} +15 -15
- package/dist/chunks/{websearch-s40bz38f.js → schema-nagb01d0.js} +9 -9
- package/dist/chunks/{websearch-nah043kf.js → schema-nah043kf.js} +1 -1
- package/dist/chunks/{websearch-x7anyec9.js → schema-nb79qexc.js} +16 -16
- package/dist/chunks/{websearch-b5wswbrm.js → schema-nd0gg6f3.js} +50 -50
- package/dist/chunks/{websearch-kv38zb04.js → schema-nfy79yn0.js} +19 -19
- package/dist/chunks/{websearch-jqbem4ax.js → schema-nhj2s2rn.js} +36 -36
- package/dist/chunks/{websearch-bbsqf6zc.js → schema-npvk5mbc.js} +12 -12
- package/dist/chunks/{websearch-h22vpgky.js → schema-nsannsan.js} +35 -35
- package/dist/chunks/{websearch-p015t6z3.js → schema-p015t6z3.js} +2 -2
- package/dist/chunks/{websearch-01yye9f2.js → schema-p288ht65.js} +12 -12
- package/dist/chunks/{websearch-j6ca1eyx.js → schema-p6qx88jx.js} +17 -17
- package/dist/chunks/{websearch-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{websearch-2j78ayj4.js → schema-pnj9p3e7.js} +15 -15
- package/dist/chunks/{websearch-es257x3q.js → schema-pzn80and.js} +5 -5
- package/dist/chunks/{websearch-51yd88re.js → schema-q3gx0t3a.js} +19 -19
- package/dist/chunks/{websearch-1kx98qvq.js → schema-q89tx0w9.js} +4 -4
- package/dist/chunks/{websearch-sp56nfnr.js → schema-qa8rkrn5.js} +6 -6
- package/dist/chunks/{websearch-8jztxfpf.js → schema-qjgzc4b4.js} +4 -4
- package/dist/chunks/{websearch-a6t7wj3k.js → schema-qm628a9a.js} +78 -78
- package/dist/chunks/{websearch-8fmenyqq.js → schema-qn9arske.js} +16 -16
- package/dist/chunks/{websearch-qp7r0hxv.js → schema-qp7r0hxv.js} +1 -1
- package/dist/chunks/{websearch-xt0z8zst.js → schema-qqpbcr2p.js} +4 -4
- package/dist/chunks/{websearch-qqvy8y24.js → schema-qqvy8y24.js} +1 -1
- package/dist/chunks/{websearch-7mzp1cgs.js → schema-qxzr918a.js} +23 -23
- package/dist/chunks/{websearch-81jqhtn8.js → schema-qyfz9dkk.js} +10 -10
- package/dist/chunks/{websearch-t391rd3g.js → schema-qz97qqq3.js} +23 -23
- package/dist/chunks/{websearch-37mgh8mf.js → schema-r15nerz4.js} +2 -2
- package/dist/chunks/{websearch-decdgbhs.js → schema-r1hwwpqk.js} +13 -13
- package/dist/chunks/{websearch-xesqy162.js → schema-r3jekzdf.js} +29 -29
- package/dist/chunks/{websearch-849yt6mx.js → schema-r4zhn8a3.js} +8 -8
- package/dist/chunks/{websearch-r542h3bh.js → schema-r542h3bh.js} +1 -1
- package/dist/chunks/{websearch-sbegqkxp.js → schema-ra34yqmw.js} +6 -6
- package/dist/chunks/{websearch-cqx7qe96.js → schema-rb6a0f6t.js} +11 -11
- package/dist/chunks/{websearch-rb9dy4dg.js → schema-rb9dy4dg.js} +1 -1
- package/dist/chunks/{websearch-69nf9nav.js → schema-rehx0x6s.js} +11 -11
- package/dist/chunks/{websearch-rt5dr6hb.js → schema-rt5dr6hb.js} +1 -1
- package/dist/chunks/schema-s2dzrv2e.js +539 -0
- package/dist/chunks/{websearch-c8fek3cb.js → schema-s5zjbmxy.js} +13 -13
- package/dist/chunks/{websearch-sa3fpqfw.js → schema-sa3fpqfw.js} +2 -2
- package/dist/chunks/{websearch-h91vt6m9.js → schema-sgq8g3gm.js} +18 -18
- package/dist/chunks/{websearch-cb0vw9jn.js → schema-sj028wv8.js} +9 -9
- package/dist/chunks/{websearch-4q6zxb9x.js → schema-snr8m60h.js} +3 -3
- package/dist/chunks/{websearch-zcvfbtr9.js → schema-srcgv9w3.js} +48 -48
- package/dist/chunks/{websearch-svcy3p9a.js → schema-svcy3p9a.js} +1 -1
- package/dist/chunks/{websearch-fhv2xxmr.js → schema-sx385end.js} +5 -5
- package/dist/chunks/{websearch-4vc00714.js → schema-t1bgdn1k.js} +23 -23
- package/dist/chunks/{websearch-t3gc9rvy.js → schema-t8kxmwy5.js} +3 -3
- package/dist/chunks/{websearch-tczq8hjw.js → schema-tczq8hjw.js} +1 -1
- package/dist/chunks/{websearch-sjjzadcb.js → schema-tj38cb2g.js} +27 -27
- package/dist/chunks/{websearch-3nnrz6f6.js → schema-tmc7xdjs.js} +4 -4
- package/dist/chunks/{websearch-twssxy5n.js → schema-twssxy5n.js} +2 -2
- package/dist/chunks/{websearch-r37dw65n.js → schema-v23js2jf.js} +24 -24
- package/dist/chunks/{websearch-v2r1d0zg.js → schema-v2r1d0zg.js} +1 -1
- package/dist/chunks/{websearch-rwabqwx1.js → schema-vce9hmvv.js} +8 -8
- package/dist/chunks/{websearch-djm2v0tf.js → schema-vhvv8ez0.js} +4 -4
- package/dist/chunks/{websearch-ennbv05t.js → schema-vnyx9vg6.js} +6 -6
- package/dist/chunks/{websearch-xgg53m61.js → schema-vp8rtqyg.js} +27 -27
- package/dist/chunks/{websearch-2f7b0gsd.js → schema-vqntchmx.js} +21 -21
- package/dist/chunks/{websearch-v256hjtv.js → schema-vtbv1fva.js} +15 -15
- package/dist/chunks/{websearch-tznvtk94.js → schema-vtkbdejs.js} +36 -36
- package/dist/chunks/{websearch-nm8qr2s2.js → schema-vybksbky.js} +24 -24
- package/dist/chunks/{websearch-rd77kc48.js → schema-vz2va2d1.js} +25 -25
- package/dist/chunks/{websearch-wrd39zd3.js → schema-vzmjdaw1.js} +9 -9
- package/dist/chunks/{websearch-m0w8gjtc.js → schema-w11ey1wa.js} +11 -11
- package/dist/chunks/{websearch-s7kyse9r.js → schema-w35wzz9x.js} +4 -4
- package/dist/chunks/{websearch-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{websearch-b6z35kmf.js → schema-w687dnns.js} +4 -4
- package/dist/chunks/{websearch-wakvkjy4.js → schema-wakvkjy4.js} +1 -1
- package/dist/chunks/{websearch-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{websearch-t0hjt5vr.js → schema-wdcvs2c8.js} +57 -57
- package/dist/chunks/{websearch-wegkxhrn.js → schema-wegkxhrn.js} +2 -2
- package/dist/chunks/{websearch-wnhgecwx.js → schema-wnhgecwx.js} +1 -1
- package/dist/chunks/{websearch-wjr22wj6.js → schema-wvwyjhqj.js} +15 -15
- package/dist/chunks/{websearch-y82rcgeg.js → schema-wwr5b8zq.js} +13 -13
- package/dist/chunks/{websearch-qkvepbme.js → schema-wymh8p0v.js} +1 -1
- package/dist/chunks/{websearch-hhw78a7m.js → schema-wzwsv8q3.js} +8 -8
- package/dist/chunks/{websearch-54wn9wg4.js → schema-x7sbefsh.js} +18 -18
- package/dist/chunks/{websearch-exxbh7hn.js → schema-x7sgwrtq.js} +40 -40
- package/dist/chunks/{websearch-3d1y0g83.js → schema-xa8sgekr.js} +4 -4
- package/dist/chunks/{websearch-yqvckjfp.js → schema-xg9fc39m.js} +27 -27
- package/dist/chunks/{websearch-9ak394t4.js → schema-xjhaxcdd.js} +23 -23
- package/dist/chunks/{websearch-f370vvdy.js → schema-xnw40tj7.js} +18 -18
- package/dist/chunks/{websearch-ry7kp2db.js → schema-xrc3640n.js} +8 -8
- package/dist/chunks/{websearch-95sp4hdf.js → schema-xymnhqkr.js} +4 -4
- package/dist/chunks/{websearch-sz4f9hgk.js → schema-y1hrmxtq.js} +25 -25
- package/dist/chunks/{websearch-pgwm13mx.js → schema-yaf14s91.js} +32 -32
- package/dist/chunks/{websearch-yara3q77.js → schema-yara3q77.js} +2 -2
- package/dist/chunks/{websearch-yb20nhc3.js → schema-yb20nhc3.js} +1 -1
- package/dist/chunks/{websearch-5erp7w2j.js → schema-yfmps5ht.js} +9 -9
- package/dist/chunks/{websearch-esezyxfc.js → schema-ypzz06n9.js} +11 -11
- package/dist/chunks/{websearch-4wffjq55.js → schema-yv3czy6n.js} +24 -24
- package/dist/chunks/{websearch-17b39pgx.js → schema-zasfh7e5.js} +23 -23
- package/dist/chunks/{websearch-3bna4jcr.js → schema-zbwmzx6w.js} +47 -47
- package/dist/chunks/{websearch-766y91jf.js → schema-zes4xa3j.js} +6 -6
- package/dist/chunks/{websearch-07hv0a2t.js → schema-zr8qtytk.js} +3 -3
- package/dist/chunks/{websearch-eps2nw42.js → schema-ztatdthy.js} +43 -43
- package/dist/chunks/{websearch-h0rg6s60.js → schema-ztf6n3de.js} +4 -4
- package/dist/chunks/{websearch-bj44k2p3.js → schema-zvmapj1s.js} +11 -11
- package/dist/chunks/{websearch-t0v7rh8b.js → schema-zvwzcwk0.js} +6 -6
- package/dist/chunks/{websearch-c1d6cwky.js → schema-zvyj7mkg.js} +40 -40
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +149 -149
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +96 -96
- 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 +111 -111
- package/dist/config/plugin/agent.js +129 -129
- package/dist/config/plugin/command.js +226 -226
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/compatibility.js +149 -149
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +130 -130
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +129 -129
- package/dist/config/plugin/location-watcher.js +129 -129
- package/dist/config/plugin/mcp.js +136 -136
- package/dist/config/plugin/policy.js +129 -129
- package/dist/config/plugin/provider.js +129 -129
- package/dist/config/plugin/reference.js +131 -131
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +145 -145
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +152 -152
- package/dist/config/plugin/snapshot.js +129 -129
- package/dist/config/plugin/source.js +132 -132
- package/dist/config/plugin/tool-output.js +130 -130
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +131 -131
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +134 -134
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +93 -93
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/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.gen.js +59 -59
- package/dist/database/migration.js +61 -61
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +104 -104
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +392 -392
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +107 -107
- 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 +84 -84
- package/dist/file-access.js +155 -155
- package/dist/file-mutation.js +106 -106
- 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 +90 -90
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +235 -235
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +116 -116
- package/dist/form.js +92 -92
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +99 -99
- package/dist/generate.js +119 -119
- package/dist/git.js +11 -11
- 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 +111 -111
- 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 +383 -383
- package/dist/instruction-discovery.js +96 -96
- package/dist/instructions/builtins.js +99 -99
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +83 -83
- package/dist/location-activity.js +173 -173
- package/dist/location-lifecycle.js +149 -149
- package/dist/location-service-map.js +98 -98
- package/dist/location-services.js +380 -380
- package/dist/location.js +99 -99
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -103
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +179 -179
- package/dist/mcp/oauth.js +88 -88
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -102
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +111 -111
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +120 -120
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +92 -92
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +152 -152
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +98 -98
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -85
- package/dist/plugin/agent.js +84 -84
- package/dist/plugin/command.js +112 -112
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +232 -232
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +359 -359
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -109
- package/dist/plugin/module.js +128 -128
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +145 -145
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -103
- package/dist/plugin/provider/azure.js +129 -129
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +129 -129
- package/dist/plugin/provider/cloudflare-ai-gateway.js +127 -127
- package/dist/plugin/provider/cloudflare-workers-ai.js +127 -127
- package/dist/plugin/provider/configured.js +125 -125
- package/dist/plugin/provider/credential-settings.js +84 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -105
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -107
- package/dist/plugin/provider/gitlab.js +106 -106
- package/dist/plugin/provider/google-vertex.js +126 -126
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -88
- package/dist/plugin/provider/lmstudio.js +138 -138
- package/dist/plugin/provider/local.js +135 -135
- package/dist/plugin/provider/modal.js +104 -104
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +138 -138
- package/dist/plugin/provider/openai-context-caps.js +102 -102
- package/dist/plugin/provider/openai.js +129 -129
- package/dist/plugin/provider/opencode.js +131 -131
- package/dist/plugin/provider/openrouter.js +103 -103
- package/dist/plugin/provider/poe.js +89 -89
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -103
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +128 -128
- package/dist/plugin/provider/vllm.js +138 -138
- package/dist/plugin/provider/xai.js +103 -103
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +146 -146
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +367 -367
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -98
- package/dist/plugin/vcs/hg.js +98 -98
- package/dist/plugin/verbosity.js +105 -105
- package/dist/plugin/warming.js +127 -127
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +239 -239
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +100 -100
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +110 -110
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +102 -102
- package/dist/repository-cache.js +92 -92
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +98 -98
- package/dist/schedule/check.js +237 -237
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +249 -249
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +128 -128
- package/dist/session/command.js +84 -84
- package/dist/session/compaction.js +169 -169
- package/dist/session/context.js +196 -196
- package/dist/session/diff.js +100 -100
- 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 +239 -239
- package/dist/session/execution.js +161 -161
- package/dist/session/generate.js +198 -198
- package/dist/session/history.js +135 -135
- package/dist/session/inbox.js +146 -146
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +89 -89
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +140 -140
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +166 -166
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +163 -163
- package/dist/session/projector.js +142 -142
- package/dist/session/prompt.js +147 -147
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +138 -138
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +244 -244
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -112
- package/dist/session/runner/publish-llm-event.js +148 -148
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +159 -159
- package/dist/session/runner/to-llm-message.js +136 -136
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +179 -179
- package/dist/session/shell.js +143 -143
- package/dist/session/skill.js +148 -148
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +83 -83
- package/dist/session/store.js +141 -141
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +226 -226
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +198 -198
- package/dist/session/to-session-error.js +147 -147
- package/dist/session/transfer.js +237 -237
- package/dist/session/usage.js +1 -1
- package/dist/session.js +232 -232
- 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 +7 -7
- package/dist/shell.js +145 -145
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +150 -150
- package/dist/skill.js +155 -155
- package/dist/snapshot.js +105 -105
- 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 +176 -176
- package/dist/tool/plugin/edit.js +163 -163
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +163 -163
- package/dist/tool/plugin/grep.js +167 -167
- package/dist/tool/plugin/image-generate.js +236 -236
- package/dist/tool/plugin/mcp-resource.js +161 -161
- package/dist/tool/plugin/opencode.js +160 -160
- package/dist/tool/plugin/patch.js +165 -165
- package/dist/tool/plugin/question.js +145 -145
- package/dist/tool/plugin/read.js +168 -168
- package/dist/tool/plugin/schedule.js +243 -243
- package/dist/tool/plugin/shell.js +232 -232
- package/dist/tool/plugin/skill.js +156 -156
- package/dist/tool/plugin/subagent.js +233 -233
- package/dist/tool/plugin/todo.js +152 -152
- package/dist/tool/plugin/webfetch.js +154 -154
- package/dist/tool/plugin/websearch.js +154 -154
- package/dist/tool/plugin/write.js +159 -159
- package/dist/tool/read-filesystem.js +114 -114
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +159 -159
- package/dist/usage-limits.js +99 -99
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +104 -104
- 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 +105 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -101
- package/dist/voice.js +98 -98
- package/dist/websearch.js +94 -94
- package/dist/wellknown/plugin.js +86 -86
- package/dist/wellknown.js +91 -91
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +92 -92
- 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 +101 -101
- package/dist/worktree.js +110 -110
- package/package.json +8 -8
- package/dist/chunks/websearch-4s0ej1qc.js +0 -539
- package/dist/chunks/websearch-7q6zqx37.js +0 -257
- package/dist/chunks/websearch-grzehpz7.js +0 -18
- package/dist/chunks/websearch-v63ad6sj.js +0 -26
- /package/dist/chunks/{websearch-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{websearch-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{websearch-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{websearch-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{websearch-1kah00gy.js → schema-1kah00gy.js} +0 -0
- /package/dist/chunks/{websearch-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{websearch-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{websearch-2bv980vf.js → schema-2bv980vf.js} +0 -0
- /package/dist/chunks/{websearch-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{websearch-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{websearch-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{websearch-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{websearch-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{websearch-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{websearch-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{websearch-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{websearch-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{websearch-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{websearch-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{websearch-5w3e23ze.js → schema-5w3e23ze.js} +0 -0
- /package/dist/chunks/{websearch-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{websearch-6q2bdcd1.js → schema-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{websearch-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{websearch-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{websearch-7stb81gk.js → schema-7stb81gk.js} +0 -0
- /package/dist/chunks/{websearch-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{websearch-84wd9syh.js → schema-84wd9syh.js} +0 -0
- /package/dist/chunks/{websearch-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{websearch-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{websearch-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
- /package/dist/chunks/{websearch-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{websearch-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{websearch-a058387c.js → schema-a058387c.js} +0 -0
- /package/dist/chunks/{websearch-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{websearch-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{websearch-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{websearch-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{websearch-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{websearch-beh6qq61.js → schema-beh6qq61.js} +0 -0
- /package/dist/chunks/{websearch-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{websearch-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{websearch-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{websearch-cqv5kn06.js → schema-cqv5kn06.js} +0 -0
- /package/dist/chunks/{websearch-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{websearch-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{websearch-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{websearch-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{websearch-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{websearch-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{websearch-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{websearch-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{websearch-ean2d8b5.js → schema-ean2d8b5.js} +0 -0
- /package/dist/chunks/{websearch-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{websearch-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{websearch-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{websearch-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{websearch-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{websearch-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{websearch-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{websearch-fkpq3x5p.js → schema-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{websearch-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{websearch-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{websearch-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{websearch-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{websearch-hcxmzztb.js → schema-hcxmzztb.js} +0 -0
- /package/dist/chunks/{websearch-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{websearch-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{websearch-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{websearch-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{websearch-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{websearch-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{websearch-jwr30sdr.js → schema-jwr30sdr.js} +0 -0
- /package/dist/chunks/{websearch-jze0r7bz.js → schema-jze0r7bz.js} +0 -0
- /package/dist/chunks/{websearch-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{websearch-m18g726c.js → schema-m18g726c.js} +0 -0
- /package/dist/chunks/{websearch-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{websearch-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{websearch-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{websearch-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{websearch-ncqqe42p.js → schema-ncqqe42p.js} +0 -0
- /package/dist/chunks/{websearch-nh4v3znn.js → schema-nh4v3znn.js} +0 -0
- /package/dist/chunks/{websearch-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{websearch-p71gwv9c.js → schema-p71gwv9c.js} +0 -0
- /package/dist/chunks/{websearch-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{websearch-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{websearch-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{websearch-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{websearch-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{websearch-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{websearch-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{websearch-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{websearch-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{websearch-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{websearch-stkk57rt.js → schema-stkk57rt.js} +0 -0
- /package/dist/chunks/{websearch-t03h4f5z.js → schema-t03h4f5z.js} +0 -0
- /package/dist/chunks/{websearch-ty7weeps.js → schema-ty7weeps.js} +0 -0
- /package/dist/chunks/{websearch-ve7vex1e.js → schema-ve7vex1e.js} +0 -0
- /package/dist/chunks/{websearch-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{websearch-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{websearch-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{websearch-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{websearch-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{websearch-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{websearch-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{websearch-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{websearch-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{websearch-z5v4ffb3.js → schema-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{websearch-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./schema-hscrayt9.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
11
11
|
__export(exports_location, {
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info28,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref5,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service81,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node85,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
|
-
import { Info as
|
|
21
|
+
import { Info as Info28, Ref as Ref5, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service81 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node85 = LayerNode.unbound(Service81, tags.values.location);
|
|
27
|
+
var layer = (ref) => Layer.effect(Service81, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service82;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory);
|
|
30
|
-
return
|
|
30
|
+
return Service81.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref) => Layer.effect(Service83, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service81,
|
|
39
39
|
layer: layer(ref),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node86]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { Info28, Ref5, response2, Service81, node85, boundNode2, exports_location };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-qjgzc4b4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service84,
|
|
6
|
+
node88
|
|
7
|
+
} from "./schema-1p3hqer1.js";
|
|
8
|
+
import {
|
|
9
|
+
Event19,
|
|
10
|
+
Service77,
|
|
11
|
+
node79
|
|
12
|
+
} from "./schema-0grvd95t.js";
|
|
8
13
|
import {
|
|
9
|
-
Event18,
|
|
10
14
|
Service81,
|
|
11
15
|
node85
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service83,
|
|
15
|
-
node87
|
|
16
|
-
} from "./websearch-x7anyec9.js";
|
|
16
|
+
} from "./schema-nb79qexc.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service79,
|
|
19
|
+
node82
|
|
20
|
+
} from "./schema-v23js2jf.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID14,
|
|
23
|
+
Service76,
|
|
24
|
+
node78
|
|
25
|
+
} from "./schema-vybksbky.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./schema-204s3925.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID13,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service75,
|
|
34
|
+
node77
|
|
35
|
+
} from "./schema-375j4a5k.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./schema-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError3,
|
|
45
45
|
Options: () => Options3,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
@@ -49,12 +49,12 @@ __export(exports_mcp4, {
|
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service27,
|
|
53
53
|
Status: () => Status3,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
55
|
configured: () => configured3,
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
56
|
+
layer: () => layer15,
|
|
57
|
+
node: () => node30
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -104,7 +104,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
104
104
|
var endpointLoads = makeUnsafe2();
|
|
105
105
|
var cloneConfig = (config) => structuredClone(config);
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service27 extends Context.Service()("@opencode/MCP") {
|
|
108
108
|
}
|
|
109
109
|
var Options3 = Schema.Struct({
|
|
110
110
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -112,13 +112,13 @@ var Options3 = Schema.Struct({
|
|
|
112
112
|
version: Schema.String
|
|
113
113
|
}))
|
|
114
114
|
});
|
|
115
|
-
var
|
|
116
|
-
const location = yield*
|
|
117
|
-
const environment = yield*
|
|
118
|
-
const bus = yield*
|
|
119
|
-
const forms = yield*
|
|
120
|
-
const integration = yield*
|
|
121
|
-
const credentials = yield*
|
|
115
|
+
var layer15 = (options) => Layer.effect(Service27, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service81;
|
|
117
|
+
const environment = yield* Service79;
|
|
118
|
+
const bus = yield* Service84;
|
|
119
|
+
const forms = yield* Service76;
|
|
120
|
+
const integration = yield* Service75;
|
|
121
|
+
const credentials = yield* Service77;
|
|
122
122
|
const root = yield* Effect.scope;
|
|
123
123
|
const fork = yield* FiberSet.makeRuntime();
|
|
124
124
|
const servers = yield* Scope.fork(root, "parallel");
|
|
@@ -133,7 +133,7 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
133
133
|
return;
|
|
134
134
|
const remote = entry.config;
|
|
135
135
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
136
|
-
const integrationID =
|
|
136
|
+
const integrationID = ID13.make(suffix);
|
|
137
137
|
entry.integrationID = integrationID;
|
|
138
138
|
owned.add(integrationID);
|
|
139
139
|
const methodID = MethodID2.make(suffix);
|
|
@@ -149,7 +149,7 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
149
149
|
method: { id: methodID, type: "oauth", label: name },
|
|
150
150
|
authorize: () => Effect.gen(function* () {
|
|
151
151
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
152
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
152
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service77, credentials));
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
}).pipe(Scope.provide(scope));
|
|
@@ -157,19 +157,19 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
157
157
|
const requireServer = Effect.fnUntraced(function* (name) {
|
|
158
158
|
const entry = entries.get(name);
|
|
159
159
|
if (!entry)
|
|
160
|
-
return yield* new
|
|
160
|
+
return yield* new NotFoundError3({ server: name });
|
|
161
161
|
return { name, entry };
|
|
162
162
|
});
|
|
163
163
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
164
164
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
165
165
|
return;
|
|
166
166
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
167
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
167
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service77, credentials));
|
|
168
168
|
});
|
|
169
169
|
const elicitation = {
|
|
170
170
|
create: (input) => Effect.gen(function* () {
|
|
171
171
|
if (input.params.mode === "url") {
|
|
172
|
-
const formID =
|
|
172
|
+
const formID = ID14.create();
|
|
173
173
|
const elicitationID = input.params.elicitationId;
|
|
174
174
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
175
175
|
if (key)
|
|
@@ -272,7 +272,7 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
272
272
|
entry.scope = scope;
|
|
273
273
|
const authProvider = yield* connectProvider(entry);
|
|
274
274
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
275
|
-
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(
|
|
275
|
+
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(Service79, environment), Scope.provide(scope));
|
|
276
276
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
277
277
|
if (Exit.isSuccess(result)) {
|
|
278
278
|
entry.client = result.value.connection;
|
|
@@ -373,7 +373,7 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
373
373
|
let closed = false;
|
|
374
374
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
375
375
|
closed = true;
|
|
376
|
-
}))), 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(Service79, 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 })));
|
|
377
377
|
const register = Effect.gen(function* () {
|
|
378
378
|
if (closed) {
|
|
379
379
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -452,7 +452,7 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
452
452
|
yield* startServer(name, entry);
|
|
453
453
|
}).pipe(locks.withLock(name));
|
|
454
454
|
});
|
|
455
|
-
fork(bus.subscribe(
|
|
455
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
456
456
|
const state = create3({
|
|
457
457
|
name: "mcp",
|
|
458
458
|
initial: () => ({
|
|
@@ -478,7 +478,7 @@ var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
478
478
|
}),
|
|
479
479
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
480
480
|
});
|
|
481
|
-
return
|
|
481
|
+
return Service27.of({
|
|
482
482
|
transform: state.transform,
|
|
483
483
|
reload: state.reload,
|
|
484
484
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -613,12 +613,12 @@ function mergeCatalogs(catalogs) {
|
|
|
613
613
|
}
|
|
614
614
|
function configured3(options) {
|
|
615
615
|
return makeLocationNode({
|
|
616
|
-
service:
|
|
617
|
-
layer:
|
|
618
|
-
deps: [
|
|
616
|
+
service: Service27,
|
|
617
|
+
layer: layer15(options),
|
|
618
|
+
deps: [node85, node82, node88, node78, node77, node79]
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var node30 = configured3();
|
|
622
622
|
function toElicitationField(key, property, required) {
|
|
623
623
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
624
624
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -669,4 +669,4 @@ function toElicitationField(key, property, required) {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
672
|
+
export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2, Service27, Options3, layer15, configured3, node30, exports_mcp4 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service84
|
|
3
|
+
} from "./schema-1p3hqer1.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-xymnhqkr.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event19
|
|
9
|
+
} from "./schema-0grvd95t.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
ID13
|
|
12
|
+
} from "./schema-375j4a5k.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID12,
|
|
15
|
+
Service74
|
|
16
|
+
} from "./schema-r3jekzdf.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
load3,
|
|
19
|
+
derive2
|
|
20
|
+
} from "./schema-xjhaxcdd.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID12.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
30
|
-
const bus = yield*
|
|
29
|
+
const providers = yield* Service74;
|
|
30
|
+
const bus = yield* Service84;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
33
33
|
const load = Effect.fn("ModalPlugin.load")(function* () {
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load3(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive2(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./schema-1p3hqer1.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node72
|
|
7
|
+
} from "./schema-sgq8g3gm.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service5,
|
|
10
|
+
node6
|
|
11
|
+
} from "./schema-tj38cb2g.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service31
|
|
14
|
+
} from "./schema-me0dhgxs.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
node20,
|
|
17
|
+
ID3
|
|
18
|
+
} from "./schema-dy8ej2a0.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service2,
|
|
21
|
+
node3
|
|
22
|
+
} from "./schema-kmzgegqq.js";
|
|
23
23
|
import {
|
|
24
24
|
requirements2,
|
|
25
25
|
guarded2,
|
|
26
26
|
list2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./schema-s2dzrv2e.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
29
|
+
make3,
|
|
30
30
|
LoadError2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./schema-p288ht65.js";
|
|
32
32
|
import {
|
|
33
33
|
Updated2,
|
|
34
34
|
Service3,
|
|
35
35
|
node4
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./schema-nagb01d0.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
38
|
+
Service4,
|
|
39
|
+
node5
|
|
40
|
+
} from "./schema-vzmjdaw1.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./schema-9rqn6x4v.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/supervisor.ts
|
|
46
46
|
var exports_supervisor = {};
|
|
@@ -124,7 +124,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
124
124
|
failures: [
|
|
125
125
|
...failures.values(),
|
|
126
126
|
...ordered.filter(duplicate).map((plugin) => ({
|
|
127
|
-
id:
|
|
127
|
+
id: ID3.make(plugin.id),
|
|
128
128
|
source: plugin.source ?? { type: "builtin" },
|
|
129
129
|
state: { status: "failed", error: `Duplicate plugin ID: ${plugin.id}` },
|
|
130
130
|
features: plugin.features ?? { server: true }
|
|
@@ -134,13 +134,13 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
136
|
var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
137
|
-
const registry = yield*
|
|
137
|
+
const registry = yield* Service31;
|
|
138
138
|
const sdk = yield* Service3;
|
|
139
|
-
const instance = yield*
|
|
140
|
-
const sources = yield*
|
|
141
|
-
const modules = yield*
|
|
142
|
-
const bus = yield*
|
|
143
|
-
const updates = yield*
|
|
139
|
+
const instance = yield* Service2;
|
|
140
|
+
const sources = yield* Service5;
|
|
141
|
+
const modules = yield* make3();
|
|
142
|
+
const bus = yield* Service84;
|
|
143
|
+
const updates = yield* Service4;
|
|
144
144
|
const internal = yield* list2();
|
|
145
145
|
let release = yield* registry.hold();
|
|
146
146
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -215,14 +215,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
215
215
|
})), Effect.forkScoped({ startImmediately: true }));
|
|
216
216
|
}));
|
|
217
217
|
var nodeDeps = [
|
|
218
|
-
|
|
218
|
+
node20,
|
|
219
219
|
node4,
|
|
220
|
-
node5,
|
|
221
|
-
node7,
|
|
222
220
|
node3,
|
|
223
|
-
|
|
221
|
+
node6,
|
|
222
|
+
node5,
|
|
223
|
+
node88,
|
|
224
224
|
Npm.node,
|
|
225
|
-
|
|
225
|
+
node72,
|
|
226
226
|
requirements2
|
|
227
227
|
];
|
|
228
228
|
function pluginSource(target) {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service70
|
|
3
|
+
} from "./schema-sgq8g3gm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service69
|
|
6
|
+
} from "./schema-wdcvs2c8.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-qa8rkrn5.js";
|
|
10
10
|
import {
|
|
11
11
|
ignore2,
|
|
12
12
|
scan2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./schema-nah043kf.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./schema-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/config/plugin/compatibility.ts
|
|
19
19
|
var exports_compatibility = {};
|
|
20
20
|
__export(exports_compatibility, {
|
|
21
21
|
ConfigCompatibilityPlugin: () => exports_compatibility,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin33
|
|
23
23
|
});
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
25
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
26
26
|
import path from "path";
|
|
27
27
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
28
|
-
var
|
|
28
|
+
var Plugin33 = define({
|
|
29
29
|
id: "opencode.config.compatibility",
|
|
30
30
|
effect: Effect.fn(function* (ctx) {
|
|
31
|
-
const config = yield*
|
|
31
|
+
const config = yield* Service69;
|
|
32
32
|
const fs = yield* FSUtil.Service;
|
|
33
|
-
const watcher = yield*
|
|
33
|
+
const watcher = yield* Service70;
|
|
34
34
|
const watches = yield* FiberMap.make();
|
|
35
35
|
const changes = yield* PubSub.sliding(1);
|
|
36
36
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -81,4 +81,4 @@ function isCompatibilitySource(roots, file) {
|
|
|
81
81
|
return sourceDirectories.some((name) => path.basename(file) === name) || [...roots.claude, ...roots.agents].some((root) => FSUtil.contains(root, file));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export {
|
|
84
|
+
export { Plugin33, exports_compatibility };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service81
|
|
9
|
+
} from "./schema-nb79qexc.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service79
|
|
12
|
+
} from "./schema-v23js2jf.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service38
|
|
16
|
+
} from "./schema-2vahexqr.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./schema-j0dybgn2.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service65
|
|
26
|
+
} from "./schema-fq1fyy34.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service16
|
|
29
|
+
} from "./schema-y1hrmxtq.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./schema-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/grep.ts
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
38
|
+
Input: () => Input13,
|
|
39
|
+
Output: () => Output10,
|
|
40
|
+
Plugin: () => Plugin52,
|
|
41
|
+
name: () => name13,
|
|
42
|
+
toModelContent: () => toModelContent6
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name13 = "grep";
|
|
48
|
+
var Input13 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,8 +65,8 @@ var Input5 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output10 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent6 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent3 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin52 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service79;
|
|
90
|
+
const ripgrep = yield* Service38;
|
|
91
|
+
const location = yield* Service81;
|
|
92
|
+
const access = yield* Service16;
|
|
93
|
+
const permission = yield* Service65;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name13,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input13,
|
|
99
|
+
output: Output10,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name13,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -144,7 +144,7 @@ var Plugin23 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent6(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin23 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name13, Input13, Output10, toModelContent6, Plugin52, exports_grep };
|