@opencode/core 0.0.0-dev-20195 → 0.0.0-dev-20196
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/account/sql.js +1 -1
- package/dist/agent.js +79 -79
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{config-d0g0pqf7.js → file-mutation-00x9hzck.js} +8 -8
- package/dist/chunks/{config-eh4jt04e.js → file-mutation-06avesrm.js} +12 -12
- package/dist/chunks/{config-jtd5a63n.js → file-mutation-0bt5rkyv.js} +9 -9
- package/dist/chunks/{config-wrmrmykr.js → file-mutation-0dr0g8g1.js} +6 -6
- package/dist/chunks/{config-chx6d6tt.js → file-mutation-0jjvght6.js} +10 -10
- package/dist/chunks/{config-je7tdbs0.js → file-mutation-0k08rxc6.js} +33 -33
- package/dist/chunks/{config-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{config-mwwmpq4r.js → file-mutation-0pkr918c.js} +36 -36
- package/dist/chunks/{config-zxt09vhx.js → file-mutation-0q60sf5x.js} +11 -11
- package/dist/chunks/{config-epaabzb0.js → file-mutation-0tkcb012.js} +24 -24
- package/dist/chunks/{config-ze75yzft.js → file-mutation-166kng33.js} +8 -8
- package/dist/chunks/{config-yp2x3t23.js → file-mutation-1acjjqhc.js} +4 -4
- package/dist/chunks/{config-1dazxqgg.js → file-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{config-6pc27hjz.js → file-mutation-1p07q0wb.js} +8 -8
- package/dist/chunks/{config-xq1shfhv.js → file-mutation-1pc8b49c.js} +10 -10
- package/dist/chunks/{config-tp4em4fx.js → file-mutation-1vcc0tqx.js} +15 -15
- package/dist/chunks/{config-21r38tys.js → file-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{config-2402vzrj.js → file-mutation-2402vzrj.js} +1 -1
- package/dist/chunks/{config-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{config-6vda3hdz.js → file-mutation-2ka3r0xm.js} +26 -26
- package/dist/chunks/{config-297axkkc.js → file-mutation-2tn83n21.js} +17 -17
- package/dist/chunks/{config-vd4t73rm.js → file-mutation-2wdjbrvw.js} +22 -22
- package/dist/chunks/{config-r3bb402n.js → file-mutation-31ndy29r.js} +29 -29
- package/dist/chunks/{config-4wgr6ws5.js → file-mutation-33z6kxja.js} +37 -37
- package/dist/chunks/{config-jjzhwb0d.js → file-mutation-36wh3zdf.js} +6 -6
- package/dist/chunks/{config-xpac2x5a.js → file-mutation-37ccqw5v.js} +3 -3
- package/dist/chunks/{config-3xn3pbdy.js → file-mutation-39thqb0z.js} +82 -82
- package/dist/chunks/{config-e93201sm.js → file-mutation-3ag7ttm0.js} +15 -15
- package/dist/chunks/{config-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{config-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{config-vj9s6wy4.js → file-mutation-3hmc9p2p.js} +55 -55
- package/dist/chunks/{config-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{config-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{config-3zsf4n22.js → file-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{config-19m0y6e0.js → file-mutation-45bn2qe8.js} +27 -27
- package/dist/chunks/{config-705e2ap1.js → file-mutation-49exe669.js} +5 -5
- package/dist/chunks/{config-295dersz.js → file-mutation-4d8ebea5.js} +15 -15
- package/dist/chunks/{config-7tx5g9sa.js → file-mutation-4k2fjpjr.js} +23 -23
- package/dist/chunks/{config-4eem5j9w.js → file-mutation-4pe60rv6.js} +26 -26
- package/dist/chunks/{config-bhf2qwfw.js → file-mutation-4ywmn05m.js} +5 -5
- package/dist/chunks/{config-zf4vab36.js → file-mutation-55gwq3qn.js} +46 -46
- package/dist/chunks/{config-mnn4rm54.js → file-mutation-56798xf4.js} +20 -20
- package/dist/chunks/{config-drwq78ky.js → file-mutation-57b9ws8p.js} +5 -5
- package/dist/chunks/{config-57ez7d0k.js → file-mutation-57ez7d0k.js} +2 -2
- package/dist/chunks/{config-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{config-p0pcj68s.js → file-mutation-5q075wzn.js} +8 -8
- package/dist/chunks/{config-sskdr19r.js → file-mutation-5rd0r6f7.js} +1 -1
- package/dist/chunks/{config-5t3nmthw.js → file-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{config-0ntvbc7j.js → file-mutation-5vth3xyp.js} +45 -45
- package/dist/chunks/{config-eq102nfe.js → file-mutation-5zpn8qhf.js} +134 -134
- package/dist/chunks/{config-7np6y5v9.js → file-mutation-607q5haz.js} +12 -12
- package/dist/chunks/{config-0ny8pk0m.js → file-mutation-61w5k2bk.js} +3 -3
- package/dist/chunks/{config-znhb3s94.js → file-mutation-63vbqmwh.js} +2 -2
- package/dist/chunks/{config-669tq793.js → file-mutation-669tq793.js} +1 -1
- package/dist/chunks/{config-1zgcewym.js → file-mutation-6by7ejxe.js} +23 -23
- package/dist/chunks/{config-fwmkx0kr.js → file-mutation-6m5gwycq.js} +9 -9
- package/dist/chunks/{config-6msgmcgs.js → file-mutation-6msgmcgs.js} +1 -1
- package/dist/chunks/{config-szzydw97.js → file-mutation-6qdk3m7n.js} +15 -15
- package/dist/chunks/{config-sz7jdn1d.js → file-mutation-6y9tzzzt.js} +5 -5
- package/dist/chunks/{config-1bbkgx8g.js → file-mutation-73tb2d7t.js} +3 -3
- package/dist/chunks/{config-hywngpvt.js → file-mutation-7629jcb2.js} +9 -9
- package/dist/chunks/{config-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{config-n05ctsyv.js → file-mutation-7he179h5.js} +3 -3
- package/dist/chunks/{config-bkxzp8j2.js → file-mutation-7hrh0yhw.js} +3 -3
- package/dist/chunks/{config-ez1k74tj.js → file-mutation-7mzanbhg.js} +35 -35
- package/dist/chunks/{config-0raz1yy5.js → file-mutation-7ncrrmyf.js} +11 -11
- package/dist/chunks/{config-2851hzkp.js → file-mutation-7q8hkdsk.js} +15 -15
- package/dist/chunks/{config-t2zkwxfg.js → file-mutation-7tbm9b7t.js} +3 -3
- package/dist/chunks/{config-hx4rcwcn.js → file-mutation-80rcay5r.js} +8 -8
- package/dist/chunks/{config-md4c1mf5.js → file-mutation-82mxp87a.js} +43 -43
- package/dist/chunks/{config-2vas31rw.js → file-mutation-8443s99e.js} +17 -17
- package/dist/chunks/{config-8d7r5vzw.js → file-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{config-ar4a8fck.js → file-mutation-8ygpbkv1.js} +16 -16
- package/dist/chunks/{config-tb3b9sw6.js → file-mutation-908kwkj3.js} +12 -12
- package/dist/chunks/{config-ndmv45hp.js → file-mutation-91m9hd8f.js} +2 -2
- package/dist/chunks/{config-2a6rn6yr.js → file-mutation-93ygb5af.js} +6 -6
- package/dist/chunks/{config-gfvb90ym.js → file-mutation-94ek1h2f.js} +2 -2
- package/dist/chunks/{config-454kp9wr.js → file-mutation-9ecw5ke1.js} +6 -6
- package/dist/chunks/{config-ref9hxfn.js → file-mutation-9r9g3gnb.js} +6 -6
- package/dist/chunks/{config-07v9x2xm.js → file-mutation-a1dcbnh1.js} +14 -14
- package/dist/chunks/{config-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{config-6rkpdbb3.js → file-mutation-annjwsdj.js} +28 -28
- package/dist/chunks/{config-s10erfkq.js → file-mutation-arws8trd.js} +4 -4
- package/dist/chunks/{config-g3e158x3.js → file-mutation-aztrj7be.js} +15 -15
- package/dist/chunks/{config-hkagk5ex.js → file-mutation-b07rpg7m.js} +2 -2
- package/dist/chunks/{config-y2062v7b.js → file-mutation-b0g280va.js} +23 -23
- package/dist/chunks/{config-0fbxv240.js → file-mutation-b0rtdght.js} +11 -11
- package/dist/chunks/{config-23vj23fc.js → file-mutation-b2g6p7zb.js} +9 -9
- package/dist/chunks/{config-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{config-0hwvvjm7.js → file-mutation-b9frkjp9.js} +1 -1
- package/dist/chunks/{config-ekr1tkzw.js → file-mutation-ba1mv5p0.js} +3 -3
- package/dist/chunks/{config-bey3dpw7.js → file-mutation-bfn9xngp.js} +22 -22
- package/dist/chunks/{config-xa04810w.js → file-mutation-bhp9zwz7.js} +25 -25
- package/dist/chunks/{config-qdcc6b4g.js → file-mutation-bjgnzx8v.js} +12 -12
- package/dist/chunks/{config-8j758wh3.js → file-mutation-bmb3ej5t.js} +4 -4
- package/dist/chunks/{config-5ay8pqcq.js → file-mutation-bqdk09cg.js} +38 -38
- package/dist/chunks/{config-96gkbmz7.js → file-mutation-bvb037bs.js} +5 -5
- package/dist/chunks/{config-70gxshxr.js → file-mutation-bw35qwa5.js} +1 -1
- package/dist/chunks/{config-56ee48df.js → file-mutation-bw4jwp7x.js} +9 -9
- package/dist/chunks/{config-had4kgfk.js → file-mutation-c4y5a9cq.js} +8 -8
- package/dist/chunks/{config-59dka41c.js → file-mutation-cbbagb43.js} +11 -11
- package/dist/chunks/{config-h2gfwxs3.js → file-mutation-cekhgrsm.js} +87 -87
- package/dist/chunks/{config-4k1w60t0.js → file-mutation-chbxjcn8.js} +9 -9
- package/dist/chunks/{config-54tcyq79.js → file-mutation-ckecvw8r.js} +2 -2
- package/dist/chunks/{config-cpneeje0.js → file-mutation-cwa6csj7.js} +9 -9
- package/dist/chunks/{config-7bv32vg5.js → file-mutation-d48vtfkp.js} +18 -18
- package/dist/chunks/{config-dpkg50ah.js → file-mutation-dpkg50ah.js} +1 -1
- package/dist/chunks/{config-q8w7nh62.js → file-mutation-dv5spdm5.js} +25 -25
- package/dist/chunks/{config-rxbrkmj1.js → file-mutation-dw698h1a.js} +14 -14
- package/dist/chunks/{config-cmwcq0ka.js → file-mutation-dy8qwv32.js} +25 -25
- package/dist/chunks/{config-0r7yqxbf.js → file-mutation-e6hmchc5.js} +5 -5
- package/dist/chunks/{config-02nrjc1r.js → file-mutation-eaj1djv9.js} +4 -4
- package/dist/chunks/{config-mff2yvab.js → file-mutation-ec9ctddj.js} +3 -3
- package/dist/chunks/{config-ecfe7b91.js → file-mutation-ecfe7b91.js} +2 -2
- package/dist/chunks/{config-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{config-yqz2244c.js → file-mutation-eq1jxjww.js} +48 -48
- package/dist/chunks/{config-etq0c3wd.js → file-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{config-npk6dv14.js → file-mutation-exq2ffnr.js} +13 -13
- package/dist/chunks/{config-35zdc76s.js → file-mutation-eyansxxn.js} +23 -23
- package/dist/chunks/{config-n9ymfxxx.js → file-mutation-ez89fygf.js} +32 -32
- package/dist/chunks/{config-t7n9q6bq.js → file-mutation-f73rjn58.js} +4 -4
- package/dist/chunks/{config-7hvbv13b.js → file-mutation-feek47bh.js} +27 -27
- package/dist/chunks/{config-jt56r67m.js → file-mutation-fgpb6470.js} +13 -13
- package/dist/chunks/{config-xk747vep.js → file-mutation-fhs97t90.js} +8 -8
- package/dist/chunks/{config-cve16y82.js → file-mutation-fj17yqcr.js} +1 -1
- package/dist/chunks/{config-hdfwwe2n.js → file-mutation-fsmjrpwr.js} +6 -6
- package/dist/chunks/{config-1sh6c7wg.js → file-mutation-fss11zrv.js} +35 -35
- package/dist/chunks/{config-tmyxw72k.js → file-mutation-fwg4bfmy.js} +3 -3
- package/dist/chunks/{config-z9aq390g.js → file-mutation-fyrmabcy.js} +8 -8
- package/dist/chunks/{config-ttcp5xkb.js → file-mutation-g4nge062.js} +13 -13
- package/dist/chunks/{config-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{config-gv6a8nnw.js → file-mutation-gv6a8nnw.js} +2 -2
- package/dist/chunks/{config-qys7aaaj.js → file-mutation-gz2b78z0.js} +20 -20
- package/dist/chunks/{config-e3dd7bme.js → file-mutation-gzwr95fx.js} +6 -6
- package/dist/chunks/{config-m265mxzt.js → file-mutation-h22dswsw.js} +16 -16
- package/dist/chunks/{config-80nef7dm.js → file-mutation-h2j90xdb.js} +12 -12
- package/dist/chunks/{config-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{config-d7vvjxwr.js → file-mutation-hbj37746.js} +23 -23
- package/dist/chunks/{config-gg3hnhsj.js → file-mutation-hekxc47r.js} +1 -1
- package/dist/chunks/{config-pf8nwgds.js → file-mutation-hjtdmxqs.js} +15 -15
- package/dist/chunks/{config-yt0fqk68.js → file-mutation-hkfg6fzm.js} +5 -5
- package/dist/chunks/{config-jb5eh492.js → file-mutation-hzxg5djm.js} +16 -16
- package/dist/chunks/{config-js1bgrk5.js → file-mutation-j0b1x3jn.js} +13 -13
- package/dist/chunks/{config-gmwd0m74.js → file-mutation-j2978cmg.js} +39 -39
- package/dist/chunks/{config-j56e64zr.js → file-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/{config-py6e26kd.js → file-mutation-j64p557d.js} +11 -11
- package/dist/chunks/{config-s6ymxyzv.js → file-mutation-jarn1zxe.js} +6 -6
- package/dist/chunks/{config-j9bb3hnd.js → file-mutation-jazhghcp.js} +15 -15
- package/dist/chunks/{config-apwn9spd.js → file-mutation-jfyc1maa.js} +14 -14
- package/dist/chunks/{config-0anx78yw.js → file-mutation-jj5netzx.js} +9 -9
- package/dist/chunks/{config-js82azy0.js → file-mutation-jk58jcy1.js} +21 -21
- package/dist/chunks/{config-h4ekgxw3.js → file-mutation-jk776ydv.js} +6 -6
- package/dist/chunks/{config-1h80sv90.js → file-mutation-jsb3pxss.js} +8 -8
- package/dist/chunks/{config-tw2sz0rq.js → file-mutation-jshgtcbt.js} +20 -20
- package/dist/chunks/{config-f3qy8zjn.js → file-mutation-jsx6v7sj.js} +11 -11
- package/dist/chunks/{config-nr672dpf.js → file-mutation-jvy91fcn.js} +28 -28
- package/dist/chunks/{config-t7jgv0pg.js → file-mutation-jxg9h7h6.js} +52 -52
- package/dist/chunks/{config-mnb5mnp1.js → file-mutation-k18pbb1y.js} +8 -8
- package/dist/chunks/{config-f5gy8qwh.js → file-mutation-k1qrnqst.js} +8 -8
- package/dist/chunks/{config-k3c624dm.js → file-mutation-k3c624dm.js} +3 -3
- package/dist/chunks/{config-h75129nt.js → file-mutation-ka6f9z9r.js} +1 -1
- package/dist/chunks/{config-47q4gzaj.js → file-mutation-kc6k5esa.js} +24 -24
- package/dist/chunks/{config-1v5g7h7z.js → file-mutation-kwqt7trd.js} +7 -7
- package/dist/chunks/{config-kzc3h1h3.js → file-mutation-kzc3h1h3.js} +1 -1
- package/dist/chunks/{config-0f6jxcrw.js → file-mutation-m1hk3fbq.js} +8 -8
- package/dist/chunks/{config-m3fdjcah.js → file-mutation-m3fdjcah.js} +1 -1
- package/dist/chunks/{config-7r2ns73q.js → file-mutation-m7h4c5p1.js} +24 -24
- package/dist/chunks/{config-hy7sqhkh.js → file-mutation-m7qqma2k.js} +12 -12
- package/dist/chunks/{config-vzbf696k.js → file-mutation-m8xex9m9.js} +4 -4
- package/dist/chunks/{config-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{config-bdgvyade.js → file-mutation-madt145n.js} +20 -20
- package/dist/chunks/{config-qj8eh1ht.js → file-mutation-magykp64.js} +4 -4
- package/dist/chunks/{config-cmfxejye.js → file-mutation-mdw2h4tg.js} +3 -3
- package/dist/chunks/{config-6zycmakc.js → file-mutation-mepdzt2d.js} +11 -11
- package/dist/chunks/{config-33w4ejhs.js → file-mutation-mfqp6xfm.js} +9 -9
- package/dist/chunks/{config-3acv6brs.js → file-mutation-mh153f1p.js} +11 -11
- package/dist/chunks/{config-rmxzq7f5.js → file-mutation-mksgfzgs.js} +5 -5
- package/dist/chunks/{config-5ezt1pd0.js → file-mutation-mkwktbjz.js} +22 -22
- package/dist/chunks/{config-axcxkett.js → file-mutation-mqwgf0bk.js} +18 -18
- package/dist/chunks/{config-jjem1y9x.js → file-mutation-mrj8mwf0.js} +30 -30
- package/dist/chunks/{config-knqa2gk8.js → file-mutation-n08rr4pq.js} +18 -18
- package/dist/chunks/{config-2m1z897j.js → file-mutation-n24gc8vs.js} +11 -11
- package/dist/chunks/{config-r9w3djhf.js → file-mutation-n37c4crj.js} +5 -5
- package/dist/chunks/{config-0jtesnr4.js → file-mutation-n3hytwrq.js} +11 -11
- package/dist/chunks/{config-7tbn3xvm.js → file-mutation-n5anf3fb.js} +14 -14
- package/dist/chunks/{config-4vek9trb.js → file-mutation-n61sj0zv.js} +27 -27
- package/dist/chunks/{config-m2wvpmrz.js → file-mutation-n7y60bnp.js} +27 -27
- package/dist/chunks/{config-b37sgj8e.js → file-mutation-n92w27pw.js} +13 -13
- package/dist/chunks/{config-ce09rktv.js → file-mutation-na5yh9md.js} +21 -21
- package/dist/chunks/{config-d9tzqxjz.js → file-mutation-nn2w30r8.js} +23 -23
- package/dist/chunks/{config-pf2hb43r.js → file-mutation-nqnxh7mc.js} +6 -6
- package/dist/chunks/{config-ft0c832p.js → file-mutation-nzdeb66t.js} +9 -9
- package/dist/chunks/{config-cpj0znwe.js → file-mutation-nzyhnfxz.js} +4 -4
- package/dist/chunks/{config-96aey767.js → file-mutation-p4etetpf.js} +32 -32
- package/dist/chunks/{config-a81kfqvn.js → file-mutation-p6wxjpka.js} +4 -4
- package/dist/chunks/{config-akrnn5pm.js → file-mutation-pb1eahw5.js} +8 -8
- package/dist/chunks/{config-8qvzptz7.js → file-mutation-pcxghkgz.js} +4 -4
- package/dist/chunks/{config-1cf5abn8.js → file-mutation-pdn3apj7.js} +14 -14
- package/dist/chunks/{config-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{config-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{config-zn5v3n4q.js → file-mutation-px76j0pk.js} +9 -9
- package/dist/chunks/{config-g15xs6qb.js → file-mutation-pz7cr76j.js} +41 -41
- package/dist/chunks/{config-abney02d.js → file-mutation-q241hggs.js} +25 -25
- package/dist/chunks/{config-6wksry55.js → file-mutation-q2y76nmn.js} +16 -16
- package/dist/chunks/{config-6736kgvh.js → file-mutation-q5ne48hz.js} +13 -13
- package/dist/chunks/{config-vc4tj14c.js → file-mutation-q752a12t.js} +20 -20
- package/dist/chunks/{config-zj8g04kx.js → file-mutation-q9mp86yc.js} +11 -11
- package/dist/chunks/{config-7gzq7424.js → file-mutation-qcc5r1n1.js} +30 -30
- package/dist/chunks/{config-43zyxgq8.js → file-mutation-qcdf9a5m.js} +1 -1
- package/dist/chunks/{config-7dqw4kz8.js → file-mutation-qgn6gcr1.js} +5 -5
- package/dist/chunks/file-mutation-qhp8asra.js +252 -0
- package/dist/chunks/{config-y1zffv57.js → file-mutation-qm67wygm.js} +8 -8
- package/dist/chunks/{config-evbgk2k8.js → file-mutation-qr8csav2.js} +5 -5
- package/dist/chunks/{config-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{config-vp67wfqm.js → file-mutation-qvcq4vww.js} +24 -24
- package/dist/chunks/{config-n3mwpccg.js → file-mutation-r4jmx1pn.js} +19 -19
- package/dist/chunks/{config-t5vtp9rn.js → file-mutation-r4m9e03x.js} +12 -12
- package/dist/chunks/file-mutation-rap9a73h.js +18 -0
- package/dist/chunks/{config-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{config-fvve35qg.js → file-mutation-rq2znn32.js} +29 -29
- package/dist/chunks/{config-v991q2ks.js → file-mutation-rqnjnaqb.js} +4 -4
- package/dist/chunks/{config-q2bwdck2.js → file-mutation-sbwvsvgv.js} +17 -17
- package/dist/chunks/{config-spn7hksh.js → file-mutation-skv4x9jf.js} +16 -16
- package/dist/chunks/{config-jhpaar4x.js → file-mutation-sm965ndy.js} +8 -8
- package/dist/chunks/{config-t9zs3egg.js → file-mutation-sx1n432n.js} +4 -4
- package/dist/chunks/{config-tdpndm1c.js → file-mutation-sznyev98.js} +5 -5
- package/dist/chunks/{config-ratrq7cm.js → file-mutation-t6vsspdg.js} +7 -7
- package/dist/chunks/{config-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{config-tcezcvh9.js → file-mutation-tcezcvh9.js} +1 -1
- package/dist/chunks/{config-kn2sx07v.js → file-mutation-tcwxap8g.js} +28 -28
- package/dist/chunks/{config-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{config-v03b5pvj.js → file-mutation-tknscx6b.js} +22 -22
- package/dist/chunks/{config-4b92gd6e.js → file-mutation-tmkkbmay.js} +28 -28
- package/dist/chunks/{config-9hn6k4tm.js → file-mutation-tpw6cwsb.js} +8 -8
- package/dist/chunks/{config-tvtrv512.js → file-mutation-tvtrv512.js} +1 -1
- package/dist/chunks/{config-0sm4f45j.js → file-mutation-v0j3551j.js} +28 -28
- package/dist/chunks/{config-3t2xcng8.js → file-mutation-v0mz33x9.js} +73 -73
- package/dist/chunks/{config-4qjdqxbv.js → file-mutation-v434jxdj.js} +26 -26
- package/dist/chunks/{config-ndqtf2h8.js → file-mutation-va5qff5x.js} +6 -6
- package/dist/chunks/{config-27s8bqjz.js → file-mutation-vbr7z2an.js} +7 -7
- package/dist/chunks/{config-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{config-btbmdjwj.js → file-mutation-vfjhn2wd.js} +4 -4
- package/dist/chunks/{config-f72dzx6j.js → file-mutation-vq1w5bxf.js} +20 -20
- package/dist/chunks/{config-p3dfpxct.js → file-mutation-vwmcz341.js} +32 -32
- package/dist/chunks/{config-vzcthcp8.js → file-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{config-vzs5sf6e.js → file-mutation-vzs5sf6e.js} +1 -1
- package/dist/chunks/{config-8gx3jvtz.js → file-mutation-w16ewm88.js} +32 -32
- package/dist/chunks/{config-rjbxhfgb.js → file-mutation-w1hpm58k.js} +51 -51
- package/dist/chunks/{config-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{config-8zwfmhx2.js → file-mutation-w579p95t.js} +15 -15
- package/dist/chunks/{config-73k9rh6w.js → file-mutation-w5sez581.js} +8 -8
- package/dist/chunks/{config-t1930g8y.js → file-mutation-w8ferkse.js} +10 -10
- package/dist/chunks/{config-bd9sv20n.js → file-mutation-was05px2.js} +31 -31
- package/dist/chunks/{config-psazpmmj.js → file-mutation-wd3x2cqz.js} +2 -2
- package/dist/chunks/{config-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{config-eytwkb2e.js → file-mutation-wf80fvfx.js} +24 -24
- package/dist/chunks/{config-fs4g4s7s.js → file-mutation-whrzd189.js} +12 -12
- package/dist/chunks/file-mutation-wjf1m7fj.js +26 -0
- package/dist/chunks/{config-s0e1y9y9.js → file-mutation-wmnz76n2.js} +12 -12
- package/dist/chunks/{config-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/file-mutation-x5pftk9r.js +507 -0
- package/dist/chunks/{config-sjnymxq5.js → file-mutation-x9v2s4mt.js} +46 -46
- package/dist/chunks/{config-mrm2rqc2.js → file-mutation-xatxs8ze.js} +4 -4
- package/dist/chunks/{config-bt976gfq.js → file-mutation-xdcdg5gg.js} +11 -11
- package/dist/chunks/{config-g29bj6y9.js → file-mutation-xdyqf2ep.js} +28 -28
- package/dist/chunks/{config-dmqcgk4z.js → file-mutation-xkntkrq7.js} +5 -5
- package/dist/chunks/{config-ekp917ff.js → file-mutation-xptjm771.js} +11 -11
- package/dist/chunks/{config-52tph2md.js → file-mutation-xv48q100.js} +20 -20
- package/dist/chunks/{config-fx5e6na3.js → file-mutation-xwm6bryg.js} +4 -4
- package/dist/chunks/{config-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{config-ak1tpw6q.js → file-mutation-yksbe7bm.js} +2 -2
- package/dist/chunks/{config-syxj7ex2.js → file-mutation-yrgme7j0.js} +12 -12
- package/dist/chunks/{config-yrhqyw5v.js → file-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{config-yrznvahk.js → file-mutation-yrznvahk.js} +2 -2
- package/dist/chunks/{config-zcrw2f69.js → file-mutation-yt06qecn.js} +33 -33
- package/dist/chunks/{config-bjtzbw4r.js → file-mutation-z07pqspn.js} +3 -3
- package/dist/chunks/{config-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{config-z63w68vq.js → file-mutation-z63w68vq.js} +2 -2
- package/dist/chunks/{config-zyzwya36.js → file-mutation-z6ze4cqf.js} +8 -8
- package/dist/chunks/{config-qr30w61m.js → file-mutation-zcnbza31.js} +35 -35
- package/dist/chunks/{config-zeh9ct20.js → file-mutation-zeh9ct20.js} +2 -2
- package/dist/chunks/{config-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{config-ed84fsvm.js → file-mutation-zwy3hb2f.js} +21 -21
- package/dist/chunks/{config-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +84 -84
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +1 -1
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +94 -94
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -161
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +97 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +85 -85
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +123 -123
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/config-36j2y7hk.js +0 -507
- package/dist/chunks/config-f81tjggh.js +0 -18
- package/dist/chunks/config-nmmpegqz.js +0 -26
- package/dist/chunks/config-tsgjpmhp.js +0 -252
- /package/dist/chunks/{config-0mesazry.js → file-mutation-0mesazry.js} +0 -0
- /package/dist/chunks/{config-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{config-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{config-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{config-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{config-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{config-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{config-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{config-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{config-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{config-34c7v6d4.js → file-mutation-34c7v6d4.js} +0 -0
- /package/dist/chunks/{config-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{config-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{config-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{config-3w5fmr99.js → file-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{config-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{config-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{config-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{config-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{config-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{config-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{config-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{config-5qd3pb7m.js → file-mutation-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{config-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{config-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{config-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{config-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{config-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{config-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{config-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{config-922hggd3.js → file-mutation-922hggd3.js} +0 -0
- /package/dist/chunks/{config-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{config-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{config-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{config-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{config-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{config-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{config-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{config-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{config-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{config-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{config-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{config-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{config-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{config-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{config-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{config-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{config-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{config-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{config-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{config-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{config-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{config-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{config-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{config-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{config-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{config-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{config-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{config-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{config-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{config-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{config-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{config-hjbc5kem.js → file-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{config-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{config-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{config-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{config-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{config-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{config-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{config-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{config-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{config-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{config-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{config-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{config-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{config-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{config-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{config-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{config-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{config-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{config-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{config-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{config-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{config-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{config-sk3qaz4a.js → file-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{config-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{config-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{config-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{config-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{config-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{config-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{config-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{config-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{config-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{config-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{config-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{config-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{config-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-3w5fmr99.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/tool-input-repair.ts
|
|
9
9
|
var exports_tool_input_repair = {};
|
|
10
10
|
__export(exports_tool_input_repair, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin36,
|
|
12
12
|
ToolInputRepairPlugin: () => exports_tool_input_repair
|
|
13
13
|
});
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Effect, Option, Predicate, Schema } from "effect";
|
|
16
16
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
17
17
|
var maxDepth = 6;
|
|
18
|
-
var
|
|
18
|
+
var Plugin36 = define({
|
|
19
19
|
id: "opencode.tool.input.repair",
|
|
20
20
|
effect: (ctx) => ctx.tool.hook("execute.before", (event) => Effect.gen(function* () {
|
|
21
21
|
if (event.tool === "execute")
|
|
@@ -120,4 +120,4 @@ function repairArray(value, schema, root, depth) {
|
|
|
120
120
|
return compatible ? [repaired] : value;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { Plugin36, exports_tool_input_repair };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-n3hytwrq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service83
|
|
6
|
+
} from "./file-mutation-r4m9e03x.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event17,
|
|
10
|
+
Service68
|
|
11
|
+
} from "./file-mutation-feek47bh.js";
|
|
12
12
|
import {
|
|
13
13
|
ID8,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service67
|
|
16
|
+
} from "./file-mutation-dv5spdm5.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-pjvnvgmy.js";
|
|
21
21
|
import {
|
|
22
22
|
ID7
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-rq2znn32.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-mutation-gzwr95fx.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -53,9 +53,9 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
58
|
-
const bus = yield*
|
|
56
|
+
const credentials = yield* Service68;
|
|
57
|
+
const integrations = yield* Service67;
|
|
58
|
+
const bus = yield* Service83;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
61
61
|
const saved = Effect.gen(function* () {
|
|
@@ -184,7 +184,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
yield* bus.subscribe(
|
|
187
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
188
188
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
189
189
|
const token = envToken();
|
|
190
190
|
if (token)
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./file-mutation-r4m9e03x.js";
|
|
5
5
|
import {
|
|
6
6
|
Service36,
|
|
7
7
|
node39
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-j2978cmg.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service72,
|
|
11
|
+
node76
|
|
12
|
+
} from "./file-mutation-3hmc9p2p.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service39,
|
|
15
|
+
node42
|
|
16
|
+
} from "./file-mutation-wf80fvfx.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
25
|
Service: () => Service35,
|
|
26
|
-
layer: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
layer: () => layer14,
|
|
27
|
+
name: () => name14,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
29
|
node: () => node38
|
|
30
30
|
});
|
|
@@ -33,15 +33,15 @@ import { McpEvent } from "@opencode/schema/mcp-event";
|
|
|
33
33
|
import { Context, Effect, Fiber, Layer, PubSub, Semaphore, Stream } from "effect";
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
|
-
var
|
|
36
|
+
var name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
38
|
class Service35 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var layer14 = Layer.effect(Service35, Effect.gen(function* () {
|
|
41
41
|
const mcp = yield* Service36;
|
|
42
|
-
const tools = yield*
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const permission = yield*
|
|
42
|
+
const tools = yield* Service39;
|
|
43
|
+
const bus = yield* Service83;
|
|
44
|
+
const permission = yield* Service72;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -56,7 +56,7 @@ var layer13 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
56
56
|
output: tool.outputSchema ?? {},
|
|
57
57
|
execute: (input, context) => Effect.gen(function* () {
|
|
58
58
|
yield* permission.assert({
|
|
59
|
-
action:
|
|
59
|
+
action: name14(tool.server, tool.name),
|
|
60
60
|
resources: ["*"],
|
|
61
61
|
save: ["*"],
|
|
62
62
|
metadata: {},
|
|
@@ -105,7 +105,7 @@ var layer13 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
105
105
|
output: output(),
|
|
106
106
|
...content.length === 0 ? {} : { content }
|
|
107
107
|
};
|
|
108
|
-
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${
|
|
108
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${name14(tool.server, tool.name)}` })))
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -122,8 +122,8 @@ var layer13 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
var node38 = makeLocationNode({
|
|
124
124
|
service: Service35,
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
125
|
+
layer: layer14,
|
|
126
|
+
deps: [node42, node39, node87, node76]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2,
|
|
129
|
+
export { namespace2, name14, Service35, layer14, node38, exports_mcp3 };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-mutation-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./file-mutation-wmnz76n2.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service16,
|
|
12
|
+
node18
|
|
13
|
+
} from "./file-mutation-qcc5r1n1.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
@@ -22,20 +22,20 @@ __export(exports_filesystem, {
|
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
Entry: () => Entry2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event2,
|
|
26
26
|
FileSystem: () => exports_filesystem,
|
|
27
27
|
FindInput: () => FindInput2,
|
|
28
28
|
GlobInput: () => GlobInput2,
|
|
29
29
|
GrepInput: () => GrepInput2,
|
|
30
30
|
ListInput: () => ListInput2,
|
|
31
31
|
Match: () => Match2,
|
|
32
|
-
NotFoundError: () =>
|
|
32
|
+
NotFoundError: () => NotFoundError2,
|
|
33
33
|
ReadInput: () => ReadInput2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service15,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
37
|
WriteInput: () => WriteInput2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node17
|
|
39
39
|
});
|
|
40
40
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
41
41
|
import path from "path";
|
|
@@ -51,7 +51,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
51
51
|
data: Schema.Uint8Array
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class NotFoundError2 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
55
55
|
path: RelativePath2
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
@@ -85,14 +85,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
85
85
|
limit: Schema.optionalKey(PositiveInt2)
|
|
86
86
|
}) {
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Event2 = FileSystem.Event;
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service15 extends Context.Service()("@opencode/FileSystem") {
|
|
91
91
|
}
|
|
92
|
-
var baseLayer = Layer.effect(
|
|
92
|
+
var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
93
93
|
const fs = yield* FSUtil.Service;
|
|
94
|
-
const location = yield*
|
|
95
|
-
const search = yield*
|
|
94
|
+
const location = yield* Service80;
|
|
95
|
+
const search = yield* Service16;
|
|
96
96
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
97
97
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
98
98
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -103,15 +103,15 @@ var baseLayer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
103
103
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
104
|
return { absolute, real, directory: location.directory };
|
|
105
105
|
});
|
|
106
|
-
return
|
|
106
|
+
return Service15.of({
|
|
107
107
|
find: search.find,
|
|
108
108
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
109
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
110
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
109
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
110
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
111
111
|
if (info.type !== "File")
|
|
112
112
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
113
113
|
return {
|
|
114
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
114
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error))),
|
|
115
115
|
mime: FSUtil.mimeType(target.real)
|
|
116
116
|
};
|
|
117
117
|
}),
|
|
@@ -140,10 +140,10 @@ var baseLayer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
}));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node17 = makeLocationNode({
|
|
144
|
+
service: Service15,
|
|
145
145
|
layer: baseLayer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node84, node18]
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
149
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event2, Service15, node17, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-3hmc9p2p.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/plan.ts
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin33
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin33 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin33, exports_plan };
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service40
|
|
7
|
+
} from "./file-mutation-x9v2s4mt.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service54
|
|
13
|
+
} from "./file-mutation-qvcq4vww.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service61
|
|
16
|
+
} from "./file-mutation-6qdk3m7n.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service72
|
|
19
|
+
} from "./file-mutation-3hmc9p2p.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service19,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-n08rr4pq.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-mutation-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service49,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./file-mutation-q752a12t.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError6,
|
|
36
|
+
Service37
|
|
37
|
+
} from "./file-mutation-w1hpm58k.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service24
|
|
40
|
+
} from "./file-mutation-cekhgrsm.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./file-mutation-bmb3ej5t.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell2 = {};
|
|
50
|
+
__export(exports_shell2, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input4,
|
|
53
|
+
Plugin: () => Plugin40,
|
|
54
|
+
ShellTool: () => exports_shell2,
|
|
55
|
+
name: () => name4
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name4 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input4 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -116,19 +116,19 @@ Output is streaming to: ${file}`,
|
|
|
116
116
|
truncated: false,
|
|
117
117
|
status: "running"
|
|
118
118
|
});
|
|
119
|
-
var
|
|
119
|
+
var Plugin40 = {
|
|
120
120
|
id: "opencode.tool.shell",
|
|
121
121
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
122
|
-
const sessions = yield*
|
|
123
|
-
const jobs = yield*
|
|
122
|
+
const sessions = yield* Service24;
|
|
123
|
+
const jobs = yield* Service61;
|
|
124
124
|
const scope = yield* Scope.Scope;
|
|
125
|
-
const environment = yield*
|
|
126
|
-
const access = yield*
|
|
127
|
-
const shell = yield*
|
|
128
|
-
const shellSelect = yield*
|
|
125
|
+
const environment = yield* Service54;
|
|
126
|
+
const access = yield* Service19;
|
|
127
|
+
const shell = yield* Service37;
|
|
128
|
+
const shellSelect = yield* Service49;
|
|
129
129
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
130
|
-
const permission = yield*
|
|
131
|
-
const config = yield*
|
|
130
|
+
const permission = yield* Service72;
|
|
131
|
+
const config = yield* Service40;
|
|
132
132
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
133
133
|
const source = {
|
|
134
134
|
type: "tool",
|
|
@@ -147,7 +147,7 @@ var Plugin8 = {
|
|
|
147
147
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
148
148
|
if (parsed.commands.length > 0)
|
|
149
149
|
yield* permission.assert({
|
|
150
|
-
action:
|
|
150
|
+
action: name4,
|
|
151
151
|
resources: parsed.commands.map((command) => command.resource),
|
|
152
152
|
save: parsed.commands.map((command) => command.save),
|
|
153
153
|
sessionID: context.sessionID,
|
|
@@ -184,10 +184,10 @@ var Plugin8 = {
|
|
|
184
184
|
yield* jobs.completeBackground(info.notificationID);
|
|
185
185
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
186
186
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
187
|
-
name:
|
|
187
|
+
name: name4,
|
|
188
188
|
options: { codemode: false },
|
|
189
189
|
description: description(),
|
|
190
|
-
input:
|
|
190
|
+
input: Input4,
|
|
191
191
|
output: Output,
|
|
192
192
|
execute: (input, context) => Effect.gen(function* () {
|
|
193
193
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -206,7 +206,7 @@ var Plugin8 = {
|
|
|
206
206
|
const run = Effect.gen(function* () {
|
|
207
207
|
const result = yield* shell.result(info);
|
|
208
208
|
if (!result.capture)
|
|
209
|
-
return yield* new
|
|
209
|
+
return yield* new NotFoundError6({ id: info.id });
|
|
210
210
|
const output = output2(result);
|
|
211
211
|
return {
|
|
212
212
|
...output,
|
|
@@ -220,7 +220,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
220
220
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
221
221
|
const job = yield* jobs.start({
|
|
222
222
|
id: info.id,
|
|
223
|
-
type:
|
|
223
|
+
type: name4,
|
|
224
224
|
title: info.command,
|
|
225
225
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
226
226
|
recovery: {
|
|
@@ -250,7 +250,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
250
250
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
251
251
|
})).pipe(Effect.orDie);
|
|
252
252
|
const hook = (event) => Effect.gen(function* () {
|
|
253
|
-
const tool = event.tools[
|
|
253
|
+
const tool = event.tools[name4];
|
|
254
254
|
if (!tool)
|
|
255
255
|
return;
|
|
256
256
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -261,4 +261,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
261
261
|
})
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
export {
|
|
264
|
+
export { name4, DEFAULT_TIMEOUT_MS2, Input4, Plugin40, exports_shell2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key4,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make21,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-eaj1djv9.js";
|
|
7
7
|
import {
|
|
8
8
|
evaluate2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-3hmc9p2p.js";
|
|
10
10
|
import {
|
|
11
11
|
Service36,
|
|
12
12
|
node39
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-j2978cmg.js";
|
|
14
14
|
import {
|
|
15
15
|
namespace2,
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
name14
|
|
17
|
+
} from "./file-mutation-4k2fjpjr.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/mcp/instructions.ts
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
McpInstructions: () =>
|
|
26
|
-
Service: () =>
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
23
|
+
var exports_instructions3 = {};
|
|
24
|
+
__export(exports_instructions3, {
|
|
25
|
+
McpInstructions: () => exports_instructions3,
|
|
26
|
+
Service: () => Service29,
|
|
27
|
+
layer: () => layer11,
|
|
28
|
+
node: () => node33
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -61,13 +61,13 @@ var update = (previous, current) => {
|
|
|
61
61
|
`);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class Service29 extends Context.Service()("@opencode/McpInstructions") {
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var layer11 = Layer.effect(Service29, Effect.gen(function* () {
|
|
67
67
|
const mcp = yield* Service36;
|
|
68
|
-
return
|
|
68
|
+
return Service29.of({
|
|
69
69
|
load: Effect.fn("McpInstructions.load")(function* (permissions) {
|
|
70
|
-
const source = (value) =>
|
|
70
|
+
const source = (value) => make21({
|
|
71
71
|
key: Key4.make("core/mcp-guidance"),
|
|
72
72
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
73
73
|
read: Effect.succeed(value),
|
|
@@ -86,7 +86,7 @@ var layer12 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
86
86
|
const codemode = owned[0]?.codemode !== false;
|
|
87
87
|
if (codemode && !canExecute)
|
|
88
88
|
return [];
|
|
89
|
-
if (!owned.some((tool) => evaluate2(
|
|
89
|
+
if (!owned.some((tool) => evaluate2(name14(tool.server, tool.name), "*", permissions).effect !== "deny"))
|
|
90
90
|
return [];
|
|
91
91
|
return [
|
|
92
92
|
codemode ? { server: item.server, instructions: item.instructions } : { server: item.server, instructions: item.instructions, codemode: false }
|
|
@@ -96,6 +96,6 @@ var layer12 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var node33 = makeLocationNode({ service: Service29, layer: layer11, deps: [node39] });
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { Service29, layer11, node33, exports_instructions3 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
9
|
make: () => make14,
|
|
10
|
-
render: () =>
|
|
10
|
+
render: () => render2
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
// src/session/runner/prompt/system.txt
|
|
@@ -30,9 +30,9 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
32
|
function make14(tools) {
|
|
33
|
-
return
|
|
33
|
+
return render2(system_default, tools);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function render2(prompt, tools) {
|
|
36
36
|
const instructions = [];
|
|
37
37
|
if (tools.includes("shell")) {
|
|
38
38
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -47,4 +47,4 @@ function render3(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export { make14,
|
|
50
|
+
export { make14, render2, exports_system_prompt };
|