@opencode/core 0.0.0-dev-20156 → 0.0.0-dev-20157
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 +61 -61
- package/dist/aisdk-native.js +60 -60
- package/dist/aisdk.js +65 -65
- package/dist/app.js +5 -5
- package/dist/bus.js +50 -50
- package/dist/chunks/{repository-0qs0ha18.js → repository-02r4f2yh.js} +13 -13
- package/dist/chunks/{repository-a4jmhcge.js → repository-0dea7hqg.js} +4 -4
- package/dist/chunks/{repository-3cmt985g.js → repository-0dtc7saj.js} +9 -9
- package/dist/chunks/{repository-bd71zrs1.js → repository-0mp9629n.js} +22 -22
- package/dist/chunks/{repository-hcz3zddy.js → repository-0r7yqxbf.js} +3 -3
- package/dist/chunks/{repository-8t72k94d.js → repository-13dgep1z.js} +17 -17
- package/dist/chunks/{repository-vwt4a1k1.js → repository-1bfc10mg.js} +12 -12
- package/dist/chunks/{repository-065k3gj0.js → repository-1khmhcax.js} +8 -8
- package/dist/chunks/{repository-nf73ch59.js → repository-1tdtc034.js} +20 -20
- package/dist/chunks/{repository-dwhtnrsj.js → repository-1xpzac98.js} +17 -17
- package/dist/chunks/{repository-qq7xvnxm.js → repository-1z5ysepc.js} +10 -10
- package/dist/chunks/{repository-r8x54e6p.js → repository-21akxfrh.js} +60 -60
- package/dist/chunks/{repository-6h73sxmp.js → repository-2402vzrj.js} +4 -4
- package/dist/chunks/{repository-erw3g6b6.js → repository-2531bb5a.js} +11 -11
- package/dist/chunks/{repository-42swhqez.js → repository-2cjsxekc.js} +12 -12
- package/dist/chunks/{repository-xxhb4jr7.js → repository-2fgn2we9.js} +7 -7
- package/dist/chunks/{repository-5ft7x73b.js → repository-2j74qy9w.js} +1 -1
- package/dist/chunks/{repository-fcrkznn8.js → repository-2k8khapm.js} +4 -4
- package/dist/chunks/{repository-kv3csxch.js → repository-2nzc6ac3.js} +4 -4
- package/dist/chunks/{repository-k53npxr2.js → repository-32h4nn8p.js} +1 -1
- package/dist/chunks/{repository-0z8rxnnb.js → repository-38nmpqef.js} +20 -20
- package/dist/chunks/{repository-tgey6qrj.js → repository-3f66bwfz.js} +1 -1
- package/dist/chunks/{repository-rbmmr3kj.js → repository-3nhsj318.js} +19 -19
- package/dist/chunks/{repository-ykh5ygyr.js → repository-3petje8f.js} +3 -3
- package/dist/chunks/{repository-1p9j9tg9.js → repository-3rbef5jj.js} +2 -2
- package/dist/chunks/{repository-fqgxath9.js → repository-3x8fysj4.js} +17 -17
- package/dist/chunks/{repository-fvhjkb74.js → repository-3zz7237p.js} +6 -6
- package/dist/chunks/{repository-gf7f2369.js → repository-45g6rp4p.js} +3 -3
- package/dist/chunks/{repository-zfjkfzpq.js → repository-4bqx1nme.js} +10 -10
- package/dist/chunks/{repository-9rgfjqpd.js → repository-4d31bbse.js} +8 -8
- package/dist/chunks/{repository-m6jnjmfw.js → repository-4e5ccp43.js} +16 -16
- package/dist/chunks/{repository-96ctqc5x.js → repository-4eq8w0dz.js} +3 -3
- package/dist/chunks/{repository-w7t1fehg.js → repository-4f06rze2.js} +5 -5
- package/dist/chunks/{repository-jc7dnxay.js → repository-4gxz33t2.js} +13 -13
- package/dist/chunks/{repository-x2dtej9w.js → repository-4j5v26y0.js} +4 -4
- package/dist/chunks/{repository-fw5xg2y4.js → repository-4shp4sr3.js} +25 -25
- package/dist/chunks/{repository-f3tdbywg.js → repository-4t037ma6.js} +12 -12
- package/dist/chunks/{repository-8pnn1d33.js → repository-4tjr6zkn.js} +35 -35
- package/dist/chunks/{repository-fzxsvrpf.js → repository-50nkx4g5.js} +31 -31
- package/dist/chunks/{repository-6wkx2yew.js → repository-50zpe24t.js} +11 -11
- package/dist/chunks/{repository-2v0htzv5.js → repository-54cht2md.js} +16 -16
- package/dist/chunks/{repository-33w4ejhs.js → repository-56gdpj1q.js} +4 -4
- package/dist/chunks/{repository-vhag6pqf.js → repository-580xkvb2.js} +15 -15
- package/dist/chunks/{repository-st0xa5p1.js → repository-5gbgdf63.js} +23 -23
- package/dist/chunks/{repository-n4a7gw4r.js → repository-5ke24xg0.js} +24 -24
- package/dist/chunks/{repository-z2sk8n0r.js → repository-5qedxm44.js} +9 -9
- package/dist/chunks/{repository-4jztms0b.js → repository-5rfaxrsd.js} +19 -19
- package/dist/chunks/{repository-apzhk4s8.js → repository-61b773qj.js} +4 -4
- package/dist/chunks/{repository-nr8zx6fk.js → repository-62gx00z5.js} +17 -17
- package/dist/chunks/{repository-a7hkkdqn.js → repository-68pety7q.js} +7 -7
- package/dist/chunks/{repository-k5p7g1tb.js → repository-6j3j64eb.js} +73 -73
- package/dist/chunks/{repository-wxgegas4.js → repository-6t9zdyzr.js} +6 -6
- package/dist/chunks/{repository-bj7255yx.js → repository-70we0w58.js} +12 -12
- package/dist/chunks/{repository-jm8vc8yh.js → repository-76eezes8.js} +3 -3
- package/dist/chunks/{repository-a4fnzf47.js → repository-7hrknbh1.js} +3 -3
- package/dist/chunks/{repository-njhqdk9p.js → repository-82rhge12.js} +7 -7
- package/dist/chunks/{repository-hz0q9sdq.js → repository-86m00gc1.js} +7 -7
- package/dist/chunks/{repository-bce8mqt3.js → repository-89e14fg5.js} +6 -6
- package/dist/chunks/{repository-qzpey3h0.js → repository-8e412960.js} +25 -25
- package/dist/chunks/{repository-jh3wktsd.js → repository-8g5424td.js} +17 -17
- package/dist/chunks/{repository-9xfpc63v.js → repository-8jyfh64s.js} +17 -17
- package/dist/chunks/{repository-n96r89fz.js → repository-8vn4cfgq.js} +13 -13
- package/dist/chunks/{repository-k6pkmzhs.js → repository-8xdzh0gy.js} +26 -26
- package/dist/chunks/{repository-8z1vhx7d.js → repository-92kfgbvy.js} +12 -12
- package/dist/chunks/{repository-j624rcj2.js → repository-9c7cfx9k.js} +9 -9
- package/dist/chunks/{repository-77znwksv.js → repository-9t9nwrjp.js} +6 -6
- package/dist/chunks/{repository-3w2b2yj4.js → repository-9xvq3m7s.js} +3 -3
- package/dist/chunks/{repository-b34mrygk.js → repository-a6aff8z8.js} +17 -17
- package/dist/chunks/{repository-zk63fk94.js → repository-a70bg6dx.js} +7 -7
- package/dist/chunks/{repository-5v50ez44.js → repository-a8eh5f32.js} +16 -16
- package/dist/chunks/{repository-8x661zms.js → repository-agv6b8k2.js} +2 -2
- package/dist/chunks/{repository-jca4demv.js → repository-ak8wweg5.js} +1 -1
- package/dist/chunks/{repository-gd2mrfha.js → repository-akcepp6y.js} +8 -8
- package/dist/chunks/{repository-metfybw1.js → repository-an66nx3z.js} +27 -27
- package/dist/chunks/{repository-p8tnfkxq.js → repository-asvap28k.js} +19 -19
- package/dist/chunks/{repository-7jk1t73m.js → repository-atcwnc5a.js} +17 -17
- package/dist/chunks/{repository-8j12t1bv.js → repository-az4a6sax.js} +85 -85
- package/dist/chunks/{repository-1cxq3z7p.js → repository-b57g7gde.js} +1 -1
- package/dist/chunks/{repository-x1c0jm0v.js → repository-b6szjc2b.js} +4 -4
- package/dist/chunks/{repository-705e2ap1.js → repository-b7b4ctej.js} +3 -3
- package/dist/chunks/{repository-kgj7nn0t.js → repository-bakxampr.js} +10 -10
- package/dist/chunks/{repository-05b749yd.js → repository-bm2y31hv.js} +13 -13
- package/dist/chunks/{repository-de275n1f.js → repository-bx3fq6aw.js} +13 -13
- package/dist/chunks/{repository-619r8v3y.js → repository-by5v678g.js} +4 -4
- package/dist/chunks/{repository-hkqypw3r.js → repository-cc2shgt9.js} +30 -30
- package/dist/chunks/{repository-gfwr3rnv.js → repository-cfmzrcj7.js} +10 -10
- package/dist/chunks/{repository-v42zcc13.js → repository-ch64seem.js} +23 -23
- package/dist/chunks/{repository-npg39zw6.js → repository-crsexzag.js} +30 -30
- package/dist/chunks/repository-d0jzkfbr.js +252 -0
- package/dist/chunks/repository-dbc9r3hj.js +26 -0
- package/dist/chunks/{repository-3a2j1hjr.js → repository-dh4q5s77.js} +9 -9
- package/dist/chunks/{repository-73yrdnyd.js → repository-dhkwabp0.js} +14 -14
- package/dist/chunks/{repository-cwa6csj7.js → repository-djszqvmq.js} +7 -7
- package/dist/chunks/{repository-xfkkasph.js → repository-drwq78ky.js} +3 -3
- package/dist/chunks/{repository-agjv8c5g.js → repository-e59tsew2.js} +11 -11
- package/dist/chunks/{repository-5etm4xsh.js → repository-e7ws6ec8.js} +37 -37
- package/dist/chunks/{repository-512hw42y.js → repository-eahms454.js} +37 -37
- package/dist/chunks/{repository-56ky7bs0.js → repository-ehsk5wsv.js} +25 -25
- package/dist/chunks/{repository-9vrq4vn2.js → repository-epfpd7cv.js} +8 -8
- package/dist/chunks/{repository-hq7yghhm.js → repository-eyn5j564.js} +6 -6
- package/dist/chunks/{repository-yp2x3t23.js → repository-f2n192rq.js} +3 -3
- package/dist/chunks/{repository-fc523kt6.js → repository-f334w0pg.js} +32 -32
- package/dist/chunks/{repository-mr0mmcj5.js → repository-f5fspc7b.js} +4 -4
- package/dist/chunks/{repository-db9prhsp.js → repository-fp35vcn1.js} +45 -45
- package/dist/chunks/{repository-q3t37ft6.js → repository-fqka1xvk.js} +3 -3
- package/dist/chunks/{repository-w9vf9qqj.js → repository-fsbk27r1.js} +7 -7
- package/dist/chunks/{repository-byrrs48t.js → repository-ftjt2372.js} +4 -4
- package/dist/chunks/{repository-0xezjjjn.js → repository-g1sxm558.js} +7 -7
- package/dist/chunks/{repository-1vnc4v1d.js → repository-geakp29a.js} +9 -9
- package/dist/chunks/{repository-16j5ke9h.js → repository-gqnw29hq.js} +9 -9
- package/dist/chunks/{repository-y8kkdtzr.js → repository-gwahz6hz.js} +11 -11
- package/dist/chunks/{repository-5ev1zspt.js → repository-h3r85v63.js} +7 -7
- package/dist/chunks/{repository-5mtzsd3b.js → repository-h6r3nrb9.js} +3 -3
- package/dist/chunks/{repository-2rscg1y3.js → repository-h70nwwcc.js} +9 -9
- package/dist/chunks/{repository-bdz0bbmb.js → repository-har18r6r.js} +17 -17
- package/dist/chunks/{repository-fsf6v8qm.js → repository-hqxn6csc.js} +179 -179
- package/dist/chunks/{repository-thk6jfdx.js → repository-hqxxrcsw.js} +19 -19
- package/dist/chunks/{repository-1jp2mfrr.js → repository-hr7nhsg3.js} +1 -1
- package/dist/chunks/{repository-zte1js4p.js → repository-hr9sx13n.js} +19 -19
- package/dist/chunks/{repository-e912ms8z.js → repository-htpfkpfv.js} +3 -3
- package/dist/chunks/{repository-hgbqxczd.js → repository-hx10j1ep.js} +9 -9
- package/dist/chunks/{repository-qjwr0tpp.js → repository-hyyftsxg.js} +5 -5
- package/dist/chunks/{repository-5tnkgdfk.js → repository-j4dredde.js} +15 -15
- package/dist/chunks/{repository-kc96dfb8.js → repository-j64jv97n.js} +7 -7
- package/dist/chunks/{repository-pmr4s4kc.js → repository-j83byb14.js} +3 -3
- package/dist/chunks/{repository-ky1kh8n9.js → repository-jb8f8bdw.js} +25 -25
- package/dist/chunks/{repository-ftm3dexp.js → repository-jdt82a65.js} +5 -5
- package/dist/chunks/{repository-hq8qt6ng.js → repository-jewqmp23.js} +6 -6
- package/dist/chunks/{repository-dg2cj1yd.js → repository-jjzf804t.js} +3 -3
- package/dist/chunks/{repository-swwpqdcy.js → repository-jsknnxm0.js} +14 -14
- package/dist/chunks/{repository-6q0ntw2a.js → repository-jvzh73h3.js} +16 -16
- package/dist/chunks/{repository-8b72xbs9.js → repository-jw7mqvhb.js} +18 -18
- package/dist/chunks/{repository-90g9zkdy.js → repository-k4xenmvj.js} +12 -12
- package/dist/chunks/{repository-5t7jqs97.js → repository-kjjzdt6z.js} +26 -26
- package/dist/chunks/{repository-6r6vp6ha.js → repository-kma5cn94.js} +24 -24
- package/dist/chunks/{repository-kstbhh6a.js → repository-kt8nfkp3.js} +24 -24
- package/dist/chunks/{repository-t4vj6rvz.js → repository-m7byf6m1.js} +24 -24
- package/dist/chunks/{repository-0paz3kdb.js → repository-mnrg3sxj.js} +23 -23
- package/dist/chunks/{repository-p9z73tm2.js → repository-mp5r29aw.js} +5 -5
- package/dist/chunks/{repository-929cfnf2.js → repository-mzvn4c0x.js} +20 -20
- package/dist/chunks/{repository-jj202axs.js → repository-n2yeqzr5.js} +2 -2
- package/dist/chunks/{repository-fgg720tk.js → repository-n34cz6pc.js} +9 -9
- package/dist/chunks/{repository-6hbqnsja.js → repository-n4qk2p21.js} +5 -5
- package/dist/chunks/{repository-azyzdvnn.js → repository-ncvdxrbg.js} +14 -14
- package/dist/chunks/{repository-xr86ydmg.js → repository-ndz0f2pv.js} +11 -11
- package/dist/chunks/{repository-7w3s9kd0.js → repository-nkcwakxz.js} +5 -5
- package/dist/chunks/{repository-jw80jp6b.js → repository-nrdmrqsx.js} +3 -3
- package/dist/chunks/{repository-9zqrb8fx.js → repository-nz1w7233.js} +27 -27
- package/dist/chunks/{repository-h2r7bbkd.js → repository-p26nknmg.js} +6 -6
- package/dist/chunks/{repository-79272cb5.js → repository-p4w1wdw7.js} +16 -16
- package/dist/chunks/{repository-czfptnv9.js → repository-pa8pe2x7.js} +3 -3
- package/dist/chunks/{repository-47bkxv40.js → repository-pca6s4fg.js} +20 -20
- package/dist/chunks/{repository-mvksx64m.js → repository-pccq72bz.js} +1 -1
- package/dist/chunks/{repository-zz37z2qt.js → repository-pdgybe9w.js} +4 -4
- package/dist/chunks/{repository-d29nyfm4.js → repository-pnpn4wz1.js} +11 -11
- package/dist/chunks/{repository-nscznvay.js → repository-pnv527nz.js} +7 -7
- package/dist/chunks/{repository-9fcb53ey.js → repository-prd1yc4e.js} +15 -15
- package/dist/chunks/{repository-9v05265v.js → repository-pxbjxcby.js} +29 -29
- package/dist/chunks/{repository-j5rxtxht.js → repository-qbqbaz6q.js} +3 -3
- package/dist/chunks/{repository-h7gb4ryr.js → repository-qernpydw.js} +5 -5
- package/dist/chunks/{repository-r52g2zhe.js → repository-qfdxmfvr.js} +3 -3
- package/dist/chunks/{repository-kst1pkph.js → repository-qk5kxcbj.js} +17 -17
- package/dist/chunks/{repository-scbkt9q8.js → repository-qn9vy89p.js} +30 -30
- package/dist/chunks/{repository-qxmaq0sm.js → repository-qvb3nf84.js} +7 -7
- package/dist/chunks/{repository-kpqs54h7.js → repository-r040zy0g.js} +25 -25
- package/dist/chunks/{repository-6ycw4w1t.js → repository-r1zrj47q.js} +30 -30
- package/dist/chunks/{repository-r5m1ty2t.js → repository-r6vv5p3m.js} +43 -43
- package/dist/chunks/{repository-b4vexebs.js → repository-r7t6v39w.js} +24 -24
- package/dist/chunks/{repository-77wtpmj0.js → repository-rdmyapgx.js} +12 -12
- package/dist/chunks/{repository-8sze2n9a.js → repository-rkprpv83.js} +5 -5
- package/dist/chunks/{repository-6sj6xmv4.js → repository-rpbss5j3.js} +32 -32
- package/dist/chunks/{repository-hbyaebar.js → repository-s6k3yhqj.js} +322 -322
- package/dist/chunks/{repository-0hmet0j7.js → repository-sae9kgks.js} +10 -10
- package/dist/chunks/{repository-c4ppv1by.js → repository-sdmk119x.js} +2 -2
- package/dist/chunks/{repository-m9144ht3.js → repository-sm84vfww.js} +9 -9
- package/dist/chunks/{repository-ffcsw7yh.js → repository-smxxsx11.js} +16 -16
- package/dist/chunks/{repository-q5dpec9v.js → repository-stv887d7.js} +10 -10
- package/dist/chunks/{repository-kwe5n90t.js → repository-svv95awx.js} +23 -23
- package/dist/chunks/{repository-v5dkyp31.js → repository-sxz6gkc3.js} +6 -6
- package/dist/chunks/{repository-r0p67dnr.js → repository-t041a9x4.js} +21 -21
- package/dist/chunks/{repository-rhjbct0v.js → repository-t550f9t1.js} +3 -3
- package/dist/chunks/{repository-zvt5dnpc.js → repository-t7n9q6bq.js} +3 -3
- package/dist/chunks/{repository-2gy1bqwa.js → repository-t8730cdn.js} +12 -12
- package/dist/chunks/{repository-ydx1ak1r.js → repository-tcj9ww28.js} +16 -16
- package/dist/chunks/{repository-2zy9bvam.js → repository-tfzy1df7.js} +28 -28
- package/dist/chunks/{repository-dwdeeedv.js → repository-tqr3fgz4.js} +43 -43
- package/dist/chunks/{repository-hcd63823.js → repository-v4028cvv.js} +14 -14
- package/dist/chunks/{repository-e3z9p67s.js → repository-vhyze3e3.js} +18 -18
- package/dist/chunks/{repository-5m4tc1r8.js → repository-vp03n2p3.js} +11 -11
- package/dist/chunks/{repository-a204ka05.js → repository-vrwms5ta.js} +1 -1
- package/dist/chunks/{repository-tma09pjv.js → repository-vsfnjfd7.js} +10 -10
- package/dist/chunks/{repository-3gqan0f7.js → repository-vsrax324.js} +19 -19
- package/dist/chunks/{repository-da533g22.js → repository-w3x6xwqj.js} +1 -1
- package/dist/chunks/{repository-dpsvckea.js → repository-w3zzd7fq.js} +15 -15
- package/dist/chunks/{repository-fvanntqq.js → repository-w4arg62q.js} +5 -5
- package/dist/chunks/{repository-k07p368a.js → repository-w6pxqv2r.js} +14 -14
- package/dist/chunks/{repository-8hbfdwcy.js → repository-w6zk8pbt.js} +5 -5
- package/dist/chunks/{repository-5y4gd2sb.js → repository-wa5jjdw0.js} +10 -10
- package/dist/chunks/{repository-etzz3kcr.js → repository-was7srj9.js} +7 -7
- package/dist/chunks/{repository-h5qvqr7w.js → repository-wbfjc2h1.js} +10 -10
- package/dist/chunks/{repository-tyzy9g51.js → repository-wjdksev2.js} +36 -36
- package/dist/chunks/{repository-n953eyzk.js → repository-wtb2nkxw.js} +3 -3
- package/dist/chunks/{repository-384p91kd.js → repository-www228tn.js} +32 -32
- package/dist/chunks/{repository-df54n7py.js → repository-wzvzbcsg.js} +8 -8
- package/dist/chunks/{repository-xxv802jd.js → repository-x3g34f3v.js} +1 -1
- package/dist/chunks/{repository-pgp1nwjn.js → repository-x3gqap9d.js} +3 -3
- package/dist/chunks/{repository-4b9fhhm9.js → repository-x4m537wk.js} +4 -4
- package/dist/chunks/{repository-qz02d4gv.js → repository-x5h44zm2.js} +7 -7
- package/dist/chunks/{repository-33y1b8yt.js → repository-xkv170v4.js} +8 -8
- package/dist/chunks/{repository-kgcknfzw.js → repository-xm24773m.js} +37 -37
- package/dist/chunks/{repository-k9p9jwpd.js → repository-xqn8f2xc.js} +17 -17
- package/dist/chunks/{repository-3rh9rajd.js → repository-y0rg8wwx.js} +8 -8
- package/dist/chunks/{repository-e28ag5bw.js → repository-y14362pj.js} +12 -12
- package/dist/chunks/{repository-95qqca5m.js → repository-y2sxsfvk.js} +12 -12
- package/dist/chunks/{repository-9rdt4sv8.js → repository-y9kjq5j3.js} +9 -9
- package/dist/chunks/{repository-gmjjhz4f.js → repository-yq9bhs5j.js} +1 -1
- package/dist/chunks/{repository-c8xyt3x2.js → repository-z139kjpf.js} +7 -7
- package/dist/chunks/{repository-8mkxvtcz.js → repository-zbzxhk8m.js} +10 -10
- package/dist/chunks/{repository-g9apv6nb.js → repository-zcj9g204.js} +4 -4
- package/dist/chunks/{repository-dsped3ts.js → repository-zd8hcvy8.js} +17 -17
- package/dist/chunks/{repository-nmxw05nd.js → repository-ztjbcj90.js} +39 -39
- package/dist/chunks/{repository-y3k1g0t3.js → repository-zxptzjm7.js} +17 -17
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +61 -61
- package/dist/config/discovery.js +54 -54
- package/dist/config/normalize.js +74 -74
- package/dist/config/plugin/agent.js +88 -88
- package/dist/config/plugin/command.js +172 -172
- package/dist/config/plugin/compaction.js +121 -121
- package/dist/config/plugin/compatibility.js +101 -101
- package/dist/config/plugin/formatter.js +86 -86
- package/dist/config/plugin/image.js +86 -86
- package/dist/config/plugin/instruction.js +59 -59
- package/dist/config/plugin/location-watcher.js +86 -86
- package/dist/config/plugin/mcp.js +96 -96
- package/dist/config/plugin/policy.js +86 -86
- package/dist/config/plugin/provider.js +86 -86
- package/dist/config/plugin/reference.js +88 -88
- package/dist/config/plugin/shell.js +86 -86
- package/dist/config/plugin/skill-file.js +69 -69
- package/dist/config/plugin/skill.js +104 -104
- package/dist/config/plugin/snapshot.js +86 -86
- package/dist/config/plugin/source.js +89 -89
- package/dist/config/plugin/tool-output.js +88 -88
- package/dist/config/plugin/websearch.js +85 -85
- package/dist/config/plugin/worktree.js +88 -88
- package/dist/config.js +92 -92
- package/dist/credential.js +60 -60
- package/dist/database/database.js +49 -49
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +228 -228
- package/dist/environment/environment.js +60 -60
- package/dist/environment/index.js +60 -60
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +72 -72
- package/dist/file-mutation.js +61 -61
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +178 -178
- package/dist/filesystem/search.js +68 -68
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +67 -67
- package/dist/form.js +59 -59
- package/dist/formatter.js +58 -58
- package/dist/generate.js +74 -74
- 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 +62 -62
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance.js +304 -304
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +59 -59
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +64 -64
- package/dist/job.js +59 -59
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +51 -51
- package/dist/location-lifecycle.js +71 -71
- package/dist/location-mutation.js +29 -29
- package/dist/location-service-map.js +58 -58
- package/dist/location-services.js +305 -305
- package/dist/location.js +61 -61
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +16 -16
- package/dist/mcp/index.js +68 -68
- package/dist/mcp/instructions.js +92 -92
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +57 -57
- package/dist/modal/models.js +62 -62
- package/dist/model-resolver.js +69 -69
- package/dist/model.js +73 -73
- package/dist/models-dev.js +70 -70
- package/dist/permission/saved.js +58 -58
- package/dist/permission.js +75 -75
- package/dist/persistent-pty/index.js +66 -66
- package/dist/persistent-pty.js +52 -52
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +67 -67
- package/dist/plugin/compaction.js +99 -99
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +175 -175
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +279 -279
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +67 -67
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +70 -70
- package/dist/plugin/provider/amazon-bedrock.js +61 -61
- package/dist/plugin/provider/azure.js +85 -85
- package/dist/plugin/provider/cloudflare-ai-gateway.js +84 -84
- package/dist/plugin/provider/cloudflare-workers-ai.js +84 -84
- package/dist/plugin/provider/configured.js +83 -83
- package/dist/plugin/provider/digitalocean.js +63 -63
- package/dist/plugin/provider/github-copilot.js +64 -64
- package/dist/plugin/provider/gitlab.js +63 -63
- package/dist/plugin/provider/google-vertex.js +61 -61
- package/dist/plugin/provider/llmgateway.js +55 -55
- package/dist/plugin/provider/lmstudio.js +86 -86
- package/dist/plugin/provider/modal.js +63 -63
- package/dist/plugin/provider/ollama.js +86 -86
- package/dist/plugin/provider/openai.js +64 -64
- package/dist/plugin/provider/opencode.js +66 -66
- package/dist/plugin/provider/openrouter.js +62 -62
- package/dist/plugin/provider/poe.js +55 -55
- package/dist/plugin/provider/prompt-cache-key.js +61 -61
- package/dist/plugin/provider/sap-ai-core.js +61 -61
- package/dist/plugin/provider/snowflake-cortex.js +85 -85
- package/dist/plugin/provider/vercel.js +61 -61
- package/dist/plugin/provider/vllm.js +86 -86
- package/dist/plugin/provider/xai.js +62 -62
- package/dist/plugin/provider.js +118 -118
- package/dist/plugin/sdk.js +57 -57
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +102 -102
- package/dist/plugin/supervisor.js +298 -298
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +57 -57
- package/dist/plugin/vcs/hg.js +57 -57
- package/dist/plugin/verbosity.js +64 -64
- package/dist/plugin/warming.js +85 -85
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- 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 +182 -182
- package/dist/project/schema.js +7 -7
- package/dist/project.js +60 -60
- package/dist/provider.js +70 -70
- package/dist/pty.js +59 -59
- package/dist/reference/instructions.js +63 -63
- package/dist/reference.js +63 -63
- package/dist/repository-cache.js +57 -57
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +61 -61
- package/dist/rpc.js +58 -58
- package/dist/session/command.js +53 -53
- package/dist/session/compaction.js +98 -98
- package/dist/session/context.js +115 -115
- package/dist/session/diff.js +58 -58
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +2 -2
- package/dist/session/execution/restart.js +114 -114
- package/dist/session/execution.js +93 -93
- package/dist/session/generate.js +115 -115
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +3 -3
- package/dist/session/instructions.js +68 -68
- package/dist/session/model-request.js +87 -87
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +96 -96
- package/dist/session/projector.js +61 -61
- package/dist/session/prompt.js +72 -72
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +59 -59
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +185 -185
- package/dist/session/runner/model.js +69 -69
- package/dist/session/runner/retry.js +82 -82
- 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 +132 -132
- package/dist/session/shell.js +101 -101
- package/dist/session/skill.js +70 -70
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +168 -168
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +118 -118
- package/dist/session/to-session-error.js +79 -79
- package/dist/session/transfer.js +111 -111
- package/dist/session.js +177 -177
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +102 -102
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +75 -75
- package/dist/skill.js +78 -78
- package/dist/snapshot.js +60 -60
- package/dist/tool/mcp.js +89 -89
- package/dist/tool/plugin/edit.js +80 -80
- package/dist/tool/plugin/glob.js +87 -87
- package/dist/tool/plugin/grep.js +87 -87
- package/dist/tool/plugin/mcp-resource.js +79 -79
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +84 -84
- package/dist/tool/plugin/question.js +69 -69
- package/dist/tool/plugin/read.js +88 -88
- package/dist/tool/plugin/shell.js +174 -174
- package/dist/tool/plugin/skill.js +79 -79
- package/dist/tool/plugin/subagent.js +169 -169
- package/dist/tool/plugin/webfetch.js +76 -76
- package/dist/tool/plugin/websearch.js +76 -76
- package/dist/tool/plugin/write.js +86 -86
- package/dist/tool/read-filesystem.js +65 -65
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/migrate.js +62 -62
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +64 -64
- package/dist/vcs.js +58 -58
- package/dist/websearch.js +58 -58
- package/dist/wellknown/plugin.js +55 -55
- package/dist/wellknown.js +60 -60
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +61 -61
- package/dist/worktree/git.js +3 -3
- package/dist/worktree/strategies.js +59 -59
- package/dist/worktree.js +65 -65
- package/package.json +8 -8
- package/dist/chunks/repository-tewh99a4.js +0 -26
- package/dist/chunks/repository-vgmd07b2.js +0 -252
- /package/dist/chunks/{repository-p5c89f54.js → repository-21zq8aa1.js} +0 -0
- /package/dist/chunks/{repository-n3wcrd3g.js → repository-cm0f77dr.js} +0 -0
- /package/dist/chunks/{repository-nzks3jc8.js → repository-k3c624dm.js} +0 -0
- /package/dist/chunks/{repository-vnwmzs4a.js → repository-sqbb0ctm.js} +0 -0
- /package/dist/chunks/{repository-6s8c70gj.js → repository-y99ygqqg.js} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./repository-
|
|
4
|
+
} from "./repository-3f66bwfz.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./repository-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./repository-
|
|
10
|
+
Service79,
|
|
11
|
+
node83
|
|
12
|
+
} from "./repository-tcj9ww28.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID13,
|
|
16
16
|
modelSettings2,
|
|
17
17
|
mergeOverlay2,
|
|
18
18
|
mergeHeaders2,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./repository-
|
|
19
|
+
Service76,
|
|
20
|
+
node80,
|
|
21
|
+
Event17
|
|
22
|
+
} from "./repository-8xdzh0gy.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
25
|
} from "./repository-9rqn6x4v.js";
|
|
@@ -30,25 +30,25 @@ __export(exports_model2, {
|
|
|
30
30
|
Capabilities: () => Capabilities2,
|
|
31
31
|
Compatibility: () => Compatibility2,
|
|
32
32
|
Cost: () => Cost2,
|
|
33
|
-
Event: () =>
|
|
33
|
+
Event: () => Event16,
|
|
34
34
|
Family: () => Family2,
|
|
35
|
-
ID: () =>
|
|
36
|
-
Info: () =>
|
|
35
|
+
ID: () => ID12,
|
|
36
|
+
Info: () => Info26,
|
|
37
37
|
Model: () => exports_model2,
|
|
38
38
|
ReasoningField: () => ReasoningField2,
|
|
39
39
|
Ref: () => Ref2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service75,
|
|
41
41
|
VariantID: () => VariantID2,
|
|
42
42
|
compatibility: () => compatibility2,
|
|
43
|
-
node: () =>
|
|
44
|
-
parse: () =>
|
|
43
|
+
node: () => node79,
|
|
44
|
+
parse: () => parse5
|
|
45
45
|
});
|
|
46
46
|
import { Model } from "@opencode/schema/model";
|
|
47
47
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
48
48
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
49
49
|
import { freeze } from "immer";
|
|
50
|
-
import { Event as
|
|
51
|
-
var
|
|
50
|
+
import { Event as Event16 } from "@opencode/schema/model";
|
|
51
|
+
var ID12 = Model.ID;
|
|
52
52
|
var VariantID2 = Model.VariantID;
|
|
53
53
|
var Family2 = Model.Family;
|
|
54
54
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -56,14 +56,14 @@ var Compatibility2 = Model.Compatibility;
|
|
|
56
56
|
var Capabilities2 = Model.Capabilities;
|
|
57
57
|
var Cost2 = Model.Cost;
|
|
58
58
|
var Ref2 = Model.Ref;
|
|
59
|
-
var
|
|
59
|
+
var Info26 = Model.Info;
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service75 extends Context.Service()("@opencode/Model") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
64
|
-
const providers = yield*
|
|
63
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
64
|
+
const providers = yield* Service76;
|
|
65
65
|
const bus = yield* Service83;
|
|
66
|
-
const location = yield*
|
|
66
|
+
const location = yield* Service79;
|
|
67
67
|
let input;
|
|
68
68
|
const state = create3({
|
|
69
69
|
name: "model",
|
|
@@ -108,7 +108,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
108
108
|
const models = writable(providerID);
|
|
109
109
|
if (!models)
|
|
110
110
|
return;
|
|
111
|
-
const model = draft(providerID, modelID) ??
|
|
111
|
+
const model = draft(providerID, modelID) ?? Info26.default(providerID, modelID);
|
|
112
112
|
update(model);
|
|
113
113
|
model.id = modelID;
|
|
114
114
|
model.providerID = providerID;
|
|
@@ -197,8 +197,8 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
197
197
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
|
-
yield* bus.subscribe(
|
|
201
|
-
return
|
|
200
|
+
yield* bus.subscribe(Event17.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
201
|
+
return Service75.of({
|
|
202
202
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
203
203
|
reload,
|
|
204
204
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -217,7 +217,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
217
217
|
})
|
|
218
218
|
});
|
|
219
219
|
}));
|
|
220
|
-
var
|
|
220
|
+
var node79 = makeLocationNode({ service: Service75, layer, deps: [node80, node87, node83] });
|
|
221
221
|
function compatibility2(input) {
|
|
222
222
|
if (typeof input === "string")
|
|
223
223
|
return { reasoningField: input };
|
|
@@ -225,12 +225,12 @@ function compatibility2(input) {
|
|
|
225
225
|
return;
|
|
226
226
|
return typeof input.field === "string" ? { reasoningField: input.field } : undefined;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function parse5(input) {
|
|
229
229
|
const index = input.indexOf("/");
|
|
230
230
|
return {
|
|
231
|
-
providerID:
|
|
232
|
-
modelID:
|
|
231
|
+
providerID: ID13.make(index === -1 ? input : input.slice(0, index)),
|
|
232
|
+
modelID: ID12.make(index === -1 ? "" : input.slice(index + 1))
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
export {
|
|
236
|
+
export { ID12, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, Cost2, Ref2, Info26, Service75, node79, compatibility2, parse5, exports_model2, Event16 };
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service41,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node44
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service41 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service41, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service41.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service53, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node44 = makeGlobalNode({ service: Service41, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service41, node44, exports_environment };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./repository-
|
|
2
|
+
Service43,
|
|
3
|
+
node46
|
|
4
|
+
} from "./repository-13dgep1z.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./repository-
|
|
6
|
+
Service79,
|
|
7
|
+
node83
|
|
8
|
+
} from "./repository-tcj9ww28.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./repository-
|
|
10
|
+
Service42,
|
|
11
|
+
node45
|
|
12
|
+
} from "./repository-xm24773m.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service4,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer5,
|
|
28
|
+
node: () => node6
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service4 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service42;
|
|
40
|
+
const watcher = yield* Service43;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service79;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service4.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node6 = makeLocationNode({
|
|
74
|
+
service: Service4,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node45, FSUtil.node, node46, node83]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service4,
|
|
80
|
+
layer: Layer.succeed(Service4, Service4.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service4, layer5, node6, empty2, exports_source };
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
Failed2
|
|
5
5
|
} from "./repository-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./repository-
|
|
7
|
+
Service79
|
|
8
|
+
} from "./repository-tcj9ww28.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./repository-
|
|
10
|
+
Service62
|
|
11
|
+
} from "./repository-asvap28k.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./repository-
|
|
13
|
+
Service14
|
|
14
|
+
} from "./repository-4gxz33t2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service13,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./repository-
|
|
19
|
+
} from "./repository-gwahz6hz.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./repository-
|
|
21
|
+
Service55
|
|
22
|
+
} from "./repository-r6vv5p3m.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service15,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./repository-
|
|
26
|
+
} from "./repository-smxxsx11.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
29
|
} from "./repository-6prwharc.js";
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input6,
|
|
39
|
+
Output: () => Output3,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
41
|
+
Plugin: () => Plugin8,
|
|
42
|
+
name: () => name6,
|
|
43
43
|
toModelContent: () => toModelContent4
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name6 = "patch";
|
|
89
|
+
var Input6 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,7 +96,7 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output3 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
@@ -105,21 +105,21 @@ var toModelContent4 = (output) => [
|
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin8 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
115
|
-
const location = yield*
|
|
116
|
-
const permission = yield*
|
|
111
|
+
const environment = yield* Service62;
|
|
112
|
+
const access = yield* Service15;
|
|
113
|
+
const fileMutation = yield* Service13;
|
|
114
|
+
const formatter = yield* Service14;
|
|
115
|
+
const location = yield* Service79;
|
|
116
|
+
const permission = yield* Service55;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name6,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input6,
|
|
122
|
+
output: Output3,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -326,4 +326,4 @@ function trimDiff(diff) {
|
|
|
326
326
|
`);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
export {
|
|
329
|
+
export { name6, Input6, Applied2, Output3, toModelContent4, Plugin8, exports_patch };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./repository-
|
|
4
|
+
} from "./repository-3f66bwfz.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./repository-
|
|
6
|
+
Service79,
|
|
7
|
+
node83
|
|
8
|
+
} from "./repository-tcj9ww28.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./repository-
|
|
10
|
+
ID9,
|
|
11
|
+
Service58,
|
|
12
|
+
node61
|
|
13
|
+
} from "./repository-5rfaxrsd.js";
|
|
14
14
|
import {
|
|
15
15
|
NotFoundError9
|
|
16
|
-
} from "./repository-
|
|
16
|
+
} from "./repository-yq9bhs5j.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./repository-
|
|
18
|
+
Service56,
|
|
19
|
+
node59
|
|
20
|
+
} from "./repository-4bqx1nme.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
23
|
} from "./repository-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./repository-
|
|
25
|
+
Service57,
|
|
26
|
+
node60
|
|
27
|
+
} from "./repository-8vn4cfgq.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./repository-
|
|
29
|
+
Service67,
|
|
30
|
+
node71
|
|
31
|
+
} from "./repository-g1sxm558.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./repository-9rqn6x4v.js";
|
|
@@ -42,8 +42,8 @@ __export(exports_permission2, {
|
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
45
|
+
Event: () => Event12,
|
|
46
|
+
ID: () => ID7,
|
|
47
47
|
NotFoundError: () => NotFoundError8,
|
|
48
48
|
Permission: () => exports_permission2,
|
|
49
49
|
Reply: () => Reply2,
|
|
@@ -51,20 +51,20 @@ __export(exports_permission2, {
|
|
|
51
51
|
Request: () => Request2,
|
|
52
52
|
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service55,
|
|
55
55
|
Source: () => Source4,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node58
|
|
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
63
|
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
-
import { Event as
|
|
64
|
+
import { Event as Event12 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID7 = Permission.ID;
|
|
68
68
|
var Source4 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -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: ID7.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID9.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
85
|
+
requestID: ID7,
|
|
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: ID7,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -111,7 +111,7 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
class NotFoundError8 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
-
requestID:
|
|
114
|
+
requestID: ID7
|
|
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 Service55 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service83;
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
132
|
+
const location = yield* Service79;
|
|
133
|
+
const agents = yield* Service58;
|
|
134
|
+
const sessions = yield* Service56;
|
|
135
|
+
const saved = yield* Service57;
|
|
136
|
+
const hooks = yield* Service67;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID7.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service66, 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 ?? ID7.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service66, 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 Service55.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node58 = makeLocationNode({
|
|
303
|
+
service: Service55,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [node87,
|
|
305
|
+
deps: [node87, node83, node61, node59, node60, node71]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID7, Source4, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError8, evaluate2, merge2, Service55, node58, exports_permission2, Rule3, Ruleset2, Event12 };
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./repository-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./repository-
|
|
7
|
+
Service79,
|
|
8
|
+
node83
|
|
9
|
+
} from "./repository-tcj9ww28.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./repository-
|
|
11
|
+
Service24,
|
|
12
|
+
node27
|
|
13
|
+
} from "./repository-nz1w7233.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./repository-9rqn6x4v.js";
|
|
@@ -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: () => Event6,
|
|
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: () => NotFoundError4,
|
|
33
33
|
ReadInput: () => ReadInput2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service23,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
37
|
WriteInput: () => WriteInput2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node26
|
|
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 NotFoundError4 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 Event6 = FileSystem.Event;
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service23 extends Context.Service()("@opencode/FileSystem") {
|
|
91
91
|
}
|
|
92
|
-
var baseLayer = Layer.effect(
|
|
92
|
+
var baseLayer = Layer.effect(Service23, Effect.gen(function* () {
|
|
93
93
|
const fs = yield* FSUtil.Service;
|
|
94
|
-
const location = yield*
|
|
95
|
-
const search = yield*
|
|
94
|
+
const location = yield* Service79;
|
|
95
|
+
const search = yield* Service24;
|
|
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(Service20, 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 Service23.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 NotFoundError4({ path: input.path })), (_, error) => Effect.die(error)));
|
|
110
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError4({ 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 NotFoundError4({ 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(Service20, Effect.gen(function* () {
|
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
}));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node26 = makeLocationNode({
|
|
144
|
+
service: Service23,
|
|
145
145
|
layer: baseLayer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node83, node27]
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
149
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError4, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event6, Service23, node26, exports_filesystem, Entry2, Match2, Submatch2 };
|