@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
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-p6hyfmfc.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./tool-
|
|
8
|
+
} from "./tool-qdm0xvfe.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionMessage2
|
|
11
11
|
} from "./tool-gftt206x.js";
|
|
12
12
|
import {
|
|
13
13
|
StepFailedError2
|
|
14
|
-
} from "./tool-
|
|
14
|
+
} from "./tool-pjsqfx9m.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionEvent2
|
|
17
17
|
} from "./tool-ec1grn59.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionMessageTable2
|
|
20
|
-
} from "./tool-
|
|
20
|
+
} from "./tool-kb9j3d72.js";
|
|
21
21
|
import {
|
|
22
22
|
prepare4
|
|
23
|
-
} from "./tool-
|
|
23
|
+
} from "./tool-dd40s8jk.js";
|
|
24
24
|
import {
|
|
25
25
|
provenance2
|
|
26
|
-
} from "./tool-
|
|
26
|
+
} from "./tool-zsr4wwhv.js";
|
|
27
27
|
import {
|
|
28
28
|
decodeMessageRow2,
|
|
29
29
|
preview2
|
|
30
|
-
} from "./tool-
|
|
30
|
+
} from "./tool-7crx08a4.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "./tool-
|
|
32
|
+
Service71,
|
|
33
|
+
node75
|
|
34
|
+
} from "./tool-bx021530.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./tool-
|
|
36
|
+
Service59,
|
|
37
|
+
node63
|
|
38
|
+
} from "./tool-sxt8reb7.js";
|
|
39
39
|
import {
|
|
40
40
|
llmClient2
|
|
41
41
|
} from "./tool-5t3nmthw.js";
|
|
42
42
|
import {
|
|
43
43
|
Service34,
|
|
44
44
|
node37
|
|
45
|
-
} from "./tool-
|
|
45
|
+
} from "./tool-9swdtjav.js";
|
|
46
46
|
import {
|
|
47
47
|
baseTranscript2
|
|
48
|
-
} from "./tool-
|
|
48
|
+
} from "./tool-b8yxdv3q.js";
|
|
49
49
|
import {
|
|
50
50
|
make9
|
|
51
51
|
} from "./tool-scgrse2b.js";
|
|
52
52
|
import {
|
|
53
53
|
toSessionError2
|
|
54
|
-
} from "./tool-
|
|
54
|
+
} from "./tool-bvjdq5yq.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
Service10,
|
|
57
|
+
node12,
|
|
58
58
|
estimatePrompt2
|
|
59
|
-
} from "./tool-
|
|
59
|
+
} from "./tool-4mpv5s2v.js";
|
|
60
60
|
import {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} from "./tool-
|
|
61
|
+
Service26,
|
|
62
|
+
node29
|
|
63
|
+
} from "./tool-see9wd13.js";
|
|
64
64
|
import {
|
|
65
65
|
serialized2,
|
|
66
66
|
nextPromotable2,
|
|
67
67
|
promote2
|
|
68
|
-
} from "./tool-
|
|
68
|
+
} from "./tool-gkwkvfez.js";
|
|
69
69
|
import {
|
|
70
|
-
|
|
70
|
+
Service5,
|
|
71
71
|
isUntitled2,
|
|
72
|
-
|
|
73
|
-
} from "./tool-
|
|
72
|
+
node7
|
|
73
|
+
} from "./tool-zbt4vqdm.js";
|
|
74
74
|
import {
|
|
75
75
|
DrainResult2,
|
|
76
|
-
|
|
77
|
-
} from "./tool-
|
|
76
|
+
Service43
|
|
77
|
+
} from "./tool-kne8f3cn.js";
|
|
78
78
|
import {
|
|
79
|
-
|
|
80
|
-
} from "./tool-
|
|
79
|
+
node72
|
|
80
|
+
} from "./tool-wpgamtwv.js";
|
|
81
81
|
import {
|
|
82
|
-
|
|
83
|
-
} from "./tool-
|
|
82
|
+
node55
|
|
83
|
+
} from "./tool-xcmk6yw7.js";
|
|
84
84
|
import {
|
|
85
85
|
Outcome2,
|
|
86
86
|
make8
|
|
87
|
-
} from "./tool-
|
|
87
|
+
} from "./tool-w7jnj522.js";
|
|
88
88
|
import {
|
|
89
|
-
|
|
90
|
-
} from "./tool-
|
|
89
|
+
Service25
|
|
90
|
+
} from "./tool-q509s3k3.js";
|
|
91
91
|
import {
|
|
92
|
-
|
|
93
|
-
} from "./tool-
|
|
92
|
+
node22
|
|
93
|
+
} from "./tool-xqq6j46d.js";
|
|
94
94
|
import {
|
|
95
95
|
MAX_STEPS_PROMPT2
|
|
96
96
|
} from "./tool-y44na4kk.js";
|
|
@@ -102,23 +102,23 @@ import {
|
|
|
102
102
|
var exports_llm = {};
|
|
103
103
|
__export(exports_llm, {
|
|
104
104
|
SessionRunnerLLM: () => exports_llm,
|
|
105
|
-
node: () =>
|
|
105
|
+
node: () => node6
|
|
106
106
|
});
|
|
107
107
|
import { Message } from "@opencode/ai";
|
|
108
108
|
import { and, desc, eq, sql } from "drizzle-orm";
|
|
109
109
|
import { Cause, Effect, Exit, FiberMap, Layer } from "effect";
|
|
110
110
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
111
111
|
var CONTINUE_AFTER_INCOMPLETE_STREAM = "The previous response was interrupted. Continue from where you left off without repeating completed content.";
|
|
112
|
-
var layer = Layer.effect(
|
|
112
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
113
113
|
const bus = yield* Service83;
|
|
114
|
-
const lifecycle = yield*
|
|
115
|
-
const store = yield*
|
|
116
|
-
const context = yield*
|
|
114
|
+
const lifecycle = yield* Service59;
|
|
115
|
+
const store = yield* Service71;
|
|
116
|
+
const context = yield* Service26;
|
|
117
117
|
const modelTransport = yield* Service34;
|
|
118
118
|
const db = (yield* Service84).db;
|
|
119
|
-
const compaction = yield*
|
|
120
|
-
const plugins = yield*
|
|
121
|
-
const title = yield*
|
|
119
|
+
const compaction = yield* Service10;
|
|
120
|
+
const plugins = yield* Service25;
|
|
121
|
+
const title = yield* Service5;
|
|
122
122
|
const steps = yield* make8;
|
|
123
123
|
const titles = yield* FiberMap.make();
|
|
124
124
|
const drain = Effect.fn("SessionRunner.drain")(function* (input) {
|
|
@@ -356,25 +356,25 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
return
|
|
359
|
+
return Service43.of({ drain });
|
|
360
360
|
}));
|
|
361
|
-
var
|
|
362
|
-
service:
|
|
361
|
+
var node6 = makeLocationNode({
|
|
362
|
+
service: Service43,
|
|
363
363
|
layer,
|
|
364
364
|
deps: [
|
|
365
365
|
node87,
|
|
366
|
-
|
|
366
|
+
node63,
|
|
367
367
|
llmClient2,
|
|
368
|
-
|
|
368
|
+
node29,
|
|
369
369
|
node37,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
370
|
+
node75,
|
|
371
|
+
node12,
|
|
372
|
+
node22,
|
|
373
|
+
node7,
|
|
374
|
+
node72,
|
|
375
|
+
node55,
|
|
376
376
|
node88
|
|
377
377
|
]
|
|
378
378
|
});
|
|
379
379
|
|
|
380
|
-
export {
|
|
380
|
+
export { node6, exports_llm };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./tool-
|
|
3
|
+
} from "./tool-p6hyfmfc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-qdm0xvfe.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./tool-
|
|
8
|
+
Service45
|
|
9
|
+
} from "./tool-mx9vqzsb.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
12
|
} from "./tool-z5v4ffb3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./tool-
|
|
14
|
+
ID7,
|
|
15
|
+
Service68
|
|
16
|
+
} from "./tool-wpgamtwv.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./tool-ec1grn59.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./tool-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./tool-
|
|
25
|
+
} from "./tool-pjsqfx9m.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./tool-
|
|
28
|
+
} from "./tool-kb9j3d72.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
31
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -41,12 +41,12 @@ __export(exports_revert, {
|
|
|
41
41
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
42
42
|
import { Effect, Schema } from "effect";
|
|
43
43
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
44
|
-
const instances = yield*
|
|
44
|
+
const instances = yield* Service45;
|
|
45
45
|
const database = yield* Service84;
|
|
46
46
|
const bus = yield* Service83;
|
|
47
47
|
return yield* Effect.gen(function* () {
|
|
48
|
-
const snapshot = yield*
|
|
49
|
-
const original = input.session.revert?.snapshot ?
|
|
48
|
+
const snapshot = yield* Service68;
|
|
49
|
+
const original = input.session.revert?.snapshot ? ID7.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
50
50
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
51
51
|
const restore = new Map;
|
|
52
52
|
if (original) {
|
|
@@ -73,13 +73,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
73
73
|
}).pipe(instances.provide(input.session));
|
|
74
74
|
});
|
|
75
75
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
76
|
-
const instances = yield*
|
|
76
|
+
const instances = yield* Service45;
|
|
77
77
|
const bus = yield* Service83;
|
|
78
78
|
yield* Effect.gen(function* () {
|
|
79
|
-
const snapshot = yield*
|
|
79
|
+
const snapshot = yield* Service68;
|
|
80
80
|
if (!session.revert)
|
|
81
81
|
return;
|
|
82
|
-
const original = session.revert.snapshot ?
|
|
82
|
+
const original = session.revert.snapshot ? ID7.make(session.revert.snapshot) : undefined;
|
|
83
83
|
if (original)
|
|
84
84
|
yield* snapshot.restore({
|
|
85
85
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -110,7 +110,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
110
110
|
continue;
|
|
111
111
|
for (const file of message.snapshot.files ?? [])
|
|
112
112
|
if (!files.has(file))
|
|
113
|
-
files.set(file,
|
|
113
|
+
files.set(file, ID7.make(message.snapshot.start));
|
|
114
114
|
}
|
|
115
115
|
return files;
|
|
116
116
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./tool-
|
|
3
|
+
} from "./tool-qdm0xvfe.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./tool-
|
|
5
|
+
Service41,
|
|
6
|
+
Event8
|
|
7
|
+
} from "./tool-ct5kn7sm.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./tool-9rqn6x4v.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin31,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin31 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
const bus = yield* Service83;
|
|
24
|
-
const wellknown = yield*
|
|
24
|
+
const wellknown = yield* Service41;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin49 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event8.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin31, exports_plugin };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./tool-
|
|
3
|
+
} from "./tool-yxe8956e.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-qdm0xvfe.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./tool-
|
|
9
|
+
Event19
|
|
10
|
+
} from "./tool-66t34m9w.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./tool-
|
|
13
|
+
} from "./tool-addxnjmp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./tool-
|
|
17
|
+
} from "./tool-303t2pvh.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID13,
|
|
20
20
|
aisdk2,
|
|
21
|
-
|
|
22
|
-
} from "./tool-
|
|
21
|
+
Service76
|
|
22
|
+
} from "./tool-vk9cvn9d.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./tool-
|
|
24
|
+
ID5,
|
|
25
|
+
Info16
|
|
26
|
+
} from "./tool-na90p5sz.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
@@ -35,8 +35,8 @@ import { Clock, Deferred, Effect, Exit, Option, Schema, Semaphore, Stream } from
|
|
|
35
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
36
36
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
37
37
|
import { Form } from "@opencode/schema/form";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID13.gitlab;
|
|
39
|
+
var integrationID = ID14.make("gitlab");
|
|
40
40
|
var methodID = MethodID2.make("pkce");
|
|
41
41
|
var bundledClientID = "fd180700a8f9c5d5557aca231632dd0611a1135a3bb510a741d5a988a3394fa7";
|
|
42
42
|
var legacyClientID = "1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e";
|
|
@@ -57,7 +57,7 @@ var refreshRetention = 60000;
|
|
|
57
57
|
var GitLabPlugin2 = define({
|
|
58
58
|
id: "opencode.provider.gitlab",
|
|
59
59
|
effect: Effect.fn(function* (ctx) {
|
|
60
|
-
const providers = yield*
|
|
60
|
+
const providers = yield* Service76;
|
|
61
61
|
const bus = yield* Service83;
|
|
62
62
|
const http = yield* HttpClient.HttpClient;
|
|
63
63
|
const loading = Semaphore.makeUnsafe(1);
|
|
@@ -185,7 +185,7 @@ var GitLabPlugin2 = define({
|
|
|
185
185
|
models: [
|
|
186
186
|
...item.models.values(),
|
|
187
187
|
...loaded.models.filter((model) => !item.models.has(model.id)).map((model) => ({
|
|
188
|
-
...
|
|
188
|
+
...Info16.default(providerID, ID5.make(model.id)),
|
|
189
189
|
name: `Agent Platform (${model.name})`,
|
|
190
190
|
package: aisdk2("gitlab-ai-provider"),
|
|
191
191
|
settings: { workflowRef: model.ref },
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -219,7 +219,7 @@ var GitLabPlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
222
|
-
if (evt.model.providerID !==
|
|
222
|
+
if (evt.model.providerID !== ID13.gitlab)
|
|
223
223
|
return;
|
|
224
224
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
225
225
|
const id = evt.model.modelID ?? evt.model.id;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./tool-
|
|
3
|
+
} from "./tool-addxnjmp.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-qdm0xvfe.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./tool-
|
|
9
|
+
Event19
|
|
10
|
+
} from "./tool-66t34m9w.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./tool-
|
|
14
|
+
} from "./tool-303t2pvh.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./tool-
|
|
19
|
+
Service76
|
|
20
|
+
} from "./tool-vk9cvn9d.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./tool-
|
|
22
|
+
ID5
|
|
23
|
+
} from "./tool-na90p5sz.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./tool-
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./tool-hv8s3tg2.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./tool-
|
|
30
|
+
} from "./tool-yxe8956e.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./tool-
|
|
32
|
+
ID11
|
|
33
|
+
} from "./tool-d0m8bny5.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
36
|
} from "./tool-54ma36ye.js";
|
|
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
67
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
68
|
+
integrationID: ID14.make("github-copilot"),
|
|
69
69
|
method: {
|
|
70
70
|
id: methodID,
|
|
71
71
|
type: "oauth",
|
|
@@ -163,7 +163,7 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
166
|
+
const providers = yield* Service76;
|
|
167
167
|
const bus = yield* Service83;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
@@ -180,9 +180,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
185
|
+
try: () => load2(url, {
|
|
186
186
|
...provider?.headers,
|
|
187
187
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
188
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -202,13 +202,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID13.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
209
209
|
evt.add({
|
|
210
210
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
211
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
212
|
sourceConnection: loaded.connection
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
@@ -222,17 +222,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
yield* ctx.model.transform((models) => {
|
|
225
|
-
if (models.get(
|
|
226
|
-
models.update(
|
|
225
|
+
if (models.get(ID13.githubCopilot, ID5.make("gpt-5-chat-latest"))) {
|
|
226
|
+
models.update(ID13.githubCopilot, ID5.make("gpt-5-chat-latest"), (model) => {
|
|
227
227
|
model.enabled = false;
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
232
|
-
yield* bus.subscribe(
|
|
232
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
233
233
|
yield* refresh().pipe(Effect.forkScoped);
|
|
234
234
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
235
|
-
if (evt.model.providerID !==
|
|
235
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
236
236
|
return;
|
|
237
237
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
238
238
|
return;
|
|
@@ -241,7 +241,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
241
241
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
242
242
|
}));
|
|
243
243
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
247
247
|
return;
|
|
@@ -251,13 +251,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
251
251
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
252
252
|
if (interaction !== "conversation-agent")
|
|
253
253
|
evt.headers["x-initiator"] = "agent";
|
|
254
|
-
}), { providerID:
|
|
254
|
+
}), { providerID: ID13.githubCopilot });
|
|
255
255
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
256
|
-
if (evt.model.providerID !==
|
|
256
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
257
257
|
return;
|
|
258
258
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
259
259
|
return;
|
|
260
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
260
|
+
const agent = yield* ctx.agent.get({ agentID: ID11.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
261
261
|
return;
|
|
262
262
|
}));
|
|
263
263
|
if (agent?.data.model)
|
|
@@ -268,9 +268,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
268
268
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
|
-
}), { providerID:
|
|
271
|
+
}), { providerID: ID13.githubCopilot });
|
|
272
272
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
273
|
-
if (evt.model.providerID !==
|
|
273
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
274
274
|
return;
|
|
275
275
|
const token = evt.request.headers.get("x-api-key");
|
|
276
276
|
if (!token)
|
|
@@ -278,9 +278,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
278
278
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
279
279
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
280
280
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
281
|
-
}), { providerID:
|
|
281
|
+
}), { providerID: ID13.githubCopilot });
|
|
282
282
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
283
|
-
if (evt.model.providerID !==
|
|
283
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
284
284
|
return;
|
|
285
285
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
286
286
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./tool-
|
|
2
|
+
ID5
|
|
3
|
+
} from "./tool-na90p5sz.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/openrouter.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
for (const item of models.provider.list()) {
|
|
22
22
|
if (item.provider.package !== "@opencode/ai/providers/openrouter")
|
|
23
23
|
continue;
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID5.make("gpt-5-chat-latest"), ID5.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!models.get(item.provider.id, modelID))
|
|
26
26
|
continue;
|
|
27
27
|
models.update(item.provider.id, modelID, (model) => {
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./tool-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
5
|
+
Service80
|
|
6
|
+
} from "./tool-rxn8twjw.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./tool-
|
|
8
|
+
Service39
|
|
9
|
+
} from "./tool-vcccfxhw.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalSource2,
|
|
12
12
|
GitSource2
|
|
13
|
-
} from "./tool-
|
|
13
|
+
} from "./tool-ynky3s72.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
16
|
} from "./tool-qsdy395h.js";
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
var exports_reference = {};
|
|
23
23
|
__export(exports_reference, {
|
|
24
24
|
ConfigReferencePlugin: () => exports_reference,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin49
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Effect } from "effect";
|
|
30
30
|
import { Global } from "@opencode/util/global";
|
|
31
|
-
var
|
|
31
|
+
var Plugin49 = define({
|
|
32
32
|
id: "opencode.config.reference",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
35
|
-
const location = yield*
|
|
34
|
+
const config = yield* Service39;
|
|
35
|
+
const location = yield* Service80;
|
|
36
36
|
const global = yield* Global.Service;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, ctx.reference.reload());
|
|
38
38
|
yield* ctx.reference.transform((editor) => {
|
|
@@ -72,4 +72,4 @@ function localPath(directory, home, value) {
|
|
|
72
72
|
return path.isAbsolute(value) ? value : path.resolve(directory, value);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { Plugin49, exports_reference };
|