@opencode/core 0.0.0-dev-21062 → 0.0.0-dev-21069
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 +72 -72
- package/dist/aisdk-native.js +75 -75
- package/dist/aisdk.js +80 -80
- package/dist/app.js +9 -9
- package/dist/bus.js +61 -61
- package/dist/chunks/{git-rbpvdgf0.js → git-00bpreyp.js} +7 -7
- package/dist/chunks/{git-27sw9x7x.js → git-02614zk1.js} +17 -17
- package/dist/chunks/{git-3hk2ztfw.js → git-0ff5h7g9.js} +8 -8
- package/dist/chunks/{git-3md19t04.js → git-0qx6w01s.js} +14 -14
- package/dist/chunks/{git-ge8zn40h.js → git-0th69q4z.js} +5 -5
- package/dist/chunks/{git-qnjzkknc.js → git-0tz5f1ee.js} +7 -7
- package/dist/chunks/{git-2gbz9bkd.js → git-0yvmkw8f.js} +1 -1
- package/dist/chunks/{git-jt1egq2b.js → git-0zd41eb9.js} +9 -9
- package/dist/chunks/{git-0wgmrba7.js → git-1468afn5.js} +13 -13
- package/dist/chunks/{git-x61k1gv7.js → git-1jcrrg6s.js} +7 -7
- package/dist/chunks/{git-g6yfr6ja.js → git-1pxz8ven.js} +3 -3
- package/dist/chunks/{git-fxaymqdw.js → git-1w2wqhfv.js} +3 -3
- package/dist/chunks/{git-4p6eznaa.js → git-2119y00b.js} +18 -18
- package/dist/chunks/{git-6mp3ggm1.js → git-23wekjqs.js} +22 -22
- package/dist/chunks/{git-zvm05j0q.js → git-266m7yvg.js} +14 -14
- package/dist/chunks/{git-1hnmhrtt.js → git-2ayr3kwx.js} +10 -10
- package/dist/chunks/{git-3jq4fafe.js → git-2j3rh8vt.js} +13 -13
- package/dist/chunks/{git-v3qh3xqk.js → git-2jfq4a2k.js} +2 -2
- package/dist/chunks/{git-g97vj1p3.js → git-2q9xg5p3.js} +12 -12
- package/dist/chunks/{git-5te1apv5.js → git-2qsqy3dj.js} +29 -29
- package/dist/chunks/{git-cwa6csj7.js → git-2sejkfem.js} +7 -7
- package/dist/chunks/{git-jw0xc3ac.js → git-2tbsc6xa.js} +148 -148
- package/dist/chunks/{git-asvx1cy5.js → git-2yvprtqn.js} +44 -44
- package/dist/chunks/{git-kckqmhre.js → git-30aagwgp.js} +6 -6
- package/dist/chunks/{git-j9tkb0kk.js → git-3cpe3kw7.js} +81 -81
- package/dist/chunks/{git-geje6z9c.js → git-3gt9q2bb.js} +3 -3
- package/dist/chunks/{git-bcys5w9d.js → git-3hyqebky.js} +18 -18
- package/dist/chunks/{git-39381q6g.js → git-3vzj2kxg.js} +24 -24
- package/dist/chunks/{git-dnn66tcs.js → git-3w33sg6k.js} +27 -27
- package/dist/chunks/{git-vpm8vpz0.js → git-48kw51zw.js} +3 -3
- package/dist/chunks/{git-w6zk8pbt.js → git-4jk0qxj4.js} +5 -5
- package/dist/chunks/{git-n0freqwz.js → git-4k8e88tr.js} +2 -2
- package/dist/chunks/{git-8159bw5m.js → git-4kdqwsjh.js} +24 -24
- package/dist/chunks/{git-3es4phk5.js → git-4t5kpmng.js} +38 -38
- package/dist/chunks/{git-jq5qpyxf.js → git-4xhx7w4s.js} +17 -17
- package/dist/chunks/{git-xq7d7py0.js → git-4yjw5cbc.js} +18 -18
- package/dist/chunks/{git-3rx778rd.js → git-5f47q2sq.js} +9 -9
- package/dist/chunks/{git-r81t6b6n.js → git-5jyrmfvy.js} +9 -9
- package/dist/chunks/{git-28t5xsh3.js → git-5mv525pg.js} +20 -20
- package/dist/chunks/{git-h1n9eedh.js → git-5nvx1j92.js} +13 -13
- package/dist/chunks/{git-e80seqcp.js → git-5rzwp8tz.js} +2 -2
- package/dist/chunks/{git-4gw7zdme.js → git-5ycn1s57.js} +12 -12
- package/dist/chunks/{git-9tv8kj20.js → git-67w5jb7s.js} +17 -17
- package/dist/chunks/{git-mnns84tq.js → git-69crj1q0.js} +25 -25
- package/dist/chunks/{git-fe2th2wh.js → git-6f5t57mb.js} +4 -4
- package/dist/chunks/{git-s84ry3mb.js → git-6fw3c6yn.js} +23 -23
- package/dist/chunks/{git-gwcrv1gc.js → git-6jkg52sa.js} +44 -44
- package/dist/chunks/{git-8sze2n9a.js → git-6pc27hjz.js} +1 -1
- package/dist/chunks/{git-5mnnp3cw.js → git-6q4rff1r.js} +53 -53
- package/dist/chunks/{git-gyxaygr4.js → git-6tcpm8dw.js} +45 -45
- package/dist/chunks/{git-7kp85qqg.js → git-6v7mnssa.js} +19 -19
- package/dist/chunks/{git-c7rx12mq.js → git-73g798cj.js} +18 -18
- package/dist/chunks/{git-jnrq1n4d.js → git-7bjh6j87.js} +35 -35
- package/dist/chunks/{git-h1wet0ag.js → git-7c88d4gx.js} +8 -8
- package/dist/chunks/{git-k1am5yw9.js → git-7jwfj2aw.js} +10 -10
- package/dist/chunks/{git-4yt2kt0b.js → git-7tfmmy5j.js} +14 -14
- package/dist/chunks/{git-5y1ssq42.js → git-7venh9gk.js} +20 -20
- package/dist/chunks/{git-59gkzr6d.js → git-7xeqc4s4.js} +39 -39
- package/dist/chunks/{git-xybefm6f.js → git-7zt5x37y.js} +1 -1
- package/dist/chunks/{git-y8jmcg8k.js → git-831gmjmg.js} +4 -4
- package/dist/chunks/{git-jyc9d1z3.js → git-8a1xt0qe.js} +15 -15
- package/dist/chunks/{git-gjcxsqdv.js → git-8cptq6xk.js} +11 -11
- package/dist/chunks/{git-8myf2bph.js → git-8h31457k.js} +27 -27
- package/dist/chunks/{git-xt6nrjvw.js → git-8j6brnn0.js} +15 -15
- package/dist/chunks/{git-m9pkn1rm.js → git-8rta2mgv.js} +12 -12
- package/dist/chunks/{git-0y6maag9.js → git-8v7vnxqj.js} +30 -30
- package/dist/chunks/{git-fe40c1g9.js → git-8xjp7fxv.js} +181 -181
- package/dist/chunks/{git-52fpbh6z.js → git-9c3np669.js} +7 -7
- package/dist/chunks/{git-qpm7s57z.js → git-9nggydkc.js} +10 -10
- package/dist/chunks/{git-m7xf8rkm.js → git-9psrfwvx.js} +16 -16
- package/dist/chunks/{git-9bb8qht6.js → git-9q8t3w4w.js} +9 -9
- package/dist/chunks/{git-f81tjggh.js → git-9sh4wc5j.js} +4 -4
- package/dist/chunks/{git-0y0ec6ym.js → git-9tw20s6t.js} +48 -48
- package/dist/chunks/{git-vhnmz40v.js → git-a0vxgrxv.js} +9 -9
- package/dist/chunks/{git-4w5f3qm5.js → git-a2qe2ev9.js} +7 -7
- package/dist/chunks/{git-pmexrvbd.js → git-acbjzsa7.js} +9 -9
- package/dist/chunks/{git-ttqw03tt.js → git-aeg33gny.js} +9 -9
- package/dist/chunks/{git-at7t4gwn.js → git-afqskp6j.js} +7 -7
- package/dist/chunks/{git-y1gc13fs.js → git-ayrdz2nr.js} +13 -13
- package/dist/chunks/{git-6ees7pqa.js → git-b40n6ccn.js} +4 -4
- package/dist/chunks/{git-4a2776we.js → git-b5r4mbce.js} +8 -8
- package/dist/chunks/{git-f78dsz6n.js → git-bdpzzc2x.js} +8 -8
- package/dist/chunks/{git-myzt0ztr.js → git-bh4vy26f.js} +12 -12
- package/dist/chunks/{git-9hke9rzz.js → git-bnn5vwpb.js} +1 -1
- package/dist/chunks/{git-mshkz34v.js → git-bsps9kxp.js} +4 -4
- package/dist/chunks/{git-5e3m6ttb.js → git-c2jraa9j.js} +20 -20
- package/dist/chunks/{git-ssaywjka.js → git-ca80dkkt.js} +14 -14
- package/dist/chunks/{git-rybfjp7a.js → git-cmbb65yx.js} +17 -17
- package/dist/chunks/{git-dv1qgsyq.js → git-cmwkp3r5.js} +7 -7
- package/dist/chunks/{git-raz7n7tw.js → git-cnh20cya.js} +22 -22
- package/dist/chunks/{git-yrw4mpv0.js → git-ctwn6ggk.js} +10 -10
- package/dist/chunks/{git-gd01rr9s.js → git-cv9a3evq.js} +18 -18
- package/dist/chunks/{git-3y377wv9.js → git-db2wf4at.js} +3 -3
- package/dist/chunks/{git-7bznv11x.js → git-dfxpctz5.js} +21 -21
- package/dist/chunks/{git-chgyesm2.js → git-dkjqkvp1.js} +4 -4
- package/dist/chunks/{git-1a515dmz.js → git-dpxxdp3p.js} +6 -6
- package/dist/chunks/{git-hjwvg3qx.js → git-dq5d42ev.js} +37 -37
- package/dist/chunks/{git-xfkkasph.js → git-drwq78ky.js} +3 -3
- package/dist/chunks/{git-55s65rp4.js → git-dtkbkpn6.js} +15 -15
- package/dist/chunks/{git-b6an89mh.js → git-dywg3qh4.js} +19 -19
- package/dist/chunks/{git-nx34zgwq.js → git-e5s7b6hf.js} +16 -16
- package/dist/chunks/{git-3xn4xn8n.js → git-e6ztw48d.js} +7 -7
- package/dist/chunks/{git-hqbqqsx7.js → git-eaf53vd4.js} +8 -8
- package/dist/chunks/{git-s8d7rejh.js → git-eaj1djv9.js} +5 -5
- package/dist/chunks/{git-rr1z7ahj.js → git-edc28t1d.js} +32 -32
- package/dist/chunks/{git-6n0ste9k.js → git-eh27m2d1.js} +17 -17
- package/dist/chunks/{git-6vmt1kdw.js → git-ekmdazyf.js} +20 -20
- package/dist/chunks/{git-xyq213da.js → git-ex86cwx9.js} +9 -9
- package/dist/chunks/{git-2cahkbfy.js → git-eyh1wkb1.js} +38 -38
- package/dist/chunks/{git-1acjjqhc.js → git-f2n192rq.js} +3 -3
- package/dist/chunks/{git-00b36z4k.js → git-f337py0x.js} +42 -42
- package/dist/chunks/{git-y54hr7f3.js → git-f58gpcny.js} +7 -7
- package/dist/chunks/{git-133h4rxs.js → git-fag8vj58.js} +13 -13
- package/dist/chunks/{git-wtk2ksb2.js → git-fbzjpc5s.js} +19 -19
- package/dist/chunks/{git-wjk3jbnn.js → git-fdgewsy2.js} +49 -49
- package/dist/chunks/{git-e9v5qsfh.js → git-fntcccxw.js} +15 -15
- package/dist/chunks/{git-4434d9q2.js → git-fpecnkgp.js} +7 -7
- package/dist/chunks/{git-1zz9rj5d.js → git-fvkc5bdm.js} +4 -4
- package/dist/chunks/{git-5jebk2rh.js → git-fza1zbnh.js} +18 -18
- package/dist/chunks/{git-fn9hs14h.js → git-g182skvz.js} +3 -3
- package/dist/chunks/{git-2052heee.js → git-g1hadtra.js} +10 -10
- package/dist/chunks/{git-y0p3px76.js → git-g6g1f1f4.js} +30 -30
- package/dist/chunks/{git-a8037f1v.js → git-gaamej5p.js} +8 -8
- package/dist/chunks/{git-5jhv0vnb.js → git-gh1jkbka.js} +312 -312
- package/dist/chunks/{git-w6gd0mvv.js → git-gnh85nqw.js} +15 -15
- package/dist/chunks/{git-dmecs3pv.js → git-gqcfbtm3.js} +24 -24
- package/dist/chunks/git-gw4ygm76.js +26 -0
- package/dist/chunks/{git-d2czbp48.js → git-gw7cjrad.js} +3 -3
- package/dist/chunks/{git-zt0d3ekd.js → git-gykybrp3.js} +2 -2
- package/dist/chunks/{git-w91axksf.js → git-h1vtm10r.js} +12 -12
- package/dist/chunks/{git-02fz4yjj.js → git-ha3rtydb.js} +1 -1
- package/dist/chunks/{git-pvkdhk7d.js → git-hbb48s8v.js} +28 -28
- package/dist/chunks/{git-npw39rc8.js → git-hcv80w8f.js} +6 -6
- package/dist/chunks/{git-mqzqahne.js → git-hfkyxwzf.js} +11 -11
- package/dist/chunks/{git-510fpdjj.js → git-hmt9zk07.js} +33 -33
- package/dist/chunks/{git-q39cs03p.js → git-hrfjxse0.js} +2 -2
- package/dist/chunks/{git-d69z9xpr.js → git-j2fvhsza.js} +10 -10
- package/dist/chunks/{git-gpqws9nq.js → git-j4qww8c3.js} +3 -3
- package/dist/chunks/{git-yf4jcbx9.js → git-j5w2yx54.js} +5 -5
- package/dist/chunks/{git-n2srvep7.js → git-jewzahs7.js} +3 -3
- package/dist/chunks/{git-kprygma0.js → git-jhyzf99q.js} +25 -25
- package/dist/chunks/{git-fww2ha2b.js → git-jmecpmqm.js} +8 -8
- package/dist/chunks/{git-x2hbrvsn.js → git-jmksq526.js} +1 -1
- package/dist/chunks/{git-7wvrqce5.js → git-jrqabhyb.js} +13 -13
- package/dist/chunks/{git-7th6dh9e.js → git-jv7bf4eg.js} +8 -8
- package/dist/chunks/{git-xj1aydcy.js → git-k1n0z3hy.js} +3 -3
- package/dist/chunks/{git-19720hhg.js → git-k4ahcazb.js} +13 -13
- package/dist/chunks/{git-wwx8h3qn.js → git-kad49353.js} +7 -7
- package/dist/chunks/{git-7xe39psp.js → git-kdvnmn04.js} +1 -1
- package/dist/chunks/{git-cmqxwqzx.js → git-kpnmq009.js} +4 -4
- package/dist/chunks/{git-4327w5ky.js → git-krwp2252.js} +9 -9
- package/dist/chunks/{git-chhj7fee.js → git-kzp420br.js} +29 -29
- package/dist/chunks/{git-66mwys5v.js → git-m5pxmjnr.js} +16 -16
- package/dist/chunks/{git-z44656xp.js → git-mc8yk1sj.js} +32 -32
- package/dist/chunks/{git-j85zdcpy.js → git-mh6hy0t6.js} +14 -14
- package/dist/chunks/{git-2zs3ps38.js → git-mkgxfw47.js} +16 -16
- package/dist/chunks/{git-63d46qpn.js → git-mydantps.js} +8 -8
- package/dist/chunks/{git-161hqbep.js → git-mza4dkfk.js} +8 -8
- package/dist/chunks/{git-ds58hxpb.js → git-n5acq6xm.js} +31 -31
- package/dist/chunks/{git-00kba7x3.js → git-n5fp27ar.js} +19 -19
- package/dist/chunks/{git-0qymy61s.js → git-na5v7rrw.js} +33 -33
- package/dist/chunks/{git-svvm20fx.js → git-nb5p96ve.js} +5 -5
- package/dist/chunks/{git-ct2atp7x.js → git-np1yhkch.js} +25 -25
- package/dist/chunks/{git-08mr04zk.js → git-nq13secw.js} +1 -1
- package/dist/chunks/{git-ssf4yhs8.js → git-ns8t88d0.js} +7 -7
- package/dist/chunks/{git-vkjty8zp.js → git-p8q506w0.js} +5 -5
- package/dist/chunks/{git-96k8c7ca.js → git-perpg7kn.js} +27 -27
- package/dist/chunks/{git-mafhwm8q.js → git-pqbxjc4k.js} +8 -8
- package/dist/chunks/{git-y32r5m3m.js → git-qfqkgstd.js} +4 -4
- package/dist/chunks/{git-azh057g0.js → git-qkjhzd8c.js} +18 -18
- package/dist/chunks/{git-58w8wmj1.js → git-qmc0kwyt.js} +19 -19
- package/dist/chunks/{git-ytcapqcx.js → git-qnaf4t8h.js} +20 -20
- package/dist/chunks/{git-4q8aq0yj.js → git-qtpe9amp.js} +4 -4
- package/dist/chunks/{git-r186t613.js → git-qvpm0d7c.js} +19 -19
- package/dist/chunks/{git-e67s7wnb.js → git-r2fg6vv7.js} +6 -6
- package/dist/chunks/{git-nd4tfyg0.js → git-r70na3yp.js} +7 -7
- package/dist/chunks/{git-a16f6bk4.js → git-rj2hqavp.js} +1 -1
- package/dist/chunks/{git-ve85v3xb.js → git-rk7s9xkn.js} +3 -3
- package/dist/chunks/{git-ts0sm5wa.js → git-rmpjc43h.js} +3 -3
- package/dist/chunks/{git-2d0p9y9z.js → git-rqa1jxse.js} +1 -1
- package/dist/chunks/{git-352j6603.js → git-rwywfv65.js} +8 -8
- package/dist/chunks/{git-cm5f7pma.js → git-rxyg1hmn.js} +9 -9
- package/dist/chunks/{git-djyswthr.js → git-s132tc7h.js} +32 -32
- package/dist/chunks/{git-y56ehv6b.js → git-s1kvmffy.js} +8 -8
- package/dist/chunks/{git-kdazpp6j.js → git-s2rmhwt5.js} +28 -28
- package/dist/chunks/{git-5v8fgs5z.js → git-sam7rjxf.js} +16 -16
- package/dist/chunks/{git-gayeec0v.js → git-sgth7ws6.js} +10 -10
- package/dist/chunks/{git-qa3qhgw8.js → git-sxz6gkc3.js} +6 -6
- package/dist/chunks/{git-9rqfv6yv.js → git-t8jxbrbs.js} +5 -5
- package/dist/chunks/{git-747advjj.js → git-tf1zb054.js} +18 -18
- package/dist/chunks/{git-etnbc6at.js → git-tq31zwhn.js} +15 -15
- package/dist/chunks/{git-sz15zhhw.js → git-txm3e8qz.js} +3 -3
- package/dist/chunks/{git-ttqh24zm.js → git-tz4n1mmd.js} +3 -3
- package/dist/chunks/{git-fh3h2rrs.js → git-tzqb1zj9.js} +3 -3
- package/dist/chunks/{git-ev8bzsg1.js → git-v2rmwhj0.js} +6 -6
- package/dist/chunks/{git-7vdkza44.js → git-ve3sm23d.js} +9 -9
- package/dist/chunks/{git-qh6v5qqy.js → git-vhc6xrgv.js} +30 -30
- package/dist/chunks/{git-8e2wevyg.js → git-vrt7w025.js} +27 -27
- package/dist/chunks/{git-64wjsvpw.js → git-vvgkgf2d.js} +7 -7
- package/dist/chunks/{git-2z976w7f.js → git-w0ctrm3b.js} +4 -4
- package/dist/chunks/{git-hkffa77z.js → git-wg81ww38.js} +1 -1
- package/dist/chunks/{git-eq1gkzp1.js → git-wq8r3h7a.js} +7 -7
- package/dist/chunks/{git-kftjr2e3.js → git-wqz4eby1.js} +12 -12
- package/dist/chunks/{git-y3m021e8.js → git-wyhe0yhr.js} +30 -30
- package/dist/chunks/{git-1e8qp1yh.js → git-wyywahvm.js} +24 -24
- package/dist/chunks/{git-c872t358.js → git-x10x1rpr.js} +6 -6
- package/dist/chunks/{git-2qm80vd6.js → git-x3s9gwad.js} +10 -10
- package/dist/chunks/{git-ga0xp5gq.js → git-xknh7n4g.js} +86 -86
- package/dist/chunks/{git-c4nsn6b8.js → git-xrtj00bp.js} +311 -311
- package/dist/chunks/{git-dpkg50ah.js → git-y71avatq.js} +3 -3
- package/dist/chunks/{git-z6c3x22d.js → git-ygdna4kr.js} +3 -3
- package/dist/chunks/{git-bv2ny28d.js → git-yhjwftg3.js} +15 -15
- package/dist/chunks/{git-8jwr2qnf.js → git-ym80zgz3.js} +16 -16
- package/dist/chunks/{git-1ffvrpkg.js → git-ywt8jp22.js} +4 -4
- package/dist/chunks/{git-a09dvcfs.js → git-z0crbjfj.js} +9 -9
- package/dist/chunks/{git-fyn09b5n.js → git-z1sbw1b4.js} +52 -52
- package/dist/chunks/{git-2tj3byjt.js → git-z64re3f0.js} +30 -30
- package/dist/chunks/{git-4kvk04s5.js → git-zdkdeprt.js} +5 -5
- package/dist/chunks/{git-at87fsc1.js → git-zfvpt5cz.js} +29 -29
- package/dist/chunks/{git-ct331857.js → git-zgcpvakh.js} +9 -9
- package/dist/chunks/{git-aj2sbhs3.js → git-zk35yz24.js} +4 -4
- package/dist/chunks/{git-scgrse2b.js → git-zyk1yjk8.js} +3 -3
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +76 -76
- package/dist/config/discovery.js +68 -68
- package/dist/config/normalize.js +83 -83
- package/dist/config/plugin/agent.js +95 -95
- package/dist/config/plugin/command.js +169 -169
- package/dist/config/plugin/compaction.js +121 -121
- package/dist/config/plugin/compatibility.js +108 -108
- package/dist/config/plugin/formatter.js +94 -94
- package/dist/config/plugin/image.js +93 -93
- package/dist/config/plugin/instruction.js +94 -94
- package/dist/config/plugin/location-watcher.js +93 -93
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +94 -94
- package/dist/config/plugin/provider.js +93 -93
- package/dist/config/plugin/reference.js +95 -95
- package/dist/config/plugin/shell.js +93 -93
- package/dist/config/plugin/skill-file.js +83 -83
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +93 -93
- package/dist/config/plugin/source.js +96 -96
- package/dist/config/plugin/tool-output.js +94 -94
- package/dist/config/plugin/websearch.js +92 -92
- package/dist/config/plugin/worktree.js +94 -94
- package/dist/config.js +95 -95
- package/dist/credential.js +75 -75
- package/dist/database/database.js +59 -59
- package/dist/database/drizzle/effect-sqlite/driver.js +11 -11
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +12 -12
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +12 -12
- package/dist/database/migration.gen.js +42 -42
- package/dist/database/migration.js +44 -44
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +228 -228
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +75 -75
- package/dist/environment/index.js +75 -75
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +86 -86
- package/dist/file-mutation.js +76 -76
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +180 -180
- package/dist/filesystem/search.js +83 -83
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +86 -86
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +73 -73
- package/dist/generate.js +85 -85
- package/dist/git.js +8 -8
- 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 +77 -77
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- 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 +311 -311
- package/dist/instruction-discovery.js +75 -75
- package/dist/instructions/builtins.js +73 -73
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +79 -79
- package/dist/job.js +69 -69
- package/dist/kv.js +64 -64
- package/dist/location-activity.js +51 -51
- package/dist/location-lifecycle.js +89 -89
- package/dist/location-service-map.js +68 -68
- package/dist/location-services.js +309 -309
- package/dist/location.js +75 -75
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +91 -91
- package/dist/mcp/instructions.js +104 -104
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +72 -72
- package/dist/modal/models.js +77 -77
- package/dist/model-resolver.js +84 -84
- package/dist/model.js +84 -84
- package/dist/models-dev.js +92 -92
- package/dist/permission/saved.js +68 -68
- package/dist/permission.js +95 -95
- package/dist/persistent-pty/index.js +75 -75
- package/dist/persistent-pty.js +63 -63
- package/dist/plugin/agent.js +67 -67
- package/dist/plugin/command.js +84 -84
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +173 -173
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +285 -285
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +81 -81
- package/dist/plugin/module.js +92 -92
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +84 -84
- package/dist/plugin/provider/amazon-bedrock.js +76 -76
- package/dist/plugin/provider/azure.js +94 -94
- package/dist/plugin/provider/chatgpt.js +92 -92
- package/dist/plugin/provider/cloudflare-ai-gateway.js +91 -91
- package/dist/plugin/provider/cloudflare-workers-ai.js +91 -91
- package/dist/plugin/provider/configured.js +90 -90
- package/dist/plugin/provider/digitalocean.js +78 -78
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +78 -78
- package/dist/plugin/provider/google-vertex.js +91 -91
- package/dist/plugin/provider/llmgateway.js +68 -68
- package/dist/plugin/provider/lmstudio.js +101 -101
- package/dist/plugin/provider/local.js +98 -98
- package/dist/plugin/provider/modal.js +78 -78
- package/dist/plugin/provider/ollama.js +101 -101
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +83 -83
- package/dist/plugin/provider/openrouter.js +77 -77
- package/dist/plugin/provider/poe.js +68 -68
- package/dist/plugin/provider/sap-ai-core.js +76 -76
- package/dist/plugin/provider/snowflake-cortex.js +92 -92
- package/dist/plugin/provider/vercel.js +76 -76
- package/dist/plugin/provider/vllm.js +101 -101
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider.js +138 -138
- package/dist/plugin/sdk.js +68 -68
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +109 -109
- package/dist/plugin/supervisor.js +300 -300
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +72 -72
- package/dist/plugin/vcs/hg.js +72 -72
- package/dist/plugin/verbosity.js +79 -79
- package/dist/plugin/warming.js +92 -92
- 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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +185 -185
- package/dist/project/schema.js +7 -7
- package/dist/project.js +76 -76
- package/dist/provider.js +87 -87
- package/dist/pty.js +82 -82
- package/dist/reference/instructions.js +76 -76
- package/dist/reference.js +74 -74
- package/dist/repository-cache.js +69 -69
- package/dist/ripgrep.js +78 -78
- package/dist/rpc.js +72 -72
- package/dist/session/command.js +65 -65
- package/dist/session/compaction.js +106 -106
- package/dist/session/context.js +124 -124
- package/dist/session/diff.js +72 -72
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +110 -110
- package/dist/session/execution.js +109 -109
- package/dist/session/generate.js +123 -123
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +71 -71
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +67 -67
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +76 -76
- package/dist/session/model-request.js +96 -96
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +109 -109
- package/dist/session/projector.js +69 -69
- package/dist/session/prompt.js +86 -86
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +73 -73
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +182 -182
- package/dist/session/runner/model.js +84 -84
- package/dist/session/runner/publish-llm-event.js +94 -94
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +100 -100
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +135 -135
- package/dist/session/shell.js +105 -105
- package/dist/session/skill.js +85 -85
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +71 -71
- package/dist/session/subagent-job.js +164 -164
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +121 -121
- package/dist/session/to-session-error.js +93 -93
- package/dist/session/transfer.js +107 -107
- package/dist/session.js +176 -176
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +108 -108
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +89 -89
- package/dist/skill.js +92 -92
- package/dist/snapshot.js +79 -79
- package/dist/tool/mcp.js +101 -101
- package/dist/tool/plugin/edit.js +97 -97
- package/dist/tool/plugin/glob.js +100 -100
- package/dist/tool/plugin/grep.js +100 -100
- package/dist/tool/plugin/mcp-resource.js +95 -95
- package/dist/tool/plugin/opencode.js +89 -89
- package/dist/tool/plugin/patch.js +99 -99
- package/dist/tool/plugin/question.js +85 -85
- package/dist/tool/plugin/read.js +101 -101
- package/dist/tool/plugin/shell.js +168 -168
- package/dist/tool/plugin/skill.js +93 -93
- package/dist/tool/plugin/subagent.js +173 -173
- package/dist/tool/plugin/webfetch.js +90 -90
- package/dist/tool/plugin/websearch.js +94 -94
- package/dist/tool/plugin/write.js +97 -97
- package/dist/tool/read-filesystem.js +76 -76
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +77 -77
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +77 -77
- package/dist/vcs.js +75 -75
- package/dist/websearch.js +74 -74
- package/dist/wellknown/plugin.js +64 -64
- package/dist/wellknown.js +71 -71
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +69 -69
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/strategies.js +74 -74
- package/dist/worktree.js +80 -80
- package/package.json +8 -8
- package/dist/chunks/git-28w77qnw.js +0 -26
- /package/dist/chunks/{git-0nde5ztd.js → git-762r0j46.js} +0 -0
- /package/dist/chunks/{git-jx6k168v.js → git-f8kkz21q.js} +0 -0
- /package/dist/chunks/{git-89embc53.js → git-r5y2frqw.js} +0 -0
- /package/dist/chunks/{git-7vtrn64f.js → git-tyxhgj5h.js} +0 -0
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
makeMemoryDriver2
|
|
15
15
|
} from "./git-v7p4zvkq.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./git-
|
|
17
|
+
Service80,
|
|
18
|
+
node84
|
|
19
|
+
} from "./git-sam7rjxf.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./git-
|
|
21
|
+
Service62,
|
|
22
|
+
node65
|
|
23
|
+
} from "./git-qvpm0d7c.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./git-9rqn6x4v.js";
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service51,
|
|
33
|
+
node: () => node54
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound3,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service51,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node54,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service51 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service80;
|
|
66
|
+
const workspace = yield* Service62;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service51.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node54 = makeLocationNode({
|
|
71
|
+
service: Service51,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node84, node65]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service51, node54, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./git-
|
|
4
|
+
} from "./git-4k8e88tr.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./git-
|
|
6
|
+
Service75,
|
|
7
|
+
node79
|
|
8
|
+
} from "./git-4kdqwsjh.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./git-
|
|
10
|
+
Service81,
|
|
11
|
+
node85
|
|
12
|
+
} from "./git-f337py0x.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./git-
|
|
14
|
+
Ref4,
|
|
15
|
+
Service80,
|
|
16
|
+
node84
|
|
17
|
+
} from "./git-sam7rjxf.js";
|
|
18
18
|
import {
|
|
19
19
|
canonical3
|
|
20
|
-
} from "./git-
|
|
20
|
+
} from "./git-tzqb1zj9.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionEvent2
|
|
23
23
|
} from "./git-ec1grn59.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./git-
|
|
25
|
+
Service76,
|
|
26
|
+
node80
|
|
27
|
+
} from "./git-6q4rff1r.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./git-
|
|
29
|
+
Service73,
|
|
30
|
+
node77
|
|
31
|
+
} from "./git-qkjhzd8c.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./git-9rqn6x4v.js";
|
|
@@ -37,23 +37,23 @@ import {
|
|
|
37
37
|
var exports_location_lifecycle = {};
|
|
38
38
|
__export(exports_location_lifecycle, {
|
|
39
39
|
LocationLifecycle: () => exports_location_lifecycle,
|
|
40
|
-
Service: () =>
|
|
41
|
-
node: () =>
|
|
40
|
+
Service: () => Service72,
|
|
41
|
+
node: () => node76
|
|
42
42
|
});
|
|
43
43
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
44
44
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
45
45
|
import { LocationEvent } from "@opencode/schema/location-event";
|
|
46
46
|
var isSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service72 extends Context.Service()("@opencode/LocationLifecycle") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
51
51
|
const bus = yield* Service84;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const permission = yield*
|
|
54
|
-
const forms = yield*
|
|
55
|
-
const rpc = yield*
|
|
56
|
-
const project = yield*
|
|
52
|
+
const location = yield* Service80;
|
|
53
|
+
const permission = yield* Service76;
|
|
54
|
+
const forms = yield* Service75;
|
|
55
|
+
const rpc = yield* Service73;
|
|
56
|
+
const project = yield* Service81;
|
|
57
57
|
const scope = yield* Effect.scope;
|
|
58
58
|
yield* project.activate(location.project.id);
|
|
59
59
|
const unsubscribe = yield* bus.listen((event) => {
|
|
@@ -76,19 +76,19 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
76
76
|
yield* forms.close;
|
|
77
77
|
yield* rpc.close;
|
|
78
78
|
yield* bus.publish(LocationEvent.Shutdown, {}, {
|
|
79
|
-
location:
|
|
79
|
+
location: Ref4.make({ directory: location.directory, workspaceID: location.workspaceID })
|
|
80
80
|
});
|
|
81
81
|
}).pipe(Effect.ensuring(Deferred.succeed(done, undefined)));
|
|
82
82
|
}).pipe(Effect.uninterruptible);
|
|
83
|
-
return
|
|
83
|
+
return Service72.of({
|
|
84
84
|
isClosed: () => closed,
|
|
85
85
|
shutdown
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
|
-
var
|
|
89
|
-
service:
|
|
88
|
+
var node76 = makeLocationNode({
|
|
89
|
+
service: Service72,
|
|
90
90
|
layer,
|
|
91
|
-
deps: [node88,
|
|
91
|
+
deps: [node88, node84, node80, node85, node79, node77]
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
export {
|
|
94
|
+
export { Service72, node76, exports_location_lifecycle };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./git-
|
|
4
|
+
} from "./git-zk35yz24.js";
|
|
5
5
|
import {
|
|
6
6
|
CorrectedError2,
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./git-
|
|
8
|
+
} from "./git-6q4rff1r.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./git-
|
|
11
|
+
} from "./git-wyhe0yhr.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 "./git-
|
|
19
|
+
} from "./git-2yvprtqn.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./git-
|
|
23
|
+
} from "./git-wqz4eby1.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./git-
|
|
3
|
+
} from "./git-9nggydkc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./git-
|
|
6
|
+
} from "./git-4k8e88tr.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./git-
|
|
9
|
+
Event17
|
|
10
|
+
} from "./git-vrt7w025.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./git-
|
|
13
|
+
} from "./git-db2wf4at.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID10,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./git-
|
|
18
|
+
} from "./git-wyhe0yhr.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./git-
|
|
20
|
+
Service47
|
|
21
|
+
} from "./git-jmecpmqm.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID9,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./git-
|
|
26
|
+
} from "./git-xrtj00bp.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./git-
|
|
29
|
+
} from "./git-perpg7kn.js";
|
|
30
30
|
import {
|
|
31
31
|
supports2,
|
|
32
32
|
resolve2
|
|
33
|
-
} from "./git-
|
|
33
|
+
} from "./git-2jfq4a2k.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
ID6,
|
|
36
|
+
Input14,
|
|
37
37
|
Response2
|
|
38
|
-
} from "./git-
|
|
38
|
+
} from "./git-6fw3c6yn.js";
|
|
39
39
|
|
|
40
40
|
// src/plugin/provider/opencode.ts
|
|
41
41
|
import { Duration, Effect, Equal, Option, Schema, SchemaGetter, Scope, Semaphore, Stream } from "effect";
|
|
@@ -61,7 +61,7 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
|
|
|
61
61
|
var RemoteResponse = Schema.Struct({
|
|
62
62
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
63
63
|
websearch: Schema.Struct({
|
|
64
|
-
providerID:
|
|
64
|
+
providerID: ID6
|
|
65
65
|
}).pipe(Schema.optional),
|
|
66
66
|
mcp: Schema.Struct({
|
|
67
67
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -112,7 +112,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
112
112
|
}
|
|
113
113
|
function oauth(http) {
|
|
114
114
|
return {
|
|
115
|
-
integrationID:
|
|
115
|
+
integrationID: ID10.make("opencode"),
|
|
116
116
|
method: {
|
|
117
117
|
id: methodID,
|
|
118
118
|
type: "oauth",
|
|
@@ -179,7 +179,7 @@ var OpencodePlugin2 = define({
|
|
|
179
179
|
const bus = yield* Service84;
|
|
180
180
|
const client = yield* HttpClient.HttpClient;
|
|
181
181
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
182
|
-
const managed = yield*
|
|
182
|
+
const managed = yield* Service47;
|
|
183
183
|
const scope = yield* Scope.Scope;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -231,7 +231,7 @@ var OpencodePlugin2 = define({
|
|
|
231
231
|
providers.update(providerID, (provider) => {
|
|
232
232
|
if (source && source.provider !== provider)
|
|
233
233
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
234
|
-
provider.integrationID =
|
|
234
|
+
provider.integrationID = ID10.make("opencode");
|
|
235
235
|
if (item.canonical !== undefined)
|
|
236
236
|
provider.canonical = item.canonical;
|
|
237
237
|
if (item.name !== undefined)
|
|
@@ -303,7 +303,7 @@ var OpencodePlugin2 = define({
|
|
|
303
303
|
sourceConnection: snapshot.connection
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
const item = providers.get(
|
|
306
|
+
const item = providers.get(ID9.opencode);
|
|
307
307
|
if (!item)
|
|
308
308
|
return;
|
|
309
309
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -315,7 +315,7 @@ var OpencodePlugin2 = define({
|
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
yield* ctx.model.transform((models) => {
|
|
318
|
-
const item = models.provider.get(
|
|
318
|
+
const item = models.provider.get(ID9.opencode);
|
|
319
319
|
if (!item)
|
|
320
320
|
return;
|
|
321
321
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -349,7 +349,7 @@ var OpencodePlugin2 = define({
|
|
|
349
349
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
350
350
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
351
351
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
352
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
352
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
353
353
|
query: input.query,
|
|
354
354
|
providerID: descriptor.providerID
|
|
355
355
|
}));
|
|
@@ -404,10 +404,10 @@ var OpencodePlugin2 = define({
|
|
|
404
404
|
});
|
|
405
405
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
406
406
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
407
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
407
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID9.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
408
408
|
});
|
|
409
409
|
yield* guard(snapshot);
|
|
410
|
-
yield* bus.subscribe(
|
|
410
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
411
411
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
412
412
|
})
|
|
413
413
|
});
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
gitExecutable2
|
|
11
11
|
} from "./git-ef5x83kb.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./git-
|
|
13
|
+
Service80
|
|
14
|
+
} from "./git-sam7rjxf.js";
|
|
15
15
|
import {
|
|
16
16
|
DiffError2
|
|
17
|
-
} from "./git-
|
|
17
|
+
} from "./git-tf1zb054.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./git-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
// src/plugin/vcs/git.ts
|
|
23
23
|
var exports_git = {};
|
|
24
24
|
__export(exports_git, {
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin34,
|
|
26
26
|
VcsGitPlugin: () => exports_git
|
|
27
27
|
});
|
|
28
28
|
import { randomUUID } from "crypto";
|
|
@@ -33,10 +33,10 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
import { ChildProcess } from "effect/process";
|
|
35
35
|
import { AppProcess } from "@opencode/util/process";
|
|
36
|
-
var
|
|
36
|
+
var Plugin34 = define({
|
|
37
37
|
id: "opencode.vcs.git",
|
|
38
38
|
effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
|
|
39
|
-
const location = yield*
|
|
39
|
+
const location = yield* Service80;
|
|
40
40
|
if (location.vcs && location.vcs.type !== "git")
|
|
41
41
|
return;
|
|
42
42
|
const processes = yield* AppProcess.Service;
|
|
@@ -553,4 +553,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
|
553
553
|
return yield* diffAgainstRef(ctx, ref, options);
|
|
554
554
|
});
|
|
555
555
|
|
|
556
|
-
export {
|
|
556
|
+
export { Plugin34, exports_git };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./git-
|
|
2
|
+
ID10,
|
|
3
|
+
Service69
|
|
4
|
+
} from "./git-wyhe0yhr.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/llmgateway.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
9
9
|
var LLMGatewayPlugin2 = define({
|
|
10
10
|
id: "opencode.provider.llmgateway",
|
|
11
11
|
effect: Effect.fn(function* (ctx) {
|
|
12
|
-
const integrations = yield*
|
|
12
|
+
const integrations = yield* Service69;
|
|
13
13
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
14
14
|
yield* ctx.provider.transform((evt) => {
|
|
15
15
|
for (const item of evt.list()) {
|
|
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
19
19
|
continue;
|
|
20
20
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
21
21
|
continue;
|
|
22
|
-
if (!configured.has(
|
|
22
|
+
if (!configured.has(ID10.make(item.provider.id)))
|
|
23
23
|
continue;
|
|
24
24
|
evt.update(item.provider.id, (provider) => {
|
|
25
25
|
provider.headers = {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./git-
|
|
4
|
+
} from "./git-4k8e88tr.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./git-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./git-
|
|
10
|
+
Service80,
|
|
11
|
+
node84
|
|
12
|
+
} from "./git-sam7rjxf.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
ID12,
|
|
14
|
+
ID9,
|
|
16
15
|
modelSettings2,
|
|
17
16
|
mergeOverlay2,
|
|
18
17
|
mergeHeaders2,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
Service68,
|
|
19
|
+
node72,
|
|
20
|
+
Event15,
|
|
21
|
+
rewrite2
|
|
22
|
+
} from "./git-xrtj00bp.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
25
|
} from "./git-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: () => Event13,
|
|
34
34
|
Family: () => Family2,
|
|
35
|
-
ID: () =>
|
|
35
|
+
ID: () => ID8,
|
|
36
36
|
Info: () => Info17,
|
|
37
37
|
Model: () => exports_model2,
|
|
38
38
|
ReasoningField: () => ReasoningField2,
|
|
39
39
|
Ref: () => Ref2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service65,
|
|
41
41
|
VariantID: () => VariantID2,
|
|
42
42
|
compatibility: () => compatibility2,
|
|
43
43
|
mergeCapabilities: () => mergeCapabilities2,
|
|
44
|
-
node: () =>
|
|
44
|
+
node: () => node69,
|
|
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 Event13 } from "@opencode/schema/model";
|
|
53
|
+
var ID8 = Model.ID;
|
|
54
54
|
var VariantID2 = Model.VariantID;
|
|
55
55
|
var Family2 = Model.Family;
|
|
56
56
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -69,12 +69,12 @@ var Cost2 = Model.Cost;
|
|
|
69
69
|
var Ref2 = Model.Ref;
|
|
70
70
|
var Info17 = Model.Info;
|
|
71
71
|
|
|
72
|
-
class
|
|
72
|
+
class Service65 extends Context.Service()("@opencode/Model") {
|
|
73
73
|
}
|
|
74
|
-
var layer = Layer.effect(
|
|
75
|
-
const providers = yield*
|
|
74
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
75
|
+
const providers = yield* Service68;
|
|
76
76
|
const bus = yield* Service84;
|
|
77
|
-
const location = yield*
|
|
77
|
+
const location = yield* Service80;
|
|
78
78
|
let input;
|
|
79
79
|
const state = create3({
|
|
80
80
|
name: "model",
|
|
@@ -209,8 +209,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
209
209
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
|
-
yield* bus.subscribe(
|
|
213
|
-
return
|
|
212
|
+
yield* bus.subscribe(Event15.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
213
|
+
return Service65.of({
|
|
214
214
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
215
215
|
reload,
|
|
216
216
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -229,7 +229,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
229
229
|
})
|
|
230
230
|
});
|
|
231
231
|
}));
|
|
232
|
-
var
|
|
232
|
+
var node69 = makeLocationNode({ service: Service65, layer, deps: [node72, node88, node84] });
|
|
233
233
|
var PREFERRED_FREE = [
|
|
234
234
|
"big-pickle",
|
|
235
235
|
"deepseek-v4.1-flash-free",
|
|
@@ -237,7 +237,7 @@ var PREFERRED_FREE = [
|
|
|
237
237
|
"muse-spark-1.3-contributor-free"
|
|
238
238
|
];
|
|
239
239
|
function preferFree(models) {
|
|
240
|
-
const freeOnly = models.every((model) => model.providerID ===
|
|
240
|
+
const freeOnly = models.every((model) => model.providerID === ID9.opencode && !model.cost.some((cost) => cost.input > 0));
|
|
241
241
|
if (!freeOnly)
|
|
242
242
|
return models;
|
|
243
243
|
const picks = PREFERRED_FREE.flatMap((id) => models.find((model) => model.id === id) ?? []);
|
|
@@ -256,9 +256,9 @@ function compatibility2(input) {
|
|
|
256
256
|
function parse5(input) {
|
|
257
257
|
const index = input.indexOf("/");
|
|
258
258
|
return {
|
|
259
|
-
providerID:
|
|
260
|
-
modelID:
|
|
259
|
+
providerID: ID9.make(index === -1 ? input : input.slice(0, index)),
|
|
260
|
+
modelID: ID8.make(index === -1 ? "" : input.slice(index + 1))
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
export {
|
|
264
|
+
export { ID8, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, mergeCapabilities2, Cost2, Ref2, Info17, Service65, node69, supportsText2, compatibility2, parse5, exports_model2, Event13 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./git-
|
|
3
|
+
} from "./git-9nggydkc.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./git-
|
|
6
|
+
} from "./git-ywt8jp22.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./git-9rqn6x4v.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin36,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint2 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin36 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin20 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint2, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin20 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint2, Plugin36, exports_firecrawl };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./git-
|
|
5
|
+
} from "./git-ha3rtydb.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
|
-
|
|
9
|
+
make23,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./git-
|
|
11
|
+
} from "./git-0th69q4z.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./git-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ __export(exports_drizzle, {
|
|
|
22
22
|
EffectSQLiteDatabase: () => EffectSQLiteDatabase2,
|
|
23
23
|
EffectSQLiteSession: () => EffectSQLiteSession2,
|
|
24
24
|
EffectSQLiteTransaction: () => EffectSQLiteTransaction2,
|
|
25
|
-
make: () =>
|
|
25
|
+
make: () => make23,
|
|
26
26
|
makeWithDefaults: () => makeWithDefaults2,
|
|
27
27
|
managesTransactionsNatively: () => managesTransactionsNatively2
|
|
28
28
|
});
|