@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
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./models-dev-
|
|
3
|
+
} from "./models-dev-hpa38nzs.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./models-dev-
|
|
6
|
+
} from "./models-dev-zw2hpfmh.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./models-dev-
|
|
8
|
+
Event16
|
|
9
|
+
} from "./models-dev-az0s1ab0.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./models-dev-
|
|
11
|
+
ID8
|
|
12
|
+
} from "./models-dev-bvnvcshr.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./models-dev-
|
|
14
|
+
ID7,
|
|
15
|
+
Service70
|
|
16
|
+
} from "./models-dev-1kzng4v9.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./models-dev-
|
|
18
|
+
load2,
|
|
19
|
+
derive2
|
|
20
|
+
} from "./models-dev-m92ve9wx.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID7.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
29
|
+
const providers = yield* Service70;
|
|
30
30
|
const bus = yield* Service84;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load2(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive2(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID8.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service81,
|
|
6
6
|
node85
|
|
7
|
-
} from "./models-dev-
|
|
7
|
+
} from "./models-dev-hzphjpmd.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./models-dev-
|
|
9
|
+
Service20,
|
|
10
|
+
node22
|
|
11
|
+
} from "./models-dev-3af8jha9.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -22,11 +22,11 @@ var exports_search = {};
|
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
24
|
Options: () => Options2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service17,
|
|
26
26
|
configured: () => configured2,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer10,
|
|
29
|
+
node: () => node19,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ var Options2 = Schema.Struct({
|
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service17 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
62
62
|
const location = yield* Service81;
|
|
63
|
-
const ripgrep = yield*
|
|
63
|
+
const ripgrep = yield* Service20;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,14 +105,14 @@ var ripgrepLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service17.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
115
|
+
var fffLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
116
116
|
const location = yield* Service81;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service17.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service17.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,7 +174,7 @@ var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
177
|
+
var layer10 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
178
|
const location = yield* Service81;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
@@ -183,8 +183,8 @@ var layer9 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
185
|
function configured2(options) {
|
|
186
|
-
return makeLocationNode({ service:
|
|
186
|
+
return makeLocationNode({ service: Service17, layer: layer10(options), deps: [node85, node22] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node19 = configured2();
|
|
189
189
|
|
|
190
|
-
export { Options2,
|
|
190
|
+
export { Options2, Service17, ripgrepLayer2, fffLayer2, layer10, configured2, node19, exports_search };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./models-dev-
|
|
3
|
+
} from "./models-dev-rek66y3z.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./models-dev-
|
|
6
|
+
} from "./models-dev-bjx1sjef.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/parallel.ts
|
|
12
12
|
var exports_parallel = {};
|
|
13
13
|
__export(exports_parallel, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin7,
|
|
15
15
|
WebSearchParallel: () => exports_parallel,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint5 = "https://search.parallel.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
objective: Schema.String,
|
|
24
24
|
search_queries: Schema.Array(Schema.String),
|
|
@@ -47,7 +47,7 @@ var McpOutput = Schema.Struct({
|
|
|
47
47
|
content: Schema.Array(Schema.Struct({ type: Schema.Literal("text"), text: Schema.String })),
|
|
48
48
|
structuredContent: SearchResponse
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Plugin7 = define({
|
|
51
51
|
id: "opencode.websearch.parallel",
|
|
52
52
|
effect: Effect.fn("WebSearchParallel.Plugin")(function* (ctx) {
|
|
53
53
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -69,7 +69,7 @@ var Plugin20 = define({
|
|
|
69
69
|
execute: (input) => Effect.gen(function* () {
|
|
70
70
|
const connection = yield* ctx.integration.connection.active("parallel");
|
|
71
71
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
72
|
-
const result = yield* call2(http,
|
|
72
|
+
const result = yield* call2(http, endpoint5, "web_search", { input: McpInput, output: McpOutput }, {
|
|
73
73
|
objective: input.query,
|
|
74
74
|
search_queries: [input.query]
|
|
75
75
|
}, {
|
|
@@ -93,4 +93,4 @@ var Plugin20 = define({
|
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { endpoint5, Plugin7, exports_parallel };
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
} from "./models-dev-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
8
|
Service81
|
|
9
|
-
} from "./models-dev-
|
|
9
|
+
} from "./models-dev-hzphjpmd.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./models-dev-
|
|
11
|
+
Service46
|
|
12
|
+
} from "./models-dev-e8tkc3qk.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./models-dev-
|
|
14
|
+
Service20
|
|
15
|
+
} from "./models-dev-3af8jha9.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./models-dev-
|
|
21
|
+
} from "./models-dev-h0q4qrbw.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./models-dev-
|
|
23
|
+
Service76
|
|
24
|
+
} from "./models-dev-1zzep20k.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./models-dev-
|
|
26
|
+
Service66
|
|
27
|
+
} from "./models-dev-3711sgqg.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input6,
|
|
37
|
+
Output: () => Output4,
|
|
38
|
+
Plugin: () => Plugin24,
|
|
39
|
+
name: () => name6,
|
|
40
|
+
toModelContent: () => toModelContent5
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name6 = "glob";
|
|
46
|
+
var Input6 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input10 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output4 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent5 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin24 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
69
|
+
const environment = yield* Service46;
|
|
70
|
+
const ripgrep = yield* Service20;
|
|
71
71
|
const location = yield* Service81;
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
72
|
+
const access = yield* Service66;
|
|
73
|
+
const permission = yield* Service76;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name6,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input6,
|
|
79
|
+
output: Output4,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name6,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin12 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent5(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name6, Input6, Output4, toModelContent5, Plugin24, exports_glob };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./models-dev-
|
|
3
|
+
} from "./models-dev-rek66y3z.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./models-dev-
|
|
6
|
+
Service72
|
|
7
|
+
} from "./models-dev-az0s1ab0.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID8,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./models-dev-
|
|
11
|
+
} from "./models-dev-bvnvcshr.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID7,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./models-dev-
|
|
15
|
+
} from "./models-dev-1kzng4v9.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID7.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID8.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -69,8 +69,8 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service72;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID8.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_managed_policy = {};
|
|
10
10
|
__export(exports_managed_policy, {
|
|
11
11
|
ManagedPolicy: () => exports_managed_policy,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service15,
|
|
13
13
|
decision: () => decision2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
node: () =>
|
|
14
|
+
layer: () => layer9,
|
|
15
|
+
node: () => node17,
|
|
16
16
|
statements: () => statements2
|
|
17
17
|
});
|
|
18
18
|
import { isDeepStrictEqual } from "node:util";
|
|
19
19
|
import { Context, Effect, Layer, PubSub, Stream } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Service15 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var layer9 = Layer.effect(Service15, Effect.gen(function* () {
|
|
25
25
|
const changes = yield* PubSub.unbounded();
|
|
26
26
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
27
|
+
return Service15.of({
|
|
28
28
|
changes: () => Stream.fromPubSub(changes),
|
|
29
29
|
current: () => state.current,
|
|
30
30
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,7 +36,7 @@ var layer21 = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
39
|
+
var node17 = makeGlobalNode({ service: Service15, layer: layer9, deps: [] });
|
|
40
40
|
function statements2(entries, organization) {
|
|
41
41
|
return [
|
|
42
42
|
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.experimental?.policies ?? []).map((policy) => ({ ...policy, message: "Blocked by configuration policy" })),
|
|
@@ -50,4 +50,4 @@ function decision2(policies, action, resource) {
|
|
|
50
50
|
return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service15, layer9, node17, statements2, decision2, exports_managed_policy };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./models-dev-
|
|
3
|
+
} from "./models-dev-hpa38nzs.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./models-dev-
|
|
5
|
+
ID9,
|
|
6
|
+
Event16,
|
|
7
|
+
Service72
|
|
8
|
+
} from "./models-dev-az0s1ab0.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./models-dev-
|
|
10
|
+
ID7
|
|
11
|
+
} from "./models-dev-1kzng4v9.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./models-dev-
|
|
14
|
+
} from "./models-dev-w0k2ty99.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,7 +41,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
44
|
+
const credentials = yield* Service72;
|
|
45
45
|
const bus = yield* Service84;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
51
51
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
52
52
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
53
53
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
54
|
-
const configured = (yield* configuredSettings2(
|
|
54
|
+
const configured = (yield* configuredSettings2(ID7.googleVertex)) ?? {};
|
|
55
55
|
const projects = Array.from(new Set([
|
|
56
56
|
resolveProject(configured),
|
|
57
57
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -65,8 +65,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
65
65
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
66
66
|
]));
|
|
67
67
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
68
|
-
const connection = yield* ctx.integration.connection.active(
|
|
69
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
68
|
+
const connection = yield* ctx.integration.connection.active(ID7.googleVertex);
|
|
69
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID9.make(connection.id)) : undefined;
|
|
70
70
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
71
71
|
return {};
|
|
72
72
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
74
74
|
const selected = { settings: yield* load() };
|
|
75
75
|
const settingsFor = (provider) => ({
|
|
76
76
|
...provider.settings,
|
|
77
|
-
...(provider.integrationID ?? provider.id) ===
|
|
77
|
+
...(provider.integrationID ?? provider.id) === ID7.googleVertex ? selected.settings : {}
|
|
78
78
|
});
|
|
79
79
|
yield* ctx.integration.transform((editor) => {
|
|
80
80
|
editor.method.update({
|
|
81
|
-
integrationID:
|
|
81
|
+
integrationID: ID7.googleVertex,
|
|
82
82
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
83
83
|
});
|
|
84
84
|
editor.method.update({
|
|
85
|
-
integrationID:
|
|
85
|
+
integrationID: ID7.googleVertex,
|
|
86
86
|
method: {
|
|
87
87
|
id: ADC_METHOD,
|
|
88
88
|
type: "external",
|
|
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
120
120
|
});
|
|
121
121
|
yield* ctx.provider.transform((evt) => {
|
|
122
122
|
for (const item of evt.list()) {
|
|
123
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
123
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID7.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
124
124
|
continue;
|
|
125
125
|
const settings = settingsFor(item.provider);
|
|
126
126
|
const project = resolveProject(settings);
|
|
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
139
139
|
});
|
|
140
140
|
yield* ctx.model.transform((models) => {
|
|
141
141
|
for (const item of models.provider.list()) {
|
|
142
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
142
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID7.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
143
143
|
continue;
|
|
144
144
|
const settings = settingsFor(item.provider);
|
|
145
145
|
const project = resolveProject(settings);
|
|
@@ -156,7 +156,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
yield* bus.subscribe([
|
|
159
|
+
yield* bus.subscribe([Event16.Updated, Event16.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
160
160
|
const next = yield* load();
|
|
161
161
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
162
162
|
return;
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
} from "./models-dev-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
17
|
+
var exports_instructions5 = {};
|
|
18
|
+
__export(exports_instructions5, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions5,
|
|
20
20
|
make: () => make14,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
@@ -125,4 +125,4 @@ var make14 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render2, update3, make14,
|
|
128
|
+
export { render2, update3, make14, exports_instructions5 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./models-dev-
|
|
2
|
+
ID7
|
|
3
|
+
} from "./models-dev-1kzng4v9.js";
|
|
4
4
|
import {
|
|
5
5
|
iife2
|
|
6
6
|
} from "./models-dev-1kg9ymc8.js";
|
|
7
7
|
import {
|
|
8
8
|
configuredSettings2
|
|
9
|
-
} from "./models-dev-
|
|
9
|
+
} from "./models-dev-w0k2ty99.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
14
14
|
import { Form } from "@opencode/schema/form";
|
|
15
|
-
var providerID =
|
|
15
|
+
var providerID = ID7.make("cloudflare-workers-ai");
|
|
16
16
|
var CloudflareWorkersAIPlugin2 = define({
|
|
17
17
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|