@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,71 +1,71 @@
|
|
|
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
|
-
|
|
13
|
-
} from "./location-
|
|
10
|
+
ID10,
|
|
11
|
+
Service69,
|
|
12
|
+
node73
|
|
13
|
+
} from "./location-h72xck84.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./location-
|
|
15
|
+
NotFoundError9
|
|
16
|
+
} from "./location-j8s9ab9g.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./location-
|
|
18
|
+
Service67,
|
|
19
|
+
node71
|
|
20
|
+
} from "./location-y7rk29wk.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
23
|
} from "./location-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./location-
|
|
25
|
+
Service68,
|
|
26
|
+
node72
|
|
27
|
+
} from "./location-1z20pv40.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./location-
|
|
29
|
+
Service70,
|
|
30
|
+
node74
|
|
31
|
+
} from "./location-pnaxc6j9.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./location-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var exports_permission2 = {};
|
|
38
|
+
__export(exports_permission2, {
|
|
39
39
|
AskResult: () => AskResult2,
|
|
40
40
|
AssertInput: () => AssertInput2,
|
|
41
41
|
BlockedError: () => BlockedError2,
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Permission: () =>
|
|
45
|
+
Event: () => Event13,
|
|
46
|
+
ID: () => ID8,
|
|
47
|
+
NotFoundError: () => NotFoundError8,
|
|
48
|
+
Permission: () => exports_permission2,
|
|
49
49
|
Reply: () => Reply2,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
51
|
Request: () => Request2,
|
|
52
|
-
Rule: () =>
|
|
52
|
+
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
55
|
-
Source: () =>
|
|
54
|
+
Service: () => Service66,
|
|
55
|
+
Source: () => Source4,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node70
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
|
-
import { Rule as
|
|
64
|
-
import { Event as
|
|
63
|
+
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
+
import { Event as Event13 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
68
|
-
var
|
|
67
|
+
var ID8 = Permission.ID;
|
|
68
|
+
var Source4 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
71
71
|
action: Permission.Request.fields.action,
|
|
@@ -77,17 +77,17 @@ var RequestFields = {
|
|
|
77
77
|
var Request2 = Permission.Request;
|
|
78
78
|
var Reply2 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID8.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID10.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
85
|
+
requestID: ID8,
|
|
86
86
|
reply: Reply2,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID8,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError8 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID8
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service66 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service83;
|
|
132
132
|
const location = yield* Service80;
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
133
|
+
const agents = yield* Service69;
|
|
134
|
+
const sessions = yield* Service67;
|
|
135
|
+
const saved = yield* Service68;
|
|
136
|
+
const hooks = yield* Service70;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError9({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID8.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
211
211
|
}));
|
|
212
212
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
213
213
|
if (closed)
|
|
214
|
-
return { id: input.id ??
|
|
214
|
+
return { id: input.id ?? ID8.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError8({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service66.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node70 = makeLocationNode({
|
|
303
|
+
service: Service66,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [node87, node84,
|
|
305
|
+
deps: [node87, node84, node73, node71, node72, node74]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID8, Source4, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError8, evaluate2, merge2, Service66, node70, exports_permission2, Rule3, Ruleset2, Event13 };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
packageName2,
|
|
5
5
|
timeouts2,
|
|
6
6
|
mergeOverlay2
|
|
7
|
-
} from "./location-
|
|
7
|
+
} from "./location-m46z4pcf.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./location-9rqn6x4v.js";
|
|
@@ -14,9 +14,9 @@ var exports_aisdk = {};
|
|
|
14
14
|
__export(exports_aisdk, {
|
|
15
15
|
AISDK: () => exports_aisdk,
|
|
16
16
|
InitError: () => InitError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service52,
|
|
18
18
|
locationLayer: () => locationLayer2,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node55
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -159,9 +159,9 @@ function initError(providerID) {
|
|
|
159
159
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
class
|
|
162
|
+
class Service52 extends Context.Service()("@opencode/AISDK") {
|
|
163
163
|
}
|
|
164
|
-
var locationLayer2 = Layer.effect(
|
|
164
|
+
var locationLayer2 = Layer.effect(Service52, Effect.gen(function* () {
|
|
165
165
|
let sdkHooks = [];
|
|
166
166
|
let languageHooks = [];
|
|
167
167
|
const languages = new Map;
|
|
@@ -199,7 +199,7 @@ var locationLayer2 = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
return event;
|
|
201
201
|
});
|
|
202
|
-
const service =
|
|
202
|
+
const service = Service52.of({
|
|
203
203
|
hook: {
|
|
204
204
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
205
205
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -874,6 +874,6 @@ function providerErrorMessage(error) {
|
|
|
874
874
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
875
875
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var node55 = makeLocationNode({ service: Service52, layer: locationLayer2, deps: [] });
|
|
878
878
|
|
|
879
|
-
export { InitError2,
|
|
879
|
+
export { InitError2, Service52, locationLayer2, node55, exports_aisdk };
|
|
@@ -13,7 +13,7 @@ __export(exports_optimize, {
|
|
|
13
13
|
ArceePlugin: () => ArceePlugin2,
|
|
14
14
|
KimiPlugin: () => KimiPlugin2,
|
|
15
15
|
MetaPlugin: () => MetaPlugin2,
|
|
16
|
-
OpenAIPlugin: () =>
|
|
16
|
+
OpenAIPlugin: () => OpenAIPlugin3,
|
|
17
17
|
OpenAIToolsPlugin: () => OpenAIToolsPlugin2,
|
|
18
18
|
OptimizePlugin: () => exports_optimize,
|
|
19
19
|
Plugins: () => Plugins2
|
|
@@ -374,7 +374,7 @@ By default, match the surrounding comment density: where the code has none, add
|
|
|
374
374
|
`;
|
|
375
375
|
|
|
376
376
|
// src/plugin/optimize.ts
|
|
377
|
-
var
|
|
377
|
+
var OpenAIPlugin3 = make("opencode.prompt.openai", (model) => {
|
|
378
378
|
const id = model.id.toLowerCase();
|
|
379
379
|
if (!id.includes("gpt"))
|
|
380
380
|
return;
|
|
@@ -409,7 +409,7 @@ var MetaPlugin2 = make("opencode.prompt.meta", (model) => {
|
|
|
409
409
|
return;
|
|
410
410
|
return meta_default.replaceAll("{{MODEL_NAME}}", model.name);
|
|
411
411
|
});
|
|
412
|
-
var Plugins2 = [
|
|
412
|
+
var Plugins2 = [OpenAIPlugin3, AnthropicPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2];
|
|
413
413
|
function make(id, optimize, mode = "override") {
|
|
414
414
|
return define({
|
|
415
415
|
id,
|
|
@@ -437,4 +437,4 @@ ${rendered}` : rendered;
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
export {
|
|
440
|
+
export { OpenAIPlugin3, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_optimize };
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
} from "./location-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/error.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
ConfigErrorV1: () =>
|
|
9
|
+
var exports_error = {};
|
|
10
|
+
__export(exports_error, {
|
|
11
|
+
ConfigErrorV1: () => exports_error,
|
|
12
12
|
InvalidError: () => InvalidError2
|
|
13
13
|
});
|
|
14
14
|
import { Schema } from "effect";
|
|
@@ -22,4 +22,4 @@ var InvalidError2 = NamedError2.create("ConfigInvalidError", {
|
|
|
22
22
|
message: Schema.optional(Schema.String)
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
export { InvalidError2,
|
|
25
|
+
export { InvalidError2, exports_error };
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
var exports_driver = {};
|
|
7
7
|
__export(exports_driver, {
|
|
8
8
|
Binding: () => Binding2,
|
|
9
|
-
Error: () =>
|
|
9
|
+
Error: () => Error5,
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make20,
|
|
14
|
+
node: () => node62,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
20
20
|
var Binding2 = Schema.Record(Schema.String, Schema.Json);
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Error5 extends Schema.TaggedError()("WorkspaceDriver.Error", {
|
|
23
23
|
message: Schema.optional(Schema.String),
|
|
24
24
|
cause: Schema.optional(Schema.Defect())
|
|
25
25
|
}) {
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make20 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node62 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make20, RegistryService2, registry2, registryNode2, node62, exports_driver };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref4
|
|
3
|
-
} from "./location-
|
|
3
|
+
} from "./location-7wpc5jwh.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./location-9rqn6x4v.js";
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service64,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node68,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service64 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service64, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node68 = LayerNode.unbound(Service64, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service64;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -45,4 +45,4 @@ function canonical3(ref) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Service64, node68, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,26 +1,26 @@
|
|
|
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
10
|
create3
|
|
11
11
|
} from "./location-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./location-
|
|
13
|
+
ID10,
|
|
14
|
+
Service69,
|
|
15
|
+
node73
|
|
16
|
+
} from "./location-h72xck84.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
19
|
} from "./location-5t3nmthw.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./location-
|
|
21
|
+
Service75,
|
|
22
|
+
node79
|
|
23
|
+
} from "./location-83vepgva.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
26
|
} from "./location-h6vf3j39.js";
|
|
@@ -32,32 +32,32 @@ import {
|
|
|
32
32
|
compatible2,
|
|
33
33
|
isCheckpoint2,
|
|
34
34
|
encode2
|
|
35
|
-
} from "./location-
|
|
35
|
+
} from "./location-yrcj3v3g.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./location-
|
|
37
|
+
load5
|
|
38
|
+
} from "./location-r5atvkz9.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./location-
|
|
41
|
+
} from "./location-pnzf6mjf.js";
|
|
42
42
|
import {
|
|
43
43
|
baseTranscript2,
|
|
44
44
|
unsupportedParts2,
|
|
45
45
|
boundImages2,
|
|
46
|
-
|
|
46
|
+
Service29,
|
|
47
47
|
node33
|
|
48
|
-
} from "./location-
|
|
48
|
+
} from "./location-zzz4tyg8.js";
|
|
49
49
|
import {
|
|
50
50
|
Service43,
|
|
51
51
|
node45
|
|
52
|
-
} from "./location-
|
|
52
|
+
} from "./location-8b345ry2.js";
|
|
53
53
|
import {
|
|
54
54
|
isRetryable2,
|
|
55
55
|
policy2
|
|
56
|
-
} from "./location-
|
|
56
|
+
} from "./location-zyk1yjk8.js";
|
|
57
57
|
import {
|
|
58
58
|
toSessionError2,
|
|
59
59
|
contentFilterError2
|
|
60
|
-
} from "./location-
|
|
60
|
+
} from "./location-ey3qhexw.js";
|
|
61
61
|
import {
|
|
62
62
|
calculateCost2,
|
|
63
63
|
record2,
|
|
@@ -70,13 +70,13 @@ import {
|
|
|
70
70
|
// src/session/compaction.ts
|
|
71
71
|
var exports_compaction2 = {};
|
|
72
72
|
__export(exports_compaction2, {
|
|
73
|
-
Service: () =>
|
|
73
|
+
Service: () => Service8,
|
|
74
74
|
SessionCompaction: () => exports_compaction2,
|
|
75
75
|
buildPrompt: () => buildPrompt2,
|
|
76
76
|
estimateContext: () => estimateContext2,
|
|
77
77
|
estimatePrompt: () => estimatePrompt2,
|
|
78
|
-
layer: () =>
|
|
79
|
-
node: () =>
|
|
78
|
+
layer: () => layer7,
|
|
79
|
+
node: () => node10,
|
|
80
80
|
recentUserMessages: () => recentUserMessages2
|
|
81
81
|
});
|
|
82
82
|
import {
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "@opencode/ai";
|
|
93
93
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
94
94
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
95
|
-
class
|
|
95
|
+
class Service8 extends Context.Service()("@opencode/SessionCompaction") {
|
|
96
96
|
}
|
|
97
97
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
98
98
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -171,14 +171,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
171
171
|
};
|
|
172
172
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
173
173
|
var LEGACY_HEADING = "## Additional Context";
|
|
174
|
-
var
|
|
175
|
-
const agents = yield*
|
|
174
|
+
var layer7 = Layer.effect(Service8, Effect.gen(function* () {
|
|
175
|
+
const agents = yield* Service69;
|
|
176
176
|
const bus = yield* Service83;
|
|
177
177
|
const llm = yield* LLMClient.Service;
|
|
178
|
-
const catalog = yield*
|
|
178
|
+
const catalog = yield* Service75;
|
|
179
179
|
const models = yield* Service43;
|
|
180
180
|
const db = (yield* Service84).db;
|
|
181
|
-
const requests = yield*
|
|
181
|
+
const requests = yield* Service29;
|
|
182
182
|
const state = create3({
|
|
183
183
|
name: "session-compaction",
|
|
184
184
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -196,7 +196,7 @@ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
196
196
|
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
197
197
|
return { status: "skipped" };
|
|
198
198
|
const native = context.model.compaction?.type === "native";
|
|
199
|
-
const agent = native ? undefined : yield* agents.get(
|
|
199
|
+
const agent = native ? undefined : yield* agents.get(ID10.make("compaction"));
|
|
200
200
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
201
201
|
return;
|
|
202
202
|
})))) ?? context.model;
|
|
@@ -272,7 +272,7 @@ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
272
272
|
const send = (request) => {
|
|
273
273
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
274
274
|
return Effect.gen(function* () {
|
|
275
|
-
const history = yield*
|
|
275
|
+
const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
|
|
276
276
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
277
277
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
278
278
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -472,16 +472,16 @@ ${text}`;
|
|
|
472
472
|
}, { metadata: outcome.metadata });
|
|
473
473
|
return { status: "completed" };
|
|
474
474
|
});
|
|
475
|
-
return
|
|
475
|
+
return Service8.of({
|
|
476
476
|
transform: state.transform,
|
|
477
477
|
reload: state.reload,
|
|
478
478
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
479
479
|
});
|
|
480
480
|
}));
|
|
481
|
-
var
|
|
482
|
-
service:
|
|
483
|
-
layer:
|
|
484
|
-
deps: [
|
|
481
|
+
var node10 = makeLocationNode({
|
|
482
|
+
service: Service8,
|
|
483
|
+
layer: layer7,
|
|
484
|
+
deps: [node73, node87, node88, llmClient2, node79, node33, node45]
|
|
485
485
|
});
|
|
486
486
|
var previousCompaction = (messages) => {
|
|
487
487
|
const [first] = messages;
|
|
@@ -686,4 +686,4 @@ var estimateMedia = (mime) => {
|
|
|
686
686
|
return 0;
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
export {
|
|
689
|
+
export { Service8, buildPrompt2, layer7, node10, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service9,
|
|
13
|
+
node: () => node11
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service9 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service9.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node11 = makeLocationNode({ service: Service9, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service9, node11, exports_location_watcher_policy };
|