@opencode/core 0.0.0-dev-20615 → 0.0.0-dev-20621
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 +62 -62
- package/dist/aisdk-native.js +65 -65
- package/dist/aisdk.js +70 -70
- package/dist/app.js +3 -3
- package/dist/bus.js +50 -50
- package/dist/chunks/{tool-w11tz2pw.js → tool-0xccjjzw.js} +26 -26
- package/dist/chunks/{tool-2zt2ydz3.js → tool-0y2egbcr.js} +6 -6
- package/dist/chunks/{tool-agssjnsy.js → tool-125pv97z.js} +7 -7
- package/dist/chunks/{tool-bwp70caj.js → tool-16pwk8my.js} +16 -16
- package/dist/chunks/{tool-a72skx39.js → tool-1cz6w5aa.js} +2 -2
- package/dist/chunks/{tool-fkngwg2k.js → tool-1ewxhx38.js} +30 -30
- package/dist/chunks/{tool-faawnrv4.js → tool-1x69mj4q.js} +9 -9
- package/dist/chunks/{tool-33w4ejhs.js → tool-1ygqh575.js} +4 -4
- package/dist/chunks/{tool-rfg5269m.js → tool-23mntapz.js} +6 -6
- package/dist/chunks/{tool-kzc3h1h3.js → tool-2k71kv7p.js} +3 -3
- package/dist/chunks/{tool-gnje2431.js → tool-2n6fa56a.js} +1 -1
- package/dist/chunks/{tool-djszqvmq.js → tool-2sejkfem.js} +7 -7
- package/dist/chunks/{tool-wcwsz0n1.js → tool-2xcf8v2e.js} +11 -11
- package/dist/chunks/{tool-642av4pa.js → tool-2zv0bcyv.js} +7 -7
- package/dist/chunks/{tool-gzwmz214.js → tool-303t2pvh.js} +26 -26
- package/dist/chunks/{tool-af6c9m8w.js → tool-350pbqn9.js} +25 -25
- package/dist/chunks/{tool-rvzqsjbs.js → tool-3936tkf8.js} +12 -12
- package/dist/chunks/{tool-t5rxgedn.js → tool-393z7mah.js} +3 -3
- package/dist/chunks/tool-39v3zkdd.js +26 -0
- package/dist/chunks/{tool-150yg2gd.js → tool-3j9bgvtg.js} +3 -3
- package/dist/chunks/{tool-pfhas51f.js → tool-3sdb20zb.js} +7 -7
- package/dist/chunks/{tool-maqk305m.js → tool-3w57jhwt.js} +6 -6
- package/dist/chunks/{tool-0mw89yjh.js → tool-3x1fhjfk.js} +4 -4
- package/dist/chunks/{tool-wrhmq8wv.js → tool-40gsab6q.js} +6 -6
- package/dist/chunks/{tool-dktv53ts.js → tool-42ayv7pm.js} +43 -43
- package/dist/chunks/{tool-w9wfhscg.js → tool-4c8s8kge.js} +5 -5
- package/dist/chunks/{tool-bbd0f1y9.js → tool-4jjk64j7.js} +11 -11
- package/dist/chunks/{tool-zhrz246t.js → tool-4mpv5s2v.js} +32 -32
- package/dist/chunks/{tool-722t8cr8.js → tool-4set99t9.js} +1 -1
- package/dist/chunks/{tool-55f5yhnr.js → tool-4xtwzbwp.js} +320 -320
- package/dist/chunks/{tool-7ex9xsd9.js → tool-51r1g0v9.js} +9 -9
- package/dist/chunks/{tool-xf8f9mz3.js → tool-56avvebe.js} +32 -32
- package/dist/chunks/{tool-s3skzd7w.js → tool-5jxm9yfz.js} +23 -23
- package/dist/chunks/{tool-0gh1f601.js → tool-61m1wdtq.js} +18 -18
- package/dist/chunks/{tool-1spn70p8.js → tool-66t34m9w.js} +25 -25
- package/dist/chunks/{tool-b2mfa9xz.js → tool-690bn0hf.js} +19 -19
- package/dist/chunks/{tool-3rtbn312.js → tool-6az9vrde.js} +25 -25
- package/dist/chunks/{tool-qkfezwh6.js → tool-6m1hjez2.js} +4 -4
- package/dist/chunks/{tool-sp63qzw1.js → tool-6qzp8a5z.js} +23 -23
- package/dist/chunks/{tool-hksy7w0e.js → tool-6w4tq3mb.js} +7 -7
- package/dist/chunks/{tool-f5gy8qwh.js → tool-6ysrkrkr.js} +7 -7
- package/dist/chunks/{tool-3t6p5jdv.js → tool-6zhvkmk5.js} +3 -3
- package/dist/chunks/{tool-gkh9snj0.js → tool-75v4x8jp.js} +16 -16
- package/dist/chunks/{tool-vq1q2ta7.js → tool-7crx08a4.js} +5 -5
- package/dist/chunks/{tool-at1f3efs.js → tool-7q4nzkb9.js} +11 -11
- package/dist/chunks/{tool-81xr82zh.js → tool-7rm45jzf.js} +4 -4
- package/dist/chunks/{tool-7d7rzqbv.js → tool-7vp466hh.js} +28 -28
- package/dist/chunks/{tool-ts9txmc3.js → tool-81bpzke5.js} +10 -10
- package/dist/chunks/{tool-1dvck2a7.js → tool-84h8c373.js} +1 -1
- package/dist/chunks/{tool-rh254cas.js → tool-853r27ye.js} +19 -19
- package/dist/chunks/{tool-sge72mws.js → tool-8h9kzq6c.js} +12 -12
- package/dist/chunks/{tool-qa3qhgw8.js → tool-8rqycdgd.js} +6 -6
- package/dist/chunks/{tool-2evx7vn6.js → tool-8sq1nazw.js} +26 -26
- package/dist/chunks/{tool-58pr7qh6.js → tool-9f2nvjyq.js} +1 -1
- package/dist/chunks/{tool-331jtpav.js → tool-9swdtjav.js} +4 -4
- package/dist/chunks/{tool-3aqx67na.js → tool-9tqp4rjd.js} +33 -33
- package/dist/chunks/{tool-90ytmqma.js → tool-9xafsdbn.js} +10 -10
- package/dist/chunks/{tool-gccjnz6h.js → tool-9y9sk2j9.js} +1 -1
- package/dist/chunks/{tool-73tb2d7t.js → tool-a1gpj94z.js} +2 -2
- package/dist/chunks/{tool-f2ynrejf.js → tool-a1jynv3g.js} +10 -10
- package/dist/chunks/{tool-01txzqdp.js → tool-a2gqrh8v.js} +28 -28
- package/dist/chunks/{tool-b5w00b0k.js → tool-a2zv89qz.js} +12 -12
- package/dist/chunks/{tool-zy43x3f1.js → tool-a3c7ahw6.js} +3 -3
- package/dist/chunks/{tool-k0aa2bpn.js → tool-a65exzz3.js} +9 -9
- package/dist/chunks/{tool-1e1wjnhp.js → tool-a7bsh1ec.js} +13 -13
- package/dist/chunks/{tool-3y377wv9.js → tool-addxnjmp.js} +3 -3
- package/dist/chunks/{tool-f372e9hx.js → tool-adfa1w2n.js} +4 -4
- package/dist/chunks/{tool-3hqn980y.js → tool-apme4279.js} +15 -15
- package/dist/chunks/{tool-58072hz9.js → tool-axe3mf62.js} +3 -3
- package/dist/chunks/{tool-j75aexbk.js → tool-b1axcb5r.js} +26 -26
- package/dist/chunks/{tool-hh30mmv6.js → tool-b750x627.js} +4 -4
- package/dist/chunks/{tool-jg9mfmbc.js → tool-b8yxdv3q.js} +15 -15
- package/dist/chunks/{tool-pwge32e4.js → tool-bbpgpzrp.js} +4 -4
- package/dist/chunks/{tool-4rs0m8vn.js → tool-bcr0ksmf.js} +9 -9
- package/dist/chunks/{tool-cx5j657v.js → tool-bvjdq5yq.js} +5 -5
- package/dist/chunks/{tool-9e5p6t2h.js → tool-bx021530.js} +11 -11
- package/dist/chunks/{tool-jebbcwb7.js → tool-c1ant5c1.js} +178 -178
- package/dist/chunks/{tool-qptn7k98.js → tool-c3227a7e.js} +12 -12
- package/dist/chunks/{tool-599d5hrs.js → tool-c7f2cwkk.js} +3 -3
- package/dist/chunks/{tool-xp6p1dgv.js → tool-cjdpndr5.js} +13 -13
- package/dist/chunks/{tool-qbsvtwmm.js → tool-cjxvfp5z.js} +7 -7
- package/dist/chunks/{tool-mx1sz4x7.js → tool-ck2jvgzg.js} +27 -27
- package/dist/chunks/{tool-tj5stkpz.js → tool-ckag18vk.js} +24 -24
- package/dist/chunks/{tool-j2mwjwzb.js → tool-csdqyeex.js} +11 -11
- package/dist/chunks/{tool-88t4yrn9.js → tool-ct5kn7sm.js} +17 -17
- package/dist/chunks/{tool-2zdrkm9b.js → tool-cwxwnzw8.js} +8 -8
- package/dist/chunks/{tool-98tegs2y.js → tool-cy8n646y.js} +21 -21
- package/dist/chunks/{tool-7z8hv35c.js → tool-cz3qxt32.js} +35 -35
- package/dist/chunks/{tool-gce79w0q.js → tool-czkrkmgx.js} +8 -8
- package/dist/chunks/{tool-kt3hcyyz.js → tool-d0m8bny5.js} +19 -19
- package/dist/chunks/{tool-v7wmy86e.js → tool-dbqekdzp.js} +4 -4
- package/dist/chunks/{tool-9bwc8hw1.js → tool-dcgfqf6n.js} +3 -3
- package/dist/chunks/{tool-vn72gsba.js → tool-dd40s8jk.js} +1 -1
- package/dist/chunks/{tool-wvpq0bw3.js → tool-dwktjsma.js} +1 -1
- package/dist/chunks/{tool-w1ry99tz.js → tool-e4gfb4rf.js} +14 -14
- package/dist/chunks/{tool-y3cnjxb9.js → tool-e4q1gg2w.js} +19 -19
- package/dist/chunks/{tool-0ma4vy4p.js → tool-eaxx2kzt.js} +1 -1
- package/dist/chunks/{tool-58xwj6qx.js → tool-egspt8cm.js} +57 -57
- package/dist/chunks/{tool-v5twwn9z.js → tool-entbm7rc.js} +16 -16
- package/dist/chunks/{tool-8bha9w2p.js → tool-f4tfcf42.js} +9 -9
- package/dist/chunks/{tool-71az546q.js → tool-f75zav2x.js} +1 -1
- package/dist/chunks/{tool-htbz2s2q.js → tool-fe6bz30b.js} +19 -19
- package/dist/chunks/{tool-9hvgyr50.js → tool-fgvy1g99.js} +35 -35
- package/dist/chunks/{tool-ewp9wevh.js → tool-fhm77ccb.js} +3 -3
- package/dist/chunks/{tool-5a9tff2n.js → tool-g0vvyb83.js} +10 -10
- package/dist/chunks/{tool-wh6zw745.js → tool-g24rjnnt.js} +3 -3
- package/dist/chunks/{tool-jghb6zsz.js → tool-g357tzjd.js} +24 -24
- package/dist/chunks/{tool-x48reza4.js → tool-g4ezwve1.js} +17 -17
- package/dist/chunks/{tool-6gwk5m7m.js → tool-g6tpgah0.js} +76 -76
- package/dist/chunks/{tool-c652knrp.js → tool-gdn38z0d.js} +142 -142
- package/dist/chunks/{tool-5hj0wrn5.js → tool-gfygj460.js} +10 -10
- package/dist/chunks/{tool-dy8n0qm6.js → tool-gkwkvfez.js} +14 -14
- package/dist/chunks/{tool-n5w4zgy3.js → tool-gx34rq0y.js} +4 -4
- package/dist/chunks/{tool-60vkhqe6.js → tool-gxds6sjc.js} +15 -15
- package/dist/chunks/{tool-atmvy895.js → tool-h43cy6bd.js} +7 -7
- package/dist/chunks/{tool-75ey17xe.js → tool-h65drem0.js} +17 -17
- package/dist/chunks/{tool-9m1qv4sr.js → tool-h6tdr0wz.js} +14 -14
- package/dist/chunks/{tool-7wnkabmt.js → tool-h9pcb0g7.js} +7 -7
- package/dist/chunks/{tool-ykkbspqz.js → tool-hmb6jn2z.js} +14 -14
- package/dist/chunks/{tool-wchs5kcb.js → tool-hqwyy3bj.js} +37 -3
- package/dist/chunks/{tool-3rwvqde1.js → tool-hv8s3tg2.js} +21 -21
- package/dist/chunks/{tool-1djc6rq1.js → tool-j1ba0jw9.js} +30 -30
- package/dist/chunks/{tool-q8dg0qrx.js → tool-j6rvrjb2.js} +16 -16
- package/dist/chunks/{tool-1402mhzs.js → tool-jy0x8hkf.js} +40 -40
- package/dist/chunks/{tool-svdf0mx4.js → tool-k1pmzggn.js} +29 -29
- package/dist/chunks/{tool-9e5bzkjp.js → tool-kb9j3d72.js} +1 -1
- package/dist/chunks/{tool-0vgvvwxq.js → tool-kc6hkr7d.js} +6 -6
- package/dist/chunks/{tool-esfye6zx.js → tool-kfdtc9qy.js} +9 -9
- package/dist/chunks/{tool-2vs2nh1n.js → tool-kne8f3cn.js} +3 -3
- package/dist/chunks/{tool-yk3b2hhw.js → tool-krzbbgtd.js} +8 -8
- package/dist/chunks/{tool-cavr175a.js → tool-kvvk39gs.js} +3 -3
- package/dist/chunks/{tool-vdqy2d40.js → tool-kzgmjn1f.js} +10 -10
- package/dist/chunks/{tool-ec3xbt7p.js → tool-m8tjqkzb.js} +4 -4
- package/dist/chunks/{tool-jb98t3yg.js → tool-m9kfb99s.js} +8 -8
- package/dist/chunks/{tool-h6nxw0pd.js → tool-mdmbfqgq.js} +7 -7
- package/dist/chunks/{tool-djravzrm.js → tool-mrtp8nr7.js} +9 -9
- package/dist/chunks/{tool-5qwkxp89.js → tool-mwwxnxty.js} +3 -3
- package/dist/chunks/{tool-4mwpykj0.js → tool-mx9vqzsb.js} +5 -5
- package/dist/chunks/{tool-wdg5bjkg.js → tool-mzraw8ha.js} +6 -6
- package/dist/chunks/{tool-p872nfyh.js → tool-mzrc21xj.js} +39 -39
- package/dist/chunks/{tool-n9gejz5b.js → tool-n3kz9j5v.js} +5 -5
- package/dist/chunks/{tool-v4zkdgc9.js → tool-n7c1m45s.js} +15 -15
- package/dist/chunks/{tool-p9why5pw.js → tool-na90p5sz.js} +28 -28
- package/dist/chunks/{tool-a4ae1mqs.js → tool-ncnm8wen.js} +1 -1
- package/dist/chunks/{tool-z98n36ea.js → tool-nesyhtff.js} +16 -16
- package/dist/chunks/{tool-eq44gh0z.js → tool-ng6f7xag.js} +17 -17
- package/dist/chunks/{tool-eg18rmn3.js → tool-nkxtzyv4.js} +23 -23
- package/dist/chunks/{tool-d13qwqgh.js → tool-npt101jb.js} +22 -22
- package/dist/chunks/{tool-k86ctsz1.js → tool-p10vm95c.js} +7 -7
- package/dist/chunks/{tool-0tbrh5mv.js → tool-p2y4rtdg.js} +29 -29
- package/dist/chunks/{tool-epxcr31w.js → tool-p6hyfmfc.js} +2 -2
- package/dist/chunks/{tool-7ad5y3s6.js → tool-pdssdm3r.js} +41 -41
- package/dist/chunks/{tool-9frdx5hm.js → tool-pjsqfx9m.js} +4 -4
- package/dist/chunks/{tool-rva2vaqy.js → tool-pnzjke2r.js} +15 -15
- package/dist/chunks/{tool-qycxan82.js → tool-pvnmdee5.js} +1 -1
- package/dist/chunks/{tool-psb6wvpf.js → tool-pz19f1h4.js} +11 -11
- package/dist/chunks/{tool-8m8eqb0p.js → tool-pzcaekwn.js} +11 -11
- package/dist/chunks/{tool-ht5y0zrb.js → tool-q509s3k3.js} +4 -4
- package/dist/chunks/{tool-mw7fyssf.js → tool-qbd5ma0n.js} +8 -8
- package/dist/chunks/{tool-15brx7xh.js → tool-qc3y4bn0.js} +24 -24
- package/dist/chunks/{tool-ycm51zrg.js → tool-qdm0xvfe.js} +1 -1
- package/dist/chunks/{tool-0jwsre1p.js → tool-qgn6gcr1.js} +4 -4
- package/dist/chunks/{tool-veqef7sc.js → tool-qk33d3eb.js} +4 -4
- package/dist/chunks/{tool-nm9kjter.js → tool-qt17f4h7.js} +12 -12
- package/dist/chunks/{tool-h412aj1p.js → tool-qtq3p0wt.js} +43 -43
- package/dist/chunks/{tool-dr9qm9pw.js → tool-qx8vbekt.js} +9 -9
- package/dist/chunks/{tool-8f6m8c4b.js → tool-r1z1z81h.js} +9 -9
- package/dist/chunks/{tool-1zqsf2j9.js → tool-r9t00hsy.js} +7 -7
- package/dist/chunks/{tool-4nj4bn9q.js → tool-r9w3djhf.js} +7 -7
- package/dist/chunks/{tool-c2jpvny9.js → tool-rjep82nj.js} +18 -18
- package/dist/chunks/{tool-e9w3b6g9.js → tool-rx871m47.js} +1 -1
- package/dist/chunks/{tool-ab5g3gyt.js → tool-rxn8twjw.js} +16 -16
- package/dist/chunks/{tool-z6c3x22d.js → tool-s7nv2rwz.js} +3 -3
- package/dist/chunks/{tool-0ay65vhm.js → tool-scqzf1nw.js} +11 -11
- package/dist/chunks/{tool-ngqw0ypv.js → tool-see9wd13.js} +77 -77
- package/dist/chunks/{tool-a5fdf1es.js → tool-semz41dm.js} +7 -7
- package/dist/chunks/{tool-d761m3y3.js → tool-sgd5yhbj.js} +8 -8
- package/dist/chunks/{tool-8aaqm6qj.js → tool-sm965ndy.js} +7 -7
- package/dist/chunks/{tool-2hzmp1dp.js → tool-swk0q7s9.js} +1 -1
- package/dist/chunks/{tool-v1gpf2yb.js → tool-sxt8reb7.js} +33 -33
- package/dist/chunks/{tool-8yavwngc.js → tool-tcyk0gcq.js} +13 -13
- package/dist/chunks/{tool-sj09p6fx.js → tool-tdtgstz8.js} +18 -18
- package/dist/chunks/{tool-nb12znkd.js → tool-tnjsmpmj.js} +18 -18
- package/dist/chunks/{tool-2stxsqvh.js → tool-tpypbtav.js} +2 -2
- package/dist/chunks/{tool-veq1ptvw.js → tool-txw06jcg.js} +22 -22
- package/dist/chunks/{tool-cjmm0qt3.js → tool-tytd2jm0.js} +51 -51
- package/dist/chunks/{tool-3srzt07f.js → tool-vcccfxhw.js} +39 -39
- package/dist/chunks/{tool-m6hkzgzt.js → tool-vdg7jmx3.js} +17 -17
- package/dist/chunks/{tool-e41k2zcz.js → tool-vk9cvn9d.js} +30 -30
- package/dist/chunks/{tool-6c0e94qj.js → tool-vpfpr37q.js} +9 -9
- package/dist/chunks/{tool-fqa841x5.js → tool-w0jh0ny2.js} +11 -11
- package/dist/chunks/{tool-8a6ws7jr.js → tool-w36j0bmk.js} +7 -7
- package/dist/chunks/{tool-k2rcv5mf.js → tool-w7jnj522.js} +13 -13
- package/dist/chunks/{tool-v4xb2j5s.js → tool-wdeky1ys.js} +19 -19
- package/dist/chunks/{tool-kvq6zm8d.js → tool-wfdj1abq.js} +9 -9
- package/dist/chunks/{tool-esx0q18m.js → tool-wk2zpc1v.js} +10 -10
- package/dist/chunks/{tool-m6pz7yaw.js → tool-wkqs3fc0.js} +21 -21
- package/dist/chunks/{tool-mh8avh3a.js → tool-wpgamtwv.js} +29 -29
- package/dist/chunks/{tool-7t6d0zf6.js → tool-wyyj98bv.js} +3 -3
- package/dist/chunks/{tool-x5z5qag1.js → tool-x2jd95r3.js} +23 -23
- package/dist/chunks/{tool-72rw85ce.js → tool-xcmk6yw7.js} +8 -8
- package/dist/chunks/{tool-4434d9q2.js → tool-xecxzrdp.js} +7 -7
- package/dist/chunks/{tool-3px2wxdf.js → tool-xqq6j46d.js} +18 -18
- package/dist/chunks/{tool-78ss49vf.js → tool-y6wve3t3.js} +11 -11
- package/dist/chunks/{tool-7v9xsq6d.js → tool-ydty4xqc.js} +18 -18
- package/dist/chunks/{tool-4rsta4nx.js → tool-ymj5q7t9.js} +22 -22
- package/dist/chunks/{tool-dh608gq4.js → tool-ynky3s72.js} +18 -18
- package/dist/chunks/{tool-2r4zy24c.js → tool-yptech69.js} +27 -27
- package/dist/chunks/{tool-emd75jk3.js → tool-yxe8956e.js} +3 -3
- package/dist/chunks/{tool-pfthk98r.js → tool-yxnaqxdh.js} +2 -2
- package/dist/chunks/{tool-nd79nxgk.js → tool-z26t8xx0.js} +14 -14
- package/dist/chunks/{tool-jyqxqm4f.js → tool-z5n58sqq.js} +7 -7
- package/dist/chunks/{tool-w3nq1sqw.js → tool-zab19jja.js} +7 -7
- package/dist/chunks/{tool-5bx9xx12.js → tool-zbt4vqdm.js} +20 -20
- package/dist/chunks/{tool-dfjg1bp5.js → tool-zcdqtjtf.js} +46 -46
- package/dist/chunks/{tool-xa84tjd1.js → tool-zqrhdrkc.js} +36 -36
- package/dist/chunks/{tool-3k34870w.js → tool-zr70bgmb.js} +16 -16
- package/dist/chunks/{tool-d2czbp48.js → tool-zsr4wwhv.js} +3 -3
- package/dist/codemode/instructions.js +3 -3
- package/dist/command.js +64 -64
- package/dist/config/discovery.js +58 -58
- package/dist/config/normalize.js +74 -74
- package/dist/config/plugin/agent.js +83 -83
- package/dist/config/plugin/command.js +156 -156
- package/dist/config/plugin/compaction.js +110 -110
- package/dist/config/plugin/compatibility.js +97 -97
- package/dist/config/plugin/formatter.js +84 -84
- package/dist/config/plugin/image.js +83 -83
- package/dist/config/plugin/instruction.js +63 -63
- package/dist/config/plugin/location-watcher.js +83 -83
- package/dist/config/plugin/mcp.js +87 -87
- package/dist/config/plugin/policy.js +83 -83
- package/dist/config/plugin/provider.js +83 -83
- package/dist/config/plugin/reference.js +84 -84
- package/dist/config/plugin/shell.js +81 -81
- package/dist/config/plugin/skill-file.js +73 -73
- package/dist/config/plugin/skill.js +98 -98
- package/dist/config/plugin/snapshot.js +83 -83
- package/dist/config/plugin/source.js +86 -86
- package/dist/config/plugin/tool-output.js +84 -84
- package/dist/config/plugin/websearch.js +82 -82
- package/dist/config/plugin/worktree.js +85 -85
- package/dist/config.js +89 -89
- package/dist/credential.js +61 -61
- package/dist/database/database.js +49 -49
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +39 -39
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +231 -231
- package/dist/environment/environment.js +65 -65
- package/dist/environment/index.js +67 -67
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +76 -76
- package/dist/file-mutation.js +66 -66
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +167 -167
- package/dist/filesystem/search.js +69 -69
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +72 -72
- package/dist/form.js +63 -63
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +63 -63
- package/dist/generate.js +75 -75
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +5 -5
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +75 -75
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +293 -293
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +62 -62
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +67 -67
- package/dist/job.js +56 -56
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +54 -54
- package/dist/location-lifecycle.js +79 -79
- package/dist/location-service-map.js +62 -62
- package/dist/location-services.js +291 -291
- package/dist/location.js +65 -65
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +73 -73
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +62 -62
- package/dist/modal/models.js +75 -75
- package/dist/model-resolver.js +74 -74
- package/dist/model.js +76 -76
- package/dist/models-dev.js +76 -76
- package/dist/permission/saved.js +61 -61
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +83 -83
- package/dist/persistent-pty/index.js +61 -61
- package/dist/persistent-pty.js +53 -53
- package/dist/plugin/agent.js +74 -74
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/host.js +164 -164
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/internal.js +266 -266
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +71 -71
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/plan.js +74 -74
- package/dist/plugin/provider/amazon-bedrock.js +66 -66
- package/dist/plugin/provider/azure.js +84 -84
- package/dist/plugin/provider/chatgpt.js +68 -68
- package/dist/plugin/provider/cloudflare-ai-gateway.js +81 -81
- package/dist/plugin/provider/cloudflare-workers-ai.js +81 -81
- package/dist/plugin/provider/configured.js +80 -80
- package/dist/plugin/provider/digitalocean.js +68 -68
- package/dist/plugin/provider/github-copilot.js +70 -70
- package/dist/plugin/provider/gitlab.js +68 -68
- package/dist/plugin/provider/google-vertex.js +66 -66
- package/dist/plugin/provider/llmgateway.js +56 -56
- package/dist/plugin/provider/lmstudio.js +84 -84
- package/dist/plugin/provider/local.js +81 -81
- package/dist/plugin/provider/modal.js +68 -68
- package/dist/plugin/provider/ollama.js +84 -84
- package/dist/plugin/provider/openai.js +67 -67
- package/dist/plugin/provider/opencode.js +71 -71
- package/dist/plugin/provider/openrouter.js +67 -67
- package/dist/plugin/provider/poe.js +56 -56
- package/dist/plugin/provider/prompt-cache-key.js +66 -66
- package/dist/plugin/provider/sap-ai-core.js +66 -66
- package/dist/plugin/provider/snowflake-cortex.js +82 -82
- package/dist/plugin/provider/vercel.js +66 -66
- package/dist/plugin/provider/vllm.js +84 -84
- package/dist/plugin/provider/xai.js +67 -67
- package/dist/plugin/provider.js +115 -115
- package/dist/plugin/sdk.js +51 -51
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +98 -98
- package/dist/plugin/supervisor.js +280 -280
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +62 -62
- package/dist/plugin/vcs/hg.js +62 -62
- package/dist/plugin/verbosity.js +69 -69
- package/dist/plugin/warming.js +82 -82
- 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 +175 -175
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +66 -66
- package/dist/provider.js +77 -77
- package/dist/pty.js +68 -68
- package/dist/reference/instructions.js +59 -59
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +55 -55
- package/dist/ripgrep.js +66 -66
- package/dist/rpc.js +62 -62
- package/dist/session/command.js +55 -55
- package/dist/session/compaction.js +98 -98
- package/dist/session/context.js +114 -114
- package/dist/session/diff.js +63 -63
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +108 -108
- package/dist/session/execution.js +95 -95
- package/dist/session/generate.js +113 -113
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +63 -63
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +82 -82
- package/dist/session/model-transport.js +3 -3
- package/dist/session/move.js +97 -97
- package/dist/session/projector.js +61 -61
- package/dist/session/prompt.js +76 -76
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +64 -64
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +173 -173
- package/dist/session/runner/model.js +74 -74
- package/dist/session/runner/publish-llm-event.js +84 -84
- package/dist/session/runner/step.js +89 -89
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +121 -121
- package/dist/session/shell.js +92 -92
- package/dist/session/skill.js +75 -75
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +64 -64
- package/dist/session/subagent-job.js +155 -155
- package/dist/session/title.js +115 -115
- package/dist/session/to-session-error.js +83 -83
- package/dist/session/transfer.js +107 -107
- package/dist/session.js +164 -164
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +5 -5
- package/dist/shell.js +93 -93
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +75 -75
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +67 -67
- package/dist/tool/mcp.js +93 -93
- package/dist/tool/plugin/edit.js +87 -87
- package/dist/tool/plugin/glob.js +90 -90
- package/dist/tool/plugin/grep.js +88 -88
- package/dist/tool/plugin/mcp-resource.js +85 -85
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +89 -89
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +91 -91
- package/dist/tool/plugin/shell.js +157 -157
- package/dist/tool/plugin/skill.js +85 -85
- package/dist/tool/plugin/subagent.js +164 -164
- package/dist/tool/plugin/webfetch.js +80 -80
- package/dist/tool/plugin/websearch.js +83 -83
- package/dist/tool/plugin/write.js +89 -89
- package/dist/tool/read-filesystem.js +70 -70
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +8 -8
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +67 -67
- 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/variant.js +67 -67
- package/dist/vcs.js +65 -65
- package/dist/websearch.js +63 -63
- package/dist/wellknown/plugin.js +55 -55
- package/dist/wellknown.js +58 -58
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +59 -59
- package/dist/worktree/directory.js +1 -1
- package/dist/worktree/git.js +4 -4
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +65 -65
- package/dist/worktree.js +71 -71
- package/package.json +9 -9
- package/dist/chunks/tool-cqsczj1k.js +0 -26
- /package/dist/chunks/{tool-64mbz47k.js → tool-08ed4zmw.js} +0 -0
- /package/dist/chunks/{tool-0vbcp93d.js → tool-0emb60td.js} +0 -0
- /package/dist/chunks/{tool-h2b79v29.js → tool-3cegwx68.js} +0 -0
- /package/dist/chunks/{tool-a694798e.js → tool-5d17xbav.js} +0 -0
- /package/dist/chunks/{tool-nxn2kzp1.js → tool-9thxh3x6.js} +0 -0
- /package/dist/chunks/{tool-99rd90tq.js → tool-mktzjf14.js} +0 -0
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
} from "./tool-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
17
|
+
var exports_instructions5 = {};
|
|
18
|
+
__export(exports_instructions5, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions5,
|
|
20
20
|
make: () => make15,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
@@ -125,4 +125,4 @@ var make15 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render2, update3, make15,
|
|
128
|
+
export { render2, update3, make15, exports_instructions5 };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./tool-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./tool-
|
|
5
|
+
Service80,
|
|
6
|
+
node84
|
|
7
|
+
} from "./tool-rxn8twjw.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./tool-
|
|
9
|
+
Service19,
|
|
10
|
+
node21
|
|
11
|
+
} from "./tool-csdqyeex.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -22,11 +22,11 @@ var exports_search = {};
|
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
24
|
Options: () => Options2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service14,
|
|
26
26
|
configured: () => configured2,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer8,
|
|
29
|
+
node: () => node16,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ var Options2 = Schema.Struct({
|
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service14 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service80;
|
|
63
|
+
const ripgrep = yield* Service19;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service14.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service80;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service14.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service14.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,8 +174,8 @@ var fffLayer2 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service80;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
@@ -183,8 +183,8 @@ var layer9 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
185
|
function configured2(options) {
|
|
186
|
-
return makeLocationNode({ service:
|
|
186
|
+
return makeLocationNode({ service: Service14, layer: layer8(options), deps: [node84, node21] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node16 = configured2();
|
|
189
189
|
|
|
190
|
-
export { Options2,
|
|
190
|
+
export { Options2, Service14, ripgrepLayer2, fffLayer2, layer8, configured2, node16, exports_search };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./tool-
|
|
2
|
+
Service45
|
|
3
|
+
} from "./tool-mx9vqzsb.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-q509s3k3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./tool-
|
|
8
|
+
Service37
|
|
9
|
+
} from "./tool-zqrhdrkc.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
12
|
} from "./tool-vzs5sf6e.js";
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service45;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service37), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
var exports_managed_policy = {};
|
|
7
7
|
__export(exports_managed_policy, {
|
|
8
8
|
ManagedPolicy: () => exports_managed_policy,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service15,
|
|
10
|
+
node: () => node17
|
|
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 Service15 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service15, () => {
|
|
18
18
|
const state = { current: { statements: [] } };
|
|
19
|
-
return
|
|
19
|
+
return Service15.of({
|
|
20
20
|
current: () => state.current,
|
|
21
21
|
set: (next) => Effect.sync(() => {
|
|
22
22
|
state.current = next;
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
-
var
|
|
26
|
+
var node17 = makeGlobalNode({ service: Service15, layer, deps: [] });
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { Service15, node17, exports_managed_policy };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./tool-
|
|
2
|
+
Service50
|
|
3
|
+
} from "./tool-690bn0hf.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -21,7 +21,7 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
|
21
21
|
var EXIT_WAIT = Duration.seconds(1);
|
|
22
22
|
var STDERR_TAIL = 1000;
|
|
23
23
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
24
|
-
const environment = yield*
|
|
24
|
+
const environment = yield* Service50;
|
|
25
25
|
const scope = yield* Effect.scope;
|
|
26
26
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
27
27
|
const buffer = new ReadBuffer;
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./tool-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
5
|
+
node86
|
|
6
|
+
} from "./tool-h9pcb0g7.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./tool-
|
|
8
|
+
Service80,
|
|
9
|
+
node84
|
|
10
|
+
} from "./tool-rxn8twjw.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
13
|
} from "./tool-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
15
|
make13
|
|
16
|
-
} from "./tool-
|
|
16
|
+
} from "./tool-gx34rq0y.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service22,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node25
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,10 +31,10 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service22 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
37
|
-
const location = yield*
|
|
36
|
+
var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
37
|
+
const location = yield* Service80;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
39
|
const git = yield* make13;
|
|
40
40
|
const state = create3({
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service22.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node25 = makeLocationNode({
|
|
61
|
+
service: Service22,
|
|
62
62
|
layer,
|
|
63
|
-
deps: [
|
|
63
|
+
deps: [node84, Global.node, node86, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service22, node25, exports_strategies };
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./tool-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-axe3mf62.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./tool-
|
|
9
|
+
} from "./tool-pjsqfx9m.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
13
|
} from "./tool-9t7a50xb.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./tool-
|
|
16
|
+
} from "./tool-kb9j3d72.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./tool-
|
|
20
|
+
} from "./tool-dd40s8jk.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./tool-
|
|
25
|
+
} from "./tool-zsr4wwhv.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./tool-
|
|
2
|
+
Service67
|
|
3
|
+
} from "./tool-zab19jja.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
5
|
+
Service45
|
|
6
|
+
} from "./tool-mx9vqzsb.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./tool-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./tool-
|
|
12
|
+
} from "./tool-q509s3k3.js";
|
|
13
13
|
import {
|
|
14
14
|
Service74
|
|
15
15
|
} from "./tool-at1kfnmk.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./tool-
|
|
19
|
+
} from "./tool-pjsqfx9m.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./tool-
|
|
22
|
+
Service69
|
|
23
|
+
} from "./tool-npt101jb.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -39,7 +39,7 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service45;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
45
|
const hooks = yield* Service74;
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service69;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service67;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./tool-
|
|
3
|
+
} from "./tool-cjxvfp5z.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make6 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make7 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make6();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make6, OllamaPlugin2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-qdm0xvfe.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./tool-
|
|
6
|
+
Service35,
|
|
7
|
+
node38
|
|
8
|
+
} from "./tool-mzrc21xj.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./tool-
|
|
10
|
+
Service70,
|
|
11
|
+
node74
|
|
12
|
+
} from "./tool-zcdqtjtf.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./tool-
|
|
14
|
+
Service66,
|
|
15
|
+
node70
|
|
16
|
+
} from "./tool-apme4279.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -22,26 +22,26 @@ import {
|
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
name: () =>
|
|
25
|
+
Service: () => Service32,
|
|
26
|
+
layer: () => layer11,
|
|
27
|
+
name: () => name13,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node35
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
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 name13 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service32 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer11 = Layer.effect(Service32, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service35;
|
|
42
|
+
const tools = yield* Service66;
|
|
43
43
|
const bus = yield* Service83;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service70;
|
|
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(Service36, 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: name13(tool.server, tool.name),
|
|
60
60
|
resources: ["*"],
|
|
61
61
|
save: ["*"],
|
|
62
62
|
metadata: {},
|
|
@@ -105,7 +105,7 @@ var layer13 = Layer.effect(Service36, 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 ${name13(tool.server, tool.name)}` })))
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -118,12 +118,12 @@ var layer13 = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service32.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
123
|
+
var node35 = makeLocationNode({
|
|
124
|
+
service: Service32,
|
|
125
|
+
layer: layer11,
|
|
126
|
+
deps: [node70, node38, node87, node74]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2,
|
|
129
|
+
export { namespace2, name13, Service32, layer11, node35, exports_mcp3 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./tool-
|
|
2
|
+
Service40
|
|
3
|
+
} from "./tool-853r27ye.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
5
|
+
Service39
|
|
6
|
+
} from "./tool-vcccfxhw.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./tool-
|
|
9
|
+
} from "./tool-dcgfqf6n.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -15,18 +15,18 @@ import {
|
|
|
15
15
|
var exports_compatibility = {};
|
|
16
16
|
__export(exports_compatibility, {
|
|
17
17
|
ConfigCompatibilityPlugin: () => exports_compatibility,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin33
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
24
|
-
var
|
|
24
|
+
var Plugin33 = define({
|
|
25
25
|
id: "opencode.config.compatibility",
|
|
26
26
|
effect: Effect.fn(function* (ctx) {
|
|
27
|
-
const config = yield*
|
|
27
|
+
const config = yield* Service39;
|
|
28
28
|
const fs = yield* FSUtil.Service;
|
|
29
|
-
const watcher = yield*
|
|
29
|
+
const watcher = yield* Service40;
|
|
30
30
|
const watches = yield* FiberMap.make();
|
|
31
31
|
const changes = yield* PubSub.sliding(1);
|
|
32
32
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -73,4 +73,4 @@ var Plugin42 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Plugin33, exports_compatibility };
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event7,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options6,
|
|
17
|
+
Service: () => Service40,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured6,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer17,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node43,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event7 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load4());
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options6 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service40 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer17 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service40.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer20 = (options) => Layer.effect(Service53, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service40.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer17().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service40).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service40, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured6(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service40, layer: layer17(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node43 = configured6();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event7, hasNativeBinding2, Native3, Options6, Service40, Test3, layer17, testLayer3, nativeLayer2, nativeNode2, configured6, node43, exports_watcher };
|