@opencode/core 2.0.30 → 2.0.32
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 +67 -67
- package/dist/aisdk-native.js +66 -66
- package/dist/aisdk.js +71 -71
- package/dist/app.js +9 -9
- package/dist/bus.js +58 -58
- package/dist/chunks/{instance-pv8bk7wt.js → instance-00hj6bjn.js} +33 -33
- package/dist/chunks/{instance-t550f9t1.js → instance-02nrjc1r.js} +7 -7
- package/dist/chunks/{instance-9vk391re.js → instance-0aedf7nq.js} +25 -25
- package/dist/chunks/instance-0e3j8fc0.js +257 -0
- package/dist/chunks/{instance-24jcxqcv.js → instance-0f5g2b67.js} +46 -46
- package/dist/chunks/{instance-ag1vmkq5.js → instance-0fhevdjt.js} +3 -3
- package/dist/chunks/{instance-vwh8akjg.js → instance-0x6zefqk.js} +4 -4
- package/dist/chunks/{instance-drnf6xwf.js → instance-127b9nq3.js} +1 -1
- package/dist/chunks/{instance-bwsrjyzy.js → instance-14q6b86s.js} +15 -15
- package/dist/chunks/{instance-9tgftdjr.js → instance-1e477vzc.js} +7 -7
- package/dist/chunks/{instance-7khw7vys.js → instance-1kn978n9.js} +43 -43
- package/dist/chunks/{instance-fxaymqdw.js → instance-1w2wqhfv.js} +3 -3
- package/dist/chunks/{instance-nz4k6rdb.js → instance-2j1fd8ns.js} +21 -21
- package/dist/chunks/{instance-7dqw4kz8.js → instance-2k8khapm.js} +4 -4
- package/dist/chunks/{instance-dhmh7aw6.js → instance-2vs2nh1n.js} +3 -3
- package/dist/chunks/{instance-krpr0985.js → instance-2wamsapc.js} +36 -26
- package/dist/chunks/{instance-e4ph37mk.js → instance-2ysm8pgm.js} +75 -53
- package/dist/chunks/{instance-j5j6nemg.js → instance-3mksxvab.js} +3 -3
- package/dist/chunks/{instance-efsrwh4r.js → instance-3x6psag0.js} +18 -18
- package/dist/chunks/{instance-n8vdnqrc.js → instance-47jkzegy.js} +3 -3
- package/dist/chunks/{instance-g92sbvmr.js → instance-4hxt5e23.js} +16 -16
- package/dist/chunks/{instance-4z58m4b4.js → instance-4j4tgtq5.js} +3 -3
- package/dist/chunks/{instance-7m78zzez.js → instance-4p9mf0mj.js} +8 -8
- package/dist/chunks/{instance-ve4f4wdb.js → instance-4q4vnebt.js} +6 -6
- package/dist/chunks/{instance-f0ftzx98.js → instance-4y7j986s.js} +7 -7
- package/dist/chunks/{instance-5gx9hkbw.js → instance-50a72dh7.js} +4 -4
- package/dist/chunks/{instance-eyhnzkb4.js → instance-52w29975.js} +3 -3
- package/dist/chunks/{instance-whdm53sh.js → instance-5408hnnb.js} +25 -25
- package/dist/chunks/{instance-r94pvvab.js → instance-54ma36ye.js} +3 -3
- package/dist/chunks/{instance-e3qxr5gk.js → instance-5qd3pb7m.js} +2 -2
- package/dist/chunks/{instance-kjh956ek.js → instance-5saajy9t.js} +9 -9
- package/dist/chunks/{instance-ew85sj6a.js → instance-5zbw8dq9.js} +19 -19
- package/dist/chunks/{instance-s0eg5ze8.js → instance-6btvgc07.js} +12 -12
- package/dist/chunks/{instance-9y7wfsj2.js → instance-6h1sgzxr.js} +30 -30
- package/dist/chunks/instance-6hkj46ta.js +26 -0
- package/dist/chunks/{instance-py3c7vzz.js → instance-6njkejes.js} +29 -29
- package/dist/chunks/{instance-n2456yrq.js → instance-6pn2td3v.js} +15 -15
- package/dist/chunks/{instance-eckn7hvg.js → instance-6tnrngrh.js} +7 -7
- package/dist/chunks/{instance-sst9p08r.js → instance-6vzwhms5.js} +33 -33
- package/dist/chunks/{instance-fx5e31t2.js → instance-71svxegq.js} +72 -72
- package/dist/chunks/{instance-r8zgbxzs.js → instance-74syfsk2.js} +9 -9
- package/dist/chunks/{instance-646vn7sd.js → instance-76an7qnj.js} +16 -16
- package/dist/chunks/{instance-ajnf4kf4.js → instance-79aanr6n.js} +20 -20
- package/dist/chunks/{instance-kwnyzz7d.js → instance-7c25kt5f.js} +9 -9
- package/dist/chunks/{instance-aw3nxxyh.js → instance-7kf7gnm7.js} +12 -12
- package/dist/chunks/{instance-vmvrq3v0.js → instance-7q6nqg1g.js} +7 -7
- package/dist/chunks/{instance-h969w5wg.js → instance-84caq58q.js} +12 -12
- package/dist/chunks/{instance-tcezcvh9.js → instance-89znhe33.js} +3 -3
- package/dist/chunks/{instance-8aap4tw6.js → instance-8dc76097.js} +26 -26
- package/dist/chunks/{instance-eyngvhkr.js → instance-8dp3pqp7.js} +5 -5
- package/dist/chunks/{instance-z4zqze96.js → instance-8j7djd22.js} +19 -19
- package/dist/chunks/{instance-njsm5atp.js → instance-8mprknbj.js} +32 -32
- package/dist/chunks/{instance-qk1jtr9h.js → instance-8q7cp091.js} +14 -14
- package/dist/chunks/{instance-dpctj94h.js → instance-8x4cb7ds.js} +20 -20
- package/dist/chunks/{instance-8dsgf78a.js → instance-94t3kz80.js} +21 -21
- package/dist/chunks/{instance-084aw373.js → instance-99kqc9z2.js} +1 -1
- package/dist/chunks/{instance-xe0aze4b.js → instance-9ar4pza7.js} +17 -17
- package/dist/chunks/{instance-387g8trv.js → instance-9b8s04gb.js} +17 -17
- package/dist/chunks/{instance-3t3ppxhb.js → instance-9jgxs1bn.js} +10 -10
- package/dist/chunks/{instance-89za3yyg.js → instance-9k44apjz.js} +4 -4
- package/dist/chunks/{instance-128xx7kp.js → instance-9mg0ha5m.js} +4 -4
- package/dist/chunks/{instance-ybw1dpzx.js → instance-9nypp77e.js} +12 -12
- package/dist/chunks/{instance-v3chy9qq.js → instance-9rd468vk.js} +31 -31
- package/dist/chunks/{instance-c1zyyjeb.js → instance-9s4s5645.js} +13 -13
- package/dist/chunks/{instance-4tp750a6.js → instance-9y6nqyzn.js} +5 -5
- package/dist/chunks/{instance-rscer41a.js → instance-a0r8rfmp.js} +7 -7
- package/dist/chunks/{instance-xjg9p4ge.js → instance-a2gdg3s5.js} +36 -36
- package/dist/chunks/{instance-gs0zmrt4.js → instance-a2pz59r9.js} +37 -37
- package/dist/chunks/{instance-sr5j7zs6.js → instance-a450qmf9.js} +8 -8
- package/dist/chunks/{instance-svgb3jrm.js → instance-a7p9m6vg.js} +20 -20
- package/dist/chunks/{instance-nve97s1q.js → instance-agt7xfc2.js} +19 -19
- package/dist/chunks/{instance-1azxtnvn.js → instance-asvc535p.js} +9 -9
- package/dist/chunks/{instance-c2zdvb4p.js → instance-azaahc9x.js} +17 -17
- package/dist/chunks/{instance-v73z6nkx.js → instance-b4gsa26k.js} +17 -17
- package/dist/chunks/{instance-wqvmb1h2.js → instance-b7n2911q.js} +27 -27
- package/dist/chunks/{instance-g1ntr7f2.js → instance-ba4zj86y.js} +24 -24
- package/dist/chunks/{instance-pkxbvvp1.js → instance-bcmzxatv.js} +4 -4
- package/dist/chunks/{instance-h1xayf8s.js → instance-bcrfy1e8.js} +10 -10
- package/dist/chunks/{instance-z733aene.js → instance-be7qvw84.js} +7 -7
- package/dist/chunks/{instance-vtqafnzr.js → instance-bg9pb3hs.js} +9 -9
- package/dist/chunks/{instance-e3658yqs.js → instance-bwe2bky2.js} +3 -3
- package/dist/chunks/{instance-6y11rvqm.js → instance-c01nkdt4.js} +14 -14
- package/dist/chunks/{instance-9f6w07v2.js → instance-c0jw7tng.js} +13 -13
- package/dist/chunks/{instance-erxpr3ta.js → instance-c4f3nvjn.js} +16 -16
- package/dist/chunks/{instance-0b5g1ynf.js → instance-c9wbyant.js} +1 -1
- package/dist/chunks/{instance-hkh1jdqf.js → instance-ckerv63d.js} +1 -1
- package/dist/chunks/{instance-zp59tdhe.js → instance-cqpz2z25.js} +20 -20
- package/dist/chunks/{instance-gzc7yqgf.js → instance-d4n7pc7j.js} +11 -11
- package/dist/chunks/{instance-m2je0bek.js → instance-dw46b8bx.js} +14 -14
- package/dist/chunks/{instance-r0d06n1c.js → instance-dy6575tn.js} +17 -17
- package/dist/chunks/{instance-5ha5er23.js → instance-e5wkangg.js} +44 -44
- package/dist/chunks/{instance-f4vpr7ft.js → instance-eb2yw134.js} +19 -19
- package/dist/chunks/{instance-w93dz47x.js → instance-ec8g0tcf.js} +42 -41
- package/dist/chunks/{instance-bh593mvy.js → instance-echrm7fx.js} +16 -10
- package/dist/chunks/{instance-x8fc36mw.js → instance-edhgwctf.js} +4 -4
- package/dist/chunks/{instance-3gn2397m.js → instance-egzk2yjk.js} +85 -85
- package/dist/chunks/{instance-w48fp5bf.js → instance-em3k6scw.js} +8 -8
- package/dist/chunks/{instance-7zjtannr.js → instance-enbw0gbw.js} +39 -39
- package/dist/chunks/{instance-y7e6sser.js → instance-f4mxpp6t.js} +61 -61
- package/dist/chunks/{instance-xmvkzca6.js → instance-f60ec8ph.js} +11 -11
- package/dist/chunks/{instance-eez13zz9.js → instance-fjz5gha3.js} +85 -85
- package/dist/chunks/{instance-20q3sypg.js → instance-ft79q47f.js} +4 -4
- package/dist/chunks/{instance-xtv1bm8z.js → instance-fww2ha2b.js} +8 -8
- package/dist/chunks/{instance-b3zzy7tw.js → instance-fxp0jy99.js} +36 -36
- package/dist/chunks/{instance-0mp499ze.js → instance-g2wa2e5b.js} +31 -14
- package/dist/chunks/{instance-rey5gbxv.js → instance-g6q9qykm.js} +7 -7
- package/dist/chunks/{instance-1mgrvebq.js → instance-g6vxq4t7.js} +12 -12
- package/dist/chunks/{instance-dfb3ggbz.js → instance-g95hkc6v.js} +35 -35
- package/dist/chunks/{instance-74rqx77g.js → instance-gea60fq5.js} +23 -23
- package/dist/chunks/{instance-3y377wv9.js → instance-gqtdsdt7.js} +3 -3
- package/dist/chunks/{instance-59zy69mk.js → instance-gvm6138t.js} +1 -1
- package/dist/chunks/{instance-7vr1nntc.js → instance-gxvgt8t9.js} +12 -12
- package/dist/chunks/{instance-652w1b7r.js → instance-h14remhy.js} +24 -24
- package/dist/chunks/{instance-ktqq3893.js → instance-h82zpv65.js} +8 -8
- package/dist/chunks/{instance-73wr0wn5.js → instance-h8wg6m6b.js} +8 -8
- package/dist/chunks/{instance-vz3edhsq.js → instance-hdb1y56n.js} +43 -43
- package/dist/chunks/{instance-hhbh25th.js → instance-hrtybn11.js} +3 -3
- package/dist/chunks/{instance-yxpkbsn2.js → instance-hy029169.js} +45 -45
- package/dist/chunks/{instance-5211rpnm.js → instance-hz56gd46.js} +14 -14
- package/dist/chunks/{instance-yccdg3qs.js → instance-hzzj1pg2.js} +22 -22
- package/dist/chunks/{instance-57gtfk2n.js → instance-j3ftvw7y.js} +1 -1
- package/dist/chunks/{instance-49r3emx4.js → instance-j4d2njm3.js} +11 -11
- package/dist/chunks/{instance-3stxt38w.js → instance-j5s48rss.js} +9 -9
- package/dist/chunks/{instance-8srf40xe.js → instance-jez41mts.js} +24 -24
- package/dist/chunks/{instance-nxf3zzt8.js → instance-jhx7q1qc.js} +16 -16
- package/dist/chunks/{instance-10ya1n95.js → instance-jxa04fe5.js} +10 -10
- package/dist/chunks/{instance-qvtb430p.js → instance-jxa15a22.js} +21 -21
- package/dist/chunks/{instance-gxf5jgrz.js → instance-k3e33c9f.js} +10 -10
- package/dist/chunks/{instance-pqm9awga.js → instance-k74v33jx.js} +22 -22
- package/dist/chunks/{instance-kj46zcys.js → instance-karq4mt3.js} +22 -22
- package/dist/chunks/{instance-p0qk8z8k.js → instance-kjpxk16h.js} +18 -18
- package/dist/chunks/{instance-h55420by.js → instance-kjzbdttd.js} +2 -2
- package/dist/chunks/{instance-1wwhh6tg.js → instance-kp7zea7r.js} +32 -32
- package/dist/chunks/{instance-7y33ce21.js → instance-ksbyxnj1.js} +20 -20
- package/dist/chunks/{instance-6g107h22.js → instance-kwb1v3vj.js} +19 -15
- package/dist/chunks/{instance-16rkhh34.js → instance-m7f5ga5x.js} +8 -8
- package/dist/chunks/{instance-k2wyjrxv.js → instance-m82ef0kx.js} +2 -2
- package/dist/chunks/{instance-ga72xv16.js → instance-m8p0bf8a.js} +1 -1
- package/dist/chunks/{instance-2bthg6ps.js → instance-mee8ct06.js} +1 -1
- package/dist/chunks/{instance-4ra0jzgx.js → instance-mn1n5f3s.js} +60 -13
- package/dist/chunks/{instance-my4zabxr.js → instance-mtpeagzc.js} +3 -3
- package/dist/chunks/{instance-zyqwfmwv.js → instance-n240m50y.js} +18 -18
- package/dist/chunks/{instance-7efvswca.js → instance-n7jnsjte.js} +25 -25
- package/dist/chunks/{instance-kehp7em2.js → instance-n86j2s3s.js} +6 -6
- package/dist/chunks/{instance-e914qee0.js → instance-n886b0hh.js} +13 -13
- package/dist/chunks/{instance-y1fe2wt7.js → instance-nbm6td7p.js} +9 -5
- package/dist/chunks/{instance-ts0yefbj.js → instance-nfnvba5x.js} +12 -12
- package/dist/chunks/{instance-y0ks4s6t.js → instance-ngdgjn5a.js} +13 -13
- package/dist/chunks/{instance-81fjg4yx.js → instance-nj7hqrdc.js} +14 -9
- package/dist/chunks/{instance-1vezjraj.js → instance-nnq6jpzr.js} +10 -10
- package/dist/chunks/{instance-93pem10m.js → instance-npg16c9q.js} +31 -31
- package/dist/chunks/{instance-6g0jnfpe.js → instance-nsdb0f42.js} +9 -9
- package/dist/chunks/{instance-vvgk372g.js → instance-p6p9qpe8.js} +47 -33
- package/dist/chunks/{instance-gvx299k3.js → instance-pbh24ypk.js} +6 -6
- package/dist/chunks/{instance-9kb2pehy.js → instance-pbjcynf2.js} +9 -9
- package/dist/chunks/{instance-whajmtxv.js → instance-prvmgnqy.js} +5 -5
- package/dist/chunks/{instance-fd3cesbe.js → instance-pwjs67dv.js} +6 -6
- package/dist/chunks/{instance-cxpwe6s4.js → instance-pwws2hp2.js} +11 -11
- package/dist/chunks/{instance-bvg8t9y0.js → instance-q3krtzxs.js} +20 -20
- package/dist/chunks/{instance-xtrd0rcy.js → instance-q97qe3v1.js} +20 -20
- package/dist/chunks/{instance-dgmj5nq6.js → instance-qxbyfn4m.js} +21 -21
- package/dist/chunks/{instance-9s02qxdw.js → instance-qzfs27nc.js} +18 -18
- package/dist/chunks/{instance-7v30ghwx.js → instance-r1d9yajz.js} +43 -43
- package/dist/chunks/{instance-w1vdttf2.js → instance-r730fk4b.js} +20 -20
- package/dist/chunks/{instance-4v7qdvcn.js → instance-rap9a73h.js} +4 -4
- package/dist/chunks/{instance-drvctdx3.js → instance-rq74kqrf.js} +7 -7
- package/dist/chunks/{instance-1jnacwd4.js → instance-rr384mgp.js} +11 -11
- package/dist/chunks/{instance-fm2qvscf.js → instance-ryr25ayn.js} +3 -3
- package/dist/chunks/{instance-e9t82wt6.js → instance-s1kmd63q.js} +9 -9
- package/dist/chunks/{instance-pkrkjz2y.js → instance-s1xtywav.js} +10 -10
- package/dist/chunks/{instance-ae24bvb0.js → instance-s3v8c45g.js} +29 -29
- package/dist/chunks/{instance-kmvkq3az.js → instance-s4bj6v34.js} +9 -9
- package/dist/chunks/{instance-01hxeeh0.js → instance-s5jrf6ry.js} +9 -9
- package/dist/chunks/{instance-rcxh9wm8.js → instance-s7ecmt2f.js} +27 -18
- package/dist/chunks/{instance-w919w76e.js → instance-s9w6dcwz.js} +7 -7
- package/dist/chunks/{instance-6hzf4208.js → instance-saq4k3ef.js} +32 -32
- package/dist/chunks/{instance-hfbp3x8a.js → instance-snpj5a6q.js} +13 -13
- package/dist/chunks/{instance-26g27jq4.js → instance-spnt6386.js} +30 -30
- package/dist/chunks/{instance-e80seqcp.js → instance-sxcaecc0.js} +2 -2
- package/dist/chunks/{instance-c8bydgjz.js → instance-sxzvkvgj.js} +5 -5
- package/dist/chunks/{instance-rkg4v3e5.js → instance-sz15zhhw.js} +8 -8
- package/dist/chunks/{instance-agyyzp1p.js → instance-sz70a389.js} +9 -9
- package/dist/chunks/{instance-ysgxa1w9.js → instance-t5d9whg0.js} +49 -49
- package/dist/chunks/{instance-82rf0sny.js → instance-tdjzh3mn.js} +12 -12
- package/dist/chunks/{instance-bacyadyn.js → instance-tfzngn12.js} +3 -3
- package/dist/chunks/{instance-svwmrgfz.js → instance-tx5jepxr.js} +49 -49
- package/dist/chunks/{instance-4434d9q2.js → instance-v0es1rhs.js} +7 -7
- package/dist/chunks/{instance-egqmz7mr.js → instance-v4640cdb.js} +329 -329
- package/dist/chunks/{instance-9413mpzz.js → instance-v5qm4ejs.js} +35 -35
- package/dist/chunks/instance-v742aeg8.js +66 -0
- package/dist/chunks/{instance-4jr7zcc0.js → instance-vcnzat6y.js} +28 -28
- package/dist/chunks/{instance-9d9vbnr3.js → instance-vd5a229f.js} +20 -20
- package/dist/chunks/{instance-rk7s9xkn.js → instance-vfjhn2wd.js} +3 -3
- package/dist/chunks/{instance-32g268rd.js → instance-vqtt4fqa.js} +11 -11
- package/dist/chunks/{instance-97233r0r.js → instance-vz3ca5nz.js} +1 -1
- package/dist/chunks/{instance-r56f0ccq.js → instance-wdgmgtm0.js} +10 -10
- package/dist/chunks/{instance-t64r4gaf.js → instance-wfmvav8k.js} +7 -7
- package/dist/chunks/{instance-tk14y25j.js → instance-wh6zw745.js} +3 -3
- package/dist/chunks/{instance-ywt8jp22.js → instance-wjr9rjd7.js} +4 -4
- package/dist/chunks/{instance-qr7wvshd.js → instance-wjsh9s1s.js} +32 -32
- package/dist/chunks/{instance-d454q9jw.js → instance-wmhjcbrh.js} +22 -22
- package/dist/chunks/{instance-rb1chcf1.js → instance-wndqf9wb.js} +9 -9
- package/dist/chunks/{instance-hnpn8713.js → instance-x20m8gm2.js} +27 -27
- package/dist/chunks/{instance-4eb7yy46.js → instance-xjvxx86v.js} +1 -1
- package/dist/chunks/{instance-d5fs7d09.js → instance-xn7k1yjr.js} +27 -27
- package/dist/chunks/{instance-aj8kt33w.js → instance-xnn7a7ef.js} +12 -12
- package/dist/chunks/{instance-gd0tnyjc.js → instance-xt4njr3s.js} +1 -1
- package/dist/chunks/{instance-qve4m158.js → instance-xvr6z0ms.js} +16 -16
- package/dist/chunks/{instance-89fs7e8f.js → instance-xzyvagpz.js} +28 -28
- package/dist/chunks/{instance-3rbmmj0g.js → instance-y0r048qb.js} +185 -185
- package/dist/chunks/{instance-xrpg47n6.js → instance-y56ehv6b.js} +7 -7
- package/dist/chunks/{instance-g686f6pq.js → instance-y7nndgyc.js} +7 -7
- package/dist/chunks/{instance-x287n01n.js → instance-ydjrys25.js} +11 -11
- package/dist/chunks/{instance-n9c20jj2.js → instance-ye119z04.js} +52 -52
- package/dist/chunks/{instance-1acjjqhc.js → instance-yp2x3t23.js} +3 -3
- package/dist/chunks/{instance-kkamx07x.js → instance-ypc4xgvm.js} +16 -16
- package/dist/chunks/{instance-q4cy6t51.js → instance-ypne3kk7.js} +18 -18
- package/dist/chunks/{instance-gbtx73hb.js → instance-yw8t9dwe.js} +7 -7
- package/dist/chunks/{instance-zfq801h6.js → instance-yx0rmv9r.js} +5 -5
- package/dist/chunks/{instance-5xaqq0zy.js → instance-z8epvsg6.js} +4 -4
- package/dist/chunks/{instance-zq4fxkvp.js → instance-zdhmwdxf.js} +22 -22
- package/dist/chunks/{instance-9q36pw28.js → instance-zr0n9bt7.js} +1 -1
- package/dist/chunks/{instance-qq3sn5ka.js → instance-zy2kjt51.js} +43 -43
- package/dist/chunks/{instance-scgrse2b.js → instance-zyk1yjk8.js} +3 -3
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +63 -63
- package/dist/config/discovery.js +61 -61
- package/dist/config/normalize.js +75 -75
- package/dist/config/plugin/agent.js +87 -89
- package/dist/config/plugin/command.js +166 -168
- package/dist/config/plugin/compaction.js +121 -123
- package/dist/config/plugin/compatibility.js +104 -106
- package/dist/config/plugin/formatter.js +88 -90
- package/dist/config/plugin/image.js +87 -89
- package/dist/config/plugin/instruction.js +88 -90
- package/dist/config/plugin/location-watcher.js +87 -89
- package/dist/config/plugin/mcp.js +93 -95
- package/dist/config/plugin/policy.js +88 -90
- package/dist/config/plugin/provider.js +87 -89
- package/dist/config/plugin/reference.js +88 -90
- package/dist/config/plugin/shell.js +87 -89
- package/dist/config/plugin/skill-file.js +74 -74
- package/dist/config/plugin/skill.js +105 -107
- package/dist/config/plugin/snapshot.js +87 -89
- package/dist/config/plugin/source.js +90 -92
- package/dist/config/plugin/tool-output.js +88 -90
- package/dist/config/plugin/websearch.js +86 -88
- package/dist/config/plugin/worktree.js +88 -90
- package/dist/config/variable.js +1 -3
- package/dist/config.js +93 -95
- package/dist/credential.js +67 -67
- package/dist/database/database.js +59 -59
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +41 -41
- package/dist/database/migration.js +43 -43
- package/dist/database/v1-migration.bun.js +12 -12
- package/dist/effect/app-node-builder.js +231 -232
- package/dist/environment/environment.js +67 -67
- package/dist/environment/index.js +69 -69
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +77 -77
- package/dist/file-mutation.js +68 -68
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +179 -181
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +76 -76
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +79 -79
- package/dist/form.js +71 -71
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +64 -64
- package/dist/generate.js +78 -78
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +68 -68
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +309 -310
- package/dist/instruction-discovery.js +68 -68
- package/dist/instructions/builtins.js +64 -64
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +71 -71
- package/dist/job.js +61 -61
- package/dist/kv.js +58 -58
- package/dist/location-activity.js +53 -53
- package/dist/location-lifecycle.js +80 -80
- package/dist/location-service-map.js +59 -59
- package/dist/location-services.js +305 -306
- package/dist/location.js +66 -66
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +77 -77
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +64 -64
- package/dist/modal/models.js +68 -68
- package/dist/model-resolver.js +75 -75
- package/dist/model.js +77 -77
- package/dist/models-dev.js +83 -83
- package/dist/permission/saved.js +64 -64
- package/dist/permission.js +90 -90
- package/dist/persistent-pty/index.js +71 -71
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +58 -58
- package/dist/plugin/command.js +74 -74
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +172 -174
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/internal.js +281 -283
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +72 -72
- package/dist/plugin/module.js +88 -90
- package/dist/plugin/plan.js +75 -75
- package/dist/plugin/provider/amazon-bedrock.js +67 -67
- package/dist/plugin/provider/azure.js +88 -90
- package/dist/plugin/provider/chatgpt.js +87 -89
- package/dist/plugin/provider/cloudflare-ai-gateway.js +85 -87
- package/dist/plugin/provider/cloudflare-workers-ai.js +85 -87
- package/dist/plugin/provider/configured.js +84 -86
- package/dist/plugin/provider/digitalocean.js +69 -69
- package/dist/plugin/provider/github-copilot.js +72 -72
- package/dist/plugin/provider/gitlab.js +69 -69
- package/dist/plugin/provider/google-vertex.js +85 -87
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +93 -95
- package/dist/plugin/provider/local.js +92 -94
- package/dist/plugin/provider/modal.js +69 -69
- package/dist/plugin/provider/ollama.js +95 -97
- package/dist/plugin/provider/openai.js +87 -89
- package/dist/plugin/provider/opencode.js +74 -73
- package/dist/plugin/provider/openrouter.js +68 -68
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/sap-ai-core.js +67 -67
- package/dist/plugin/provider/snowflake-cortex.js +86 -88
- package/dist/plugin/provider/vercel.js +67 -67
- package/dist/plugin/provider/vllm.js +95 -97
- package/dist/plugin/provider/xai.js +68 -68
- package/dist/plugin/provider.js +132 -133
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +105 -107
- package/dist/plugin/supervisor.js +298 -300
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +63 -63
- package/dist/plugin/vcs/hg.js +63 -63
- package/dist/plugin/verbosity.js +70 -70
- package/dist/plugin/warming.js +86 -88
- 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 +184 -186
- package/dist/project/schema.js +7 -7
- package/dist/project.js +67 -67
- package/dist/provider.js +80 -78
- package/dist/pty.js +75 -75
- package/dist/reference/instructions.js +67 -67
- package/dist/reference.js +65 -65
- package/dist/repository-cache.js +60 -60
- package/dist/ripgrep.js +68 -68
- package/dist/rpc.js +63 -63
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +104 -104
- package/dist/session/context.js +119 -119
- package/dist/session/diff.js +63 -63
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +116 -118
- package/dist/session/execution.js +96 -96
- package/dist/session/generate.js +118 -118
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +55 -55
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +100 -100
- package/dist/session/projector.js +60 -60
- package/dist/session/prompt.js +77 -77
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +64 -64
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +182 -184
- package/dist/session/runner/model.js +75 -75
- package/dist/session/runner/publish-llm-event.js +85 -85
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +96 -96
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +128 -130
- package/dist/session/shell.js +99 -101
- package/dist/session/skill.js +78 -78
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +67 -67
- package/dist/session/subagent-job.js +167 -169
- package/dist/session/title.js +122 -122
- package/dist/session/to-session-error.js +84 -84
- package/dist/session/transfer.js +120 -119
- package/dist/session.js +179 -181
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +102 -104
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +80 -80
- package/dist/skill.js +81 -81
- package/dist/snapshot.js +66 -66
- package/dist/tool/mcp.js +95 -95
- package/dist/tool/plugin/edit.js +89 -89
- package/dist/tool/plugin/glob.js +93 -93
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/mcp-resource.js +87 -87
- package/dist/tool/plugin/opencode.js +80 -80
- package/dist/tool/plugin/patch.js +91 -91
- package/dist/tool/plugin/question.js +74 -74
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +171 -173
- package/dist/tool/plugin/skill.js +86 -86
- package/dist/tool/plugin/subagent.js +174 -176
- package/dist/tool/plugin/webfetch.js +84 -84
- package/dist/tool/plugin/websearch.js +83 -83
- package/dist/tool/plugin/write.js +89 -89
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/config/variable.d.ts +1 -43
- package/dist/types/instance.d.ts +2 -1
- package/dist/types/model.d.ts +3 -0
- package/dist/types/provider.d.ts +2 -0
- package/dist/types/v1/config/migrate.d.ts +7 -0
- package/dist/types/variant.d.ts +3 -0
- package/dist/types/voice.d.ts +29 -0
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +24 -6
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +70 -68
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +72 -70
- package/dist/vcs.js +66 -66
- package/dist/voice.js +97 -0
- package/dist/websearch.js +65 -65
- package/dist/wellknown/plugin.js +59 -59
- package/dist/wellknown.js +64 -64
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +2 -2
- package/dist/worktree/strategies.js +65 -65
- package/dist/worktree.js +73 -73
- package/package.json +8 -8
- package/dist/chunks/instance-0j77ygfz.js +0 -25
- package/dist/chunks/instance-9k954qnc.js +0 -253
- package/dist/chunks/instance-xkv0wwhy.js +0 -26
- /package/dist/chunks/{instance-vbbe25mn.js → instance-3cy08nae.js} +0 -0
- /package/dist/chunks/{instance-d9wzmzc3.js → instance-5nrew705.js} +0 -0
- /package/dist/chunks/{instance-j09zfasm.js → instance-91qna3x0.js} +0 -0
- /package/dist/chunks/{instance-8wvgy420.js → instance-j99dhamb.js} +0 -0
- /package/dist/chunks/{instance-h4mdy8pc.js → instance-m8qsgghe.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./instance-c0jw7tng.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./instance-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./instance-
|
|
11
|
+
} from "./instance-gqtdsdt7.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./instance-
|
|
13
|
+
ID9,
|
|
14
|
+
Service66,
|
|
15
|
+
node69,
|
|
16
|
+
Event14
|
|
17
|
+
} from "./instance-6vzwhms5.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./instance-
|
|
19
|
+
Service82,
|
|
20
|
+
node86
|
|
21
|
+
} from "./instance-jhx7q1qc.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -39,16 +39,17 @@ __export(exports_provider3, {
|
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
40
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
41
41
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
42
|
-
Event: () =>
|
|
43
|
-
ID: () =>
|
|
44
|
-
Info: () =>
|
|
42
|
+
Event: () => Event13,
|
|
43
|
+
ID: () => ID8,
|
|
44
|
+
Info: () => Info17,
|
|
45
45
|
LoadError: () => LoadError3,
|
|
46
46
|
Provider: () => exports_provider3,
|
|
47
|
-
Request: () =>
|
|
48
|
-
Service: () =>
|
|
47
|
+
Request: () => Request2,
|
|
48
|
+
Service: () => Service65,
|
|
49
49
|
Settings: () => Settings2,
|
|
50
50
|
Transport: () => Transport2,
|
|
51
51
|
aisdk: () => aisdk2,
|
|
52
|
+
builtinPackages: () => builtinPackages2,
|
|
52
53
|
encoding: () => encoding2,
|
|
53
54
|
isAISDK: () => isAISDK2,
|
|
54
55
|
loadPackage: () => loadPackage2,
|
|
@@ -56,7 +57,7 @@ __export(exports_provider3, {
|
|
|
56
57
|
mergeOverlay: () => mergeOverlay2,
|
|
57
58
|
modelSettings: () => modelSettings2,
|
|
58
59
|
nativeSettings: () => nativeSettings2,
|
|
59
|
-
node: () =>
|
|
60
|
+
node: () => node68,
|
|
60
61
|
packageName: () => packageName2,
|
|
61
62
|
timeout: () => timeout2,
|
|
62
63
|
timeouts: () => timeouts2
|
|
@@ -70,8 +71,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
70
71
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
71
72
|
import { Credential } from "@opencode/schema/credential";
|
|
72
73
|
import { freeze } from "immer";
|
|
73
|
-
import { Event as
|
|
74
|
-
var
|
|
74
|
+
import { Event as Event13 } from "@opencode/schema/provider";
|
|
75
|
+
var ID8 = Provider.ID;
|
|
75
76
|
var AISDK_PREFIX2 = "aisdk:";
|
|
76
77
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
77
78
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -92,19 +93,25 @@ class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
|
|
|
92
93
|
}
|
|
93
94
|
var packages = new Map;
|
|
94
95
|
var builtins = new Map([
|
|
96
|
+
["@opencode/ai/providers/alibaba", () => import("@opencode/ai/providers/alibaba")],
|
|
97
|
+
["@opencode/ai/providers/alibaba/chat", () => import("@opencode/ai/providers/alibaba/chat")],
|
|
98
|
+
["@opencode/ai/providers/alibaba/messages", () => import("@opencode/ai/providers/alibaba/messages")],
|
|
99
|
+
["@opencode/ai/providers/alibaba/responses", () => import("@opencode/ai/providers/alibaba/responses")],
|
|
95
100
|
["@opencode/ai/providers/amazon-bedrock", () => import("@opencode/ai/providers/amazon-bedrock")],
|
|
96
101
|
["@opencode/ai/providers/amazon-bedrock/mantle", () => import("@opencode/ai/providers/amazon-bedrock/mantle")],
|
|
97
102
|
[
|
|
98
103
|
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
99
104
|
() => import("@opencode/ai/providers/amazon-bedrock/mantle/chat")
|
|
100
105
|
],
|
|
106
|
+
[
|
|
107
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/messages",
|
|
108
|
+
() => import("@opencode/ai/providers/amazon-bedrock/mantle/messages")
|
|
109
|
+
],
|
|
101
110
|
[
|
|
102
111
|
"@opencode/ai/providers/amazon-bedrock/mantle/responses",
|
|
103
112
|
() => import("@opencode/ai/providers/amazon-bedrock/mantle/responses")
|
|
104
113
|
],
|
|
105
|
-
["@opencode/ai/providers/
|
|
106
|
-
["@opencode/ai/providers/alibaba/messages", () => import("@opencode/ai/providers/alibaba/messages")],
|
|
107
|
-
["@opencode/ai/providers/alibaba/responses", () => import("@opencode/ai/providers/alibaba/responses")],
|
|
114
|
+
["@opencode/ai/providers/amazon-bedrock-mantle", () => import("@opencode/ai/providers/amazon-bedrock-mantle")],
|
|
108
115
|
["@opencode/ai/providers/anthropic", () => import("@opencode/ai/providers/anthropic")],
|
|
109
116
|
["@opencode/ai/providers/anthropic-compatible", () => import("@opencode/ai/providers/anthropic-compatible")],
|
|
110
117
|
["@opencode/ai/providers/azure", () => import("@opencode/ai/providers/azure")],
|
|
@@ -123,23 +130,34 @@ var builtins = new Map([
|
|
|
123
130
|
["@opencode/ai/providers/google", () => import("@opencode/ai/providers/google")],
|
|
124
131
|
["@opencode/ai/providers/google/interactions", () => import("@opencode/ai/providers/google/interactions")],
|
|
125
132
|
["@opencode/ai/providers/google-vertex", () => import("@opencode/ai/providers/google-vertex")],
|
|
133
|
+
["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
|
|
126
134
|
["@opencode/ai/providers/google-vertex/gemini", () => import("@opencode/ai/providers/google-vertex/gemini")],
|
|
127
135
|
[
|
|
128
136
|
"@opencode/ai/providers/google-vertex/interactions",
|
|
129
137
|
() => import("@opencode/ai/providers/google-vertex/interactions")
|
|
130
138
|
],
|
|
131
|
-
["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
|
|
132
|
-
["@opencode/ai/providers/google-vertex/responses", () => import("@opencode/ai/providers/google-vertex/responses")],
|
|
133
139
|
["@opencode/ai/providers/google-vertex/messages", () => import("@opencode/ai/providers/google-vertex/messages")],
|
|
134
140
|
["@opencode/ai/providers/google-vertex/mistral", () => import("@opencode/ai/providers/google-vertex/mistral")],
|
|
141
|
+
["@opencode/ai/providers/google-vertex/responses", () => import("@opencode/ai/providers/google-vertex/responses")],
|
|
142
|
+
["@opencode/ai/providers/google-vertex-chat", () => import("@opencode/ai/providers/google-vertex-chat")],
|
|
143
|
+
[
|
|
144
|
+
"@opencode/ai/providers/google-vertex-interactions",
|
|
145
|
+
() => import("@opencode/ai/providers/google-vertex-interactions")
|
|
146
|
+
],
|
|
147
|
+
["@opencode/ai/providers/google-vertex-messages", () => import("@opencode/ai/providers/google-vertex-messages")],
|
|
148
|
+
["@opencode/ai/providers/google-vertex-mistral", () => import("@opencode/ai/providers/google-vertex-mistral")],
|
|
149
|
+
["@opencode/ai/providers/google-vertex-responses", () => import("@opencode/ai/providers/google-vertex-responses")],
|
|
135
150
|
["@opencode/ai/providers/groq", () => import("@opencode/ai/providers/groq")],
|
|
151
|
+
["@opencode/ai/providers/meta", () => import("@opencode/ai/providers/meta")],
|
|
136
152
|
["@opencode/ai/providers/meta/chat", () => import("@opencode/ai/providers/meta/chat")],
|
|
137
153
|
["@opencode/ai/providers/meta/messages", () => import("@opencode/ai/providers/meta/messages")],
|
|
138
154
|
["@opencode/ai/providers/meta/responses", () => import("@opencode/ai/providers/meta/responses")],
|
|
155
|
+
["@opencode/ai/providers/minimax", () => import("@opencode/ai/providers/minimax")],
|
|
139
156
|
["@opencode/ai/providers/minimax/chat", () => import("@opencode/ai/providers/minimax/chat")],
|
|
140
157
|
["@opencode/ai/providers/minimax/messages", () => import("@opencode/ai/providers/minimax/messages")],
|
|
141
158
|
["@opencode/ai/providers/minimax/responses", () => import("@opencode/ai/providers/minimax/responses")],
|
|
142
159
|
["@opencode/ai/providers/mistral", () => import("@opencode/ai/providers/mistral")],
|
|
160
|
+
["@opencode/ai/providers/moonshot", () => import("@opencode/ai/providers/moonshot")],
|
|
143
161
|
["@opencode/ai/providers/moonshot/chat", () => import("@opencode/ai/providers/moonshot/chat")],
|
|
144
162
|
["@opencode/ai/providers/moonshot/messages", () => import("@opencode/ai/providers/moonshot/messages")],
|
|
145
163
|
["@opencode/ai/providers/moonshot/responses", () => import("@opencode/ai/providers/moonshot/responses")],
|
|
@@ -159,8 +177,19 @@ var builtins = new Map([
|
|
|
159
177
|
["@opencode/ai/providers/togetherai", () => import("@opencode/ai/providers/togetherai")],
|
|
160
178
|
["@opencode/ai/providers/venice", () => import("@opencode/ai/providers/venice")],
|
|
161
179
|
["@opencode/ai/providers/vercel-ai-gateway", () => import("@opencode/ai/providers/vercel-ai-gateway")],
|
|
180
|
+
["@opencode/ai/providers/vercel-ai-gateway/chat", () => import("@opencode/ai/providers/vercel-ai-gateway/chat")],
|
|
181
|
+
[
|
|
182
|
+
"@opencode/ai/providers/vercel-ai-gateway/messages",
|
|
183
|
+
() => import("@opencode/ai/providers/vercel-ai-gateway/messages")
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
"@opencode/ai/providers/vercel-ai-gateway/responses",
|
|
187
|
+
() => import("@opencode/ai/providers/vercel-ai-gateway/responses")
|
|
188
|
+
],
|
|
162
189
|
["@opencode/ai/providers/xai", () => import("@opencode/ai/providers/xai")],
|
|
190
|
+
["@opencode/ai/providers/zai", () => import("@opencode/ai/providers/zai")],
|
|
163
191
|
["@opencode/ai/providers/zai/chat", () => import("@opencode/ai/providers/zai/chat")],
|
|
192
|
+
["@opencode/ai/providers/zai-coding-plan", () => import("@opencode/ai/providers/zai-coding-plan")],
|
|
164
193
|
["@opencode/ai/providers/zai-coding-plan/chat", () => import("@opencode/ai/providers/zai-coding-plan/chat")],
|
|
165
194
|
["@opencode/ai/providers/zai-coding-plan/messages", () => import("@opencode/ai/providers/zai-coding-plan/messages")],
|
|
166
195
|
[
|
|
@@ -168,6 +197,7 @@ var builtins = new Map([
|
|
|
168
197
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
169
198
|
]
|
|
170
199
|
]);
|
|
200
|
+
var builtinPackages2 = new Set(builtins.keys());
|
|
171
201
|
var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
172
202
|
const specifier = packageName2(input);
|
|
173
203
|
const builtin = builtins.get(specifier);
|
|
@@ -249,13 +279,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
249
279
|
return result;
|
|
250
280
|
}, new Map).values());
|
|
251
281
|
}
|
|
252
|
-
var
|
|
282
|
+
var Request2 = Provider.Request;
|
|
253
283
|
var Compaction3 = Provider.Compaction;
|
|
254
284
|
var Transport2 = Provider.Transport;
|
|
255
285
|
var Settings2 = Provider.Settings;
|
|
256
|
-
var
|
|
286
|
+
var Info17 = Provider.Info;
|
|
257
287
|
|
|
258
|
-
class
|
|
288
|
+
class Service65 extends Context.Service()("@opencode/Provider") {
|
|
259
289
|
}
|
|
260
290
|
var definitions = new WeakMap;
|
|
261
291
|
function index(providerID, models) {
|
|
@@ -268,10 +298,10 @@ function index(providerID, models) {
|
|
|
268
298
|
definitions.set(models, indexes);
|
|
269
299
|
return result;
|
|
270
300
|
}
|
|
271
|
-
var layer = Layer.effect(
|
|
272
|
-
const bus = yield*
|
|
273
|
-
const integrations = yield*
|
|
274
|
-
const location = yield*
|
|
301
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
302
|
+
const bus = yield* Service85;
|
|
303
|
+
const integrations = yield* Service66;
|
|
304
|
+
const location = yield* Service82;
|
|
275
305
|
const state = create3({
|
|
276
306
|
name: "provider",
|
|
277
307
|
initial: () => new Map,
|
|
@@ -282,7 +312,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
282
312
|
const current = records.get(id);
|
|
283
313
|
if (current)
|
|
284
314
|
return current;
|
|
285
|
-
const added = { provider:
|
|
315
|
+
const added = { provider: Info17.empty(id), models: new Map };
|
|
286
316
|
records.set(id, added);
|
|
287
317
|
maps.add(added.models);
|
|
288
318
|
return added;
|
|
@@ -363,7 +393,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
363
393
|
const available = Array.from(records.values()).filter((record) => {
|
|
364
394
|
if (record.provider.activation === "disabled")
|
|
365
395
|
return false;
|
|
366
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
396
|
+
const integration = byID.get(record.provider.integrationID ?? ID9.make(record.provider.id));
|
|
367
397
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
368
398
|
return false;
|
|
369
399
|
if (record.provider.activation === "enabled")
|
|
@@ -389,8 +419,8 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
389
419
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
390
420
|
});
|
|
391
421
|
});
|
|
392
|
-
yield* bus.subscribe([
|
|
393
|
-
return
|
|
422
|
+
yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
423
|
+
return Service65.of({
|
|
394
424
|
transform: state.transform,
|
|
395
425
|
reload: state.reload,
|
|
396
426
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -399,7 +429,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
399
429
|
snapshot
|
|
400
430
|
});
|
|
401
431
|
}));
|
|
402
|
-
var
|
|
432
|
+
var node68 = makeLocationNode({ service: Service65, layer, deps: [node89, node69, node86] });
|
|
403
433
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
404
434
|
const module = yield* Effect.tryPromise({
|
|
405
435
|
try: () => {
|
|
@@ -433,10 +463,8 @@ function rewrite2(target, input) {
|
|
|
433
463
|
const translated = options(replacement, input.modelID, settings);
|
|
434
464
|
if (target.package !== undefined || replacement !== input.specifier)
|
|
435
465
|
target.package = replacement;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
439
|
-
};
|
|
466
|
+
const identity = replacement === "@opencode/ai/providers/openai-compatible" && !builtinPackages2.has(input.specifier) ? { provider: input.canonical ?? input.providerID } : {};
|
|
467
|
+
target.settings = target.settings === undefined ? undefined : { ...translated.settings, ...identity };
|
|
440
468
|
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
441
469
|
target.body = mergeOverlay2(translated.body, target.body);
|
|
442
470
|
target.variants = target.variants?.map((variant) => {
|
|
@@ -514,14 +542,6 @@ var HOSTS = {
|
|
|
514
542
|
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
515
543
|
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
516
544
|
};
|
|
517
|
-
var NATIVE = new Set([
|
|
518
|
-
...Object.values(PACKAGES),
|
|
519
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
520
|
-
"@opencode/ai/providers/azure/chat",
|
|
521
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
522
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
523
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
524
|
-
]);
|
|
525
545
|
function native2(npm, context) {
|
|
526
546
|
const host = HOSTS[context.providerID]?.[npm];
|
|
527
547
|
if (host)
|
|
@@ -536,17 +556,19 @@ var azureChat = (context) => context.shape === "completions" || context.settings
|
|
|
536
556
|
var mantle = (modelID) => {
|
|
537
557
|
if (modelID === undefined)
|
|
538
558
|
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
559
|
+
if (modelID.includes("anthropic."))
|
|
560
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle/messages";
|
|
539
561
|
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
540
562
|
};
|
|
541
563
|
function resolve(specifier, context) {
|
|
542
564
|
const npm = packageName2(specifier);
|
|
543
565
|
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
544
566
|
return native2(npm, context);
|
|
545
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
567
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle" || npm === "@opencode/ai/providers/amazon-bedrock-mantle")
|
|
546
568
|
return mantle(context.modelID);
|
|
547
|
-
if (npm === "@opencode/ai/providers/azure/responses" && azureChat(context))
|
|
569
|
+
if ((npm === "@opencode/ai/providers/azure" || npm === "@opencode/ai/providers/azure/responses") && azureChat(context))
|
|
548
570
|
return "@opencode/ai/providers/azure/chat";
|
|
549
|
-
return
|
|
571
|
+
return builtinPackages2.has(npm) ? npm : undefined;
|
|
550
572
|
}
|
|
551
573
|
function options(replacement, modelID, settings) {
|
|
552
574
|
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
@@ -677,4 +699,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
677
699
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
678
700
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
679
701
|
|
|
680
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
702
|
+
export { rewrite2, native2, exports_aisdk_native, ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info17, Service65, node68, exports_provider3, Event13 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./instance-
|
|
2
|
+
Ref4
|
|
3
|
+
} from "./instance-jhx7q1qc.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -39,7 +39,7 @@ var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
|
39
39
|
yield* Effect.logInfo("location services reloaded", { count: refs.length });
|
|
40
40
|
});
|
|
41
41
|
function canonical3(ref) {
|
|
42
|
-
return
|
|
42
|
+
return Ref4.make({
|
|
43
43
|
directory: AbsolutePath.make(process.platform === "win32" ? path.normalize(ref.directory) : ref.directory),
|
|
44
44
|
workspaceID: ref.workspaceID
|
|
45
45
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
2
|
+
Service86,
|
|
3
|
+
node90
|
|
4
|
+
} from "./instance-gxvgt8t9.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
7
|
} from "./instance-rert0e01.js";
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
ListInput: () =>
|
|
16
|
+
ID: () => ID13,
|
|
17
|
+
Info: () => Info23,
|
|
18
|
+
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service71,
|
|
21
|
+
node: () => node74
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
28
|
+
var ID13 = PermissionSaved.ID;
|
|
29
|
+
var Info23 = PermissionSaved.Info;
|
|
30
|
+
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
33
33
|
var AddInput2 = Schema.Struct({
|
|
@@ -36,10 +36,10 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service71 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const db = (yield*
|
|
41
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
42
|
+
const db = (yield* Service86).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
45
45
|
return rows.map((row) => ({
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID13.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service71.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node74 = makeGlobalNode({ service: Service71, layer, deps: [node90] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID13, Info23, ListInput4, AddInput2, Service71, node74, exports_saved };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info14,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info14 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info16 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info14, exports_provider2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./instance-
|
|
2
|
+
Service54
|
|
3
|
+
} from "./instance-k74v33jx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service82
|
|
6
|
+
} from "./instance-jhx7q1qc.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./instance-
|
|
8
|
+
Service53
|
|
9
|
+
} from "./instance-t5d9whg0.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable3
|
|
12
|
-
} from "./instance-
|
|
12
|
+
} from "./instance-02nrjc1r.js";
|
|
13
13
|
import {
|
|
14
14
|
File2,
|
|
15
|
-
|
|
16
|
-
} from "./instance-
|
|
15
|
+
Service74
|
|
16
|
+
} from "./instance-x20m8gm2.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin18
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -31,17 +31,17 @@ import { sameDirectory } from "@opencode/util/path";
|
|
|
31
31
|
import path, { dirname, join } from "path";
|
|
32
32
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
33
33
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
34
|
-
var
|
|
34
|
+
var Plugin18 = define({
|
|
35
35
|
id: "opencode.config.instruction",
|
|
36
36
|
effect: Effect.fn(function* (ctx) {
|
|
37
|
-
const discovery = yield*
|
|
37
|
+
const discovery = yield* Service74;
|
|
38
38
|
yield* Effect.gen(function* () {
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service53;
|
|
40
40
|
const fs = yield* FSUtil.Service;
|
|
41
41
|
const global = yield* Global.Service;
|
|
42
42
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
43
|
-
const location = yield*
|
|
44
|
-
const watcher = yield*
|
|
43
|
+
const location = yield* Service82;
|
|
44
|
+
const watcher = yield* Service54;
|
|
45
45
|
const changes = yield* PubSub.sliding(1);
|
|
46
46
|
const watches = yield* FiberMap.make();
|
|
47
47
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -177,4 +177,4 @@ function isUrl(source) {
|
|
|
177
177
|
return URL.canParse(source) && /^https?:$/.test(new URL(source).protocol);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { Plugin18, exports_instruction };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info22,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Predicate, Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info22 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -66,4 +66,4 @@ function upgradeLegacyMedia(input) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { Info22, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./instance-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./instance-
|
|
5
|
+
ID4,
|
|
6
|
+
Service56
|
|
7
|
+
} from "./instance-94t3kz80.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./instance-
|
|
10
|
+
} from "./instance-mtpeagzc.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./instance-
|
|
13
|
+
} from "./instance-9k44apjz.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./instance-c1fqxshp.js";
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service56;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID4.make(from),
|
|
91
|
+
to: ID4.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
3
|
+
Service53
|
|
4
|
+
} from "./instance-t5d9whg0.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
// src/plugin/warming.ts
|
|
10
10
|
var exports_warming = {};
|
|
11
11
|
__export(exports_warming, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin29,
|
|
13
13
|
WarmingPlugin: () => exports_warming
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -19,10 +19,10 @@ var defaults = {
|
|
|
19
19
|
interval: Duration.minutes(4),
|
|
20
20
|
duration: Duration.minutes(30)
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Plugin29 = define({
|
|
23
23
|
id: "opencode.warming",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service53;
|
|
26
26
|
const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
|
|
27
27
|
const warming = latest2(yield* config.entries(), "warming");
|
|
28
28
|
if (!warming)
|
|
@@ -96,4 +96,4 @@ var Plugin45 = define({
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin29, exports_warming };
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service78,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node81
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service78 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service78.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node81 = makeLocationNode({ service: Service78, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service78, node81, exports_image2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./instance-
|
|
3
|
+
} from "./instance-8q7cp091.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make6 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make4 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make6();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make6, OllamaPlugin2 };
|