@opencode/core 0.0.0-dev-20859 → 0.0.0-dev-20865
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 +63 -63
- package/dist/aisdk-native.js +61 -61
- package/dist/aisdk.js +66 -66
- package/dist/app.js +9 -9
- package/dist/bus.js +52 -52
- package/dist/chunks/{models-dev-5hje56dy.js → models-dev-02vpj3qc.js} +17 -17
- package/dist/chunks/{models-dev-n7c9kffx.js → models-dev-09dj6j0c.js} +18 -18
- package/dist/chunks/{models-dev-qsjdw6zx.js → models-dev-0c77cqtw.js} +8 -8
- package/dist/chunks/{models-dev-y8ywfhz0.js → models-dev-0cwy3bsm.js} +30 -30
- package/dist/chunks/{models-dev-etrah8tf.js → models-dev-0ef4xx30.js} +11 -11
- package/dist/chunks/{models-dev-mhj1gmv2.js → models-dev-0sakkys5.js} +8 -8
- package/dist/chunks/{models-dev-825k8aw8.js → models-dev-0xb1ev3y.js} +18 -18
- package/dist/chunks/{models-dev-sds13m34.js → models-dev-1813d5zh.js} +4 -4
- package/dist/chunks/{models-dev-xskeg1my.js → models-dev-18ged8s4.js} +4 -4
- package/dist/chunks/{models-dev-20nanq9y.js → models-dev-1kzng4v9.js} +23 -23
- package/dist/chunks/{models-dev-g6yfr6ja.js → models-dev-1pxz8ven.js} +3 -3
- package/dist/chunks/{models-dev-nywrw2rv.js → models-dev-1xbam7mh.js} +23 -23
- package/dist/chunks/{models-dev-a4t865ze.js → models-dev-1zran81s.js} +42 -42
- package/dist/chunks/{models-dev-d2wg8ycw.js → models-dev-1zzep20k.js} +48 -48
- package/dist/chunks/{models-dev-rm8qkk51.js → models-dev-20y73wgn.js} +75 -75
- package/dist/chunks/{models-dev-xapca0z6.js → models-dev-27jjh9qb.js} +5 -5
- package/dist/chunks/{models-dev-dtv3x9wh.js → models-dev-27k0aesg.js} +31 -31
- package/dist/chunks/{models-dev-rcjkxq8e.js → models-dev-2fah77kf.js} +20 -20
- package/dist/chunks/{models-dev-607tc6va.js → models-dev-2k8khapm.js} +4 -4
- package/dist/chunks/{models-dev-nppymsqd.js → models-dev-3066s64a.js} +9 -9
- package/dist/chunks/{models-dev-cg1v189h.js → models-dev-3711sgqg.js} +13 -13
- package/dist/chunks/{models-dev-zbt6nn6v.js → models-dev-38ae7j5t.js} +4 -4
- package/dist/chunks/{models-dev-95vtkt33.js → models-dev-38qn8yeh.js} +16 -16
- package/dist/chunks/{models-dev-p871771t.js → models-dev-3af8jha9.js} +11 -11
- package/dist/chunks/models-dev-3ak9ykqq.js +26 -0
- package/dist/chunks/{models-dev-0kxvzjqb.js → models-dev-3gkd5a8g.js} +8 -8
- package/dist/chunks/{models-dev-vmcw6w9a.js → models-dev-3h8e7zd4.js} +9 -9
- package/dist/chunks/{models-dev-frwnkyqj.js → models-dev-3kdapj6e.js} +3 -3
- package/dist/chunks/{models-dev-g5thp7qf.js → models-dev-3pe8x8yc.js} +33 -33
- package/dist/chunks/{models-dev-m1xtt4y5.js → models-dev-3qsb6rdp.js} +10 -10
- package/dist/chunks/{models-dev-t5qdg2d6.js → models-dev-3rf335s5.js} +28 -28
- package/dist/chunks/{models-dev-jq3943v9.js → models-dev-3svptyzd.js} +5 -5
- package/dist/chunks/{models-dev-6kvq4g2x.js → models-dev-3xh5mtw1.js} +16 -16
- package/dist/chunks/{models-dev-x19bay7e.js → models-dev-3zkyqq39.js} +30 -30
- package/dist/chunks/{models-dev-dnbgra15.js → models-dev-41ha1pse.js} +14 -14
- package/dist/chunks/{models-dev-9mpm97f6.js → models-dev-4297re2w.js} +17 -17
- package/dist/chunks/{models-dev-mtpeagzc.js → models-dev-48kw51zw.js} +3 -3
- package/dist/chunks/{models-dev-x7fmrxm4.js → models-dev-4c9nws0q.js} +39 -39
- package/dist/chunks/{models-dev-vfjhn2wd.js → models-dev-4v7ngy20.js} +3 -3
- package/dist/chunks/{models-dev-dxj72tfx.js → models-dev-4v7qdvcn.js} +4 -4
- package/dist/chunks/{models-dev-skz3ykf8.js → models-dev-4vs05w9v.js} +76 -76
- package/dist/chunks/{models-dev-xrmxwe4z.js → models-dev-50jefmw0.js} +16 -16
- package/dist/chunks/{models-dev-r94pvvab.js → models-dev-54ma36ye.js} +3 -3
- package/dist/chunks/{models-dev-yas3qt8d.js → models-dev-56zrnamb.js} +9 -9
- package/dist/chunks/{models-dev-nfy0j2qk.js → models-dev-5cr9rfmm.js} +31 -31
- package/dist/chunks/{models-dev-sr10jt0g.js → models-dev-5dn4fjfa.js} +10 -10
- package/dist/chunks/{models-dev-rt393x0g.js → models-dev-5fxerghj.js} +23 -23
- package/dist/chunks/{models-dev-neksqwq6.js → models-dev-5jebg124.js} +4 -4
- package/dist/chunks/{models-dev-9k0wbz69.js → models-dev-5rb28c55.js} +8 -8
- package/dist/chunks/{models-dev-61j0dmjj.js → models-dev-62wenpza.js} +8 -8
- package/dist/chunks/{models-dev-2sntqjaq.js → models-dev-6631xwdh.js} +15 -15
- package/dist/chunks/{models-dev-y37ep2y1.js → models-dev-6893qs62.js} +2 -2
- package/dist/chunks/{models-dev-e3w9vdzz.js → models-dev-6f60r94z.js} +2 -2
- package/dist/chunks/{models-dev-x084de2t.js → models-dev-6m68mxhc.js} +8 -8
- package/dist/chunks/{models-dev-24chregn.js → models-dev-6nndasc1.js} +15 -15
- package/dist/chunks/{models-dev-pxqeypnt.js → models-dev-6nvb4mge.js} +5 -5
- package/dist/chunks/{models-dev-x9kv5ets.js → models-dev-76qnrnma.js} +2 -2
- package/dist/chunks/{models-dev-d5k6qz6m.js → models-dev-7j2crns3.js} +9 -9
- package/dist/chunks/{models-dev-3rw41r48.js → models-dev-7mjqmdtc.js} +35 -35
- package/dist/chunks/{models-dev-9wrrb0yb.js → models-dev-7z5rppbg.js} +14 -14
- package/dist/chunks/{models-dev-q5e7cmwt.js → models-dev-7zt5x37y.js} +1 -1
- package/dist/chunks/{models-dev-bwqxdjjg.js → models-dev-82148vs9.js} +7 -7
- package/dist/chunks/{models-dev-f062g88n.js → models-dev-8a2c1kbr.js} +14 -14
- package/dist/chunks/{models-dev-paaty2hy.js → models-dev-8dthkasz.js} +38 -38
- package/dist/chunks/{models-dev-b2r2w48a.js → models-dev-8e54dvz2.js} +14 -14
- package/dist/chunks/{models-dev-gtbbts5w.js → models-dev-8jwn2r34.js} +2 -2
- package/dist/chunks/{models-dev-0h3bmwzg.js → models-dev-8krkc3yk.js} +2 -2
- package/dist/chunks/{models-dev-6e3h9s4c.js → models-dev-91ywsamh.js} +19 -19
- package/dist/chunks/{models-dev-ryhdpedp.js → models-dev-93m7ndqx.js} +1 -1
- package/dist/chunks/{models-dev-gvyvbnms.js → models-dev-977z57ma.js} +1 -1
- package/dist/chunks/{models-dev-xqytcf95.js → models-dev-98str5rv.js} +1 -1
- package/dist/chunks/{models-dev-q8k64wqz.js → models-dev-9c6cajnv.js} +9 -9
- package/dist/chunks/{models-dev-aet8a8m6.js → models-dev-9j9hzet3.js} +13 -13
- package/dist/chunks/{models-dev-tpg3rrhy.js → models-dev-9n90zg10.js} +8 -8
- package/dist/chunks/{models-dev-qe05a2bz.js → models-dev-9p0xfm4a.js} +19 -19
- package/dist/chunks/{models-dev-ggw4qjdj.js → models-dev-9v3ssj07.js} +9 -9
- package/dist/chunks/{models-dev-tx9w5tca.js → models-dev-a2qe2ev9.js} +7 -7
- package/dist/chunks/{models-dev-1vg111bv.js → models-dev-ab4qm1k1.js} +20 -20
- package/dist/chunks/{models-dev-3ppptnan.js → models-dev-acd4vkpt.js} +5 -5
- package/dist/chunks/{models-dev-qf76qvkk.js → models-dev-ajxsk1x2.js} +3 -3
- package/dist/chunks/{models-dev-hbz3dq43.js → models-dev-awppbkr6.js} +14 -14
- package/dist/chunks/{models-dev-yqbtp4nn.js → models-dev-az0s1ab0.js} +24 -24
- package/dist/chunks/{models-dev-0vvhvyba.js → models-dev-b250jdey.js} +14 -14
- package/dist/chunks/{models-dev-jq5e7nes.js → models-dev-b41xg0sk.js} +9 -9
- package/dist/chunks/{models-dev-ygdna4kr.js → models-dev-b674v2dg.js} +3 -3
- package/dist/chunks/{models-dev-mt0x4r8y.js → models-dev-b9tgwt06.js} +19 -19
- package/dist/chunks/{models-dev-1ffvrpkg.js → models-dev-bjx1sjef.js} +4 -4
- package/dist/chunks/{models-dev-2qzyfzsa.js → models-dev-bky1yqwv.js} +19 -19
- package/dist/chunks/{models-dev-s2z0d44b.js → models-dev-bmr56wjg.js} +3 -3
- package/dist/chunks/{models-dev-81mmn3a0.js → models-dev-bmzae5ya.js} +21 -21
- package/dist/chunks/{models-dev-9y49bz8y.js → models-dev-bty79xpe.js} +4 -4
- package/dist/chunks/{models-dev-698b69sb.js → models-dev-bvnvcshr.js} +20 -20
- package/dist/chunks/{models-dev-mw7nwdkh.js → models-dev-ce0wjd2x.js} +3 -3
- package/dist/chunks/{models-dev-xxqyc97q.js → models-dev-cedw1as4.js} +14 -14
- package/dist/chunks/{models-dev-jkcwyt6p.js → models-dev-cfdgyghc.js} +15 -15
- package/dist/chunks/{models-dev-gst7axd9.js → models-dev-ckf8nxjz.js} +3 -3
- package/dist/chunks/{models-dev-ge15eywb.js → models-dev-cm1qnfez.js} +9 -9
- package/dist/chunks/{models-dev-k19akd89.js → models-dev-db8bgabc.js} +10 -10
- package/dist/chunks/{models-dev-1fv76e68.js → models-dev-dk2prtcf.js} +1 -1
- package/dist/chunks/{models-dev-xpkv9yx2.js → models-dev-dwbvz6j3.js} +298 -298
- package/dist/chunks/{models-dev-6943eppc.js → models-dev-e8tkc3qk.js} +13 -13
- package/dist/chunks/{models-dev-kzc3h1h3.js → models-dev-eahhehpg.js} +3 -3
- package/dist/chunks/{models-dev-vzrjrdpg.js → models-dev-ednkbcah.js} +13 -13
- package/dist/chunks/{models-dev-9wx1dm4d.js → models-dev-f1f91z08.js} +20 -20
- package/dist/chunks/{models-dev-p2sw0m36.js → models-dev-f2wtk041.js} +46 -46
- package/dist/chunks/{models-dev-3cqwnyj9.js → models-dev-fan8xm03.js} +6 -6
- package/dist/chunks/{models-dev-adkf1mef.js → models-dev-fbwp6pwa.js} +1 -1
- package/dist/chunks/{models-dev-52j8y2jv.js → models-dev-fdkb9ec3.js} +20 -20
- package/dist/chunks/{models-dev-0jq9fyba.js → models-dev-fdms3n6w.js} +7 -7
- package/dist/chunks/{models-dev-bp2y3nv0.js → models-dev-fg3tm49t.js} +30 -30
- package/dist/chunks/{models-dev-edrmdtr5.js → models-dev-fqb2p7cx.js} +6 -6
- package/dist/chunks/{models-dev-tvdyt1f2.js → models-dev-fxjftaq6.js} +10 -10
- package/dist/chunks/{models-dev-fh0gp1g6.js → models-dev-g0ma4c6w.js} +22 -22
- package/dist/chunks/{models-dev-denz7pvs.js → models-dev-g74jm693.js} +6 -6
- package/dist/chunks/{models-dev-xcmk6yw7.js → models-dev-g8ytx0e6.js} +8 -8
- package/dist/chunks/{models-dev-d5fjkd30.js → models-dev-gaagjm2t.js} +8 -8
- package/dist/chunks/{models-dev-4gknt9fd.js → models-dev-gbmjry2n.js} +7 -7
- package/dist/chunks/{models-dev-vy569zcr.js → models-dev-gm86nbja.js} +4 -4
- package/dist/chunks/{models-dev-4t1gj9yh.js → models-dev-gvmpqvya.js} +12 -12
- package/dist/chunks/{models-dev-f29mbr7f.js → models-dev-gw7cjrad.js} +3 -3
- package/dist/chunks/{models-dev-5e9r84ee.js → models-dev-h0q4qrbw.js} +25 -25
- package/dist/chunks/{models-dev-gwwmhhky.js → models-dev-h4k3px47.js} +11 -11
- package/dist/chunks/{models-dev-xjm3547e.js → models-dev-hakjpm15.js} +10 -10
- package/dist/chunks/{models-dev-rz81a41x.js → models-dev-hgbphaw8.js} +22 -22
- package/dist/chunks/{models-dev-82y99j0b.js → models-dev-hpa38nzs.js} +1 -1
- package/dist/chunks/{models-dev-rq8mp9zh.js → models-dev-hpf1ew30.js} +25 -25
- package/dist/chunks/{models-dev-0q0wg4xp.js → models-dev-hzphjpmd.js} +1 -1
- package/dist/chunks/{models-dev-22wdbsts.js → models-dev-j0zrtwtb.js} +5 -5
- package/dist/chunks/{models-dev-pavee1b2.js → models-dev-jcnpjjtr.js} +32 -32
- package/dist/chunks/{models-dev-8v3dx1b1.js → models-dev-jk72hbrr.js} +20 -20
- package/dist/chunks/{models-dev-97krh25m.js → models-dev-k64wxf8y.js} +2 -2
- package/dist/chunks/{models-dev-2ganz3y8.js → models-dev-k6n6e38h.js} +1 -1
- package/dist/chunks/{models-dev-nw3bkfwn.js → models-dev-k6ysx7ta.js} +20 -20
- package/dist/chunks/{models-dev-zn5v3n4q.js → models-dev-k7myrtme.js} +7 -7
- package/dist/chunks/{models-dev-f8tkgn5s.js → models-dev-kbrj9m31.js} +19 -19
- package/dist/chunks/{models-dev-fy2g7ryf.js → models-dev-ke4s2br1.js} +18 -18
- package/dist/chunks/{models-dev-gem7d763.js → models-dev-ktzky0j0.js} +8 -8
- package/dist/chunks/{models-dev-5enhjtjj.js → models-dev-ky2vbgv2.js} +9 -9
- package/dist/chunks/{models-dev-8674dt24.js → models-dev-m1pp26ww.js} +7 -7
- package/dist/chunks/{models-dev-m96k3bkt.js → models-dev-m8yn9wqd.js} +9 -9
- package/dist/chunks/{models-dev-hwt2tm4a.js → models-dev-m92ve9wx.js} +22 -22
- package/dist/chunks/{models-dev-gk8qb678.js → models-dev-maspj1v3.js} +5 -18
- package/dist/chunks/{models-dev-k9rphyjs.js → models-dev-mbqxj1ec.js} +1 -1
- package/dist/chunks/{models-dev-rdq446ee.js → models-dev-mjx5rav7.js} +32 -32
- package/dist/chunks/{models-dev-3jrhrefn.js → models-dev-n0dhg24y.js} +4 -4
- package/dist/chunks/{models-dev-q297xgrc.js → models-dev-n59g9vmt.js} +9 -9
- package/dist/chunks/{models-dev-rhcjcads.js → models-dev-n8brk52a.js} +10 -10
- package/dist/chunks/{models-dev-5fh04hx0.js → models-dev-nasydrcy.js} +9 -9
- package/dist/chunks/{models-dev-h9y1jbrp.js → models-dev-nex57z9h.js} +21 -21
- package/dist/chunks/{models-dev-mkezy99k.js → models-dev-njr6j307.js} +1 -1
- package/dist/chunks/{models-dev-m069vd74.js → models-dev-nk6ny5be.js} +5 -5
- package/dist/chunks/{models-dev-gsfpqf0z.js → models-dev-p0acjafb.js} +22 -22
- package/dist/chunks/{models-dev-5yzzbxa7.js → models-dev-p37cw4rj.js} +7 -7
- package/dist/chunks/{models-dev-k34nj8c9.js → models-dev-pj8gj9vn.js} +9 -9
- package/dist/chunks/{models-dev-a2t0s2yb.js → models-dev-pw0wjf5b.js} +20 -20
- package/dist/chunks/{models-dev-n9m213t7.js → models-dev-pxgkna3x.js} +10 -10
- package/dist/chunks/{models-dev-sxxv73z5.js → models-dev-q3986erm.js} +5 -5
- package/dist/chunks/{models-dev-82d1et5t.js → models-dev-q3jzg8ra.js} +161 -161
- package/dist/chunks/{models-dev-n01hsn3w.js → models-dev-qa0fzn5w.js} +31 -31
- package/dist/chunks/{models-dev-18qdyfs3.js → models-dev-qbqawk7j.js} +10 -10
- package/dist/chunks/{models-dev-nnjnsc1s.js → models-dev-qm5jr2ty.js} +12 -12
- package/dist/chunks/{models-dev-qf9g6tp9.js → models-dev-r7nsrefv.js} +7 -7
- package/dist/chunks/{models-dev-6gw9y4bj.js → models-dev-r9bvg2me.js} +19 -19
- package/dist/chunks/{models-dev-v1vh7s4p.js → models-dev-ra67jj04.js} +7 -7
- package/dist/chunks/{models-dev-70m140w6.js → models-dev-rc1kv93m.js} +9 -9
- package/dist/chunks/{models-dev-pb231g4a.js → models-dev-rek66y3z.js} +10 -10
- package/dist/chunks/{models-dev-68wyf5bm.js → models-dev-rg0zttgc.js} +4 -4
- package/dist/chunks/{models-dev-p99txfpw.js → models-dev-rj9375zf.js} +40 -40
- package/dist/chunks/{models-dev-127b9nq3.js → models-dev-rqa1jxse.js} +1 -1
- package/dist/chunks/{models-dev-374ye17y.js → models-dev-rqd2zw5t.js} +10 -10
- package/dist/chunks/{models-dev-6zqpyfbt.js → models-dev-rx0anvt2.js} +22 -22
- package/dist/chunks/{models-dev-av393dca.js → models-dev-s0wmvqbr.js} +22 -22
- package/dist/chunks/{models-dev-qwvs60pp.js → models-dev-sqp85fkz.js} +41 -41
- package/dist/chunks/{models-dev-knrxc9g3.js → models-dev-t77ee9tw.js} +14 -14
- package/dist/chunks/{models-dev-zxjahm5e.js → models-dev-tdr9jbt8.js} +13 -13
- package/dist/chunks/{models-dev-xtst01x3.js → models-dev-ts5gehh4.js} +4 -4
- package/dist/chunks/{models-dev-x3bxg7jp.js → models-dev-ts9abvhb.js} +27 -27
- package/dist/chunks/{models-dev-19ezngz8.js → models-dev-twwzjqdf.js} +4 -4
- package/dist/chunks/{models-dev-887nqayc.js → models-dev-tzza62aq.js} +16 -16
- package/dist/chunks/{models-dev-4y22yp3a.js → models-dev-v05n4cdg.js} +8 -8
- package/dist/chunks/{models-dev-8yrsrcqn.js → models-dev-v1aj2m8y.js} +7 -7
- package/dist/chunks/{models-dev-ytpyksxf.js → models-dev-v1rcz1aj.js} +32 -32
- package/dist/chunks/{models-dev-zm51nxtb.js → models-dev-v4r7zn86.js} +19 -19
- package/dist/chunks/{models-dev-sek363pm.js → models-dev-vd2q3was.js} +20 -20
- package/dist/chunks/{models-dev-t2svpsp8.js → models-dev-vqh374jc.js} +20 -20
- package/dist/chunks/{models-dev-kz8r75e4.js → models-dev-w0dkdy3z.js} +20 -20
- package/dist/chunks/{models-dev-4cb8f7fk.js → models-dev-w0k2ty99.js} +6 -6
- package/dist/chunks/{models-dev-vapve5e1.js → models-dev-w2ad8e9p.js} +27 -27
- package/dist/chunks/{models-dev-j3zd635k.js → models-dev-w2zfgxdh.js} +4 -4
- package/dist/chunks/{models-dev-z5frhjvt.js → models-dev-w8yyf988.js} +56 -56
- package/dist/chunks/{models-dev-v897zbhh.js → models-dev-wbta6961.js} +9 -9
- package/dist/chunks/{models-dev-k43nyay6.js → models-dev-wg0er8g6.js} +13 -13
- package/dist/chunks/{models-dev-647967zt.js → models-dev-wh5jxp3t.js} +10 -10
- package/dist/chunks/{models-dev-55gcgw3e.js → models-dev-wwzpy5az.js} +20 -20
- package/dist/chunks/{models-dev-v8w8krek.js → models-dev-xcqtwf8k.js} +11 -11
- package/dist/chunks/{models-dev-ydd0n9pq.js → models-dev-xfbgawb1.js} +1 -1
- package/dist/chunks/{models-dev-k8e7ekdf.js → models-dev-xfmbje2f.js} +3 -3
- package/dist/chunks/{models-dev-9cmzbzxt.js → models-dev-xjg855ze.js} +19 -19
- package/dist/chunks/{models-dev-s7w1n9db.js → models-dev-xsrwpwr1.js} +24 -24
- package/dist/chunks/models-dev-y4h261y3.js +253 -0
- package/dist/chunks/{models-dev-1pwmnsys.js → models-dev-y4n4c0dd.js} +28 -28
- package/dist/chunks/{models-dev-rt3hmfjg.js → models-dev-y9s9xvs6.js} +7 -7
- package/dist/chunks/{models-dev-6m0bz93p.js → models-dev-yjqf8yma.js} +14 -14
- package/dist/chunks/{models-dev-e8v4tyd8.js → models-dev-ym59rfmj.js} +6 -6
- package/dist/chunks/{models-dev-8n69n882.js → models-dev-yvvvp4gn.js} +3 -3
- package/dist/chunks/{models-dev-18vazzn9.js → models-dev-z0mn02tj.js} +8 -8
- package/dist/chunks/{models-dev-qrsmaxpv.js → models-dev-z1bdek5p.js} +9 -9
- package/dist/chunks/{models-dev-7r5hmjg5.js → models-dev-z9b11dw0.js} +5 -5
- package/dist/chunks/{models-dev-d55j8a6m.js → models-dev-zmzf6gpz.js} +9 -9
- package/dist/chunks/{models-dev-jd32emjx.js → models-dev-zpywvqex.js} +8 -8
- package/dist/chunks/{models-dev-db2wf4at.js → models-dev-zw2hpfmh.js} +3 -3
- package/dist/chunks/{models-dev-mqr0et5e.js → models-dev-zyq7fnpt.js} +16 -16
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +65 -65
- package/dist/config/discovery.js +55 -55
- package/dist/config/normalize.js +70 -70
- package/dist/config/plugin/agent.js +82 -82
- package/dist/config/plugin/command.js +161 -161
- package/dist/config/plugin/compaction.js +112 -112
- package/dist/config/plugin/compatibility.js +96 -96
- package/dist/config/plugin/formatter.js +82 -82
- package/dist/config/plugin/image.js +82 -82
- package/dist/config/plugin/instruction.js +60 -60
- package/dist/config/plugin/location-watcher.js +84 -84
- package/dist/config/plugin/mcp.js +90 -90
- package/dist/config/plugin/policy.js +82 -82
- package/dist/config/plugin/provider.js +82 -82
- package/dist/config/plugin/reference.js +83 -83
- package/dist/config/plugin/shell.js +82 -82
- package/dist/config/plugin/skill-file.js +70 -70
- package/dist/config/plugin/skill.js +97 -97
- package/dist/config/plugin/snapshot.js +82 -82
- package/dist/config/plugin/source.js +83 -83
- package/dist/config/plugin/tool-output.js +83 -83
- package/dist/config/plugin/websearch.js +81 -81
- package/dist/config/plugin/worktree.js +80 -80
- package/dist/config.js +88 -88
- package/dist/credential.js +62 -62
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +40 -40
- package/dist/database/migration.js +42 -42
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +225 -225
- package/dist/environment/environment.js +60 -60
- package/dist/environment/index.js +60 -60
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +73 -73
- package/dist/file-mutation.js +63 -63
- package/dist/filesystem/location-watcher.js +175 -175
- package/dist/filesystem/search.js +67 -67
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +70 -70
- package/dist/form.js +67 -67
- package/dist/formatter.js +60 -60
- package/dist/generate.js +73 -73
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +71 -71
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +299 -299
- package/dist/instruction-discovery.js +63 -63
- package/dist/instructions/builtins.js +59 -59
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +66 -66
- package/dist/job.js +58 -58
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +49 -49
- package/dist/location-lifecycle.js +76 -76
- package/dist/location-service-map.js +59 -59
- package/dist/location-services.js +297 -297
- package/dist/location.js +54 -54
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +15 -15
- package/dist/mcp/index.js +78 -78
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +59 -59
- package/dist/modal/models.js +71 -71
- package/dist/model-resolver.js +70 -70
- package/dist/model.js +70 -70
- package/dist/models-dev.js +76 -76
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +80 -80
- package/dist/persistent-pty/index.js +67 -67
- package/dist/persistent-pty.js +55 -55
- package/dist/plugin/agent.js +56 -56
- package/dist/plugin/command.js +69 -69
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +167 -167
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +271 -271
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +67 -67
- package/dist/plugin/module.js +80 -80
- package/dist/plugin/plan.js +71 -71
- package/dist/plugin/provider/amazon-bedrock.js +62 -62
- package/dist/plugin/provider/azure.js +81 -81
- package/dist/plugin/provider/chatgpt.js +82 -82
- package/dist/plugin/provider/cloudflare-ai-gateway.js +80 -80
- package/dist/plugin/provider/cloudflare-workers-ai.js +80 -80
- package/dist/plugin/provider/configured.js +79 -79
- package/dist/plugin/provider/digitalocean.js +64 -64
- package/dist/plugin/provider/github-copilot.js +67 -67
- package/dist/plugin/provider/gitlab.js +64 -64
- package/dist/plugin/provider/google-vertex.js +80 -80
- package/dist/plugin/provider/llmgateway.js +59 -59
- package/dist/plugin/provider/lmstudio.js +91 -91
- package/dist/plugin/provider/local.js +88 -88
- package/dist/plugin/provider/modal.js +64 -64
- package/dist/plugin/provider/ollama.js +89 -89
- package/dist/plugin/provider/openai.js +82 -82
- package/dist/plugin/provider/opencode.js +67 -67
- package/dist/plugin/provider/openrouter.js +63 -63
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/sap-ai-core.js +62 -62
- package/dist/plugin/provider/snowflake-cortex.js +81 -81
- package/dist/plugin/provider/vercel.js +62 -62
- package/dist/plugin/provider/vllm.js +91 -91
- package/dist/plugin/provider/xai.js +63 -63
- package/dist/plugin/provider.js +126 -126
- package/dist/plugin/sdk.js +57 -57
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +97 -97
- package/dist/plugin/supervisor.js +286 -286
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +59 -59
- package/dist/plugin/vcs/hg.js +59 -59
- package/dist/plugin/verbosity.js +65 -65
- package/dist/plugin/warming.js +81 -81
- 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 +174 -174
- package/dist/project.js +53 -53
- package/dist/provider.js +69 -69
- package/dist/pty.js +65 -65
- package/dist/reference/instructions.js +63 -63
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +57 -57
- package/dist/ripgrep/binary.js +1 -1
- package/dist/ripgrep.js +64 -64
- package/dist/rpc.js +59 -59
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +96 -96
- package/dist/session/context.js +115 -115
- package/dist/session/diff.js +59 -59
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +107 -107
- package/dist/session/execution.js +93 -93
- package/dist/session/generate.js +116 -116
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +65 -65
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +58 -58
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +67 -67
- package/dist/session/model-request.js +85 -85
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +94 -94
- package/dist/session/projector.js +60 -60
- package/dist/session/prompt.js +74 -74
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +61 -61
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +174 -174
- package/dist/session/runner/model.js +70 -70
- package/dist/session/runner/publish-llm-event.js +80 -80
- package/dist/session/runner/step.js +88 -88
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +124 -124
- package/dist/session/shell.js +96 -96
- package/dist/session/skill.js +74 -74
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +158 -158
- package/dist/session/title.js +118 -118
- package/dist/session/to-session-error.js +79 -79
- package/dist/session/transfer.js +101 -101
- package/dist/session.js +169 -169
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +14 -14
- package/dist/shell.js +97 -97
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +76 -76
- package/dist/skill.js +79 -79
- package/dist/snapshot.js +64 -64
- package/dist/tool/mcp.js +89 -89
- package/dist/tool/plugin/edit.js +84 -84
- package/dist/tool/plugin/glob.js +88 -88
- package/dist/tool/plugin/grep.js +88 -88
- package/dist/tool/plugin/mcp-resource.js +82 -82
- package/dist/tool/plugin/opencode.js +75 -75
- package/dist/tool/plugin/patch.js +86 -86
- package/dist/tool/plugin/question.js +72 -72
- package/dist/tool/plugin/read.js +89 -89
- package/dist/tool/plugin/shell.js +162 -162
- package/dist/tool/plugin/skill.js +82 -82
- package/dist/tool/plugin/subagent.js +169 -169
- package/dist/tool/plugin/webfetch.js +79 -79
- package/dist/tool/plugin/websearch.js +80 -80
- package/dist/tool/plugin/write.js +86 -86
- package/dist/tool/read-filesystem.js +64 -64
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- 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 +63 -63
- 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 +63 -63
- package/dist/vcs.js +62 -62
- package/dist/websearch.js +59 -59
- package/dist/wellknown/plugin.js +57 -57
- package/dist/wellknown.js +62 -62
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +64 -64
- package/dist/worktree/strategies.js +60 -60
- package/dist/worktree.js +62 -62
- package/package.json +8 -8
- package/dist/chunks/models-dev-17ycsp3w.js +0 -26
- package/dist/chunks/models-dev-f5tf24pd.js +0 -253
- /package/dist/chunks/{models-dev-38adaqc0.js → models-dev-3tt1qkhr.js} +0 -0
- /package/dist/chunks/{models-dev-ayxtq27e.js → models-dev-bggdt6jp.js} +0 -0
- /package/dist/chunks/{models-dev-pyg4v0b6.js → models-dev-c6bnrspk.js} +0 -0
- /package/dist/chunks/{models-dev-mv5c0h3x.js → models-dev-d9jtx293.js} +0 -0
- /package/dist/chunks/{models-dev-91qna3x0.js → models-dev-j09zfasm.js} +0 -0
- /package/dist/chunks/{models-dev-aqq7qq15.js → models-dev-w6082x2g.js} +0 -0
|
@@ -5,27 +5,27 @@ import {
|
|
|
5
5
|
diffByKey2
|
|
6
6
|
} from "./models-dev-eaj1djv9.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID12,
|
|
9
9
|
Name2,
|
|
10
10
|
available3,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./models-dev-
|
|
11
|
+
Service75,
|
|
12
|
+
node79
|
|
13
|
+
} from "./models-dev-k6ysx7ta.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./models-dev-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/skill/instructions.ts
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
Service: () =>
|
|
22
|
-
SkillInstructions: () =>
|
|
23
|
-
node: () =>
|
|
19
|
+
var exports_instructions3 = {};
|
|
20
|
+
__export(exports_instructions3, {
|
|
21
|
+
Service: () => Service33,
|
|
22
|
+
SkillInstructions: () => exports_instructions3,
|
|
23
|
+
node: () => node36
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
27
|
var Summary = Schema.Struct({
|
|
28
|
-
id:
|
|
28
|
+
id: ID12,
|
|
29
29
|
name: Name2,
|
|
30
30
|
description: Schema.String
|
|
31
31
|
});
|
|
@@ -60,11 +60,11 @@ var update = (previous, current) => {
|
|
|
60
60
|
`);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
class
|
|
63
|
+
class Service33 extends Context.Service()("@opencode/SkillInstructions") {
|
|
64
64
|
}
|
|
65
|
-
var layer = Layer.effect(
|
|
66
|
-
const skills = yield*
|
|
67
|
-
return
|
|
65
|
+
var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
66
|
+
const skills = yield* Service75;
|
|
67
|
+
return Service33.of({
|
|
68
68
|
load: Effect.fn("SkillInstructions.load")(function* (permissions) {
|
|
69
69
|
const available = available3(yield* skills.list(), permissions).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
70
70
|
return make21({
|
|
@@ -80,6 +80,6 @@ var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
82
|
}));
|
|
83
|
-
var
|
|
83
|
+
var node36 = makeLocationNode({ service: Service33, layer, deps: [node79] });
|
|
84
84
|
|
|
85
|
-
export {
|
|
85
|
+
export { Service33, node36, exports_instructions3 };
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./models-dev-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
Service46,
|
|
8
8
|
node49
|
|
9
|
-
} from "./models-dev-
|
|
9
|
+
} from "./models-dev-e8tkc3qk.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./models-dev-
|
|
12
|
+
} from "./models-dev-maspj1v3.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -20,8 +20,8 @@ __export(exports_ripgrep, {
|
|
|
20
20
|
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service20,
|
|
24
|
+
node: () => node22
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/process";
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service20 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
63
|
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service46;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -92,7 +92,7 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
93
|
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service20.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node22 = makeLocationNode({ service: Service20, layer, deps: [node49, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export { Error2, InvalidPatternError2,
|
|
180
|
+
export { Error2, InvalidPatternError2, Service20, node22, exports_ripgrep };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Plugin4
|
|
3
|
+
} from "./models-dev-y9s9xvs6.js";
|
|
4
|
+
import {
|
|
5
|
+
Plugin6
|
|
6
|
+
} from "./models-dev-ktzky0j0.js";
|
|
7
|
+
import {
|
|
8
|
+
Plugin7
|
|
9
|
+
} from "./models-dev-0c77cqtw.js";
|
|
10
|
+
import {
|
|
11
|
+
Plugin5
|
|
12
|
+
} from "./models-dev-v1aj2m8y.js";
|
|
13
|
+
import {
|
|
14
|
+
Plugin9
|
|
15
|
+
} from "./models-dev-gaagjm2t.js";
|
|
16
|
+
|
|
17
|
+
// src/plugin/websearch/index.ts
|
|
18
|
+
var WebSearchPlugins2 = [
|
|
19
|
+
Plugin4,
|
|
20
|
+
Plugin6,
|
|
21
|
+
Plugin7,
|
|
22
|
+
Plugin5,
|
|
23
|
+
Plugin9
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export { WebSearchPlugins2 };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./models-dev-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./models-dev-
|
|
5
|
+
ID4,
|
|
6
|
+
Service45
|
|
7
|
+
} from "./models-dev-cedw1as4.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./models-dev-
|
|
10
|
+
} from "./models-dev-48kw51zw.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./models-dev-
|
|
13
|
+
} from "./models-dev-twwzjqdf.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./models-dev-es1vcfrp.js";
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service45;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID4.make(from),
|
|
91
|
+
to: ID4.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./models-dev-
|
|
2
|
+
Service59,
|
|
3
|
+
node61
|
|
4
|
+
} from "./models-dev-gvmpqvya.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./models-dev-
|
|
6
|
+
Service27,
|
|
7
|
+
node30
|
|
8
|
+
} from "./models-dev-20y73wgn.js";
|
|
9
9
|
import {
|
|
10
10
|
text2,
|
|
11
11
|
deliver2
|
|
@@ -26,8 +26,8 @@ import { Node } from "@opencode/util/effect/app-node";
|
|
|
26
26
|
class Service13 extends Context.Service()("@opencode/SubagentJob") {
|
|
27
27
|
}
|
|
28
28
|
var make = Effect.gen(function* () {
|
|
29
|
-
const sessions = yield*
|
|
30
|
-
const jobs = yield*
|
|
29
|
+
const sessions = yield* Service27;
|
|
30
|
+
const jobs = yield* Service59;
|
|
31
31
|
const scope = yield* Scope.Scope;
|
|
32
32
|
const context = yield* Effect.context();
|
|
33
33
|
const notifications = new Set;
|
|
@@ -67,7 +67,7 @@ var make = Effect.gen(function* () {
|
|
|
67
67
|
var node15 = Node.makeGlobalNode({
|
|
68
68
|
service: Service13,
|
|
69
69
|
layer: Layer.effect(Service13, make),
|
|
70
|
-
deps: [
|
|
70
|
+
deps: [node30, node61]
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
export { Service13, node15, exports_subagent_job };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./models-dev-
|
|
2
|
+
ID6
|
|
3
|
+
} from "./models-dev-fdkb9ec3.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 [ID6.make("gpt-5-chat-latest"), ID6.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) => {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./models-dev-
|
|
4
|
+
} from "./models-dev-6f60r94z.js";
|
|
5
5
|
import {
|
|
6
6
|
Service84,
|
|
7
7
|
node88
|
|
8
|
-
} from "./models-dev-
|
|
8
|
+
} from "./models-dev-hpa38nzs.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
11
|
} from "./models-dev-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./models-dev-
|
|
13
|
+
ID16,
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./models-dev-bky1yqwv.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
19
|
} from "./models-dev-2vvh33eb.js";
|
|
20
20
|
import {
|
|
21
21
|
Service68,
|
|
22
|
-
|
|
23
|
-
} from "./models-dev-
|
|
22
|
+
node71
|
|
23
|
+
} from "./models-dev-fdkb9ec3.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
26
|
} from "./models-dev-h6vf3j39.js";
|
|
@@ -32,24 +32,24 @@ import {
|
|
|
32
32
|
compatible2,
|
|
33
33
|
isCheckpoint2,
|
|
34
34
|
encode2
|
|
35
|
-
} from "./models-dev-
|
|
35
|
+
} from "./models-dev-gw7cjrad.js";
|
|
36
36
|
import {
|
|
37
37
|
load5
|
|
38
|
-
} from "./models-dev-
|
|
38
|
+
} from "./models-dev-38ae7j5t.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./models-dev-
|
|
41
|
+
} from "./models-dev-7zt5x37y.js";
|
|
42
42
|
import {
|
|
43
43
|
baseTranscript2,
|
|
44
44
|
unsupportedParts2,
|
|
45
45
|
boundImages2,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from "./models-dev-
|
|
46
|
+
Service37,
|
|
47
|
+
node40
|
|
48
|
+
} from "./models-dev-5cr9rfmm.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} from "./models-dev-
|
|
50
|
+
Service58,
|
|
51
|
+
node60
|
|
52
|
+
} from "./models-dev-qm5jr2ty.js";
|
|
53
53
|
import {
|
|
54
54
|
isRetryable2,
|
|
55
55
|
policy2
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
toSessionError2,
|
|
59
59
|
contentFilterError2
|
|
60
|
-
} from "./models-dev-
|
|
60
|
+
} from "./models-dev-z9b11dw0.js";
|
|
61
61
|
import {
|
|
62
62
|
calculateCost2,
|
|
63
63
|
record2,
|
|
@@ -70,13 +70,13 @@ import {
|
|
|
70
70
|
// src/session/compaction.ts
|
|
71
71
|
var exports_compaction2 = {};
|
|
72
72
|
__export(exports_compaction2, {
|
|
73
|
-
Service: () =>
|
|
73
|
+
Service: () => Service10,
|
|
74
74
|
SessionCompaction: () => exports_compaction2,
|
|
75
75
|
buildPrompt: () => buildPrompt2,
|
|
76
76
|
estimateContext: () => estimateContext2,
|
|
77
77
|
estimatePrompt: () => estimatePrompt2,
|
|
78
|
-
layer: () =>
|
|
79
|
-
node: () =>
|
|
78
|
+
layer: () => layer7,
|
|
79
|
+
node: () => node12,
|
|
80
80
|
recentUserMessages: () => recentUserMessages2
|
|
81
81
|
});
|
|
82
82
|
import {
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "@opencode/ai";
|
|
93
93
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
94
94
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
95
|
-
class
|
|
95
|
+
class Service10 extends Context.Service()("@opencode/SessionCompaction") {
|
|
96
96
|
}
|
|
97
97
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
98
98
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -171,14 +171,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
171
171
|
};
|
|
172
172
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
173
173
|
var LEGACY_HEADING = "## Additional Context";
|
|
174
|
-
var
|
|
175
|
-
const agents = yield*
|
|
174
|
+
var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
175
|
+
const agents = yield* Service80;
|
|
176
176
|
const bus = yield* Service84;
|
|
177
177
|
const llm = yield* LLMClient.Service;
|
|
178
178
|
const catalog = yield* Service68;
|
|
179
|
-
const models = yield*
|
|
179
|
+
const models = yield* Service58;
|
|
180
180
|
const db = (yield* Service85).db;
|
|
181
|
-
const requests = yield*
|
|
181
|
+
const requests = yield* Service37;
|
|
182
182
|
const state = create3({
|
|
183
183
|
name: "session-compaction",
|
|
184
184
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -196,7 +196,7 @@ var layer8 = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
196
196
|
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
197
197
|
return { status: "skipped" };
|
|
198
198
|
const native = context.model.compaction?.type === "native";
|
|
199
|
-
const agent = native ? undefined : yield* agents.get(
|
|
199
|
+
const agent = native ? undefined : yield* agents.get(ID16.make("compaction"));
|
|
200
200
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
201
201
|
return;
|
|
202
202
|
})))) ?? context.model;
|
|
@@ -472,16 +472,16 @@ ${text}`;
|
|
|
472
472
|
}, { metadata: outcome.metadata });
|
|
473
473
|
return { status: "completed" };
|
|
474
474
|
});
|
|
475
|
-
return
|
|
475
|
+
return Service10.of({
|
|
476
476
|
transform: state.transform,
|
|
477
477
|
reload: state.reload,
|
|
478
478
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
479
479
|
});
|
|
480
480
|
}));
|
|
481
|
-
var
|
|
482
|
-
service:
|
|
483
|
-
layer:
|
|
484
|
-
deps: [
|
|
481
|
+
var node12 = makeLocationNode({
|
|
482
|
+
service: Service10,
|
|
483
|
+
layer: layer7,
|
|
484
|
+
deps: [node84, node88, node89, llmClient2, node71, node40, node60]
|
|
485
485
|
});
|
|
486
486
|
var previousCompaction = (messages) => {
|
|
487
487
|
const [first] = messages;
|
|
@@ -686,4 +686,4 @@ var estimateMedia = (mime) => {
|
|
|
686
686
|
return 0;
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
export {
|
|
689
|
+
export { Service10, buildPrompt2, layer7, node12, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./models-dev-
|
|
2
|
+
Service51
|
|
3
|
+
} from "./models-dev-xjg855ze.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./models-dev-
|
|
5
|
+
Service50
|
|
6
|
+
} from "./models-dev-7mjqmdtc.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./models-dev-
|
|
9
|
+
} from "./models-dev-ce0wjd2x.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./models-dev-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: () => Plugin42
|
|
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 Plugin42 = define({
|
|
25
25
|
id: "opencode.config.compatibility",
|
|
26
26
|
effect: Effect.fn(function* (ctx) {
|
|
27
|
-
const config = yield*
|
|
27
|
+
const config = yield* Service50;
|
|
28
28
|
const fs = yield* FSUtil.Service;
|
|
29
|
-
const watcher = yield*
|
|
29
|
+
const watcher = yield* Service51;
|
|
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 Plugin37 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Plugin42, exports_compatibility };
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./models-dev-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./models-dev-
|
|
6
|
+
Service50
|
|
7
|
+
} from "./models-dev-7mjqmdtc.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
10
|
} from "./models-dev-hgz4x7wa.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./models-dev-
|
|
12
|
+
Service46
|
|
13
|
+
} from "./models-dev-e8tkc3qk.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./models-dev-
|
|
15
|
+
Service59
|
|
16
|
+
} from "./models-dev-gvmpqvya.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./models-dev-
|
|
18
|
+
Service76
|
|
19
|
+
} from "./models-dev-1zzep20k.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service66,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./models-dev-
|
|
23
|
+
} from "./models-dev-3711sgqg.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
notification2
|
|
29
29
|
} from "./models-dev-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service44,
|
|
32
32
|
name15
|
|
33
|
-
} from "./models-dev-
|
|
33
|
+
} from "./models-dev-9p0xfm4a.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
35
|
+
NotFoundError6,
|
|
36
36
|
Service42
|
|
37
|
-
} from "./models-dev-
|
|
37
|
+
} from "./models-dev-qa0fzn5w.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./models-dev-
|
|
39
|
+
Service27
|
|
40
|
+
} from "./models-dev-20y73wgn.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./models-dev-
|
|
43
|
+
} from "./models-dev-93m7ndqx.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
46
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -50,7 +50,7 @@ var exports_shell = {};
|
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
52
|
Input: () => Input4,
|
|
53
|
-
Plugin: () =>
|
|
53
|
+
Plugin: () => Plugin22,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
55
|
name: () => name4
|
|
56
56
|
});
|
|
@@ -117,19 +117,19 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin22 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
|
-
const sessions = yield*
|
|
124
|
-
const jobs = yield*
|
|
123
|
+
const sessions = yield* Service27;
|
|
124
|
+
const jobs = yield* Service59;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
127
|
-
const access = yield*
|
|
126
|
+
const environment = yield* Service46;
|
|
127
|
+
const access = yield* Service66;
|
|
128
128
|
const shell = yield* Service42;
|
|
129
|
-
const shellSelect = yield*
|
|
129
|
+
const shellSelect = yield* Service44;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
132
|
-
const config = yield*
|
|
131
|
+
const permission = yield* Service76;
|
|
132
|
+
const config = yield* Service50;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
135
135
|
type: "tool",
|
|
@@ -211,7 +211,7 @@ var Plugin5 = {
|
|
|
211
211
|
const run = Effect.gen(function* () {
|
|
212
212
|
const result = yield* shell.result(info);
|
|
213
213
|
if (!result.capture)
|
|
214
|
-
return yield* new
|
|
214
|
+
return yield* new NotFoundError6({ id: info.id });
|
|
215
215
|
const output = output2(result);
|
|
216
216
|
return {
|
|
217
217
|
...output,
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export { name4, DEFAULT_TIMEOUT_MS2, Input4,
|
|
269
|
+
export { name4, DEFAULT_TIMEOUT_MS2, Input4, Plugin22, exports_shell };
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./models-dev-tazgh4e4.js";
|
|
11
11
|
import {
|
|
12
12
|
Service81
|
|
13
|
-
} from "./models-dev-
|
|
13
|
+
} from "./models-dev-hzphjpmd.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./models-dev-
|
|
16
|
+
} from "./models-dev-7z5rppbg.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin3,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,7 +30,7 @@ import { ChildProcess } from "effect/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin3 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
36
|
const location = yield* Service81;
|
|
@@ -198,4 +198,4 @@ function makeHg(proc, worktree) {
|
|
|
198
198
|
return { status, diff, branch, ancestor, cat };
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export {
|
|
201
|
+
export { Plugin3, exports_hg };
|