@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
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./git-
|
|
2
|
+
ID18,
|
|
3
|
+
Service83
|
|
4
|
+
} from "./git-fbzjpc5s.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./git-
|
|
7
|
+
Service65
|
|
8
|
+
} from "./git-perpg7kn.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./git-
|
|
11
|
+
Service54
|
|
12
|
+
} from "./git-eyh1wkb1.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./git-
|
|
15
|
+
} from "./git-48kw51zw.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./git-
|
|
17
|
+
Service53
|
|
18
|
+
} from "./git-7tfmmy5j.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./git-
|
|
21
|
+
Service76
|
|
22
|
+
} from "./git-6q4rff1r.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./git-
|
|
24
|
+
Service20
|
|
25
|
+
} from "./git-3cpe3kw7.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
28
|
} from "./git-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
30
|
Service10
|
|
31
|
-
} from "./git-
|
|
31
|
+
} from "./git-aeg33gny.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./git-9rqn6x4v.js";
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
39
|
+
Input: () => Input8,
|
|
40
|
+
Output: () => Output6,
|
|
41
41
|
Plugin: () => Plugin9,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description3,
|
|
44
|
+
name: () => name8
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name8 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input8 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input7 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output6 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description3 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -89,12 +89,12 @@ var description2 = [
|
|
|
89
89
|
var Plugin9 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
92
|
+
const sessions = yield* Service20;
|
|
93
|
+
const jobs = yield* Service53;
|
|
94
|
+
const agents = yield* Service83;
|
|
95
|
+
const config = yield* Service54;
|
|
96
|
+
const permission = yield* Service76;
|
|
97
|
+
const models = yield* Service65;
|
|
98
98
|
const subagents = yield* Service10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
@@ -115,11 +115,11 @@ var Plugin9 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name8,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description3,
|
|
121
|
+
input: Input8,
|
|
122
|
+
output: Output6,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin9 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name8,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin9 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID18.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name8 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name8];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name8, Input8, Output6, description3, Plugin9, exports_subagent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./git-
|
|
3
|
+
} from "./git-ca80dkkt.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/lmstudio.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -19,7 +19,7 @@ var RemoteModel = Schema.Struct({
|
|
|
19
19
|
}).pipe(Schema.optional)
|
|
20
20
|
});
|
|
21
21
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
22
|
-
var
|
|
22
|
+
var make10 = createLocalProviderPlugin2({
|
|
23
23
|
id: "opencode.provider.lmstudio",
|
|
24
24
|
providerID: "lmstudio",
|
|
25
25
|
name: "LM Studio",
|
|
@@ -38,6 +38,6 @@ var make8 = createLocalProviderPlugin2({
|
|
|
38
38
|
context: item.loaded_instances.length === 0 ? item.max_context_length : Math.min(...item.loaded_instances.map((instance) => instance.config.context_length))
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
var LMStudioPlugin2 =
|
|
41
|
+
var LMStudioPlugin2 = make10();
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { make10, LMStudioPlugin2 };
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event8,
|
|
15
15
|
Native: () => Native3,
|
|
16
16
|
Options: () => Options8,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service55,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
20
|
configured: () => configured9,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer23,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node58,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event8 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load4());
|
|
@@ -57,14 +57,14 @@ var Options8 = Schema.Struct({
|
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service55 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer23 = (options) => Layer.effect(Service55, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service55.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer25 = (options) => Layer.effect(Service61, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service55.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer23().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service55).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service55, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -165,9 +165,9 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
167
|
function configured9(options) {
|
|
168
|
-
return makeGlobalNode({ service:
|
|
168
|
+
return makeGlobalNode({ service: Service55, layer: layer23(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node58 = configured9();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event8, hasNativeBinding2, Native3, Options8, Service55, Test3, layer23, testLayer3, nativeLayer2, nativeNode2, configured9, node58, exports_watcher };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./git-
|
|
3
|
+
} from "./git-9nggydkc.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./git-
|
|
6
|
+
Service70
|
|
7
|
+
} from "./git-vrt7w025.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID10,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./git-
|
|
11
|
+
} from "./git-wyhe0yhr.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID9,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./git-
|
|
15
|
+
} from "./git-xrtj00bp.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID9.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID10.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -69,8 +69,8 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service70;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID10.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./git-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./git-
|
|
5
|
+
Service80,
|
|
6
|
+
node84
|
|
7
|
+
} from "./git-sam7rjxf.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./git-
|
|
9
|
+
Service50,
|
|
10
|
+
node53
|
|
11
|
+
} from "./git-yhjwftg3.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options6,
|
|
25
|
+
Service: () => Service49,
|
|
26
|
+
configured: () => configured7,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer21,
|
|
29
|
+
node: () => node52,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options6 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service49 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service80;
|
|
63
|
+
const ripgrep = yield* Service50;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service49.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service80;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service49.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service49.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,17 +174,17 @@ var fffLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer21 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service80;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured7(options) {
|
|
186
|
+
return makeLocationNode({ service: Service49, layer: layer21(options), deps: [node84, node53] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node52 = configured7();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options6, Service49, ripgrepLayer2, fffLayer2, layer21, configured7, node52, exports_search };
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "./git-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./git-
|
|
6
|
+
} from "./git-txm3e8qz.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./git-
|
|
8
|
+
Info11
|
|
9
|
+
} from "./git-hcv80w8f.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./git-
|
|
11
|
+
Info13
|
|
12
|
+
} from "./git-sxz6gkc3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./git-
|
|
14
|
+
Info10
|
|
15
|
+
} from "./git-1pxz8ven.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
18
|
} from "./git-7dqw4kz8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./git-
|
|
20
|
+
Info9
|
|
21
|
+
} from "./git-ygdna4kr.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./git-
|
|
31
|
+
} from "./git-hrfjxse0.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./git-9rqn6x4v.js";
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info13, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info11, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info11, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info10, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -425,7 +425,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
425
425
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
426
426
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
427
427
|
return [];
|
|
428
|
-
const provider = decodeValue(
|
|
428
|
+
const provider = decodeValue(Info9, raw, path, diagnostics);
|
|
429
429
|
if (provider === undefined)
|
|
430
430
|
return [];
|
|
431
431
|
const destination = providerID2(name);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./git-
|
|
4
|
+
} from "./git-gykybrp3.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
7
|
Service84,
|
|
8
8
|
node88
|
|
9
|
-
} from "./git-
|
|
9
|
+
} from "./git-4k8e88tr.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
12
|
} from "./git-775gj3j1.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
} from "./git-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./git-
|
|
18
|
+
} from "./git-zdkdeprt.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./git-
|
|
20
|
+
Service78,
|
|
21
|
+
node82
|
|
22
|
+
} from "./git-g1hadtra.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./git-
|
|
24
|
+
Service21,
|
|
25
|
+
node24
|
|
26
|
+
} from "./git-xknh7n4g.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
@@ -61,8 +61,8 @@ var isUntitled2 = (session) => isExactRootFallback({
|
|
|
61
61
|
var layer3 = Layer.effect(Service2, Effect.gen(function* () {
|
|
62
62
|
const bus = yield* Service84;
|
|
63
63
|
const llm = yield* LLMClient.Service;
|
|
64
|
-
const context = yield*
|
|
65
|
-
const store = yield*
|
|
64
|
+
const context = yield* Service21;
|
|
65
|
+
const store = yield* Service78;
|
|
66
66
|
const db = (yield* Service85).db;
|
|
67
67
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
68
68
|
const chunks = [];
|
|
@@ -150,7 +150,7 @@ Recent conversation:
|
|
|
150
150
|
var node3 = makeLocationNode({
|
|
151
151
|
service: Service2,
|
|
152
152
|
layer: layer3,
|
|
153
|
-
deps: [node88, llmClient2,
|
|
153
|
+
deps: [node88, llmClient2, node24, node82, node89]
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
export { Service2, isUntitled2, layer3, node3, exports_title };
|