@opencode-ai/core 0.0.0-dev-19158 → 0.0.0-dev-19162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +65 -65
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +52 -52
- package/dist/catalog.js +65 -65
- package/dist/chunks/{config-cnxfty65.js → config-05zt7bxw.js} +1 -1
- package/dist/chunks/{config-ecrnc5yy.js → config-06hhv4mk.js} +9 -9
- package/dist/chunks/{config-nxrz604p.js → config-06qbn9zd.js} +7 -7
- package/dist/chunks/{config-v0gb0rxw.js → config-0717jcw9.js} +10 -10
- package/dist/chunks/{config-ag4rn41e.js → config-0dv7911r.js} +3 -3
- package/dist/chunks/{config-ee6p858a.js → config-0f36fkqm.js} +9 -9
- package/dist/chunks/{config-d90gephe.js → config-0ftyh06z.js} +9 -9
- package/dist/chunks/{config-qz49fwgp.js → config-0gaj4617.js} +3 -3
- package/dist/chunks/{config-05c02jrd.js → config-0mh54vrd.js} +27 -27
- package/dist/chunks/{config-ty2c41g5.js → config-0q7045zc.js} +9 -9
- package/dist/chunks/{config-bpgwf1gn.js → config-0w1hyfp5.js} +7 -7
- package/dist/chunks/{config-7xy1n7sd.js → config-158d8j6f.js} +9 -9
- package/dist/chunks/{config-hy4a837d.js → config-1dzz6snw.js} +143 -143
- package/dist/chunks/{config-8yvym9ym.js → config-1n116cmy.js} +7 -7
- package/dist/chunks/{config-pt7wq7x0.js → config-1rfmywcm.js} +1 -1
- package/dist/chunks/{config-dwwf8aqg.js → config-1xgpa51k.js} +26 -26
- package/dist/chunks/{config-2w6bfmvf.js → config-237jjh8r.js} +1 -1
- package/dist/chunks/{config-6h73sxmp.js → config-2402vzrj.js} +4 -4
- package/dist/chunks/{config-s0bghcpj.js → config-28137t3k.js} +13 -13
- package/dist/chunks/{config-5bryt7a0.js → config-2pcxbq9w.js} +14 -14
- package/dist/chunks/{config-dr3kpc4j.js → config-2pr397y0.js} +2 -2
- package/dist/chunks/{config-73h8w926.js → config-2wc239sk.js} +15 -15
- package/dist/chunks/{config-d5zz5mmx.js → config-2wqzt3cn.js} +1 -1
- package/dist/chunks/{config-be4f2y3v.js → config-31e3ykh9.js} +22 -22
- package/dist/chunks/config-35chk74t.js +4 -0
- package/dist/chunks/{config-2z5z4180.js → config-390g9qnx.js} +1 -1
- package/dist/chunks/{config-tg5j20fd.js → config-3esdbzaj.js} +29 -29
- package/dist/chunks/{config-1hy241bm.js → config-3h117gp9.js} +3 -3
- package/dist/chunks/{config-0a461f5m.js → config-4f0jyt0w.js} +1 -1
- package/dist/chunks/{config-tkkwfdrn.js → config-4h971em0.js} +14 -14
- package/dist/chunks/{config-82vek7a0.js → config-4q2e07t1.js} +27 -27
- package/dist/chunks/{config-6zjfgkhx.js → config-4zxvp4s8.js} +10 -10
- package/dist/chunks/{config-ess78x58.js → config-50jazn63.js} +3 -3
- package/dist/chunks/{config-d1a1bt21.js → config-55v2ymrw.js} +5 -5
- package/dist/chunks/{config-sev5fk1x.js → config-5v35ncxg.js} +13 -13
- package/dist/chunks/{config-06x6pa3n.js → config-5wxrjykn.js} +36 -36
- package/dist/chunks/{config-aj7d9r5a.js → config-61xw2vyk.js} +3 -3
- package/dist/chunks/{config-dkbgd4kx.js → config-67cp0t3n.js} +7 -7
- package/dist/chunks/{config-4p3gnpt1.js → config-69r0shtj.js} +23 -23
- package/dist/chunks/{config-m1xnd0vw.js → config-6affnmbh.js} +1 -1
- package/dist/chunks/config-6ancngw6.js +22 -0
- package/dist/chunks/{config-t73hfssp.js → config-6bk635n3.js} +3 -3
- package/dist/chunks/{config-rm8ckr6f.js → config-6cnprtbt.js} +10 -10
- package/dist/chunks/{config-4rhsk56h.js → config-6cp2jw9r.js} +11 -11
- package/dist/chunks/{config-af00207d.js → config-6mjnften.js} +20 -20
- package/dist/chunks/{config-afqdc92k.js → config-6t8g9t55.js} +36 -36
- package/dist/chunks/{config-rb8h7r9w.js → config-6wms2n7k.js} +13 -13
- package/dist/chunks/{config-mhkvc446.js → config-73tb2d7t.js} +2 -2
- package/dist/chunks/{config-k0amsfzg.js → config-749gab3j.js} +80 -80
- package/dist/chunks/{config-9n94sb4s.js → config-75f2r3s2.js} +7 -7
- package/dist/chunks/{config-zf2r3hh8.js → config-75kxdcsk.js} +15 -15
- package/dist/chunks/{config-97f5v037.js → config-75yf2d83.js} +7 -7
- package/dist/chunks/{config-rs1e0b8t.js → config-77d3wn9c.js} +30 -30
- package/dist/chunks/{config-yrzsrb4b.js → config-7cnzp9pw.js} +6 -6
- package/dist/chunks/{config-fcrkznn8.js → config-7dqw4kz8.js} +4 -4
- package/dist/chunks/{config-rvb2zp0m.js → config-7gbsxqt2.js} +7 -7
- package/dist/chunks/{config-99wsp9nb.js → config-7vybpyaj.js} +55 -55
- package/dist/chunks/{config-bbvq66e2.js → config-849efh8h.js} +12 -12
- package/dist/chunks/{config-768z0hjh.js → config-84e5sn9r.js} +1 -1
- package/dist/chunks/{config-er38wkfc.js → config-88f2w7bg.js} +19 -19
- package/dist/chunks/{config-besb2aaq.js → config-8g9nxc0g.js} +5 -5
- package/dist/chunks/{config-ngaay9ac.js → config-8mytbkpk.js} +11 -11
- package/dist/chunks/{config-jnmmvqjs.js → config-8pn7nfj1.js} +1 -1
- package/dist/chunks/{config-ten32qq2.js → config-8sst88kq.js} +130 -130
- package/dist/chunks/{config-qbyszf6s.js → config-8ysd1vrr.js} +10 -10
- package/dist/chunks/{config-fz1hta7e.js → config-90f0znq3.js} +10 -10
- package/dist/chunks/{config-qr55wwdd.js → config-90jvxegy.js} +25 -25
- package/dist/chunks/{config-5h14vxyg.js → config-95dz77zy.js} +7 -7
- package/dist/chunks/{config-nb6s2wb6.js → config-9k4yc68s.js} +7 -7
- package/dist/chunks/{config-y0padt56.js → config-9mdqs4p6.js} +8 -8
- package/dist/chunks/{config-61za95ds.js → config-9n4rmthx.js} +4 -4
- package/dist/chunks/{config-91fry4gj.js → config-9swgxcyc.js} +8 -8
- package/dist/chunks/{config-wybz6hrf.js → config-a1bqr6mg.js} +7 -7
- package/dist/chunks/{config-76a1wewz.js → config-a848jf85.js} +15 -15
- package/dist/chunks/{config-d7mjzyv0.js → config-asc3hgbh.js} +5 -5
- package/dist/chunks/{config-6m53fthq.js → config-az3ewtba.js} +8 -8
- package/dist/chunks/{config-pwfaxt9w.js → config-b06njkpy.js} +23 -23
- package/dist/chunks/{config-6pca0jhe.js → config-b0ememyf.js} +6 -6
- package/dist/chunks/{config-at5d07az.js → config-b27vhd2z.js} +3 -3
- package/dist/chunks/{config-warhvf6j.js → config-b7sv87fa.js} +14 -14
- package/dist/chunks/{config-aep3zssy.js → config-bhhnfd7g.js} +9 -9
- package/dist/chunks/{config-bbewgybn.js → config-bnf63c9y.js} +22 -22
- package/dist/chunks/{config-fv0a46mq.js → config-bpnz08mb.js} +1 -1
- package/dist/chunks/{config-2wqt7jqe.js → config-btc4hvws.js} +3 -3
- package/dist/chunks/{config-4czb3y5g.js → config-cbmwqr93.js} +34 -34
- package/dist/chunks/{config-h7ff3db1.js → config-cbx5tm5q.js} +1 -1
- package/dist/chunks/{config-e65pwgvg.js → config-cdq864t9.js} +4 -4
- package/dist/chunks/{config-yb908mkd.js → config-cgpj99p4.js} +10 -10
- package/dist/chunks/{config-w3wxw8kx.js → config-cwq8wwbw.js} +5 -5
- package/dist/chunks/{config-rpehk5bg.js → config-d4fghf44.js} +15 -15
- package/dist/chunks/{config-t21nbt5p.js → config-dfxkf46d.js} +13 -13
- package/dist/chunks/{config-67jd09d6.js → config-dnqht47t.js} +9 -9
- package/dist/chunks/{config-q8pady3j.js → config-drvezzaf.js} +17 -17
- package/dist/chunks/{config-0pxkb8sx.js → config-dvnq9x8h.js} +22 -22
- package/dist/chunks/{config-d22p1rbq.js → config-e06bka4b.js} +16 -16
- package/dist/chunks/{config-nnppy51n.js → config-e5c0hftg.js} +10 -10
- package/dist/chunks/{config-5rex2td8.js → config-ea6674rn.js} +38 -38
- package/dist/chunks/{config-hhhknvt0.js → config-efcf8wyf.js} +3 -3
- package/dist/chunks/{config-7j0xh36y.js → config-eqepbgaf.js} +6 -6
- package/dist/chunks/{config-955d8903.js → config-f0xx6xrn.js} +24 -24
- package/dist/chunks/{config-djaedspm.js → config-f4ptx47h.js} +17 -17
- package/dist/chunks/{config-3wbdmr3k.js → config-f6p2s77z.js} +11 -11
- package/dist/chunks/{config-hdzt82x2.js → config-fjvydvzm.js} +3 -3
- package/dist/chunks/{config-vzxy5pye.js → config-fpkc6x6e.js} +281 -281
- package/dist/chunks/{config-ky96tthz.js → config-g0h7a6z3.js} +18 -18
- package/dist/chunks/{config-b589frdy.js → config-g2g0nm0k.js} +6 -6
- package/dist/chunks/{config-z6z2k755.js → config-g3m1b5yb.js} +15 -15
- package/dist/chunks/{config-n4j22jpp.js → config-g3ncs8hk.js} +27 -27
- package/dist/chunks/{config-jejm9xps.js → config-gcq6p8pa.js} +15 -15
- package/dist/chunks/{config-3fc6dm20.js → config-gdvy8fx6.js} +3 -3
- package/dist/chunks/{config-4zyfxj4f.js → config-gmgk58pj.js} +26 -26
- package/dist/chunks/{config-wdge9c06.js → config-gs07ajs2.js} +12 -12
- package/dist/chunks/{config-5w08bhrc.js → config-gszwqe5d.js} +21 -21
- package/dist/chunks/{config-6rx01yq8.js → config-gvha7d93.js} +7 -7
- package/dist/chunks/{config-svq2erka.js → config-gw2ha4j9.js} +17 -17
- package/dist/chunks/{config-0dbg0bks.js → config-gzd7t3bg.js} +3 -3
- package/dist/chunks/{config-8vngan4t.js → config-h0xakedw.js} +10 -10
- package/dist/chunks/{config-qs4avvkb.js → config-h397hkc6.js} +1 -1
- package/dist/chunks/{config-kj6nvqge.js → config-hbyy88g2.js} +4 -4
- package/dist/chunks/{config-1x17a3c7.js → config-hqq8t1nz.js} +22 -22
- package/dist/chunks/{config-kvsjn1dr.js → config-hw4pv20g.js} +1 -1
- package/dist/chunks/{config-kjq59vae.js → config-j793fzzw.js} +4 -4
- package/dist/chunks/{config-z9xbv7h3.js → config-k0jfbz6p.js} +7 -7
- package/dist/chunks/{config-0p9sb830.js → config-k16hc8ta.js} +6 -6
- package/dist/chunks/{config-jg8b9hk9.js → config-k3qb5jpq.js} +15 -15
- package/dist/chunks/{config-3d9g3vnb.js → config-ke4h9fde.js} +29 -29
- package/dist/chunks/{config-1rrv44nx.js → config-khzg4rw9.js} +8 -8
- package/dist/chunks/{config-16r38w9g.js → config-kx2gvdct.js} +3 -3
- package/dist/chunks/{config-1m75zwha.js → config-kxdbpzvg.js} +10 -10
- package/dist/chunks/{config-8cmk2yrh.js → config-kxt3why0.js} +1 -1
- package/dist/chunks/{config-7b89tsdd.js → config-m7yd5tmd.js} +22 -22
- package/dist/chunks/{config-mdtrqsjb.js → config-mcwyqbfv.js} +11 -11
- package/dist/chunks/{config-qbjxktnx.js → config-mk71vqfm.js} +15 -15
- package/dist/chunks/{config-yv1mnqgn.js → config-mq9r6drf.js} +3 -3
- package/dist/chunks/{config-frpgp90v.js → config-mrr5n1t5.js} +39 -39
- package/dist/chunks/{config-st2ye5gy.js → config-ms4p05rz.js} +4 -4
- package/dist/chunks/{config-paaj2tba.js → config-n4vc4wqp.js} +26 -26
- package/dist/chunks/{config-d0ewx9kc.js → config-n6wnzfnt.js} +7 -7
- package/dist/chunks/{config-r9hy8h05.js → config-n95nq84g.js} +3 -3
- package/dist/chunks/{config-792dbvs3.js → config-nbb09f0r.js} +8 -8
- package/dist/chunks/{config-9fa16n1e.js → config-nc7vhk1r.js} +13 -13
- package/dist/chunks/{config-0rxs0e68.js → config-ndcx881h.js} +8 -8
- package/dist/chunks/{config-re1thkzp.js → config-ndvrq8a0.js} +46 -46
- package/dist/chunks/{config-6jcpr1v0.js → config-njc68f1a.js} +9 -9
- package/dist/chunks/{config-d64qpf1g.js → config-nntdm4dm.js} +7 -7
- package/dist/chunks/{config-qekkcmhw.js → config-p4tet26t.js} +10 -10
- package/dist/chunks/{config-rzkmjmsa.js → config-p6ff5tbf.js} +21 -21
- package/dist/chunks/{config-8rzvg9y3.js → config-p75fycp1.js} +16 -16
- package/dist/chunks/{config-j935v87r.js → config-paphc93g.js} +2 -2
- package/dist/chunks/{config-zajwd6at.js → config-pdw22why.js} +4 -4
- package/dist/chunks/{config-hvpnsy1s.js → config-pe168bzg.js} +9 -9
- package/dist/chunks/{config-mpftn8ge.js → config-pwt28h08.js} +5 -5
- package/dist/chunks/{config-2h688s1b.js → config-qcgjm0wy.js} +2 -2
- package/dist/chunks/{config-n4229vd9.js → config-qdc7md5c.js} +13 -13
- package/dist/chunks/{config-j916w4yw.js → config-r0d31c8w.js} +73 -73
- package/dist/chunks/{config-trkzvrng.js → config-r4xgsgaj.js} +9 -9
- package/dist/chunks/{config-n38qs1ar.js → config-r5w2ssxe.js} +7 -7
- package/dist/chunks/{config-759pz1a2.js → config-rae26gbb.js} +3 -3
- package/dist/chunks/{config-dxj72tfx.js → config-rap9a73h.js} +4 -4
- package/dist/chunks/{config-hddz0wn7.js → config-rd1ep0s8.js} +5 -5
- package/dist/chunks/{config-t6r14j5z.js → config-rjdxf66f.js} +7 -7
- package/dist/chunks/{config-egt1ss7v.js → config-rm88cc49.js} +30 -30
- package/dist/chunks/{config-trt6hbzz.js → config-rz7hn0qq.js} +1 -1
- package/dist/chunks/{config-2dhdzgjt.js → config-s0xz30kk.js} +1 -1
- package/dist/chunks/{config-e1hrx4vk.js → config-s3ef855p.js} +1 -1
- package/dist/chunks/{config-5ybpggmd.js → config-sec21qxj.js} +24 -24
- package/dist/chunks/{config-k9g2f61c.js → config-segpa9t1.js} +28 -28
- package/dist/chunks/{config-sy3syc2d.js → config-skh1dhby.js} +10 -10
- package/dist/chunks/{config-9fqwkpwc.js → config-srbc34s8.js} +19 -19
- package/dist/chunks/{config-6ssjdv0f.js → config-ssx4hce4.js} +9 -9
- package/dist/chunks/{config-8zvpx36b.js → config-t0mrj28q.js} +12 -12
- package/dist/chunks/{config-x838v1f0.js → config-tb8pps08.js} +20 -20
- package/dist/chunks/{config-p8wq76ht.js → config-tdae0fjt.js} +35 -35
- package/dist/chunks/{config-2r96sc0k.js → config-thh4j27q.js} +26 -26
- package/dist/chunks/{config-rbat79dr.js → config-tvhb6ja7.js} +9 -9
- package/dist/chunks/{config-1w30f4f2.js → config-ty7ewxnj.js} +9 -9
- package/dist/chunks/{config-g54t4tcc.js → config-tz7hz8t4.js} +30 -30
- package/dist/chunks/{config-p2qtf44v.js → config-v7vyss8a.js} +6 -6
- package/dist/chunks/{config-wvbe3rtp.js → config-v9jt0hrb.js} +22 -22
- package/dist/chunks/{config-r98e92ep.js → config-ve4pfa0n.js} +3 -3
- package/dist/chunks/{config-apsp7jgk.js → config-vpkbx0dt.js} +4 -4
- package/dist/chunks/{config-kkpsphwy.js → config-vr61rn6q.js} +23 -23
- package/dist/chunks/{config-z8bnceqx.js → config-w4b4w6yp.js} +16 -16
- package/dist/chunks/{config-yj3e99fm.js → config-wb545wbz.js} +1 -1
- package/dist/chunks/{config-qefte8q3.js → config-wcge92de.js} +11 -11
- package/dist/chunks/{config-ph38rbv1.js → config-wdqf1a1r.js} +7 -7
- package/dist/chunks/{config-22wsmeqd.js → config-wfqth6gn.js} +19 -19
- package/dist/chunks/{config-s61m3yv4.js → config-wjjyb9kf.js} +14 -14
- package/dist/chunks/{config-397c8mnj.js → config-wmjbr0cd.js} +17 -17
- package/dist/chunks/{config-66dnbv3r.js → config-wpj5mmzs.js} +39 -39
- package/dist/chunks/{config-nf2cw6d6.js → config-wtm3m4mv.js} +19 -19
- package/dist/chunks/{config-y8b7bht2.js → config-wv9wspwp.js} +33 -33
- package/dist/chunks/{config-2h6dm58y.js → config-ww0d9pr3.js} +1 -1
- package/dist/chunks/{config-wh79xy5p.js → config-x0bt72s0.js} +16 -16
- package/dist/chunks/{config-jqbr1wyt.js → config-x37beqws.js} +13 -13
- package/dist/chunks/{config-3ke7pvrw.js → config-x3n7g9ke.js} +16 -16
- package/dist/chunks/{config-dpgq5tn5.js → config-x6g7mdd1.js} +50 -50
- package/dist/chunks/{config-jzn5q2t4.js → config-x780yf15.js} +8 -8
- package/dist/chunks/{config-02hqbqte.js → config-xdhd08xr.js} +2 -2
- package/dist/chunks/{config-yt752v3e.js → config-xhry6vyk.js} +21 -21
- package/dist/chunks/{config-yk7p6t6k.js → config-xj0fb0cg.js} +12 -12
- package/dist/chunks/{config-zeb8mwjb.js → config-xnjnn6ck.js} +2 -2
- package/dist/chunks/{config-rb9cx0k8.js → config-xx3n06zn.js} +9 -9
- package/dist/chunks/{config-93a8yfjt.js → config-y2cqme3r.js} +3 -3
- package/dist/chunks/{config-hrjnmr7c.js → config-y5b08bcr.js} +2 -2
- package/dist/chunks/{config-gqxn036h.js → config-ye5gakfv.js} +20 -20
- package/dist/chunks/{config-qa3j2s86.js → config-yenvjmh1.js} +7 -7
- package/dist/chunks/{config-6j09wqep.js → config-yj1cv159.js} +14 -14
- package/dist/chunks/{config-mckf4h7b.js → config-ym594s0z.js} +7 -7
- package/dist/chunks/{config-7z9s4yw9.js → config-yvrpaamn.js} +21 -21
- package/dist/chunks/{config-n9mr47st.js → config-ywabkmpb.js} +5 -5
- package/dist/chunks/{config-famd3pv6.js → config-yzd93mfj.js} +3 -3
- package/dist/chunks/{config-djtdz80w.js → config-z3xgatyd.js} +3 -3
- package/dist/chunks/{config-29x78va6.js → config-z63w68vq.js} +4 -4
- package/dist/chunks/{config-cdgrjcgr.js → config-zh34rd03.js} +27 -26
- package/dist/chunks/{config-9rccpk3b.js → config-zhhnkchw.js} +8 -8
- package/dist/chunks/{config-ht56m8ty.js → config-zker5bfq.js} +11 -11
- package/dist/chunks/{config-smdsd39q.js → config-zre25x07.js} +13 -13
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/command.js +63 -63
- package/dist/config/discovery.js +57 -57
- package/dist/config/normalize.js +16 -16
- package/dist/config/plugin/agent.js +87 -87
- package/dist/config/plugin/command.js +168 -168
- package/dist/config/plugin/compaction.js +119 -119
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +87 -87
- package/dist/config/plugin/instruction.js +64 -64
- package/dist/config/plugin/location-watcher.js +87 -87
- package/dist/config/plugin/mcp.js +91 -91
- package/dist/config/plugin/policy.js +85 -85
- package/dist/config/plugin/provider.js +85 -85
- package/dist/config/plugin/reference.js +89 -89
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +71 -71
- package/dist/config/plugin/skill.js +103 -103
- package/dist/config/plugin/snapshot.js +87 -87
- package/dist/config/plugin/source.js +83 -83
- package/dist/config/plugin/tool-output.js +88 -88
- package/dist/config/plugin/websearch.js +85 -85
- package/dist/config/plugin/worktree.js +89 -89
- package/dist/config/variable.js +2 -2
- package/dist/config.js +88 -88
- package/dist/credential.js +66 -66
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +35 -35
- package/dist/database/migration.js +36 -36
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +229 -229
- package/dist/environment/environment.js +64 -64
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +9 -9
- package/dist/file-mutation.js +61 -61
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +181 -181
- package/dist/filesystem/search.js +73 -73
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +12 -12
- package/dist/filesystem.js +70 -70
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +62 -62
- package/dist/generate.js +71 -71
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +302 -302
- package/dist/instruction-discovery.js +63 -63
- package/dist/instructions/builtins.js +62 -62
- package/dist/instructions/index.js +5 -5
- package/dist/integration.js +64 -64
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +16 -16
- package/dist/location-mutation.js +61 -61
- package/dist/location-service-map.js +63 -63
- package/dist/location-services.js +300 -300
- package/dist/location.js +56 -56
- package/dist/mcp/client.js +15 -15
- package/dist/mcp/index.js +75 -75
- package/dist/mcp/instructions.js +93 -93
- package/dist/mcp/stdio.js +61 -61
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +68 -68
- package/dist/model.js +10 -10
- package/dist/models-dev.js +68 -68
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +87 -87
- package/dist/persistent-pty/index.js +66 -66
- package/dist/persistent-pty.js +54 -54
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +68 -68
- package/dist/plugin/host.js +174 -174
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +273 -273
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +59 -59
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/plan.js +72 -72
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +89 -89
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +89 -89
- package/dist/plugin/provider/cloudflare-workers-ai.js +89 -89
- package/dist/plugin/provider/configured.js +87 -87
- package/dist/plugin/provider/github-copilot.js +62 -62
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +58 -58
- package/dist/plugin/provider/lmstudio.js +90 -90
- package/dist/plugin/provider/modal.js +61 -61
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +90 -90
- package/dist/plugin/provider/openai.js +61 -61
- package/dist/plugin/provider/opencode.js +58 -58
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +90 -90
- package/dist/plugin/provider/xai.js +59 -59
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +121 -121
- package/dist/plugin/sdk.js +59 -59
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +101 -101
- package/dist/plugin/supervisor.js +291 -291
- package/dist/plugin/system-prompt.js +4 -4
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/variant.js +2 -2
- package/dist/plugin/vcs/git.js +61 -61
- package/dist/plugin/vcs/hg.js +61 -61
- package/dist/plugin/warming.js +85 -85
- package/dist/plugin/websearch/exa.js +3 -3
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +184 -184
- package/dist/project.js +55 -55
- package/dist/provider.js +7 -7
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +70 -70
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +59 -59
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +66 -66
- package/dist/rpc.js +61 -61
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +96 -96
- package/dist/session/context.js +115 -115
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +115 -115
- package/dist/session/execution.js +96 -96
- package/dist/session/generate.js +116 -116
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +69 -69
- package/dist/session/model-request.js +87 -87
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +98 -98
- package/dist/session/projector.js +62 -62
- package/dist/session/prompt.js +75 -75
- package/dist/session/revert.js +63 -63
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +182 -182
- package/dist/session/runner/model.js +68 -68
- package/dist/session/runner/step.js +92 -92
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +134 -134
- package/dist/session/shell.js +98 -98
- package/dist/session/skill.js +73 -73
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +167 -167
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +118 -118
- package/dist/session/to-session-error.js +81 -81
- package/dist/session/transfer.js +109 -109
- package/dist/session.js +184 -184
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +101 -101
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +77 -77
- package/dist/skill.js +80 -80
- package/dist/snapshot.js +64 -64
- package/dist/tool/mcp.js +90 -90
- package/dist/tool/plugin/edit.js +87 -87
- package/dist/tool/plugin/glob.js +91 -91
- package/dist/tool/plugin/grep.js +89 -89
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +89 -89
- package/dist/tool/plugin/question.js +73 -73
- package/dist/tool/plugin/read.js +92 -92
- package/dist/tool/plugin/shell.js +169 -169
- package/dist/tool/plugin/skill.js +79 -79
- package/dist/tool/plugin/subagent.js +176 -176
- package/dist/tool/plugin/webfetch.js +79 -79
- package/dist/tool/plugin/websearch.js +74 -74
- package/dist/tool/plugin/write.js +89 -89
- package/dist/tool/read-filesystem.js +70 -70
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +8 -8
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +64 -64
- package/dist/websearch.js +65 -65
- package/dist/wellknown/plugin.js +58 -58
- package/dist/wellknown.js +61 -61
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +63 -63
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +4 -4
- package/dist/worktree/refresh.js +290 -290
- package/dist/worktree.js +68 -68
- package/package.json +7 -7
- package/dist/chunks/config-2j7y305z.js +0 -22
- package/dist/chunks/config-7zk4hah4.js +0 -4
- /package/dist/chunks/{config-2vbg8t8g.js → config-3qdjr5ym.js} +0 -0
- /package/dist/chunks/{config-z2qbjhyn.js → config-7xyrrtj6.js} +0 -0
- /package/dist/chunks/{config-h7vqmq4a.js → config-k8cz140w.js} +0 -0
- /package/dist/chunks/{config-hnxdesg1.js → config-pdk1dwn1.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./config-
|
|
3
|
+
} from "./config-2wqzt3cn.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./config-
|
|
5
|
+
Service66
|
|
6
|
+
} from "./config-az3ewtba.js";
|
|
7
7
|
import {
|
|
8
8
|
group2,
|
|
9
9
|
batch2,
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
inherit2
|
|
12
12
|
} from "./config-kg06axw8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Service33,
|
|
15
15
|
awaitActivation2
|
|
16
|
-
} from "./config-
|
|
16
|
+
} from "./config-rap9a73h.js";
|
|
17
17
|
import {
|
|
18
18
|
make11,
|
|
19
19
|
requirements3,
|
|
20
20
|
storage2
|
|
21
|
-
} from "./config-
|
|
21
|
+
} from "./config-8sst88kq.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./config-9rqn6x4v.js";
|
|
@@ -27,22 +27,22 @@ import {
|
|
|
27
27
|
var exports_plugin2 = {};
|
|
28
28
|
__export(exports_plugin2, {
|
|
29
29
|
Event: () => Event4,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID2,
|
|
31
|
+
Info: () => Info2,
|
|
32
32
|
Plugin: () => exports_plugin2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service33,
|
|
34
34
|
Source: () => Source2,
|
|
35
35
|
State: () => State2,
|
|
36
36
|
awaitActivation: () => awaitActivation2,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node22
|
|
38
38
|
});
|
|
39
|
-
import { Event as Event4, ID as
|
|
39
|
+
import { Event as Event4, ID as ID2, Info as Info2, Source as Source2, State as State2 } from "@opencode-ai/schema/plugin";
|
|
40
40
|
import { Plugin } from "@opencode-ai/schema/plugin";
|
|
41
41
|
import { Node } from "@opencode-ai/util/effect/app-node";
|
|
42
42
|
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
|
|
43
|
-
var layer = Layer.effect(
|
|
43
|
+
var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
44
44
|
const bus = yield* Service79;
|
|
45
|
-
const kv = yield*
|
|
45
|
+
const kv = yield* Service66;
|
|
46
46
|
const scope = yield* Scope.make();
|
|
47
47
|
const active = new Map;
|
|
48
48
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -205,7 +205,7 @@ var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
|
205
205
|
yield* shutdown2(Scope.close(scope, exit));
|
|
206
206
|
}));
|
|
207
207
|
yield* Effect.addFinalizer(close);
|
|
208
|
-
return
|
|
208
|
+
return Service33.of({
|
|
209
209
|
activate,
|
|
210
210
|
close,
|
|
211
211
|
awaitActivation: ready.await,
|
|
@@ -222,10 +222,10 @@ function slotInfo(slot) {
|
|
|
222
222
|
features: { server: true, ...slot.plugin.features }
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
service:
|
|
225
|
+
var node22 = Node.makeLocationNode({
|
|
226
|
+
service: Service33,
|
|
227
227
|
layer,
|
|
228
228
|
deps: [requirements3]
|
|
229
229
|
});
|
|
230
230
|
|
|
231
|
-
export {
|
|
231
|
+
export { node22, exports_plugin2, Event4, ID2, Info2, Source2, State2 };
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service76,
|
|
6
6
|
node81
|
|
7
|
-
} from "./config-
|
|
7
|
+
} from "./config-s0xz30kk.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./config-
|
|
9
|
+
Service17,
|
|
10
|
+
node20
|
|
11
|
+
} from "./config-mcwyqbfv.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options2,
|
|
25
|
+
Service: () => Service14,
|
|
26
|
+
configured: () => configured2,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer8,
|
|
29
|
+
node: () => node17,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode-ai/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options2 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service14 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
62
62
|
const location = yield* Service76;
|
|
63
|
-
const ripgrep = yield*
|
|
63
|
+
const ripgrep = yield* Service17;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,14 +105,14 @@ var ripgrepLayer2 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service14.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
115
|
+
var fffLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
116
116
|
const location = yield* Service76;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service14.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service14.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,7 +174,7 @@ var fffLayer2 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
177
|
+
var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
178
|
const location = yield* Service76;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
@@ -182,9 +182,9 @@ var layer10 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured2(options) {
|
|
186
|
+
return makeLocationNode({ service: Service14, layer: layer8(options), deps: [node81, node20] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node17 = configured2();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options2, Service14, ripgrepLayer2, fffLayer2, layer8, configured2, node17, exports_search };
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Service76,
|
|
7
7
|
node81
|
|
8
|
-
} from "./config-
|
|
8
|
+
} from "./config-s0xz30kk.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./config-
|
|
10
|
+
Service14,
|
|
11
|
+
node17
|
|
12
|
+
} from "./config-dvnq9x8h.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./config-9rqn6x4v.js";
|
|
@@ -21,7 +21,7 @@ __export(exports_filesystem, {
|
|
|
21
21
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
22
22
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
23
23
|
Entry: () => Entry2,
|
|
24
|
-
Event: () =>
|
|
24
|
+
Event: () => Event2,
|
|
25
25
|
FileSystem: () => exports_filesystem,
|
|
26
26
|
FindInput: () => FindInput2,
|
|
27
27
|
GlobInput: () => GlobInput2,
|
|
@@ -29,9 +29,9 @@ __export(exports_filesystem, {
|
|
|
29
29
|
ListInput: () => ListInput2,
|
|
30
30
|
Match: () => Match2,
|
|
31
31
|
ReadInput: () => ReadInput2,
|
|
32
|
-
Service: () =>
|
|
32
|
+
Service: () => Service13,
|
|
33
33
|
Submatch: () => Submatch2,
|
|
34
|
-
node: () =>
|
|
34
|
+
node: () => node16
|
|
35
35
|
});
|
|
36
36
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
37
37
|
import path from "path";
|
|
@@ -72,14 +72,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
72
72
|
limit: Schema.optionalKey(PositiveInt2)
|
|
73
73
|
}) {
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var Event2 = FileSystem.Event;
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service13 extends Context.Service()("@opencode/FileSystem") {
|
|
78
78
|
}
|
|
79
|
-
var baseLayer = Layer.effect(
|
|
79
|
+
var baseLayer = Layer.effect(Service13, Effect.gen(function* () {
|
|
80
80
|
const fs = yield* FSUtil.Service;
|
|
81
81
|
const location = yield* Service76;
|
|
82
|
-
const search = yield*
|
|
82
|
+
const search = yield* Service14;
|
|
83
83
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
84
84
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
85
85
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -90,7 +90,7 @@ var baseLayer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
90
90
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
91
91
|
return { absolute, real, directory: location.directory };
|
|
92
92
|
});
|
|
93
|
-
return
|
|
93
|
+
return Service13.of({
|
|
94
94
|
find: search.find,
|
|
95
95
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
96
96
|
const target = yield* resolve(input.path);
|
|
@@ -122,10 +122,10 @@ var baseLayer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
122
122
|
})
|
|
123
123
|
});
|
|
124
124
|
}));
|
|
125
|
-
var
|
|
126
|
-
service:
|
|
125
|
+
var node16 = makeLocationNode({
|
|
126
|
+
service: Service13,
|
|
127
127
|
layer: baseLayer,
|
|
128
|
-
deps: [FSUtil.node, node81,
|
|
128
|
+
deps: [FSUtil.node, node81, node17]
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
export { FindInput2, ReadInput2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2,
|
|
131
|
+
export { FindInput2, ReadInput2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event2, Service13, node16, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./config-
|
|
2
|
+
Service69
|
|
3
|
+
} from "./config-w4b4w6yp.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./config-
|
|
5
|
+
Service71
|
|
6
|
+
} from "./config-x6g7mdd1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./config-9rqn6x4v.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input13,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin45,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input13 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin45 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service69;
|
|
57
|
+
const permission = yield* Service71;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input13,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -115,4 +115,4 @@ function toField(question, index) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export { name13, description6,
|
|
118
|
+
export { name13, description6, Input13, Output9, CancelledError2, toModelContent7, Plugin45, exports_question };
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service79,
|
|
6
6
|
node84
|
|
7
|
-
} from "./config-
|
|
7
|
+
} from "./config-2wqzt3cn.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./config-
|
|
9
|
+
Event17,
|
|
10
|
+
Service70,
|
|
11
|
+
node75
|
|
12
|
+
} from "./config-4q2e07t1.js";
|
|
13
13
|
import {
|
|
14
14
|
Service76,
|
|
15
15
|
node81
|
|
16
|
-
} from "./config-
|
|
16
|
+
} from "./config-s0xz30kk.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./config-
|
|
18
|
+
Service52,
|
|
19
|
+
node55
|
|
20
|
+
} from "./config-x0bt72s0.js";
|
|
21
21
|
import {
|
|
22
22
|
ID11,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./config-
|
|
23
|
+
Service69,
|
|
24
|
+
node74
|
|
25
|
+
} from "./config-w4b4w6yp.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
@@ -30,9 +30,9 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
ID10,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./config-
|
|
33
|
+
Service68,
|
|
34
|
+
node73
|
|
35
|
+
} from "./config-f0xx6xrn.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
38
|
} from "./config-9rqn6x4v.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError3,
|
|
45
45
|
Options: () => Options5,
|
|
46
46
|
Prompt: () => Prompt2,
|
|
47
47
|
PromptArgument: () => PromptArgument2,
|
|
@@ -56,15 +56,15 @@ __export(exports_mcp4, {
|
|
|
56
56
|
ServerInfo: () => ServerInfo2,
|
|
57
57
|
ServerInstructions: () => ServerInstructions2,
|
|
58
58
|
ServerName: () => ServerName2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service37,
|
|
60
60
|
Status: () => Status2,
|
|
61
|
-
Tool: () =>
|
|
61
|
+
Tool: () => Tool2,
|
|
62
62
|
ToolCallError: () => ToolCallError2,
|
|
63
63
|
ToolResult: () => ToolResult2,
|
|
64
64
|
ToolResultContent: () => ToolResultContent2,
|
|
65
65
|
configured: () => configured5,
|
|
66
|
-
layer: () =>
|
|
67
|
-
node: () =>
|
|
66
|
+
layer: () => layer17,
|
|
67
|
+
node: () => node40
|
|
68
68
|
});
|
|
69
69
|
import { Mcp } from "@opencode-ai/schema/mcp";
|
|
70
70
|
import { McpEvent } from "@opencode-ai/schema/mcp-event";
|
|
@@ -91,7 +91,7 @@ class ServerInstructions2 extends Schema.Class("MCP.ServerInstructions")({
|
|
|
91
91
|
}) {
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
class
|
|
94
|
+
class Tool2 extends Schema.Class("MCP.Tool")({
|
|
95
95
|
server: ServerName2,
|
|
96
96
|
name: Schema.String,
|
|
97
97
|
codemode: Schema.Boolean.pipe(Schema.optional),
|
|
@@ -147,7 +147,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
|
147
147
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
148
148
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
149
149
|
|
|
150
|
-
class
|
|
150
|
+
class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
151
151
|
server: ServerName2
|
|
152
152
|
}) {
|
|
153
153
|
get message() {
|
|
@@ -165,7 +165,7 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
165
165
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
166
166
|
var cloneConfig = (config) => structuredClone(config);
|
|
167
167
|
|
|
168
|
-
class
|
|
168
|
+
class Service37 extends Context.Service()("@opencode/MCP") {
|
|
169
169
|
}
|
|
170
170
|
var Options5 = Schema.Struct({
|
|
171
171
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -173,13 +173,13 @@ var Options5 = Schema.Struct({
|
|
|
173
173
|
version: Schema.String
|
|
174
174
|
}))
|
|
175
175
|
});
|
|
176
|
-
var
|
|
176
|
+
var layer17 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
177
177
|
const location = yield* Service76;
|
|
178
|
-
const environment = yield*
|
|
178
|
+
const environment = yield* Service52;
|
|
179
179
|
const bus = yield* Service79;
|
|
180
|
-
const forms = yield*
|
|
181
|
-
const integration = yield*
|
|
182
|
-
const credentials = yield*
|
|
180
|
+
const forms = yield* Service69;
|
|
181
|
+
const integration = yield* Service68;
|
|
182
|
+
const credentials = yield* Service70;
|
|
183
183
|
const root = yield* Effect.scope;
|
|
184
184
|
const fork = yield* FiberSet.makeRuntime();
|
|
185
185
|
const entries = new Map;
|
|
@@ -216,7 +216,7 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
216
216
|
const name = ServerName2.make(server);
|
|
217
217
|
const entry = entries.get(name);
|
|
218
218
|
if (!entry)
|
|
219
|
-
return yield* new
|
|
219
|
+
return yield* new NotFoundError3({ server: name });
|
|
220
220
|
return { name, entry };
|
|
221
221
|
});
|
|
222
222
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
@@ -328,7 +328,7 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
328
328
|
yield* forms.reply({ id: formID, answer: { [URL_ELICITATION_FIELD_KEY]: true } }).pipe(Effect.ignore);
|
|
329
329
|
})
|
|
330
330
|
};
|
|
331
|
-
const toTool = (server, entry, def) => new
|
|
331
|
+
const toTool = (server, entry, def) => new Tool2({
|
|
332
332
|
server,
|
|
333
333
|
name: def.name,
|
|
334
334
|
codemode: entry.config.codemode,
|
|
@@ -403,7 +403,7 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
403
403
|
entry.scope = scope;
|
|
404
404
|
const authProvider = yield* connectProvider(entry);
|
|
405
405
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
406
|
-
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
406
|
+
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service52, environment), Scope.provide(scope), Effect.exit);
|
|
407
407
|
if (Exit.isSuccess(result)) {
|
|
408
408
|
entry.client = result.value.connection;
|
|
409
409
|
entry.tools = result.value.tools.map((def) => toTool(name, entry, def));
|
|
@@ -527,7 +527,7 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
527
527
|
yield* startServer(name, entry);
|
|
528
528
|
}).pipe(locks.withLock(name));
|
|
529
529
|
});
|
|
530
|
-
fork(bus.subscribe(
|
|
530
|
+
fork(bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
531
531
|
const state = create3({
|
|
532
532
|
name: "mcp",
|
|
533
533
|
initial: () => ({
|
|
@@ -557,7 +557,7 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
557
557
|
concurrency: "unbounded",
|
|
558
558
|
discard: true
|
|
559
559
|
}));
|
|
560
|
-
return
|
|
560
|
+
return Service37.of({
|
|
561
561
|
transform: state.transform,
|
|
562
562
|
reload: state.reload,
|
|
563
563
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -679,12 +679,12 @@ var layer18 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
|
679
679
|
}));
|
|
680
680
|
function configured5(options) {
|
|
681
681
|
return makeLocationNode({
|
|
682
|
-
service:
|
|
683
|
-
layer:
|
|
684
|
-
deps: [node81,
|
|
682
|
+
service: Service37,
|
|
683
|
+
layer: layer17(options),
|
|
684
|
+
deps: [node81, node55, node84, node74, node73, node75]
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
var
|
|
687
|
+
var node40 = configured5();
|
|
688
688
|
function toElicitationField(key, property, required) {
|
|
689
689
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
690
690
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -735,4 +735,4 @@ function toElicitationField(key, property, required) {
|
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
-
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2,
|
|
738
|
+
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool2, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError3, ToolCallError2, Service37, Options5, layer17, configured5, node40, exports_mcp4 };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin3,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
13
|
endpoint: () => endpoint3
|
|
14
14
|
});
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin3 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export { endpoint3,
|
|
83
|
+
export { endpoint3, Plugin3, exports_exa };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./config-
|
|
2
|
+
Service63
|
|
3
|
+
} from "./config-wv9wspwp.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./config-
|
|
5
|
+
Service37
|
|
6
|
+
} from "./config-ea6674rn.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./config-9rqn6x4v.js";
|
|
@@ -24,8 +24,8 @@ var Plugin23 = define({
|
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service63;
|
|
28
|
+
const mcp = yield* Service37;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|