@opencode/core 0.0.0-dev-20775 → 0.0.0-dev-20777
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 +66 -66
- package/dist/aisdk-native.js +64 -64
- package/dist/aisdk.js +69 -69
- package/dist/app.js +7 -7
- package/dist/bus.js +52 -52
- package/dist/chunks/{location-f0q4wdtr.js → location-02609e96.js} +13 -13
- package/dist/chunks/{location-x46t862s.js → location-05p4mhbg.js} +6 -6
- package/dist/chunks/location-0gzjc7ft.js +253 -0
- package/dist/chunks/{location-cycet1pr.js → location-15xcwm9t.js} +1 -1
- package/dist/chunks/location-1fq0wp1e.js +26 -0
- package/dist/chunks/{location-jc2mtm7q.js → location-1g5f91mn.js} +29 -29
- package/dist/chunks/{location-hg7mrb4w.js → location-1gmkcf0p.js} +7 -7
- package/dist/chunks/{location-fwh2zgtw.js → location-1h8se44f.js} +10 -10
- package/dist/chunks/{location-g9ak4sjw.js → location-1ts7y3cx.js} +9 -9
- package/dist/chunks/{location-3bv3jwr8.js → location-1v74vwhm.js} +11 -11
- package/dist/chunks/{location-7taj1gp1.js → location-1v9scpnw.js} +17 -17
- package/dist/chunks/{location-x9q78qat.js → location-1z20pv40.js} +15 -15
- package/dist/chunks/{location-7r962cny.js → location-22tdpft4.js} +20 -20
- package/dist/chunks/{location-6x4f2nxf.js → location-24skg3e0.js} +22 -22
- package/dist/chunks/{location-vgbc38w6.js → location-257vwa0c.js} +17 -17
- package/dist/chunks/{location-4t6c5kv5.js → location-283v9wt3.js} +13 -13
- package/dist/chunks/{location-8e1vnns2.js → location-2a084xpy.js} +1 -1
- package/dist/chunks/{location-2sdrxmhf.js → location-2fpnaz5h.js} +19 -19
- package/dist/chunks/{location-rkxa6zgp.js → location-2jy94dam.js} +17 -17
- package/dist/chunks/{location-ted02x33.js → location-2kw5qtk9.js} +39 -39
- package/dist/chunks/{location-yern2px4.js → location-3jpnnrb4.js} +12 -12
- package/dist/chunks/{location-98bzyxjk.js → location-3pxsat6s.js} +21 -21
- package/dist/chunks/{location-95ee23zy.js → location-3qb0mese.js} +1 -1
- package/dist/chunks/{location-kvkh2tnc.js → location-42y5raaz.js} +12 -12
- package/dist/chunks/{location-e4w2kpmf.js → location-44rac60e.js} +12 -12
- package/dist/chunks/{location-qne3fa44.js → location-47jkzegy.js} +3 -3
- package/dist/chunks/{location-e6fsf12c.js → location-47r5a3mx.js} +8 -8
- package/dist/chunks/{location-dxnfbexj.js → location-4b5b0vhn.js} +6 -6
- package/dist/chunks/{location-dyjc66w4.js → location-4bar7sar.js} +28 -28
- package/dist/chunks/{location-aeqpwm0h.js → location-4pedpz6c.js} +11 -11
- package/dist/chunks/{location-2ccvkpx1.js → location-4ts7tf6z.js} +1 -1
- package/dist/chunks/{location-9jvk4y4z.js → location-4vvqa2vj.js} +76 -76
- package/dist/chunks/{location-6yz0wx8n.js → location-4xpgt2w9.js} +3 -3
- package/dist/chunks/{location-7cxwgp8h.js → location-4zxfccqq.js} +16 -16
- package/dist/chunks/{location-cek985gc.js → location-50pnv838.js} +17 -17
- package/dist/chunks/{location-sxzvkvgj.js → location-51f5btjf.js} +5 -5
- package/dist/chunks/{location-4y5nd1mc.js → location-57ehm7c4.js} +19 -19
- package/dist/chunks/{location-ychzzj24.js → location-5h0p9j5c.js} +4 -4
- package/dist/chunks/{location-aymppdes.js → location-5hps0jc8.js} +3 -3
- package/dist/chunks/{location-e3qxr5gk.js → location-5qd3pb7m.js} +2 -2
- package/dist/chunks/{location-bqgthy8n.js → location-6hcrkmvd.js} +7 -7
- package/dist/chunks/{location-wraxjda7.js → location-6qv3krp1.js} +7 -7
- package/dist/chunks/{location-pw009p93.js → location-6t1m34v8.js} +2 -2
- package/dist/chunks/{location-vc4tj14c.js → location-6tyzbyh4.js} +12 -12
- package/dist/chunks/{location-k8p89crg.js → location-6whpyrs3.js} +40 -40
- package/dist/chunks/{location-8sb414s3.js → location-6zztp22y.js} +42 -42
- package/dist/chunks/{location-wmvjtpcg.js → location-724avf7x.js} +15 -15
- package/dist/chunks/{location-gwfc688y.js → location-73gdyt7p.js} +8 -8
- package/dist/chunks/{location-9ay8cp4x.js → location-77392vks.js} +7 -7
- package/dist/chunks/{location-15z50455.js → location-7am7j62s.js} +7 -7
- package/dist/chunks/{location-y2072sec.js → location-7fyyg3d8.js} +13 -13
- package/dist/chunks/{location-8vd0j1f8.js → location-7wpc5jwh.js} +1 -1
- package/dist/chunks/{location-a1gpj94z.js → location-7yh4e7ss.js} +2 -2
- package/dist/chunks/{location-2rzygbsc.js → location-7z0vcwsq.js} +5 -5
- package/dist/chunks/{location-c9jygpac.js → location-7zz0tb2m.js} +316 -316
- package/dist/chunks/{location-hp2pwxv9.js → location-83vepgva.js} +18 -18
- package/dist/chunks/{location-z5xex4x1.js → location-8b345ry2.js} +6 -6
- package/dist/chunks/{location-0p1raf8m.js → location-8pfsh0gj.js} +21 -21
- package/dist/chunks/{location-qzrn5gaa.js → location-8snddydh.js} +1 -1
- package/dist/chunks/{location-c3k6pm0m.js → location-8y8dfhw6.js} +9 -9
- package/dist/chunks/{location-d1zydk9p.js → location-922xc4bs.js} +13 -13
- package/dist/chunks/{location-e9f9fkm3.js → location-9cwykwg4.js} +30 -30
- package/dist/chunks/{location-rhjbct0v.js → location-9t7a50xb.js} +3 -3
- package/dist/chunks/{location-2pnhn36q.js → location-a8bn8zg0.js} +20 -20
- package/dist/chunks/{location-x375nta7.js → location-ac3dnfkw.js} +5 -5
- package/dist/chunks/{location-x661k3y3.js → location-addxnjmp.js} +3 -3
- package/dist/chunks/{location-7jhf9c6g.js → location-agg46hj7.js} +7 -7
- package/dist/chunks/{location-ba07h9gm.js → location-arz7hw7x.js} +3 -3
- package/dist/chunks/{location-x1ayq2cp.js → location-asvfb1gz.js} +20 -20
- package/dist/chunks/{location-d9hw3rrm.js → location-b3e58hyc.js} +25 -25
- package/dist/chunks/{location-vkzh2jfz.js → location-b4m962yk.js} +20 -20
- package/dist/chunks/{location-f5ca9dwf.js → location-b69x7x7h.js} +2 -2
- package/dist/chunks/{location-1j6m9z8v.js → location-b8d9rq7p.js} +26 -26
- package/dist/chunks/{location-82ztv55b.js → location-bem8en1s.js} +14 -14
- package/dist/chunks/{location-qer0ttcg.js → location-bmq95mvw.js} +3 -3
- package/dist/chunks/{location-5tmy9zrn.js → location-by659cs7.js} +1 -1
- package/dist/chunks/{location-8snsr8xz.js → location-c00fv4ar.js} +13 -13
- package/dist/chunks/{location-rz5rekj6.js → location-c26ps2t9.js} +11 -11
- package/dist/chunks/{location-bhjqanaq.js → location-c5g770ce.js} +7 -7
- package/dist/chunks/{location-gy93zegn.js → location-ch3qpzfg.js} +8 -8
- package/dist/chunks/{location-5jjk48mt.js → location-cnwjz3s5.js} +22 -22
- package/dist/chunks/{location-vfjhn2wd.js → location-cp937pt4.js} +3 -3
- package/dist/chunks/{location-y7h48m45.js → location-crvcnxkj.js} +2 -2
- package/dist/chunks/{location-qccn18aw.js → location-cvmt8rk0.js} +14 -14
- package/dist/chunks/{location-5jx09pxm.js → location-das60bkc.js} +22 -22
- package/dist/chunks/{location-3g10c0nv.js → location-dc34mbvf.js} +1 -1
- package/dist/chunks/{location-rsxcvxxn.js → location-dhddhhrc.js} +9 -9
- package/dist/chunks/{location-ea95x05p.js → location-ds1wy84x.js} +13 -13
- package/dist/chunks/{location-1x11rq2a.js → location-dxj72tfx.js} +4 -4
- package/dist/chunks/{location-bah8gbxw.js → location-dzt4t18k.js} +5 -5
- package/dist/chunks/{location-bprjyzj4.js → location-eba7m2bv.js} +9 -9
- package/dist/chunks/{location-dv5jzpe1.js → location-ejfryj65.js} +2 -2
- package/dist/chunks/{location-21zr8p49.js → location-enppsyr8.js} +1 -1
- package/dist/chunks/{location-e66rkf12.js → location-ep4m400e.js} +16 -16
- package/dist/chunks/{location-a89e0tac.js → location-ermxvwhp.js} +3 -3
- package/dist/chunks/{location-mdp3e6p6.js → location-essarsw2.js} +24 -24
- package/dist/chunks/{location-hjkk9tvw.js → location-etvz4dq0.js} +17 -17
- package/dist/chunks/{location-gspcenjq.js → location-ey3qhexw.js} +5 -5
- package/dist/chunks/{location-j1qv9ecs.js → location-f2332hgj.js} +9 -9
- package/dist/chunks/{location-2rehhz5t.js → location-f2mw6jyj.js} +8 -8
- package/dist/chunks/{location-7bq79643.js → location-f4jsfm31.js} +28 -28
- package/dist/chunks/{location-75bh4ajr.js → location-ffa51ey5.js} +9 -9
- package/dist/chunks/{location-hhd5kg11.js → location-fgkdc7jh.js} +16 -16
- package/dist/chunks/{location-fwbpahwh.js → location-fsvxdad5.js} +2 -2
- package/dist/chunks/{location-gb9b0k6n.js → location-fyb3fekh.js} +11 -11
- package/dist/chunks/{location-830hjgb9.js → location-fzpqnkcj.js} +1 -1
- package/dist/chunks/{location-w6nf2t4d.js → location-g6z45s58.js} +9 -9
- package/dist/chunks/{location-xs9sm4qv.js → location-ge2jb4mz.js} +14 -14
- package/dist/chunks/{location-7p986w0g.js → location-geyqfexr.js} +9 -9
- package/dist/chunks/{location-rdxaq8bh.js → location-gy1mt2vm.js} +11 -11
- package/dist/chunks/{location-yda4wkbn.js → location-h2xnf45v.js} +15 -15
- package/dist/chunks/{location-tc14gx3q.js → location-h4ckqw4f.js} +9 -9
- package/dist/chunks/{location-x3g43msc.js → location-h72xck84.js} +22 -22
- package/dist/chunks/{location-exm7qxnh.js → location-h788nv4n.js} +16 -16
- package/dist/chunks/{location-a2eq7efn.js → location-hfpbvkxs.js} +14 -14
- package/dist/chunks/{location-rzs3gq0x.js → location-hpfvhvya.js} +7 -7
- package/dist/chunks/{location-1yhdpabq.js → location-hzfdd747.js} +10 -10
- package/dist/chunks/{location-kttg2wpw.js → location-j793y9ay.js} +37 -37
- package/dist/chunks/{location-eaezvagx.js → location-j8s9ab9g.js} +7 -7
- package/dist/chunks/{location-tsq3qyw6.js → location-j97mndf0.js} +6 -6
- package/dist/chunks/{location-mk1p5ebg.js → location-jph2mfn8.js} +10 -10
- package/dist/chunks/{location-cadbnk3n.js → location-k2v3a0tj.js} +16 -16
- package/dist/chunks/{location-966y4f2f.js → location-k58rqv26.js} +6 -6
- package/dist/chunks/{location-8a6ws7jr.js → location-k70p9jzb.js} +7 -7
- package/dist/chunks/{location-atrnmt3x.js → location-kf8rbkby.js} +22 -22
- package/dist/chunks/{location-6mkt9mm7.js → location-m46z4pcf.js} +302 -302
- package/dist/chunks/{location-9dpd9382.js → location-m55qy151.js} +8 -8
- package/dist/chunks/{location-wnbbbc1f.js → location-m9an57nd.js} +8 -8
- package/dist/chunks/{location-g9fnv454.js → location-mc5akg63.js} +30 -30
- package/dist/chunks/{location-33w4ejhs.js → location-mfqp6xfm.js} +7 -7
- package/dist/chunks/{location-c529yjm2.js → location-mn8ry2gg.js} +13 -13
- package/dist/chunks/{location-2btnaz5j.js → location-mq882t6m.js} +10 -10
- package/dist/chunks/{location-x4s254pk.js → location-mt66mygc.js} +9 -9
- package/dist/chunks/{location-0r16tc9t.js → location-mt74ad40.js} +6 -6
- package/dist/chunks/{location-46f7t24m.js → location-mw9b1c9f.js} +9 -9
- package/dist/chunks/{location-dq9pghd8.js → location-mye8z46x.js} +17 -17
- package/dist/chunks/{location-1ffbm2jk.js → location-n0kpyt58.js} +8 -8
- package/dist/chunks/{location-32vwv81y.js → location-n7yx15r7.js} +2 -2
- package/dist/chunks/{location-f3nmm34k.js → location-na7ss97r.js} +14 -14
- package/dist/chunks/{location-tgzbhyj9.js → location-np6bm2as.js} +3 -3
- package/dist/chunks/{location-85xxa1xb.js → location-nqxj0yn4.js} +1 -1
- package/dist/chunks/{location-3bnybhwv.js → location-nxpp2y2e.js} +9 -9
- package/dist/chunks/{location-3bc8czyk.js → location-nyqx1cb3.js} +3 -3
- package/dist/chunks/{location-ngkn9htn.js → location-p0cpcvwn.js} +13 -13
- package/dist/chunks/{location-rp0hxcbj.js → location-p3pp3bgs.js} +12 -12
- package/dist/chunks/{location-czfptnv9.js → location-pa8pe2x7.js} +3 -3
- package/dist/chunks/{location-rg98346q.js → location-pbavp9d4.js} +10 -10
- package/dist/chunks/{location-b0cjfwep.js → location-pjvjbv32.js} +10 -10
- package/dist/chunks/{location-1g96y08y.js → location-pnaxc6j9.js} +7 -7
- package/dist/chunks/{location-jhdf29st.js → location-pnzf6mjf.js} +1 -1
- package/dist/chunks/{location-qjskteme.js → location-ppc2pnsb.js} +4 -4
- package/dist/chunks/{location-cy5473yv.js → location-pqxmmrpw.js} +52 -52
- package/dist/chunks/{location-sx4ak346.js → location-py28mc1m.js} +8 -8
- package/dist/chunks/{location-8sze2n9a.js → location-py3kkmfq.js} +4 -4
- package/dist/chunks/{location-0j77ygfz.js → location-q0xm7vwc.js} +4 -4
- package/dist/chunks/{location-tprb9ykm.js → location-qa96c720.js} +7 -7
- package/dist/chunks/{location-3ra60fwk.js → location-qh3vb1tn.js} +8 -8
- package/dist/chunks/{location-w86wbf1j.js → location-qhqe7njz.js} +34 -34
- package/dist/chunks/{location-djszqvmq.js → location-qmqgtz8f.js} +7 -7
- package/dist/chunks/{location-e3bfyvz4.js → location-qmxh83kc.js} +45 -45
- package/dist/chunks/{location-kxg060tx.js → location-qr0pk10y.js} +19 -19
- package/dist/chunks/{location-7s5y6dw1.js → location-qww9nh48.js} +39 -39
- package/dist/chunks/{location-p0aj1n0s.js → location-qxp4d2xp.js} +15 -15
- package/dist/chunks/{location-nw13281a.js → location-r58s4v78.js} +7 -7
- package/dist/chunks/{location-6sqw58ss.js → location-r5atvkz9.js} +8 -8
- package/dist/chunks/{location-3k3te7za.js → location-rb6kc9en.js} +4 -4
- package/dist/chunks/{location-bfdarn04.js → location-rf5ebq4s.js} +22 -22
- package/dist/chunks/{location-3nchn6gg.js → location-rmg8r6ny.js} +8 -8
- package/dist/chunks/{location-6eebjgwm.js → location-rnffhph3.js} +1 -1
- package/dist/chunks/{location-qpg39g1v.js → location-s1rrpmaa.js} +23 -23
- package/dist/chunks/{location-s0828w64.js → location-sdq79vbt.js} +18 -18
- package/dist/chunks/{location-js51bcx5.js → location-sfe13qt9.js} +15 -15
- package/dist/chunks/{location-6jt2mj9c.js → location-smz349yv.js} +25 -25
- package/dist/chunks/{location-ntemkh0x.js → location-spvg49p3.js} +30 -30
- package/dist/chunks/{location-zc6x355b.js → location-sws9dtgm.js} +3 -3
- package/dist/chunks/{location-jfqtm2ew.js → location-t2fc4mz5.js} +3 -3
- package/dist/chunks/{location-8pxk0waf.js → location-t5z5wvj2.js} +4 -4
- package/dist/chunks/{location-s7ng95pt.js → location-t6wbbrfa.js} +24 -24
- package/dist/chunks/{location-qam56xsc.js → location-t7cpp3m0.js} +1 -1
- package/dist/chunks/{location-bf4gbvg4.js → location-t9ew0xaf.js} +7 -7
- package/dist/chunks/{location-v85wqnzs.js → location-t9xcwzrx.js} +13 -13
- package/dist/chunks/{location-ayk9da8a.js → location-ta6y1msd.js} +63 -63
- package/dist/chunks/{location-n21dbq43.js → location-thkbvcgx.js} +1 -1
- package/dist/chunks/{location-ax1c0hpd.js → location-tnr8ce74.js} +27 -27
- package/dist/chunks/{location-8tb93y3v.js → location-tz3m3brz.js} +4 -4
- package/dist/chunks/{location-dca2v3qb.js → location-v7yprycd.js} +8 -8
- package/dist/chunks/{location-756q5zcd.js → location-v8jdkmfs.js} +12 -12
- package/dist/chunks/{location-h12ndvyr.js → location-v9tbcfk2.js} +11 -11
- package/dist/chunks/{location-kpgz6ev9.js → location-vaskyz0h.js} +29 -29
- package/dist/chunks/{location-as7cf5zz.js → location-vn72gsba.js} +1 -1
- package/dist/chunks/{location-3msgmyha.js → location-w0nqy3aq.js} +5 -5
- package/dist/chunks/{location-9de4qsp2.js → location-wb7mg7fb.js} +6 -6
- package/dist/chunks/{location-eye44qas.js → location-wbt9zsn3.js} +7 -7
- package/dist/chunks/{location-da7cwfsq.js → location-wp8xfje7.js} +22 -22
- package/dist/chunks/{location-tkj00vfs.js → location-ws2bx7td.js} +1 -1
- package/dist/chunks/{location-nbrfrcy0.js → location-wt19589t.js} +2 -2
- package/dist/chunks/{location-rza1ksjw.js → location-x2tcbxjk.js} +26 -26
- package/dist/chunks/{location-d8q1c04z.js → location-xfgbrct6.js} +15 -15
- package/dist/chunks/{location-kjms2vrd.js → location-xn2v0njk.js} +9 -9
- package/dist/chunks/{location-z86epv9q.js → location-xpfnkknw.js} +28 -28
- package/dist/chunks/{location-a7jqre2k.js → location-xpg5nf0s.js} +28 -28
- package/dist/chunks/{location-gknjsggn.js → location-xpt096d7.js} +1 -1
- package/dist/chunks/{location-8tt02aa5.js → location-xs12am9p.js} +5 -5
- package/dist/chunks/{location-sejb9e2v.js → location-xvf4b5tc.js} +22 -22
- package/dist/chunks/{location-09asyzbj.js → location-y0hnatt9.js} +13 -13
- package/dist/chunks/{location-asbt5hc3.js → location-y4eq9c7t.js} +9 -9
- package/dist/chunks/{location-4nj4bn9q.js → location-y56ehv6b.js} +3 -3
- package/dist/chunks/{location-mjac82m3.js → location-y7rk29wk.js} +12 -12
- package/dist/chunks/{location-2d0zrvb9.js → location-ya99b1bg.js} +127 -127
- package/dist/chunks/{location-ayf7de5y.js → location-yb1pbjke.js} +23 -23
- package/dist/chunks/{location-19asy4jh.js → location-yjzd8xzf.js} +9 -9
- package/dist/chunks/{location-5dkn69vz.js → location-yrcj3v3g.js} +3 -3
- package/dist/chunks/{location-brwsd5y5.js → location-ywcwnstf.js} +10 -10
- package/dist/chunks/{location-69y7y1vt.js → location-yx4j6h9t.js} +75 -75
- package/dist/chunks/{location-wgrzeraf.js → location-z8nhrpf5.js} +17 -17
- package/dist/chunks/{location-2vs2nh1n.js → location-zcrspsvn.js} +3 -3
- package/dist/chunks/{location-ek753qrj.js → location-zdw14zwb.js} +8 -8
- package/dist/chunks/{location-r23aaksv.js → location-zg3gffzg.js} +1 -1
- package/dist/chunks/{location-b3f8fkhc.js → location-zyk1yjk8.js} +3 -3
- package/dist/chunks/{location-x45ymrje.js → location-zzz4tyg8.js} +25 -25
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +66 -66
- package/dist/config/discovery.js +59 -59
- package/dist/config/normalize.js +72 -72
- package/dist/config/plugin/agent.js +87 -87
- package/dist/config/plugin/command.js +165 -165
- package/dist/config/plugin/compaction.js +117 -117
- package/dist/config/plugin/compatibility.js +103 -103
- package/dist/config/plugin/formatter.js +86 -86
- package/dist/config/plugin/image.js +85 -85
- package/dist/config/plugin/instruction.js +66 -66
- package/dist/config/plugin/location-watcher.js +85 -85
- package/dist/config/plugin/mcp.js +92 -92
- package/dist/config/plugin/policy.js +86 -86
- package/dist/config/plugin/provider.js +85 -85
- package/dist/config/plugin/reference.js +87 -87
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +106 -106
- package/dist/config/plugin/snapshot.js +85 -85
- package/dist/config/plugin/source.js +88 -88
- package/dist/config/plugin/tool-output.js +86 -86
- package/dist/config/plugin/websearch.js +86 -86
- package/dist/config/plugin/worktree.js +87 -87
- package/dist/config/variable.js +2 -2
- package/dist/config.js +85 -85
- package/dist/credential.js +60 -60
- 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 +39 -39
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +232 -232
- package/dist/environment/environment.js +67 -67
- package/dist/environment/index.js +69 -69
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +68 -68
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +177 -177
- package/dist/filesystem/search.js +75 -75
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +8 -8
- package/dist/filesystem.js +78 -78
- package/dist/form.js +59 -59
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +64 -64
- package/dist/generate.js +74 -74
- package/dist/git.js +2 -2
- 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 +74 -74
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- 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 +307 -307
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +64 -64
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +64 -64
- package/dist/job.js +58 -58
- package/dist/kv.js +52 -52
- package/dist/location-activity.js +51 -51
- package/dist/location-lifecycle.js +81 -81
- package/dist/location-service-map.js +63 -63
- package/dist/location-services.js +306 -306
- package/dist/location.js +58 -58
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +16 -16
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +98 -98
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +64 -64
- package/dist/modal/models.js +74 -74
- package/dist/model-resolver.js +73 -73
- package/dist/model.js +71 -71
- package/dist/models-dev.js +81 -81
- package/dist/permission/saved.js +62 -62
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +59 -59
- package/dist/plugin/command.js +74 -74
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +170 -170
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +280 -280
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +70 -70
- package/dist/plugin/module.js +86 -86
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +65 -65
- package/dist/plugin/provider/azure.js +86 -86
- package/dist/plugin/provider/chatgpt.js +67 -67
- package/dist/plugin/provider/cloudflare-ai-gateway.js +83 -83
- package/dist/plugin/provider/cloudflare-workers-ai.js +83 -83
- package/dist/plugin/provider/configured.js +82 -82
- package/dist/plugin/provider/digitalocean.js +67 -67
- package/dist/plugin/provider/github-copilot.js +69 -69
- package/dist/plugin/provider/gitlab.js +67 -67
- package/dist/plugin/provider/google-vertex.js +83 -83
- package/dist/plugin/provider/llmgateway.js +59 -59
- package/dist/plugin/provider/lmstudio.js +86 -86
- package/dist/plugin/provider/local.js +83 -83
- package/dist/plugin/provider/modal.js +67 -67
- package/dist/plugin/provider/ollama.js +86 -86
- package/dist/plugin/provider/openai.js +68 -68
- package/dist/plugin/provider/opencode.js +70 -70
- package/dist/plugin/provider/openrouter.js +66 -66
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/prompt-cache-key.js +65 -65
- package/dist/plugin/provider/sap-ai-core.js +65 -65
- package/dist/plugin/provider/snowflake-cortex.js +84 -84
- package/dist/plugin/provider/vercel.js +65 -65
- package/dist/plugin/provider/vllm.js +86 -86
- package/dist/plugin/provider/xai.js +66 -66
- 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 +100 -100
- package/dist/plugin/supervisor.js +298 -298
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/vcs/git.js +63 -63
- package/dist/plugin/vcs/hg.js +63 -63
- package/dist/plugin/verbosity.js +68 -68
- package/dist/plugin/warming.js +84 -84
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +179 -179
- package/dist/project.js +57 -57
- package/dist/provider.js +70 -70
- package/dist/pty.js +67 -67
- package/dist/reference/instructions.js +67 -67
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +60 -60
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +63 -63
- package/dist/session/command.js +57 -57
- package/dist/session/compaction.js +101 -101
- package/dist/session/context.js +117 -117
- package/dist/session/diff.js +63 -63
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +109 -109
- package/dist/session/execution.js +95 -95
- package/dist/session/generate.js +116 -116
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +63 -63
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +87 -87
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +98 -98
- package/dist/session/projector.js +62 -62
- package/dist/session/prompt.js +78 -78
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +64 -64
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +181 -181
- package/dist/session/runner/model.js +69 -69
- package/dist/session/runner/publish-llm-event.js +84 -84
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +92 -92
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +126 -126
- package/dist/session/shell.js +96 -96
- package/dist/session/skill.js +77 -77
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +161 -161
- package/dist/session/title.js +120 -120
- package/dist/session/to-session-error.js +83 -83
- package/dist/session/transfer.js +103 -103
- package/dist/session.js +176 -176
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +8 -8
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +81 -81
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +68 -68
- package/dist/tool/mcp.js +97 -97
- package/dist/tool/plugin/edit.js +93 -93
- package/dist/tool/plugin/glob.js +96 -96
- package/dist/tool/plugin/grep.js +92 -92
- package/dist/tool/plugin/mcp-resource.js +89 -89
- package/dist/tool/plugin/opencode.js +83 -83
- package/dist/tool/plugin/patch.js +87 -87
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +91 -91
- package/dist/tool/plugin/shell.js +169 -169
- package/dist/tool/plugin/skill.js +81 -81
- package/dist/tool/plugin/subagent.js +168 -168
- package/dist/tool/plugin/webfetch.js +85 -85
- package/dist/tool/plugin/websearch.js +87 -87
- package/dist/tool/plugin/write.js +95 -95
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +66 -66
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +68 -68
- package/dist/vcs.js +66 -66
- package/dist/websearch.js +64 -64
- package/dist/wellknown/plugin.js +56 -56
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +61 -61
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/strategies.js +65 -65
- package/dist/worktree.js +71 -71
- package/package.json +8 -8
- package/dist/chunks/location-5t9rrsta.js +0 -26
- package/dist/chunks/location-hed9jrmp.js +0 -253
- /package/dist/chunks/{location-b564mtnb.js → location-08mjp3pt.js} +0 -0
- /package/dist/chunks/{location-fegk541e.js → location-0t098hqn.js} +0 -0
- /package/dist/chunks/{location-wfyw2gqh.js → location-3xqh13de.js} +0 -0
- /package/dist/chunks/{location-hekf1c5w.js → location-efgnm1d6.js} +0 -0
- /package/dist/chunks/{location-shfh3dfx.js → location-w0pdyb55.js} +0 -0
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./location-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-efgnm1d6.js";
|
|
7
7
|
import {
|
|
8
8
|
Slug2
|
|
9
9
|
} from "./location-gebd4c9n.js";
|
|
10
10
|
import {
|
|
11
11
|
Service84,
|
|
12
12
|
node88
|
|
13
|
-
} from "./location-
|
|
13
|
+
} from "./location-6t1m34v8.js";
|
|
14
14
|
import {
|
|
15
15
|
Service83,
|
|
16
16
|
node87
|
|
17
|
-
} from "./location-
|
|
17
|
+
} from "./location-by659cs7.js";
|
|
18
18
|
import {
|
|
19
19
|
ProjectTable2
|
|
20
20
|
} from "./location-h2b79v29.js";
|
|
@@ -24,21 +24,21 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
ID17,
|
|
26
26
|
NotFoundError11
|
|
27
|
-
} from "./location-
|
|
27
|
+
} from "./location-5hps0jc8.js";
|
|
28
28
|
import {
|
|
29
29
|
Ref4
|
|
30
|
-
} from "./location-
|
|
30
|
+
} from "./location-7wpc5jwh.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "./location-
|
|
32
|
+
Service64,
|
|
33
|
+
node68
|
|
34
|
+
} from "./location-qh3vb1tn.js";
|
|
35
35
|
import {
|
|
36
36
|
DirectoryUnavailableError2,
|
|
37
37
|
canonical2
|
|
38
38
|
} from "./location-0vbcp93d.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./location-
|
|
40
|
+
Service63
|
|
41
|
+
} from "./location-c00fv4ar.js";
|
|
42
42
|
import {
|
|
43
43
|
__export
|
|
44
44
|
} from "./location-9rqn6x4v.js";
|
|
@@ -49,19 +49,19 @@ __export(exports_worktree2, {
|
|
|
49
49
|
CreateInput: () => CreateInput3,
|
|
50
50
|
DestinationExistsError: () => DestinationExistsError2,
|
|
51
51
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
52
|
-
Event: () =>
|
|
53
|
-
Info: () =>
|
|
52
|
+
Event: () => Event12,
|
|
53
|
+
Info: () => Info15,
|
|
54
54
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
55
55
|
List: () => List2,
|
|
56
56
|
ListEntry: () => ListEntry3,
|
|
57
57
|
OperationError: () => OperationError2,
|
|
58
58
|
RemoveInput: () => RemoveInput2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service62,
|
|
60
60
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
61
61
|
StrategyID: () => StrategyID2,
|
|
62
62
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
63
63
|
Worktree: () => exports_worktree2,
|
|
64
|
-
node: () =>
|
|
64
|
+
node: () => node66
|
|
65
65
|
});
|
|
66
66
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
67
67
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -75,7 +75,7 @@ import { OperationError as OperationError2 } from "@opencode/schema/worktree";
|
|
|
75
75
|
var StrategyID2 = Worktree.StrategyID;
|
|
76
76
|
var CreateInput3 = Worktree.CreateInput;
|
|
77
77
|
var RemoveInput2 = Worktree.RemoveInput;
|
|
78
|
-
var
|
|
78
|
+
var Info15 = Worktree.Info;
|
|
79
79
|
var List2 = Worktree.List;
|
|
80
80
|
var ListEntry3 = Worktree.ListEntry;
|
|
81
81
|
|
|
@@ -90,17 +90,17 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
|
|
|
90
90
|
|
|
91
91
|
class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var Event12 = Worktree.Event;
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service62 extends Context.Service()("@opencode/Worktree") {
|
|
96
96
|
}
|
|
97
|
-
var layer = Layer.effect(
|
|
97
|
+
var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
99
|
const database = yield* Service84;
|
|
100
100
|
const db = database.db;
|
|
101
101
|
const bus = yield* Service83;
|
|
102
102
|
const processService = yield* AppProcess.Service;
|
|
103
|
-
const locations = yield*
|
|
103
|
+
const locations = yield* Service64;
|
|
104
104
|
const project = Effect.fnUntraced(function* (projectID) {
|
|
105
105
|
const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
|
|
106
106
|
if (!row)
|
|
@@ -115,11 +115,11 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
115
115
|
const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
|
|
116
116
|
const context = yield* locations.contextEffect(Ref4.make({ directory }));
|
|
117
117
|
yield* Context.get(context, Plugin.Service).awaitActivation;
|
|
118
|
-
return Context.get(context,
|
|
118
|
+
return Context.get(context, Service63).get();
|
|
119
119
|
});
|
|
120
120
|
const changed = Effect.fnUntraced(function* (projectID, update) {
|
|
121
121
|
if (update)
|
|
122
|
-
yield* bus.publish(
|
|
122
|
+
yield* bus.publish(Event12.Updated, { projectID });
|
|
123
123
|
});
|
|
124
124
|
const ops = {
|
|
125
125
|
list: Effect.fnUntraced(function* (projectID) {
|
|
@@ -246,7 +246,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
246
246
|
})).pipe(Effect.orDie);
|
|
247
247
|
yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
|
|
248
248
|
}, Effect.scoped);
|
|
249
|
-
return
|
|
249
|
+
return Service62.of({
|
|
250
250
|
list: Effect.fn("Worktree.list")(function* (input) {
|
|
251
251
|
yield* project(input.projectID);
|
|
252
252
|
return yield* ops.list(input.projectID);
|
|
@@ -256,10 +256,10 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
256
256
|
refresh
|
|
257
257
|
});
|
|
258
258
|
}));
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
259
|
+
var node66 = Node.makeGlobalNode({
|
|
260
|
+
service: Service62,
|
|
261
261
|
layer,
|
|
262
|
-
deps: [FSUtil.node, node87, node88, AppProcess.node,
|
|
262
|
+
deps: [FSUtil.node, node87, node88, AppProcess.node, node68]
|
|
263
263
|
});
|
|
264
264
|
function operationError(strategy, operation, error) {
|
|
265
265
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -269,4 +269,4 @@ function operationError(strategy, operation, error) {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
export { StrategyID2, CreateInput3, RemoveInput2,
|
|
272
|
+
export { StrategyID2, CreateInput3, RemoveInput2, Info15, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event12, Service62, node66, exports_worktree2, OperationError2 };
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./location-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./location-
|
|
7
|
+
Service56,
|
|
8
|
+
node59
|
|
9
|
+
} from "./location-ep4m400e.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
12
|
} from "./location-8d7r5vzw.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
19
19
|
__export(exports_ripgrep, {
|
|
20
|
-
Error: () =>
|
|
20
|
+
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service19,
|
|
24
|
+
node: () => node21
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
|
|
|
46
46
|
});
|
|
47
47
|
var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Error2 extends Schema.TaggedError()("Ripgrep.Error", {
|
|
50
50
|
message: Schema.String,
|
|
51
51
|
cause: Schema.optional(Schema.Defect())
|
|
52
52
|
}) {
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service19 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
|
-
var failure = (message, cause) => new
|
|
63
|
+
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service56;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
90
90
|
return code === 1 ? [] : rows;
|
|
91
91
|
}));
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
|
-
return abortable.pipe(Effect.mapError((cause) => cause instanceof
|
|
93
|
+
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service19.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node21 = makeLocationNode({ service: Service19, layer, deps: [node59, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { Error2, InvalidPatternError2, Service19, node21, exports_ripgrep };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./location-
|
|
3
|
+
Service59
|
|
4
|
+
} from "./location-1g5f91mn.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./location-
|
|
6
|
+
Service48
|
|
7
|
+
} from "./location-rf5ebq4s.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./location-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin10
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin10 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service59;
|
|
27
|
+
const snapshot = yield* Service48;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin49 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin10, exports_snapshot };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-7wpc5jwh.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service56
|
|
6
|
+
} from "./location-ep4m400e.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
Service20,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./location-
|
|
11
|
+
} from "./location-4pedpz6c.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./location-
|
|
13
|
+
Service65
|
|
14
|
+
} from "./location-mw9b1c9f.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./location-
|
|
16
|
+
Service66
|
|
17
|
+
} from "./location-pqxmmrpw.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service50,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./location-
|
|
21
|
+
} from "./location-02609e96.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
24
|
} from "./location-6prwharc.js";
|
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
34
|
-
Output: () =>
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
33
|
+
Input: () => Input11,
|
|
34
|
+
Output: () => Output7,
|
|
35
|
+
Plugin: () => Plugin48,
|
|
36
|
+
name: () => name11
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name11 = "edit";
|
|
43
|
+
var Input11 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -50,7 +50,7 @@ var Input7 = Schema.Struct({
|
|
|
50
50
|
description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
|
-
var
|
|
53
|
+
var Output7 = Schema.Struct({
|
|
54
54
|
files: Schema.Array(FileDiff.Info),
|
|
55
55
|
replacements: Schema.Number
|
|
56
56
|
});
|
|
@@ -103,21 +103,21 @@ var findLineOccurrences = (content, search) => {
|
|
|
103
103
|
return result;
|
|
104
104
|
}, []);
|
|
105
105
|
};
|
|
106
|
-
var
|
|
106
|
+
var Plugin48 = {
|
|
107
107
|
id: "opencode.tool.edit",
|
|
108
108
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
109
|
-
const access = yield*
|
|
110
|
-
const fileMutation = yield*
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const formatter = yield*
|
|
109
|
+
const access = yield* Service50;
|
|
110
|
+
const fileMutation = yield* Service20;
|
|
111
|
+
const environment = yield* Service56;
|
|
112
|
+
const formatter = yield* Service65;
|
|
113
113
|
const location = yield* Service80;
|
|
114
|
-
const permission = yield*
|
|
114
|
+
const permission = yield* Service66;
|
|
115
115
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
116
|
-
name:
|
|
116
|
+
name: name11,
|
|
117
117
|
options: { codemode: false, permission: "edit" },
|
|
118
118
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
119
|
-
input:
|
|
120
|
-
output:
|
|
119
|
+
input: Input11,
|
|
120
|
+
output: Output7,
|
|
121
121
|
execute: (input, context) => {
|
|
122
122
|
return Effect.gen(function* () {
|
|
123
123
|
const permissionSource = {
|
|
@@ -194,4 +194,4 @@ var Plugin10 = {
|
|
|
194
194
|
})
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
export {
|
|
197
|
+
export { name11, Input11, Output7, Plugin48, exports_edit };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./location-
|
|
2
|
+
Service79
|
|
3
|
+
} from "./location-ywcwnstf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./location-
|
|
5
|
+
Service66
|
|
6
|
+
} from "./location-pqxmmrpw.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID6,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./location-
|
|
13
|
+
Service49
|
|
14
|
+
} from "./location-z8nhrpf5.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./location-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch2 = {};
|
|
21
|
+
__export(exports_websearch2, {
|
|
22
|
+
Input: () => Input6,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin43,
|
|
25
|
+
WebSearchTool: () => exports_websearch2,
|
|
26
|
+
description: () => description2,
|
|
27
|
+
name: () => name6
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name6 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input6 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID6,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin43 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service66;
|
|
53
|
+
const forms = yield* Service79;
|
|
54
|
+
const websearch = yield* Service49;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name6,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description2,
|
|
59
|
+
input: Input6,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name6,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name6];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name6, NO_RESULTS2, description2, Input6, Plugin43, exports_websearch2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-mfqp6xfm.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./location-9rqn6x4v.js";
|
|
@@ -10,12 +10,12 @@ var exports_exa = {};
|
|
|
10
10
|
__export(exports_exa, {
|
|
11
11
|
Plugin: () => Plugin22,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint2
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint2 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -49,7 +49,7 @@ var Plugin22 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint2);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint2, Plugin22, exports_exa };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./location-
|
|
4
|
+
} from "./location-6t1m34v8.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
7
|
Service83,
|
|
8
8
|
node87
|
|
9
|
-
} from "./location-
|
|
9
|
+
} from "./location-by659cs7.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
12
|
} from "./location-5t3nmthw.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
} from "./location-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./location-
|
|
18
|
+
} from "./location-r5atvkz9.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./location-
|
|
20
|
+
Service67,
|
|
21
|
+
node71
|
|
22
|
+
} from "./location-y7rk29wk.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./location-
|
|
24
|
+
Service27,
|
|
25
|
+
node31
|
|
26
|
+
} from "./location-yx4j6h9t.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
37
37
|
__export(exports_title, {
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service2,
|
|
39
39
|
SessionTitle: () => exports_title,
|
|
40
40
|
isUntitled: () => isUntitled2,
|
|
41
|
-
layer: () =>
|
|
42
|
-
node: () =>
|
|
41
|
+
layer: () => layer3,
|
|
42
|
+
node: () => node3
|
|
43
43
|
});
|
|
44
44
|
import { isDeepStrictEqual } from "node:util";
|
|
45
45
|
import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
|
|
@@ -51,18 +51,18 @@ var MAX_CONTEXT_LENGTH = 8000;
|
|
|
51
51
|
var MAX_FIRST_MESSAGE_LENGTH = 2000;
|
|
52
52
|
var titleChanged = Symbol("Session title changed");
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service2 extends Context.Service()("@opencode/SessionTitle") {
|
|
55
55
|
}
|
|
56
56
|
var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
|
|
57
57
|
var isUntitled2 = (session) => isExactRootFallback({
|
|
58
58
|
title: session.title,
|
|
59
59
|
time: { created: DateTime.toEpochMillis(session.time.created) }
|
|
60
60
|
});
|
|
61
|
-
var
|
|
61
|
+
var layer3 = Layer.effect(Service2, Effect.gen(function* () {
|
|
62
62
|
const bus = yield* Service83;
|
|
63
63
|
const llm = yield* LLMClient.Service;
|
|
64
|
-
const context = yield*
|
|
65
|
-
const store = yield*
|
|
64
|
+
const context = yield* Service27;
|
|
65
|
+
const store = yield* Service67;
|
|
66
66
|
const db = (yield* Service84).db;
|
|
67
67
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
68
68
|
const chunks = [];
|
|
@@ -145,12 +145,12 @@ Recent conversation:
|
|
|
145
145
|
title: truncate(title)
|
|
146
146
|
}, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
|
|
147
147
|
});
|
|
148
|
-
return
|
|
148
|
+
return Service2.of({ generate });
|
|
149
149
|
}));
|
|
150
|
-
var
|
|
151
|
-
service:
|
|
152
|
-
layer:
|
|
153
|
-
deps: [node87, llmClient2,
|
|
150
|
+
var node3 = makeLocationNode({
|
|
151
|
+
service: Service2,
|
|
152
|
+
layer: layer3,
|
|
153
|
+
deps: [node87, llmClient2, node31, node71, node88]
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
export {
|
|
156
|
+
export { Service2, isUntitled2, layer3, node3, exports_title };
|