@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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
3
|
+
Service53
|
|
4
|
+
} from "./instance-t5d9whg0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./instance-
|
|
6
|
+
Service59
|
|
7
|
+
} from "./instance-h8wg6m6b.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./instance-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin13
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin13 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service53;
|
|
27
|
+
const output = yield* Service59;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin9 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin13, exports_tool_output };
|
|
@@ -1,25 +1,25 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
} from "./instance-
|
|
10
|
+
Service82,
|
|
11
|
+
node86
|
|
12
|
+
} from "./instance-jhx7q1qc.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID8,
|
|
16
16
|
modelSettings2,
|
|
17
17
|
mergeOverlay2,
|
|
18
18
|
mergeHeaders2,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./instance-
|
|
19
|
+
Service65,
|
|
20
|
+
node68,
|
|
21
|
+
Event13
|
|
22
|
+
} from "./instance-2ysm8pgm.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
25
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -30,18 +30,18 @@ __export(exports_model2, {
|
|
|
30
30
|
Capabilities: () => Capabilities2,
|
|
31
31
|
Compatibility: () => Compatibility2,
|
|
32
32
|
Cost: () => Cost2,
|
|
33
|
-
Event: () =>
|
|
33
|
+
Event: () => Event12,
|
|
34
34
|
Family: () => Family2,
|
|
35
|
-
ID: () =>
|
|
36
|
-
Info: () =>
|
|
35
|
+
ID: () => ID7,
|
|
36
|
+
Info: () => Info16,
|
|
37
37
|
Model: () => exports_model2,
|
|
38
38
|
ReasoningField: () => ReasoningField2,
|
|
39
39
|
Ref: () => Ref2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service64,
|
|
41
41
|
VariantID: () => VariantID2,
|
|
42
42
|
compatibility: () => compatibility2,
|
|
43
43
|
mergeCapabilities: () => mergeCapabilities2,
|
|
44
|
-
node: () =>
|
|
44
|
+
node: () => node67,
|
|
45
45
|
parse: () => parse5,
|
|
46
46
|
supportsText: () => supportsText2
|
|
47
47
|
});
|
|
@@ -49,8 +49,8 @@ import { Model } from "@opencode/schema/model";
|
|
|
49
49
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
50
50
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
51
51
|
import { freeze } from "immer";
|
|
52
|
-
import { Event as
|
|
53
|
-
var
|
|
52
|
+
import { Event as Event12 } from "@opencode/schema/model";
|
|
53
|
+
var ID7 = Model.ID;
|
|
54
54
|
var VariantID2 = Model.VariantID;
|
|
55
55
|
var Family2 = Model.Family;
|
|
56
56
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -61,19 +61,20 @@ var mergeCapabilities2 = (config, base) => {
|
|
|
61
61
|
return {
|
|
62
62
|
tools: config.tools ?? fallback.tools,
|
|
63
63
|
input: [...config.input ?? fallback.input],
|
|
64
|
-
output: [...config.output ?? fallback.output]
|
|
64
|
+
output: [...config.output ?? fallback.output],
|
|
65
|
+
temperature: config.temperature ?? base?.temperature
|
|
65
66
|
};
|
|
66
67
|
};
|
|
67
68
|
var Cost2 = Model.Cost;
|
|
68
69
|
var Ref2 = Model.Ref;
|
|
69
|
-
var
|
|
70
|
+
var Info16 = Model.Info;
|
|
70
71
|
|
|
71
|
-
class
|
|
72
|
+
class Service64 extends Context.Service()("@opencode/Model") {
|
|
72
73
|
}
|
|
73
|
-
var layer = Layer.effect(
|
|
74
|
-
const providers = yield*
|
|
75
|
-
const bus = yield*
|
|
76
|
-
const location = yield*
|
|
74
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
75
|
+
const providers = yield* Service65;
|
|
76
|
+
const bus = yield* Service85;
|
|
77
|
+
const location = yield* Service82;
|
|
77
78
|
let input;
|
|
78
79
|
const state = create3({
|
|
79
80
|
name: "model",
|
|
@@ -118,7 +119,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
118
119
|
const models = writable(providerID);
|
|
119
120
|
if (!models)
|
|
120
121
|
return;
|
|
121
|
-
const model = draft(providerID, modelID) ??
|
|
122
|
+
const model = draft(providerID, modelID) ?? Info16.default(providerID, modelID);
|
|
122
123
|
update(model);
|
|
123
124
|
model.id = modelID;
|
|
124
125
|
model.providerID = providerID;
|
|
@@ -187,7 +188,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
187
188
|
];
|
|
188
189
|
}));
|
|
189
190
|
const all = Array.from(byProvider.values()).flatMap((models) => Array.from(models.values())).sort((left, right) => right.time.released - left.time.released);
|
|
190
|
-
cached = freeze({ data, all, available: all.filter((model) => model.enabled), byProvider }, true);
|
|
191
|
+
cached = freeze({ data, all, available: preferFree(all.filter((model) => model.enabled)), byProvider }, true);
|
|
191
192
|
return cached;
|
|
192
193
|
}
|
|
193
194
|
});
|
|
@@ -208,8 +209,8 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
208
209
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
209
210
|
});
|
|
210
211
|
});
|
|
211
|
-
yield* bus.subscribe(
|
|
212
|
-
return
|
|
212
|
+
yield* bus.subscribe(Event13.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
213
|
+
return Service64.of({
|
|
213
214
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
214
215
|
reload,
|
|
215
216
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -228,7 +229,20 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
228
229
|
})
|
|
229
230
|
});
|
|
230
231
|
}));
|
|
231
|
-
var
|
|
232
|
+
var node67 = makeLocationNode({ service: Service64, layer, deps: [node68, node89, node86] });
|
|
233
|
+
var PREFERRED_FREE = [
|
|
234
|
+
"big-pickle",
|
|
235
|
+
"deepseek-v4.1-flash-free",
|
|
236
|
+
"glm-5.3-flash-free",
|
|
237
|
+
"muse-spark-1.3-contributor-free"
|
|
238
|
+
];
|
|
239
|
+
function preferFree(models) {
|
|
240
|
+
const freeOnly = models.every((model) => model.providerID === ID8.opencode && !model.cost.some((cost) => cost.input > 0));
|
|
241
|
+
if (!freeOnly)
|
|
242
|
+
return models;
|
|
243
|
+
const picks = PREFERRED_FREE.flatMap((id) => models.find((model) => model.id === id) ?? []);
|
|
244
|
+
return [...picks, ...models.filter((model) => !picks.includes(model))];
|
|
245
|
+
}
|
|
232
246
|
function supportsText2(model) {
|
|
233
247
|
return (model.capabilities.input.length === 0 || model.capabilities.input.some((item) => item.startsWith("text"))) && (model.capabilities.output.length === 0 || model.capabilities.output.some((item) => item.startsWith("text")));
|
|
234
248
|
}
|
|
@@ -242,9 +256,9 @@ function compatibility2(input) {
|
|
|
242
256
|
function parse5(input) {
|
|
243
257
|
const index = input.indexOf("/");
|
|
244
258
|
return {
|
|
245
|
-
providerID:
|
|
246
|
-
modelID:
|
|
259
|
+
providerID: ID8.make(index === -1 ? input : input.slice(0, index)),
|
|
260
|
+
modelID: ID7.make(index === -1 ? "" : input.slice(index + 1))
|
|
247
261
|
};
|
|
248
262
|
}
|
|
249
263
|
|
|
250
|
-
export {
|
|
264
|
+
export { ID7, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, mergeCapabilities2, Cost2, Ref2, Info16, Service64, node67, supportsText2, compatibility2, parse5, exports_model2, Event12 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./instance-
|
|
2
|
+
Service68
|
|
3
|
+
} from "./instance-xzyvagpz.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service69
|
|
6
|
+
} from "./instance-f4mxpp6t.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin50 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service68;
|
|
57
|
+
const permission = yield* Service69;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service32,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer15,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node36
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service32 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service32, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service26, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service32.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer15 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node36 = makeGlobalNode({ service: Service32, layer: layer15, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service32, makeLayer2, layer15, node36, exports_model_transport };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./instance-
|
|
4
|
+
} from "./instance-9k44apjz.js";
|
|
5
5
|
import {
|
|
6
6
|
CorrectedError2,
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./instance-
|
|
8
|
+
} from "./instance-f4mxpp6t.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./instance-
|
|
11
|
+
} from "./instance-6vzwhms5.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./instance-
|
|
19
|
+
} from "./instance-e5wkangg.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./instance-
|
|
23
|
+
} from "./instance-7kf7gnm7.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
3
|
+
Service65
|
|
4
|
+
} from "./instance-2ysm8pgm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./instance-
|
|
6
|
+
Service53
|
|
7
|
+
} from "./instance-t5d9whg0.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/provider/configured.ts
|
|
10
10
|
import { Effect, Option } from "effect";
|
|
11
11
|
var configuredSettings2 = Effect.fn("ProviderPlugin.configuredSettings")(function* (id) {
|
|
12
|
-
const providers = yield*
|
|
12
|
+
const providers = yield* Service65;
|
|
13
13
|
const current = (yield* providers.get(id))?.settings;
|
|
14
|
-
const service = yield* Effect.serviceOption(
|
|
14
|
+
const service = yield* Effect.serviceOption(Service53);
|
|
15
15
|
const entries = Option.isSome(service) ? yield* service.value.entries() : [];
|
|
16
16
|
return foldSettings2(entries, id, current);
|
|
17
17
|
});
|
|
@@ -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
|
KVTable2
|
|
7
7
|
} from "./instance-3hepkmqq.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service58,
|
|
17
|
+
node: () => node60
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service58 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
25
|
-
const db = (yield*
|
|
26
|
-
return
|
|
24
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
25
|
+
const db = (yield* Service86).db;
|
|
26
|
+
return Service58.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node60 = makeGlobalNode({ service: Service58, layer, deps: [node90] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service58, node60, exports_kv };
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
catalog2
|
|
11
|
-
} from "./instance-
|
|
11
|
+
} from "./instance-91qna3x0.js";
|
|
12
12
|
import {
|
|
13
13
|
create3
|
|
14
14
|
} from "./instance-rdw6cm16.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./instance-
|
|
16
|
+
Service78,
|
|
17
|
+
node81
|
|
18
|
+
} from "./instance-4y7j986s.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./instance-
|
|
20
|
+
Service72,
|
|
21
|
+
node75
|
|
22
|
+
} from "./instance-yw8t9dwe.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
25
|
} from "./instance-y1fvbwt7.js";
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
var exports_tool = {};
|
|
32
32
|
__export(exports_tool, {
|
|
33
33
|
CallID: () => CallID2,
|
|
34
|
-
Content: () =>
|
|
34
|
+
Content: () => Content2,
|
|
35
35
|
Error: () => Error2,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service49,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node51
|
|
42
42
|
});
|
|
43
|
-
import { CallID as CallID2, Content as
|
|
43
|
+
import { CallID as CallID2, Content as Content2, Error as Error2, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
44
44
|
import { ToolDefinition } from "@opencode/ai";
|
|
45
45
|
import { Tool } from "@opencode/schema/tool";
|
|
46
46
|
import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
|
|
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service49 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
58
|
-
const image = yield*
|
|
56
|
+
var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service72;
|
|
58
|
+
const image = yield* Service78;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
61
61
|
if (item.type !== "file" || !item.mime.startsWith("image/"))
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
184
184
|
}), { discard: true });
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
return
|
|
187
|
+
return Service49.of({
|
|
188
188
|
transform: state.transform,
|
|
189
189
|
reload: state.reload,
|
|
190
190
|
list: () => Effect.sync(() => Array.from(state.get().tools.values())),
|
|
@@ -273,10 +273,10 @@ function namespaceError(name) {
|
|
|
273
273
|
return;
|
|
274
274
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
service:
|
|
276
|
+
var node51 = makeLocationNode({
|
|
277
|
+
service: Service49,
|
|
278
278
|
layer,
|
|
279
|
-
deps: [
|
|
279
|
+
deps: [node75, node81]
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
export { RegistrationError2,
|
|
282
|
+
export { RegistrationError2, Service49, node51, exports_tool, CallID2, Content2, Error2, FileContent3, TextContent2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./instance-
|
|
2
|
+
Service86
|
|
3
|
+
} from "./instance-gxvgt8t9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service85
|
|
6
|
+
} from "./instance-c0jw7tng.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./instance-
|
|
8
|
+
Service42
|
|
9
|
+
} from "./instance-sxzvkvgj.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
12
|
} from "./instance-z5v4ffb3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./instance-
|
|
14
|
+
ID4,
|
|
15
|
+
Service56
|
|
16
|
+
} from "./instance-94t3kz80.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./instance-ec1grn59.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./instance-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./instance-
|
|
25
|
+
} from "./instance-9k44apjz.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
28
|
} from "./instance-c1fqxshp.js";
|
|
@@ -41,12 +41,12 @@ __export(exports_revert, {
|
|
|
41
41
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
42
42
|
import { Effect, Schema } from "effect";
|
|
43
43
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
44
|
-
const instances = yield*
|
|
45
|
-
const database = yield*
|
|
46
|
-
const bus = yield*
|
|
44
|
+
const instances = yield* Service42;
|
|
45
|
+
const database = yield* Service86;
|
|
46
|
+
const bus = yield* Service85;
|
|
47
47
|
return yield* Effect.gen(function* () {
|
|
48
|
-
const snapshot = yield*
|
|
49
|
-
const original = input.session.revert?.snapshot ?
|
|
48
|
+
const snapshot = yield* Service56;
|
|
49
|
+
const original = input.session.revert?.snapshot ? ID4.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
50
50
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
51
51
|
const restore = new Map;
|
|
52
52
|
if (original) {
|
|
@@ -73,13 +73,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
73
73
|
}).pipe(instances.provide(input.session));
|
|
74
74
|
});
|
|
75
75
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
76
|
-
const instances = yield*
|
|
77
|
-
const bus = yield*
|
|
76
|
+
const instances = yield* Service42;
|
|
77
|
+
const bus = yield* Service85;
|
|
78
78
|
yield* Effect.gen(function* () {
|
|
79
|
-
const snapshot = yield*
|
|
79
|
+
const snapshot = yield* Service56;
|
|
80
80
|
if (!session.revert)
|
|
81
81
|
return;
|
|
82
|
-
const original = session.revert.snapshot ?
|
|
82
|
+
const original = session.revert.snapshot ? ID4.make(session.revert.snapshot) : undefined;
|
|
83
83
|
if (original)
|
|
84
84
|
yield* snapshot.restore({
|
|
85
85
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -110,7 +110,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
110
110
|
continue;
|
|
111
111
|
for (const file of message.snapshot.files ?? [])
|
|
112
112
|
if (!files.has(file))
|
|
113
|
-
files.set(file,
|
|
113
|
+
files.set(file, ID4.make(message.snapshot.start));
|
|
114
114
|
}
|
|
115
115
|
return files;
|
|
116
116
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./instance-c0jw7tng.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
8
|
} from "./instance-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./instance-
|
|
10
|
+
Ref4,
|
|
11
|
+
Service82,
|
|
12
|
+
node86
|
|
13
|
+
} from "./instance-jhx7q1qc.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service24,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node27
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service24 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,10 +39,10 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const location = yield*
|
|
45
|
-
const ref =
|
|
42
|
+
var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
43
|
+
const bus = yield* Service85;
|
|
44
|
+
const location = yield* Service82;
|
|
45
|
+
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
48
48
|
error: (type, message, data) => new DeclaredError(type, message, data)
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
82
82
|
const event = registered.event;
|
|
83
83
|
const data = yield* encode(event.schema, args[1]);
|
|
84
84
|
return yield* bus.publish(registered.definition, data, {
|
|
85
|
-
location:
|
|
85
|
+
location: Ref4.make({ directory: ref.directory, workspaceID: ref.workspaceID })
|
|
86
86
|
}).pipe(Effect.asVoid);
|
|
87
87
|
})
|
|
88
88
|
}
|
|
@@ -118,19 +118,19 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service82, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service24.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node27 = makeLocationNode({ service: Service24, layer, deps: [node89, node86] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
132
132
|
metadata: optional2(Schema.Record(Schema.String, Schema.Unknown)),
|
|
133
|
-
location: optional2(
|
|
133
|
+
location: optional2(Ref4)
|
|
134
134
|
};
|
|
135
135
|
var EventData = Schema.Record(Schema.String, Schema.Unknown);
|
|
136
136
|
var jsonSchemas = new WeakMap;
|
|
@@ -206,8 +206,8 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
206
206
|
...payload,
|
|
207
207
|
type: eventType(definition, name),
|
|
208
208
|
data,
|
|
209
|
-
location:
|
|
209
|
+
location: Ref4.make({ directory: ref.directory, workspaceID: ref.workspaceID })
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service24, node27, exports_rpc, define2 };
|