@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
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service60,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node63
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service60 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service60.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node63 = makeLocationNode({
|
|
137
|
+
service: Service60,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service60, node63, exports_tool_output2 };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./git-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./git-
|
|
5
|
+
Service80
|
|
6
|
+
} from "./git-sam7rjxf.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./git-
|
|
8
|
+
Service54
|
|
9
|
+
} from "./git-eyh1wkb1.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./git-
|
|
11
|
+
Service46
|
|
12
|
+
} from "./git-73g798cj.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
15
|
} from "./git-qsdy395h.js";
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
var exports_worktree = {};
|
|
22
22
|
__export(exports_worktree, {
|
|
23
23
|
ConfigWorktreePlugin: () => exports_worktree,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin24
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin24 = define({
|
|
31
31
|
id: "opencode.config.worktree",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const location = yield*
|
|
33
|
+
const config = yield* Service54;
|
|
34
|
+
const location = yield* Service80;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service46;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, worktrees.reload());
|
|
38
38
|
yield* worktrees.transform((editor) => {
|
|
39
39
|
for (const entry of loaded.entries) {
|
|
@@ -48,4 +48,4 @@ var Plugin37 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin24, exports_worktree };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./git-
|
|
3
|
+
} from "./git-9nggydkc.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./git-9rqn6x4v.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin39,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
13
|
endpoint: () => endpoint5
|
|
14
14
|
});
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin39 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -77,4 +77,4 @@ var Plugin19 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export { endpoint5,
|
|
80
|
+
export { endpoint5, Plugin39, exports_tavily };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./git-
|
|
4
|
+
} from "./git-4k8e88tr.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./git-
|
|
7
|
+
} from "./git-9psrfwvx.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
10
|
} from "./git-3t0ybcrp.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError2,
|
|
20
|
+
Options: () => Options3,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service18,
|
|
23
23
|
UnavailableError: () => UnavailableError3,
|
|
24
24
|
available: () => available2,
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
25
|
+
configured: () => configured3,
|
|
26
|
+
layer: () => layer11,
|
|
27
|
+
node: () => node21
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -36,7 +36,7 @@ import { Global } from "@opencode/util/global";
|
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
38
|
import { available as available2 } from "#persistent-pty-binary";
|
|
39
|
-
var
|
|
39
|
+
var Options3 = Schema.Struct({
|
|
40
40
|
handoff: Schema.optional(Handoff),
|
|
41
41
|
root: Schema.optional(Schema.String)
|
|
42
42
|
});
|
|
@@ -46,14 +46,14 @@ class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableE
|
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class NotFoundError2 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
50
50
|
ptyID: Pty.ID
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service18 extends Context.Service()("@opencode/PersistentPty") {
|
|
55
55
|
}
|
|
56
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
56
|
+
var makeLayer = (options = {}) => Layer.effect(Service18, Effect.gen(function* () {
|
|
57
57
|
const bus = yield* Service84;
|
|
58
58
|
const global = yield* Global.Service;
|
|
59
59
|
const context = yield* Effect.context();
|
|
@@ -76,7 +76,7 @@ var makeLayer = (options = {}) => Layer.effect(Service25, Effect.gen(function* (
|
|
|
76
76
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
77
77
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
78
78
|
if (!found)
|
|
79
|
-
return yield* new
|
|
79
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
80
80
|
return found;
|
|
81
81
|
});
|
|
82
82
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -243,7 +243,7 @@ var makeLayer = (options = {}) => Layer.effect(Service25, Effect.gen(function* (
|
|
|
243
243
|
detach: attachment.detach
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
return
|
|
246
|
+
return Service18.of({
|
|
247
247
|
list,
|
|
248
248
|
get,
|
|
249
249
|
create,
|
|
@@ -259,13 +259,13 @@ var makeLayer = (options = {}) => Layer.effect(Service25, Effect.gen(function* (
|
|
|
259
259
|
attach
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
service:
|
|
265
|
-
layer: options === undefined ?
|
|
262
|
+
var layer11 = makeLayer();
|
|
263
|
+
var configured3 = (options) => makeGlobalNode({
|
|
264
|
+
service: Service18,
|
|
265
|
+
layer: options === undefined ? layer11 : makeLayer(options),
|
|
266
266
|
deps: [node88, Global.node]
|
|
267
267
|
});
|
|
268
|
-
var
|
|
268
|
+
var node21 = configured3();
|
|
269
269
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
270
270
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
271
271
|
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options3, UnavailableError3, NotFoundError2, Service18, layer11, configured3, node21, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./git-
|
|
2
|
+
Service80
|
|
3
|
+
} from "./git-sam7rjxf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID8,
|
|
6
6
|
Family2
|
|
7
|
-
} from "./git-
|
|
7
|
+
} from "./git-perpg7kn.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./git-
|
|
9
|
+
Service54
|
|
10
|
+
} from "./git-eyh1wkb1.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./git-
|
|
12
|
+
Service51
|
|
13
|
+
} from "./git-n5fp27ar.js";
|
|
14
14
|
import {
|
|
15
15
|
spawner2
|
|
16
|
-
} from "./git-
|
|
16
|
+
} from "./git-1w2wqhfv.js";
|
|
17
17
|
import {
|
|
18
18
|
foldSettings2
|
|
19
|
-
} from "./git-
|
|
19
|
+
} from "./git-x10x1rpr.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/provider/local.ts
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -32,9 +32,9 @@ function createLocalProviderPlugin2(input) {
|
|
|
32
32
|
id: input.id,
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
34
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
35
|
-
const config = yield*
|
|
36
|
-
const environment = yield* Effect.serviceOption(
|
|
37
|
-
const location = yield* Effect.serviceOption(
|
|
35
|
+
const config = yield* Service54;
|
|
36
|
+
const environment = yield* Effect.serviceOption(Service51);
|
|
37
|
+
const location = yield* Effect.serviceOption(Service80);
|
|
38
38
|
const defaultOrigin = origin ?? (shellParserWasm.bash === "" || Option.isSome(location) && location.value.workspaceID !== undefined || Option.isSome(environment) && environment.value.spawner === spawner2 ? undefined : input.origin);
|
|
39
39
|
const source = { current: configured(yield* config.entries(), input.providerID, defaultOrigin, suffix) };
|
|
40
40
|
const loaded = { models: [], hash: "[]" };
|
|
@@ -63,7 +63,7 @@ function createLocalProviderPlugin2(input) {
|
|
|
63
63
|
for (const item of loaded.models) {
|
|
64
64
|
const spec = input.model(item);
|
|
65
65
|
providers.models.update(input.providerID, spec.id, (model) => {
|
|
66
|
-
model.modelID =
|
|
66
|
+
model.modelID = ID8.make(spec.id);
|
|
67
67
|
model.name = spec.name || spec.id;
|
|
68
68
|
model.family = spec.family ? Family2.make(spec.family) : undefined;
|
|
69
69
|
model.capabilities = {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./git-
|
|
2
|
+
ID18
|
|
3
|
+
} from "./git-fbzjpc5s.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./git-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./git-
|
|
8
|
+
Info11
|
|
9
|
+
} from "./git-hcv80w8f.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
|
-
} from "./git-
|
|
12
|
+
} from "./git-hrfjxse0.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./git-
|
|
15
|
+
Service54
|
|
16
|
+
} from "./git-eyh1wkb1.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
19
|
} from "./git-8m6m0r52.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./git-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/config/plugin/agent.ts
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
27
|
-
ConfigAgentPlugin: () =>
|
|
28
|
-
Plugin: () =>
|
|
25
|
+
var exports_agent = {};
|
|
26
|
+
__export(exports_agent, {
|
|
27
|
+
ConfigAgentPlugin: () => exports_agent,
|
|
28
|
+
Plugin: () => Plugin28
|
|
29
29
|
});
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { Document, Info } from "@opencode/schema/config";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info11);
|
|
44
44
|
var decodeConfig = Schema.decodeUnknownOption(Info);
|
|
45
45
|
var pathActions = ["external_directory", "read", "edit"];
|
|
46
46
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
47
|
-
var
|
|
47
|
+
var Plugin28 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service54;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -76,13 +76,13 @@ var Plugin38 = define({
|
|
|
76
76
|
const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
|
|
77
77
|
const configuredDefault = latest2(loaded.documents, "default_agent");
|
|
78
78
|
if (configuredDefault !== undefined)
|
|
79
|
-
editor.default(
|
|
79
|
+
editor.default(ID18.make(configuredDefault));
|
|
80
80
|
for (const current of editor.list()) {
|
|
81
81
|
editor.update(current.id, (agent) => agent.permissions.push(...permissions));
|
|
82
82
|
}
|
|
83
83
|
for (const document of loaded.documents) {
|
|
84
84
|
for (const [id, item] of Object.entries(document.info.agents ?? {})) {
|
|
85
|
-
const agentID =
|
|
85
|
+
const agentID = ID18.make(id);
|
|
86
86
|
if (item.disabled) {
|
|
87
87
|
editor.remove(agentID);
|
|
88
88
|
continue;
|
|
@@ -161,4 +161,4 @@ function decode(file, content) {
|
|
|
161
161
|
return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { Plugin28, exports_agent };
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service5,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node7
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service5 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node7 = makeLocationNode({
|
|
19
|
+
service: Service5,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service5, Service5.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service5, node7, bound2, exports_instance2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./git-
|
|
4
|
+
} from "./git-4k8e88tr.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./git-rdw6cm16.js";
|
|
@@ -10,24 +10,24 @@ import {
|
|
|
10
10
|
} from "./git-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/command.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Command: () =>
|
|
16
|
-
Event: () =>
|
|
13
|
+
var exports_command5 = {};
|
|
14
|
+
__export(exports_command5, {
|
|
15
|
+
Command: () => exports_command5,
|
|
16
|
+
Event: () => Event11,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info15,
|
|
19
|
+
NotFoundError: () => NotFoundError7,
|
|
20
|
+
Service: () => Service59,
|
|
21
|
+
layer: () => layer24,
|
|
22
|
+
node: () => node62
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event11 } from "@opencode/schema/command";
|
|
28
|
+
var Info15 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError7 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service59 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var layer24 = Layer.effect(Service59, Effect.gen(function* () {
|
|
45
45
|
const bus = yield* Service84;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
@@ -51,11 +51,11 @@ var layer19 = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info15.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service59.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,14 +66,14 @@ var layer19 = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError7({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
74
|
+
var node62 = makeLocationNode({
|
|
75
|
+
service: Service59,
|
|
76
|
+
layer: layer24,
|
|
77
77
|
deps: [node88]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info15, NotFoundError7, ExecutionError2, Service59, layer24, node62, exports_command5, Event11 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./git-
|
|
3
|
+
} from "./git-9nggydkc.js";
|
|
4
4
|
import {
|
|
5
5
|
collectBoundedResponseBody2
|
|
6
6
|
} from "./git-3v8g72cx.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_RESPONSE_BYTES3,
|
|
9
9
|
call2
|
|
10
|
-
} from "./git-
|
|
10
|
+
} from "./git-ywt8jp22.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./git-9rqn6x4v.js";
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
// src/plugin/websearch/tinyfish.ts
|
|
16
16
|
var exports_tinyfish = {};
|
|
17
17
|
__export(exports_tinyfish, {
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin37,
|
|
19
19
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
20
|
-
endpoint: () =>
|
|
20
|
+
endpoint: () => endpoint3
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Duration, Effect, Option, Schema } from "effect";
|
|
24
24
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
25
|
-
var
|
|
25
|
+
var endpoint3 = "https://agent.tinyfish.ai/mcp";
|
|
26
26
|
var McpInput = Schema.Struct({
|
|
27
27
|
query: Schema.String
|
|
28
28
|
});
|
|
@@ -51,7 +51,7 @@ var InitializedNotification = Schema.Struct({
|
|
|
51
51
|
jsonrpc: Schema.Literal("2.0"),
|
|
52
52
|
method: Schema.Literal("notifications/initialized")
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var Plugin37 = define({
|
|
55
55
|
id: "opencode.websearch.tinyfish",
|
|
56
56
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
57
57
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -78,7 +78,7 @@ var Plugin16 = define({
|
|
|
78
78
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
79
79
|
};
|
|
80
80
|
const session = credential?.type === "key" ? yield* initialize(http, headers) : undefined;
|
|
81
|
-
const result = yield* call2(http,
|
|
81
|
+
const result = yield* call2(http, endpoint3, "search", { input: McpInput, output: McpOutput }, { query: input.query }, { ...headers, ...session === undefined ? {} : { "Mcp-Session-Id": session } });
|
|
82
82
|
const content = result?.content.find((item) => item.text);
|
|
83
83
|
const response = content ? Option.getOrUndefined(decodeSearchResponse(content.text)) : undefined;
|
|
84
84
|
return response?.results.map((item) => ({
|
|
@@ -94,7 +94,7 @@ var Plugin16 = define({
|
|
|
94
94
|
});
|
|
95
95
|
var initialize = (http, headers) => Effect.gen(function* () {
|
|
96
96
|
const client = HttpClient.withScope(HttpClient.filterStatusOk(http));
|
|
97
|
-
const request = yield* HttpClientRequest.post(
|
|
97
|
+
const request = yield* HttpClientRequest.post(endpoint3).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders(headers), HttpClientRequest.schemaBodyJson(InitializeRequest)({
|
|
98
98
|
jsonrpc: "2.0",
|
|
99
99
|
id: 1,
|
|
100
100
|
method: "initialize",
|
|
@@ -109,7 +109,7 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
109
109
|
const session = response.headers["mcp-session-id"];
|
|
110
110
|
if (session === undefined)
|
|
111
111
|
return yield* Effect.fail(new Error("TinyFish MCP initialize did not return an Mcp-Session-Id header"));
|
|
112
|
-
const notification = yield* HttpClientRequest.post(
|
|
112
|
+
const notification = yield* HttpClientRequest.post(endpoint3).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders({ ...headers, "Mcp-Session-Id": session }), HttpClientRequest.schemaBodyJson(InitializedNotification)({
|
|
113
113
|
jsonrpc: "2.0",
|
|
114
114
|
method: "notifications/initialized"
|
|
115
115
|
}));
|
|
@@ -120,4 +120,4 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
120
120
|
orElse: () => Effect.fail(new Error("TinyFish initialize request timed out"))
|
|
121
121
|
}));
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { endpoint3, Plugin37, exports_tinyfish };
|