@opencode/core 0.0.0-dev-20097 → 0.0.0-dev-20105
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/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{agent-bct739vz.js → worktree-00z3vp5f.js} +4 -4
- package/dist/chunks/{agent-9gnd804a.js → worktree-09tgrvw7.js} +35 -35
- package/dist/chunks/{agent-gmf134c1.js → worktree-0bf3khfw.js} +32 -32
- package/dist/chunks/{agent-a1a50ys5.js → worktree-0f9afca0.js} +5 -5
- package/dist/chunks/{agent-e57neqwz.js → worktree-0mr6qh9d.js} +1 -1
- package/dist/chunks/{agent-0paq2nw3.js → worktree-0paq2nw3.js} +1 -1
- package/dist/chunks/{agent-6fkaw2xz.js → worktree-0wgz3kfx.js} +8 -8
- package/dist/chunks/{agent-m6hb8kht.js → worktree-0xc744yh.js} +26 -26
- package/dist/chunks/{agent-0996nyz8.js → worktree-11dqjexa.js} +9 -9
- package/dist/chunks/{agent-3tnqn7ww.js → worktree-13gx36pc.js} +11 -11
- package/dist/chunks/{agent-yp2x3t23.js → worktree-1acjjqhc.js} +4 -4
- package/dist/chunks/{agent-1dazxqgg.js → worktree-1dazxqgg.js} +2 -2
- package/dist/chunks/{agent-xf20h1cj.js → worktree-1myxn3kd.js} +24 -24
- package/dist/chunks/{agent-epd79qdj.js → worktree-1q9thhxg.js} +9 -9
- package/dist/chunks/{agent-56gdpj1q.js → worktree-1ygqh575.js} +9 -9
- package/dist/chunks/{agent-zzvjeq0g.js → worktree-1zhvft14.js} +18 -18
- package/dist/chunks/{agent-21r38tys.js → worktree-21r38tys.js} +1 -1
- package/dist/chunks/{agent-2402vzrj.js → worktree-2402vzrj.js} +1 -1
- package/dist/chunks/{agent-bzfhs60c.js → worktree-25mrtkcq.js} +26 -26
- package/dist/chunks/{agent-4snp72qp.js → worktree-26300t6s.js} +29 -29
- package/dist/chunks/{agent-hm613f1m.js → worktree-28rfmn1q.js} +16 -16
- package/dist/chunks/{agent-2a5m3afh.js → worktree-2a5m3afh.js} +1 -1
- package/dist/chunks/{agent-wmmy56cc.js → worktree-2k8482vm.js} +8 -8
- package/dist/chunks/{agent-wxjq8k3m.js → worktree-2n4z0gea.js} +26 -26
- package/dist/chunks/{agent-g4nf9hqv.js → worktree-348pjw7k.js} +14 -14
- package/dist/chunks/{agent-ef05nmcp.js → worktree-34q1q4g3.js} +4 -4
- package/dist/chunks/{agent-5w978569.js → worktree-3654ekc1.js} +87 -87
- package/dist/chunks/{agent-w0m74e8e.js → worktree-3dvng5ry.js} +20 -20
- package/dist/chunks/{agent-3fc6dm20.js → worktree-3fc6dm20.js} +1 -1
- package/dist/chunks/{agent-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
- package/dist/chunks/{agent-j3na2f7t.js → worktree-3nyjywfs.js} +13 -13
- package/dist/chunks/{agent-p28vygmv.js → worktree-3qhjhqs4.js} +27 -27
- package/dist/chunks/{agent-3smtnn6g.js → worktree-3smtnn6g.js} +1 -1
- package/dist/chunks/{agent-433eb07g.js → worktree-3t84zwd8.js} +6 -6
- package/dist/chunks/{agent-3tvqynh2.js → worktree-3tvqynh2.js} +1 -1
- package/dist/chunks/{agent-3zsf4n22.js → worktree-3zsf4n22.js} +1 -1
- package/dist/chunks/{agent-gs3s1a1g.js → worktree-4a0nv7mx.js} +8 -8
- package/dist/chunks/{agent-10xd58z0.js → worktree-4angy42y.js} +3 -3
- package/dist/chunks/{agent-qzq3tp80.js → worktree-4db8mzj7.js} +5 -5
- package/dist/chunks/{agent-rabh22kx.js → worktree-4ev63tw3.js} +32 -32
- package/dist/chunks/{agent-nyv1j4r3.js → worktree-4fa6t2zh.js} +70 -70
- package/dist/chunks/{agent-hp9thjyh.js → worktree-4gy17at8.js} +18 -18
- package/dist/chunks/{agent-rv27b6j4.js → worktree-4hk27nw6.js} +8 -8
- package/dist/chunks/{agent-vt4rwap3.js → worktree-4j9vtrd0.js} +9 -9
- package/dist/chunks/{agent-8qtvggd8.js → worktree-4md04jt5.js} +17 -17
- package/dist/chunks/{agent-grg0hm6f.js → worktree-4n0pz7ta.js} +29 -29
- package/dist/chunks/{agent-kb3wdknj.js → worktree-4qw9jy8s.js} +6 -6
- package/dist/chunks/{agent-dq0v80fr.js → worktree-4yvz2rcy.js} +12 -12
- package/dist/chunks/{agent-195jkryp.js → worktree-5214kcsh.js} +39 -39
- package/dist/chunks/{agent-y4y8g8ts.js → worktree-53t702sg.js} +45 -45
- package/dist/chunks/{agent-khsmmeas.js → worktree-5935cfns.js} +10 -10
- package/dist/chunks/{agent-1jdf3fxk.js → worktree-5bxn2d00.js} +11 -11
- package/dist/chunks/{agent-5daktx2q.js → worktree-5daktx2q.js} +1 -1
- package/dist/chunks/{agent-5ekn9679.js → worktree-5ekn9679.js} +1 -1
- package/dist/chunks/{agent-5v30z6ja.js → worktree-5qsvws2p.js} +33 -33
- package/dist/chunks/{agent-5t3nmthw.js → worktree-5t3nmthw.js} +2 -2
- package/dist/chunks/{agent-m26c3xec.js → worktree-5vd11pkv.js} +32 -32
- package/dist/chunks/{agent-1t756eex.js → worktree-5x326c62.js} +10 -10
- package/dist/chunks/{agent-b3xz1q2n.js → worktree-61hs1ryt.js} +26 -26
- package/dist/chunks/{agent-pk5jep21.js → worktree-62h9g2fv.js} +16 -16
- package/dist/chunks/{agent-669tq793.js → worktree-669tq793.js} +1 -1
- package/dist/chunks/{agent-5gs1xt34.js → worktree-67k3ptxm.js} +13 -13
- package/dist/chunks/{agent-5q306sn2.js → worktree-6a4q1va2.js} +4 -4
- package/dist/chunks/{agent-5z7c0ntw.js → worktree-6fx6kqf3.js} +20 -20
- package/dist/chunks/{agent-6msgmcgs.js → worktree-6msgmcgs.js} +1 -1
- package/dist/chunks/{agent-970zzb99.js → worktree-6zsnk1nj.js} +11 -11
- package/dist/chunks/{agent-r5x6zcsm.js → worktree-73tb2d7t.js} +3 -3
- package/dist/chunks/{agent-9p3rp546.js → worktree-7463r9za.js} +39 -39
- package/dist/chunks/{agent-xt2arqya.js → worktree-76g3v1wk.js} +22 -22
- package/dist/chunks/{agent-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
- package/dist/chunks/{agent-h0yxpfzn.js → worktree-7d83w40e.js} +3 -3
- package/dist/chunks/{agent-0jwsre1p.js → worktree-7dqw4kz8.js} +5 -5
- package/dist/chunks/{agent-rqqqmm2x.js → worktree-7j2qha59.js} +8 -8
- package/dist/chunks/{agent-9jddndyh.js → worktree-85hqfz1z.js} +43 -43
- package/dist/chunks/{agent-z0pa14ta.js → worktree-87nphv2h.js} +8 -8
- package/dist/chunks/{agent-jvv6rca9.js → worktree-891pch5y.js} +9 -9
- package/dist/chunks/{agent-qyvvmpr4.js → worktree-8b96hdfe.js} +11 -11
- package/dist/chunks/{agent-8d7r5vzw.js → worktree-8d7r5vzw.js} +1 -1
- package/dist/chunks/{agent-187249xp.js → worktree-8hbfdwcy.js} +6 -6
- package/dist/chunks/{agent-k65r9af3.js → worktree-8q0abqdy.js} +6 -6
- package/dist/chunks/{agent-e4t91rn4.js → worktree-8xr9e5ma.js} +13 -13
- package/dist/chunks/{agent-s75w71bb.js → worktree-8xtjj1tw.js} +8 -8
- package/dist/chunks/{agent-rcgt23b9.js → worktree-904rfj5f.js} +32 -32
- package/dist/chunks/{agent-2v3kphkq.js → worktree-92a34jea.js} +5 -5
- package/dist/chunks/{agent-x5wbyy1f.js → worktree-92hycem4.js} +16 -16
- package/dist/chunks/{agent-94ek1h2f.js → worktree-94ek1h2f.js} +2 -2
- package/dist/chunks/{agent-7k9dqqsg.js → worktree-97jrthbw.js} +25 -25
- package/dist/chunks/{agent-8v6pyhej.js → worktree-9hn6k4tm.js} +8 -8
- package/dist/chunks/{agent-m30kdexy.js → worktree-9knhcppf.js} +3 -3
- package/dist/chunks/{agent-retswvcy.js → worktree-9p4j1g8x.js} +9 -9
- package/dist/chunks/{agent-s7am3t11.js → worktree-a4xtdcdy.js} +30 -30
- package/dist/chunks/{agent-j76x6msn.js → worktree-a55n900e.js} +11 -11
- package/dist/chunks/{agent-d6gar2mb.js → worktree-a71abfbd.js} +20 -20
- package/dist/chunks/{agent-aaet6srn.js → worktree-aaet6srn.js} +2 -2
- package/dist/chunks/{agent-c651xxjb.js → worktree-afjydgk3.js} +4 -4
- package/dist/chunks/{agent-mr4nn3b0.js → worktree-ak9z2h5t.js} +6 -6
- package/dist/chunks/{agent-5cr33wy9.js → worktree-akfg0z59.js} +11 -11
- package/dist/chunks/{agent-8hhx35dq.js → worktree-akgm0gv0.js} +4 -4
- package/dist/chunks/{agent-98mydvev.js → worktree-an0ayh94.js} +31 -31
- package/dist/chunks/{agent-mks6kp02.js → worktree-an32yxdc.js} +5 -5
- package/dist/chunks/{agent-hvdqw0fa.js → worktree-b4cpr7mt.js} +7 -7
- package/dist/chunks/{agent-b6gygkdw.js → worktree-b6gygkdw.js} +2 -2
- package/dist/chunks/{agent-27eedk78.js → worktree-b9mjazqy.js} +18 -18
- package/dist/chunks/{agent-w5bpb8j7.js → worktree-ba7qst6d.js} +20 -20
- package/dist/chunks/{agent-br6g232s.js → worktree-bhsdwye2.js} +15 -15
- package/dist/chunks/{agent-a12t2k2w.js → worktree-bpktnpw7.js} +16 -16
- package/dist/chunks/{agent-3jy1139n.js → worktree-bwvgaq24.js} +37 -37
- package/dist/chunks/{agent-h4xnkbg8.js → worktree-c0bsws40.js} +33 -33
- package/dist/chunks/{agent-rw9fhyhq.js → worktree-cb70gybk.js} +18 -18
- package/dist/chunks/{agent-k1qjx27w.js → worktree-cj8h12nx.js} +5 -5
- package/dist/chunks/{agent-ckecvw8r.js → worktree-ckecvw8r.js} +2 -2
- package/dist/chunks/{agent-e6hd9jay.js → worktree-cpy6gm2a.js} +6 -6
- package/dist/chunks/{agent-4yxx405s.js → worktree-cqkjr9eb.js} +24 -24
- package/dist/chunks/{agent-a8mfdbqj.js → worktree-d16e32c3.js} +3 -3
- package/dist/chunks/{agent-4bm5ja14.js → worktree-d858xzj7.js} +4 -4
- package/dist/chunks/{agent-vjxaqdq6.js → worktree-d8frqt36.js} +41 -41
- package/dist/chunks/{agent-57ez7d0k.js → worktree-dc6tzc5b.js} +9 -9
- package/dist/chunks/{agent-tbj51q56.js → worktree-dd33gdcs.js} +21 -21
- package/dist/chunks/{agent-kwrf6mrp.js → worktree-dg2cj1yd.js} +4 -4
- package/dist/chunks/{agent-cwa6csj7.js → worktree-djszqvmq.js} +9 -9
- package/dist/chunks/{agent-y71avatq.js → worktree-dpkg50ah.js} +4 -4
- package/dist/chunks/{agent-gf8f2rcw.js → worktree-drmc2xrn.js} +18 -18
- package/dist/chunks/{agent-am1638rj.js → worktree-e28zdnr3.js} +5 -5
- package/dist/chunks/{agent-ef5x83kb.js → worktree-ef5x83kb.js} +1 -1
- package/dist/chunks/{agent-8j3kf1eb.js → worktree-emv10mfg.js} +27 -27
- package/dist/chunks/{agent-erw5rpbs.js → worktree-erw5rpbs.js} +2 -2
- package/dist/chunks/{agent-etq0c3wd.js → worktree-etq0c3wd.js} +1 -1
- package/dist/chunks/{agent-fwpx9avw.js → worktree-eyk4t588.js} +48 -48
- package/dist/chunks/{agent-fq21n8kg.js → worktree-f9w2621f.js} +5 -5
- package/dist/chunks/{agent-8s95nyqa.js → worktree-fa3800w2.js} +5 -5
- package/dist/chunks/{agent-jc2w93fw.js → worktree-fggcrdhd.js} +50 -50
- package/dist/chunks/{agent-aat21nqc.js → worktree-ftxpvdc7.js} +15 -15
- package/dist/chunks/{agent-9wwn998v.js → worktree-fzc1rrhc.js} +183 -183
- package/dist/chunks/{agent-wz2yh3bc.js → worktree-g8sy80jx.js} +89 -89
- package/dist/chunks/{agent-hy7mmz7x.js → worktree-g9hze54y.js} +1 -1
- package/dist/chunks/{agent-gd4qta3r.js → worktree-gd4qta3r.js} +1 -1
- package/dist/chunks/{agent-e8tny9qf.js → worktree-gs1aapz6.js} +3 -3
- package/dist/chunks/{agent-f5gy8qwh.js → worktree-gs4tkc79.js} +8 -8
- package/dist/chunks/{agent-gv6a8nnw.js → worktree-gv6a8nnw.js} +2 -2
- package/dist/chunks/{agent-c3q7hj01.js → worktree-gv8bg5p6.js} +13 -13
- package/dist/chunks/{agent-5kdwdsfr.js → worktree-gvrsjrvz.js} +9 -9
- package/dist/chunks/{agent-tw7pwy41.js → worktree-gze2a564.js} +20 -20
- package/dist/chunks/{agent-wtzh7vad.js → worktree-h0v79wmk.js} +21 -21
- package/dist/chunks/{agent-rghjtt8s.js → worktree-h5m7e0fe.js} +9 -9
- package/dist/chunks/{agent-nzyhnfxz.js → worktree-h6r3nrb9.js} +4 -4
- package/dist/chunks/{agent-h6vf3j39.js → worktree-h6vf3j39.js} +1 -1
- package/dist/chunks/{agent-x2d9qy7d.js → worktree-hbyhqfhs.js} +5 -5
- package/dist/chunks/{agent-ba5zwyng.js → worktree-hy20qw0x.js} +15 -15
- package/dist/chunks/{agent-j56e64zr.js → worktree-j56e64zr.js} +1 -1
- package/dist/chunks/{agent-3vsgk2p7.js → worktree-ja2sysa1.js} +12 -12
- package/dist/chunks/{agent-mkwsrdpy.js → worktree-jwjj0ar8.js} +20 -20
- package/dist/chunks/{agent-k1z6zz7b.js → worktree-k3anzat6.js} +22 -22
- package/dist/chunks/{agent-k3c624dm.js → worktree-k3c624dm.js} +3 -3
- package/dist/chunks/{agent-vtpkq4qf.js → worktree-k53npxr2.js} +1 -1
- package/dist/chunks/{agent-ca7w653e.js → worktree-k76fn4kw.js} +4 -4
- package/dist/chunks/{agent-2pn7pm4n.js → worktree-kd3d1vys.js} +52 -52
- package/dist/chunks/{agent-bt5x84hs.js → worktree-kes845dh.js} +22 -22
- package/dist/chunks/{agent-njyz79cc.js → worktree-khmcpx04.js} +37 -37
- package/dist/chunks/{agent-3mmdgdjj.js → worktree-knc8nek6.js} +6 -6
- package/dist/chunks/{agent-j325xqev.js → worktree-ky3seynh.js} +2 -2
- package/dist/chunks/{agent-m3fdjcah.js → worktree-m3fdjcah.js} +1 -1
- package/dist/chunks/{agent-0yxqwdtr.js → worktree-m4b4b35v.js} +39 -39
- package/dist/chunks/{agent-p1jhb79r.js → worktree-m7d3ytap.js} +6 -6
- package/dist/chunks/{agent-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
- package/dist/chunks/{agent-wr7ps67x.js → worktree-ma48de29.js} +5 -5
- package/dist/chunks/{agent-kzsyc47h.js → worktree-mcphez6e.js} +18 -18
- package/dist/chunks/{agent-8yfag9w4.js → worktree-mdc5nwhd.js} +15 -15
- package/dist/chunks/{agent-50mzsvk4.js → worktree-mjymc32g.js} +4 -4
- package/dist/chunks/{agent-4378a0hc.js → worktree-mmgzkw4b.js} +8 -8
- package/dist/chunks/{agent-3zjyq5kp.js → worktree-mn20a28a.js} +11 -11
- package/dist/chunks/{agent-wgtcm0m7.js → worktree-mvksx64m.js} +4 -4
- package/dist/chunks/{agent-3dwfd5y2.js → worktree-n2fk86tq.js} +10 -10
- package/dist/chunks/{agent-cc4mce2f.js → worktree-n810d9f4.js} +11 -11
- package/dist/chunks/{agent-9pswe2t8.js → worktree-n9c5x41c.js} +12 -12
- package/dist/chunks/{agent-8zmehegn.js → worktree-nbpn5fgr.js} +18 -18
- package/dist/chunks/{agent-96r286zg.js → worktree-nfpfdzzq.js} +12 -12
- package/dist/chunks/{agent-5j37ws3e.js → worktree-nppmj0x6.js} +17 -17
- package/dist/chunks/{agent-h420pbdz.js → worktree-ntzzmvrg.js} +4 -4
- package/dist/chunks/{agent-439r14a2.js → worktree-nxhz0hz5.js} +12 -12
- package/dist/chunks/{agent-2h5wpswp.js → worktree-nz0453qb.js} +13 -13
- package/dist/chunks/{agent-0x0enb5q.js → worktree-p31vw5zt.js} +9 -9
- package/dist/chunks/{agent-wrmaeg5p.js → worktree-p6eds5cr.js} +14 -14
- package/dist/chunks/{agent-fgfb0b2k.js → worktree-p7q1b1dk.js} +18 -18
- package/dist/chunks/{agent-jz6frww0.js → worktree-pa033vv9.js} +23 -23
- package/dist/chunks/{agent-x6mxy5rc.js → worktree-pag0f7q6.js} +25 -25
- package/dist/chunks/{agent-xy1gf4rw.js → worktree-pcmmyvsr.js} +4 -4
- package/dist/chunks/{agent-pjvnvgmy.js → worktree-pjvnvgmy.js} +1 -1
- package/dist/chunks/{agent-pknna89w.js → worktree-pknna89w.js} +1 -1
- package/dist/chunks/{agent-fhs97t90.js → worktree-pnv527nz.js} +9 -9
- package/dist/chunks/{agent-rkprpv83.js → worktree-py3kkmfq.js} +2 -2
- package/dist/chunks/{agent-g8d3gcyj.js → worktree-qa3qhgw8.js} +7 -7
- package/dist/chunks/worktree-qc068m1q.js +18 -0
- package/dist/chunks/{agent-3f7398v7.js → worktree-qc08edcd.js} +20 -20
- package/dist/chunks/{agent-6eezz40m.js → worktree-qfgk5m70.js} +5 -5
- package/dist/chunks/{agent-q9k0gsh2.js → worktree-qhmjmk1w.js} +44 -44
- package/dist/chunks/{agent-r4r17rq4.js → worktree-qj5cc9w6.js} +10 -10
- package/dist/chunks/{agent-wvvmmxvm.js → worktree-qm63xfj9.js} +9 -9
- package/dist/chunks/{agent-qn4ba14w.js → worktree-qn4ba14w.js} +2 -2
- package/dist/chunks/{agent-aemzcrym.js → worktree-qnksa3ad.js} +28 -28
- package/dist/chunks/{agent-7hgr463c.js → worktree-qqhk6b98.js} +5 -5
- package/dist/chunks/{agent-qsdy395h.js → worktree-qsdy395h.js} +1 -1
- package/dist/chunks/{agent-8vggh432.js → worktree-qsj8tpbg.js} +15 -15
- package/dist/chunks/{agent-7ksjx2k2.js → worktree-qtq40051.js} +41 -41
- package/dist/chunks/{agent-fj6am7we.js → worktree-qv9g0gyx.js} +30 -30
- package/dist/chunks/{agent-ym7x7v54.js → worktree-r1qjztdq.js} +24 -24
- package/dist/chunks/{agent-q3zwv4bp.js → worktree-r7y78zcv.js} +4 -4
- package/dist/chunks/{agent-rdw6cm16.js → worktree-rdw6cm16.js} +1 -1
- package/dist/chunks/{agent-02nrjc1r.js → worktree-rhjbct0v.js} +6 -6
- package/dist/chunks/{agent-emyyb3h7.js → worktree-rjb11c09.js} +22 -22
- package/dist/chunks/{agent-q10v52aa.js → worktree-rqj5z4yb.js} +11 -11
- package/dist/chunks/{agent-71wjg4kw.js → worktree-rqz00b65.js} +16 -16
- package/dist/chunks/{agent-et0rkxxj.js → worktree-s0agc963.js} +8 -8
- package/dist/chunks/{agent-8ek8aczr.js → worktree-s1hq0v60.js} +13 -13
- package/dist/chunks/{agent-w21repx7.js → worktree-s31e5dqq.js} +38 -38
- package/dist/chunks/{agent-61xdzkjd.js → worktree-sd1fa18v.js} +9 -9
- package/dist/chunks/{agent-qcfjhy73.js → worktree-sn5dskjm.js} +31 -31
- package/dist/chunks/{agent-97mkmtmd.js → worktree-snbrpa5g.js} +32 -32
- package/dist/chunks/{agent-jvvge85p.js → worktree-sr8hj6d6.js} +20 -20
- package/dist/chunks/{agent-w1tfbzx8.js → worktree-ssb8qcd9.js} +10 -10
- package/dist/chunks/{agent-4vtve4mp.js → worktree-szv3adj2.js} +2 -2
- package/dist/chunks/{agent-974apvmy.js → worktree-t2q8n6ss.js} +40 -40
- package/dist/chunks/{agent-nvefxcm9.js → worktree-t5jfh8kc.js} +10 -10
- package/dist/chunks/{agent-tazgh4e4.js → worktree-tazgh4e4.js} +1 -1
- package/dist/chunks/{agent-89znhe33.js → worktree-tcezcvh9.js} +4 -4
- package/dist/chunks/{agent-1qmbbwgh.js → worktree-tcjtg44a.js} +322 -322
- package/dist/chunks/{agent-nbzsj80d.js → worktree-tdhe5xga.js} +8 -8
- package/dist/chunks/{agent-tdstcens.js → worktree-tdstcens.js} +1 -1
- package/dist/chunks/{agent-prt5basj.js → worktree-tj8p0sq8.js} +21 -21
- package/dist/chunks/{agent-37s12vcn.js → worktree-tn0aqsam.js} +5 -5
- package/dist/chunks/{agent-ffqrm4dy.js → worktree-tt2ps04y.js} +25 -25
- package/dist/chunks/{agent-tvtrv512.js → worktree-tvtrv512.js} +1 -1
- package/dist/chunks/{agent-s53zfdxe.js → worktree-tzcmwgv2.js} +23 -23
- package/dist/chunks/{agent-cda3cvpx.js → worktree-v5ysw9b9.js} +9 -9
- package/dist/chunks/{agent-207sxyyq.js → worktree-v5z7k5hc.js} +7 -7
- package/dist/chunks/{agent-rk7s9xkn.js → worktree-v7z2bvyd.js} +4 -4
- package/dist/chunks/{agent-6xscy18h.js → worktree-vddp9fpw.js} +31 -31
- package/dist/chunks/{agent-veqvce7d.js → worktree-veqvce7d.js} +1 -1
- package/dist/chunks/{agent-hg3pgq27.js → worktree-vsjn4aq5.js} +9 -9
- package/dist/chunks/{agent-95sbn98w.js → worktree-vv8yfjwc.js} +7 -7
- package/dist/chunks/{agent-40c61p32.js → worktree-vyjb9e8r.js} +25 -25
- package/dist/chunks/{agent-vzcthcp8.js → worktree-vzcthcp8.js} +1 -1
- package/dist/chunks/{agent-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
- package/dist/chunks/{agent-fpcmhq1w.js → worktree-w6dwg7gz.js} +18 -18
- package/dist/chunks/{agent-zvtzzjx8.js → worktree-wchfvtxb.js} +26 -26
- package/dist/chunks/{agent-wd3x2cqz.js → worktree-wd3x2cqz.js} +2 -2
- package/dist/chunks/{agent-wd87259q.js → worktree-wd87259q.js} +1 -1
- package/dist/chunks/{agent-8vkkgngr.js → worktree-wg821d8s.js} +4 -4
- package/dist/chunks/{agent-wkzkw8tr.js → worktree-wxffcvth.js} +3 -3
- package/dist/chunks/{agent-qsxf26yz.js → worktree-wzz0kxab.js} +9 -9
- package/dist/chunks/{agent-x1ezjp6w.js → worktree-x1ezjp6w.js} +1 -1
- package/dist/chunks/{agent-cktb56xb.js → worktree-x8z8zpk0.js} +6 -6
- package/dist/chunks/{agent-n68d0cf5.js → worktree-xbsm0w8x.js} +16 -16
- package/dist/chunks/{agent-drwq78ky.js → worktree-xfkkasph.js} +4 -4
- package/dist/chunks/{agent-dmqcgk4z.js → worktree-xkntkrq7.js} +5 -5
- package/dist/chunks/{agent-f5syc60y.js → worktree-xxynqx5z.js} +3 -3
- package/dist/chunks/{agent-95n9ta3s.js → worktree-y0adyrm5.js} +6 -6
- package/dist/chunks/{agent-y1fvbwt7.js → worktree-y1fvbwt7.js} +1 -1
- package/dist/chunks/worktree-ybrqsgzm.js +252 -0
- package/dist/chunks/{agent-cdm0dq9n.js → worktree-yf4jcbx9.js} +6 -6
- package/dist/chunks/{agent-yv6fwtq8.js → worktree-yfpm05b7.js} +10 -10
- package/dist/chunks/{agent-j75c8f36.js → worktree-yghvc19j.js} +15 -15
- package/dist/chunks/{agent-6qckwf5w.js → worktree-ykzz1t9e.js} +51 -51
- package/dist/chunks/{agent-yrhqyw5v.js → worktree-yrhqyw5v.js} +1 -1
- package/dist/chunks/{agent-yrznvahk.js → worktree-yrznvahk.js} +2 -2
- package/dist/chunks/{agent-2q5q7rph.js → worktree-ysav94bt.js} +20 -20
- package/dist/chunks/{agent-75ftyfa0.js → worktree-ystnmmhc.js} +19 -19
- package/dist/chunks/{agent-z07pqspn.js → worktree-z07pqspn.js} +3 -3
- package/dist/chunks/{agent-z0bkrqjs.js → worktree-z0bkrqjs.js} +1 -1
- package/dist/chunks/{agent-b6n0f07q.js → worktree-z3aggnr2.js} +30 -30
- package/dist/chunks/{agent-180z65gf.js → worktree-z4pkgcrj.js} +33 -33
- package/dist/chunks/{agent-r40cdba5.js → worktree-z4ygwn82.js} +12 -12
- package/dist/chunks/{agent-z63w68vq.js → worktree-z63w68vq.js} +2 -2
- package/dist/chunks/{agent-crwh5vwx.js → worktree-z8zh437v.js} +15 -15
- package/dist/chunks/{agent-nyvvhy0p.js → worktree-zbdxx7ek.js} +11 -11
- package/dist/chunks/{agent-zeh9ct20.js → worktree-zeh9ct20.js} +2 -2
- package/dist/chunks/{agent-9y90ydfh.js → worktree-zjp1cm63.js} +17 -17
- package/dist/chunks/{agent-pjah6pe2.js → worktree-zk5bpfgp.js} +15 -15
- package/dist/chunks/{agent-dzmmerrf.js → worktree-zp8n7hk2.js} +9 -9
- package/dist/chunks/{agent-4tb9kxn6.js → worktree-zqm7km32.js} +8 -8
- package/dist/chunks/{agent-zr2ceqn5.js → worktree-zr2ceqn5.js} +1 -1
- package/dist/chunks/{agent-9pw8sy2q.js → worktree-zt0bgn8n.js} +10 -10
- package/dist/chunks/{agent-pwa9tev3.js → worktree-zv6910x8.js} +23 -23
- package/dist/chunks/worktree-zw0azyx1.js +26 -0
- package/dist/chunks/{agent-zxq2ej10.js → worktree-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/compaction.js +133 -133
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +93 -93
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +98 -98
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +125 -125
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +108 -108
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/agent-9zdhvgqs.js +0 -18
- package/dist/chunks/agent-jq4mhrem.js +0 -26
- package/dist/chunks/agent-qxc1ymac.js +0 -252
- /package/dist/chunks/{agent-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{agent-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
- /package/dist/chunks/{agent-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
- /package/dist/chunks/{agent-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
- /package/dist/chunks/{agent-1kg9ymc8.js → worktree-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{agent-24dcb14g.js → worktree-24dcb14g.js} +0 -0
- /package/dist/chunks/{agent-2710q6r3.js → worktree-2710q6r3.js} +0 -0
- /package/dist/chunks/{agent-2axfhc9x.js → worktree-2axfhc9x.js} +0 -0
- /package/dist/chunks/{agent-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{agent-34c7v6d4.js → worktree-34c7v6d4.js} +0 -0
- /package/dist/chunks/{agent-359p4xyc.js → worktree-359p4xyc.js} +0 -0
- /package/dist/chunks/{agent-3asan66x.js → worktree-3asan66x.js} +0 -0
- /package/dist/chunks/{agent-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
- /package/dist/chunks/{agent-3w5fmr99.js → worktree-3w5fmr99.js} +0 -0
- /package/dist/chunks/{agent-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
- /package/dist/chunks/{agent-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
- /package/dist/chunks/{agent-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
- /package/dist/chunks/{agent-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{agent-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
- /package/dist/chunks/{agent-53557ph1.js → worktree-53557ph1.js} +0 -0
- /package/dist/chunks/{agent-550bvhaj.js → worktree-550bvhaj.js} +0 -0
- /package/dist/chunks/{agent-5qd3pb7m.js → worktree-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{agent-6kdq0pjd.js → worktree-6kdq0pjd.js} +0 -0
- /package/dist/chunks/{agent-6prwharc.js → worktree-6prwharc.js} +0 -0
- /package/dist/chunks/{agent-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
- /package/dist/chunks/{agent-7m9af43g.js → worktree-7m9af43g.js} +0 -0
- /package/dist/chunks/{agent-822emrt2.js → worktree-822emrt2.js} +0 -0
- /package/dist/chunks/{agent-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
- /package/dist/chunks/{agent-8n3pysct.js → worktree-8n3pysct.js} +0 -0
- /package/dist/chunks/{agent-8wj87zfr.js → worktree-8wj87zfr.js} +0 -0
- /package/dist/chunks/{agent-922hggd3.js → worktree-922hggd3.js} +0 -0
- /package/dist/chunks/{agent-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
- /package/dist/chunks/{agent-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{agent-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
- /package/dist/chunks/{agent-af5trqkr.js → worktree-af5trqkr.js} +0 -0
- /package/dist/chunks/{agent-afrmfg78.js → worktree-afrmfg78.js} +0 -0
- /package/dist/chunks/{agent-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{agent-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
- /package/dist/chunks/{agent-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{agent-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{agent-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
- /package/dist/chunks/{agent-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{agent-d9fn303g.js → worktree-d9fn303g.js} +0 -0
- /package/dist/chunks/{agent-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{agent-dajrwvna.js → worktree-dajrwvna.js} +0 -0
- /package/dist/chunks/{agent-dap0rakb.js → worktree-dap0rakb.js} +0 -0
- /package/dist/chunks/{agent-df08tz66.js → worktree-df08tz66.js} +0 -0
- /package/dist/chunks/{agent-dy18nga0.js → worktree-dy18nga0.js} +0 -0
- /package/dist/chunks/{agent-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
- /package/dist/chunks/{agent-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
- /package/dist/chunks/{agent-ec1grn59.js → worktree-ec1grn59.js} +0 -0
- /package/dist/chunks/{agent-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
- /package/dist/chunks/{agent-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
- /package/dist/chunks/{agent-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
- /package/dist/chunks/{agent-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{agent-faypxj3z.js → worktree-faypxj3z.js} +0 -0
- /package/dist/chunks/{agent-fd410y7t.js → worktree-fd410y7t.js} +0 -0
- /package/dist/chunks/{agent-fxgpk5d8.js → worktree-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{agent-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
- /package/dist/chunks/{agent-g86h250q.js → worktree-g86h250q.js} +0 -0
- /package/dist/chunks/{agent-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
- /package/dist/chunks/{agent-gftt206x.js → worktree-gftt206x.js} +0 -0
- /package/dist/chunks/{agent-hjbc5kem.js → worktree-hjbc5kem.js} +0 -0
- /package/dist/chunks/{agent-hk9envan.js → worktree-hk9envan.js} +0 -0
- /package/dist/chunks/{agent-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
- /package/dist/chunks/{agent-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{agent-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
- /package/dist/chunks/{agent-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{agent-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{agent-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{agent-mp448xyj.js → worktree-mp448xyj.js} +0 -0
- /package/dist/chunks/{agent-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
- /package/dist/chunks/{agent-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
- /package/dist/chunks/{agent-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
- /package/dist/chunks/{agent-njntx4h6.js → worktree-njntx4h6.js} +0 -0
- /package/dist/chunks/{agent-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
- /package/dist/chunks/{agent-q74kybfr.js → worktree-q74kybfr.js} +0 -0
- /package/dist/chunks/{agent-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
- /package/dist/chunks/{agent-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
- /package/dist/chunks/{agent-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
- /package/dist/chunks/{agent-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
- /package/dist/chunks/{agent-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
- /package/dist/chunks/{agent-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{agent-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{agent-sk3qaz4a.js → worktree-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{agent-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
- /package/dist/chunks/{agent-w803qqfp.js → worktree-w803qqfp.js} +0 -0
- /package/dist/chunks/{agent-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{agent-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
- /package/dist/chunks/{agent-wtztk69x.js → worktree-wtztk69x.js} +0 -0
- /package/dist/chunks/{agent-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
- /package/dist/chunks/{agent-x61499pn.js → worktree-x61499pn.js} +0 -0
- /package/dist/chunks/{agent-y44na4kk.js → worktree-y44na4kk.js} +0 -0
- /package/dist/chunks/{agent-y8cydn3q.js → worktree-y8cydn3q.js} +0 -0
- /package/dist/chunks/{agent-y8f7s663.js → worktree-y8f7s663.js} +0 -0
- /package/dist/chunks/{agent-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{agent-ym463w8f.js → worktree-ym463w8f.js} +0 -0
- /package/dist/chunks/{agent-z9919s4g.js → worktree-z9919s4g.js} +0 -0
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
6
|
Service47
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./worktree-m4b4b35v.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./worktree-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service49
|
|
13
|
+
} from "./worktree-pa033vv9.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service59
|
|
16
|
+
} from "./worktree-4md04jt5.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service62
|
|
19
|
+
} from "./worktree-ykzz1t9e.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service22,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./worktree-w6dwg7gz.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./worktree-5ekn9679.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service61,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./worktree-hy20qw0x.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError7,
|
|
36
|
+
Service44
|
|
37
|
+
} from "./worktree-53t702sg.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service29
|
|
40
|
+
} from "./worktree-g8sy80jx.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./worktree-34q1q4g3.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./worktree-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
49
|
var exports_shell = {};
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input4,
|
|
53
|
+
Plugin: () => Plugin20,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name4
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name4 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input4 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -115,18 +115,18 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin20 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service29;
|
|
122
|
+
const jobs = yield* Service59;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
125
|
-
const access = yield*
|
|
126
|
-
const shell = yield*
|
|
127
|
-
const shellSelect = yield*
|
|
124
|
+
const environment = yield* Service49;
|
|
125
|
+
const access = yield* Service22;
|
|
126
|
+
const shell = yield* Service44;
|
|
127
|
+
const shellSelect = yield* Service61;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
129
|
+
const permission = yield* Service62;
|
|
130
130
|
const config = yield* Service47;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
@@ -146,7 +146,7 @@ var Plugin8 = {
|
|
|
146
146
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
147
147
|
if (parsed.commands.length > 0)
|
|
148
148
|
yield* permission.assert({
|
|
149
|
-
action:
|
|
149
|
+
action: name4,
|
|
150
150
|
resources: parsed.commands.map((command) => command.resource),
|
|
151
151
|
save: parsed.commands.map((command) => command.save),
|
|
152
152
|
sessionID: context.sessionID,
|
|
@@ -183,10 +183,10 @@ var Plugin8 = {
|
|
|
183
183
|
yield* jobs.completeBackground(info.notificationID);
|
|
184
184
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
185
185
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
186
|
-
name:
|
|
186
|
+
name: name4,
|
|
187
187
|
options: { codemode: false },
|
|
188
188
|
description: description(),
|
|
189
|
-
input:
|
|
189
|
+
input: Input4,
|
|
190
190
|
output: Output,
|
|
191
191
|
execute: (input, context) => Effect.gen(function* () {
|
|
192
192
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -205,7 +205,7 @@ var Plugin8 = {
|
|
|
205
205
|
const run = Effect.gen(function* () {
|
|
206
206
|
const result = yield* shell.result(info);
|
|
207
207
|
if (!result.capture)
|
|
208
|
-
return yield* new
|
|
208
|
+
return yield* new NotFoundError7({ id: info.id });
|
|
209
209
|
const output = output2(result);
|
|
210
210
|
return {
|
|
211
211
|
...output,
|
|
@@ -219,7 +219,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
219
219
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
220
220
|
const job = yield* jobs.start({
|
|
221
221
|
id: info.id,
|
|
222
|
-
type:
|
|
222
|
+
type: name4,
|
|
223
223
|
title: info.command,
|
|
224
224
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
225
225
|
recovery: {
|
|
@@ -249,7 +249,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
249
249
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
250
250
|
})).pipe(Effect.orDie);
|
|
251
251
|
const hook = (event) => Effect.gen(function* () {
|
|
252
|
-
const tool = event.tools[
|
|
252
|
+
const tool = event.tools[name4];
|
|
253
253
|
if (!tool)
|
|
254
254
|
return;
|
|
255
255
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -260,4 +260,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
260
260
|
})
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
export {
|
|
263
|
+
export { name4, DEFAULT_TIMEOUT_MS2, Input4, Plugin20, exports_shell };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./worktree-gs1aapz6.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./worktree-r7y78zcv.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./worktree-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./worktree-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./worktree-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event20,
|
|
24
|
+
ID: () => ID18,
|
|
25
|
+
Info: () => Info34,
|
|
26
|
+
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service80,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node83
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID18 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event20 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info34 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID18,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service80 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service84).db;
|
|
55
55
|
const bus = yield* Service83;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info34({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service80.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info34({
|
|
80
|
+
id: ID18.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node83 = makeGlobalNode({ service: Service80, layer, deps: [node88, node87] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID18, OAuth3, Key4, Value2, Event20, Info34, Service80, node83, exports_credential };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./worktree-r7y78zcv.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service39,
|
|
7
|
+
node42
|
|
8
|
+
} from "./worktree-fggcrdhd.js";
|
|
9
|
+
import {
|
|
10
|
+
Service62,
|
|
11
|
+
node65
|
|
12
|
+
} from "./worktree-ykzz1t9e.js";
|
|
9
13
|
import {
|
|
10
14
|
Service66,
|
|
11
15
|
node69
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service41,
|
|
15
|
-
node43
|
|
16
|
-
} from "./agent-7k9dqqsg.js";
|
|
16
|
+
} from "./worktree-97jrthbw.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./worktree-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
25
|
+
Service: () => Service38,
|
|
26
|
+
layer: () => layer13,
|
|
27
27
|
name: () => name13,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node41
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -35,13 +35,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
36
|
var name13 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service38 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer13 = Layer.effect(Service38, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service39;
|
|
42
|
+
const tools = yield* Service66;
|
|
43
43
|
const bus = yield* Service83;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service62;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -118,12 +118,12 @@ var layer10 = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service38.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
123
|
+
var node41 = makeLocationNode({
|
|
124
|
+
service: Service38,
|
|
125
|
+
layer: layer13,
|
|
126
|
+
deps: [node69, node42, node87, node65]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2, name13,
|
|
129
|
+
export { namespace2, name13, Service38, layer13, node41, exports_mcp3 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./worktree-gs1aapz6.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./worktree-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./worktree-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./worktree-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key3,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key3 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,14 +36,14 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key3) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key3
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make20, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
Info13
|
|
9
|
-
} from "./agent-nbzsj80d.js";
|
|
6
|
+
} from "./worktree-mjymc32g.js";
|
|
10
7
|
import {
|
|
11
8
|
Info10
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./worktree-tdhe5xga.js";
|
|
13
10
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
Info17
|
|
12
|
+
} from "./worktree-tn0aqsam.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
14
|
+
Info14
|
|
15
|
+
} from "./worktree-qa3qhgw8.js";
|
|
16
|
+
import {
|
|
17
|
+
Info13
|
|
18
|
+
} from "./worktree-0f9afca0.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./worktree-7dqw4kz8.js";
|
|
22
22
|
import {
|
|
23
23
|
Info12
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./worktree-qn4ba14w.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Info8
|
|
27
|
+
} from "./worktree-d8frqt36.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./worktree-akgm0gv0.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./worktree-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/config/normalize.ts
|
|
42
42
|
var exports_normalize = {};
|
|
@@ -84,10 +84,10 @@ function normalize2(input) {
|
|
|
84
84
|
const encoded = {};
|
|
85
85
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
86
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
87
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info8.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info17, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -112,7 +112,7 @@ function normalize2(input) {
|
|
|
112
112
|
});
|
|
113
113
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
114
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
115
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info10, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
116
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
117
|
const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
|
|
118
118
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -126,7 +126,7 @@ function normalize2(input) {
|
|
|
126
126
|
model: migratedSmallModel,
|
|
127
127
|
...legacyAgents.title
|
|
128
128
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
129
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info10, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
130
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
131
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
132
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info13, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-n810d9f4.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service80
|
|
7
|
+
} from "./worktree-qv9g0gyx.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./worktree-26300t6s.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./worktree-904rfj5f.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 = ID13.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: ID14.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* Service80;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID14.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, {
|