@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,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./location-
|
|
4
|
+
} from "./location-6t1m34v8.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./location-
|
|
8
|
+
} from "./location-by659cs7.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./location-
|
|
10
|
+
Service44,
|
|
11
|
+
node46
|
|
12
|
+
} from "./location-51f5btjf.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2,
|
|
15
15
|
RelativePath2
|
|
@@ -17,44 +17,44 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
Service81,
|
|
19
19
|
node85
|
|
20
|
-
} from "./location-
|
|
20
|
+
} from "./location-5hps0jc8.js";
|
|
21
21
|
import {
|
|
22
22
|
Ref4
|
|
23
|
-
} from "./location-
|
|
23
|
+
} from "./location-7wpc5jwh.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./location-
|
|
25
|
+
Service64,
|
|
26
|
+
node68
|
|
27
|
+
} from "./location-qh3vb1tn.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionMessage2
|
|
30
30
|
} from "./location-gftt206x.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./location-
|
|
32
|
+
NotFoundError9
|
|
33
|
+
} from "./location-j8s9ab9g.js";
|
|
34
34
|
import {
|
|
35
35
|
SessionEvent2
|
|
36
36
|
} from "./location-ec1grn59.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./location-
|
|
38
|
+
Service41
|
|
39
|
+
} from "./location-zcrspsvn.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "./location-
|
|
41
|
+
Service67,
|
|
42
|
+
node71
|
|
43
|
+
} from "./location-y7rk29wk.js";
|
|
44
44
|
import {
|
|
45
45
|
Item2,
|
|
46
46
|
serialized2,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Service42,
|
|
48
|
+
node44,
|
|
49
49
|
moveIDs2
|
|
50
|
-
} from "./location-
|
|
50
|
+
} from "./location-t9xcwzrx.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./location-
|
|
52
|
+
Service40,
|
|
53
|
+
node43
|
|
54
|
+
} from "./location-mc5akg63.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./location-
|
|
56
|
+
node30
|
|
57
|
+
} from "./location-73gdyt7p.js";
|
|
58
58
|
import {
|
|
59
59
|
__export
|
|
60
60
|
} from "./location-9rqn6x4v.js";
|
|
@@ -65,9 +65,9 @@ __export(exports_move, {
|
|
|
65
65
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
66
66
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
67
67
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
68
|
-
Service: () =>
|
|
68
|
+
Service: () => Service26,
|
|
69
69
|
SessionMove: () => exports_move,
|
|
70
|
-
node: () =>
|
|
70
|
+
node: () => node29
|
|
71
71
|
});
|
|
72
72
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
73
73
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -83,23 +83,23 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
|
|
|
83
83
|
class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class Service26 extends Context.Service()("@opencode/SessionMove") {
|
|
87
87
|
}
|
|
88
|
-
var layer = Layer.effect(
|
|
88
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
89
89
|
const fs = yield* FSUtil.Service;
|
|
90
90
|
const global = yield* Global.Service;
|
|
91
91
|
const projects = yield* Service81;
|
|
92
|
-
const locations = yield*
|
|
93
|
-
const store = yield*
|
|
94
|
-
const execution = yield*
|
|
95
|
-
const instances = yield*
|
|
96
|
-
const admission = yield*
|
|
92
|
+
const locations = yield* Service64;
|
|
93
|
+
const store = yield* Service67;
|
|
94
|
+
const execution = yield* Service40;
|
|
95
|
+
const instances = yield* Service44;
|
|
96
|
+
const admission = yield* Service42;
|
|
97
97
|
const database = yield* Service84;
|
|
98
98
|
const bus = yield* Service83;
|
|
99
99
|
const get = Effect.fn("SessionMove.get")(function* (sessionID) {
|
|
100
100
|
const session = yield* store.get(sessionID);
|
|
101
101
|
if (!session)
|
|
102
|
-
return yield* new
|
|
102
|
+
return yield* new NotFoundError9({ sessionID });
|
|
103
103
|
return session;
|
|
104
104
|
});
|
|
105
105
|
const resolveDestination = Effect.fn("SessionMove.resolveDestination")(function* (session, input) {
|
|
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
131
131
|
return false;
|
|
132
132
|
if (!(yield* fs.isDir(session.location.directory)))
|
|
133
133
|
return true;
|
|
134
|
-
return yield*
|
|
134
|
+
return yield* Service41.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.succeed(true)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service26.of({
|
|
137
137
|
move: Effect.fn("SessionMove.move")(function* (input) {
|
|
138
138
|
const session = yield* get(input.sessionID);
|
|
139
139
|
const destination = yield* resolveDestination(session, input);
|
|
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
|
-
var
|
|
167
|
-
service:
|
|
166
|
+
var node29 = makeGlobalNode({
|
|
167
|
+
service: Service26,
|
|
168
168
|
layer,
|
|
169
169
|
deps: [
|
|
170
170
|
FSUtil.node,
|
|
171
171
|
Global.node,
|
|
172
172
|
node85,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
node42,
|
|
176
|
-
node44,
|
|
173
|
+
node68,
|
|
174
|
+
node71,
|
|
177
175
|
node43,
|
|
176
|
+
node46,
|
|
177
|
+
node44,
|
|
178
178
|
node88,
|
|
179
179
|
node87,
|
|
180
|
-
|
|
180
|
+
node30
|
|
181
181
|
]
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2,
|
|
184
|
+
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service26, node29, exports_move };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./location-
|
|
4
|
+
} from "./location-by659cs7.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./location-rdw6cm16.js";
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
var exports_command4 = {};
|
|
14
14
|
__export(exports_command4, {
|
|
15
15
|
Command: () => exports_command4,
|
|
16
|
-
Event: () =>
|
|
16
|
+
Event: () => Event7,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info7,
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
|
+
Service: () => Service46,
|
|
21
|
+
layer: () => layer21,
|
|
22
|
+
node: () => node48
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event7 } from "@opencode/schema/command";
|
|
28
|
+
var Info7 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError6 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service46 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var layer21 = Layer.effect(Service46, Effect.gen(function* () {
|
|
45
45
|
const bus = yield* Service83;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
@@ -51,11 +51,11 @@ var layer14 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info7.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service46.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,14 +66,14 @@ var layer14 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError6({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
74
|
+
var node48 = makeLocationNode({
|
|
75
|
+
service: Service46,
|
|
76
|
+
layer: layer21,
|
|
77
77
|
deps: [node87]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info7, NotFoundError6, ExecutionError2, Service46, layer21, node48, exports_command4, Event7 };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./location-
|
|
4
|
+
} from "./location-by659cs7.js";
|
|
5
5
|
import {
|
|
6
6
|
Service80,
|
|
7
7
|
node84
|
|
8
|
-
} from "./location-
|
|
8
|
+
} from "./location-7wpc5jwh.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./location-
|
|
10
|
+
Service56,
|
|
11
|
+
node59
|
|
12
|
+
} from "./location-ep4m400e.js";
|
|
13
13
|
import {
|
|
14
14
|
cleanup3
|
|
15
15
|
} from "./location-gd4qta3r.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service55,
|
|
18
18
|
args2,
|
|
19
|
-
|
|
20
|
-
} from "./location-
|
|
19
|
+
node58
|
|
20
|
+
} from "./location-6tyzbyh4.js";
|
|
21
|
+
import {
|
|
22
|
+
Service70,
|
|
23
|
+
node74
|
|
24
|
+
} from "./location-pnaxc6j9.js";
|
|
21
25
|
import {
|
|
22
26
|
Service54,
|
|
23
27
|
node57
|
|
24
|
-
} from "./location-
|
|
25
|
-
import {
|
|
26
|
-
Service37,
|
|
27
|
-
node40
|
|
28
|
-
} from "./location-rzs3gq0x.js";
|
|
28
|
+
} from "./location-hpfvhvya.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionSchema2
|
|
31
|
-
} from "./location-
|
|
31
|
+
} from "./location-arz7hw7x.js";
|
|
32
32
|
import {
|
|
33
33
|
latest2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./location-
|
|
34
|
+
Service59,
|
|
35
|
+
node63
|
|
36
|
+
} from "./location-1g5f91mn.js";
|
|
37
37
|
import {
|
|
38
38
|
MAX_LINES2,
|
|
39
39
|
MAX_BYTES2
|
|
40
|
-
} from "./location-
|
|
40
|
+
} from "./location-f2mw6jyj.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./location-9rqn6x4v.js";
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
46
|
var exports_shell4 = {};
|
|
47
47
|
__export(exports_shell4, {
|
|
48
48
|
DIRECTORY: () => DIRECTORY2,
|
|
49
|
-
NotFoundError: () =>
|
|
49
|
+
NotFoundError: () => NotFoundError7,
|
|
50
50
|
RETENTION: () => RETENTION2,
|
|
51
|
-
Service: () =>
|
|
51
|
+
Service: () => Service53,
|
|
52
52
|
Shell: () => exports_shell4,
|
|
53
53
|
cleanup: () => cleanup2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node56
|
|
55
55
|
});
|
|
56
56
|
import path from "path";
|
|
57
57
|
import { Context, Deferred, Duration, Effect, Fiber, Latch, Layer, Schema, Schedule, Stream } from "effect";
|
|
@@ -63,7 +63,7 @@ import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
|
63
63
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
65
|
import { Global } from "@opencode/util/global";
|
|
66
|
-
class
|
|
66
|
+
class NotFoundError7 extends Schema.TaggedError()("Shell.NotFoundError", {
|
|
67
67
|
id: Shell.ID
|
|
68
68
|
}) {
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ var EXITED_LIMIT = 25;
|
|
|
71
71
|
var RETENTION2 = Duration.days(7);
|
|
72
72
|
var DIRECTORY2 = "shell";
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service53 extends Context.Service()("@opencode/Shell") {
|
|
75
75
|
}
|
|
76
76
|
var cleanup2 = Effect.fn("Shell.cleanup")(function* () {
|
|
77
77
|
const fs = yield* FSUtil.Service;
|
|
@@ -87,15 +87,15 @@ var cleanupNode = makeGlobalNode({
|
|
|
87
87
|
layer: cleanupLayer,
|
|
88
88
|
deps: [FSUtil.node, Global.node]
|
|
89
89
|
});
|
|
90
|
-
var layer = () => Layer.effect(
|
|
90
|
+
var layer = () => Layer.effect(Service53, Effect.gen(function* () {
|
|
91
91
|
const bus = yield* Service83;
|
|
92
92
|
const location = yield* Service80;
|
|
93
93
|
const global = yield* Global.Service;
|
|
94
|
-
const shell = yield*
|
|
95
|
-
const environment = yield*
|
|
96
|
-
const hooks = yield*
|
|
97
|
-
const environments = yield*
|
|
98
|
-
const config = yield*
|
|
94
|
+
const shell = yield* Service55;
|
|
95
|
+
const environment = yield* Service56;
|
|
96
|
+
const hooks = yield* Service70;
|
|
97
|
+
const environments = yield* Service54;
|
|
98
|
+
const config = yield* Service59;
|
|
99
99
|
const context = yield* Effect.context();
|
|
100
100
|
const runFork = Effect.runForkWith(context);
|
|
101
101
|
const commands = new Map;
|
|
@@ -116,7 +116,7 @@ var layer = () => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
116
116
|
const require2 = Effect.fnUntraced(function* (id) {
|
|
117
117
|
const command = commands.get(id);
|
|
118
118
|
if (!command)
|
|
119
|
-
return yield* new
|
|
119
|
+
return yield* new NotFoundError7({ id });
|
|
120
120
|
return command;
|
|
121
121
|
});
|
|
122
122
|
const removeCommand = Effect.fnUntraced(function* (id) {
|
|
@@ -129,7 +129,7 @@ var layer = () => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
129
129
|
commands.delete(id);
|
|
130
130
|
if (command.timeoutFiber)
|
|
131
131
|
yield* Fiber.interrupt(command.timeoutFiber);
|
|
132
|
-
yield* Deferred.fail(command.done, new
|
|
132
|
+
yield* Deferred.fail(command.done, new NotFoundError7({ id }));
|
|
133
133
|
yield* Effect.promise(() => unlink(command.file).catch(() => {}));
|
|
134
134
|
yield* bus.publish(Shell.Event.Deleted, { id });
|
|
135
135
|
});
|
|
@@ -323,22 +323,22 @@ var layer = () => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
323
323
|
const command = yield* Deferred.await(ready);
|
|
324
324
|
return command.info;
|
|
325
325
|
});
|
|
326
|
-
return
|
|
326
|
+
return Service53.of({ create, list, get, wait, result, timeout, output, remove });
|
|
327
327
|
}));
|
|
328
|
-
var
|
|
329
|
-
service:
|
|
328
|
+
var node56 = makeLocationNode({
|
|
329
|
+
service: Service53,
|
|
330
330
|
layer: layer(),
|
|
331
331
|
deps: [
|
|
332
332
|
node87,
|
|
333
333
|
node84,
|
|
334
334
|
Global.node,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
node57,
|
|
338
|
-
node40,
|
|
335
|
+
node58,
|
|
336
|
+
node59,
|
|
339
337
|
node74,
|
|
338
|
+
node57,
|
|
339
|
+
node63,
|
|
340
340
|
cleanupNode
|
|
341
341
|
]
|
|
342
342
|
});
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { NotFoundError7, RETENTION2, DIRECTORY2, Service53, cleanup2, node56, exports_shell4 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-r58s4v78.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-by659cs7.js";
|
|
7
7
|
import {
|
|
8
8
|
ID15,
|
|
9
9
|
Event19,
|
|
10
|
-
|
|
11
|
-
} from "./location-
|
|
10
|
+
Service78
|
|
11
|
+
} from "./location-922xc4bs.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./location-
|
|
14
|
+
} from "./location-addxnjmp.js";
|
|
15
15
|
import {
|
|
16
16
|
ID14,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./location-
|
|
18
|
+
} from "./location-2fpnaz5h.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
21
|
} from "./location-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
23
|
ID13,
|
|
24
|
-
|
|
25
|
-
} from "./location-
|
|
24
|
+
Service76
|
|
25
|
+
} from "./location-m46z4pcf.js";
|
|
26
26
|
import {
|
|
27
27
|
ID12
|
|
28
|
-
} from "./location-
|
|
28
|
+
} from "./location-83vepgva.js";
|
|
29
29
|
import {
|
|
30
30
|
iife2
|
|
31
31
|
} from "./location-1kg9ymc8.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./location-
|
|
34
|
+
} from "./location-4b5b0vhn.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/azure.ts
|
|
37
37
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -75,7 +75,7 @@ var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.No
|
|
|
75
75
|
var ResourceListing = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
76
76
|
var decodeProfile = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.NonEmptyArray(Schema.Unknown) })));
|
|
77
77
|
var decodeResourceListing = Schema.decodeUnknownOption(Schema.Struct({ resourceName: Schema.NonEmptyString, resourceGroup: Schema.String, location: Schema.String }));
|
|
78
|
-
function
|
|
78
|
+
function make9(endpoints = {
|
|
79
79
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
80
80
|
management: "https://management.azure.com"
|
|
81
81
|
}) {
|
|
@@ -86,8 +86,8 @@ function make5(endpoints = {
|
|
|
86
86
|
const processes = yield* AppProcess.Service;
|
|
87
87
|
const fs = yield* FSUtil.Service;
|
|
88
88
|
const bus = yield* Service83;
|
|
89
|
-
const credentials = yield*
|
|
90
|
-
const providers = yield*
|
|
89
|
+
const credentials = yield* Service78;
|
|
90
|
+
const providers = yield* Service76;
|
|
91
91
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
92
92
|
const tokens = new Map;
|
|
93
93
|
const resourceIDs = new Map;
|
|
@@ -355,7 +355,7 @@ function make5(endpoints = {
|
|
|
355
355
|
})
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
var AzurePlugin2 =
|
|
358
|
+
var AzurePlugin2 = make9();
|
|
359
359
|
function resolveResourceName(settings, fallback) {
|
|
360
360
|
const configured = settings?.resourceName;
|
|
361
361
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -419,4 +419,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
419
419
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
export {
|
|
422
|
+
export { make9, AzurePlugin2 };
|
|
@@ -7,10 +7,10 @@ var exports_app = {};
|
|
|
7
7
|
__export(exports_app, {
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
|
-
configured: () =>
|
|
11
|
-
layer: () =>
|
|
10
|
+
configured: () => configured7,
|
|
11
|
+
layer: () => layer22,
|
|
12
12
|
make: () => make19,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node50,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
@@ -28,8 +28,8 @@ function make19(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
31
|
+
var layer22 = (input) => Layer.succeed(Metadata2, make19(input));
|
|
32
|
+
var configured7 = (input) => makeGlobalNode({ service: Metadata2, layer: layer22(input), deps: [] });
|
|
33
|
+
var node50 = configured7();
|
|
34
34
|
|
|
35
|
-
export { Metadata2, make19, useragent2,
|
|
35
|
+
export { Metadata2, make19, useragent2, layer22, configured7, node50, exports_app };
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./location-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-arz7hw7x.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./location-
|
|
9
|
+
} from "./location-j8s9ab9g.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./location-
|
|
13
|
+
} from "./location-9t7a50xb.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./location-9e5bzkjp.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./location-
|
|
20
|
+
} from "./location-vn72gsba.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./location-
|
|
25
|
+
} from "./location-yrcj3v3g.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./location-9rqn6x4v.js";
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load5,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-dzt4t18k.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/lmstudio.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -19,7 +19,7 @@ var RemoteModel = Schema.Struct({
|
|
|
19
19
|
}).pipe(Schema.optional)
|
|
20
20
|
});
|
|
21
21
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
22
|
-
var
|
|
22
|
+
var make7 = createLocalProviderPlugin2({
|
|
23
23
|
id: "opencode.provider.lmstudio",
|
|
24
24
|
providerID: "lmstudio",
|
|
25
25
|
name: "LM Studio",
|
|
@@ -38,6 +38,6 @@ var make6 = createLocalProviderPlugin2({
|
|
|
38
38
|
context: item.loaded_instances.length === 0 ? item.max_context_length : Math.min(...item.loaded_instances.map((instance) => instance.config.context_length))
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
var LMStudioPlugin2 =
|
|
41
|
+
var LMStudioPlugin2 = make7();
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { make7, LMStudioPlugin2 };
|