@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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./config-
|
|
4
|
+
} from "./config-2wqzt3cn.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./config-
|
|
6
|
+
Service66,
|
|
7
|
+
node71
|
|
8
|
+
} from "./config-az3ewtba.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
11
|
} from "./config-kg06axw8.js";
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
var exports_websearch3 = {};
|
|
18
18
|
__export(exports_websearch3, {
|
|
19
19
|
DisabledError: () => DisabledError2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Input: () =>
|
|
20
|
+
Event: () => Event11,
|
|
21
|
+
ID: () => ID7,
|
|
22
|
+
Input: () => Input14,
|
|
23
23
|
Provider: () => Provider2,
|
|
24
24
|
ProviderKey: () => ProviderKey2,
|
|
25
25
|
ProviderNotFoundError: () => ProviderNotFoundError2,
|
|
@@ -28,27 +28,27 @@ __export(exports_websearch3, {
|
|
|
28
28
|
Response: () => Response2,
|
|
29
29
|
Result: () => Result2,
|
|
30
30
|
Selection: () => Selection2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service60,
|
|
32
32
|
WebSearch: () => exports_websearch3,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node65
|
|
34
34
|
});
|
|
35
35
|
import { WebSearch } from "@opencode-ai/schema/websearch";
|
|
36
36
|
import { Context, Effect, Layer, Option, Schema } from "effect";
|
|
37
37
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
38
|
-
import { Event as
|
|
39
|
-
var
|
|
38
|
+
import { Event as Event11 } from "@opencode-ai/schema/websearch";
|
|
39
|
+
var ID7 = WebSearch.ID;
|
|
40
40
|
var Provider2 = WebSearch.Provider;
|
|
41
|
-
var
|
|
41
|
+
var Input14 = WebSearch.Input;
|
|
42
42
|
var Result2 = WebSearch.Result;
|
|
43
43
|
var Response2 = WebSearch.Response;
|
|
44
44
|
var ProviderKey2 = "websearch:provider";
|
|
45
|
-
var Selection2 = Schema.Union([
|
|
45
|
+
var Selection2 = Schema.Union([ID7, Schema.Literal("random"), Schema.Literal(false)]);
|
|
46
46
|
|
|
47
47
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
51
|
-
providerID:
|
|
51
|
+
providerID: ID7
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -56,16 +56,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
59
|
-
providerID:
|
|
59
|
+
providerID: ID7,
|
|
60
60
|
cause: Schema.Defect()
|
|
61
61
|
}) {
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class Service60 extends Context.Service()("@opencode/WebSearch") {
|
|
65
65
|
}
|
|
66
|
-
var layer = Layer.effect(
|
|
66
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
67
67
|
const bus = yield* Service79;
|
|
68
|
-
const kv = yield*
|
|
68
|
+
const kv = yield* Service66;
|
|
69
69
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
70
70
|
const state = create3({
|
|
71
71
|
initial: () => ({ providers: new Map }),
|
|
@@ -106,7 +106,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
106
106
|
return yield* new ProviderRequiredError2;
|
|
107
107
|
return provider;
|
|
108
108
|
});
|
|
109
|
-
return
|
|
109
|
+
return Service60.of({
|
|
110
110
|
transform: state.transform,
|
|
111
111
|
reload: state.reload,
|
|
112
112
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -129,10 +129,10 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
131
|
}));
|
|
132
|
-
var
|
|
133
|
-
service:
|
|
132
|
+
var node65 = makeLocationNode({
|
|
133
|
+
service: Service60,
|
|
134
134
|
layer,
|
|
135
|
-
deps: [node84,
|
|
135
|
+
deps: [node84, node71]
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
export {
|
|
138
|
+
export { ID7, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service60, node65, exports_websearch3, Event11 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./config-
|
|
4
|
+
} from "./config-2wqzt3cn.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./config-9rqn6x4v.js";
|
|
@@ -17,16 +17,16 @@ __export(exports_form, {
|
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
19
|
ID: () => ID11,
|
|
20
|
-
Info: () =>
|
|
20
|
+
Info: () => Info25,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError7,
|
|
24
|
+
Reply: () => Reply2,
|
|
25
|
+
Service: () => Service69,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer25,
|
|
29
|
+
node: () => node74,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
@@ -36,15 +36,15 @@ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
|
36
36
|
import { Event as Event16 } from "@opencode-ai/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
38
|
var ID11 = Form.ID;
|
|
39
|
-
var
|
|
39
|
+
var Info25 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply2 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class NotFoundError7 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
48
|
id: ID11
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
@@ -79,15 +79,15 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service69 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var layer25 = Layer.effect(Service69, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service79;
|
|
86
86
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
87
87
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
88
88
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
89
89
|
});
|
|
90
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
90
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError7({ id })))));
|
|
91
91
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
92
92
|
const id = input.id ?? ID11.create();
|
|
93
93
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
@@ -153,9 +153,9 @@ var layer23 = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
153
153
|
yield* Deferred.succeed(entry.deferred, next);
|
|
154
154
|
})));
|
|
155
155
|
yield* Effect.addFinalizer(() => Cache.values(forms).pipe(Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true }))));
|
|
156
|
-
return
|
|
156
|
+
return Service69.of({ create, ask, get, list, state, reply, cancel });
|
|
157
157
|
}));
|
|
158
|
-
var
|
|
158
|
+
var node74 = makeLocationNode({ service: Service69, layer: layer25, deps: [node84] });
|
|
159
159
|
function validateAnswer2(form, answer) {
|
|
160
160
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
161
161
|
for (const key of Object.keys(answer)) {
|
|
@@ -307,4 +307,4 @@ function isDateTime(value) {
|
|
|
307
307
|
return !Number.isNaN(new Date(value).getTime());
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export { ID11,
|
|
310
|
+
export { ID11, Info25, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError7, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service69, layer25, node74, validateAnswer2, validateFields2, exports_form, Event16 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID16,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./config-
|
|
5
|
+
} from "./config-hqq8t1nz.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./config-
|
|
8
|
+
} from "./config-x6g7mdd1.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
11
|
} from "./config-9rqn6x4v.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
var exports_agent = {};
|
|
15
15
|
__export(exports_agent, {
|
|
16
16
|
AgentPlugin: () => exports_agent,
|
|
17
|
-
Plugin: () =>
|
|
17
|
+
Plugin: () => Plugin11
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin11 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin9 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID16.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID16.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin9 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID16.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID16.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID16.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin9 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin11, exports_agent };
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
var exports_driver = {};
|
|
7
7
|
__export(exports_driver, {
|
|
8
8
|
Binding: () => Binding2,
|
|
9
|
-
Error: () =>
|
|
9
|
+
Error: () => Error5,
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make18,
|
|
14
|
+
node: () => node57,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
20
20
|
var Binding2 = Schema.Record(Schema.String, Schema.Json);
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Error5 extends Schema.TaggedError()("WorkspaceDriver.Error", {
|
|
23
23
|
message: Schema.optional(Schema.String),
|
|
24
24
|
cause: Schema.optional(Schema.Defect())
|
|
25
25
|
}) {
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make18 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node57 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make18, RegistryService2, registry2, registryNode2, node57, exports_driver };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service79,
|
|
4
4
|
node84
|
|
5
|
-
} from "./config-
|
|
5
|
+
} from "./config-2wqzt3cn.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
Key4,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make21,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./config-
|
|
12
|
+
} from "./config-75yf2d83.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2
|
|
15
15
|
} from "./config-p8qxwesx.js";
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
// src/instruction-discovery.ts
|
|
24
24
|
var exports_instruction_discovery = {};
|
|
25
25
|
__export(exports_instruction_discovery, {
|
|
26
|
-
Event: () =>
|
|
26
|
+
Event: () => Event5,
|
|
27
27
|
File: () => File2,
|
|
28
28
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
29
29
|
Options: () => Options6,
|
|
30
|
-
Service: () =>
|
|
30
|
+
Service: () => Service40,
|
|
31
31
|
configured: () => configured6,
|
|
32
|
-
layer: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
layer: () => layer18,
|
|
33
|
+
node: () => node43
|
|
34
34
|
});
|
|
35
35
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
36
36
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -41,8 +41,8 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
41
41
|
}) {
|
|
42
42
|
}
|
|
43
43
|
var Files = Schema.Array(File2);
|
|
44
|
-
var key =
|
|
45
|
-
var
|
|
44
|
+
var key = Key4.make("core/instructions");
|
|
45
|
+
var Event5 = {
|
|
46
46
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
47
47
|
};
|
|
48
48
|
var Options6 = Schema.Struct({
|
|
@@ -50,9 +50,9 @@ var Options6 = Schema.Struct({
|
|
|
50
50
|
global: Schema.optional(Schema.Boolean)
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service40 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
54
54
|
}
|
|
55
|
-
var
|
|
55
|
+
var layer18 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service79;
|
|
57
57
|
const state = create3({
|
|
58
58
|
name: "instruction-discovery",
|
|
@@ -72,9 +72,9 @@ var layer19 = (options) => Layer.effect(Service45, Effect.gen(function* () {
|
|
|
72
72
|
editor.available = false;
|
|
73
73
|
}
|
|
74
74
|
}),
|
|
75
|
-
notify: () => bus.publish(
|
|
75
|
+
notify: () => bus.publish(Event5.Updated, {}).pipe(Effect.asVoid)
|
|
76
76
|
});
|
|
77
|
-
const source = (value) =>
|
|
77
|
+
const source = (value) => make21({
|
|
78
78
|
key,
|
|
79
79
|
codec: Schema.toCodecJson(Files),
|
|
80
80
|
read: Effect.succeed(value),
|
|
@@ -90,7 +90,7 @@ var layer19 = (options) => Layer.effect(Service45, Effect.gen(function* () {
|
|
|
90
90
|
return unavailable3;
|
|
91
91
|
return Array.from(current.files.values());
|
|
92
92
|
});
|
|
93
|
-
return
|
|
93
|
+
return Service40.of({
|
|
94
94
|
project: options?.project !== false,
|
|
95
95
|
global: options?.global !== false,
|
|
96
96
|
transform: state.transform,
|
|
@@ -106,12 +106,12 @@ var layer19 = (options) => Layer.effect(Service45, Effect.gen(function* () {
|
|
|
106
106
|
}));
|
|
107
107
|
function configured6(options) {
|
|
108
108
|
return makeLocationNode({
|
|
109
|
-
service:
|
|
110
|
-
layer:
|
|
109
|
+
service: Service40,
|
|
110
|
+
layer: layer18(options),
|
|
111
111
|
deps: [node84]
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
var
|
|
114
|
+
var node43 = configured6();
|
|
115
115
|
function render(files) {
|
|
116
116
|
return files.map((file) => `Instructions from: ${file.path}
|
|
117
117
|
${file.content}`).join(`
|
|
@@ -142,4 +142,4 @@ ${render([after])}`;
|
|
|
142
142
|
`);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export { File2,
|
|
145
|
+
export { File2, Event5, Options6, Service40, layer18, configured6, node43, exports_instruction_discovery };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
ascending2
|
|
3
3
|
} from "./config-k4bwy1x5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./config-
|
|
5
|
+
Service66,
|
|
6
|
+
node71
|
|
7
|
+
} from "./config-az3ewtba.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionMessage2
|
|
10
10
|
} from "./config-982e01ww.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./config-
|
|
13
|
+
} from "./config-mq9r6drf.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./config-9rqn6x4v.js";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
var exports_job = {};
|
|
20
20
|
__export(exports_job, {
|
|
21
21
|
Job: () => exports_job,
|
|
22
|
-
Service: () =>
|
|
23
|
-
make: () =>
|
|
24
|
-
node: () =>
|
|
22
|
+
Service: () => Service45,
|
|
23
|
+
make: () => make17,
|
|
24
|
+
node: () => node48
|
|
25
25
|
});
|
|
26
26
|
import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
|
|
27
27
|
import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -50,7 +50,7 @@ var Background = Schema.Struct({
|
|
|
50
50
|
var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
51
51
|
var backgroundPrefix = "job.background/";
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service45 extends Context.Service()("@opencode/Job") {
|
|
54
54
|
}
|
|
55
55
|
function snapshot(job) {
|
|
56
56
|
return {
|
|
@@ -77,8 +77,8 @@ function decrementSession(input, sessionID) {
|
|
|
77
77
|
next.set(sessionID, count - 1);
|
|
78
78
|
return next;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
const kv = yield*
|
|
80
|
+
var make17 = Effect.gen(function* () {
|
|
81
|
+
const kv = yield* Service66;
|
|
82
82
|
const state = {
|
|
83
83
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
84
84
|
scope: yield* Scope.Scope
|
|
@@ -307,7 +307,7 @@ var make19 = Effect.gen(function* () {
|
|
|
307
307
|
return recovered;
|
|
308
308
|
}).pipe(Effect.withSpan("Job.pendingBackground"));
|
|
309
309
|
const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => kv.remove(`${backgroundPrefix}${notificationID}`));
|
|
310
|
-
return
|
|
310
|
+
return Service45.of({
|
|
311
311
|
get,
|
|
312
312
|
start,
|
|
313
313
|
wait,
|
|
@@ -319,7 +319,7 @@ var make19 = Effect.gen(function* () {
|
|
|
319
319
|
completeBackground
|
|
320
320
|
});
|
|
321
321
|
});
|
|
322
|
-
var layer = Layer.effect(
|
|
323
|
-
var
|
|
322
|
+
var layer = Layer.effect(Service45, make17);
|
|
323
|
+
var node48 = makeGlobalNode({ service: Service45, layer, deps: [node71] });
|
|
324
324
|
|
|
325
|
-
export {
|
|
325
|
+
export { Service45, make17, node48, exports_job };
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
node83
|
|
7
7
|
} from "./config-eg4pr325.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse4,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./config-
|
|
13
|
+
} from "./config-2402vzrj.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./config-
|
|
15
|
+
Service66,
|
|
16
|
+
node71
|
|
17
|
+
} from "./config-az3ewtba.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./config-9rqn6x4v.js";
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service49,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node52,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service49 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
106
|
const git = yield* Service78;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service66;
|
|
110
|
+
return Service49.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
114
114
|
const repository = input.reference.label;
|
|
115
115
|
const localPath = cachePath2(global.repos, input.reference, input.branch);
|
|
116
116
|
const key = `repository-cache:${localPath}`;
|
|
117
|
-
const cloneTarget =
|
|
117
|
+
const cloneTarget = parse4(input.reference.remote) ?? input.reference;
|
|
118
118
|
return yield* flock.withLock(Effect.gen(function* () {
|
|
119
119
|
yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
|
|
120
120
|
const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
|
|
121
121
|
const origin = existing ? yield* git.remote.get(existing) : undefined;
|
|
122
|
-
const originReference = origin ?
|
|
122
|
+
const originReference = origin ? parse4(origin) : undefined;
|
|
123
123
|
const worktree = existing ? yield* fs.resolve(localPath) : undefined;
|
|
124
124
|
const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
|
|
125
125
|
if (!reuse && (yield* fs.existsSafe(localPath))) {
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node52 = makeGlobalNode({
|
|
171
|
+
service: Service49,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node, node83, Global.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node83, Global.node, node71]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service49, isError2, validateBranch2, node52, exports_repository_cache };
|