@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,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./models-dev-
|
|
4
|
+
} from "./models-dev-hpa38nzs.js";
|
|
5
5
|
import {
|
|
6
6
|
Service81,
|
|
7
7
|
node85
|
|
8
|
-
} from "./models-dev-
|
|
8
|
+
} from "./models-dev-hzphjpmd.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
Service46,
|
|
11
11
|
node49
|
|
12
|
-
} from "./models-dev-
|
|
12
|
+
} from "./models-dev-e8tkc3qk.js";
|
|
13
13
|
import {
|
|
14
14
|
cleanup3
|
|
15
15
|
} from "./models-dev-gd4qta3r.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service44,
|
|
18
18
|
args2,
|
|
19
|
-
|
|
20
|
-
} from "./models-dev-
|
|
19
|
+
node47
|
|
20
|
+
} from "./models-dev-9p0xfm4a.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./models-dev-
|
|
22
|
+
Service79,
|
|
23
|
+
node83
|
|
24
|
+
} from "./models-dev-a2qe2ev9.js";
|
|
25
25
|
import {
|
|
26
26
|
Service43,
|
|
27
|
-
|
|
28
|
-
} from "./models-dev-
|
|
27
|
+
node46
|
|
28
|
+
} from "./models-dev-yvvvp4gn.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionSchema2
|
|
31
|
-
} from "./models-dev-
|
|
31
|
+
} from "./models-dev-48kw51zw.js";
|
|
32
32
|
import {
|
|
33
33
|
latest2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./models-dev-
|
|
34
|
+
Service50,
|
|
35
|
+
node53
|
|
36
|
+
} from "./models-dev-7mjqmdtc.js";
|
|
37
37
|
import {
|
|
38
38
|
MAX_LINES2,
|
|
39
39
|
MAX_BYTES2
|
|
40
|
-
} from "./models-dev-
|
|
40
|
+
} from "./models-dev-g8ytx0e6.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
46
|
var exports_shell4 = {};
|
|
47
47
|
__export(exports_shell4, {
|
|
48
48
|
DIRECTORY: () => DIRECTORY2,
|
|
49
|
-
NotFoundError: () =>
|
|
49
|
+
NotFoundError: () => NotFoundError6,
|
|
50
50
|
RETENTION: () => RETENTION2,
|
|
51
51
|
Service: () => Service42,
|
|
52
52
|
Shell: () => exports_shell4,
|
|
53
53
|
cleanup: () => cleanup2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node45
|
|
55
55
|
});
|
|
56
56
|
import path from "path";
|
|
57
57
|
import { Context, Deferred, Duration, Effect, Fiber, Latch, Layer, Schema, Schedule, Stream } from "effect";
|
|
@@ -63,7 +63,7 @@ import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
|
63
63
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
65
|
import { Global } from "@opencode/util/global";
|
|
66
|
-
class
|
|
66
|
+
class NotFoundError6 extends Schema.TaggedError()("Shell.NotFoundError", {
|
|
67
67
|
id: Shell.ID
|
|
68
68
|
}) {
|
|
69
69
|
}
|
|
@@ -91,11 +91,11 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
91
91
|
const bus = yield* Service84;
|
|
92
92
|
const location = yield* Service81;
|
|
93
93
|
const global = yield* Global.Service;
|
|
94
|
-
const shell = yield*
|
|
95
|
-
const environment = yield*
|
|
96
|
-
const hooks = yield*
|
|
94
|
+
const shell = yield* Service44;
|
|
95
|
+
const environment = yield* Service46;
|
|
96
|
+
const hooks = yield* Service79;
|
|
97
97
|
const environments = yield* Service43;
|
|
98
|
-
const config = yield*
|
|
98
|
+
const config = yield* Service50;
|
|
99
99
|
const context = yield* Effect.context();
|
|
100
100
|
const runFork = Effect.runForkWith(context);
|
|
101
101
|
const commands = new Map;
|
|
@@ -116,7 +116,7 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
116
116
|
const require2 = Effect.fnUntraced(function* (id) {
|
|
117
117
|
const command = commands.get(id);
|
|
118
118
|
if (!command)
|
|
119
|
-
return yield* new
|
|
119
|
+
return yield* new NotFoundError6({ id });
|
|
120
120
|
return command;
|
|
121
121
|
});
|
|
122
122
|
const removeCommand = Effect.fnUntraced(function* (id) {
|
|
@@ -129,7 +129,7 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
129
129
|
commands.delete(id);
|
|
130
130
|
if (command.timeoutFiber)
|
|
131
131
|
yield* Fiber.interrupt(command.timeoutFiber);
|
|
132
|
-
yield* Deferred.fail(command.done, new
|
|
132
|
+
yield* Deferred.fail(command.done, new NotFoundError6({ id }));
|
|
133
133
|
yield* Effect.promise(() => unlink(command.file).catch(() => {}));
|
|
134
134
|
yield* bus.publish(Shell.Event.Deleted, { id });
|
|
135
135
|
});
|
|
@@ -325,20 +325,20 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
325
325
|
});
|
|
326
326
|
return Service42.of({ create, list, get, wait, result, timeout, output, remove });
|
|
327
327
|
}));
|
|
328
|
-
var
|
|
328
|
+
var node45 = makeLocationNode({
|
|
329
329
|
service: Service42,
|
|
330
330
|
layer: layer(),
|
|
331
331
|
deps: [
|
|
332
332
|
node88,
|
|
333
333
|
node85,
|
|
334
334
|
Global.node,
|
|
335
|
-
|
|
335
|
+
node47,
|
|
336
336
|
node49,
|
|
337
|
-
|
|
338
|
-
node45,
|
|
337
|
+
node83,
|
|
339
338
|
node46,
|
|
339
|
+
node53,
|
|
340
340
|
cleanupNode
|
|
341
341
|
]
|
|
342
342
|
});
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { NotFoundError6, RETENTION2, DIRECTORY2, Service42, cleanup2, node45, exports_shell4 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./models-dev-
|
|
4
|
+
} from "./models-dev-6f60r94z.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
7
|
removed2,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info6,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service39,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node42,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info6 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,7 +56,7 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service39 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make21({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service85;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service39.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node42 = makeLocationNode({ service: Service39, layer, deps: [node89] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info6, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service39, node42, exports_instruction_entry };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./models-dev-
|
|
2
|
+
Service60,
|
|
3
|
+
node62
|
|
4
|
+
} from "./models-dev-rj9375zf.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./models-dev-
|
|
7
|
+
} from "./models-dev-48kw51zw.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -14,9 +14,9 @@ var exports_model = {};
|
|
|
14
14
|
__export(exports_model, {
|
|
15
15
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
16
16
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service58,
|
|
18
18
|
SessionRunnerModel: () => exports_model,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node60,
|
|
20
20
|
resolved: () => resolved2
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service58 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
43
43
|
}
|
|
44
44
|
var resolved2 = (model, options) => ({
|
|
45
45
|
model,
|
|
@@ -54,9 +54,9 @@ var resolved2 = (model, options) => ({
|
|
|
54
54
|
compaction: options.compaction,
|
|
55
55
|
transport: options.transport
|
|
56
56
|
});
|
|
57
|
-
var layer = Layer.effect(
|
|
58
|
-
const resolver = yield*
|
|
59
|
-
return
|
|
57
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
58
|
+
const resolver = yield* Service60;
|
|
59
|
+
return Service58.of({
|
|
60
60
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
61
61
|
if (!session.model) {
|
|
62
62
|
const resolved = yield* resolver.resolve();
|
|
@@ -74,6 +74,6 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
}));
|
|
77
|
-
var
|
|
77
|
+
var node60 = makeLocationNode({ service: Service58, layer, deps: [node62] });
|
|
78
78
|
|
|
79
|
-
export { ModelNotSelectedError2, ModelUnavailableError2,
|
|
79
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, Service58, resolved2, node60, exports_model };
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
var exports_driver = {};
|
|
7
7
|
__export(exports_driver, {
|
|
8
8
|
Binding: () => Binding2,
|
|
9
|
-
Error: () =>
|
|
9
|
+
Error: () => Error5,
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make20,
|
|
14
|
+
node: () => node78,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
20
20
|
var Binding2 = Schema.Record(Schema.String, Schema.Json);
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Error5 extends Schema.TaggedError()("WorkspaceDriver.Error", {
|
|
23
23
|
message: Schema.optional(Schema.String),
|
|
24
24
|
cause: Schema.optional(Schema.Defect())
|
|
25
25
|
}) {
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make20 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node78 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make20, RegistryService2, registry2, registryNode2, node78, exports_driver };
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service84,
|
|
4
4
|
node88
|
|
5
|
-
} from "./models-dev-
|
|
5
|
+
} from "./models-dev-hpa38nzs.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./models-dev-
|
|
7
|
+
Service69,
|
|
8
|
+
node72
|
|
9
|
+
} from "./models-dev-v05n4cdg.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -16,14 +16,14 @@ var exports_wellknown = {};
|
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event8,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service52,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node55,
|
|
26
|
+
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service52 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event8 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
57
57
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
58
58
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var resolve3 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
61
61
|
const manifest = yield* inspect2(input.origin);
|
|
62
62
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
63
63
|
});
|
|
@@ -79,9 +79,9 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
84
|
+
const kv = yield* Service69;
|
|
85
85
|
const bus = yield* Service84;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service52.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node55 = makeGlobalNode({ service: Service52, layer, deps: [httpClient, node72, node88] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service52, Event8, inspect2, resolve3, node55, exports_wellknown };
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service8,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node9
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service8 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service8.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node9 = makeGlobalNode({ service: Service8, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service8, node9, exports_discovery };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./models-dev-
|
|
2
|
+
Service50
|
|
3
|
+
} from "./models-dev-7mjqmdtc.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./models-dev-
|
|
5
|
+
Service36
|
|
6
|
+
} from "./models-dev-1zran81s.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./models-dev-9rqn6x4v.js";
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
var exports_mcp2 = {};
|
|
13
13
|
__export(exports_mcp2, {
|
|
14
14
|
ConfigMcpPlugin: () => exports_mcp2,
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin39,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin39 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service50;
|
|
28
|
+
const mcp = yield* Service36;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin39, register2, exports_mcp2 };
|
|
@@ -7,18 +7,18 @@ var exports_app = {};
|
|
|
7
7
|
__export(exports_app, {
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
|
-
configured: () =>
|
|
11
|
-
layer: () =>
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
10
|
+
configured: () => configured10,
|
|
11
|
+
layer: () => layer26,
|
|
12
|
+
make: () => make19,
|
|
13
|
+
node: () => node70,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make19()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make19(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make20(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
31
|
+
var layer26 = (input) => Layer.succeed(Metadata2, make19(input));
|
|
32
|
+
var configured10 = (input) => makeGlobalNode({ service: Metadata2, layer: layer26(input), deps: [] });
|
|
33
|
+
var node70 = configured10();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make19, useragent2, layer26, configured10, node70, exports_app };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./models-dev-
|
|
3
|
+
} from "./models-dev-xcqtwf8k.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/lmstudio.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -19,7 +19,7 @@ var RemoteModel = Schema.Struct({
|
|
|
19
19
|
}).pipe(Schema.optional)
|
|
20
20
|
});
|
|
21
21
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
22
|
-
var
|
|
22
|
+
var make6 = createLocalProviderPlugin2({
|
|
23
23
|
id: "opencode.provider.lmstudio",
|
|
24
24
|
providerID: "lmstudio",
|
|
25
25
|
name: "LM Studio",
|
|
@@ -38,6 +38,6 @@ var make5 = createLocalProviderPlugin2({
|
|
|
38
38
|
context: item.loaded_instances.length === 0 ? item.max_context_length : Math.min(...item.loaded_instances.map((instance) => instance.config.context_length))
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
var LMStudioPlugin2 =
|
|
41
|
+
var LMStudioPlugin2 = make6();
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { make6, LMStudioPlugin2 };
|