@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-efgnm1d6.js";
|
|
4
4
|
import {
|
|
5
5
|
DirectoryUnavailableError2,
|
|
6
6
|
canonical2
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
var exports_git2 = {};
|
|
14
14
|
__export(exports_git2, {
|
|
15
15
|
WorktreeGit: () => exports_git2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make21
|
|
17
17
|
});
|
|
18
18
|
import { Effect } from "effect";
|
|
19
19
|
import { Worktree } from "@opencode/schema/worktree";
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
|
-
var
|
|
21
|
+
var make21 = Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FSUtil.Service;
|
|
23
23
|
const git = yield* Service82;
|
|
24
24
|
return {
|
|
@@ -46,4 +46,4 @@ var make22 = Effect.gen(function* () {
|
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make21, exports_git2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-r58s4v78.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-mfqp6xfm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./location-9rqn6x4v.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin25,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint5 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin25 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin23 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint5, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin23 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin25, exports_firecrawl };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-by659cs7.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-addxnjmp.js";
|
|
7
7
|
import {
|
|
8
8
|
Event19
|
|
9
|
-
} from "./location-
|
|
9
|
+
} from "./location-922xc4bs.js";
|
|
10
10
|
import {
|
|
11
11
|
ID14
|
|
12
|
-
} from "./location-
|
|
12
|
+
} from "./location-2fpnaz5h.js";
|
|
13
13
|
import {
|
|
14
14
|
ID13,
|
|
15
|
-
|
|
16
|
-
} from "./location-
|
|
15
|
+
Service76
|
|
16
|
+
} from "./location-m46z4pcf.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./location-
|
|
18
|
+
load3,
|
|
19
|
+
derive3
|
|
20
|
+
} from "./location-fgkdc7jh.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
@@ -26,7 +26,7 @@ var providerID = ID13.make("modal");
|
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
29
|
+
const providers = yield* Service76;
|
|
30
30
|
const bus = yield* Service83;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load3(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,7 +62,7 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive3(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-by659cs7.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-7wpc5jwh.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./location-
|
|
9
|
+
Service35
|
|
10
|
+
} from "./location-2kw5qtk9.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./location-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command2 = {};
|
|
17
|
+
__export(exports_command2, {
|
|
18
|
+
CommandPlugin: () => exports_command2,
|
|
19
|
+
Plugin: () => Plugin30
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin30 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
199
|
const location = yield* Service80;
|
|
200
|
-
const mcp = yield*
|
|
200
|
+
const mcp = yield* Service35;
|
|
201
201
|
const bus = yield* Service83;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin30, exports_command2 };
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
Service80,
|
|
8
8
|
node84
|
|
9
|
-
} from "./location-
|
|
9
|
+
} from "./location-7wpc5jwh.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./location-
|
|
11
|
+
Service18,
|
|
12
|
+
node20
|
|
13
|
+
} from "./location-wp8xfje7.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./location-9rqn6x4v.js";
|
|
@@ -18,26 +18,26 @@ import {
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content2,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event4,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
|
-
ListInput: () =>
|
|
32
|
+
ListInput: () => ListInput2,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError3,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service17,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node19
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError3 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -75,14 +75,14 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
75
75
|
return `Access denied to directory: ${this.directory}`;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Content2 = Schema.Struct({
|
|
79
79
|
uri: Schema.String,
|
|
80
80
|
name: Schema.String.pipe(Schema.optional),
|
|
81
81
|
content: Schema.String,
|
|
82
82
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
83
83
|
mime: Schema.String
|
|
84
84
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
85
|
-
var
|
|
85
|
+
var ListInput2 = Schema.Struct({
|
|
86
86
|
path: Schema.String.pipe(Schema.optional)
|
|
87
87
|
});
|
|
88
88
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
105
105
|
limit: Schema.optionalKey(PositiveInt2)
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Event4 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service17 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service17, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
114
|
const location = yield* Service80;
|
|
115
|
-
const search = yield*
|
|
115
|
+
const search = yield* Service18;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
124
124
|
if (input.includes("\x00"))
|
|
125
|
-
return yield* Effect.fail(new
|
|
125
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
126
126
|
const absolute = path.resolve(location.directory, input);
|
|
127
127
|
if (!FSUtil.contains(location.directory, absolute))
|
|
128
|
-
return yield* Effect.fail(new
|
|
129
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
128
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input })), (_, error) => Effect.die(error)));
|
|
130
130
|
if (!FSUtil.contains(root, real))
|
|
131
|
-
return yield* Effect.fail(new
|
|
131
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service17.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
138
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
138
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "File")
|
|
140
|
-
return yield* Effect.fail(new
|
|
140
|
+
return yield* Effect.fail(new NotFoundError3({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
147
147
|
}),
|
|
148
148
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
149
149
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
150
|
-
const missing = new
|
|
150
|
+
const missing = new NotFoundError3({ path: RelativePath2.make(input.path ?? ".") });
|
|
151
151
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
152
152
|
if (info.type !== "Directory")
|
|
153
153
|
return yield* missing;
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node19 = makeLocationNode({
|
|
175
|
+
service: Service17,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node, node84,
|
|
177
|
+
deps: [FSUtil.node, node84, node20]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event4, Service17, node19, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./location-tazgh4e4.js";
|
|
11
11
|
import {
|
|
12
12
|
Service80
|
|
13
|
-
} from "./location-
|
|
13
|
+
} from "./location-7wpc5jwh.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./location-
|
|
16
|
+
} from "./location-na7ss97r.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./location-9rqn6x4v.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin28,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,7 +30,7 @@ import { ChildProcess } from "effect/unstable/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin28 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
36
|
const location = yield* Service80;
|
|
@@ -198,4 +198,4 @@ function makeHg(proc, worktree) {
|
|
|
198
198
|
return { status, diff, branch, ancestor, cat };
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export {
|
|
201
|
+
export { Plugin28, exports_hg };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-by659cs7.js";
|
|
4
4
|
import {
|
|
5
5
|
ID15,
|
|
6
6
|
Event19,
|
|
7
|
-
|
|
8
|
-
} from "./location-
|
|
7
|
+
Service78
|
|
8
|
+
} from "./location-922xc4bs.js";
|
|
9
9
|
import {
|
|
10
10
|
ID13
|
|
11
|
-
} from "./location-
|
|
11
|
+
} from "./location-m46z4pcf.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./location-
|
|
14
|
+
} from "./location-4b5b0vhn.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,7 +41,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
44
|
+
const credentials = yield* Service78;
|
|
45
45
|
const bus = yield* Service83;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service71,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node75
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service71 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service71.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node75 = makeLocationNode({ service: Service71, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service71, node75, exports_image2 };
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service80,
|
|
6
6
|
node84
|
|
7
|
-
} from "./location-
|
|
7
|
+
} from "./location-7wpc5jwh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./location-
|
|
9
|
+
Service19,
|
|
10
|
+
node21
|
|
11
|
+
} from "./location-xfgbrct6.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options3,
|
|
25
|
+
Service: () => Service18,
|
|
26
|
+
configured: () => configured3,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer10,
|
|
29
|
+
node: () => node20,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options3 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service18 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
62
62
|
const location = yield* Service80;
|
|
63
|
-
const ripgrep = yield*
|
|
63
|
+
const ripgrep = yield* Service19;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,14 +105,14 @@ var ripgrepLayer2 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service18.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
115
|
+
var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
116
116
|
const location = yield* Service80;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service18.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service18.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,7 +174,7 @@ var fffLayer2 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
177
|
+
var layer10 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
178
|
const location = yield* Service80;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
@@ -182,9 +182,9 @@ var layer20 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured3(options) {
|
|
186
|
+
return makeLocationNode({ service: Service18, layer: layer10(options), deps: [node84, node21] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node20 = configured3();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options3, Service18, ripgrepLayer2, fffLayer2, layer10, configured3, node20, exports_search };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./location-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-w0pdyb55.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./location-
|
|
9
|
+
} from "./location-fzpqnkcj.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|